2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 8.5devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix
*) set -o posix
;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits
='0123456789'
42 as_cr_alnum
=$as_cr_Letters$as_cr_digits
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x
; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var
in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
146 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me
=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x
; then
178 if (eval ":") 2>/dev
/null
; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev
/null
; then
244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
245 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir
=.
251 for as_base
in sh bash ksh sh5
; do
252 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
259 for as_shell
in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
281 CONFIG_SHELL
=$as_shell
283 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix
*) set -o posix
;;
309 as_func_ret_success
() {
312 as_func_ret_failure
() {
317 if as_func_success
; then
321 echo as_func_success failed.
324 if as_func_failure
; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success
; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure
; then
338 echo as_func_ret_failure succeeded.
341 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) ||
{ (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x
; then
366 for as_var
in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no
; then
375 echo This
script requires a shell
more modern than all the
376 echo shells that I found on your system. Please
install a
377 echo modern shell
, or manually run the
script under such a
378 echo shell
if you
do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") ||
{
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system
,
440 echo including any error possibly output before this message.
441 echo This can
help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x
"$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
496 ECHO_C
= ECHO_N
= ECHO_T
=
500 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
543 test -d .
/-p && rmdir .
/-p
547 if test -x / >/dev
/null
2>&1; then
550 if ls -dL / >/dev
/null
2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p
=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev
/null
6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix
=/usr
/local
590 ac_config_libobj_dir
=.
596 SHELL
=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME
='PostgreSQL'
600 PACKAGE_TARNAME
='postgresql'
601 PACKAGE_VERSION
='8.5devel'
602 PACKAGE_STRING
='PostgreSQL 8.5devel'
603 PACKAGE_BUGREPORT
='pgsql-bugs@postgresql.org'
605 ac_unique_file
="src/backend/access/common/heaptuple.c"
606 ac_default_prefix
=/usr
/local
/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default
="\
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
620 # ifdef HAVE_STDLIB_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
643 ac_subst_vars
='LTLIBOBJS
674 python_additional_libs
790 program_transform_name
802 enable_option_checking
807 enable_integer_datetimes
825 enable_thread_safety_force
838 with_libedit_preferred
849 ac_precious_vars
='build_alias
862 # Initialize some variables set by options.
864 ac_init_version
=false
865 ac_unrecognized_opts
=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
876 program_transform_name
=s
,x
,x
,
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir
='${exec_prefix}/bin'
891 sbindir
='${exec_prefix}/sbin'
892 libexecdir
='${exec_prefix}/libexec'
893 datarootdir
='${prefix}/share'
894 datadir
='${datarootdir}'
895 sysconfdir
='${prefix}/etc'
896 sharedstatedir
='${prefix}/com'
897 localstatedir
='${prefix}/var'
898 includedir
='${prefix}/include'
899 oldincludedir
='/usr/include'
900 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir
='${datarootdir}/info'
906 libdir
='${exec_prefix}/lib'
907 localedir
='${datarootdir}/locale'
908 mandir
='${datarootdir}/man'
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\
$ac_option
922 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 # Accept the important Cygnus configure options, so we can diagnose typos.
928 case $ac_dashdash$ac_option in
932 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
934 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
937 -build |
--build |
--buil |
--bui |
--bu)
938 ac_prev
=build_alias
;;
939 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
940 build_alias
=$ac_optarg ;;
942 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
943 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
944 ac_prev
=cache_file
;;
945 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
946 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
947 cache_file
=$ac_optarg ;;
950 cache_file
=config.cache
;;
952 -datadir |
--datadir |
--datadi |
--datad)
954 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
955 datadir
=$ac_optarg ;;
957 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
958 |
--dataroo |
--dataro |
--datar)
959 ac_prev
=datarootdir
;;
960 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
961 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
962 datarootdir
=$ac_optarg ;;
964 -disable-* |
--disable-*)
965 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
968 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
969 { (exit 1); exit 1; }; }
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=no
;;
981 -docdir |
--docdir |
--docdi |
--doc |
--do)
983 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
986 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
988 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
991 -enable-* |
--enable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
996 { (exit 1); exit 1; }; }
997 ac_useropt_orig
=$ac_useropt
998 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_
$ac_useropt"
1003 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep
=', ';;
1006 eval enable_
$ac_useropt=\
$ac_optarg ;;
1008 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1009 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1010 |
--exec |
--exe |
--ex)
1011 ac_prev
=exec_prefix
;;
1012 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1013 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1014 |
--exec=* |
--exe=* |
--ex=*)
1015 exec_prefix
=$ac_optarg ;;
1017 -gas |
--gas |
--ga |
--g)
1018 # Obsolete; use --with-gas.
1021 -help |
--help |
--hel |
--he |
-h)
1022 ac_init_help
=long
;;
1023 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1024 ac_init_help
=recursive
;;
1025 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1026 ac_init_help
=short
;;
1028 -host |
--host |
--hos |
--ho)
1029 ac_prev
=host_alias
;;
1030 -host=* |
--host=* |
--hos=* |
--ho=*)
1031 host_alias
=$ac_optarg ;;
1033 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1035 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1037 htmldir
=$ac_optarg ;;
1039 -includedir |
--includedir |
--includedi |
--included |
--include \
1040 |
--includ |
--inclu |
--incl |
--inc)
1041 ac_prev
=includedir
;;
1042 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1043 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1044 includedir
=$ac_optarg ;;
1046 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1048 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1049 infodir
=$ac_optarg ;;
1051 -libdir |
--libdir |
--libdi |
--libd)
1053 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1054 libdir
=$ac_optarg ;;
1056 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1057 |
--libexe |
--libex |
--libe)
1058 ac_prev
=libexecdir
;;
1059 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1060 |
--libexe=* |
--libex=* |
--libe=*)
1061 libexecdir
=$ac_optarg ;;
1063 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1064 ac_prev
=localedir
;;
1065 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1066 localedir
=$ac_optarg ;;
1068 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1069 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1070 ac_prev
=localstatedir
;;
1071 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1072 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1073 localstatedir
=$ac_optarg ;;
1075 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1077 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1078 mandir
=$ac_optarg ;;
1080 -nfp |
--nfp |
--nf)
1081 # Obsolete; use --without-fp.
1084 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1085 |
--no-cr |
--no-c |
-n)
1088 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1089 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1092 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1093 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1094 |
--oldin |
--oldi |
--old |
--ol |
--o)
1095 ac_prev
=oldincludedir
;;
1096 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1097 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1098 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1099 oldincludedir
=$ac_optarg ;;
1101 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1103 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1104 prefix
=$ac_optarg ;;
1106 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1107 |
--program-pre |
--program-pr |
--program-p)
1108 ac_prev
=program_prefix
;;
1109 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1110 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1111 program_prefix
=$ac_optarg ;;
1113 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1114 |
--program-suf |
--program-su |
--program-s)
1115 ac_prev
=program_suffix
;;
1116 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1117 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1118 program_suffix
=$ac_optarg ;;
1120 -program-transform-name |
--program-transform-name \
1121 |
--program-transform-nam |
--program-transform-na \
1122 |
--program-transform-n |
--program-transform- \
1123 |
--program-transform |
--program-transfor \
1124 |
--program-transfo |
--program-transf \
1125 |
--program-trans |
--program-tran \
1126 |
--progr-tra |
--program-tr |
--program-t)
1127 ac_prev
=program_transform_name
;;
1128 -program-transform-name=* |
--program-transform-name=* \
1129 |
--program-transform-nam=* |
--program-transform-na=* \
1130 |
--program-transform-n=* |
--program-transform-=* \
1131 |
--program-transform=* |
--program-transfor=* \
1132 |
--program-transfo=* |
--program-transf=* \
1133 |
--program-trans=* |
--program-tran=* \
1134 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1135 program_transform_name
=$ac_optarg ;;
1137 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1139 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1140 pdfdir
=$ac_optarg ;;
1142 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1144 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1147 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1148 |
-silent |
--silent |
--silen |
--sile |
--sil)
1151 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1153 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1155 sbindir
=$ac_optarg ;;
1157 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1158 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1159 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1161 ac_prev
=sharedstatedir
;;
1162 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1163 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1164 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1166 sharedstatedir
=$ac_optarg ;;
1168 -site |
--site |
--sit)
1170 -site=* |
--site=* |
--sit=*)
1173 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1175 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1176 srcdir
=$ac_optarg ;;
1178 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1179 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1180 ac_prev
=sysconfdir
;;
1181 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1182 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1183 sysconfdir
=$ac_optarg ;;
1185 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1186 ac_prev
=target_alias
;;
1187 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1188 target_alias
=$ac_optarg ;;
1190 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1193 -version |
--version |
--versio |
--versi |
--vers |
-V)
1194 ac_init_version
=: ;;
1197 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1200 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_useropt_orig
=$ac_useropt
1203 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1208 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep
=', ';;
1211 eval with_
$ac_useropt=\
$ac_optarg ;;
1213 -without-* |
--without-*)
1214 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_useropt_orig
=$ac_useropt
1220 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep
=', ';;
1228 eval with_
$ac_useropt=no
;;
1231 # Obsolete; use --with-x.
1234 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1235 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1236 ac_prev
=x_includes
;;
1237 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1238 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1239 x_includes
=$ac_optarg ;;
1241 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1242 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1243 ac_prev
=x_libraries
;;
1244 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1245 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1246 x_libraries
=$ac_optarg ;;
1248 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1254 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1257 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\
$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 if test -n "$ac_prev"; then
1274 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1275 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1282 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1283 { (exit 1); exit 1; }; } ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288 # Check all directory arguments for consistency.
1289 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val
=\$
$ac_var
1295 # Remove trailing slashes.
1298 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\
$ac_val;;
1301 # Be sure to have absolute directory names.
1303 [\\/$
]* | ?
:[\\/]* ) continue;;
1304 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1306 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1307 { (exit 1); exit 1; }; }
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1315 target
=$target_alias
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x
; then
1319 if test "x$build_alias" = x
; then
1320 cross_compiling
=maybe
1321 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1322 If a cross compiler is detected then cross compile mode will be used." >&2
1323 elif test "x$build_alias" != "x$host_alias"; then
1329 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1331 test "$silent" = yes && exec 6>/dev
/null
1334 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di
=`ls -di .` &&
1336 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1337 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1338 { (exit 1); exit 1; }; }
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1341 { (exit 1); exit 1; }; }
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted
=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir
=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1376 ac_srcdir_defaulted
=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1380 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1381 { (exit 1); exit 1; }; }
1383 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1386 { (exit 1); exit 1; }; }
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var
in $ac_precious_vars; do
1399 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1401 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures PostgreSQL 8.5devel to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --build=BUILD configure
for building on BUILD
[guessed
]
1471 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive
) echo "Configuration of PostgreSQL 8.5devel:";;
1482 --disable-option-checking ignore unrecognized
--enable/--with options
1483 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1484 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1485 --disable-integer-datetimes
1486 disable
64-bit integer date
/time support
1487 --enable-nls[=LANGUAGES
]
1488 enable Native Language Support
1489 --disable-shared do not build shared libraries
1490 --disable-rpath do not embed shared library search path
in
1492 --disable-spinlocks do not use spinlocks
1493 --enable-debug build with debugging symbols
(-g)
1494 --enable-profiling build with profiling enabled
1495 --enable-coverage build with coverage testing instrumentation
1496 --enable-dtrace build with DTrace support
1497 --enable-depend turn on automatic dependency tracking
1498 --enable-cassert enable assertion checks
(for debugging
)
1499 --enable-thread-safety make client libraries thread-safe
1500 --enable-thread-safety-force
1501 force thread-safety despite thread
test failure
1502 --disable-float4-byval disable float4 passed by value
1503 --disable-float8-byval disable float8 passed by value
1504 --disable-largefile omit support
for large files
1507 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1508 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1509 --with-template=NAME override operating system template
1510 --with-includes=DIRS
look for additional header files
in DIRS
1511 --with-libraries=DIRS
look for additional libraries
in DIRS
1512 --with-libs=DIRS alternative spelling of
--with-libraries
1513 --with-pgport=PORTNUM
set default port number
[5432]
1514 --with-blocksize=BLOCKSIZE
1515 set table block size
in kB
[8]
1516 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1517 --with-wal-blocksize=BLOCKSIZE
1518 set WAL block size
in kB
[8]
1519 --with-wal-segsize=SEGSIZE
1520 set WAL segment size
in MB
[16]
1521 --with-CC=CMD
set compiler
(deprecated
)
1522 --with-tcl build Tcl modules
(PL
/Tcl
)
1523 --with-tclconfig=DIR tclConfig.sh is
in DIR
1524 --with-perl build Perl modules
(PL
/Perl
)
1525 --with-python build Python modules
(PL
/Python
)
1526 --with-gssapi build with GSSAPI support
1527 --with-krb5 build with Kerberos
5 support
1528 --with-krb-srvnam=NAME default service principal name
in Kerberos
1530 --with-pam build with PAM support
1531 --with-ldap build with LDAP support
1532 --with-bonjour build with Bonjour support
1533 --with-openssl build with OpenSSL support
1534 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1535 --with-libedit-preferred
1536 prefer BSD Libedit over GNU Readline
1537 --with-ossp-uuid use OSSP UUID library when building
1539 --with-libxml build with XML support
1540 --with-libxslt use XSLT support when building contrib
/xml2
1541 --with-system-tzdata=DIR
1542 use system
time zone data
in DIR
1543 --without-zlib do not use Zlib
1544 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1546 Some influential environment variables
:
1547 CC C compiler
command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1550 nonstandard directory
<lib dir
>
1551 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1552 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1553 you have headers
in a nonstandard directory
<include dir
>
1555 LDFLAGS_SL linker flags
for shared library linking
1557 location of DocBook stylesheets
1559 Use these variables to override the choices made by
`configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <pgsql-bugs@postgresql.org>.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1592 .) # We are building in place.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1625 PostgreSQL configure 8.5devel
1626 generated by GNU Autoconf 2.63
1628 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1633 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1641 It was created by PostgreSQL $as_me 8.5devel, which was
1642 generated by GNU Autoconf 2.63. Invocation command line was
1654 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1655 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1656 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1657 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1658 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1660 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1661 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1663 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1664 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1665 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1666 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1667 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1668 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1669 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 $as_echo "PATH: $as_dir"
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_must_keep_next=false
1708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710 | -silent | --silent | --silen | --sile | --sil)
1713 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1716 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719 if test $ac_must_keep_next = true; then
1720 ac_must_keep_next=false # Got value, back to normal.
1723 *=* | --config-cache | -C | -disable-* | --disable-* \
1724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726 | -with-* | --with-* | -without-* | --without-* | --x)
1727 case "$ac_configure_args0 " in
1728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731 -* ) ac_must_keep_next=true ;;
1734 ac_configure_args="$ac_configure_args '$ac_arg'"
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log. We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748 # Save into config.log some information that might help in debugging.
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1758 # The following way of writing the cache mishandles newlines in values,
1760 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1761 eval ac_val=\$$ac_var
1765 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769 _ | IFS | as_nl) ;; #(
1770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771 *) $as_unset $ac_var ;;
1776 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1777 *${as_nl}ac_space=\ *)
1779 "s/'\''/'\''\\\\'\'''\''/g;
1780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1796 for ac_var in $ac_subst_vars
1798 eval ac_val=\$$ac_var
1800 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 $as_echo "$ac_var='\''$ac_val'\''"
1806 if test -n "$ac_subst_files"; then
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1813 for ac_var in $ac_subst_files
1815 eval ac_val=\$$ac_var
1817 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 $as_echo "$ac_var='\''$ac_val'\''"
1824 if test -s confdefs.h; then
1834 test "$ac_signal" != 0 &&
1835 $as_echo "$as_me: caught signal $ac_signal"
1836 $as_echo "$as_me: exit $exit_status"
1838 rm -f core *.core core.conftest.* &&
1839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 for ac_signal in 1 2 13 15; do
1843 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1850 # Predefined preprocessor variables.
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1881 if test -n "$CONFIG_SITE"; then
1882 ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884 ac_site_file1=$prefix/share/config.site
1885 ac_site_file2=$prefix/etc/config.site
1887 ac_site_file1=$ac_default_prefix/share/config.site
1888 ac_site_file2=$ac_default_prefix/etc/config.site
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 test "x$ac_site_file" = xNONE && continue
1893 if test -r "$ac_site_file"; then
1894 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896 sed 's/^/| /' "$ac_site_file" >&5
1901 if test -r "$cache_file"; then
1902 # Some versions of bash will fail to source /dev/null (special
1903 # files actually), so we avoid doing that.
1904 if test -f "$cache_file"; then
1905 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909 *) . "./$cache_file";;
1913 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923 eval ac_new_set=\$ac_env_${ac_var}_set
1924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925 eval ac_new_val=\$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1929 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1933 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w=`echo x
$ac_old_val`
1940 ac_new_val_w=`echo x
$ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1944 ac_cache_corrupted=:
1946 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\$ac_old_val
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1960 *) ac_arg=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1975 { (exit 1); exit 1; }; }
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 for ac_dir in config "$srcdir"/config; do
2015 if test -f "$ac_dir/install-sh
"; then
2017 ac_install_sh="$ac_aux_dir/install-sh
-c"
2019 elif test -f "$ac_dir/install.sh
"; then
2021 ac_install_sh="$ac_aux_dir/install.sh
-c"
2023 elif test -f "$ac_dir/shtool
"; then
2025 ac_install_sh="$ac_aux_dir/shtool
install -c"
2029 if test -z "$ac_aux_dir"; then
2030 { { $as_echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in config
\"$srcdir\"/config
" >&5
2031 $as_echo "$as_me: error
: cannot
find install-sh or
install.sh
in config
\"$srcdir\"/config
" >&2;}
2032 { (exit 1); exit 1; }; }
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2045 configure_args=$ac_configure_args
2049 cat >>confdefs.h <<_ACEOF
2050 #define PG_VERSION "$PACKAGE_VERSION"
2053 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056 cat >>confdefs.h <<_ACEOF
2057 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
2063 { { $as_echo "$as_me:$LINENO: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&5
2064 $as_echo "$as_me: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&2;}
2065 { (exit 1); exit 1; }; }
2067 { $as_echo "$as_me:$LINENO: checking build system
type" >&5
2068 $as_echo_n "checking build system
type...
" >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070 $as_echo_n "(cached
) " >&6
2072 ac_build_alias=$build_alias
2073 test "x
$ac_build_alias" = x &&
2074 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
2075 test "x
$ac_build_alias" = x &&
2076 { { $as_echo "$as_me:$LINENO: error
: cannot guess build
type; you must specify one
" >&5
2077 $as_echo "$as_me: error
: cannot guess build
type; you must specify one
" >&2;}
2078 { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
2080 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&5
2081 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&2;}
2082 { (exit 1); exit 1; }; }
2085 { $as_echo "$as_me:$LINENO: result
: $ac_cv_build" >&5
2086 $as_echo "$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2089 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical build
" >&5
2090 $as_echo "$as_me: error
: invalid value of canonical build
" >&2;}
2091 { (exit 1); exit 1; }; };;
2094 ac_save_IFS=$IFS; IFS='-'
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107 { $as_echo "$as_me:$LINENO: checking
host system
type" >&5
2108 $as_echo_n "checking
host system
type...
" >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110 $as_echo_n "(cached
) " >&6
2112 if test "x
$host_alias" = x; then
2113 ac_cv_host=$ac_cv_build
2115 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
2116 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&5
2117 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&2;}
2118 { (exit 1); exit 1; }; }
2122 { $as_echo "$as_me:$LINENO: result
: $ac_cv_host" >&5
2123 $as_echo "$ac_cv_host" >&6; }
2126 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical
host" >&5
2127 $as_echo "$as_me: error
: invalid value of canonical
host" >&2;}
2128 { (exit 1); exit 1; }; };;
2131 ac_save_IFS=$IFS; IFS='-'
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2146 { $as_echo "$as_me:$LINENO: checking
which template to use
" >&5
2147 $as_echo_n "checking
which template to use...
" >&6; }
2152 # Check whether --with-template was given.
2153 if test "${with_template+set}" = set; then
2154 withval=$with_template;
2157 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-template option
" >&5
2158 $as_echo "$as_me: error
: argument required
for --with-template option
" >&2;}
2159 { (exit 1); exit 1; }; }
2162 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-template option
" >&5
2163 $as_echo "$as_me: error
: argument required
for --with-template option
" >&2;}
2164 { (exit 1); exit 1; }; }
2169 list) echo; ls "$srcdir/src
/template
"; exit;;
2170 *) if test -f "$srcdir/src
/template
/$with_template" ; then
2173 { { $as_echo "$as_me:$LINENO: error
: '$withval' is not a valid template name. Use
'list' for a list.
" >&5
2174 $as_echo "$as_me: error
: '$withval' is not a valid template name. Use
'list' for a list.
" >&2;}
2175 { (exit 1); exit 1; }; }
2184 # --with-template not given
2187 aix*) template=aix ;;
2188 bsdi*) template=bsdi ;;
2189 cygwin*) template=cygwin ;;
2190 darwin*) template=darwin ;;
2191 dgux*) template=dgux ;;
2192 freebsd*) template=freebsd ;;
2193 hpux*) template=hpux ;;
2194 irix*) template=irix ;;
2195 linux*|gnu*|k*bsd*-gnu)
2197 mingw*) template=win32 ;;
2198 netbsd*) template=netbsd ;;
2199 nextstep*) template=nextstep ;;
2200 openbsd*) template=openbsd ;;
2201 osf*) template=osf ;;
2202 sco*) template=sco ;;
2203 solaris*) template=solaris ;;
2204 sunos*) template=sunos4 ;;
2206 case $host_vendor in
2207 univel) template=univel ;;
2209 sysv4*) template=svr4 ;;
2210 sysv5*) template=unixware ;;
2211 ultrix*) template=ultrix4 ;;
2214 if test x"$template" = x"" ; then
2215 { { $as_echo "$as_me:$LINENO: error
:
2216 *******************************************************************
2217 PostgreSQL has apparently not been ported to your platform yet.
2218 To try a manual configuration
, look into the src
/template directory
2219 for a similar platform and use the
'--with-template=' option.
2221 Please also contact
<pgsql-bugs@postgresql.org
> to see about
2222 rectifying this. Include the above
'checking host system type...'
2224 *******************************************************************
2226 $as_echo "$as_me: error
:
2227 *******************************************************************
2228 PostgreSQL has apparently not been ported to your platform yet.
2229 To try a manual configuration
, look into the src
/template directory
2230 for a similar platform and use the
'--with-template=' option.
2232 Please also contact
<pgsql-bugs@postgresql.org
> to see about
2233 rectifying this. Include the above
'checking host system type...'
2235 *******************************************************************
2237 { (exit 1); exit 1; }; }
2245 { $as_echo "$as_me:$LINENO: result
: $template" >&5
2246 $as_echo "$template" >&6; }
2251 # Initialize default assumption that we do not need separate assembly code
2252 # for TAS (test-and-set). This can be overridden by the template file
2253 # when it's executed.
2260 ## Command line options
2264 # Add non-standard directories to the include path
2269 # Check whether --with-includes was given.
2270 if test "${with_includes+set}" = set; then
2271 withval=$with_includes;
2274 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-includes option
" >&5
2275 $as_echo "$as_me: error
: argument required
for --with-includes option
" >&2;}
2276 { (exit 1); exit 1; }; }
2279 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-includes option
" >&5
2280 $as_echo "$as_me: error
: argument required
for --with-includes option
" >&2;}
2281 { (exit 1); exit 1; }; }
2294 # Add non-standard directories to the library search path
2299 # Check whether --with-libraries was given.
2300 if test "${with_libraries+set}" = set; then
2301 withval=$with_libraries;
2304 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-libraries option
" >&5
2305 $as_echo "$as_me: error
: argument required
for --with-libraries option
" >&2;}
2306 { (exit 1); exit 1; }; }
2309 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-libraries option
" >&5
2310 $as_echo "$as_me: error
: argument required
for --with-libraries option
" >&2;}
2311 { (exit 1); exit 1; }; }
2314 LIBRARY_DIRS=$withval
2325 # Check whether --with-libs was given.
2326 if test "${with_libs+set}" = set; then
2330 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-libs option
" >&5
2331 $as_echo "$as_me: error
: argument required
for --with-libs option
" >&2;}
2332 { (exit 1); exit 1; }; }
2335 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-libs option
" >&5
2336 $as_echo "$as_me: error
: argument required
for --with-libs option
" >&2;}
2337 { (exit 1); exit 1; }; }
2340 LIBRARY_DIRS=$withval
2350 # 64-bit integer date/time storage: enabled by default.
2352 { $as_echo "$as_me:$LINENO: checking whether to build with
64-bit integer date
/time support
" >&5
2353 $as_echo_n "checking whether to build with
64-bit integer date
/time support...
" >&6; }
2356 # Check whether --enable-integer-datetimes was given.
2357 if test "${enable_integer_datetimes+set}" = set; then
2358 enableval=$enable_integer_datetimes;
2362 cat >>confdefs.h <<\_ACEOF
2363 #define USE_INTEGER_DATETIMES 1
2371 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-integer-datetimes option
" >&5
2372 $as_echo "$as_me: error
: no argument expected
for --enable-integer-datetimes option
" >&2;}
2373 { (exit 1); exit 1; }; }
2378 enable_integer_datetimes=yes
2380 cat >>confdefs.h <<\_ACEOF
2381 #define USE_INTEGER_DATETIMES 1
2387 { $as_echo "$as_me:$LINENO: result
: $enable_integer_datetimes" >&5
2388 $as_echo "$enable_integer_datetimes" >&6; }
2394 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted
" >&5
2395 $as_echo_n "checking whether NLS is wanted...
" >&6; }
2398 # Check whether --enable-nls was given.
2399 if test "${enable_nls+set}" = set; then
2400 enableval=$enable_nls;
2410 WANTED_LANGUAGES=$enableval
2420 if test "$enable_nls" = yes; then
2422 cat >>confdefs.h <<\_ACEOF
2423 #define ENABLE_NLS 1
2428 { $as_echo "$as_me:$LINENO: result
: $enable_nls" >&5
2429 $as_echo "$enable_nls" >&6; }
2434 # Default port number (--with-pgport), default 5432
2436 { $as_echo "$as_me:$LINENO: checking
for default port number
" >&5
2437 $as_echo_n "checking
for default port number...
" >&6; }
2441 # Check whether --with-pgport was given.
2442 if test "${with_pgport+set}" = set; then
2443 withval=$with_pgport;
2446 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-pgport option
" >&5
2447 $as_echo "$as_me: error
: argument required
for --with-pgport option
" >&2;}
2448 { (exit 1); exit 1; }; }
2451 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-pgport option
" >&5
2452 $as_echo "$as_me: error
: argument required
for --with-pgport option
" >&2;}
2453 { (exit 1); exit 1; }; }
2456 default_port=$withval
2465 { $as_echo "$as_me:$LINENO: result
: $default_port" >&5
2466 $as_echo "$default_port" >&6; }
2467 # Need both of these because some places want an integer and some a string
2469 cat >>confdefs.h <<_ACEOF
2470 #define DEF_PGPORT ${default_port}
2474 cat >>confdefs.h <<_ACEOF
2475 #define DEF_PGPORT_STR "${default_port}"
2481 # Option to disable shared libraries
2485 # Check whether --enable-shared was given.
2486 if test "${enable_shared+set}" = set; then
2487 enableval=$enable_shared;
2496 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-shared option
" >&5
2497 $as_echo "$as_me: error
: no argument expected
for --enable-shared option
" >&2;}
2498 { (exit 1); exit 1; }; }
2511 # '-rpath'-like feature can be disabled
2515 # Check whether --enable-rpath was given.
2516 if test "${enable_rpath+set}" = set; then
2517 enableval=$enable_rpath;
2526 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-rpath option
" >&5
2527 $as_echo "$as_me: error
: no argument expected
for --enable-rpath option
" >&2;}
2528 { (exit 1); exit 1; }; }
2545 # Check whether --enable-spinlocks was given.
2546 if test "${enable_spinlocks+set}" = set; then
2547 enableval=$enable_spinlocks;
2556 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-spinlocks option
" >&5
2557 $as_echo "$as_me: error
: no argument expected
for --enable-spinlocks option
" >&2;}
2558 { (exit 1); exit 1; }; }
2563 enable_spinlocks=yes
2570 # --enable-debug adds -g to compiler flags
2574 # Check whether --enable-debug was given.
2575 if test "${enable_debug+set}" = set; then
2576 enableval=$enable_debug;
2585 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-debug option
" >&5
2586 $as_echo "$as_me: error
: no argument expected
for --enable-debug option
" >&2;}
2587 { (exit 1); exit 1; }; }
2600 # --enable-profiling enables gcc profiling
2604 # Check whether --enable-profiling was given.
2605 if test "${enable_profiling+set}" = set; then
2606 enableval=$enable_profiling;
2615 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-profiling option
" >&5
2616 $as_echo "$as_me: error
: no argument expected
for --enable-profiling option
" >&2;}
2617 { (exit 1); exit 1; }; }
2630 # --enable-coverage enables generation of code coverage metrics with gcov
2634 # Check whether --enable-coverage was given.
2635 if test "${enable_coverage+set}" = set; then
2636 enableval=$enable_coverage;
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2644 $as_echo_n "checking
for $ac_word...
" >&6; }
2645 if test "${ac_cv_prog_GCOV+set}" = set; then
2646 $as_echo_n "(cached
) " >&6
2648 if test -n "$GCOV"; then
2649 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_GCOV="$ac_prog"
2659 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2668 GCOV=$ac_cv_prog_GCOV
2669 if test -n "$GCOV"; then
2670 { $as_echo "$as_me:$LINENO: result
: $GCOV" >&5
2671 $as_echo "$GCOV" >&6; }
2673 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2674 $as_echo "no
" >&6; }
2678 test -n "$GCOV" && break
2681 if test -z "$GCOV"; then
2682 { { $as_echo "$as_me:$LINENO: error
: gcov not found
" >&5
2683 $as_echo "$as_me: error
: gcov not found
" >&2;}
2684 { (exit 1); exit 1; }; }
2688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2691 $as_echo_n "checking
for $ac_word...
" >&6; }
2692 if test "${ac_cv_prog_LCOV+set}" = set; then
2693 $as_echo_n "(cached
) " >&6
2695 if test -n "$LCOV"; then
2696 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_LCOV="$ac_prog"
2706 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2715 LCOV=$ac_cv_prog_LCOV
2716 if test -n "$LCOV"; then
2717 { $as_echo "$as_me:$LINENO: result
: $LCOV" >&5
2718 $as_echo "$LCOV" >&6; }
2720 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2721 $as_echo "no
" >&6; }
2725 test -n "$LCOV" && break
2728 if test -z "$LCOV"; then
2729 { { $as_echo "$as_me:$LINENO: error
: lcov not found
" >&5
2730 $as_echo "$as_me: error
: lcov not found
" >&2;}
2731 { (exit 1); exit 1; }; }
2733 for ac_prog in genhtml
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2738 $as_echo_n "checking
for $ac_word...
" >&6; }
2739 if test "${ac_cv_prog_GENHTML+set}" = set; then
2740 $as_echo_n "(cached
) " >&6
2742 if test -n "$GENHTML"; then
2743 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_GENHTML="$ac_prog"
2753 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2762 GENHTML=$ac_cv_prog_GENHTML
2763 if test -n "$GENHTML"; then
2764 { $as_echo "$as_me:$LINENO: result
: $GENHTML" >&5
2765 $as_echo "$GENHTML" >&6; }
2767 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2768 $as_echo "no
" >&6; }
2772 test -n "$GENHTML" && break
2775 if test -z "$GENHTML"; then
2776 { { $as_echo "$as_me:$LINENO: error
: genhtml not found
" >&5
2777 $as_echo "$as_me: error
: genhtml not found
" >&2;}
2778 { (exit 1); exit 1; }; }
2785 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-coverage option
" >&5
2786 $as_echo "$as_me: error
: no argument expected
for --enable-coverage option
" >&2;}
2787 { (exit 1); exit 1; }; }
2804 # Check whether --enable-dtrace was given.
2805 if test "${enable_dtrace+set}" = set; then
2806 enableval=$enable_dtrace;
2810 cat >>confdefs.h <<\_ACEOF
2811 #define ENABLE_DTRACE 1
2814 for ac_prog in dtrace
2816 # Extract the first word of "$ac_prog", so it can be a program name with args.
2817 set dummy $ac_prog; ac_word=$2
2818 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2819 $as_echo_n "checking
for $ac_word...
" >&6; }
2820 if test "${ac_cv_prog_DTRACE+set}" = set; then
2821 $as_echo_n "(cached
) " >&6
2823 if test -n "$DTRACE"; then
2824 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_DTRACE="$ac_prog"
2834 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2843 DTRACE=$ac_cv_prog_DTRACE
2844 if test -n "$DTRACE"; then
2845 { $as_echo "$as_me:$LINENO: result
: $DTRACE" >&5
2846 $as_echo "$DTRACE" >&6; }
2848 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2849 $as_echo "no
" >&6; }
2853 test -n "$DTRACE" && break
2856 if test -z "$DTRACE"; then
2857 { { $as_echo "$as_me:$LINENO: error
: dtrace not found
" >&5
2858 $as_echo "$as_me: error
: dtrace not found
" >&2;}
2859 { (exit 1); exit 1; }; }
2867 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-dtrace option
" >&5
2868 $as_echo "$as_me: error
: no argument expected
for --enable-dtrace option
" >&2;}
2869 { (exit 1); exit 1; }; }
2884 { $as_echo "$as_me:$LINENO: checking
for block size
" >&5
2885 $as_echo_n "checking
for block size...
" >&6; }
2889 # Check whether --with-blocksize was given.
2890 if test "${with_blocksize+set}" = set; then
2891 withval=$with_blocksize;
2894 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-blocksize option
" >&5
2895 $as_echo "$as_me: error
: argument required
for --with-blocksize option
" >&2;}
2896 { (exit 1); exit 1; }; }
2899 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-blocksize option
" >&5
2900 $as_echo "$as_me: error
: argument required
for --with-blocksize option
" >&2;}
2901 { (exit 1); exit 1; }; }
2913 case ${blocksize} in
2920 *) { { $as_echo "$as_me:$LINENO: error
: Invalid block size. Allowed values are
1,2,4,8,16,32.
" >&5
2921 $as_echo "$as_me: error
: Invalid block size. Allowed values are
1,2,4,8,16,32.
" >&2;}
2922 { (exit 1); exit 1; }; }
2924 { $as_echo "$as_me:$LINENO: result
: ${blocksize}kB
" >&5
2925 $as_echo "${blocksize}kB
" >&6; }
2928 cat >>confdefs.h <<_ACEOF
2929 #define BLCKSZ ${BLCKSZ}
2934 # Relation segment size
2936 { $as_echo "$as_me:$LINENO: checking
for segment size
" >&5
2937 $as_echo_n "checking
for segment size...
" >&6; }
2941 # Check whether --with-segsize was given.
2942 if test "${with_segsize+set}" = set; then
2943 withval=$with_segsize;
2946 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-segsize option
" >&5
2947 $as_echo "$as_me: error
: argument required
for --with-segsize option
" >&2;}
2948 { (exit 1); exit 1; }; }
2951 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-segsize option
" >&5
2952 $as_echo "$as_me: error
: argument required
for --with-segsize option
" >&2;}
2953 { (exit 1); exit 1; }; }
2965 # this expression is set up to avoid unnecessary integer overflow
2966 # blocksize is already guaranteed to be a factor of 1024
2967 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2968 test $? -eq 0 || exit 1
2969 { $as_echo "$as_me:$LINENO: result
: ${segsize}GB
" >&5
2970 $as_echo "${segsize}GB
" >&6; }
2973 cat >>confdefs.h <<_ACEOF
2974 #define RELSEG_SIZE ${RELSEG_SIZE}
2981 { $as_echo "$as_me:$LINENO: checking
for WAL block size
" >&5
2982 $as_echo_n "checking
for WAL block size...
" >&6; }
2986 # Check whether --with-wal-blocksize was given.
2987 if test "${with_wal_blocksize+set}" = set; then
2988 withval=$with_wal_blocksize;
2991 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-wal-blocksize option
" >&5
2992 $as_echo "$as_me: error
: argument required
for --with-wal-blocksize option
" >&2;}
2993 { (exit 1); exit 1; }; }
2996 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-wal-blocksize option
" >&5
2997 $as_echo "$as_me: error
: argument required
for --with-wal-blocksize option
" >&2;}
2998 { (exit 1); exit 1; }; }
3001 wal_blocksize=$withval
3010 case ${wal_blocksize} in
3011 1) XLOG_BLCKSZ=1024;;
3012 2) XLOG_BLCKSZ=2048;;
3013 4) XLOG_BLCKSZ=4096;;
3014 8) XLOG_BLCKSZ=8192;;
3015 16) XLOG_BLCKSZ=16384;;
3016 32) XLOG_BLCKSZ=32768;;
3017 64) XLOG_BLCKSZ=65536;;
3018 *) { { $as_echo "$as_me:$LINENO: error
: Invalid WAL block size. Allowed values are
1,2,4,8,16,32,64.
" >&5
3019 $as_echo "$as_me: error
: Invalid WAL block size. Allowed values are
1,2,4,8,16,32,64.
" >&2;}
3020 { (exit 1); exit 1; }; }
3022 { $as_echo "$as_me:$LINENO: result
: ${wal_blocksize}kB
" >&5
3023 $as_echo "${wal_blocksize}kB
" >&6; }
3026 cat >>confdefs.h <<_ACEOF
3027 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3034 { $as_echo "$as_me:$LINENO: checking
for WAL segment size
" >&5
3035 $as_echo_n "checking
for WAL segment size...
" >&6; }
3039 # Check whether --with-wal-segsize was given.
3040 if test "${with_wal_segsize+set}" = set; then
3041 withval=$with_wal_segsize;
3044 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-wal-segsize option
" >&5
3045 $as_echo "$as_me: error
: argument required
for --with-wal-segsize option
" >&2;}
3046 { (exit 1); exit 1; }; }
3049 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-wal-segsize option
" >&5
3050 $as_echo "$as_me: error
: argument required
for --with-wal-segsize option
" >&2;}
3051 { (exit 1); exit 1; }; }
3054 wal_segsize=$withval
3063 case ${wal_segsize} in
3071 *) { { $as_echo "$as_me:$LINENO: error
: Invalid WAL segment size. Allowed values are
1,2,4,8,16,32,64.
" >&5
3072 $as_echo "$as_me: error
: Invalid WAL segment size. Allowed values are
1,2,4,8,16,32,64.
" >&2;}
3073 { (exit 1); exit 1; }; }
3075 { $as_echo "$as_me:$LINENO: result
: ${wal_segsize}MB
" >&5
3076 $as_echo "${wal_segsize}MB
" >&6; }
3079 cat >>confdefs.h <<_ACEOF
3080 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3088 # For historical reasons you can also use --with-CC to specify the C compiler
3089 # to use, although the standard way to do this is to set the CC environment
3094 # Check whether --with-CC was given.
3095 if test "${with_CC+set}" = set; then
3099 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-CC option
" >&5
3100 $as_echo "$as_me: error
: argument required
for --with-CC option
" >&2;}
3101 { (exit 1); exit 1; }; }
3104 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-CC option
" >&5
3105 $as_echo "$as_me: error
: argument required
for --with-CC option
" >&2;}
3106 { (exit 1); exit 1; }; }
3118 aix) pgac_cc_list="gcc xlc
";;
3119 irix) pgac_cc_list="cc
";; # no gcc
3120 *) pgac_cc_list="gcc cc
";;
3124 ac_cpp='$CPP $CPPFLAGS'
3125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128 if test -n "$ac_tool_prefix"; then
3129 for ac_prog in $pgac_cc_list
3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
3134 $as_echo_n "checking
for $ac_word...
" >&6; }
3135 if test "${ac_cv_prog_CC+set}" = set; then
3136 $as_echo_n "(cached
) " >&6
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
3161 $as_echo "$CC" >&6; }
3163 { $as_echo "$as_me:$LINENO: result
: no
" >&5
3164 $as_echo "no
" >&6; }
3168 test -n "$CC" && break
3171 if test -z "$CC"; then
3173 for ac_prog in $pgac_cc_list
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
3178 $as_echo_n "checking
for $ac_word...
" >&6; }
3179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3180 $as_echo_n "(cached
) " >&6
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_CC="$ac_prog"
3193 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3207 { $as_echo "$as_me:$LINENO: result
: no
" >&5
3208 $as_echo "no
" >&6; }
3212 test -n "$ac_ct_CC" && break
3215 if test "x
$ac_ct_CC" = x; then
3218 case $cross_compiling:$ac_tool_warned in
3220 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3221 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3222 ac_tool_warned=yes ;;
3229 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details.
" >&5
3233 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
3234 See \
`config.log' for more details." >&2;}
3235 { (exit 1); exit 1; }; }; }
3237 # Provide some information about the compiler.
3238 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3241 { (ac_try="$ac_compiler --version >&5"
3243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3244 *) ac_try_echo
=$ac_try;;
3246 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3247 $as_echo "$ac_try_echo") >&5
3248 (eval "$ac_compiler --version >&5") 2>&5
3250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }
3252 { (ac_try
="$ac_compiler -v >&5"
3254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258 $as_echo "$ac_try_echo") >&5
3259 (eval "$ac_compiler -v >&5") 2>&5
3261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (ac_try="$ac_compiler -V >&5"
3265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3266 *) ac_try_echo
=$ac_try;;
3268 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compiler -V >&5") 2>&5
3272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }
3275 cat >conftest.
$ac_ext <<_ACEOF
3278 cat confdefs.h
>>conftest.
$ac_ext
3279 cat >>conftest.
$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3290 ac_clean_files_save
=$ac_clean_files
3291 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3292 # Try to create an executable without -o first, disregard a.out.
3293 # It will help us diagnose broken compilers, and finding out an intuition
3295 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3296 $as_echo_n "checking for C compiler default output file name... " >&6; }
3297 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3299 # The possible output files:
3300 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3303 for ac_file
in $ac_files
3306 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3307 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3312 if { (ac_try
="$ac_link_default"
3314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318 $as_echo "$ac_try_echo") >&5
3319 (eval "$ac_link_default") 2>&5
3321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; then
3323 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3324 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3325 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3326 # so that the user can short-circuit this test for compilers unknown to
3328 for ac_file in $ac_files ''
3330 test -f "$ac_file" || continue
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3335 # We found the default executable, but exeext='' is most
3339 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3341 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 # We set ac_cv_exeext here because the later test for it is not
3344 # safe: cross compilers may not add the suffix if given an `-o'
3345 # argument, so we may need to know it at that point already.
3346 # Even if this section looks crufty: it has the advantage of
3353 test "$ac_cv_exeext" = no && ac_cv_exeext=
3359 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3360 $as_echo "$ac_file" >&6; }
3361 if test -z "$ac_file"; then
3362 $as_echo "$as_me: failed program was:" >&5
3363 sed 's
/^
/|
/' conftest.$ac_ext >&5
3365 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3367 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3368 See \`config.log
' for more details." >&5
3369 $as_echo "$as_me: error: C compiler cannot create executables
3370 See \`config.log' for more details.
" >&2;}
3371 { (exit 77); exit 77; }; }; }
3374 ac_exeext=$ac_cv_exeext
3376 # Check that the compiler produces executables we can run. If not, either
3377 # the compiler is broken, or we cross compile.
3378 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
3379 $as_echo_n "checking whether the C compiler works...
" >&6; }
3380 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3381 # If not cross compiling, check that we can run a simple program.
3382 if test "$cross_compiling" != yes; then
3383 if { ac_try='./$ac_file'
3384 { (case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3389 $as_echo "$ac_try_echo") >&5
3390 (eval "$ac_try") 2>&5
3392 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3393 (exit $ac_status); }; }; then
3396 if test "$cross_compiling" = maybe; then
3399 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \
`config.log' for more details." >&5
3404 $as_echo "$as_me: error: cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details.
" >&2;}
3407 { (exit 1); exit 1; }; }; }
3411 { $as_echo "$as_me:$LINENO: result
: yes" >&5
3412 $as_echo "yes" >&6; }
3414 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3415 ac_clean_files=$ac_clean_files_save
3416 # Check that the compiler produces executables we can run. If not, either
3417 # the compiler is broken, or we cross compile.
3418 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3419 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3420 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3421 $as_echo "$cross_compiling" >&6; }
3423 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3424 $as_echo_n "checking
for suffix of executables...
" >&6; }
3425 if { (ac_try="$ac_link"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_link") 2>&5
3434 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3435 (exit $ac_status); }; then
3436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3440 for ac_file in conftest.exe conftest conftest.*; do
3441 test -f "$ac_file" || continue
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details.
" >&5
3454 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
3455 See \
`config.log' for more details." >&2;}
3456 { (exit 1); exit 1; }; }; }
3459 rm -f conftest$ac_cv_exeext
3460 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3461 $as_echo "$ac_cv_exeext" >&6; }
3463 rm -f conftest.$ac_ext
3464 EXEEXT=$ac_cv_exeext
3466 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3467 $as_echo_n "checking for suffix of object files... " >&6; }
3468 if test "${ac_cv_objext+set}" = set; then
3469 $as_echo_n "(cached) " >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3486 rm -f conftest.o conftest.obj
3487 if { (ac_try="$ac_compile"
3489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3490 *) ac_try_echo
=$ac_try;;
3492 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494 (eval "$ac_compile") 2>&5
3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; then
3498 for ac_file
in conftest.o conftest.obj conftest.
*; do
3499 test -f "$ac_file" ||
continue;
3501 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3502 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3507 $as_echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.
$ac_ext >&5
3510 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details." >&5
3514 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&2;}
3516 { (exit 1); exit 1; }; }; }
3519 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3521 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3522 $as_echo "$ac_cv_objext" >&6; }
3523 OBJEXT
=$ac_cv_objext
3525 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3526 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3527 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3528 $as_echo_n "(cached) " >&6
3530 cat >conftest.
$ac_ext <<_ACEOF
3533 cat confdefs.h
>>conftest.
$ac_ext
3534 cat >>conftest.
$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3548 rm -f conftest.
$ac_objext
3549 if { (ac_try
="$ac_compile"
3551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555 $as_echo "$ac_try_echo") >&5
3556 (eval "$ac_compile") 2>conftest.er1
3558 grep -v '^ *+' conftest.er1 >conftest.err
3560 cat conftest.err >&5
3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && {
3563 test -z "$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3565 } && test -s conftest.$ac_objext; then
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3578 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3579 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3580 if test $ac_compiler_gnu = yes; then
3585 ac_test_CFLAGS=${CFLAGS+set}
3586 ac_save_CFLAGS=$CFLAGS
3587 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3588 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3589 if test "${ac_cv_prog_cc_g+set}" = set; then
3590 $as_echo_n "(cached) " >&6
3592 ac_save_c_werror_flag=$ac_c_werror_flag
3593 ac_c_werror_flag=yes
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3615 *) ac_try_echo
=$ac_try;;
3617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3618 $as_echo "$ac_try_echo") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1
>conftest.err
3623 cat conftest.err
>&5
3624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && {
3626 test -z "$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 } && test -s conftest.
$ac_objext; then
3631 $as_echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.
$ac_ext >&5
3635 cat >conftest.
$ac_ext <<_ACEOF
3638 cat confdefs.h
>>conftest.
$ac_ext
3639 cat >>conftest.
$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3650 rm -f conftest.
$ac_objext
3651 if { (ac_try
="$ac_compile"
3653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3657 $as_echo "$ac_try_echo") >&5
3658 (eval "$ac_compile") 2>conftest.er1
3660 grep -v '^ *+' conftest.er1 >conftest.err
3662 cat conftest.err >&5
3663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } && {
3665 test -z "$ac_c_werror_flag" ||
3666 test ! -s conftest.err
3667 } && test -s conftest.$ac_objext; then
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3694 *) ac_try_echo
=$ac_try;;
3696 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3697 $as_echo "$ac_try_echo") >&5
3698 (eval "$ac_compile") 2>conftest.er1
3700 grep -v '^ *+' conftest.er1
>conftest.err
3702 cat conftest.err
>&5
3703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest.
$ac_objext; then
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.
$ac_ext >&5
3716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3723 ac_c_werror_flag
=$ac_save_c_werror_flag
3725 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3726 $as_echo "$ac_cv_prog_cc_g" >&6; }
3727 if test "$ac_test_CFLAGS" = set; then
3728 CFLAGS
=$ac_save_CFLAGS
3729 elif test $ac_cv_prog_cc_g = yes; then
3730 if test "$GCC" = yes; then
3736 if test "$GCC" = yes; then
3742 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3743 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3744 if test "${ac_cv_prog_cc_c89+set}" = set; then
3745 $as_echo_n "(cached) " >&6
3747 ac_cv_prog_cc_c89
=no
3749 cat >conftest.
$ac_ext <<_ACEOF
3752 cat confdefs.h
>>conftest.
$ac_ext
3753 cat >>conftest.
$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3757 #include <sys/types.h>
3758 #include <sys/stat.h>
3759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3760 struct buf { int x; };
3761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3762 static char *e (p, i)
3768 static char *f (char * (*g) (char **, int), char **p, ...)
3773 s = g (p, va_arg (v,int));
3778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3779 function prototypes and stuff, but not '\xHH' hex character constants.
3780 These don't provoke an error unfortunately, instead are silently treated
3781 as 'x'. The following induces an error, until -std is added to get
3782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3783 array size at least. It's necessary to write '\x00'==0 to get something
3784 that's true only with -std. */
3785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3788 inside strings and character constants. */
3790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3792 int test (int i, double x);
3793 struct s1 {int (*f) (int a);};
3794 struct s2 {int (*f) (double a);};
3795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3806 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3809 CC
="$ac_save_CC $ac_arg"
3810 rm -f conftest.
$ac_objext
3811 if { (ac_try
="$ac_compile"
3813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3817 $as_echo "$ac_try_echo") >&5
3818 (eval "$ac_compile") 2>conftest.er1
3820 grep -v '^ *+' conftest.er1 >conftest.err
3822 cat conftest.err >&5
3823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } && {
3825 test -z "$ac_c_werror_flag" ||
3826 test ! -s conftest.err
3827 } && test -s conftest.$ac_objext; then
3828 ac_cv_prog_cc_c89=$ac_arg
3830 $as_echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3836 rm -f core conftest.err conftest.$ac_objext
3837 test "x$ac_cv_prog_cc_c89" != "xno" && break
3839 rm -f conftest.$ac_ext
3844 case "x$ac_cv_prog_cc_c89" in
3846 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3847 $as_echo "none needed" >&6; } ;;
3849 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3850 $as_echo "unsupported" >&6; } ;;
3852 CC="$CC $ac_cv_prog_cc_c89"
3853 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3854 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3866 # but has idiosyncrasies of its own. We assume icc will define
3867 # __INTEL_COMPILER regardless of CFLAGS.
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3879 #ifndef __INTEL_COMPILER
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3890 *) ac_try_echo
=$ac_try;;
3892 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3893 $as_echo "$ac_try_echo") >&5
3894 (eval "$ac_compile") 2>conftest.er1
3896 grep -v '^ *+' conftest.er1
>conftest.err
3898 cat conftest.err
>&5
3899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } && {
3901 test -z "$ac_c_werror_flag" ||
3902 test ! -s conftest.err
3903 } && test -s conftest.
$ac_objext; then
3906 $as_echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.
$ac_ext >&5
3912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3914 # Check if it's Sun Studio compiler. We assume that
3915 # __SUNPRO_C will be defined for Sun Studio compilers
3916 cat >conftest.
$ac_ext <<_ACEOF
3919 cat confdefs.h
>>conftest.
$ac_ext
3920 cat >>conftest.
$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3933 rm -f conftest.
$ac_objext
3934 if { (ac_try
="$ac_compile"
3936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3953 $as_echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 . "$srcdir/src/template/$template" || exit
3970 # CFLAGS are selected so:
3971 # If the user specifies something in the environment, that is used.
3972 # else: If the template file set something, that is used.
3973 # else: If coverage was enabled, don't set anything.
3974 # else: If the compiler is GCC, then we use -O2.
3975 # else: If the compiler is something else, then we use -O, unless debugging.
3977 if test "$ac_env_CFLAGS_set" = set; then
3978 CFLAGS=$ac_env_CFLAGS_value
3979 elif test "${CFLAGS+set}" = set; then
3980 : # (keep what template set)
3981 elif test "$enable_coverage" = yes; then
3982 : # no optimization by default
3983 elif test "$GCC" = yes; then
3986 # if the user selected debug mode, don't use -O
3987 if test "$enable_debug" != yes; then
3992 # Some versions of GCC support some additional useful warning flags.
3993 # Check whether they are supported, and add them to CFLAGS if so.
3994 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3995 # but has its own. Also check other compiler-specific flags here.
3997 if test "$GCC" = yes -a "$ICC" = no; then
3998 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3999 # These work in some but not all gcc versions
4000 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4001 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4002 pgac_save_CFLAGS=$CFLAGS
4003 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4023 *) ac_try_echo
=$ac_try;;
4025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4026 $as_echo "$ac_try_echo") >&5
4027 (eval "$ac_compile") 2>conftest.er1
4029 grep -v '^ *+' conftest.er1
>conftest.err
4031 cat conftest.err
>&5
4032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } && {
4034 test -z "$ac_c_werror_flag" ||
4035 test ! -s conftest.err
4036 } && test -s conftest.
$ac_objext; then
4037 { $as_echo "$as_me:$LINENO: result: yes" >&5
4038 $as_echo "yes" >&6; }
4040 $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.
$ac_ext >&5
4043 CFLAGS
="$pgac_save_CFLAGS"
4044 { $as_echo "$as_me:$LINENO: result: no" >&5
4045 $as_echo "no" >&6; }
4048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4050 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4051 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4052 pgac_save_CFLAGS
=$CFLAGS
4053 CFLAGS
="$pgac_save_CFLAGS -Wendif-labels"
4054 cat >conftest.
$ac_ext <<_ACEOF
4057 cat confdefs.h
>>conftest.
$ac_ext
4058 cat >>conftest.
$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4069 rm -f conftest.
$ac_objext
4070 if { (ac_try
="$ac_compile"
4072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4076 $as_echo "$ac_try_echo") >&5
4077 (eval "$ac_compile") 2>conftest.er1
4079 grep -v '^ *+' conftest.er1 >conftest.err
4081 cat conftest.err >&5
4082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && {
4084 test -z "$ac_c_werror_flag" ||
4085 test ! -s conftest.err
4086 } && test -s conftest.$ac_objext; then
4087 { $as_echo "$as_me:$LINENO: result: yes" >&5
4088 $as_echo "yes" >&6; }
4090 $as_echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 CFLAGS="$pgac_save_CFLAGS"
4094 { $as_echo "$as_me:$LINENO: result: no" >&5
4095 $as_echo "no" >&6; }
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 # Disable strict-aliasing rules; needed for gcc 3.3+
4101 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4102 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4103 pgac_save_CFLAGS=$CFLAGS
4104 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4120 rm -f conftest.$ac_objext
4121 if { (ac_try="$ac_compile"
4123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4124 *) ac_try_echo
=$ac_try;;
4126 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4127 $as_echo "$ac_try_echo") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4130 grep -v '^ *+' conftest.er1
>conftest.err
4132 cat conftest.err
>&5
4133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest.
$ac_objext; then
4138 { $as_echo "$as_me:$LINENO: result: yes" >&5
4139 $as_echo "yes" >&6; }
4141 $as_echo "$as_me: failed program was:" >&5
4142 sed 's/^/| /' conftest.
$ac_ext >&5
4144 CFLAGS
="$pgac_save_CFLAGS"
4145 { $as_echo "$as_me:$LINENO: result: no" >&5
4146 $as_echo "no" >&6; }
4149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4151 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4152 { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4153 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4154 pgac_save_CFLAGS
=$CFLAGS
4155 CFLAGS
="$pgac_save_CFLAGS -fwrapv"
4156 cat >conftest.
$ac_ext <<_ACEOF
4159 cat confdefs.h
>>conftest.
$ac_ext
4160 cat >>conftest.
$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4171 rm -f conftest.
$ac_objext
4172 if { (ac_try
="$ac_compile"
4174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4178 $as_echo "$ac_try_echo") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4181 grep -v '^ *+' conftest.er1 >conftest.err
4183 cat conftest.err >&5
4184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); } && {
4186 test -z "$ac_c_werror_flag" ||
4187 test ! -s conftest.err
4188 } && test -s conftest.$ac_objext; then
4189 { $as_echo "$as_me:$LINENO: result: yes" >&5
4190 $as_echo "yes" >&6; }
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 CFLAGS="$pgac_save_CFLAGS"
4196 { $as_echo "$as_me:$LINENO: result: no" >&5
4197 $as_echo "no" >&6; }
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 elif test "$ICC" = yes; then
4203 # Intel's compiler has a bug/misoptimization in checking for
4204 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4205 { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4206 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4207 pgac_save_CFLAGS=$CFLAGS
4208 CFLAGS="$pgac_save_CFLAGS -mp1"
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4224 rm -f conftest.$ac_objext
4225 if { (ac_try="$ac_compile"
4227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4228 *) ac_try_echo
=$ac_try;;
4230 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4231 $as_echo "$ac_try_echo") >&5
4232 (eval "$ac_compile") 2>conftest.er1
4234 grep -v '^ *+' conftest.er1
>conftest.err
4236 cat conftest.err
>&5
4237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } && {
4239 test -z "$ac_c_werror_flag" ||
4240 test ! -s conftest.err
4241 } && test -s conftest.
$ac_objext; then
4242 { $as_echo "$as_me:$LINENO: result: yes" >&5
4243 $as_echo "yes" >&6; }
4245 $as_echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.
$ac_ext >&5
4248 CFLAGS
="$pgac_save_CFLAGS"
4249 { $as_echo "$as_me:$LINENO: result: no" >&5
4250 $as_echo "no" >&6; }
4253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4255 # Make sure strict aliasing is off (though this is said to be the default)
4256 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4257 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4258 pgac_save_CFLAGS
=$CFLAGS
4259 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
4260 cat >conftest.
$ac_ext <<_ACEOF
4263 cat confdefs.h
>>conftest.
$ac_ext
4264 cat >>conftest.
$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4275 rm -f conftest.
$ac_objext
4276 if { (ac_try
="$ac_compile"
4278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4282 $as_echo "$ac_try_echo") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4285 grep -v '^ *+' conftest.er1 >conftest.err
4287 cat conftest.err >&5
4288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && {
4290 test -z "$ac_c_werror_flag" ||
4291 test ! -s conftest.err
4292 } && test -s conftest.$ac_objext; then
4293 { $as_echo "$as_me:$LINENO: result: yes" >&5
4294 $as_echo "yes" >&6; }
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 CFLAGS="$pgac_save_CFLAGS"
4300 { $as_echo "$as_me:$LINENO: result: no" >&5
4301 $as_echo "no" >&6; }
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 elif test "$PORTNAME" = "aix"; then
4307 # AIX's xlc has to have strict aliasing turned off too
4308 { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4309 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4310 pgac_save_CFLAGS=$CFLAGS
4311 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4327 rm -f conftest.$ac_objext
4328 if { (ac_try="$ac_compile"
4330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4331 *) ac_try_echo
=$ac_try;;
4333 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4334 $as_echo "$ac_try_echo") >&5
4335 (eval "$ac_compile") 2>conftest.er1
4337 grep -v '^ *+' conftest.er1
>conftest.err
4339 cat conftest.err
>&5
4340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } && {
4342 test -z "$ac_c_werror_flag" ||
4343 test ! -s conftest.err
4344 } && test -s conftest.
$ac_objext; then
4345 { $as_echo "$as_me:$LINENO: result: yes" >&5
4346 $as_echo "yes" >&6; }
4348 $as_echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.
$ac_ext >&5
4351 CFLAGS
="$pgac_save_CFLAGS"
4352 { $as_echo "$as_me:$LINENO: result: no" >&5
4353 $as_echo "no" >&6; }
4356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4360 # supply -g if --enable-debug
4361 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4365 # enable code coverage if --enable-coverage
4366 if test "$enable_coverage" = yes; then
4367 if test "$GCC" = yes; then
4368 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
4370 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4371 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4372 { (exit 1); exit 1; }; }
4376 # enable profiling if --enable-profiling
4377 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4378 if test "$GCC" = yes; then
4380 cat >>confdefs.h
<<\_ACEOF
4381 #define PROFILE_PID_DIR 1
4384 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4386 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4387 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4388 { (exit 1); exit 1; }; }
4392 # We already have this in Makefile.win32, but configure needs it too
4393 if test "$PORTNAME" = "win32"; then
4394 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4397 # Check if the compiler still works with the template settings
4398 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4399 $as_echo_n "checking whether the C compiler still works... " >&6; }
4400 cat >conftest.
$ac_ext <<_ACEOF
4403 cat confdefs.h
>>conftest.
$ac_ext
4404 cat >>conftest.
$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4415 rm -f conftest.
$ac_objext conftest
$ac_exeext
4416 if { (ac_try
="$ac_link"
4418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4422 $as_echo "$ac_try_echo") >&5
4423 (eval "$ac_link") 2>conftest.er1
4425 grep -v '^ *+' conftest.er1 >conftest.err
4427 cat conftest.err >&5
4428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } && {
4430 test -z "$ac_c_werror_flag" ||
4431 test ! -s conftest.err
4432 } && test -s conftest$ac_exeext && {
4433 test "$cross_compiling" = yes ||
4434 $as_test_x conftest$ac_exeext
4436 { $as_echo "$as_me:$LINENO: result: yes" >&5
4437 $as_echo "yes" >&6; }
4439 $as_echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4442 { $as_echo "$as_me:$LINENO: result: no" >&5
4443 $as_echo "no" >&6; }
4444 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4445 $as_echo "$as_me: error: cannot proceed" >&2;}
4446 { (exit 1); exit 1; }; }
4449 rm -rf conftest.dSYM
4450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4451 conftest$ac_exeext conftest.$ac_ext
4453 # Defend against gcc -ffast-math
4454 if test "$GCC" = yes; then
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4465 #ifdef __FAST_MATH__
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4476 *) ac_try_echo
=$ac_try;;
4478 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4479 $as_echo "$ac_try_echo") >&5
4480 (eval "$ac_compile") 2>conftest.er1
4482 grep -v '^ *+' conftest.er1
>conftest.err
4484 cat conftest.err
>&5
4485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } && {
4487 test -z "$ac_c_werror_flag" ||
4488 test ! -s conftest.err
4489 } && test -s conftest.
$ac_objext; then
4492 $as_echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.
$ac_ext >&5
4495 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4496 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4497 { (exit 1); exit 1; }; }
4500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4504 ac_cpp
='$CPP $CPPFLAGS'
4505 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4508 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4509 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4510 # On Suns, sometimes $CPP names a directory.
4511 if test -n "$CPP" && test -d "$CPP"; then
4514 if test -z "$CPP"; then
4515 if test "${ac_cv_prog_CPP+set}" = set; then
4516 $as_echo_n "(cached) " >&6
4518 # Double quotes because CPP needs to be expanded
4519 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4522 for ac_c_preproc_warn_flag
in '' yes
4524 # Use a header file that comes with gcc, so configuring glibc
4525 # with a fresh cross-compiler works.
4526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527 # <limits.h> exists even on freestanding compilers.
4528 # On the NeXT, cc -E runs the code through the compiler's parser,
4529 # not just through cpp. "Syntax error" is here to catch this case.
4530 cat >conftest.
$ac_ext <<_ACEOF
4533 cat confdefs.h
>>conftest.
$ac_ext
4534 cat >>conftest.
$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4537 # include <limits.h>
4539 # include <assert.h>
4543 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4549 $as_echo "$ac_try_echo") >&5
4550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } >/dev/null && {
4557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4562 $as_echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4565 # Broken: fails on valid input.
4569 rm -f conftest.err conftest.$ac_ext
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 #include <ac_nonexistent.h>
4581 if { (ac_try="$ac_cpp conftest.$ac_ext"
4583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4584 *) ac_try_echo
=$ac_try;;
4586 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4587 $as_echo "$ac_try_echo") >&5
4588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4590 grep -v '^ *+' conftest.er1
>conftest.err
4592 cat conftest.err
>&5
4593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } >/dev
/null
&& {
4595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4596 test ! -s conftest.err
4598 # Broken: success on invalid input.
4601 $as_echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.
$ac_ext >&5
4604 # Passes both tests.
4609 rm -f conftest.err conftest.
$ac_ext
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.err conftest.
$ac_ext
4614 if $ac_preproc_ok; then
4626 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4627 $as_echo "$CPP" >&6; }
4629 for ac_c_preproc_warn_flag
in '' yes
4631 # Use a header file that comes with gcc, so configuring glibc
4632 # with a fresh cross-compiler works.
4633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4634 # <limits.h> exists even on freestanding compilers.
4635 # On the NeXT, cc -E runs the code through the compiler's parser,
4636 # not just through cpp. "Syntax error" is here to catch this case.
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 cat confdefs.h
>>conftest.
$ac_ext
4641 cat >>conftest.
$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4644 # include <limits.h>
4646 # include <assert.h>
4650 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4656 $as_echo "$ac_try_echo") >&5
4657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4659 grep -v '^ *+' conftest.er1 >conftest.err
4661 cat conftest.err >&5
4662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } >/dev/null && {
4664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4665 test ! -s conftest.err
4669 $as_echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 # Broken: fails on valid input.
4676 rm -f conftest.err conftest.$ac_ext
4678 # OK, works on sane cases. Now check whether nonexistent headers
4679 # can be detected and how.
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <ac_nonexistent.h>
4688 if { (ac_try="$ac_cpp conftest.$ac_ext"
4690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4691 *) ac_try_echo
=$ac_try;;
4693 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4694 $as_echo "$ac_try_echo") >&5
4695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4697 grep -v '^ *+' conftest.er1
>conftest.err
4699 cat conftest.err
>&5
4700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } >/dev
/null
&& {
4702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4705 # Broken: success on invalid input.
4708 $as_echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.
$ac_ext >&5
4711 # Passes both tests.
4716 rm -f conftest.err conftest.
$ac_ext
4719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4720 rm -f conftest.err conftest.
$ac_ext
4721 if $ac_preproc_ok; then
4724 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4726 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4727 See \`config.log' for more details." >&5
4728 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4729 See \`config.log' for more details." >&2;}
4730 { (exit 1); exit 1; }; }; }
4734 ac_cpp
='$CPP $CPPFLAGS'
4735 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4743 # Set up TAS assembly code if needed; the template file has now had its
4744 # chance to request this.
4746 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4749 if test "$need_tas" = yes ; then
4758 # Automatic dependency tracking
4762 # Check whether --enable-depend was given.
4763 if test "${enable_depend+set}" = set; then
4764 enableval
=$enable_depend;
4773 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4774 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4775 { (exit 1); exit 1; }; }
4789 # Enable assert checks
4793 # Check whether --enable-cassert was given.
4794 if test "${enable_cassert+set}" = set; then
4795 enableval
=$enable_cassert;
4799 cat >>confdefs.h
<<\_ACEOF
4800 #define USE_ASSERT_CHECKING 1
4808 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4809 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4810 { (exit 1); exit 1; }; }
4823 # Include directories
4826 IFS
="${IFS}${PATH_SEPARATOR}"
4827 # SRCH_INC comes from the template file
4828 for dir
in $with_includes $SRCH_INC; do
4829 if test -d "$dir"; then
4830 INCLUDES
="$INCLUDES -I$dir"
4832 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4833 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4841 # Library directories
4844 IFS
="${IFS}${PATH_SEPARATOR}"
4845 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4846 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4847 if test -d "$dir"; then
4848 LIBDIRS
="$LIBDIRS -L$dir"
4850 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4851 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4857 # Enable thread-safe client libraries
4859 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4860 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4861 if test "$PORTNAME" != "win32"; then
4864 # Check whether --enable-thread-safety was given.
4865 if test "${enable_thread_safety+set}" = set; then
4866 enableval
=$enable_thread_safety;
4875 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4876 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4877 { (exit 1); exit 1; }; }
4882 enable_thread_safety
=no
4888 # Win32 should always use threads
4891 # Check whether --enable-thread-safety was given.
4892 if test "${enable_thread_safety+set}" = set; then
4893 enableval
=$enable_thread_safety;
4902 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4903 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4904 { (exit 1); exit 1; }; }
4909 enable_thread_safety
=yes
4918 # Check whether --enable-thread-safety-force was given.
4919 if test "${enable_thread_safety_force+set}" = set; then
4920 enableval
=$enable_thread_safety_force;
4929 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4930 $as_echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4931 { (exit 1); exit 1; }; }
4936 enable_thread_safety_force
=no
4941 if test "$enable_thread_safety" = yes -o \
4942 "$enable_thread_safety_force" = yes; then
4943 enable_thread_safety
="yes" # for 'force'
4945 cat >>confdefs.h
<<\_ACEOF
4946 #define ENABLE_THREAD_SAFETY 1
4950 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4951 $as_echo "$enable_thread_safety" >&6; }
4955 # Optionally build Tcl modules (PL/Tcl)
4957 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4958 $as_echo_n "checking whether to build with Tcl... " >&6; }
4962 # Check whether --with-tcl was given.
4963 if test "${with_tcl+set}" = set; then
4973 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4974 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4975 { (exit 1); exit 1; }; }
4985 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4986 $as_echo "$with_tcl" >&6; }
4989 # We see if the path to the Tcl/Tk configuration scripts is specified.
4990 # This will override the use of tclsh to find the paths to search.
4995 # Check whether --with-tclconfig was given.
4996 if test "${with_tclconfig+set}" = set; then
4997 withval
=$with_tclconfig;
5000 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5001 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5002 { (exit 1); exit 1; }; }
5005 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5006 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5007 { (exit 1); exit 1; }; }
5019 # Optionally build Perl modules (PL/Perl)
5021 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5022 $as_echo_n "checking whether to build Perl modules... " >&6; }
5026 # Check whether --with-perl was given.
5027 if test "${with_perl+set}" = set; then
5037 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5038 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5039 { (exit 1); exit 1; }; }
5049 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5050 $as_echo "$with_perl" >&6; }
5054 # Optionally build Python modules (PL/Python)
5056 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5057 $as_echo_n "checking whether to build Python modules... " >&6; }
5061 # Check whether --with-python was given.
5062 if test "${with_python+set}" = set; then
5063 withval
=$with_python;
5072 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5073 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5074 { (exit 1); exit 1; }; }
5084 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5085 $as_echo "$with_python" >&6; }
5091 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5092 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5096 # Check whether --with-gssapi was given.
5097 if test "${with_gssapi+set}" = set; then
5098 withval
=$with_gssapi;
5103 cat >>confdefs.h
<<\_ACEOF
5104 #define ENABLE_GSS 1
5107 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5114 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5115 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5116 { (exit 1); exit 1; }; }
5126 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5127 $as_echo "$with_gssapi" >&6; }
5133 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5134 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5138 # Check whether --with-krb5 was given.
5139 if test "${with_krb5+set}" = set; then
5145 cat >>confdefs.h
<<\_ACEOF
5149 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5156 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5157 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5158 { (exit 1); exit 1; }; }
5168 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5169 $as_echo "$with_krb5" >&6; }
5177 # Kerberos configuration parameters
5182 # Check whether --with-krb-srvnam was given.
5183 if test "${with_krb_srvnam+set}" = set; then
5184 withval
=$with_krb_srvnam;
5187 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5188 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5189 { (exit 1); exit 1; }; }
5192 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5193 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5194 { (exit 1); exit 1; }; }
5202 with_krb_srvnam
="postgres"
5207 cat >>confdefs.h
<<_ACEOF
5208 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5216 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5217 $as_echo_n "checking whether to build with PAM support... " >&6; }
5221 # Check whether --with-pam was given.
5222 if test "${with_pam+set}" = set; then
5227 cat >>confdefs.h
<<\_ACEOF
5236 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5237 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5238 { (exit 1); exit 1; }; }
5248 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5249 $as_echo "$with_pam" >&6; }
5256 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5257 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5261 # Check whether --with-ldap was given.
5262 if test "${with_ldap+set}" = set; then
5267 cat >>confdefs.h
<<\_ACEOF
5276 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5277 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5278 { (exit 1); exit 1; }; }
5288 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5289 $as_echo "$with_ldap" >&6; }
5296 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5297 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5301 # Check whether --with-bonjour was given.
5302 if test "${with_bonjour+set}" = set; then
5303 withval
=$with_bonjour;
5307 cat >>confdefs.h
<<\_ACEOF
5308 #define USE_BONJOUR 1
5316 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5317 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5318 { (exit 1); exit 1; }; }
5328 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5329 $as_echo "$with_bonjour" >&6; }
5336 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5337 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5341 # Check whether --with-openssl was given.
5342 if test "${with_openssl+set}" = set; then
5343 withval
=$with_openssl;
5347 cat >>confdefs.h
<<\_ACEOF
5356 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5357 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5358 { (exit 1); exit 1; }; }
5368 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5369 $as_echo "$with_openssl" >&6; }
5379 # Check whether --with-readline was given.
5380 if test "${with_readline+set}" = set; then
5381 withval
=$with_readline;
5390 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5391 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5392 { (exit 1); exit 1; }; }
5402 # readline on MinGW has problems with backslashes in psql and other bugs.
5403 # This is particularly a problem with non-US code pages.
5404 # Therefore disable its use until we understand the cause. 2004-07-20
5405 if test "$PORTNAME" = "win32"; then
5406 if test "$with_readline" = yes; then
5407 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5408 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5420 # Check whether --with-libedit-preferred was given.
5421 if test "${with_libedit_preferred+set}" = set; then
5422 withval
=$with_libedit_preferred;
5431 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5432 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5433 { (exit 1); exit 1; }; }
5438 with_libedit_preferred
=no
5451 # Check whether --with-ossp-uuid was given.
5452 if test "${with_ossp_uuid+set}" = set; then
5453 withval
=$with_ossp_uuid;
5462 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5463 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5464 { (exit 1); exit 1; }; }
5483 # Check whether --with-libxml was given.
5484 if test "${with_libxml+set}" = set; then
5485 withval
=$with_libxml;
5489 cat >>confdefs.h
<<\_ACEOF
5490 #define USE_LIBXML 1
5498 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5499 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5500 { (exit 1); exit 1; }; }
5511 if test "$with_libxml" = yes ; then
5512 for ac_prog
in xml2-config
5514 # Extract the first word of "$ac_prog", so it can be a program name with args.
5515 set dummy
$ac_prog; ac_word
=$2
5516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5519 $as_echo_n "(cached) " >&6
5521 if test -n "$XML2_CONFIG"; then
5522 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5528 test -z "$as_dir" && as_dir
=.
5529 for ac_exec_ext
in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5542 if test -n "$XML2_CONFIG"; then
5543 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5544 $as_echo "$XML2_CONFIG" >&6; }
5546 { $as_echo "$as_me:$LINENO: result: no" >&5
5547 $as_echo "no" >&6; }
5551 test -n "$XML2_CONFIG" && break
5554 if test -n "$XML2_CONFIG"; then
5555 for pgac_option
in `$XML2_CONFIG --cflags`; do
5556 case $pgac_option in
5557 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5560 for pgac_option
in `$XML2_CONFIG --libs`; do
5561 case $pgac_option in
5562 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5576 # Check whether --with-libxslt was given.
5577 if test "${with_libxslt+set}" = set; then
5578 withval
=$with_libxslt;
5582 cat >>confdefs.h
<<\_ACEOF
5583 #define USE_LIBXSLT 1
5591 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5592 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5593 { (exit 1); exit 1; }; }
5613 # Check whether --with-system-tzdata was given.
5614 if test "${with_system_tzdata+set}" = set; then
5615 withval
=$with_system_tzdata;
5618 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5619 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5620 { (exit 1); exit 1; }; }
5623 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5624 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5625 { (exit 1); exit 1; }; }
5643 # Check whether --with-zlib was given.
5644 if test "${with_zlib+set}" = set; then
5654 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5655 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5656 { (exit 1); exit 1; }; }
5672 # Assume system is ELF if it predefines __ELF__ as 1,
5673 # otherwise believe host_os based default.
5675 freebsd1
*|freebsd2
*) elf
=no
;;
5676 freebsd3
*|freebsd4
*) elf
=yes;;
5680 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5681 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5682 if test "${ac_cv_path_GREP+set}" = set; then
5683 $as_echo_n "(cached) " >&6
5685 if test -z "$GREP"; then
5686 ac_path_GREP_found
=false
5687 # Loop through the user's path and test for each of PROGNAME-LIST
5688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5689 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5692 test -z "$as_dir" && as_dir
=.
5693 for ac_prog
in grep ggrep
; do
5694 for ac_exec_ext
in '' $ac_executable_extensions; do
5695 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5696 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5697 # Check for GNU ac_path_GREP and select it if it is found.
5698 # Check for GNU $ac_path_GREP
5699 case `"$ac_path_GREP" --version 2>&1` in
5701 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5704 $as_echo_n 0123456789 >"conftest.in"
5707 cat "conftest.in" "conftest.in" >"conftest.tmp"
5708 mv "conftest.tmp" "conftest.in"
5709 cp "conftest.in" "conftest.nl"
5710 $as_echo 'GREP' >> "conftest.nl"
5711 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5712 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5713 ac_count
=`expr $ac_count + 1`
5714 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5715 # Best one so far, save it but keep looking for a better one
5716 ac_cv_path_GREP
="$ac_path_GREP"
5717 ac_path_GREP_max
=$ac_count
5719 # 10*(2^10) chars as input seems more than enough
5720 test $ac_count -gt 10 && break
5722 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5725 $ac_path_GREP_found && break 3
5730 if test -z "$ac_cv_path_GREP"; then
5731 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5732 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5733 { (exit 1); exit 1; }; }
5736 ac_cv_path_GREP
=$GREP
5740 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5741 $as_echo "$ac_cv_path_GREP" >&6; }
5742 GREP
="$ac_cv_path_GREP"
5745 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5746 $as_echo_n "checking for egrep... " >&6; }
5747 if test "${ac_cv_path_EGREP+set}" = set; then
5748 $as_echo_n "(cached) " >&6
5750 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5751 then ac_cv_path_EGREP
="$GREP -E"
5753 if test -z "$EGREP"; then
5754 ac_path_EGREP_found
=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5757 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5760 test -z "$as_dir" && as_dir
=.
5761 for ac_prog
in egrep; do
5762 for ac_exec_ext
in '' $ac_executable_extensions; do
5763 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5764 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5765 # Check for GNU ac_path_EGREP and select it if it is found.
5766 # Check for GNU $ac_path_EGREP
5767 case `"$ac_path_EGREP" --version 2>&1` in
5769 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5772 $as_echo_n 0123456789 >"conftest.in"
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo 'EGREP' >> "conftest.nl"
5779 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5780 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5781 ac_count
=`expr $ac_count + 1`
5782 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_EGREP
="$ac_path_EGREP"
5785 ac_path_EGREP_max
=$ac_count
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5790 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5793 $ac_path_EGREP_found && break 3
5798 if test -z "$ac_cv_path_EGREP"; then
5799 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5800 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5801 { (exit 1); exit 1; }; }
5804 ac_cv_path_EGREP
=$EGREP
5809 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5810 $as_echo "$ac_cv_path_EGREP" >&6; }
5811 EGREP
="$ac_cv_path_EGREP"
5814 cat >conftest.
$ac_ext <<_ACEOF
5817 cat confdefs.h
>>conftest.
$ac_ext
5818 cat >>conftest.
$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5826 $EGREP "yes" >/dev
/null
2>&1; then
5829 if test "X$elf" = "Xyes" ; then
5843 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5844 LDFLAGS
="$LDFLAGS $LIBDIRS"
5849 # Check whether --with-gnu-ld was given.
5850 if test "${with_gnu_ld+set}" = set; then
5851 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5857 if test "$GCC" = yes; then
5858 # Check if gcc -print-prog-name=ld gives a path.
5859 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5860 $as_echo_n "checking for ld used by GCC... " >&6; }
5863 # gcc leaves a trailing carriage return which upsets mingw
5864 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5866 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5869 # Accept absolute paths.
5870 [\\/]* |
[A-Za-z
]:[\\/]*)
5871 re_direlt
='/[^/][^/]*/\.\./'
5872 # Canonicalize the path of ld
5873 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5874 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5875 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5877 test -z "$LD" && LD
="$ac_prog"
5880 # If it fails, then pretend we aren't using GCC.
5884 # If it is relative, then search for the first ld in PATH.
5888 elif test "$with_gnu_ld" = yes; then
5889 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5890 $as_echo_n "checking for GNU ld... " >&6; }
5892 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5893 $as_echo_n "checking for non-GNU ld... " >&6; }
5895 if test "${ac_cv_path_LD+set}" = set; then
5896 $as_echo_n "(cached) " >&6
5898 if test -z "$LD"; then
5899 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5900 for ac_dir
in $PATH; do
5901 test -z "$ac_dir" && ac_dir
=.
5902 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5903 ac_cv_path_LD
="$ac_dir/$ac_prog"
5904 # Check to see if the program is GNU ld. I'd rather use --version,
5905 # but apparently some GNU ld's only accept -v.
5906 # Break only if it was the GNU/non-GNU ld that we prefer.
5907 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5908 test "$with_gnu_ld" != no
&& break
5910 test "$with_gnu_ld" != yes && break
5916 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5921 if test -n "$LD"; then
5922 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5923 $as_echo "$LD" >&6; }
5925 { $as_echo "$as_me:$LINENO: result: no" >&5
5926 $as_echo "no" >&6; }
5928 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5929 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5930 { (exit 1); exit 1; }; }
5931 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5932 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5933 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5934 $as_echo_n "(cached) " >&6
5936 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5937 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5938 ac_cv_prog_gnu_ld
=yes
5940 ac_cv_prog_gnu_ld
=no
5943 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5944 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5945 with_gnu_ld
=$ac_cv_prog_gnu_ld
5950 case $host_os in sysv5
*)
5951 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5952 $as_echo_n "checking whether ld -R works... " >&6; }
5953 if test "${pgac_cv_prog_ld_R+set}" = set; then
5954 $as_echo_n "(cached) " >&6
5957 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5958 cat >conftest.
$ac_ext <<_ACEOF
5961 cat confdefs.h
>>conftest.
$ac_ext
5962 cat >>conftest.
$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5973 rm -f conftest.
$ac_objext conftest
$ac_exeext
5974 if { (ac_try
="$ac_link"
5976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981 (eval "$ac_link") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest$ac_exeext && {
5991 test "$cross_compiling" = yes ||
5992 $as_test_x conftest$ac_exeext
5994 pgac_cv_prog_ld_R=yes
5996 $as_echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 pgac_cv_prog_ld_R=no
6002 rm -rf conftest.dSYM
6003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6004 conftest$ac_exeext conftest.$ac_ext
6005 LDFLAGS=$pgac_save_LDFLAGS
6008 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6009 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6010 ld_R_works=$pgac_cv_prog_ld_R
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if test "${ac_cv_prog_RANLIB+set}" = set; then
6019 $as_echo_n "(cached) " >&6
6021 if test -n "$RANLIB"; then
6022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 RANLIB=$ac_cv_prog_RANLIB
6042 if test -n "$RANLIB"; then
6043 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6044 $as_echo "$RANLIB" >&6; }
6046 { $as_echo "$as_me:$LINENO: result: no" >&5
6047 $as_echo "no" >&6; }
6052 if test -z "$ac_cv_prog_RANLIB"; then
6053 ac_ct_RANLIB=$RANLIB
6054 # Extract the first word of "ranlib", so it can be a program name with args.
6055 set dummy ranlib; ac_word=$2
6056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6059 $as_echo_n "(cached) " >&6
6061 if test -n "$ac_ct_RANLIB"; then
6062 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_ac_ct_RANLIB="ranlib"
6072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6082 if test -n "$ac_ct_RANLIB"; then
6083 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6084 $as_echo "$ac_ct_RANLIB" >&6; }
6086 { $as_echo "$as_me:$LINENO: result: no" >&5
6087 $as_echo "no" >&6; }
6090 if test "x$ac_ct_RANLIB" = x; then
6093 case $cross_compiling:$ac_tool_warned in
6095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6099 RANLIB=$ac_ct_RANLIB
6102 RANLIB="$ac_cv_prog_RANLIB"
6106 if test -n "$ac_tool_prefix"; then
6107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}strip; ac_word=$2
6109 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if test "${ac_cv_prog_STRIP+set}" = set; then
6112 $as_echo_n "(cached) " >&6
6114 if test -n "$STRIP"; then
6115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 STRIP=$ac_cv_prog_STRIP
6135 if test -n "$STRIP"; then
6136 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6137 $as_echo "$STRIP" >&6; }
6139 { $as_echo "$as_me:$LINENO: result: no" >&5
6140 $as_echo "no" >&6; }
6145 if test -z "$ac_cv_prog_STRIP"; then
6147 # Extract the first word of "strip", so it can be a program name with args.
6148 set dummy strip; ac_word=$2
6149 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6152 $as_echo_n "(cached) " >&6
6154 if test -n "$ac_ct_STRIP"; then
6155 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_ac_ct_STRIP="strip"
6165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6175 if test -n "$ac_ct_STRIP"; then
6176 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6177 $as_echo "$ac_ct_STRIP" >&6; }
6179 { $as_echo "$as_me:$LINENO: result: no" >&5
6180 $as_echo "no" >&6; }
6183 if test "x$ac_ct_STRIP" = x; then
6186 case $cross_compiling:$ac_tool_warned in
6188 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6195 STRIP="$ac_cv_prog_STRIP"
6199 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6200 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6201 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6202 STRIP_STATIC_LIB="$STRIP -x"
6203 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6204 { $as_echo "$as_me:$LINENO: result: yes" >&5
6205 $as_echo "yes" >&6; }
6209 { $as_echo "$as_me:$LINENO: result: no" >&5
6210 $as_echo "no" >&6; }
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}ar; ac_word=$2
6218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if test "${ac_cv_prog_AR+set}" = set; then
6221 $as_echo_n "(cached) " >&6
6223 if test -n "$AR"; then
6224 ac_cv_prog_AR="$AR" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 ac_cv_prog_AR="${ac_tool_prefix}ar"
6234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 if test -n "$AR"; then
6245 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6246 $as_echo "$AR" >&6; }
6248 { $as_echo "$as_me:$LINENO: result: no" >&5
6249 $as_echo "no" >&6; }
6254 if test -z "$ac_cv_prog_AR"; then
6256 # Extract the first word of "ar", so it can be a program name with args.
6257 set dummy ar; ac_word=$2
6258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$ac_ct_AR"; then
6264 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_ac_ct_AR="ar"
6274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6284 if test -n "$ac_ct_AR"; then
6285 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6286 $as_echo "$ac_ct_AR" >&6; }
6288 { $as_echo "$as_me:$LINENO: result: no" >&5
6289 $as_echo "no" >&6; }
6292 if test "x$ac_ct_AR" = x; then
6295 case $cross_compiling:$ac_tool_warned in
6297 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6307 if test "$PORTNAME" = "win32"; then
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6314 $as_echo_n "(cached) " >&6
6316 if test -n "$DLLTOOL"; then
6317 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 DLLTOOL=$ac_cv_prog_DLLTOOL
6337 if test -n "$DLLTOOL"; then
6338 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6339 $as_echo "$DLLTOOL" >&6; }
6341 { $as_echo "$as_me:$LINENO: result: no" >&5
6342 $as_echo "no" >&6; }
6347 if test -z "$ac_cv_prog_DLLTOOL"; then
6348 ac_ct_DLLTOOL=$DLLTOOL
6349 # Extract the first word of "dlltool", so it can be a program name with args.
6350 set dummy dlltool; ac_word=$2
6351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6354 $as_echo_n "(cached) " >&6
6356 if test -n "$ac_ct_DLLTOOL"; then
6357 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6377 if test -n "$ac_ct_DLLTOOL"; then
6378 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6379 $as_echo "$ac_ct_DLLTOOL" >&6; }
6381 { $as_echo "$as_me:$LINENO: result: no" >&5
6382 $as_echo "no" >&6; }
6385 if test "x$ac_ct_DLLTOOL" = x; then
6388 case $cross_compiling:$ac_tool_warned in
6390 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6394 DLLTOOL=$ac_ct_DLLTOOL
6397 DLLTOOL="$ac_cv_prog_DLLTOOL"
6400 if test -n "$ac_tool_prefix"; then
6401 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6406 $as_echo_n "(cached) " >&6
6408 if test -n "$DLLWRAP"; then
6409 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 DLLWRAP=$ac_cv_prog_DLLWRAP
6429 if test -n "$DLLWRAP"; then
6430 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6431 $as_echo "$DLLWRAP" >&6; }
6433 { $as_echo "$as_me:$LINENO: result: no" >&5
6434 $as_echo "no" >&6; }
6439 if test -z "$ac_cv_prog_DLLWRAP"; then
6440 ac_ct_DLLWRAP=$DLLWRAP
6441 # Extract the first word of "dllwrap", so it can be a program name with args.
6442 set dummy dllwrap; ac_word=$2
6443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6446 $as_echo_n "(cached) " >&6
6448 if test -n "$ac_ct_DLLWRAP"; then
6449 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6469 if test -n "$ac_ct_DLLWRAP"; then
6470 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6471 $as_echo "$ac_ct_DLLWRAP" >&6; }
6473 { $as_echo "$as_me:$LINENO: result: no" >&5
6474 $as_echo "no" >&6; }
6477 if test "x$ac_ct_DLLWRAP" = x; then
6480 case $cross_compiling:$ac_tool_warned in
6482 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6486 DLLWRAP=$ac_ct_DLLWRAP
6489 DLLWRAP="$ac_cv_prog_DLLWRAP"
6492 if test -n "$ac_tool_prefix"; then
6493 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6494 set dummy ${ac_tool_prefix}windres; ac_word=$2
6495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if test "${ac_cv_prog_WINDRES+set}" = set; then
6498 $as_echo_n "(cached) " >&6
6500 if test -n "$WINDRES"; then
6501 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6510 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 WINDRES=$ac_cv_prog_WINDRES
6521 if test -n "$WINDRES"; then
6522 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6523 $as_echo "$WINDRES" >&6; }
6525 { $as_echo "$as_me:$LINENO: result: no" >&5
6526 $as_echo "no" >&6; }
6531 if test -z "$ac_cv_prog_WINDRES"; then
6532 ac_ct_WINDRES=$WINDRES
6533 # Extract the first word of "windres", so it can be a program name with args.
6534 set dummy windres; ac_word=$2
6535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6540 if test -n "$ac_ct_WINDRES"; then
6541 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_ac_ct_WINDRES="windres"
6551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6561 if test -n "$ac_ct_WINDRES"; then
6562 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6563 $as_echo "$ac_ct_WINDRES" >&6; }
6565 { $as_echo "$as_me:$LINENO: result: no" >&5
6566 $as_echo "no" >&6; }
6569 if test "x$ac_ct_WINDRES" = x; then
6572 case $cross_compiling:$ac_tool_warned in
6574 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576 ac_tool_warned=yes ;;
6578 WINDRES=$ac_ct_WINDRES
6581 WINDRES="$ac_cv_prog_WINDRES"
6586 # Extract the first word of "tar", so it can be a program name with args.
6587 set dummy tar; ac_word=$2
6588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if test "${ac_cv_path_TAR+set}" = set; then
6591 $as_echo_n "(cached) " >&6
6595 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 if test -n "$TAR"; then
6618 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6619 $as_echo "$TAR" >&6; }
6621 { $as_echo "$as_me:$LINENO: result: no" >&5
6622 $as_echo "no" >&6; }
6626 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6627 $as_echo_n "checking whether ln -s works... " >&6; }
6629 if test "$LN_S" = "ln -s"; then
6630 { $as_echo "$as_me:$LINENO: result: yes" >&5
6631 $as_echo "yes" >&6; }
6633 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6634 $as_echo "no, using $LN_S" >&6; }
6637 for ac_prog in gawk mawk nawk awk
6639 # Extract the first word of "$ac_prog", so it can be a program name with args.
6640 set dummy $ac_prog; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_AWK+set}" = set; then
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$AWK"; then
6647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_AWK="$ac_prog"
6657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 if test -n "$AWK"; then
6668 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6669 $as_echo "$AWK" >&6; }
6671 { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6676 test -n "$AWK" && break
6680 # Let the user override the search
6681 if test -z "$BISON"; then
6682 for ac_prog in bison
6684 # Extract the first word of "$ac_prog", so it can be a program name with args.
6685 set dummy $ac_prog; ac_word=$2
6686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if test "${ac_cv_prog_BISON+set}" = set; then
6689 $as_echo_n "(cached) " >&6
6691 if test -n "$BISON"; then
6692 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_prog_BISON="$ac_prog"
6702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 BISON=$ac_cv_prog_BISON
6712 if test -n "$BISON"; then
6713 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6714 $as_echo "$BISON" >&6; }
6716 { $as_echo "$as_me:$LINENO: result: no" >&5
6717 $as_echo "no" >&6; }
6721 test -n "$BISON" && break
6726 if test "$BISON"; then
6727 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6728 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6729 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6730 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6732 { $as_echo "$as_me:$LINENO: WARNING:
6733 *** The installed version of Bison is too old to use with PostgreSQL.
6734 *** Bison version 1.875 or later is required." >&5
6735 $as_echo "$as_me: WARNING:
6736 *** The installed version of Bison is too old to use with PostgreSQL.
6737 *** Bison version 1.875 or later is required." >&2;}
6742 if test -z "$BISON"; then
6743 { $as_echo "$as_me:$LINENO: WARNING:
6744 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6745 *** change any of the parser definition files. You can obtain Bison from
6746 *** a GNU mirror site. (If you are using the official distribution of
6747 *** PostgreSQL then you do not need to worry about this, because the Bison
6748 *** output is pre-generated.)" >&5
6749 $as_echo "$as_me: WARNING:
6750 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6751 *** change any of the parser definition files. You can obtain Bison from
6752 *** a GNU mirror site. (If you are using the official distribution of
6753 *** PostgreSQL then you do not need to worry about this, because the Bison
6754 *** output is pre-generated.)" >&2;}
6756 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6759 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6760 $as_echo_n "checking for flex... " >&6; }
6761 if test "${pgac_cv_path_flex+set}" = set; then
6762 $as_echo_n "(cached) " >&6
6764 # Let the user override the test
6765 if test -n "$FLEX"; then
6766 pgac_cv_path_flex=$FLEX
6770 for pgac_dir in $PATH; do
6772 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6775 for pgac_prog in flex lex; do
6776 pgac_candidate="$pgac_dir/$pgac_prog"
6777 if test -f "$pgac_candidate" \
6778 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6780 echo '%%' > conftest.l
6781 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6782 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6783 pgac_broken_flex=$pgac_candidate
6787 pgac_cv_path_flex=$pgac_candidate
6793 rm -f conftest.l lex.yy.c
6794 : ${pgac_cv_path_flex=no}
6798 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6799 $as_echo "$pgac_cv_path_flex" >&6; }
6800 if test x"$pgac_cv_path_flex" = x"no"; then
6801 if test -n "$pgac_broken_flex"; then
6802 { $as_echo "$as_me:$LINENO: WARNING:
6803 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6804 *** should get version 2.5.4 or later." >&5
6805 $as_echo "$as_me: WARNING:
6806 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6807 *** should get version 2.5.4 or later." >&2;}
6810 { $as_echo "$as_me:$LINENO: WARNING:
6811 *** Without Flex you will not be able to build PostgreSQL from CVS or
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.)" >&5
6816 $as_echo "$as_me: WARNING:
6817 *** Without Flex you will not be able to build PostgreSQL from CVS or
6818 *** change any of the scanner definition files. You can obtain Flex from
6819 *** a GNU mirror site. (If you are using the official distribution of
6820 *** PostgreSQL then you do not need to worry about this because the Flex
6821 *** output is pre-generated.)" >&2;}
6825 FLEX=$pgac_cv_path_flex
6826 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6827 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6828 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6835 # Extract the first word of "perl", so it can be a program name with args.
6836 set dummy perl; ac_word=$2
6837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_path_PERL+set}" = set; then
6840 $as_echo_n "(cached) " >&6
6844 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 PERL=$ac_cv_path_PERL
6866 if test -n "$PERL"; then
6867 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6868 $as_echo "$PERL" >&6; }
6870 { $as_echo "$as_me:$LINENO: result: no" >&5
6871 $as_echo "no" >&6; }
6875 if test "$with_perl" = yes; then
6877 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6878 $as_echo_n "checking for Perl archlibexp... " >&6; }
6879 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6880 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6881 $as_echo "$perl_archlibexp" >&6; }
6882 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6883 $as_echo_n "checking for Perl privlibexp... " >&6; }
6884 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6885 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6886 $as_echo "$perl_privlibexp" >&6; }
6887 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6888 $as_echo_n "checking for Perl useshrplib... " >&6; }
6889 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6890 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6891 $as_echo "$perl_useshrplib" >&6; }
6893 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6894 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6895 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6896 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6897 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6898 if test -z "$perl_embed_ldflags" ; then
6899 { $as_echo "$as_me:$LINENO: result: no" >&5
6900 $as_echo "no" >&6; }
6901 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6902 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6904 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6905 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6907 { (exit 1); exit 1; }; }
6909 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6910 $as_echo "$perl_embed_ldflags" >&6; }
6915 if test "$with_python" = yes; then
6916 # Extract the first word of "python", so it can be a program name with args.
6917 set dummy python; ac_word=$2
6918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if test "${ac_cv_path_PYTHON+set}" = set; then
6921 $as_echo_n "(cached) " >&6
6925 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 PYTHON=$ac_cv_path_PYTHON
6947 if test -n "$PYTHON"; then
6948 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6949 $as_echo "$PYTHON" >&6; }
6951 { $as_echo "$as_me:$LINENO: result: no" >&5
6952 $as_echo "no" >&6; }
6956 if test x"$PYTHON" = x""; then
6957 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6958 $as_echo "$as_me: error: Python not found" >&2;}
6959 { (exit 1); exit 1; }; }
6963 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6964 $as_echo_n "checking for Python distutils module... " >&6; }
6965 if "${PYTHON}" 2>&- -c 'import distutils'
6967 { $as_echo "$as_me:$LINENO: result: yes" >&5
6968 $as_echo "yes" >&6; }
6970 { $as_echo "$as_me:$LINENO: result: no" >&5
6971 $as_echo "no" >&6; }
6972 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
6973 $as_echo "$as_me: error: distutils module not found" >&2;}
6974 { (exit 1); exit 1; }; }
6976 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
6977 $as_echo_n "checking Python configuration directory... " >&6; }
6978 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6979 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'))"`
6980 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6982 # This should be enough of a message.
6983 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
6984 $as_echo "$python_configdir" >&6; }
6987 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6988 $as_echo_n "checking how to link an embedded Python application... " >&6; }
6990 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6991 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6992 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6993 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6995 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6997 # New way: use the official shared library
6998 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6999 python_libspec="-L${python_libdir} -l${ldlibrary}"
7001 # Old way: use libpython from python_configdir
7002 python_libdir="${python_configdir}"
7003 python_libspec="-L${python_libdir} -lpython${python_version}"
7006 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
7008 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7009 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7012 # threaded python is not supported on bsd's
7013 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7014 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7015 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7016 if test "$pythreads" = "1"; then
7017 { $as_echo "$as_me:$LINENO: result: yes" >&5
7018 $as_echo "yes" >&6; }
7021 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7022 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7023 { (exit 1); exit 1; }; }
7027 { $as_echo "$as_me:$LINENO: result: no" >&5
7028 $as_echo "no" >&6; }
7034 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7035 # Extract the first word of "zic", so it can be a program name with args.
7036 set dummy zic; ac_word=$2
7037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if test "${ac_cv_path_ZIC+set}" = set; then
7040 $as_echo_n "(cached) " >&6
7044 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 if test -n "$ZIC"; then
7067 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7068 $as_echo "$ZIC" >&6; }
7070 { $as_echo "$as_me:$LINENO: result: no" >&5
7071 $as_echo "no" >&6; }
7075 if test -z "$ZIC"; then
7076 { { $as_echo "$as_me:$LINENO: error:
7077 When cross-compiling, either use the option --with-system-tzdata to use
7078 existing time-zone data, or set the environment variable ZIC to a zic
7079 program to use during the build." >&5
7080 $as_echo "$as_me: error:
7081 When cross-compiling, either use the option --with-system-tzdata to use
7082 existing time-zone data, or set the environment variable ZIC to a zic
7083 program to use during the build." >&2;}
7084 { (exit 1); exit 1; }; }
7092 ## Most libraries are included only if they demonstrably provide a function
7093 ## we need, but libm is an exception: always include it, because there are
7094 ## too many compilers that play cute optimization games that will break
7095 ## probes for standard functions such as pow().
7099 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7100 $as_echo_n "checking for main in -lm... " >&6; }
7101 if test "${ac_cv_lib_m_main+set}" = set; then
7102 $as_echo_n "(cached) " >&6
7104 ac_check_lib_save_LIBS=$LIBS
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (ac_try="$ac_link"
7125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7126 *) ac_try_echo
=$ac_try;;
7128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7129 $as_echo "$ac_try_echo") >&5
7130 (eval "$ac_link") 2>conftest.er1
7132 grep -v '^ *+' conftest.er1
>conftest.err
7134 cat conftest.err
>&5
7135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest
$ac_exeext && {
7140 test "$cross_compiling" = yes ||
7141 $as_test_x conftest
$ac_exeext
7143 ac_cv_lib_m_main
=yes
7145 $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.
$ac_ext >&5
7151 rm -rf conftest.dSYM
7152 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7153 conftest
$ac_exeext conftest.
$ac_ext
7154 LIBS
=$ac_check_lib_save_LIBS
7156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7157 $as_echo "$ac_cv_lib_m_main" >&6; }
7158 if test "x$ac_cv_lib_m_main" = x
""yes; then
7159 cat >>confdefs.h
<<_ACEOF
7167 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7168 $as_echo_n "checking for library containing setproctitle... " >&6; }
7169 if test "${ac_cv_search_setproctitle+set}" = set; then
7170 $as_echo_n "(cached) " >&6
7172 ac_func_search_save_LIBS
=$LIBS
7173 cat >conftest.
$ac_ext <<_ACEOF
7176 cat confdefs.h
>>conftest.
$ac_ext
7177 cat >>conftest.
$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7180 /* Override any GCC internal prototype to avoid an error.
7181 Use char because int might match the return type of a GCC
7182 builtin and then its argument prototype would still apply. */
7186 char setproctitle ();
7190 return setproctitle ();
7195 for ac_lib
in '' util
; do
7196 if test -z "$ac_lib"; then
7197 ac_res
="none required"
7200 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7202 rm -f conftest.
$ac_objext conftest
$ac_exeext
7203 if { (ac_try
="$ac_link"
7205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210 (eval "$ac_link") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest$ac_exeext && {
7220 test "$cross_compiling" = yes ||
7221 $as_test_x conftest$ac_exeext
7223 ac_cv_search_setproctitle=$ac_res
7225 $as_echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7231 rm -rf conftest.dSYM
7232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7234 if test "${ac_cv_search_setproctitle+set}" = set; then
7238 if test "${ac_cv_search_setproctitle+set}" = set; then
7241 ac_cv_search_setproctitle=no
7244 LIBS=$ac_func_search_save_LIBS
7246 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7247 $as_echo "$ac_cv_search_setproctitle" >&6; }
7248 ac_res=$ac_cv_search_setproctitle
7249 if test "$ac_res" != no; then
7250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7254 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7255 $as_echo_n "checking for library containing dlopen... " >&6; }
7256 if test "${ac_cv_search_dlopen+set}" = set; then
7257 $as_echo_n "(cached) " >&6
7259 ac_func_search_save_LIBS=$LIBS
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7267 /* Override any GCC internal prototype to avoid an error.
7268 Use char because int might match the return type of a GCC
7269 builtin and then its argument prototype would still apply. */
7282 for ac_lib in '' dl; do
7283 if test -z "$ac_lib"; then
7284 ac_res="none required"
7287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7289 rm -f conftest.$ac_objext conftest$ac_exeext
7290 if { (ac_try="$ac_link"
7292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7293 *) ac_try_echo
=$ac_try;;
7295 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7296 $as_echo "$ac_try_echo") >&5
7297 (eval "$ac_link") 2>conftest.er1
7299 grep -v '^ *+' conftest.er1
>conftest.err
7301 cat conftest.err
>&5
7302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest
$ac_exeext && {
7307 test "$cross_compiling" = yes ||
7308 $as_test_x conftest
$ac_exeext
7310 ac_cv_search_dlopen
=$ac_res
7312 $as_echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.
$ac_ext >&5
7318 rm -rf conftest.dSYM
7319 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7321 if test "${ac_cv_search_dlopen+set}" = set; then
7325 if test "${ac_cv_search_dlopen+set}" = set; then
7328 ac_cv_search_dlopen
=no
7331 LIBS
=$ac_func_search_save_LIBS
7333 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7334 $as_echo "$ac_cv_search_dlopen" >&6; }
7335 ac_res
=$ac_cv_search_dlopen
7336 if test "$ac_res" != no
; then
7337 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7341 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7342 $as_echo_n "checking for library containing socket... " >&6; }
7343 if test "${ac_cv_search_socket+set}" = set; then
7344 $as_echo_n "(cached) " >&6
7346 ac_func_search_save_LIBS
=$LIBS
7347 cat >conftest.
$ac_ext <<_ACEOF
7350 cat confdefs.h
>>conftest.
$ac_ext
7351 cat >>conftest.
$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7354 /* Override any GCC internal prototype to avoid an error.
7355 Use char because int might match the return type of a GCC
7356 builtin and then its argument prototype would still apply. */
7369 for ac_lib
in '' socket wsock32
; do
7370 if test -z "$ac_lib"; then
7371 ac_res
="none required"
7374 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7376 rm -f conftest.
$ac_objext conftest
$ac_exeext
7377 if { (ac_try
="$ac_link"
7379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7383 $as_echo "$ac_try_echo") >&5
7384 (eval "$ac_link") 2>conftest.er1
7386 grep -v '^ *+' conftest.er1 >conftest.err
7388 cat conftest.err >&5
7389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } && {
7391 test -z "$ac_c_werror_flag" ||
7392 test ! -s conftest.err
7393 } && test -s conftest$ac_exeext && {
7394 test "$cross_compiling" = yes ||
7395 $as_test_x conftest$ac_exeext
7397 ac_cv_search_socket=$ac_res
7399 $as_echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7405 rm -rf conftest.dSYM
7406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7408 if test "${ac_cv_search_socket+set}" = set; then
7412 if test "${ac_cv_search_socket+set}" = set; then
7415 ac_cv_search_socket=no
7418 LIBS=$ac_func_search_save_LIBS
7420 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7421 $as_echo "$ac_cv_search_socket" >&6; }
7422 ac_res=$ac_cv_search_socket
7423 if test "$ac_res" != no; then
7424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7428 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7429 $as_echo_n "checking for library containing shl_load... " >&6; }
7430 if test "${ac_cv_search_shl_load+set}" = set; then
7431 $as_echo_n "(cached) " >&6
7433 ac_func_search_save_LIBS=$LIBS
7434 cat >conftest.$ac_ext <<_ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7441 /* Override any GCC internal prototype to avoid an error.
7442 Use char because int might match the return type of a GCC
7443 builtin and then its argument prototype would still apply. */
7456 for ac_lib in '' dld; do
7457 if test -z "$ac_lib"; then
7458 ac_res="none required"
7461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7463 rm -f conftest.$ac_objext conftest$ac_exeext
7464 if { (ac_try="$ac_link"
7466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7467 *) ac_try_echo
=$ac_try;;
7469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7470 $as_echo "$ac_try_echo") >&5
7471 (eval "$ac_link") 2>conftest.er1
7473 grep -v '^ *+' conftest.er1
>conftest.err
7475 cat conftest.err
>&5
7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest
$ac_exeext && {
7481 test "$cross_compiling" = yes ||
7482 $as_test_x conftest
$ac_exeext
7484 ac_cv_search_shl_load
=$ac_res
7486 $as_echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.
$ac_ext >&5
7492 rm -rf conftest.dSYM
7493 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7495 if test "${ac_cv_search_shl_load+set}" = set; then
7499 if test "${ac_cv_search_shl_load+set}" = set; then
7502 ac_cv_search_shl_load
=no
7505 LIBS
=$ac_func_search_save_LIBS
7507 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7508 $as_echo "$ac_cv_search_shl_load" >&6; }
7509 ac_res
=$ac_cv_search_shl_load
7510 if test "$ac_res" != no
; then
7511 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7515 # We only use libld in port/dynloader/aix.c
7518 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7519 $as_echo_n "checking for library containing ldopen... " >&6; }
7520 if test "${ac_cv_search_ldopen+set}" = set; then
7521 $as_echo_n "(cached) " >&6
7523 ac_func_search_save_LIBS
=$LIBS
7524 cat >conftest.
$ac_ext <<_ACEOF
7527 cat confdefs.h
>>conftest.
$ac_ext
7528 cat >>conftest.
$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7531 /* Override any GCC internal prototype to avoid an error.
7532 Use char because int might match the return type of a GCC
7533 builtin and then its argument prototype would still apply. */
7546 for ac_lib
in '' ld
; do
7547 if test -z "$ac_lib"; then
7548 ac_res
="none required"
7551 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7553 rm -f conftest.
$ac_objext conftest
$ac_exeext
7554 if { (ac_try
="$ac_link"
7556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560 $as_echo "$ac_try_echo") >&5
7561 (eval "$ac_link") 2>conftest.er1
7563 grep -v '^ *+' conftest.er1 >conftest.err
7565 cat conftest.err >&5
7566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest$ac_exeext && {
7571 test "$cross_compiling" = yes ||
7572 $as_test_x conftest$ac_exeext
7574 ac_cv_search_ldopen=$ac_res
7576 $as_echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7582 rm -rf conftest.dSYM
7583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7585 if test "${ac_cv_search_ldopen+set}" = set; then
7589 if test "${ac_cv_search_ldopen+set}" = set; then
7592 ac_cv_search_ldopen=no
7595 LIBS=$ac_func_search_save_LIBS
7597 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7598 $as_echo "$ac_cv_search_ldopen" >&6; }
7599 ac_res=$ac_cv_search_ldopen
7600 if test "$ac_res" != no; then
7601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7607 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7608 $as_echo_n "checking for library containing getopt_long... " >&6; }
7609 if test "${ac_cv_search_getopt_long+set}" = set; then
7610 $as_echo_n "(cached) " >&6
7612 ac_func_search_save_LIBS=$LIBS
7613 cat >conftest.$ac_ext <<_ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7620 /* Override any GCC internal prototype to avoid an error.
7621 Use char because int might match the return type of a GCC
7622 builtin and then its argument prototype would still apply. */
7626 char getopt_long ();
7630 return getopt_long ();
7635 for ac_lib in '' getopt gnugetopt; do
7636 if test -z "$ac_lib"; then
7637 ac_res="none required"
7640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7646 *) ac_try_echo
=$ac_try;;
7648 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650 (eval "$ac_link") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1
>conftest.err
7654 cat conftest.err
>&5
7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest
$ac_exeext && {
7660 test "$cross_compiling" = yes ||
7661 $as_test_x conftest
$ac_exeext
7663 ac_cv_search_getopt_long
=$ac_res
7665 $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.
$ac_ext >&5
7671 rm -rf conftest.dSYM
7672 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7674 if test "${ac_cv_search_getopt_long+set}" = set; then
7678 if test "${ac_cv_search_getopt_long+set}" = set; then
7681 ac_cv_search_getopt_long
=no
7684 LIBS
=$ac_func_search_save_LIBS
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7687 $as_echo "$ac_cv_search_getopt_long" >&6; }
7688 ac_res
=$ac_cv_search_getopt_long
7689 if test "$ac_res" != no
; then
7690 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7694 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7695 $as_echo_n "checking for library containing crypt... " >&6; }
7696 if test "${ac_cv_search_crypt+set}" = set; then
7697 $as_echo_n "(cached) " >&6
7699 ac_func_search_save_LIBS
=$LIBS
7700 cat >conftest.
$ac_ext <<_ACEOF
7703 cat confdefs.h
>>conftest.
$ac_ext
7704 cat >>conftest.
$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7707 /* Override any GCC internal prototype to avoid an error.
7708 Use char because int might match the return type of a GCC
7709 builtin and then its argument prototype would still apply. */
7722 for ac_lib
in '' crypt; do
7723 if test -z "$ac_lib"; then
7724 ac_res
="none required"
7727 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7729 rm -f conftest.
$ac_objext conftest
$ac_exeext
7730 if { (ac_try
="$ac_link"
7732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737 (eval "$ac_link") 2>conftest.er1
7739 grep -v '^ *+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest$ac_exeext && {
7747 test "$cross_compiling" = yes ||
7748 $as_test_x conftest$ac_exeext
7750 ac_cv_search_crypt=$ac_res
7752 $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7761 if test "${ac_cv_search_crypt+set}" = set; then
7765 if test "${ac_cv_search_crypt+set}" = set; then
7768 ac_cv_search_crypt=no
7771 LIBS=$ac_func_search_save_LIBS
7773 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7774 $as_echo "$ac_cv_search_crypt" >&6; }
7775 ac_res=$ac_cv_search_crypt
7776 if test "$ac_res" != no; then
7777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7782 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7783 $as_echo_n "checking for library containing fdatasync... " >&6; }
7784 if test "${ac_cv_search_fdatasync+set}" = set; then
7785 $as_echo_n "(cached) " >&6
7787 ac_func_search_save_LIBS=$LIBS
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7795 /* Override any GCC internal prototype to avoid an error.
7796 Use char because int might match the return type of a GCC
7797 builtin and then its argument prototype would still apply. */
7805 return fdatasync ();
7810 for ac_lib in '' rt posix4; do
7811 if test -z "$ac_lib"; then
7812 ac_res="none required"
7815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (ac_try="$ac_link"
7820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7821 *) ac_try_echo
=$ac_try;;
7823 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7824 $as_echo "$ac_try_echo") >&5
7825 (eval "$ac_link") 2>conftest.er1
7827 grep -v '^ *+' conftest.er1
>conftest.err
7829 cat conftest.err
>&5
7830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest
$ac_exeext && {
7835 test "$cross_compiling" = yes ||
7836 $as_test_x conftest
$ac_exeext
7838 ac_cv_search_fdatasync
=$ac_res
7840 $as_echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.
$ac_ext >&5
7846 rm -rf conftest.dSYM
7847 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7849 if test "${ac_cv_search_fdatasync+set}" = set; then
7853 if test "${ac_cv_search_fdatasync+set}" = set; then
7856 ac_cv_search_fdatasync
=no
7859 LIBS
=$ac_func_search_save_LIBS
7861 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7862 $as_echo "$ac_cv_search_fdatasync" >&6; }
7863 ac_res
=$ac_cv_search_fdatasync
7864 if test "$ac_res" != no
; then
7865 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7869 # Required for thread_test.c on Solaris 2.5:
7870 # Other ports use it too (HP-UX) so test unconditionally
7871 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7872 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7873 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7874 $as_echo_n "(cached) " >&6
7876 ac_func_search_save_LIBS
=$LIBS
7877 cat >conftest.
$ac_ext <<_ACEOF
7880 cat confdefs.h
>>conftest.
$ac_ext
7881 cat >>conftest.
$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7890 char gethostbyname_r ();
7894 return gethostbyname_r ();
7899 for ac_lib
in '' nsl
; do
7900 if test -z "$ac_lib"; then
7901 ac_res
="none required"
7904 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7906 rm -f conftest.
$ac_objext conftest
$ac_exeext
7907 if { (ac_try
="$ac_link"
7909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7913 $as_echo "$ac_try_echo") >&5
7914 (eval "$ac_link") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest$ac_exeext && {
7924 test "$cross_compiling" = yes ||
7925 $as_test_x conftest$ac_exeext
7927 ac_cv_search_gethostbyname_r=$ac_res
7929 $as_echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7935 rm -rf conftest.dSYM
7936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7938 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7942 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7945 ac_cv_search_gethostbyname_r=no
7948 LIBS=$ac_func_search_save_LIBS
7950 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7951 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7952 ac_res=$ac_cv_search_gethostbyname_r
7953 if test "$ac_res" != no; then
7954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7959 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7960 $as_echo_n "checking for library containing shmget... " >&6; }
7961 if test "${ac_cv_search_shmget+set}" = set; then
7962 $as_echo_n "(cached) " >&6
7964 ac_func_search_save_LIBS=$LIBS
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7972 /* Override any GCC internal prototype to avoid an error.
7973 Use char because int might match the return type of a GCC
7974 builtin and then its argument prototype would still apply. */
7987 for ac_lib in '' cygipc; do
7988 if test -z "$ac_lib"; then
7989 ac_res="none required"
7992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (ac_try="$ac_link"
7997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7998 *) ac_try_echo
=$ac_try;;
8000 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8001 $as_echo "$ac_try_echo") >&5
8002 (eval "$ac_link") 2>conftest.er1
8004 grep -v '^ *+' conftest.er1
>conftest.err
8006 cat conftest.err
>&5
8007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } && {
8009 test -z "$ac_c_werror_flag" ||
8010 test ! -s conftest.err
8011 } && test -s conftest
$ac_exeext && {
8012 test "$cross_compiling" = yes ||
8013 $as_test_x conftest
$ac_exeext
8015 ac_cv_search_shmget
=$ac_res
8017 $as_echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.
$ac_ext >&5
8023 rm -rf conftest.dSYM
8024 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8026 if test "${ac_cv_search_shmget+set}" = set; then
8030 if test "${ac_cv_search_shmget+set}" = set; then
8033 ac_cv_search_shmget
=no
8036 LIBS
=$ac_func_search_save_LIBS
8038 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8039 $as_echo "$ac_cv_search_shmget" >&6; }
8040 ac_res
=$ac_cv_search_shmget
8041 if test "$ac_res" != no
; then
8042 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8047 if test "$with_readline" = yes; then
8050 if test "${pgac_cv_check_readline+set}" = set; then
8051 $as_echo_n "(cached) " >&6
8053 pgac_cv_check_readline
=no
8054 pgac_save_LIBS
=$LIBS
8055 if test x
"$with_libedit_preferred" != x
"yes"
8056 then READLINE_ORDER
="-lreadline -ledit"
8057 else READLINE_ORDER
="-ledit -lreadline"
8059 for pgac_rllib
in $READLINE_ORDER ; do
8060 { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8061 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8062 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8063 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8064 cat >conftest.
$ac_ext <<_ACEOF
8067 cat confdefs.h
>>conftest.
$ac_ext
8068 cat >>conftest.
$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8071 /* Override any GCC internal prototype to avoid an error.
8072 Use char because int might match the return type of a GCC
8073 builtin and then its argument prototype would still apply. */
8086 rm -f conftest.
$ac_objext conftest
$ac_exeext
8087 if { (ac_try
="$ac_link"
8089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8093 $as_echo "$ac_try_echo") >&5
8094 (eval "$ac_link") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest$ac_exeext && {
8104 test "$cross_compiling" = yes ||
8105 $as_test_x conftest$ac_exeext
8108 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8109 # recognize dependent libraries; assume curses is needed if we didn't
8110 # find any dependency.
8112 netbsd* | openbsd* | irix*)
8113 if test x"$pgac_lib" = x"" ; then
8114 pgac_lib=" -lcurses"
8118 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8122 $as_echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8128 rm -rf conftest.dSYM
8129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8130 conftest$ac_exeext conftest.$ac_ext
8132 if test "$pgac_cv_check_readline" != no ; then
8133 { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8134 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8137 { $as_echo "$as_me:$LINENO: result: no" >&5
8138 $as_echo "no" >&6; }
8141 LIBS=$pgac_save_LIBS
8145 if test "$pgac_cv_check_readline" != no ; then
8146 LIBS="$pgac_cv_check_readline $LIBS"
8148 cat >>confdefs.h <<\_ACEOF
8149 #define HAVE_LIBREADLINE 1
8155 if test x"$pgac_cv_check_readline" = x"no"; then
8156 { { $as_echo "$as_me:$LINENO: error: readline library not found
8157 If you have readline already installed, see config.log for details on the
8158 failure. It is possible the compiler isn't looking in the proper directory.
8159 Use --without-readline to disable readline support." >&5
8160 $as_echo "$as_me: error: readline library not found
8161 If you have readline already installed, see config.log for details on the
8162 failure. It is possible the compiler isn't looking in the proper directory.
8163 Use --without-readline to disable readline support." >&2;}
8164 { (exit 1); exit 1; }; }
8168 if test "$with_zlib" = yes; then
8170 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8171 $as_echo_n "checking for inflate in -lz... " >&6; }
8172 if test "${ac_cv_lib_z_inflate+set}" = set; then
8173 $as_echo_n "(cached) " >&6
8175 ac_check_lib_save_LIBS=$LIBS
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8184 /* Override any GCC internal prototype to avoid an error.
8185 Use char because int might match the return type of a GCC
8186 builtin and then its argument prototype would still apply. */
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8203 *) ac_try_echo
=$ac_try;;
8205 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8206 $as_echo "$ac_try_echo") >&5
8207 (eval "$ac_link") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1
>conftest.err
8211 cat conftest.err
>&5
8212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest
$ac_exeext && {
8217 test "$cross_compiling" = yes ||
8218 $as_test_x conftest
$ac_exeext
8220 ac_cv_lib_z_inflate
=yes
8222 $as_echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.
$ac_ext >&5
8225 ac_cv_lib_z_inflate
=no
8228 rm -rf conftest.dSYM
8229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8230 conftest
$ac_exeext conftest.
$ac_ext
8231 LIBS
=$ac_check_lib_save_LIBS
8233 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8234 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8235 if test "x$ac_cv_lib_z_inflate" = x
""yes; then
8236 cat >>confdefs.h
<<_ACEOF
8243 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8244 If you have zlib already installed, see config.log for details on the
8245 failure. It is possible the compiler isn't looking in the proper directory.
8246 Use --without-zlib to disable zlib support." >&5
8247 $as_echo "$as_me: error: zlib library not found
8248 If you have zlib already installed, see config.log for details on the
8249 failure. It is possible the compiler isn't looking in the proper directory.
8250 Use --without-zlib to disable zlib support." >&2;}
8251 { (exit 1); exit 1; }; }
8256 if test "$enable_spinlocks" = yes; then
8258 cat >>confdefs.h
<<\_ACEOF
8259 #define HAVE_SPINLOCKS 1
8263 { $as_echo "$as_me:$LINENO: WARNING:
8264 *** Not using spinlocks will cause poor performance." >&5
8265 $as_echo "$as_me: WARNING:
8266 *** Not using spinlocks will cause poor performance." >&2;}
8269 if test "$with_gssapi" = yes ; then
8270 if test "$PORTNAME" != "win32"; then
8271 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8272 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8273 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8274 $as_echo_n "(cached) " >&6
8276 ac_func_search_save_LIBS
=$LIBS
8277 cat >conftest.
$ac_ext <<_ACEOF
8280 cat confdefs.h
>>conftest.
$ac_ext
8281 cat >>conftest.
$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8284 /* Override any GCC internal prototype to avoid an error.
8285 Use char because int might match the return type of a GCC
8286 builtin and then its argument prototype would still apply. */
8290 char gss_init_sec_context ();
8294 return gss_init_sec_context ();
8299 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
8300 if test -z "$ac_lib"; then
8301 ac_res
="none required"
8304 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8306 rm -f conftest.
$ac_objext conftest
$ac_exeext
8307 if { (ac_try
="$ac_link"
8309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8313 $as_echo "$ac_try_echo") >&5
8314 (eval "$ac_link") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest$ac_exeext && {
8324 test "$cross_compiling" = yes ||
8325 $as_test_x conftest$ac_exeext
8327 ac_cv_search_gss_init_sec_context=$ac_res
8329 $as_echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8335 rm -rf conftest.dSYM
8336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8338 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8342 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8345 ac_cv_search_gss_init_sec_context=no
8348 LIBS=$ac_func_search_save_LIBS
8350 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8351 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8352 ac_res=$ac_cv_search_gss_init_sec_context
8353 if test "$ac_res" != no; then
8354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8358 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8359 { (exit 1); exit 1; }; }
8363 LIBS="$LIBS -lgssapi32"
8367 if test "$with_krb5" = yes ; then
8368 if test "$PORTNAME" != "win32"; then
8369 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8370 $as_echo_n "checking for library containing com_err... " >&6; }
8371 if test "${ac_cv_search_com_err+set}" = set; then
8372 $as_echo_n "(cached) " >&6
8374 ac_func_search_save_LIBS=$LIBS
8375 cat >conftest.$ac_ext <<_ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8382 /* Override any GCC internal prototype to avoid an error.
8383 Use char because int might match the return type of a GCC
8384 builtin and then its argument prototype would still apply. */
8397 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8398 if test -z "$ac_lib"; then
8399 ac_res="none required"
8402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (ac_try="$ac_link"
8407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8408 *) ac_try_echo
=$ac_try;;
8410 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8411 $as_echo "$ac_try_echo") >&5
8412 (eval "$ac_link") 2>conftest.er1
8414 grep -v '^ *+' conftest.er1
>conftest.err
8416 cat conftest.err
>&5
8417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest
$ac_exeext && {
8422 test "$cross_compiling" = yes ||
8423 $as_test_x conftest
$ac_exeext
8425 ac_cv_search_com_err
=$ac_res
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.
$ac_ext >&5
8433 rm -rf conftest.dSYM
8434 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8436 if test "${ac_cv_search_com_err+set}" = set; then
8440 if test "${ac_cv_search_com_err+set}" = set; then
8443 ac_cv_search_com_err
=no
8446 LIBS
=$ac_func_search_save_LIBS
8448 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8449 $as_echo "$ac_cv_search_com_err" >&6; }
8450 ac_res
=$ac_cv_search_com_err
8451 if test "$ac_res" != no
; then
8452 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8455 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8456 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8457 { (exit 1); exit 1; }; }
8460 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8461 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8462 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8463 $as_echo_n "(cached) " >&6
8465 ac_func_search_save_LIBS
=$LIBS
8466 cat >conftest.
$ac_ext <<_ACEOF
8469 cat confdefs.h
>>conftest.
$ac_ext
8470 cat >>conftest.
$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8473 /* Override any GCC internal prototype to avoid an error.
8474 Use char because int might match the return type of a GCC
8475 builtin and then its argument prototype would still apply. */
8479 char krb5_sendauth ();
8483 return krb5_sendauth ();
8488 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8489 if test -z "$ac_lib"; then
8490 ac_res
="none required"
8493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8495 rm -f conftest.
$ac_objext conftest
$ac_exeext
8496 if { (ac_try
="$ac_link"
8498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8502 $as_echo "$ac_try_echo") >&5
8503 (eval "$ac_link") 2>conftest.er1
8505 grep -v '^ *+' conftest.er1 >conftest.err
8507 cat conftest.err >&5
8508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } && {
8510 test -z "$ac_c_werror_flag" ||
8511 test ! -s conftest.err
8512 } && test -s conftest$ac_exeext && {
8513 test "$cross_compiling" = yes ||
8514 $as_test_x conftest$ac_exeext
8516 ac_cv_search_krb5_sendauth=$ac_res
8518 $as_echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.$ac_ext >&5
8524 rm -rf conftest.dSYM
8525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8527 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8531 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8534 ac_cv_search_krb5_sendauth=no
8537 LIBS=$ac_func_search_save_LIBS
8539 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8540 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8541 ac_res=$ac_cv_search_krb5_sendauth
8542 if test "$ac_res" != no; then
8543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8546 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8547 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8548 { (exit 1); exit 1; }; }
8552 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8553 $as_echo_n "checking for library containing com_err... " >&6; }
8554 if test "${ac_cv_search_com_err+set}" = set; then
8555 $as_echo_n "(cached) " >&6
8557 ac_func_search_save_LIBS=$LIBS
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8565 /* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8580 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8581 if test -z "$ac_lib"; then
8582 ac_res="none required"
8585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8591 *) ac_try_echo
=$ac_try;;
8593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595 (eval "$ac_link") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1
>conftest.err
8599 cat conftest.err
>&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest
$ac_exeext && {
8605 test "$cross_compiling" = yes ||
8606 $as_test_x conftest
$ac_exeext
8608 ac_cv_search_com_err
=$ac_res
8610 $as_echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.
$ac_ext >&5
8616 rm -rf conftest.dSYM
8617 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8619 if test "${ac_cv_search_com_err+set}" = set; then
8623 if test "${ac_cv_search_com_err+set}" = set; then
8626 ac_cv_search_com_err
=no
8629 LIBS
=$ac_func_search_save_LIBS
8631 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8632 $as_echo "$ac_cv_search_com_err" >&6; }
8633 ac_res
=$ac_cv_search_com_err
8634 if test "$ac_res" != no
; then
8635 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8638 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8639 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8640 { (exit 1); exit 1; }; }
8646 if test "$with_openssl" = yes ; then
8647 if test "$PORTNAME" != "win32"; then
8649 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8650 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8651 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8652 $as_echo_n "(cached) " >&6
8654 ac_check_lib_save_LIBS
=$LIBS
8655 LIBS
="-lcrypto $LIBS"
8656 cat >conftest.
$ac_ext <<_ACEOF
8659 cat confdefs.h
>>conftest.
$ac_ext
8660 cat >>conftest.
$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 /* Override any GCC internal prototype to avoid an error.
8664 Use char because int might match the return type of a GCC
8665 builtin and then its argument prototype would still apply. */
8669 char CRYPTO_new_ex_data ();
8673 return CRYPTO_new_ex_data ();
8678 rm -f conftest.
$ac_objext conftest
$ac_exeext
8679 if { (ac_try
="$ac_link"
8681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8685 $as_echo "$ac_try_echo") >&5
8686 (eval "$ac_link") 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest$ac_exeext && {
8696 test "$cross_compiling" = yes ||
8697 $as_test_x conftest$ac_exeext
8699 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8701 $as_echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8707 rm -rf conftest.dSYM
8708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8709 conftest$ac_exeext conftest.$ac_ext
8710 LIBS=$ac_check_lib_save_LIBS
8712 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8713 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8714 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8715 cat >>confdefs.h <<_ACEOF
8716 #define HAVE_LIBCRYPTO 1
8719 LIBS="-lcrypto $LIBS"
8722 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8723 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8724 { (exit 1); exit 1; }; }
8728 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8729 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8730 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8731 $as_echo_n "(cached) " >&6
8733 ac_check_lib_save_LIBS=$LIBS
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8742 /* Override any GCC internal prototype to avoid an error.
8743 Use char because int might match the return type of a GCC
8744 builtin and then its argument prototype would still apply. */
8748 char SSL_library_init ();
8752 return SSL_library_init ();
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8761 *) ac_try_echo
=$ac_try;;
8763 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_link") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1
>conftest.err
8769 cat conftest.err
>&5
8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest
$ac_exeext && {
8775 test "$cross_compiling" = yes ||
8776 $as_test_x conftest
$ac_exeext
8778 ac_cv_lib_ssl_SSL_library_init
=yes
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.
$ac_ext >&5
8783 ac_cv_lib_ssl_SSL_library_init
=no
8786 rm -rf conftest.dSYM
8787 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8788 conftest
$ac_exeext conftest.
$ac_ext
8789 LIBS
=$ac_check_lib_save_LIBS
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8792 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8793 if test "x$ac_cv_lib_ssl_SSL_library_init" = x
""yes; then
8794 cat >>confdefs.h
<<_ACEOF
8795 #define HAVE_LIBSSL 1
8801 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8802 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8803 { (exit 1); exit 1; }; }
8808 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8809 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8810 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8811 $as_echo_n "(cached) " >&6
8813 ac_check_lib_save_LIBS
=$LIBS
8814 LIBS
="-leay32 $LIBS"
8815 cat >conftest.
$ac_ext <<_ACEOF
8818 cat confdefs.h
>>conftest.
$ac_ext
8819 cat >>conftest.
$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8822 /* Override any GCC internal prototype to avoid an error.
8823 Use char because int might match the return type of a GCC
8824 builtin and then its argument prototype would still apply. */
8828 char CRYPTO_new_ex_data ();
8832 return CRYPTO_new_ex_data ();
8837 rm -f conftest.
$ac_objext conftest
$ac_exeext
8838 if { (ac_try
="$ac_link"
8840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8844 $as_echo "$ac_try_echo") >&5
8845 (eval "$ac_link") 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_c_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest$ac_exeext && {
8855 test "$cross_compiling" = yes ||
8856 $as_test_x conftest$ac_exeext
8858 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8860 $as_echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8863 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8866 rm -rf conftest.dSYM
8867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8868 conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8872 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8873 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8874 cat >>confdefs.h <<_ACEOF
8875 #define HAVE_LIBEAY32 1
8878 LIBS="-leay32 $LIBS"
8881 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8882 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8883 { (exit 1); exit 1; }; }
8887 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8888 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8889 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8890 $as_echo_n "(cached) " >&6
8892 ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-lssleay32 $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8901 /* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8907 char SSL_library_init ();
8911 return SSL_library_init ();
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8920 *) ac_try_echo
=$ac_try;;
8922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8923 $as_echo "$ac_try_echo") >&5
8924 (eval "$ac_link") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1
>conftest.err
8928 cat conftest.err
>&5
8929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest
$ac_exeext && {
8934 test "$cross_compiling" = yes ||
8935 $as_test_x conftest
$ac_exeext
8937 ac_cv_lib_ssleay32_SSL_library_init
=yes
8939 $as_echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.
$ac_ext >&5
8942 ac_cv_lib_ssleay32_SSL_library_init
=no
8945 rm -rf conftest.dSYM
8946 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8947 conftest
$ac_exeext conftest.
$ac_ext
8948 LIBS
=$ac_check_lib_save_LIBS
8950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8951 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8952 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x
""yes; then
8953 cat >>confdefs.h
<<_ACEOF
8954 #define HAVE_LIBSSLEAY32 1
8957 LIBS
="-lssleay32 $LIBS"
8960 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8961 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8962 { (exit 1); exit 1; }; }
8968 if test "$with_pam" = yes ; then
8970 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8971 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8972 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8973 $as_echo_n "(cached) " >&6
8975 ac_check_lib_save_LIBS
=$LIBS
8977 cat >conftest.
$ac_ext <<_ACEOF
8980 cat confdefs.h
>>conftest.
$ac_ext
8981 cat >>conftest.
$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8994 return pam_start ();
8999 rm -f conftest.
$ac_objext conftest
$ac_exeext
9000 if { (ac_try
="$ac_link"
9002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9006 $as_echo "$ac_try_echo") >&5
9007 (eval "$ac_link") 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } && {
9014 test -z "$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 } && test -s conftest$ac_exeext && {
9017 test "$cross_compiling" = yes ||
9018 $as_test_x conftest$ac_exeext
9020 ac_cv_lib_pam_pam_start=yes
9022 $as_echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_cv_lib_pam_pam_start=no
9028 rm -rf conftest.dSYM
9029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9030 conftest$ac_exeext conftest.$ac_ext
9031 LIBS=$ac_check_lib_save_LIBS
9033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9034 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9035 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9036 cat >>confdefs.h <<_ACEOF
9037 #define HAVE_LIBPAM 1
9043 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9044 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9045 { (exit 1); exit 1; }; }
9050 if test "$with_libxml" = yes ; then
9052 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9053 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9054 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9055 $as_echo_n "(cached) " >&6
9057 ac_check_lib_save_LIBS=$LIBS
9059 cat >conftest.$ac_ext <<_ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9066 /* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9072 char xmlSaveToBuffer ();
9076 return xmlSaveToBuffer ();
9081 rm -f conftest.$ac_objext conftest$ac_exeext
9082 if { (ac_try="$ac_link"
9084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9085 *) ac_try_echo
=$ac_try;;
9087 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9088 $as_echo "$ac_try_echo") >&5
9089 (eval "$ac_link") 2>conftest.er1
9091 grep -v '^ *+' conftest.er1
>conftest.err
9093 cat conftest.err
>&5
9094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } && {
9096 test -z "$ac_c_werror_flag" ||
9097 test ! -s conftest.err
9098 } && test -s conftest
$ac_exeext && {
9099 test "$cross_compiling" = yes ||
9100 $as_test_x conftest
$ac_exeext
9102 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
9104 $as_echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.
$ac_ext >&5
9107 ac_cv_lib_xml2_xmlSaveToBuffer
=no
9110 rm -rf conftest.dSYM
9111 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9112 conftest
$ac_exeext conftest.
$ac_ext
9113 LIBS
=$ac_check_lib_save_LIBS
9115 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9116 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9117 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x
""yes; then
9118 cat >>confdefs.h
<<_ACEOF
9119 #define HAVE_LIBXML2 1
9125 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9126 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9127 { (exit 1); exit 1; }; }
9132 if test "$with_libxslt" = yes ; then
9134 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9135 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9136 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9137 $as_echo_n "(cached) " >&6
9139 ac_check_lib_save_LIBS
=$LIBS
9141 cat >conftest.
$ac_ext <<_ACEOF
9144 cat confdefs.h
>>conftest.
$ac_ext
9145 cat >>conftest.
$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9148 /* Override any GCC internal prototype to avoid an error.
9149 Use char because int might match the return type of a GCC
9150 builtin and then its argument prototype would still apply. */
9154 char xsltCleanupGlobals ();
9158 return xsltCleanupGlobals ();
9163 rm -f conftest.
$ac_objext conftest
$ac_exeext
9164 if { (ac_try
="$ac_link"
9166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9170 $as_echo "$ac_try_echo") >&5
9171 (eval "$ac_link") 2>conftest.er1
9173 grep -v '^ *+' conftest.er1 >conftest.err
9175 cat conftest.err >&5
9176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } && {
9178 test -z "$ac_c_werror_flag" ||
9179 test ! -s conftest.err
9180 } && test -s conftest$ac_exeext && {
9181 test "$cross_compiling" = yes ||
9182 $as_test_x conftest$ac_exeext
9184 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9186 $as_echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 ac_cv_lib_xslt_xsltCleanupGlobals=no
9192 rm -rf conftest.dSYM
9193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9194 conftest$ac_exeext conftest.$ac_ext
9195 LIBS=$ac_check_lib_save_LIBS
9197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9198 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9199 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9200 cat >>confdefs.h <<_ACEOF
9201 #define HAVE_LIBXSLT 1
9207 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9208 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9209 { (exit 1); exit 1; }; }
9214 # for contrib/uuid-ossp
9215 if test "$with_ossp_uuid" = yes ; then
9216 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9217 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9218 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9219 $as_echo_n "(cached) " >&6
9221 ac_check_lib_save_LIBS=$LIBS
9222 LIBS="-lossp-uuid $LIBS"
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9230 /* Override any GCC internal prototype to avoid an error.
9231 Use char because int might match the return type of a GCC
9232 builtin and then its argument prototype would still apply. */
9236 char uuid_export ();
9240 return uuid_export ();
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (ac_try="$ac_link"
9248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9249 *) ac_try_echo
=$ac_try;;
9251 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9252 $as_echo "$ac_try_echo") >&5
9253 (eval "$ac_link") 2>conftest.er1
9255 grep -v '^ *+' conftest.er1
>conftest.err
9257 cat conftest.err
>&5
9258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest
$ac_exeext && {
9263 test "$cross_compiling" = yes ||
9264 $as_test_x conftest
$ac_exeext
9266 ac_cv_lib_ossp_uuid_uuid_export
=yes
9268 $as_echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.
$ac_ext >&5
9271 ac_cv_lib_ossp_uuid_uuid_export
=no
9274 rm -rf conftest.dSYM
9275 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9276 conftest
$ac_exeext conftest.
$ac_ext
9277 LIBS
=$ac_check_lib_save_LIBS
9279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9280 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9281 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x
""yes; then
9282 OSSP_UUID_LIBS
="-lossp-uuid"
9284 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9285 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9286 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9287 $as_echo_n "(cached) " >&6
9289 ac_check_lib_save_LIBS
=$LIBS
9291 cat >conftest.
$ac_ext <<_ACEOF
9294 cat confdefs.h
>>conftest.
$ac_ext
9295 cat >>conftest.
$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9304 char uuid_export ();
9308 return uuid_export ();
9313 rm -f conftest.
$ac_objext conftest
$ac_exeext
9314 if { (ac_try
="$ac_link"
9316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9320 $as_echo "$ac_try_echo") >&5
9321 (eval "$ac_link") 2>conftest.er1
9323 grep -v '^ *+' conftest.er1 >conftest.err
9325 cat conftest.err >&5
9326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest$ac_exeext && {
9331 test "$cross_compiling" = yes ||
9332 $as_test_x conftest$ac_exeext
9334 ac_cv_lib_uuid_uuid_export=yes
9336 $as_echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_cv_lib_uuid_uuid_export=no
9342 rm -rf conftest.dSYM
9343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9344 conftest$ac_exeext conftest.$ac_ext
9345 LIBS=$ac_check_lib_save_LIBS
9347 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9348 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9349 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9350 OSSP_UUID_LIBS="-luuid"
9352 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9353 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9354 { (exit 1); exit 1; }; }
9367 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9368 $as_echo_n "checking for ANSI C header files... " >&6; }
9369 if test "${ac_cv_header_stdc+set}" = set; then
9370 $as_echo_n "(cached) " >&6
9372 cat >conftest.$ac_ext <<_ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9395 *) ac_try_echo
=$ac_try;;
9397 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1
>conftest.err
9403 cat conftest.err
>&5
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.
$ac_objext; then
9409 ac_cv_header_stdc
=yes
9411 $as_echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.
$ac_ext >&5
9414 ac_cv_header_stdc
=no
9417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9419 if test $ac_cv_header_stdc = yes; then
9420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9421 cat >conftest.
$ac_ext <<_ACEOF
9424 cat confdefs.h
>>conftest.
$ac_ext
9425 cat >>conftest.
$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9431 $EGREP "memchr" >/dev
/null
2>&1; then
9434 ac_cv_header_stdc
=no
9440 if test $ac_cv_header_stdc = yes; then
9441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9442 cat >conftest.
$ac_ext <<_ACEOF
9445 cat confdefs.h
>>conftest.
$ac_ext
9446 cat >>conftest.
$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9452 $EGREP "free" >/dev
/null
2>&1; then
9455 ac_cv_header_stdc
=no
9461 if test $ac_cv_header_stdc = yes; then
9462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9463 if test "$cross_compiling" = yes; then
9466 cat >conftest.
$ac_ext <<_ACEOF
9469 cat confdefs.h
>>conftest.
$ac_ext
9470 cat >>conftest.
$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9474 #if ((' ' & 0x0FF) == 0x020)
9475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9478 # define ISLOWER(c) \
9479 (('a' <= (c) && (c) <= 'i') \
9480 || ('j' <= (c) && (c) <= 'r') \
9481 || ('s' <= (c) && (c) <= 'z'))
9482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9490 for (i = 0; i < 256; i++)
9491 if (XOR (islower (i), ISLOWER (i))
9492 || toupper (i) != TOUPPER (i))
9497 rm -f conftest
$ac_exeext
9498 if { (ac_try
="$ac_link"
9500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9504 $as_echo "$ac_try_echo") >&5
9505 (eval "$ac_link") 2>&5
9507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9509 { (case "(($ac_try" in
9510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9511 *) ac_try_echo
=$ac_try;;
9513 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9514 $as_echo "$ac_try_echo") >&5
9515 (eval "$ac_try") 2>&5
9517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9521 $as_echo "$as_me: program exited with status $ac_status" >&5
9522 $as_echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.
$ac_ext >&5
9526 ac_cv_header_stdc
=no
9528 rm -rf conftest.dSYM
9529 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9535 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9536 $as_echo "$ac_cv_header_stdc" >&6; }
9537 if test $ac_cv_header_stdc = yes; then
9539 cat >>confdefs.h
<<\_ACEOF
9540 #define STDC_HEADERS 1
9545 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9555 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
9556 inttypes.h stdint.h unistd.h
9558 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9560 $as_echo_n "checking for $ac_header... " >&6; }
9561 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9562 $as_echo_n "(cached) " >&6
9564 cat >conftest.
$ac_ext <<_ACEOF
9567 cat confdefs.h
>>conftest.
$ac_ext
9568 cat >>conftest.
$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 $ac_includes_default
9572 #include <$ac_header>
9574 rm -f conftest.
$ac_objext
9575 if { (ac_try
="$ac_compile"
9577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9581 $as_echo "$ac_try_echo") >&5
9582 (eval "$ac_compile") 2>conftest.er1
9584 grep -v '^ *+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest.$ac_objext; then
9592 eval "$as_ac_Header=yes"
9594 $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 eval "$as_ac_Header=no"
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 ac_res=`eval 'as_val=${'$as_ac_Header'}
9603 $as_echo "$as_val"'`
9604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9605 $as_echo "$ac_res" >&6; }
9606 as_val=`eval 'as_val=${'$as_ac_Header'}
9607 $as_echo "$as_val"'`
9608 if test "x$as_val" = x""yes; then
9609 cat >>confdefs.h <<_ACEOF
9610 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9645 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9650 $as_echo_n "checking for $ac_header... " >&6; }
9651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9652 $as_echo_n "(cached) " >&6
9654 ac_res=`eval 'as_val=${'$as_ac_Header'}
9655 $as_echo "$as_val"'`
9656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9657 $as_echo "$ac_res" >&6; }
9659 # Is the header compilable?
9660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9661 $as_echo_n "checking $ac_header usability... " >&6; }
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9669 #include <$ac_header>
9671 rm -f conftest.$ac_objext
9672 if { (ac_try="$ac_compile"
9674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9675 *) ac_try_echo
=$ac_try;;
9677 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9678 $as_echo "$ac_try_echo") >&5
9679 (eval "$ac_compile") 2>conftest.er1
9681 grep -v '^ *+' conftest.er1
>conftest.err
9683 cat conftest.err
>&5
9684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest.
$ac_objext; then
9689 ac_header_compiler
=yes
9691 $as_echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.
$ac_ext >&5
9694 ac_header_compiler
=no
9697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9699 $as_echo "$ac_header_compiler" >&6; }
9701 # Is the header present?
9702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9703 $as_echo_n "checking $ac_header presence... " >&6; }
9704 cat >conftest.
$ac_ext <<_ACEOF
9707 cat confdefs.h
>>conftest.
$ac_ext
9708 cat >>conftest.
$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 #include <$ac_header>
9712 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9718 $as_echo "$ac_try_echo") >&5
9719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9721 grep -v '^ *+' conftest.er1 >conftest.err
9723 cat conftest.err >&5
9724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } >/dev/null && {
9726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9727 test ! -s conftest.err
9729 ac_header_preproc=yes
9731 $as_echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_header_preproc=no
9737 rm -f conftest.err conftest.$ac_ext
9738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9739 $as_echo "$ac_header_preproc" >&6; }
9741 # So? What about this header?
9742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9748 ac_header_preproc=yes
9751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9754 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9758 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9764 ## ---------------------------------------- ##
9765 ## Report this to pgsql-bugs@postgresql.org ##
9766 ## ---------------------------------------- ##
9768 ) | sed "s/^/$as_me: WARNING: /" >&2
9771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9772 $as_echo_n "checking for $ac_header... " >&6; }
9773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774 $as_echo_n "(cached) " >&6
9776 eval "$as_ac_Header=\$ac_header_preproc"
9778 ac_res=`eval 'as_val=${'$as_ac_Header'}
9779 $as_echo "$as_val"'`
9780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9781 $as_echo "$ac_res" >&6; }
9784 as_val=`eval 'as_val=${'$as_ac_Header'}
9785 $as_echo "$as_val"'`
9786 if test "x$as_val" = x""yes; then
9787 cat >>confdefs.h <<_ACEOF
9788 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9796 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9797 # netinet/in.h is included first.
9799 for ac_header in netinet/in.h
9801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 $as_echo_n "checking for $ac_header... " >&6; }
9805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806 $as_echo_n "(cached) " >&6
9808 ac_res=`eval 'as_val=${'$as_ac_Header'}
9809 $as_echo "$as_val"'`
9810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9811 $as_echo "$ac_res" >&6; }
9813 # Is the header compilable?
9814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 $as_echo_n "checking $ac_header usability... " >&6; }
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 #include <$ac_header>
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9829 *) ac_try_echo
=$ac_try;;
9831 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9832 $as_echo "$ac_try_echo") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.
$ac_objext; then
9843 ac_header_compiler
=yes
9845 $as_echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.
$ac_ext >&5
9848 ac_header_compiler
=no
9851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9853 $as_echo "$ac_header_compiler" >&6; }
9855 # Is the header present?
9856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9857 $as_echo_n "checking $ac_header presence... " >&6; }
9858 cat >conftest.
$ac_ext <<_ACEOF
9861 cat confdefs.h
>>conftest.
$ac_ext
9862 cat >>conftest.
$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864 #include <$ac_header>
9866 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9872 $as_echo "$ac_try_echo") >&5
9873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9875 grep -v '^ *+' conftest.er1 >conftest.err
9877 cat conftest.err >&5
9878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } >/dev/null && {
9880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9881 test ! -s conftest.err
9883 ac_header_preproc=yes
9885 $as_echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 ac_header_preproc=no
9891 rm -f conftest.err conftest.$ac_ext
9892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9893 $as_echo "$ac_header_preproc" >&6; }
9895 # So? What about this header?
9896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9902 ac_header_preproc=yes
9905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9908 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9912 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918 ## ---------------------------------------- ##
9919 ## Report this to pgsql-bugs@postgresql.org ##
9920 ## ---------------------------------------- ##
9922 ) | sed "s/^/$as_me: WARNING: /" >&2
9925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9926 $as_echo_n "checking for $ac_header... " >&6; }
9927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9928 $as_echo_n "(cached) " >&6
9930 eval "$as_ac_Header=\$ac_header_preproc"
9932 ac_res=`eval 'as_val=${'$as_ac_Header'}
9933 $as_echo "$as_val"'`
9934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9935 $as_echo "$ac_res" >&6; }
9938 as_val=`eval 'as_val=${'$as_ac_Header'}
9939 $as_echo "$as_val"'`
9940 if test "x$as_val" = x""yes; then
9941 cat >>confdefs.h <<_ACEOF
9942 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9950 for ac_header in netinet/tcp.h
9952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9953 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9954 $as_echo_n "checking for $ac_header... " >&6; }
9955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9956 $as_echo_n "(cached) " >&6
9958 cat >conftest.$ac_ext <<_ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 $ac_includes_default
9965 #ifdef HAVE_NETINET_IN_H
9966 #include <netinet/in.h>
9970 #include <$ac_header>
9972 rm -f conftest.$ac_objext
9973 if { (ac_try="$ac_compile"
9975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9976 *) ac_try_echo
=$ac_try;;
9978 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980 (eval "$ac_compile") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1
>conftest.err
9984 cat conftest.err
>&5
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest.
$ac_objext; then
9990 eval "$as_ac_Header=yes"
9992 $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.
$ac_ext >&5
9995 eval "$as_ac_Header=no"
9998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10000 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10001 $as_echo "$as_val"'`
10002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10003 $as_echo "$ac_res" >&6; }
10004 as_val
=`eval 'as_val=${'$as_ac_Header'}
10005 $as_echo "$as_val"'`
10006 if test "x$as_val" = x
""yes; then
10007 cat >>confdefs.h
<<_ACEOF
10008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10016 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
10018 for ac_header
in readline
/readline.h
10020 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10021 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10023 $as_echo_n "checking for $ac_header... " >&6; }
10024 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10025 $as_echo_n "(cached) " >&6
10027 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10028 $as_echo "$as_val"'`
10029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10030 $as_echo "$ac_res" >&6; }
10032 # Is the header compilable?
10033 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10034 $as_echo_n "checking $ac_header usability... " >&6; }
10035 cat >conftest.
$ac_ext <<_ACEOF
10038 cat confdefs.h
>>conftest.
$ac_ext
10039 cat >>conftest.
$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 $ac_includes_default
10042 #include <$ac_header>
10044 rm -f conftest.
$ac_objext
10045 if { (ac_try
="$ac_compile"
10046 case "(($ac_try" in
10047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10051 $as_echo "$ac_try_echo") >&5
10052 (eval "$ac_compile") 2>conftest.er1
10054 grep -v '^ *+' conftest.er1 >conftest.err
10056 cat conftest.err >&5
10057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } && {
10059 test -z "$ac_c_werror_flag" ||
10060 test ! -s conftest.err
10061 } && test -s conftest.$ac_objext; then
10062 ac_header_compiler=yes
10064 $as_echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_header_compiler=no
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 $as_echo "$ac_header_compiler" >&6; }
10074 # Is the header present?
10075 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076 $as_echo_n "checking $ac_header presence... " >&6; }
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <$ac_header>
10085 if { (ac_try="$ac_cpp conftest.$ac_ext"
10086 case "(($ac_try" in
10087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10088 *) ac_try_echo
=$ac_try;;
10090 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10091 $as_echo "$ac_try_echo") >&5
10092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10094 grep -v '^ *+' conftest.er1
>conftest.err
10096 cat conftest.err
>&5
10097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } >/dev
/null
&& {
10099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10100 test ! -s conftest.err
10102 ac_header_preproc
=yes
10104 $as_echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.
$ac_ext >&5
10107 ac_header_preproc
=no
10110 rm -f conftest.err conftest.
$ac_ext
10111 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 $as_echo "$ac_header_preproc" >&6; }
10114 # So? What about this header?
10115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc
=yes
10124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10137 ## ---------------------------------------- ##
10138 ## Report this to pgsql-bugs@postgresql.org ##
10139 ## ---------------------------------------- ##
10141 ) |
sed "s/^/$as_me: WARNING: /" >&2
10144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10145 $as_echo_n "checking for $ac_header... " >&6; }
10146 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147 $as_echo_n "(cached) " >&6
10149 eval "$as_ac_Header=\$ac_header_preproc"
10151 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10152 $as_echo "$as_val"'`
10153 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154 $as_echo "$ac_res" >&6; }
10157 as_val
=`eval 'as_val=${'$as_ac_Header'}
10158 $as_echo "$as_val"'`
10159 if test "x$as_val" = x
""yes; then
10160 cat >>confdefs.h
<<_ACEOF
10161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10166 for ac_header
in readline.h
10168 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10169 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10170 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10171 $as_echo_n "checking for $ac_header... " >&6; }
10172 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10173 $as_echo_n "(cached) " >&6
10175 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10176 $as_echo "$as_val"'`
10177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10178 $as_echo "$ac_res" >&6; }
10180 # Is the header compilable?
10181 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10182 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
10190 #include <$ac_header>
10192 rm -f conftest.
$ac_objext
10193 if { (ac_try
="$ac_compile"
10194 case "(($ac_try" in
10195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10199 $as_echo "$ac_try_echo") >&5
10200 (eval "$ac_compile") 2>conftest.er1
10202 grep -v '^ *+' conftest.er1 >conftest.err
10204 cat conftest.err >&5
10205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest.$ac_objext; then
10210 ac_header_compiler=yes
10212 $as_echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10215 ac_header_compiler=no
10218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10220 $as_echo "$ac_header_compiler" >&6; }
10222 # Is the header present?
10223 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10224 $as_echo_n "checking $ac_header presence... " >&6; }
10225 cat >conftest.$ac_ext <<_ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10231 #include <$ac_header>
10233 if { (ac_try="$ac_cpp conftest.$ac_ext"
10234 case "(($ac_try" in
10235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10236 *) ac_try_echo
=$ac_try;;
10238 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10239 $as_echo "$ac_try_echo") >&5
10240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10242 grep -v '^ *+' conftest.er1
>conftest.err
10244 cat conftest.err
>&5
10245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } >/dev
/null
&& {
10247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10250 ac_header_preproc
=yes
10252 $as_echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.
$ac_ext >&5
10255 ac_header_preproc
=no
10258 rm -f conftest.err conftest.
$ac_ext
10259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10260 $as_echo "$ac_header_preproc" >&6; }
10262 # So? What about this header?
10263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10266 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10269 ac_header_preproc
=yes
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10275 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10277 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10279 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10281 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10283 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10285 ## ---------------------------------------- ##
10286 ## Report this to pgsql-bugs@postgresql.org ##
10287 ## ---------------------------------------- ##
10289 ) |
sed "s/^/$as_me: WARNING: /" >&2
10292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10293 $as_echo_n "checking for $ac_header... " >&6; }
10294 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10295 $as_echo_n "(cached) " >&6
10297 eval "$as_ac_Header=\$ac_header_preproc"
10299 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10300 $as_echo "$as_val"'`
10301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10302 $as_echo "$ac_res" >&6; }
10305 as_val
=`eval 'as_val=${'$as_ac_Header'}
10306 $as_echo "$as_val"'`
10307 if test "x$as_val" = x
""yes; then
10308 cat >>confdefs.h
<<_ACEOF
10309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10313 { { $as_echo "$as_me:$LINENO: error: readline header not found
10314 If you have readline already installed, see config.log for details on the
10315 failure. It is possible the compiler isn't looking in the proper directory.
10316 Use --without-readline to disable readline support." >&5
10317 $as_echo "$as_me: error: readline header not found
10318 If you have readline already installed, see config.log for details on the
10319 failure. It is possible the compiler isn't looking in the proper directory.
10320 Use --without-readline to disable readline support." >&2;}
10321 { (exit 1); exit 1; }; }
10331 for ac_header
in readline
/history.h
10333 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10334 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10336 $as_echo_n "checking for $ac_header... " >&6; }
10337 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338 $as_echo_n "(cached) " >&6
10340 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10341 $as_echo "$as_val"'`
10342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10343 $as_echo "$ac_res" >&6; }
10345 # Is the header compilable?
10346 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10347 $as_echo_n "checking $ac_header usability... " >&6; }
10348 cat >conftest.
$ac_ext <<_ACEOF
10351 cat confdefs.h
>>conftest.
$ac_ext
10352 cat >>conftest.
$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 $ac_includes_default
10355 #include <$ac_header>
10357 rm -f conftest.
$ac_objext
10358 if { (ac_try
="$ac_compile"
10359 case "(($ac_try" in
10360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10364 $as_echo "$ac_try_echo") >&5
10365 (eval "$ac_compile") 2>conftest.er1
10367 grep -v '^ *+' conftest.er1 >conftest.err
10369 cat conftest.err >&5
10370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest.$ac_objext; then
10375 ac_header_compiler=yes
10377 $as_echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_header_compiler=no
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10385 $as_echo "$ac_header_compiler" >&6; }
10387 # Is the header present?
10388 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10389 $as_echo_n "checking $ac_header presence... " >&6; }
10390 cat >conftest.$ac_ext <<_ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 #include <$ac_header>
10398 if { (ac_try="$ac_cpp conftest.$ac_ext"
10399 case "(($ac_try" in
10400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10401 *) ac_try_echo
=$ac_try;;
10403 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10404 $as_echo "$ac_try_echo") >&5
10405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1
>conftest.err
10409 cat conftest.err
>&5
10410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } >/dev
/null
&& {
10412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10415 ac_header_preproc
=yes
10417 $as_echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.
$ac_ext >&5
10420 ac_header_preproc
=no
10423 rm -f conftest.err conftest.
$ac_ext
10424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10425 $as_echo "$ac_header_preproc" >&6; }
10427 # So? What about this header?
10428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10431 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10434 ac_header_preproc
=yes
10437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10438 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10440 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10442 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10444 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10446 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10448 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10450 ## ---------------------------------------- ##
10451 ## Report this to pgsql-bugs@postgresql.org ##
10452 ## ---------------------------------------- ##
10454 ) |
sed "s/^/$as_me: WARNING: /" >&2
10457 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10458 $as_echo_n "checking for $ac_header... " >&6; }
10459 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10460 $as_echo_n "(cached) " >&6
10462 eval "$as_ac_Header=\$ac_header_preproc"
10464 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10465 $as_echo "$as_val"'`
10466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10467 $as_echo "$ac_res" >&6; }
10470 as_val
=`eval 'as_val=${'$as_ac_Header'}
10471 $as_echo "$as_val"'`
10472 if test "x$as_val" = x
""yes; then
10473 cat >>confdefs.h
<<_ACEOF
10474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10479 for ac_header
in history.h
10481 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10482 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10483 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10484 $as_echo_n "checking for $ac_header... " >&6; }
10485 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10486 $as_echo_n "(cached) " >&6
10488 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10489 $as_echo "$as_val"'`
10490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10491 $as_echo "$ac_res" >&6; }
10493 # Is the header compilable?
10494 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10495 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
10503 #include <$ac_header>
10505 rm -f conftest.
$ac_objext
10506 if { (ac_try
="$ac_compile"
10507 case "(($ac_try" in
10508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10512 $as_echo "$ac_try_echo") >&5
10513 (eval "$ac_compile") 2>conftest.er1
10515 grep -v '^ *+' conftest.er1 >conftest.err
10517 cat conftest.err >&5
10518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && {
10520 test -z "$ac_c_werror_flag" ||
10521 test ! -s conftest.err
10522 } && test -s conftest.$ac_objext; then
10523 ac_header_compiler=yes
10525 $as_echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 ac_header_compiler=no
10531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10533 $as_echo "$ac_header_compiler" >&6; }
10535 # Is the header present?
10536 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10537 $as_echo_n "checking $ac_header presence... " >&6; }
10538 cat >conftest.$ac_ext <<_ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 #include <$ac_header>
10546 if { (ac_try="$ac_cpp conftest.$ac_ext"
10547 case "(($ac_try" in
10548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10549 *) ac_try_echo
=$ac_try;;
10551 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10552 $as_echo "$ac_try_echo") >&5
10553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10555 grep -v '^ *+' conftest.er1
>conftest.err
10557 cat conftest.err
>&5
10558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } >/dev
/null
&& {
10560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10561 test ! -s conftest.err
10563 ac_header_preproc
=yes
10565 $as_echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.
$ac_ext >&5
10568 ac_header_preproc
=no
10571 rm -f conftest.err conftest.
$ac_ext
10572 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10573 $as_echo "$ac_header_preproc" >&6; }
10575 # So? What about this header?
10576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10579 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10582 ac_header_preproc
=yes
10585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10586 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10588 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10590 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10592 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10596 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10598 ## ---------------------------------------- ##
10599 ## Report this to pgsql-bugs@postgresql.org ##
10600 ## ---------------------------------------- ##
10602 ) |
sed "s/^/$as_me: WARNING: /" >&2
10605 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 $as_echo_n "checking for $ac_header... " >&6; }
10607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10608 $as_echo_n "(cached) " >&6
10610 eval "$as_ac_Header=\$ac_header_preproc"
10612 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10613 $as_echo "$as_val"'`
10614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10615 $as_echo "$ac_res" >&6; }
10618 as_val
=`eval 'as_val=${'$as_ac_Header'}
10619 $as_echo "$as_val"'`
10620 if test "x$as_val" = x
""yes; then
10621 cat >>confdefs.h
<<_ACEOF
10622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10626 { { $as_echo "$as_me:$LINENO: error: history header not found
10627 If you have readline already installed, see config.log for details on the
10628 failure. It is possible the compiler isn't looking in the proper directory.
10629 Use --without-readline to disable readline support." >&5
10630 $as_echo "$as_me: error: history header not found
10631 If you have readline already installed, see config.log for details on the
10632 failure. It is possible the compiler isn't looking in the proper directory.
10633 Use --without-readline to disable readline support." >&2;}
10634 { (exit 1); exit 1; }; }
10645 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
10646 # Some installations of libedit usurp /usr/include/readline/, which seems
10647 # bad practice, since in combined installations readline will have its headers
10648 # there. We might have to resort to AC_EGREP checks to make sure we found
10649 # the proper header...
10651 for ac_header
in editline
/readline.h
10653 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10654 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 $as_echo_n "checking for $ac_header... " >&6; }
10657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 $as_echo_n "(cached) " >&6
10660 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10661 $as_echo "$as_val"'`
10662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10665 # Is the header compilable?
10666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 $as_echo_n "checking $ac_header usability... " >&6; }
10668 cat >conftest.
$ac_ext <<_ACEOF
10671 cat confdefs.h
>>conftest.
$ac_ext
10672 cat >>conftest.
$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 $ac_includes_default
10675 #include <$ac_header>
10677 rm -f conftest.
$ac_objext
10678 if { (ac_try
="$ac_compile"
10679 case "(($ac_try" in
10680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685 (eval "$ac_compile") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest.$ac_objext; then
10695 ac_header_compiler=yes
10697 $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10700 ac_header_compiler=no
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10705 $as_echo "$ac_header_compiler" >&6; }
10707 # Is the header present?
10708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10709 $as_echo_n "checking $ac_header presence... " >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716 #include <$ac_header>
10718 if { (ac_try="$ac_cpp conftest.$ac_ext"
10719 case "(($ac_try" in
10720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10721 *) ac_try_echo
=$ac_try;;
10723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1
>conftest.err
10729 cat conftest.err
>&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } >/dev
/null
&& {
10732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10735 ac_header_preproc
=yes
10737 $as_echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.
$ac_ext >&5
10740 ac_header_preproc
=no
10743 rm -f conftest.err conftest.
$ac_ext
10744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10745 $as_echo "$ac_header_preproc" >&6; }
10747 # So? What about this header?
10748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10754 ac_header_preproc
=yes
10757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10760 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10764 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10770 ## ---------------------------------------- ##
10771 ## Report this to pgsql-bugs@postgresql.org ##
10772 ## ---------------------------------------- ##
10774 ) |
sed "s/^/$as_me: WARNING: /" >&2
10777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10778 $as_echo_n "checking for $ac_header... " >&6; }
10779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10780 $as_echo_n "(cached) " >&6
10782 eval "$as_ac_Header=\$ac_header_preproc"
10784 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10785 $as_echo "$as_val"'`
10786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10787 $as_echo "$ac_res" >&6; }
10790 as_val
=`eval 'as_val=${'$as_ac_Header'}
10791 $as_echo "$as_val"'`
10792 if test "x$as_val" = x
""yes; then
10793 cat >>confdefs.h
<<_ACEOF
10794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10799 for ac_header
in readline.h
10801 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10802 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10804 $as_echo_n "checking for $ac_header... " >&6; }
10805 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806 $as_echo_n "(cached) " >&6
10808 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10809 $as_echo "$as_val"'`
10810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10811 $as_echo "$ac_res" >&6; }
10813 # Is the header compilable?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
10823 #include <$ac_header>
10825 rm -f conftest.
$ac_objext
10826 if { (ac_try
="$ac_compile"
10827 case "(($ac_try" in
10828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_compile") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest.$ac_objext; then
10843 ac_header_compiler=yes
10845 $as_echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 ac_header_compiler=no
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10853 $as_echo "$ac_header_compiler" >&6; }
10855 # Is the header present?
10856 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10857 $as_echo_n "checking $ac_header presence... " >&6; }
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <$ac_header>
10866 if { (ac_try="$ac_cpp conftest.$ac_ext"
10867 case "(($ac_try" in
10868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10869 *) ac_try_echo
=$ac_try;;
10871 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1
>conftest.err
10877 cat conftest.err
>&5
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } >/dev
/null
&& {
10880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10883 ac_header_preproc
=yes
10885 $as_echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.
$ac_ext >&5
10888 ac_header_preproc
=no
10891 rm -f conftest.err conftest.
$ac_ext
10892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 $as_echo "$ac_header_preproc" >&6; }
10895 # So? What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902 ac_header_preproc
=yes
10905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10908 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10912 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10918 ## ---------------------------------------- ##
10919 ## Report this to pgsql-bugs@postgresql.org ##
10920 ## ---------------------------------------- ##
10922 ) |
sed "s/^/$as_me: WARNING: /" >&2
10925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 $as_echo_n "checking for $ac_header... " >&6; }
10927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928 $as_echo_n "(cached) " >&6
10930 eval "$as_ac_Header=\$ac_header_preproc"
10932 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10933 $as_echo "$as_val"'`
10934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10935 $as_echo "$ac_res" >&6; }
10938 as_val
=`eval 'as_val=${'$as_ac_Header'}
10939 $as_echo "$as_val"'`
10940 if test "x$as_val" = x
""yes; then
10941 cat >>confdefs.h
<<_ACEOF
10942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10947 for ac_header
in readline
/readline.h
10949 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10950 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10952 $as_echo_n "checking for $ac_header... " >&6; }
10953 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954 $as_echo_n "(cached) " >&6
10956 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10957 $as_echo "$as_val"'`
10958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10959 $as_echo "$ac_res" >&6; }
10961 # Is the header compilable?
10962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10963 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
10971 #include <$ac_header>
10973 rm -f conftest.
$ac_objext
10974 if { (ac_try
="$ac_compile"
10975 case "(($ac_try" in
10976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10980 $as_echo "$ac_try_echo") >&5
10981 (eval "$ac_compile") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_c_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest.$ac_objext; then
10991 ac_header_compiler=yes
10993 $as_echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_header_compiler=no
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11001 $as_echo "$ac_header_compiler" >&6; }
11003 # Is the header present?
11004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11005 $as_echo_n "checking $ac_header presence... " >&6; }
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <$ac_header>
11014 if { (ac_try="$ac_cpp conftest.$ac_ext"
11015 case "(($ac_try" in
11016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11017 *) ac_try_echo
=$ac_try;;
11019 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11020 $as_echo "$ac_try_echo") >&5
11021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11023 grep -v '^ *+' conftest.er1
>conftest.err
11025 cat conftest.err
>&5
11026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } >/dev
/null
&& {
11028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11029 test ! -s conftest.err
11031 ac_header_preproc
=yes
11033 $as_echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.
$ac_ext >&5
11036 ac_header_preproc
=no
11039 rm -f conftest.err conftest.
$ac_ext
11040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11041 $as_echo "$ac_header_preproc" >&6; }
11043 # So? What about this header?
11044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11050 ac_header_preproc
=yes
11053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11056 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11060 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11066 ## ---------------------------------------- ##
11067 ## Report this to pgsql-bugs@postgresql.org ##
11068 ## ---------------------------------------- ##
11070 ) |
sed "s/^/$as_me: WARNING: /" >&2
11073 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11074 $as_echo_n "checking for $ac_header... " >&6; }
11075 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11076 $as_echo_n "(cached) " >&6
11078 eval "$as_ac_Header=\$ac_header_preproc"
11080 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11081 $as_echo "$as_val"'`
11082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11083 $as_echo "$ac_res" >&6; }
11086 as_val
=`eval 'as_val=${'$as_ac_Header'}
11087 $as_echo "$as_val"'`
11088 if test "x$as_val" = x
""yes; then
11089 cat >>confdefs.h
<<_ACEOF
11090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11094 { { $as_echo "$as_me:$LINENO: error: readline header not found
11095 If you have libedit already installed, see config.log for details on the
11096 failure. It is possible the compiler isn't looking in the proper directory.
11097 Use --without-readline to disable libedit support." >&5
11098 $as_echo "$as_me: error: readline header not found
11099 If you have libedit already installed, see config.log for details on the
11100 failure. It is possible the compiler isn't looking in the proper directory.
11101 Use --without-readline to disable libedit support." >&2;}
11102 { (exit 1); exit 1; }; }
11115 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11116 # not be there at all. Hence, don't complain if not found. We must check
11117 # though, since in yet other versions it is an independent header.
11119 for ac_header
in editline
/history.h
11121 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11122 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11123 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 $as_echo_n "checking for $ac_header... " >&6; }
11125 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126 $as_echo_n "(cached) " >&6
11128 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11129 $as_echo "$as_val"'`
11130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11131 $as_echo "$ac_res" >&6; }
11133 # Is the header compilable?
11134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 $as_echo_n "checking $ac_header usability... " >&6; }
11136 cat >conftest.
$ac_ext <<_ACEOF
11139 cat confdefs.h
>>conftest.
$ac_ext
11140 cat >>conftest.
$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 $ac_includes_default
11143 #include <$ac_header>
11145 rm -f conftest.
$ac_objext
11146 if { (ac_try
="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11152 $as_echo "$ac_try_echo") >&5
11153 (eval "$ac_compile") 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } && {
11160 test -z "$ac_c_werror_flag" ||
11161 test ! -s conftest.err
11162 } && test -s conftest.$ac_objext; then
11163 ac_header_compiler=yes
11165 $as_echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_header_compiler=no
11171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11173 $as_echo "$ac_header_compiler" >&6; }
11175 # Is the header present?
11176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11177 $as_echo_n "checking $ac_header presence... " >&6; }
11178 cat >conftest.$ac_ext <<_ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 #include <$ac_header>
11186 if { (ac_try="$ac_cpp conftest.$ac_ext"
11187 case "(($ac_try" in
11188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11189 *) ac_try_echo
=$ac_try;;
11191 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11195 grep -v '^ *+' conftest.er1
>conftest.err
11197 cat conftest.err
>&5
11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } >/dev
/null
&& {
11200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11203 ac_header_preproc
=yes
11205 $as_echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.
$ac_ext >&5
11208 ac_header_preproc
=no
11211 rm -f conftest.err conftest.
$ac_ext
11212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11213 $as_echo "$ac_header_preproc" >&6; }
11215 # So? What about this header?
11216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11222 ac_header_preproc
=yes
11225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11228 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11232 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11238 ## ---------------------------------------- ##
11239 ## Report this to pgsql-bugs@postgresql.org ##
11240 ## ---------------------------------------- ##
11242 ) |
sed "s/^/$as_me: WARNING: /" >&2
11245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11246 $as_echo_n "checking for $ac_header... " >&6; }
11247 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11248 $as_echo_n "(cached) " >&6
11250 eval "$as_ac_Header=\$ac_header_preproc"
11252 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11253 $as_echo "$as_val"'`
11254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11255 $as_echo "$ac_res" >&6; }
11258 as_val
=`eval 'as_val=${'$as_ac_Header'}
11259 $as_echo "$as_val"'`
11260 if test "x$as_val" = x
""yes; then
11261 cat >>confdefs.h
<<_ACEOF
11262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11267 for ac_header
in history.h
11269 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11270 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 $as_echo_n "checking for $ac_header... " >&6; }
11273 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 $as_echo_n "(cached) " >&6
11276 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11277 $as_echo "$as_val"'`
11278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11279 $as_echo "$ac_res" >&6; }
11281 # Is the header compilable?
11282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11283 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
11291 #include <$ac_header>
11293 rm -f conftest.
$ac_objext
11294 if { (ac_try
="$ac_compile"
11295 case "(($ac_try" in
11296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11300 $as_echo "$ac_try_echo") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11303 grep -v '^ *+' conftest.er1 >conftest.err
11305 cat conftest.err >&5
11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11311 ac_header_compiler=yes
11313 $as_echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 ac_header_compiler=no
11319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11321 $as_echo "$ac_header_compiler" >&6; }
11323 # Is the header present?
11324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11325 $as_echo_n "checking $ac_header presence... " >&6; }
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 #include <$ac_header>
11334 if { (ac_try="$ac_cpp conftest.$ac_ext"
11335 case "(($ac_try" in
11336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11337 *) ac_try_echo
=$ac_try;;
11339 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11340 $as_echo "$ac_try_echo") >&5
11341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1
>conftest.err
11345 cat conftest.err
>&5
11346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } >/dev
/null
&& {
11348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11351 ac_header_preproc
=yes
11353 $as_echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.
$ac_ext >&5
11356 ac_header_preproc
=no
11359 rm -f conftest.err conftest.
$ac_ext
11360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 $as_echo "$ac_header_preproc" >&6; }
11363 # So? What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370 ac_header_preproc
=yes
11373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11376 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11380 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11386 ## ---------------------------------------- ##
11387 ## Report this to pgsql-bugs@postgresql.org ##
11388 ## ---------------------------------------- ##
11390 ) |
sed "s/^/$as_me: WARNING: /" >&2
11393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11394 $as_echo_n "checking for $ac_header... " >&6; }
11395 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396 $as_echo_n "(cached) " >&6
11398 eval "$as_ac_Header=\$ac_header_preproc"
11400 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11401 $as_echo "$as_val"'`
11402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11403 $as_echo "$ac_res" >&6; }
11406 as_val
=`eval 'as_val=${'$as_ac_Header'}
11407 $as_echo "$as_val"'`
11408 if test "x$as_val" = x
""yes; then
11409 cat >>confdefs.h
<<_ACEOF
11410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11415 for ac_header
in readline
/history.h
11417 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11418 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11420 $as_echo_n "checking for $ac_header... " >&6; }
11421 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422 $as_echo_n "(cached) " >&6
11424 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11425 $as_echo "$as_val"'`
11426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11427 $as_echo "$ac_res" >&6; }
11429 # Is the header compilable?
11430 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11431 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
11439 #include <$ac_header>
11441 rm -f conftest.
$ac_objext
11442 if { (ac_try
="$ac_compile"
11443 case "(($ac_try" in
11444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11448 $as_echo "$ac_try_echo") >&5
11449 (eval "$ac_compile") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest.$ac_objext; then
11459 ac_header_compiler=yes
11461 $as_echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_header_compiler=no
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469 $as_echo "$ac_header_compiler" >&6; }
11471 # Is the header present?
11472 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11473 $as_echo_n "checking $ac_header presence... " >&6; }
11474 cat >conftest.$ac_ext <<_ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480 #include <$ac_header>
11482 if { (ac_try="$ac_cpp conftest.$ac_ext"
11483 case "(($ac_try" in
11484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11485 *) ac_try_echo
=$ac_try;;
11487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11488 $as_echo "$ac_try_echo") >&5
11489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1
>conftest.err
11493 cat conftest.err
>&5
11494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } >/dev
/null
&& {
11496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11499 ac_header_preproc
=yes
11501 $as_echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.
$ac_ext >&5
11504 ac_header_preproc
=no
11507 rm -f conftest.err conftest.
$ac_ext
11508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11509 $as_echo "$ac_header_preproc" >&6; }
11511 # So? What about this header?
11512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11515 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11518 ac_header_preproc
=yes
11521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11522 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11524 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11526 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11528 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11534 ## ---------------------------------------- ##
11535 ## Report this to pgsql-bugs@postgresql.org ##
11536 ## ---------------------------------------- ##
11538 ) |
sed "s/^/$as_me: WARNING: /" >&2
11541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 $as_echo_n "checking for $ac_header... " >&6; }
11543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11544 $as_echo_n "(cached) " >&6
11546 eval "$as_ac_Header=\$ac_header_preproc"
11548 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11549 $as_echo "$as_val"'`
11550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11551 $as_echo "$ac_res" >&6; }
11554 as_val
=`eval 'as_val=${'$as_ac_Header'}
11555 $as_echo "$as_val"'`
11556 if test "x$as_val" = x
""yes; then
11557 cat >>confdefs.h
<<_ACEOF
11558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11575 if test "$with_zlib" = yes; then
11576 if test "${ac_cv_header_zlib_h+set}" = set; then
11577 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11578 $as_echo_n "checking for zlib.h... " >&6; }
11579 if test "${ac_cv_header_zlib_h+set}" = set; then
11580 $as_echo_n "(cached) " >&6
11582 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11583 $as_echo "$ac_cv_header_zlib_h" >&6; }
11585 # Is the header compilable?
11586 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11587 $as_echo_n "checking zlib.h usability... " >&6; }
11588 cat >conftest.
$ac_ext <<_ACEOF
11591 cat confdefs.h
>>conftest.
$ac_ext
11592 cat >>conftest.
$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 $ac_includes_default
11597 rm -f conftest.
$ac_objext
11598 if { (ac_try
="$ac_compile"
11599 case "(($ac_try" in
11600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11604 $as_echo "$ac_try_echo") >&5
11605 (eval "$ac_compile") 2>conftest.er1
11607 grep -v '^ *+' conftest.er1 >conftest.err
11609 cat conftest.err >&5
11610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } && {
11612 test -z "$ac_c_werror_flag" ||
11613 test ! -s conftest.err
11614 } && test -s conftest.$ac_objext; then
11615 ac_header_compiler=yes
11617 $as_echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 ac_header_compiler=no
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11624 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11625 $as_echo "$ac_header_compiler" >&6; }
11627 # Is the header present?
11628 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11629 $as_echo_n "checking zlib.h presence... " >&6; }
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11638 if { (ac_try="$ac_cpp conftest.$ac_ext"
11639 case "(($ac_try" in
11640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11641 *) ac_try_echo
=$ac_try;;
11643 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11644 $as_echo "$ac_try_echo") >&5
11645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11647 grep -v '^ *+' conftest.er1
>conftest.err
11649 cat conftest.err
>&5
11650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } >/dev
/null
&& {
11652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11653 test ! -s conftest.err
11655 ac_header_preproc
=yes
11657 $as_echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.
$ac_ext >&5
11660 ac_header_preproc
=no
11663 rm -f conftest.err conftest.
$ac_ext
11664 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11665 $as_echo "$ac_header_preproc" >&6; }
11667 # So? What about this header?
11668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11670 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11671 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11672 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11673 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11674 ac_header_preproc
=yes
11677 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11678 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11679 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11680 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11681 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11682 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11683 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11684 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11685 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11686 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11687 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11688 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11690 ## ---------------------------------------- ##
11691 ## Report this to pgsql-bugs@postgresql.org ##
11692 ## ---------------------------------------- ##
11694 ) |
sed "s/^/$as_me: WARNING: /" >&2
11697 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11698 $as_echo_n "checking for zlib.h... " >&6; }
11699 if test "${ac_cv_header_zlib_h+set}" = set; then
11700 $as_echo_n "(cached) " >&6
11702 ac_cv_header_zlib_h
=$ac_header_preproc
11704 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11705 $as_echo "$ac_cv_header_zlib_h" >&6; }
11708 if test "x$ac_cv_header_zlib_h" = x
""yes; then
11711 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11712 If you have zlib already installed, see config.log for details on the
11713 failure. It is possible the compiler isn't looking in the proper directory.
11714 Use --without-zlib to disable zlib support." >&5
11715 $as_echo "$as_me: error: zlib header not found
11716 If you have zlib already installed, see config.log for details on the
11717 failure. It is possible the compiler isn't looking in the proper directory.
11718 Use --without-zlib to disable zlib support." >&2;}
11719 { (exit 1); exit 1; }; }
11725 if test "$with_gssapi" = yes ; then
11727 for ac_header
in gssapi
/gssapi.h
11729 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11730 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11732 $as_echo_n "checking for $ac_header... " >&6; }
11733 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734 $as_echo_n "(cached) " >&6
11736 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11737 $as_echo "$as_val"'`
11738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11739 $as_echo "$ac_res" >&6; }
11741 # Is the header compilable?
11742 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11743 $as_echo_n "checking $ac_header usability... " >&6; }
11744 cat >conftest.
$ac_ext <<_ACEOF
11747 cat confdefs.h
>>conftest.
$ac_ext
11748 cat >>conftest.
$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 $ac_includes_default
11751 #include <$ac_header>
11753 rm -f conftest.
$ac_objext
11754 if { (ac_try
="$ac_compile"
11755 case "(($ac_try" in
11756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11760 $as_echo "$ac_try_echo") >&5
11761 (eval "$ac_compile") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest.$ac_objext; then
11771 ac_header_compiler=yes
11773 $as_echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_header_compiler=no
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 $as_echo "$ac_header_compiler" >&6; }
11783 # Is the header present?
11784 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785 $as_echo_n "checking $ac_header presence... " >&6; }
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <$ac_header>
11794 if { (ac_try="$ac_cpp conftest.$ac_ext"
11795 case "(($ac_try" in
11796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11797 *) ac_try_echo
=$ac_try;;
11799 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11800 $as_echo "$ac_try_echo") >&5
11801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11803 grep -v '^ *+' conftest.er1
>conftest.err
11805 cat conftest.err
>&5
11806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } >/dev
/null
&& {
11808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11809 test ! -s conftest.err
11811 ac_header_preproc
=yes
11813 $as_echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.
$ac_ext >&5
11816 ac_header_preproc
=no
11819 rm -f conftest.err conftest.
$ac_ext
11820 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 $as_echo "$ac_header_preproc" >&6; }
11823 # So? What about this header?
11824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc
=yes
11833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11836 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11840 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11846 ## ---------------------------------------- ##
11847 ## Report this to pgsql-bugs@postgresql.org ##
11848 ## ---------------------------------------- ##
11850 ) |
sed "s/^/$as_me: WARNING: /" >&2
11853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11854 $as_echo_n "checking for $ac_header... " >&6; }
11855 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11856 $as_echo_n "(cached) " >&6
11858 eval "$as_ac_Header=\$ac_header_preproc"
11860 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11861 $as_echo "$as_val"'`
11862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11863 $as_echo "$ac_res" >&6; }
11866 as_val
=`eval 'as_val=${'$as_ac_Header'}
11867 $as_echo "$as_val"'`
11868 if test "x$as_val" = x
""yes; then
11869 cat >>confdefs.h
<<_ACEOF
11870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11875 for ac_header
in gssapi.h
11877 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11878 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11880 $as_echo_n "checking for $ac_header... " >&6; }
11881 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11882 $as_echo_n "(cached) " >&6
11884 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11885 $as_echo "$as_val"'`
11886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11887 $as_echo "$ac_res" >&6; }
11889 # Is the header compilable?
11890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11891 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
11899 #include <$ac_header>
11901 rm -f conftest.
$ac_objext
11902 if { (ac_try
="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11908 $as_echo "$ac_try_echo") >&5
11909 (eval "$ac_compile") 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && {
11916 test -z "$ac_c_werror_flag" ||
11917 test ! -s conftest.err
11918 } && test -s conftest.$ac_objext; then
11919 ac_header_compiler=yes
11921 $as_echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11924 ac_header_compiler=no
11927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11929 $as_echo "$ac_header_compiler" >&6; }
11931 # Is the header present?
11932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11933 $as_echo_n "checking $ac_header presence... " >&6; }
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 #include <$ac_header>
11942 if { (ac_try="$ac_cpp conftest.$ac_ext"
11943 case "(($ac_try" in
11944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11945 *) ac_try_echo
=$ac_try;;
11947 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11948 $as_echo "$ac_try_echo") >&5
11949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1
>conftest.err
11953 cat conftest.err
>&5
11954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } >/dev
/null
&& {
11956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11959 ac_header_preproc
=yes
11961 $as_echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.
$ac_ext >&5
11964 ac_header_preproc
=no
11967 rm -f conftest.err conftest.
$ac_ext
11968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11969 $as_echo "$ac_header_preproc" >&6; }
11971 # So? What about this header?
11972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11978 ac_header_preproc
=yes
11981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11984 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11988 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11994 ## ---------------------------------------- ##
11995 ## Report this to pgsql-bugs@postgresql.org ##
11996 ## ---------------------------------------- ##
11998 ) |
sed "s/^/$as_me: WARNING: /" >&2
12001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12002 $as_echo_n "checking for $ac_header... " >&6; }
12003 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12004 $as_echo_n "(cached) " >&6
12006 eval "$as_ac_Header=\$ac_header_preproc"
12008 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12009 $as_echo "$as_val"'`
12010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12011 $as_echo "$ac_res" >&6; }
12014 as_val
=`eval 'as_val=${'$as_ac_Header'}
12015 $as_echo "$as_val"'`
12016 if test "x$as_val" = x
""yes; then
12017 cat >>confdefs.h
<<_ACEOF
12018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12022 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12023 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12024 { (exit 1); exit 1; }; }
12035 if test "$with_krb5" = yes ; then
12036 if test "${ac_cv_header_krb5_h+set}" = set; then
12037 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12038 $as_echo_n "checking for krb5.h... " >&6; }
12039 if test "${ac_cv_header_krb5_h+set}" = set; then
12040 $as_echo_n "(cached) " >&6
12042 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12043 $as_echo "$ac_cv_header_krb5_h" >&6; }
12045 # Is the header compilable?
12046 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12047 $as_echo_n "checking krb5.h usability... " >&6; }
12048 cat >conftest.
$ac_ext <<_ACEOF
12051 cat confdefs.h
>>conftest.
$ac_ext
12052 cat >>conftest.
$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 $ac_includes_default
12057 rm -f conftest.
$ac_objext
12058 if { (ac_try
="$ac_compile"
12059 case "(($ac_try" in
12060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12064 $as_echo "$ac_try_echo") >&5
12065 (eval "$ac_compile") 2>conftest.er1
12067 grep -v '^ *+' conftest.er1 >conftest.err
12069 cat conftest.err >&5
12070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && {
12072 test -z "$ac_c_werror_flag" ||
12073 test ! -s conftest.err
12074 } && test -s conftest.$ac_objext; then
12075 ac_header_compiler=yes
12077 $as_echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_header_compiler=no
12083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12085 $as_echo "$ac_header_compiler" >&6; }
12087 # Is the header present?
12088 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12089 $as_echo_n "checking krb5.h presence... " >&6; }
12090 cat >conftest.$ac_ext <<_ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12098 if { (ac_try="$ac_cpp conftest.$ac_ext"
12099 case "(($ac_try" in
12100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12101 *) ac_try_echo
=$ac_try;;
12103 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12104 $as_echo "$ac_try_echo") >&5
12105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12107 grep -v '^ *+' conftest.er1
>conftest.err
12109 cat conftest.err
>&5
12110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } >/dev
/null
&& {
12112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12115 ac_header_preproc
=yes
12117 $as_echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.
$ac_ext >&5
12120 ac_header_preproc
=no
12123 rm -f conftest.err conftest.
$ac_ext
12124 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12125 $as_echo "$ac_header_preproc" >&6; }
12127 # So? What about this header?
12128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12130 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12131 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12132 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12133 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12134 ac_header_preproc
=yes
12137 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12138 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12139 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12140 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12141 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12142 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12143 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12144 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12145 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12146 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12147 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12148 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12150 ## ---------------------------------------- ##
12151 ## Report this to pgsql-bugs@postgresql.org ##
12152 ## ---------------------------------------- ##
12154 ) |
sed "s/^/$as_me: WARNING: /" >&2
12157 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12158 $as_echo_n "checking for krb5.h... " >&6; }
12159 if test "${ac_cv_header_krb5_h+set}" = set; then
12160 $as_echo_n "(cached) " >&6
12162 ac_cv_header_krb5_h
=$ac_header_preproc
12164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12165 $as_echo "$ac_cv_header_krb5_h" >&6; }
12168 if test "x$ac_cv_header_krb5_h" = x
""yes; then
12171 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12172 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12173 { (exit 1); exit 1; }; }
12179 if test "$with_openssl" = yes ; then
12180 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12181 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12182 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12183 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12184 $as_echo_n "(cached) " >&6
12186 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12187 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12189 # Is the header compilable?
12190 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12191 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12192 cat >conftest.
$ac_ext <<_ACEOF
12195 cat confdefs.h
>>conftest.
$ac_ext
12196 cat >>conftest.
$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 $ac_includes_default
12199 #include <openssl/ssl.h>
12201 rm -f conftest.
$ac_objext
12202 if { (ac_try
="$ac_compile"
12203 case "(($ac_try" in
12204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12208 $as_echo "$ac_try_echo") >&5
12209 (eval "$ac_compile") 2>conftest.er1
12211 grep -v '^ *+' conftest.er1 >conftest.err
12213 cat conftest.err >&5
12214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && {
12216 test -z "$ac_c_werror_flag" ||
12217 test ! -s conftest.err
12218 } && test -s conftest.$ac_objext; then
12219 ac_header_compiler=yes
12221 $as_echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_header_compiler=no
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229 $as_echo "$ac_header_compiler" >&6; }
12231 # Is the header present?
12232 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12233 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 #include <openssl/ssl.h>
12242 if { (ac_try="$ac_cpp conftest.$ac_ext"
12243 case "(($ac_try" in
12244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12245 *) ac_try_echo
=$ac_try;;
12247 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12248 $as_echo "$ac_try_echo") >&5
12249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1
>conftest.err
12253 cat conftest.err
>&5
12254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } >/dev
/null
&& {
12256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12259 ac_header_preproc
=yes
12261 $as_echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.
$ac_ext >&5
12264 ac_header_preproc
=no
12267 rm -f conftest.err conftest.
$ac_ext
12268 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12269 $as_echo "$ac_header_preproc" >&6; }
12271 # So? What about this header?
12272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12274 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12275 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12276 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12277 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12278 ac_header_preproc
=yes
12281 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12282 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12283 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12284 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12285 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12286 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12287 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12288 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12289 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12290 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12292 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12294 ## ---------------------------------------- ##
12295 ## Report this to pgsql-bugs@postgresql.org ##
12296 ## ---------------------------------------- ##
12298 ) |
sed "s/^/$as_me: WARNING: /" >&2
12301 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12302 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12303 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12304 $as_echo_n "(cached) " >&6
12306 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
12308 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12309 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12312 if test "x$ac_cv_header_openssl_ssl_h" = x
""yes; then
12315 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12316 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12317 { (exit 1); exit 1; }; }
12321 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12322 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12323 $as_echo_n "checking for openssl/err.h... " >&6; }
12324 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12325 $as_echo_n "(cached) " >&6
12327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12328 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12330 # Is the header compilable?
12331 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12332 $as_echo_n "checking openssl/err.h usability... " >&6; }
12333 cat >conftest.
$ac_ext <<_ACEOF
12336 cat confdefs.h
>>conftest.
$ac_ext
12337 cat >>conftest.
$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12340 #include <openssl/err.h>
12342 rm -f conftest.
$ac_objext
12343 if { (ac_try
="$ac_compile"
12344 case "(($ac_try" in
12345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12349 $as_echo "$ac_try_echo") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.$ac_objext; then
12360 ac_header_compiler=yes
12362 $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_header_compiler=no
12368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12370 $as_echo "$ac_header_compiler" >&6; }
12372 # Is the header present?
12373 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12374 $as_echo_n "checking openssl/err.h presence... " >&6; }
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 #include <openssl/err.h>
12383 if { (ac_try="$ac_cpp conftest.$ac_ext"
12384 case "(($ac_try" in
12385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12386 *) ac_try_echo
=$ac_try;;
12388 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12389 $as_echo "$ac_try_echo") >&5
12390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12392 grep -v '^ *+' conftest.er1
>conftest.err
12394 cat conftest.err
>&5
12395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } >/dev
/null
&& {
12397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12398 test ! -s conftest.err
12400 ac_header_preproc
=yes
12402 $as_echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.
$ac_ext >&5
12405 ac_header_preproc
=no
12408 rm -f conftest.err conftest.
$ac_ext
12409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12410 $as_echo "$ac_header_preproc" >&6; }
12412 # So? What about this header?
12413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12415 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12416 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12417 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12418 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12419 ac_header_preproc
=yes
12422 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12423 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12424 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12425 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12426 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12427 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12428 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12429 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12430 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12431 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12432 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12433 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12435 ## ---------------------------------------- ##
12436 ## Report this to pgsql-bugs@postgresql.org ##
12437 ## ---------------------------------------- ##
12439 ) |
sed "s/^/$as_me: WARNING: /" >&2
12442 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12443 $as_echo_n "checking for openssl/err.h... " >&6; }
12444 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12445 $as_echo_n "(cached) " >&6
12447 ac_cv_header_openssl_err_h
=$ac_header_preproc
12449 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12450 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12453 if test "x$ac_cv_header_openssl_err_h" = x
""yes; then
12456 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12457 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12458 { (exit 1); exit 1; }; }
12463 for ac_func
in ERR_set_mark
12465 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12466 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12467 $as_echo_n "checking for $ac_func... " >&6; }
12468 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12469 $as_echo_n "(cached) " >&6
12471 cat >conftest.
$ac_ext <<_ACEOF
12474 cat confdefs.h
>>conftest.
$ac_ext
12475 cat >>conftest.
$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12479 #define $ac_func innocuous_$ac_func
12481 /* System header to define __stub macros and hopefully few prototypes,
12482 which can conflict with char $ac_func (); below.
12483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12484 <limits.h> exists even on freestanding compilers. */
12487 # include <limits.h>
12489 # include <assert.h>
12494 /* Override any GCC internal prototype to avoid an error.
12495 Use char because int might match the return type of a GCC
12496 builtin and then its argument prototype would still apply. */
12501 /* The GNU C library defines this for functions which it implements
12502 to always fail with ENOSYS. Some functions are actually named
12503 something starting with __ and the normal name is an alias. */
12504 #if defined __stub_$ac_func || defined __stub___$ac_func
12511 return $ac_func ();
12516 rm -f conftest.
$ac_objext conftest
$ac_exeext
12517 if { (ac_try
="$ac_link"
12518 case "(($ac_try" in
12519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12523 $as_echo "$ac_try_echo") >&5
12524 (eval "$ac_link") 2>conftest.er1
12526 grep -v '^ *+' conftest.er1 >conftest.err
12528 cat conftest.err >&5
12529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest$ac_exeext && {
12534 test "$cross_compiling" = yes ||
12535 $as_test_x conftest$ac_exeext
12537 eval "$as_ac_var=yes"
12539 $as_echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 eval "$as_ac_var=no"
12545 rm -rf conftest.dSYM
12546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12547 conftest$ac_exeext conftest.$ac_ext
12549 ac_res=`eval 'as_val=${'$as_ac_var'}
12550 $as_echo "$as_val"'`
12551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12552 $as_echo "$ac_res" >&6; }
12553 as_val=`eval 'as_val=${'$as_ac_var'}
12554 $as_echo "$as_val"'`
12555 if test "x$as_val" = x""yes; then
12556 cat >>confdefs.h <<_ACEOF
12557 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12565 if test "$with_pam" = yes ; then
12567 for ac_header in security/pam_appl.h
12569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12572 $as_echo_n "checking for $ac_header... " >&6; }
12573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12574 $as_echo_n "(cached) " >&6
12576 ac_res=`eval 'as_val=${'$as_ac_Header'}
12577 $as_echo "$as_val"'`
12578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12579 $as_echo "$ac_res" >&6; }
12581 # Is the header compilable?
12582 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12583 $as_echo_n "checking $ac_header usability... " >&6; }
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 $ac_includes_default
12591 #include <$ac_header>
12593 rm -f conftest.$ac_objext
12594 if { (ac_try="$ac_compile"
12595 case "(($ac_try" in
12596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12597 *) ac_try_echo
=$ac_try;;
12599 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12600 $as_echo "$ac_try_echo") >&5
12601 (eval "$ac_compile") 2>conftest.er1
12603 grep -v '^ *+' conftest.er1
>conftest.err
12605 cat conftest.err
>&5
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && {
12608 test -z "$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 } && test -s conftest.
$ac_objext; then
12611 ac_header_compiler
=yes
12613 $as_echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.
$ac_ext >&5
12616 ac_header_compiler
=no
12619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12620 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12621 $as_echo "$ac_header_compiler" >&6; }
12623 # Is the header present?
12624 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12625 $as_echo_n "checking $ac_header presence... " >&6; }
12626 cat >conftest.
$ac_ext <<_ACEOF
12629 cat confdefs.h
>>conftest.
$ac_ext
12630 cat >>conftest.
$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 #include <$ac_header>
12634 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12635 case "(($ac_try" in
12636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640 $as_echo "$ac_try_echo") >&5
12641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } >/dev/null && {
12648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12651 ac_header_preproc=yes
12653 $as_echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 ac_header_preproc=no
12659 rm -f conftest.err conftest.$ac_ext
12660 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12661 $as_echo "$ac_header_preproc" >&6; }
12663 # So? What about this header?
12664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12667 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12670 ac_header_preproc=yes
12673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12674 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12676 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12678 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12680 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12684 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12686 ## ---------------------------------------- ##
12687 ## Report this to pgsql-bugs@postgresql.org ##
12688 ## ---------------------------------------- ##
12690 ) | sed "s/^/$as_me: WARNING: /" >&2
12693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12694 $as_echo_n "checking for $ac_header... " >&6; }
12695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12696 $as_echo_n "(cached) " >&6
12698 eval "$as_ac_Header=\$ac_header_preproc"
12700 ac_res=`eval 'as_val=${'$as_ac_Header'}
12701 $as_echo "$as_val"'`
12702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12703 $as_echo "$ac_res" >&6; }
12706 as_val=`eval 'as_val=${'$as_ac_Header'}
12707 $as_echo "$as_val"'`
12708 if test "x$as_val" = x""yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12715 for ac_header in pam/pam_appl.h
12717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12719 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12720 $as_echo_n "checking for $ac_header... " >&6; }
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722 $as_echo_n "(cached) " >&6
12724 ac_res=`eval 'as_val=${'$as_ac_Header'}
12725 $as_echo "$as_val"'`
12726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12727 $as_echo "$ac_res" >&6; }
12729 # Is the header compilable?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12731 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
12739 #include <$ac_header>
12741 rm -f conftest.$ac_objext
12742 if { (ac_try="$ac_compile"
12743 case "(($ac_try" in
12744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12745 *) ac_try_echo
=$ac_try;;
12747 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12748 $as_echo "$ac_try_echo") >&5
12749 (eval "$ac_compile") 2>conftest.er1
12751 grep -v '^ *+' conftest.er1
>conftest.err
12753 cat conftest.err
>&5
12754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } && {
12756 test -z "$ac_c_werror_flag" ||
12757 test ! -s conftest.err
12758 } && test -s conftest.
$ac_objext; then
12759 ac_header_compiler
=yes
12761 $as_echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.
$ac_ext >&5
12764 ac_header_compiler
=no
12767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12768 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12769 $as_echo "$ac_header_compiler" >&6; }
12771 # Is the header present?
12772 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12773 $as_echo_n "checking $ac_header presence... " >&6; }
12774 cat >conftest.
$ac_ext <<_ACEOF
12777 cat confdefs.h
>>conftest.
$ac_ext
12778 cat >>conftest.
$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12780 #include <$ac_header>
12782 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12783 case "(($ac_try" in
12784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12791 grep -v '^ *+' conftest.er1 >conftest.err
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } >/dev/null && {
12796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12799 ac_header_preproc=yes
12801 $as_echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 ac_header_preproc=no
12807 rm -f conftest.err conftest.$ac_ext
12808 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12809 $as_echo "$ac_header_preproc" >&6; }
12811 # So? What about this header?
12812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12815 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12818 ac_header_preproc=yes
12821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12822 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12824 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12826 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12828 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12830 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12832 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12834 ## ---------------------------------------- ##
12835 ## Report this to pgsql-bugs@postgresql.org ##
12836 ## ---------------------------------------- ##
12838 ) | sed "s/^/$as_me: WARNING: /" >&2
12841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12842 $as_echo_n "checking for $ac_header... " >&6; }
12843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12844 $as_echo_n "(cached) " >&6
12846 eval "$as_ac_Header=\$ac_header_preproc"
12848 ac_res=`eval 'as_val=${'$as_ac_Header'}
12849 $as_echo "$as_val"'`
12850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12851 $as_echo "$ac_res" >&6; }
12854 as_val=`eval 'as_val=${'$as_ac_Header'}
12855 $as_echo "$as_val"'`
12856 if test "x$as_val" = x""yes; then
12857 cat >>confdefs.h <<_ACEOF
12858 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12862 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12863 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12864 { (exit 1); exit 1; }; }
12875 if test "$with_libxml" = yes ; then
12876 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12877 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12878 $as_echo_n "checking for libxml/parser.h... " >&6; }
12879 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12880 $as_echo_n "(cached) " >&6
12882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12883 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12885 # Is the header compilable?
12886 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12887 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12888 cat >conftest.$ac_ext <<_ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 $ac_includes_default
12895 #include <libxml/parser.h>
12897 rm -f conftest.$ac_objext
12898 if { (ac_try="$ac_compile"
12899 case "(($ac_try" in
12900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12901 *) ac_try_echo
=$ac_try;;
12903 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12904 $as_echo "$ac_try_echo") >&5
12905 (eval "$ac_compile") 2>conftest.er1
12907 grep -v '^ *+' conftest.er1
>conftest.err
12909 cat conftest.err
>&5
12910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } && {
12912 test -z "$ac_c_werror_flag" ||
12913 test ! -s conftest.err
12914 } && test -s conftest.
$ac_objext; then
12915 ac_header_compiler
=yes
12917 $as_echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.
$ac_ext >&5
12920 ac_header_compiler
=no
12923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12924 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925 $as_echo "$ac_header_compiler" >&6; }
12927 # Is the header present?
12928 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12929 $as_echo_n "checking libxml/parser.h presence... " >&6; }
12930 cat >conftest.
$ac_ext <<_ACEOF
12933 cat confdefs.h
>>conftest.
$ac_ext
12934 cat >>conftest.
$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <libxml/parser.h>
12938 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12939 case "(($ac_try" in
12940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12941 *) ac_try_echo=$ac_try;;
12943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12944 $as_echo "$ac_try_echo") >&5
12945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12947 grep -v '^ *+' conftest.er1 >conftest.err
12949 cat conftest.err >&5
12950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev/null && {
12952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12953 test ! -s conftest.err
12955 ac_header_preproc=yes
12957 $as_echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 ac_header_preproc=no
12963 rm -f conftest.err conftest.$ac_ext
12964 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965 $as_echo "$ac_header_preproc" >&6; }
12967 # So? What about this header?
12968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12970 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12971 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12973 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12974 ac_header_preproc=yes
12977 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12978 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12979 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12980 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12981 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12982 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12983 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12984 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12985 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12986 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12987 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12988 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12990 ## ---------------------------------------- ##
12991 ## Report this to pgsql-bugs@postgresql.org ##
12992 ## ---------------------------------------- ##
12994 ) | sed "s/^/$as_me: WARNING: /" >&2
12997 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12998 $as_echo_n "checking for libxml/parser.h... " >&6; }
12999 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13000 $as_echo_n "(cached) " >&6
13002 ac_cv_header_libxml_parser_h=$ac_header_preproc
13004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13005 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13008 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13011 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13012 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13013 { (exit 1); exit 1; }; }
13019 if test "$with_libxslt" = yes ; then
13020 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13021 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13022 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13023 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13024 $as_echo_n "(cached) " >&6
13026 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13027 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13029 # Is the header compilable?
13030 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13031 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13032 cat >conftest.$ac_ext <<_ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 $ac_includes_default
13039 #include <libxslt/xslt.h>
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13045 *) ac_try_echo
=$ac_try;;
13047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13048 $as_echo "$ac_try_echo") >&5
13049 (eval "$ac_compile") 2>conftest.er1
13051 grep -v '^ *+' conftest.er1
>conftest.err
13053 cat conftest.err
>&5
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } && {
13056 test -z "$ac_c_werror_flag" ||
13057 test ! -s conftest.err
13058 } && test -s conftest.
$ac_objext; then
13059 ac_header_compiler
=yes
13061 $as_echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.
$ac_ext >&5
13064 ac_header_compiler
=no
13067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13068 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13069 $as_echo "$ac_header_compiler" >&6; }
13071 # Is the header present?
13072 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13073 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13074 cat >conftest.
$ac_ext <<_ACEOF
13077 cat confdefs.h
>>conftest.
$ac_ext
13078 cat >>conftest.
$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 #include <libxslt/xslt.h>
13082 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13083 case "(($ac_try" in
13084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13088 $as_echo "$ac_try_echo") >&5
13089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13091 grep -v '^ *+' conftest.er1 >conftest.err
13093 cat conftest.err >&5
13094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } >/dev/null && {
13096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13097 test ! -s conftest.err
13099 ac_header_preproc=yes
13101 $as_echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13104 ac_header_preproc=no
13107 rm -f conftest.err conftest.$ac_ext
13108 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13109 $as_echo "$ac_header_preproc" >&6; }
13111 # So? What about this header?
13112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13114 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13115 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13116 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13117 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13118 ac_header_preproc=yes
13121 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13122 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13123 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13124 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13125 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13126 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13127 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13128 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13129 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13130 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13131 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13132 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13134 ## ---------------------------------------- ##
13135 ## Report this to pgsql-bugs@postgresql.org ##
13136 ## ---------------------------------------- ##
13138 ) | sed "s/^/$as_me: WARNING: /" >&2
13141 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13142 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13143 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13144 $as_echo_n "(cached) " >&6
13146 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13149 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13152 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13155 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13156 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13157 { (exit 1); exit 1; }; }
13163 if test "$with_ldap" = yes ; then
13164 if test "$PORTNAME" != "win32"; then
13166 for ac_header in ldap.h
13168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13170 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13171 $as_echo_n "checking for $ac_header... " >&6; }
13172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13173 $as_echo_n "(cached) " >&6
13175 ac_res=`eval 'as_val=${'$as_ac_Header'}
13176 $as_echo "$as_val"'`
13177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13178 $as_echo "$ac_res" >&6; }
13180 # Is the header compilable?
13181 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13182 $as_echo_n "checking $ac_header usability... " >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 $ac_includes_default
13190 #include <$ac_header>
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13196 *) ac_try_echo
=$ac_try;;
13198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1
>conftest.err
13204 cat conftest.err
>&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest.
$ac_objext; then
13210 ac_header_compiler
=yes
13212 $as_echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.
$ac_ext >&5
13215 ac_header_compiler
=no
13218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13220 $as_echo "$ac_header_compiler" >&6; }
13222 # Is the header present?
13223 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13224 $as_echo_n "checking $ac_header presence... " >&6; }
13225 cat >conftest.
$ac_ext <<_ACEOF
13228 cat confdefs.h
>>conftest.
$ac_ext
13229 cat >>conftest.
$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <$ac_header>
13233 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13234 case "(($ac_try" in
13235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239 $as_echo "$ac_try_echo") >&5
13240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } >/dev/null && {
13247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13250 ac_header_preproc=yes
13252 $as_echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13255 ac_header_preproc=no
13258 rm -f conftest.err conftest.$ac_ext
13259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13260 $as_echo "$ac_header_preproc" >&6; }
13262 # So? What about this header?
13263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13266 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13269 ac_header_preproc=yes
13272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13273 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13275 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13277 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13279 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13281 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13283 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13285 ## ---------------------------------------- ##
13286 ## Report this to pgsql-bugs@postgresql.org ##
13287 ## ---------------------------------------- ##
13289 ) | sed "s/^/$as_me: WARNING: /" >&2
13292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13293 $as_echo_n "checking for $ac_header... " >&6; }
13294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13295 $as_echo_n "(cached) " >&6
13297 eval "$as_ac_Header=\$ac_header_preproc"
13299 ac_res=`eval 'as_val=${'$as_ac_Header'}
13300 $as_echo "$as_val"'`
13301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13302 $as_echo "$ac_res" >&6; }
13305 as_val=`eval 'as_val=${'$as_ac_Header'}
13306 $as_echo "$as_val"'`
13307 if test "x$as_val" = x""yes; then
13308 cat >>confdefs.h <<_ACEOF
13309 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
13313 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13314 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13315 { (exit 1); exit 1; }; }
13322 for ac_header in winldap.h
13324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13325 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13326 $as_echo_n "checking for $ac_header... " >&6; }
13327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13328 $as_echo_n "(cached) " >&6
13330 cat >conftest.$ac_ext <<_ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 $ac_includes_default
13337 #include <windows.h>
13340 #include <$ac_header>
13342 rm -f conftest.$ac_objext
13343 if { (ac_try="$ac_compile"
13344 case "(($ac_try" in
13345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13346 *) ac_try_echo
=$ac_try;;
13348 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13349 $as_echo "$ac_try_echo") >&5
13350 (eval "$ac_compile") 2>conftest.er1
13352 grep -v '^ *+' conftest.er1
>conftest.err
13354 cat conftest.err
>&5
13355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && {
13357 test -z "$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13359 } && test -s conftest.
$ac_objext; then
13360 eval "$as_ac_Header=yes"
13362 $as_echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.
$ac_ext >&5
13365 eval "$as_ac_Header=no"
13368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13370 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13371 $as_echo "$as_val"'`
13372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13373 $as_echo "$ac_res" >&6; }
13374 as_val
=`eval 'as_val=${'$as_ac_Header'}
13375 $as_echo "$as_val"'`
13376 if test "x$as_val" = x
""yes; then
13377 cat >>confdefs.h
<<_ACEOF
13378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13382 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13383 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13384 { (exit 1); exit 1; }; }
13392 if test "$with_bonjour" = yes ; then
13393 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13394 { $as_echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13395 $as_echo_n "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... " >&6; }
13396 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13397 $as_echo_n "(cached) " >&6
13399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13400 $as_echo "$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13402 # Is the header compilable?
13403 { $as_echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13404 $as_echo_n "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... " >&6; }
13405 cat >conftest.
$ac_ext <<_ACEOF
13408 cat confdefs.h
>>conftest.
$ac_ext
13409 cat >>conftest.
$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 $ac_includes_default
13412 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13414 rm -f conftest.
$ac_objext
13415 if { (ac_try
="$ac_compile"
13416 case "(($ac_try" in
13417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13421 $as_echo "$ac_try_echo") >&5
13422 (eval "$ac_compile") 2>conftest.er1
13424 grep -v '^ *+' conftest.er1 >conftest.err
13426 cat conftest.err >&5
13427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && {
13429 test -z "$ac_c_werror_flag" ||
13430 test ! -s conftest.err
13431 } && test -s conftest.$ac_objext; then
13432 ac_header_compiler=yes
13434 $as_echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ac_header_compiler=no
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13442 $as_echo "$ac_header_compiler" >&6; }
13444 # Is the header present?
13445 { $as_echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13446 $as_echo_n "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... " >&6; }
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13455 if { (ac_try="$ac_cpp conftest.$ac_ext"
13456 case "(($ac_try" in
13457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13458 *) ac_try_echo
=$ac_try;;
13460 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13461 $as_echo "$ac_try_echo") >&5
13462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13464 grep -v '^ *+' conftest.er1
>conftest.err
13466 cat conftest.err
>&5
13467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } >/dev
/null
&& {
13469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13472 ac_header_preproc
=yes
13474 $as_echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.
$ac_ext >&5
13477 ac_header_preproc
=no
13480 rm -f conftest.err conftest.
$ac_ext
13481 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13482 $as_echo "$ac_header_preproc" >&6; }
13484 # So? What about this header?
13485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13487 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13488 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13489 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13490 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13491 ac_header_preproc
=yes
13494 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13495 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13496 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13497 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13498 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13499 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13500 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13501 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13502 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13503 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13504 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13505 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13507 ## ---------------------------------------- ##
13508 ## Report this to pgsql-bugs@postgresql.org ##
13509 ## ---------------------------------------- ##
13511 ) |
sed "s/^/$as_me: WARNING: /" >&2
13514 { $as_echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13515 $as_echo_n "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... " >&6; }
13516 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13517 $as_echo_n "(cached) " >&6
13519 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h
=$ac_header_preproc
13521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13522 $as_echo "$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13525 if test "x$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" = x
""yes; then
13528 { { $as_echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13529 $as_echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13530 { (exit 1); exit 1; }; }
13536 # for contrib/uuid-ossp
13537 if test "$with_ossp_uuid" = yes ; then
13539 for ac_header
in ossp
/uuid.h
13541 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13544 $as_echo_n "checking for $ac_header... " >&6; }
13545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13546 $as_echo_n "(cached) " >&6
13548 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13549 $as_echo "$as_val"'`
13550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13551 $as_echo "$ac_res" >&6; }
13553 # Is the header compilable?
13554 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13555 $as_echo_n "checking $ac_header usability... " >&6; }
13556 cat >conftest.
$ac_ext <<_ACEOF
13559 cat confdefs.h
>>conftest.
$ac_ext
13560 cat >>conftest.
$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 $ac_includes_default
13563 #include <$ac_header>
13565 rm -f conftest.
$ac_objext
13566 if { (ac_try
="$ac_compile"
13567 case "(($ac_try" in
13568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573 (eval "$ac_compile") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && {
13580 test -z "$ac_c_werror_flag" ||
13581 test ! -s conftest.err
13582 } && test -s conftest.$ac_objext; then
13583 ac_header_compiler=yes
13585 $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_header_compiler=no
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13593 $as_echo "$ac_header_compiler" >&6; }
13595 # Is the header present?
13596 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13597 $as_echo_n "checking $ac_header presence... " >&6; }
13598 cat >conftest.$ac_ext <<_ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13604 #include <$ac_header>
13606 if { (ac_try="$ac_cpp conftest.$ac_ext"
13607 case "(($ac_try" in
13608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13609 *) ac_try_echo
=$ac_try;;
13611 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13612 $as_echo "$ac_try_echo") >&5
13613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13615 grep -v '^ *+' conftest.er1
>conftest.err
13617 cat conftest.err
>&5
13618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } >/dev
/null
&& {
13620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13623 ac_header_preproc
=yes
13625 $as_echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.
$ac_ext >&5
13628 ac_header_preproc
=no
13631 rm -f conftest.err conftest.
$ac_ext
13632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 $as_echo "$ac_header_preproc" >&6; }
13635 # So? What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13639 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13642 ac_header_preproc
=yes
13645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13646 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13648 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13650 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13652 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13654 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13656 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13658 ## ---------------------------------------- ##
13659 ## Report this to pgsql-bugs@postgresql.org ##
13660 ## ---------------------------------------- ##
13662 ) |
sed "s/^/$as_me: WARNING: /" >&2
13665 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13666 $as_echo_n "checking for $ac_header... " >&6; }
13667 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13668 $as_echo_n "(cached) " >&6
13670 eval "$as_ac_Header=\$ac_header_preproc"
13672 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13673 $as_echo "$as_val"'`
13674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13675 $as_echo "$ac_res" >&6; }
13678 as_val
=`eval 'as_val=${'$as_ac_Header'}
13679 $as_echo "$as_val"'`
13680 if test "x$as_val" = x
""yes; then
13681 cat >>confdefs.h
<<_ACEOF
13682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13688 for ac_header
in uuid.h
13690 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13691 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13692 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13693 $as_echo_n "checking for $ac_header... " >&6; }
13694 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13695 $as_echo_n "(cached) " >&6
13697 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13698 $as_echo "$as_val"'`
13699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13700 $as_echo "$ac_res" >&6; }
13702 # Is the header compilable?
13703 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13704 $as_echo_n "checking $ac_header usability... " >&6; }
13705 cat >conftest.
$ac_ext <<_ACEOF
13708 cat confdefs.h
>>conftest.
$ac_ext
13709 cat >>conftest.
$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13711 $ac_includes_default
13712 #include <$ac_header>
13714 rm -f conftest.
$ac_objext
13715 if { (ac_try
="$ac_compile"
13716 case "(($ac_try" in
13717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13721 $as_echo "$ac_try_echo") >&5
13722 (eval "$ac_compile") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } && {
13729 test -z "$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13731 } && test -s conftest.$ac_objext; then
13732 ac_header_compiler=yes
13734 $as_echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 ac_header_compiler=no
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13742 $as_echo "$ac_header_compiler" >&6; }
13744 # Is the header present?
13745 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13746 $as_echo_n "checking $ac_header presence... " >&6; }
13747 cat >conftest.$ac_ext <<_ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 #include <$ac_header>
13755 if { (ac_try="$ac_cpp conftest.$ac_ext"
13756 case "(($ac_try" in
13757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13758 *) ac_try_echo
=$ac_try;;
13760 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13761 $as_echo "$ac_try_echo") >&5
13762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1
>conftest.err
13766 cat conftest.err
>&5
13767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } >/dev
/null
&& {
13769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13772 ac_header_preproc
=yes
13774 $as_echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.
$ac_ext >&5
13777 ac_header_preproc
=no
13780 rm -f conftest.err conftest.
$ac_ext
13781 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782 $as_echo "$ac_header_preproc" >&6; }
13784 # So? What about this header?
13785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13788 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13791 ac_header_preproc
=yes
13794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13795 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13797 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13799 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13801 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13803 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13807 ## ---------------------------------------- ##
13808 ## Report this to pgsql-bugs@postgresql.org ##
13809 ## ---------------------------------------- ##
13811 ) |
sed "s/^/$as_me: WARNING: /" >&2
13814 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 $as_echo_n "checking for $ac_header... " >&6; }
13816 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817 $as_echo_n "(cached) " >&6
13819 eval "$as_ac_Header=\$ac_header_preproc"
13821 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13822 $as_echo "$as_val"'`
13823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13824 $as_echo "$ac_res" >&6; }
13827 as_val
=`eval 'as_val=${'$as_ac_Header'}
13828 $as_echo "$as_val"'`
13829 if test "x$as_val" = x
""yes; then
13830 cat >>confdefs.h
<<_ACEOF
13831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13835 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13836 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13837 { (exit 1); exit 1; }; }
13850 ## Types, structures, compiler characteristics
13854 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13855 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13856 if test "${ac_cv_c_bigendian+set}" = set; then
13857 $as_echo_n "(cached) " >&6
13859 ac_cv_c_bigendian
=unknown
13860 # See if we're dealing with a universal compiler.
13861 cat >conftest.
$ac_ext <<_ACEOF
13864 cat confdefs.h
>>conftest.
$ac_ext
13865 cat >>conftest.
$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #ifndef __APPLE_CC__
13868 not a universal capable compiler
13873 rm -f conftest.
$ac_objext
13874 if { (ac_try
="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13880 $as_echo "$ac_try_echo") >&5
13881 (eval "$ac_compile") 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest.$ac_objext; then
13892 # Check for potential -arch flags. It is not universal unless
13893 # there are some -arch flags. Note that *ppc* also matches
13894 # ppc64. This check is also rather less than ideal.
13895 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13896 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13899 $as_echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 if test $ac_cv_c_bigendian = unknown; then
13907 # See if sys/param.h defines the BYTE_ORDER macro.
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13914 #include <sys/types.h>
13915 #include <sys/param.h>
13920 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13921 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13923 bogus endian macros
13930 rm -f conftest.$ac_objext
13931 if { (ac_try="$ac_compile"
13932 case "(($ac_try" in
13933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13934 *) ac_try_echo
=$ac_try;;
13936 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938 (eval "$ac_compile") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1
>conftest.err
13942 cat conftest.err
>&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } && {
13945 test -z "$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 } && test -s conftest.
$ac_objext; then
13948 # It does; now see whether it defined to BIG_ENDIAN or not.
13949 cat >conftest.
$ac_ext <<_ACEOF
13952 cat confdefs.h
>>conftest.
$ac_ext
13953 cat >>conftest.
$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <sys/types.h>
13956 #include <sys/param.h>
13961 #if BYTE_ORDER != BIG_ENDIAN
13969 rm -f conftest.
$ac_objext
13970 if { (ac_try
="$ac_compile"
13971 case "(($ac_try" in
13972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13976 $as_echo "$ac_try_echo") >&5
13977 (eval "$ac_compile") 2>conftest.er1
13979 grep -v '^ *+' conftest.er1 >conftest.err
13981 cat conftest.err >&5
13982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && {
13984 test -z "$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 } && test -s conftest.$ac_objext; then
13987 ac_cv_c_bigendian=yes
13989 $as_echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 ac_cv_c_bigendian=no
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 $as_echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005 if test $ac_cv_c_bigendian = unknown; then
14006 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14007 cat >conftest.$ac_ext <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 #include <limits.h>
14018 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14019 bogus endian macros
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14030 *) ac_try_echo
=$ac_try;;
14032 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_compile") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1
>conftest.err
14038 cat conftest.err
>&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest.
$ac_objext; then
14044 # It does; now see whether it defined to _BIG_ENDIAN or not.
14045 cat >conftest.
$ac_ext <<_ACEOF
14048 cat confdefs.h
>>conftest.
$ac_ext
14049 cat >>conftest.
$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include <limits.h>
14056 #ifndef _BIG_ENDIAN
14064 rm -f conftest.
$ac_objext
14065 if { (ac_try
="$ac_compile"
14066 case "(($ac_try" in
14067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14071 $as_echo "$ac_try_echo") >&5
14072 (eval "$ac_compile") 2>conftest.er1
14074 grep -v '^ *+' conftest.er1 >conftest.err
14076 cat conftest.err >&5
14077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } && {
14079 test -z "$ac_c_werror_flag" ||
14080 test ! -s conftest.err
14081 } && test -s conftest.$ac_objext; then
14082 ac_cv_c_bigendian=yes
14084 $as_echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 ac_cv_c_bigendian=no
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14092 $as_echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 if test $ac_cv_c_bigendian = unknown; then
14101 # Compile a test program.
14102 if test "$cross_compiling" = yes; then
14103 # Try to guess by grepping values from an object file.
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 short int ascii_mm[] =
14111 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14112 short int ascii_ii[] =
14113 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14114 int use_ascii (int i) {
14115 return ascii_mm[i] + ascii_ii[i];
14117 short int ebcdic_ii[] =
14118 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14119 short int ebcdic_mm[] =
14120 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14121 int use_ebcdic (int i) {
14122 return ebcdic_mm[i] + ebcdic_ii[i];
14129 return use_ascii (foo) == use_ebcdic (foo);
14134 rm -f conftest.$ac_objext
14135 if { (ac_try="$ac_compile"
14136 case "(($ac_try" in
14137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14138 *) ac_try_echo
=$ac_try;;
14140 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14141 $as_echo "$ac_try_echo") >&5
14142 (eval "$ac_compile") 2>conftest.er1
14144 grep -v '^ *+' conftest.er1
>conftest.err
14146 cat conftest.err
>&5
14147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } && {
14149 test -z "$ac_c_werror_flag" ||
14150 test ! -s conftest.err
14151 } && test -s conftest.
$ac_objext; then
14152 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14153 ac_cv_c_bigendian
=yes
14155 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14156 if test "$ac_cv_c_bigendian" = unknown
; then
14157 ac_cv_c_bigendian
=no
14159 # finding both strings is unlikely to happen, but who knows?
14160 ac_cv_c_bigendian
=unknown
14164 $as_echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.
$ac_ext >&5
14170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14172 cat >conftest.
$ac_ext <<_ACEOF
14175 cat confdefs.h
>>conftest.
$ac_ext
14176 cat >>conftest.
$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 $ac_includes_default
14183 /* Are we little or big endian? From Harbison&Steele. */
14187 char c[sizeof (long int)];
14190 return u.c[sizeof (long int) - 1] == 1;
14196 rm -f conftest
$ac_exeext
14197 if { (ac_try
="$ac_link"
14198 case "(($ac_try" in
14199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14203 $as_echo "$ac_try_echo") >&5
14204 (eval "$ac_link") 2>&5
14206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14208 { (case "(($ac_try" in
14209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14210 *) ac_try_echo
=$ac_try;;
14212 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14213 $as_echo "$ac_try_echo") >&5
14214 (eval "$ac_try") 2>&5
14216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 ac_cv_c_bigendian
=no
14220 $as_echo "$as_me: program exited with status $ac_status" >&5
14221 $as_echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.
$ac_ext >&5
14224 ( exit $ac_status )
14225 ac_cv_c_bigendian
=yes
14227 rm -rf conftest.dSYM
14228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14234 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14235 $as_echo "$ac_cv_c_bigendian" >&6; }
14236 case $ac_cv_c_bigendian in #(
14238 cat >>confdefs.h
<<\_ACEOF
14239 #define WORDS_BIGENDIAN 1
14246 cat >>confdefs.h
<<\_ACEOF
14247 #define AC_APPLE_UNIVERSAL_BUILD 1
14252 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14253 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14254 $as_echo "$as_me: error: unknown endianness
14255 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14256 { (exit 1); exit 1; }; } ;;
14259 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14260 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14261 if test "${ac_cv_c_const+set}" = set; then
14262 $as_echo_n "(cached) " >&6
14264 cat >conftest.
$ac_ext <<_ACEOF
14267 cat confdefs.h
>>conftest.
$ac_ext
14268 cat >>conftest.
$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14274 /* FIXME: Include the comments suggested by Paul. */
14275 #ifndef __cplusplus
14276 /* Ultrix mips cc rejects this. */
14277 typedef int charset[2];
14279 /* SunOS 4.1.1 cc rejects this. */
14280 char const *const *pcpcc;
14282 /* NEC SVR4.0.2 mips cc rejects this. */
14283 struct point {int x, y;};
14284 static struct point const zero = {0,0};
14285 /* AIX XL C 1.02.0.0 rejects this.
14286 It does not let you subtract one const X* pointer from another in
14287 an arm of an if-expression whose if-part is not a constant
14289 const char *g = "string";
14290 pcpcc = &g + (g ? g-g : 0);
14291 /* HPUX 7.0 cc rejects these. */
14293 ppc = (char**) pcpcc;
14294 pcpcc = (char const *const *) ppc;
14295 { /* SCO 3.2v4 cc rejects this. */
14297 char const *s = 0 ? (char *) 0 : (char const *) 0;
14302 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14303 int x[] = {25, 17};
14304 const int *foo = &x[0];
14307 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14308 typedef const int *iptr;
14312 { /* AIX XL C 1.02.0.0 rejects this saying
14313 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14314 struct s { int j; const int *ap[3]; };
14315 struct s *b; b->j = 5;
14317 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14318 const int foo = 10;
14319 if (!foo) return 0;
14321 return !cs[0] && !zero.x;
14328 rm -f conftest.
$ac_objext
14329 if { (ac_try
="$ac_compile"
14330 case "(($ac_try" in
14331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14335 $as_echo "$ac_try_echo") >&5
14336 (eval "$ac_compile") 2>conftest.er1
14338 grep -v '^ *+' conftest.er1 >conftest.err
14340 cat conftest.err >&5
14341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && {
14343 test -z "$ac_c_werror_flag" ||
14344 test ! -s conftest.err
14345 } && test -s conftest.$ac_objext; then
14348 $as_echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14357 $as_echo "$ac_cv_c_const" >&6; }
14358 if test $ac_cv_c_const = no; then
14360 cat >>confdefs.h <<\_ACEOF
14366 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14367 $as_echo_n "checking for inline... " >&6; }
14368 if test "${ac_cv_c_inline+set}" = set; then
14369 $as_echo_n "(cached) " >&6
14372 for ac_kw in inline __inline__ __inline; do
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 #ifndef __cplusplus
14381 static $ac_kw foo_t static_foo () {return 0; }
14382 $ac_kw foo_t foo () {return 0; }
14386 rm -f conftest.$ac_objext
14387 if { (ac_try="$ac_compile"
14388 case "(($ac_try" in
14389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14390 *) ac_try_echo
=$ac_try;;
14392 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14393 $as_echo "$ac_try_echo") >&5
14394 (eval "$ac_compile") 2>conftest.er1
14396 grep -v '^ *+' conftest.er1
>conftest.err
14398 cat conftest.err
>&5
14399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } && {
14401 test -z "$ac_c_werror_flag" ||
14402 test ! -s conftest.err
14403 } && test -s conftest.
$ac_objext; then
14404 ac_cv_c_inline
=$ac_kw
14406 $as_echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.
$ac_ext >&5
14412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14413 test "$ac_cv_c_inline" != no
&& break
14417 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14418 $as_echo "$ac_cv_c_inline" >&6; }
14421 case $ac_cv_c_inline in
14424 case $ac_cv_c_inline in
14426 *) ac_val
=$ac_cv_c_inline;;
14428 cat >>confdefs.h
<<_ACEOF
14429 #ifndef __cplusplus
14430 #define inline $ac_val
14436 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14437 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14438 if test "${ac_cv_c_stringize+set}" = set; then
14439 $as_echo_n "(cached) " >&6
14441 cat >conftest.
$ac_ext <<_ACEOF
14444 cat confdefs.h
>>conftest.
$ac_ext
14445 cat >>conftest.
$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14449 char *s = x(teststring);
14451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14452 $EGREP "#teststring" >/dev
/null
2>&1; then
14453 ac_cv_c_stringize
=no
14455 ac_cv_c_stringize
=yes
14460 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14461 $as_echo "$ac_cv_c_stringize" >&6; }
14462 if test $ac_cv_c_stringize = yes; then
14464 cat >>confdefs.h
<<\_ACEOF
14465 #define HAVE_STRINGIZE 1
14470 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14471 $as_echo_n "checking for signed types... " >&6; }
14472 if test "${pgac_cv_c_signed+set}" = set; then
14473 $as_echo_n "(cached) " >&6
14475 cat >conftest.
$ac_ext <<_ACEOF
14478 cat confdefs.h
>>conftest.
$ac_ext
14479 cat >>conftest.
$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14485 signed char c; signed short s; signed int i;
14490 rm -f conftest.
$ac_objext
14491 if { (ac_try
="$ac_compile"
14492 case "(($ac_try" in
14493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14497 $as_echo "$ac_try_echo") >&5
14498 (eval "$ac_compile") 2>conftest.er1
14500 grep -v '^ *+' conftest.er1 >conftest.err
14502 cat conftest.err >&5
14503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } && {
14505 test -z "$ac_c_werror_flag" ||
14506 test ! -s conftest.err
14507 } && test -s conftest.$ac_objext; then
14508 pgac_cv_c_signed=yes
14510 $as_echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 pgac_cv_c_signed=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14519 $as_echo "$pgac_cv_c_signed" >&6; }
14520 if test x"$pgac_cv_c_signed" = xno ; then
14522 cat >>confdefs.h <<\_ACEOF
14523 #define signed /**/
14527 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14528 $as_echo_n "checking for working volatile... " >&6; }
14529 if test "${ac_cv_c_volatile+set}" = set; then
14530 $as_echo_n "(cached) " >&6
14532 cat >conftest.$ac_ext <<_ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14544 int * volatile y = (int *) 0;
14550 rm -f conftest.$ac_objext
14551 if { (ac_try="$ac_compile"
14552 case "(($ac_try" in
14553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14554 *) ac_try_echo
=$ac_try;;
14556 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14557 $as_echo "$ac_try_echo") >&5
14558 (eval "$ac_compile") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1
>conftest.err
14562 cat conftest.err
>&5
14563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest.
$ac_objext; then
14568 ac_cv_c_volatile
=yes
14570 $as_echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.
$ac_ext >&5
14573 ac_cv_c_volatile
=no
14576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14578 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14579 $as_echo "$ac_cv_c_volatile" >&6; }
14580 if test $ac_cv_c_volatile = no
; then
14582 cat >>confdefs.h
<<\_ACEOF
14583 #define volatile /**/
14588 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14589 $as_echo_n "checking for __func__... " >&6; }
14590 if test "${pgac_cv_funcname_func_support+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14593 cat >conftest.
$ac_ext <<_ACEOF
14596 cat confdefs.h
>>conftest.
$ac_ext
14597 cat >>conftest.
$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14603 printf("%s\n", __func__);
14608 rm -f conftest.
$ac_objext
14609 if { (ac_try
="$ac_compile"
14610 case "(($ac_try" in
14611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14615 $as_echo "$ac_try_echo") >&5
14616 (eval "$ac_compile") 2>conftest.er1
14618 grep -v '^ *+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } && {
14623 test -z "$ac_c_werror_flag" ||
14624 test ! -s conftest.err
14625 } && test -s conftest.$ac_objext; then
14626 pgac_cv_funcname_func_support=yes
14628 $as_echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 pgac_cv_funcname_func_support=no
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14637 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14638 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14640 cat >>confdefs.h <<\_ACEOF
14641 #define HAVE_FUNCNAME__FUNC 1
14645 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14646 $as_echo_n "checking for __FUNCTION__... " >&6; }
14647 if test "${pgac_cv_funcname_function_support+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 printf("%s\n", __FUNCTION__);
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_funcname_function_support
=yes
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.
$ac_ext >&5
14688 pgac_cv_funcname_function_support
=no
14691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14694 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14695 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
14697 cat >>confdefs.h
<<\_ACEOF
14698 #define HAVE_FUNCNAME__FUNCTION 1
14703 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14704 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14705 if test "${ac_cv_struct_tm+set}" = set; then
14706 $as_echo_n "(cached) " >&6
14708 cat >conftest.
$ac_ext <<_ACEOF
14711 cat confdefs.h
>>conftest.
$ac_ext
14712 cat >>conftest.
$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 #include <sys/types.h>
14721 int *p = &tm.tm_sec;
14727 rm -f conftest.
$ac_objext
14728 if { (ac_try
="$ac_compile"
14729 case "(($ac_try" in
14730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14734 $as_echo "$ac_try_echo") >&5
14735 (eval "$ac_compile") 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && {
14742 test -z "$ac_c_werror_flag" ||
14743 test ! -s conftest.err
14744 } && test -s conftest.$ac_objext; then
14745 ac_cv_struct_tm=time.h
14747 $as_echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 ac_cv_struct_tm=sys/time.h
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14756 $as_echo "$ac_cv_struct_tm" >&6; }
14757 if test $ac_cv_struct_tm = sys/time.h; then
14759 cat >>confdefs.h <<\_ACEOF
14760 #define TM_IN_SYS_TIME 1
14765 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14766 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14767 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14768 $as_echo_n "(cached) " >&6
14770 cat >conftest.$ac_ext <<_ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 #include <sys/types.h>
14777 #include <$ac_cv_struct_tm>
14783 static struct tm ac_aggr;
14784 if (ac_aggr.tm_zone)
14790 rm -f conftest.$ac_objext
14791 if { (ac_try="$ac_compile"
14792 case "(($ac_try" in
14793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14794 *) ac_try_echo
=$ac_try;;
14796 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14797 $as_echo "$ac_try_echo") >&5
14798 (eval "$ac_compile") 2>conftest.er1
14800 grep -v '^ *+' conftest.er1
>conftest.err
14802 cat conftest.err
>&5
14803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest.
$ac_objext; then
14808 ac_cv_member_struct_tm_tm_zone
=yes
14810 $as_echo "$as_me: failed program was:" >&5
14811 sed 's/^/| /' conftest.
$ac_ext >&5
14813 cat >conftest.
$ac_ext <<_ACEOF
14816 cat confdefs.h
>>conftest.
$ac_ext
14817 cat >>conftest.
$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819 #include <sys/types.h>
14820 #include <$ac_cv_struct_tm>
14826 static struct tm ac_aggr;
14827 if (sizeof ac_aggr.tm_zone)
14833 rm -f conftest.
$ac_objext
14834 if { (ac_try
="$ac_compile"
14835 case "(($ac_try" in
14836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14840 $as_echo "$ac_try_echo") >&5
14841 (eval "$ac_compile") 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } && {
14848 test -z "$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14850 } && test -s conftest.$ac_objext; then
14851 ac_cv_member_struct_tm_tm_zone=yes
14853 $as_echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_cv_member_struct_tm_tm_zone=no
14859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14865 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
14866 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE_STRUCT_TM_TM_ZONE 1
14875 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_TM_ZONE 1
14882 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
14883 $as_echo_n "checking for tzname... " >&6; }
14884 if test "${ac_cv_var_tzname+set}" = set; then
14885 $as_echo_n "(cached) " >&6
14887 cat >conftest.$ac_ext <<_ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14894 #ifndef tzname /* For SGI. */
14895 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (ac_try="$ac_link"
14908 case "(($ac_try" in
14909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14910 *) ac_try_echo
=$ac_try;;
14912 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14913 $as_echo "$ac_try_echo") >&5
14914 (eval "$ac_link") 2>conftest.er1
14916 grep -v '^ *+' conftest.er1
>conftest.err
14918 cat conftest.err
>&5
14919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } && {
14921 test -z "$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14923 } && test -s conftest
$ac_exeext && {
14924 test "$cross_compiling" = yes ||
14925 $as_test_x conftest
$ac_exeext
14927 ac_cv_var_tzname
=yes
14929 $as_echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.
$ac_ext >&5
14932 ac_cv_var_tzname
=no
14935 rm -rf conftest.dSYM
14936 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14937 conftest
$ac_exeext conftest.
$ac_ext
14939 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14940 $as_echo "$ac_cv_var_tzname" >&6; }
14941 if test $ac_cv_var_tzname = yes; then
14943 cat >>confdefs.h
<<\_ACEOF
14944 #define HAVE_TZNAME 1
14949 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
14950 $as_echo_n "checking for union semun... " >&6; }
14951 if test "${ac_cv_type_union_semun+set}" = set; then
14952 $as_echo_n "(cached) " >&6
14954 ac_cv_type_union_semun
=no
14955 cat >conftest.
$ac_ext <<_ACEOF
14958 cat confdefs.h
>>conftest.
$ac_ext
14959 cat >>conftest.
$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <sys/types.h>
14962 #include <sys/ipc.h>
14963 #include <sys/sem.h>
14968 if (sizeof (union semun))
14974 rm -f conftest.
$ac_objext
14975 if { (ac_try
="$ac_compile"
14976 case "(($ac_try" in
14977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14981 $as_echo "$ac_try_echo") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14984 grep -v '^ *+' conftest.er1 >conftest.err
14986 cat conftest.err >&5
14987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && {
14989 test -z "$ac_c_werror_flag" ||
14990 test ! -s conftest.err
14991 } && test -s conftest.$ac_objext; then
14992 cat >conftest.$ac_ext <<_ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 #include <sys/types.h>
14999 #include <sys/ipc.h>
15000 #include <sys/sem.h>
15005 if (sizeof ((union semun)))
15011 rm -f conftest.$ac_objext
15012 if { (ac_try="$ac_compile"
15013 case "(($ac_try" in
15014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15015 *) ac_try_echo
=$ac_try;;
15017 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15018 $as_echo "$ac_try_echo") >&5
15019 (eval "$ac_compile") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1
>conftest.err
15023 cat conftest.err
>&5
15024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } && {
15026 test -z "$ac_c_werror_flag" ||
15027 test ! -s conftest.err
15028 } && test -s conftest.
$ac_objext; then
15031 $as_echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.
$ac_ext >&5
15034 ac_cv_type_union_semun
=yes
15037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15039 $as_echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.
$ac_ext >&5
15045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15047 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15048 $as_echo "$ac_cv_type_union_semun" >&6; }
15049 if test "x$ac_cv_type_union_semun" = x
""yes; then
15051 cat >>confdefs.h
<<_ACEOF
15052 #define HAVE_UNION_SEMUN 1
15058 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15059 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15060 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15061 $as_echo_n "(cached) " >&6
15063 ac_cv_type_struct_sockaddr_un
=no
15064 cat >conftest.
$ac_ext <<_ACEOF
15067 cat confdefs.h
>>conftest.
$ac_ext
15068 cat >>conftest.
$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include <sys/types.h>
15071 #ifdef HAVE_SYS_UN_H
15072 #include <sys/un.h>
15079 if (sizeof (struct sockaddr_un))
15085 rm -f conftest.
$ac_objext
15086 if { (ac_try
="$ac_compile"
15087 case "(($ac_try" in
15088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15092 $as_echo "$ac_try_echo") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && {
15100 test -z "$ac_c_werror_flag" ||
15101 test ! -s conftest.err
15102 } && test -s conftest.$ac_objext; then
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #include <sys/types.h>
15110 #ifdef HAVE_SYS_UN_H
15111 #include <sys/un.h>
15118 if (sizeof ((struct sockaddr_un)))
15124 rm -f conftest.$ac_objext
15125 if { (ac_try="$ac_compile"
15126 case "(($ac_try" in
15127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15128 *) ac_try_echo
=$ac_try;;
15130 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15131 $as_echo "$ac_try_echo") >&5
15132 (eval "$ac_compile") 2>conftest.er1
15134 grep -v '^ *+' conftest.er1
>conftest.err
15136 cat conftest.err
>&5
15137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && {
15139 test -z "$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 } && test -s conftest.
$ac_objext; then
15144 $as_echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.
$ac_ext >&5
15147 ac_cv_type_struct_sockaddr_un
=yes
15150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.
$ac_ext >&5
15158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15160 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15161 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15162 if test "x$ac_cv_type_struct_sockaddr_un" = x
""yes; then
15164 cat >>confdefs.h
<<_ACEOF
15165 #define HAVE_STRUCT_SOCKADDR_UN 1
15169 cat >>confdefs.h
<<\_ACEOF
15170 #define HAVE_UNIX_SOCKETS 1
15175 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15176 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15177 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15178 $as_echo_n "(cached) " >&6
15180 ac_cv_type_struct_sockaddr_storage
=no
15181 cat >conftest.
$ac_ext <<_ACEOF
15184 cat confdefs.h
>>conftest.
$ac_ext
15185 cat >>conftest.
$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 #include <sys/types.h>
15188 #ifdef HAVE_SYS_SOCKET_H
15189 #include <sys/socket.h>
15196 if (sizeof (struct sockaddr_storage))
15202 rm -f conftest.
$ac_objext
15203 if { (ac_try
="$ac_compile"
15204 case "(($ac_try" in
15205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15206 *) ac_try_echo=$ac_try;;
15208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15209 $as_echo "$ac_try_echo") >&5
15210 (eval "$ac_compile") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1 >conftest.err
15214 cat conftest.err >&5
15215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest.$ac_objext; then
15220 cat >conftest.$ac_ext <<_ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 #include <sys/types.h>
15227 #ifdef HAVE_SYS_SOCKET_H
15228 #include <sys/socket.h>
15235 if (sizeof ((struct sockaddr_storage)))
15241 rm -f conftest.$ac_objext
15242 if { (ac_try="$ac_compile"
15243 case "(($ac_try" in
15244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15245 *) ac_try_echo
=$ac_try;;
15247 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15248 $as_echo "$ac_try_echo") >&5
15249 (eval "$ac_compile") 2>conftest.er1
15251 grep -v '^ *+' conftest.er1
>conftest.err
15253 cat conftest.err
>&5
15254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } && {
15256 test -z "$ac_c_werror_flag" ||
15257 test ! -s conftest.err
15258 } && test -s conftest.
$ac_objext; then
15261 $as_echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.
$ac_ext >&5
15264 ac_cv_type_struct_sockaddr_storage
=yes
15267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15269 $as_echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.
$ac_ext >&5
15275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15277 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15278 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15279 if test "x$ac_cv_type_struct_sockaddr_storage" = x
""yes; then
15281 cat >>confdefs.h
<<_ACEOF
15282 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15288 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15289 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15290 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15291 $as_echo_n "(cached) " >&6
15293 cat >conftest.
$ac_ext <<_ACEOF
15296 cat confdefs.h
>>conftest.
$ac_ext
15297 cat >>conftest.
$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 #include <sys/types.h>
15300 #ifdef HAVE_SYS_SOCKET_H
15301 #include <sys/socket.h>
15308 static struct sockaddr_storage ac_aggr;
15309 if (ac_aggr.ss_family)
15315 rm -f conftest.
$ac_objext
15316 if { (ac_try
="$ac_compile"
15317 case "(($ac_try" in
15318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322 $as_echo "$ac_try_echo") >&5
15323 (eval "$ac_compile") 2>conftest.er1
15325 grep -v '^ *+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && {
15330 test -z "$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15332 } && test -s conftest.$ac_objext; then
15333 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15335 $as_echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 cat >conftest.$ac_ext <<_ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15344 #include <sys/types.h>
15345 #ifdef HAVE_SYS_SOCKET_H
15346 #include <sys/socket.h>
15353 static struct sockaddr_storage ac_aggr;
15354 if (sizeof ac_aggr.ss_family)
15360 rm -f conftest.$ac_objext
15361 if { (ac_try="$ac_compile"
15362 case "(($ac_try" in
15363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15364 *) ac_try_echo
=$ac_try;;
15366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15367 $as_echo "$ac_try_echo") >&5
15368 (eval "$ac_compile") 2>conftest.er1
15370 grep -v '^ *+' conftest.er1
>conftest.err
15372 cat conftest.err
>&5
15373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } && {
15375 test -z "$ac_c_werror_flag" ||
15376 test ! -s conftest.err
15377 } && test -s conftest.
$ac_objext; then
15378 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
15380 $as_echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.
$ac_ext >&5
15383 ac_cv_member_struct_sockaddr_storage_ss_family
=no
15386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15391 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15392 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15393 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x
""yes; then
15395 cat >>confdefs.h
<<_ACEOF
15396 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15401 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15402 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15403 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15404 $as_echo_n "(cached) " >&6
15406 cat >conftest.
$ac_ext <<_ACEOF
15409 cat confdefs.h
>>conftest.
$ac_ext
15410 cat >>conftest.
$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 #include <sys/types.h>
15413 #ifdef HAVE_SYS_SOCKET_H
15414 #include <sys/socket.h>
15421 static struct sockaddr_storage ac_aggr;
15422 if (ac_aggr.__ss_family)
15428 rm -f conftest.
$ac_objext
15429 if { (ac_try
="$ac_compile"
15430 case "(($ac_try" in
15431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15435 $as_echo "$ac_try_echo") >&5
15436 (eval "$ac_compile") 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } && {
15443 test -z "$ac_c_werror_flag" ||
15444 test ! -s conftest.err
15445 } && test -s conftest.$ac_objext; then
15446 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15448 $as_echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15451 cat >conftest.$ac_ext <<_ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 #include <sys/types.h>
15458 #ifdef HAVE_SYS_SOCKET_H
15459 #include <sys/socket.h>
15466 static struct sockaddr_storage ac_aggr;
15467 if (sizeof ac_aggr.__ss_family)
15473 rm -f conftest.$ac_objext
15474 if { (ac_try="$ac_compile"
15475 case "(($ac_try" in
15476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15477 *) ac_try_echo
=$ac_try;;
15479 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15480 $as_echo "$ac_try_echo") >&5
15481 (eval "$ac_compile") 2>conftest.er1
15483 grep -v '^ *+' conftest.er1
>conftest.err
15485 cat conftest.err
>&5
15486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } && {
15488 test -z "$ac_c_werror_flag" ||
15489 test ! -s conftest.err
15490 } && test -s conftest.
$ac_objext; then
15491 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
15493 $as_echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.
$ac_ext >&5
15496 ac_cv_member_struct_sockaddr_storage___ss_family
=no
15499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15504 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15505 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15506 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x
""yes; then
15508 cat >>confdefs.h
<<_ACEOF
15509 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15514 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15515 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15516 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15517 $as_echo_n "(cached) " >&6
15519 cat >conftest.
$ac_ext <<_ACEOF
15522 cat confdefs.h
>>conftest.
$ac_ext
15523 cat >>conftest.
$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 #include <sys/types.h>
15526 #ifdef HAVE_SYS_SOCKET_H
15527 #include <sys/socket.h>
15534 static struct sockaddr_storage ac_aggr;
15535 if (ac_aggr.ss_len)
15541 rm -f conftest.
$ac_objext
15542 if { (ac_try
="$ac_compile"
15543 case "(($ac_try" in
15544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15545 *) ac_try_echo=$ac_try;;
15547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15548 $as_echo "$ac_try_echo") >&5
15549 (eval "$ac_compile") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest.$ac_objext; then
15559 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15561 $as_echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #include <sys/types.h>
15571 #ifdef HAVE_SYS_SOCKET_H
15572 #include <sys/socket.h>
15579 static struct sockaddr_storage ac_aggr;
15580 if (sizeof ac_aggr.ss_len)
15586 rm -f conftest.$ac_objext
15587 if { (ac_try="$ac_compile"
15588 case "(($ac_try" in
15589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15590 *) ac_try_echo
=$ac_try;;
15592 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15593 $as_echo "$ac_try_echo") >&5
15594 (eval "$ac_compile") 2>conftest.er1
15596 grep -v '^ *+' conftest.er1
>conftest.err
15598 cat conftest.err
>&5
15599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } && {
15601 test -z "$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15603 } && test -s conftest.
$ac_objext; then
15604 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
15606 $as_echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.
$ac_ext >&5
15609 ac_cv_member_struct_sockaddr_storage_ss_len
=no
15612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15617 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15618 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15619 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x
""yes; then
15621 cat >>confdefs.h
<<_ACEOF
15622 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15627 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15628 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15629 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15630 $as_echo_n "(cached) " >&6
15632 cat >conftest.
$ac_ext <<_ACEOF
15635 cat confdefs.h
>>conftest.
$ac_ext
15636 cat >>conftest.
$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 #include <sys/types.h>
15639 #ifdef HAVE_SYS_SOCKET_H
15640 #include <sys/socket.h>
15647 static struct sockaddr_storage ac_aggr;
15648 if (ac_aggr.__ss_len)
15654 rm -f conftest.
$ac_objext
15655 if { (ac_try
="$ac_compile"
15656 case "(($ac_try" in
15657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15661 $as_echo "$ac_try_echo") >&5
15662 (eval "$ac_compile") 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } && {
15669 test -z "$ac_c_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest.$ac_objext; then
15672 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15674 $as_echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 #include <sys/types.h>
15684 #ifdef HAVE_SYS_SOCKET_H
15685 #include <sys/socket.h>
15692 static struct sockaddr_storage ac_aggr;
15693 if (sizeof ac_aggr.__ss_len)
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15703 *) ac_try_echo
=$ac_try;;
15705 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707 (eval "$ac_compile") 2>conftest.er1
15709 grep -v '^ *+' conftest.er1
>conftest.err
15711 cat conftest.err
>&5
15712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } && {
15714 test -z "$ac_c_werror_flag" ||
15715 test ! -s conftest.err
15716 } && test -s conftest.
$ac_objext; then
15717 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
15719 $as_echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.
$ac_ext >&5
15722 ac_cv_member_struct_sockaddr_storage___ss_len
=no
15725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15730 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15731 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15732 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x
""yes; then
15734 cat >>confdefs.h
<<_ACEOF
15735 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15740 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15741 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15742 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15743 $as_echo_n "(cached) " >&6
15745 cat >conftest.
$ac_ext <<_ACEOF
15748 cat confdefs.h
>>conftest.
$ac_ext
15749 cat >>conftest.
$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 #include <sys/types.h>
15752 #ifdef HAVE_SYS_SOCKET_H
15753 #include <sys/socket.h>
15760 static struct sockaddr ac_aggr;
15761 if (ac_aggr.sa_len)
15767 rm -f conftest.
$ac_objext
15768 if { (ac_try
="$ac_compile"
15769 case "(($ac_try" in
15770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15774 $as_echo "$ac_try_echo") >&5
15775 (eval "$ac_compile") 2>conftest.er1
15777 grep -v '^ *+' conftest.er1 >conftest.err
15779 cat conftest.err >&5
15780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } && {
15782 test -z "$ac_c_werror_flag" ||
15783 test ! -s conftest.err
15784 } && test -s conftest.$ac_objext; then
15785 ac_cv_member_struct_sockaddr_sa_len=yes
15787 $as_echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 cat >conftest.$ac_ext <<_ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15796 #include <sys/types.h>
15797 #ifdef HAVE_SYS_SOCKET_H
15798 #include <sys/socket.h>
15805 static struct sockaddr ac_aggr;
15806 if (sizeof ac_aggr.sa_len)
15812 rm -f conftest.$ac_objext
15813 if { (ac_try="$ac_compile"
15814 case "(($ac_try" in
15815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15816 *) ac_try_echo
=$ac_try;;
15818 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15819 $as_echo "$ac_try_echo") >&5
15820 (eval "$ac_compile") 2>conftest.er1
15822 grep -v '^ *+' conftest.er1
>conftest.err
15824 cat conftest.err
>&5
15825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } && {
15827 test -z "$ac_c_werror_flag" ||
15828 test ! -s conftest.err
15829 } && test -s conftest.
$ac_objext; then
15830 ac_cv_member_struct_sockaddr_sa_len
=yes
15832 $as_echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.
$ac_ext >&5
15835 ac_cv_member_struct_sockaddr_sa_len
=no
15838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15843 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15844 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15845 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x
""yes; then
15847 cat >>confdefs.h
<<_ACEOF
15848 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15854 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15855 $as_echo_n "checking for struct addrinfo... " >&6; }
15856 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15857 $as_echo_n "(cached) " >&6
15859 ac_cv_type_struct_addrinfo
=no
15860 cat >conftest.
$ac_ext <<_ACEOF
15863 cat confdefs.h
>>conftest.
$ac_ext
15864 cat >>conftest.
$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 #include <sys/types.h>
15867 #include <sys/socket.h>
15874 if (sizeof (struct addrinfo))
15880 rm -f conftest.
$ac_objext
15881 if { (ac_try
="$ac_compile"
15882 case "(($ac_try" in
15883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15887 $as_echo "$ac_try_echo") >&5
15888 (eval "$ac_compile") 2>conftest.er1
15890 grep -v '^ *+' conftest.er1 >conftest.err
15892 cat conftest.err >&5
15893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } && {
15895 test -z "$ac_c_werror_flag" ||
15896 test ! -s conftest.err
15897 } && test -s conftest.$ac_objext; then
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15904 #include <sys/types.h>
15905 #include <sys/socket.h>
15912 if (sizeof ((struct addrinfo)))
15918 rm -f conftest.$ac_objext
15919 if { (ac_try="$ac_compile"
15920 case "(($ac_try" in
15921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15922 *) ac_try_echo
=$ac_try;;
15924 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926 (eval "$ac_compile") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1
>conftest.err
15930 cat conftest.err
>&5
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest.
$ac_objext; then
15938 $as_echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.
$ac_ext >&5
15941 ac_cv_type_struct_addrinfo
=yes
15944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15946 $as_echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.
$ac_ext >&5
15952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15954 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15955 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
15956 if test "x$ac_cv_type_struct_addrinfo" = x
""yes; then
15958 cat >>confdefs.h
<<_ACEOF
15959 #define HAVE_STRUCT_ADDRINFO 1
15966 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15967 $as_echo_n "checking for struct cmsgcred... " >&6; }
15968 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15969 $as_echo_n "(cached) " >&6
15971 ac_cv_type_struct_cmsgcred
=no
15972 cat >conftest.
$ac_ext <<_ACEOF
15975 cat confdefs.h
>>conftest.
$ac_ext
15976 cat >>conftest.
$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 #include <sys/param.h>
15979 #include <sys/types.h>
15980 #include <sys/socket.h>
15981 #include <sys/ucred.h>
15986 if (sizeof (struct cmsgcred))
15992 rm -f conftest.
$ac_objext
15993 if { (ac_try
="$ac_compile"
15994 case "(($ac_try" in
15995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15999 $as_echo "$ac_try_echo") >&5
16000 (eval "$ac_compile") 2>conftest.er1
16002 grep -v '^ *+' conftest.er1 >conftest.err
16004 cat conftest.err >&5
16005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && {
16007 test -z "$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 } && test -s conftest.$ac_objext; then
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #include <sys/param.h>
16017 #include <sys/types.h>
16018 #include <sys/socket.h>
16019 #include <sys/ucred.h>
16024 if (sizeof ((struct cmsgcred)))
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16034 *) ac_try_echo
=$ac_try;;
16036 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16037 $as_echo "$ac_try_echo") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1
>conftest.err
16042 cat conftest.err
>&5
16043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest.
$ac_objext; then
16050 $as_echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.
$ac_ext >&5
16053 ac_cv_type_struct_cmsgcred
=yes
16056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16058 $as_echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.
$ac_ext >&5
16064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16066 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16067 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16068 if test "x$ac_cv_type_struct_cmsgcred" = x
""yes; then
16070 cat >>confdefs.h
<<_ACEOF
16071 #define HAVE_STRUCT_CMSGCRED 1
16076 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16077 $as_echo_n "checking for struct fcred... " >&6; }
16078 if test "${ac_cv_type_struct_fcred+set}" = set; then
16079 $as_echo_n "(cached) " >&6
16081 ac_cv_type_struct_fcred
=no
16082 cat >conftest.
$ac_ext <<_ACEOF
16085 cat confdefs.h
>>conftest.
$ac_ext
16086 cat >>conftest.
$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 #include <sys/param.h>
16089 #include <sys/types.h>
16090 #include <sys/socket.h>
16091 #include <sys/ucred.h>
16096 if (sizeof (struct fcred))
16102 rm -f conftest.
$ac_objext
16103 if { (ac_try
="$ac_compile"
16104 case "(($ac_try" in
16105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16109 $as_echo "$ac_try_echo") >&5
16110 (eval "$ac_compile") 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
16114 cat conftest.err >&5
16115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } && {
16117 test -z "$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 } && test -s conftest.$ac_objext; then
16120 cat >conftest.$ac_ext <<_ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16126 #include <sys/param.h>
16127 #include <sys/types.h>
16128 #include <sys/socket.h>
16129 #include <sys/ucred.h>
16134 if (sizeof ((struct fcred)))
16140 rm -f conftest.$ac_objext
16141 if { (ac_try="$ac_compile"
16142 case "(($ac_try" in
16143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16144 *) ac_try_echo
=$ac_try;;
16146 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16147 $as_echo "$ac_try_echo") >&5
16148 (eval "$ac_compile") 2>conftest.er1
16150 grep -v '^ *+' conftest.er1
>conftest.err
16152 cat conftest.err
>&5
16153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && {
16155 test -z "$ac_c_werror_flag" ||
16156 test ! -s conftest.err
16157 } && test -s conftest.
$ac_objext; then
16160 $as_echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.
$ac_ext >&5
16163 ac_cv_type_struct_fcred
=yes
16166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16168 $as_echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.
$ac_ext >&5
16174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16176 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16177 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16178 if test "x$ac_cv_type_struct_fcred" = x
""yes; then
16180 cat >>confdefs.h
<<_ACEOF
16181 #define HAVE_STRUCT_FCRED 1
16186 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16187 $as_echo_n "checking for struct sockcred... " >&6; }
16188 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16189 $as_echo_n "(cached) " >&6
16191 ac_cv_type_struct_sockcred
=no
16192 cat >conftest.
$ac_ext <<_ACEOF
16195 cat confdefs.h
>>conftest.
$ac_ext
16196 cat >>conftest.
$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 #include <sys/param.h>
16199 #include <sys/types.h>
16200 #include <sys/socket.h>
16201 #include <sys/ucred.h>
16206 if (sizeof (struct sockcred))
16212 rm -f conftest.
$ac_objext
16213 if { (ac_try
="$ac_compile"
16214 case "(($ac_try" in
16215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16219 $as_echo "$ac_try_echo") >&5
16220 (eval "$ac_compile") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } && {
16227 test -z "$ac_c_werror_flag" ||
16228 test ! -s conftest.err
16229 } && test -s conftest.$ac_objext; then
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 #include <sys/param.h>
16237 #include <sys/types.h>
16238 #include <sys/socket.h>
16239 #include <sys/ucred.h>
16244 if (sizeof ((struct sockcred)))
16250 rm -f conftest.$ac_objext
16251 if { (ac_try="$ac_compile"
16252 case "(($ac_try" in
16253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16254 *) ac_try_echo
=$ac_try;;
16256 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16257 $as_echo "$ac_try_echo") >&5
16258 (eval "$ac_compile") 2>conftest.er1
16260 grep -v '^ *+' conftest.er1
>conftest.err
16262 cat conftest.err
>&5
16263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } && {
16265 test -z "$ac_c_werror_flag" ||
16266 test ! -s conftest.err
16267 } && test -s conftest.
$ac_objext; then
16270 $as_echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.
$ac_ext >&5
16273 ac_cv_type_struct_sockcred
=yes
16276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16278 $as_echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.
$ac_ext >&5
16284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16286 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16287 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16288 if test "x$ac_cv_type_struct_sockcred" = x
""yes; then
16290 cat >>confdefs.h
<<_ACEOF
16291 #define HAVE_STRUCT_SOCKCRED 1
16298 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16299 $as_echo_n "checking for struct option... " >&6; }
16300 if test "${ac_cv_type_struct_option+set}" = set; then
16301 $as_echo_n "(cached) " >&6
16303 ac_cv_type_struct_option
=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 #ifdef HAVE_GETOPT_H
16311 #include <getopt.h>
16317 if (sizeof (struct option))
16323 rm -f conftest.
$ac_objext
16324 if { (ac_try
="$ac_compile"
16325 case "(($ac_try" in
16326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16330 $as_echo "$ac_try_echo") >&5
16331 (eval "$ac_compile") 2>conftest.er1
16333 grep -v '^ *+' conftest.er1 >conftest.err
16335 cat conftest.err >&5
16336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } && {
16338 test -z "$ac_c_werror_flag" ||
16339 test ! -s conftest.err
16340 } && test -s conftest.$ac_objext; then
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 #ifdef HAVE_GETOPT_H
16348 #include <getopt.h>
16354 if (sizeof ((struct option)))
16360 rm -f conftest.$ac_objext
16361 if { (ac_try="$ac_compile"
16362 case "(($ac_try" in
16363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16364 *) ac_try_echo
=$ac_try;;
16366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16367 $as_echo "$ac_try_echo") >&5
16368 (eval "$ac_compile") 2>conftest.er1
16370 grep -v '^ *+' conftest.er1
>conftest.err
16372 cat conftest.err
>&5
16373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } && {
16375 test -z "$ac_c_werror_flag" ||
16376 test ! -s conftest.err
16377 } && test -s conftest.
$ac_objext; then
16380 $as_echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.
$ac_ext >&5
16383 ac_cv_type_struct_option
=yes
16386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16388 $as_echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.
$ac_ext >&5
16394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16396 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16397 $as_echo "$ac_cv_type_struct_option" >&6; }
16398 if test "x$ac_cv_type_struct_option" = x
""yes; then
16400 cat >>confdefs.h
<<_ACEOF
16401 #define HAVE_STRUCT_OPTION 1
16408 if test "$with_zlib" = yes; then
16409 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16410 # did not). While we could work around the lack of z_streamp, it
16411 # seems unwise to encourage people to use such old zlib versions...
16412 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16413 $as_echo_n "checking for z_streamp... " >&6; }
16414 if test "${ac_cv_type_z_streamp+set}" = set; then
16415 $as_echo_n "(cached) " >&6
16417 ac_cv_type_z_streamp
=no
16418 cat >conftest.
$ac_ext <<_ACEOF
16421 cat confdefs.h
>>conftest.
$ac_ext
16422 cat >>conftest.
$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16429 if (sizeof (z_streamp))
16435 rm -f conftest.
$ac_objext
16436 if { (ac_try
="$ac_compile"
16437 case "(($ac_try" in
16438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16442 $as_echo "$ac_try_echo") >&5
16443 (eval "$ac_compile") 2>conftest.er1
16445 grep -v '^ *+' conftest.er1 >conftest.err
16447 cat conftest.err >&5
16448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest.$ac_objext; then
16453 cat >conftest.$ac_ext <<_ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16464 if (sizeof ((z_streamp)))
16470 rm -f conftest.$ac_objext
16471 if { (ac_try="$ac_compile"
16472 case "(($ac_try" in
16473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16474 *) ac_try_echo
=$ac_try;;
16476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478 (eval "$ac_compile") 2>conftest.er1
16480 grep -v '^ *+' conftest.er1
>conftest.err
16482 cat conftest.err
>&5
16483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest.
$ac_objext; then
16490 $as_echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.
$ac_ext >&5
16493 ac_cv_type_z_streamp
=yes
16496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16498 $as_echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.
$ac_ext >&5
16504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16506 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16507 $as_echo "$ac_cv_type_z_streamp" >&6; }
16508 if test "x$ac_cv_type_z_streamp" = x
""yes; then
16511 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16512 Use --without-zlib to disable zlib support." >&5
16513 $as_echo "$as_me: error: zlib version is too old
16514 Use --without-zlib to disable zlib support." >&2;}
16515 { (exit 1); exit 1; }; }
16520 if test "$with_krb5" = yes; then
16521 # Check for differences between MIT and Heimdal (KTH) releases
16522 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
16523 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
16524 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
16525 $as_echo_n "(cached) " >&6
16527 cat >conftest.
$ac_ext <<_ACEOF
16530 cat confdefs.h
>>conftest.
$ac_ext
16531 cat >>conftest.
$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16538 static krb5_ticket ac_aggr;
16539 if (ac_aggr.enc_part2)
16545 rm -f conftest.
$ac_objext
16546 if { (ac_try
="$ac_compile"
16547 case "(($ac_try" in
16548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16552 $as_echo "$ac_try_echo") >&5
16553 (eval "$ac_compile") 2>conftest.er1
16555 grep -v '^ *+' conftest.er1 >conftest.err
16557 cat conftest.err >&5
16558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } && {
16560 test -z "$ac_c_werror_flag" ||
16561 test ! -s conftest.err
16562 } && test -s conftest.$ac_objext; then
16563 ac_cv_member_krb5_ticket_enc_part2=yes
16565 $as_echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16579 static krb5_ticket ac_aggr;
16580 if (sizeof ac_aggr.enc_part2)
16586 rm -f conftest.$ac_objext
16587 if { (ac_try="$ac_compile"
16588 case "(($ac_try" in
16589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16590 *) ac_try_echo
=$ac_try;;
16592 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16593 $as_echo "$ac_try_echo") >&5
16594 (eval "$ac_compile") 2>conftest.er1
16596 grep -v '^ *+' conftest.er1
>conftest.err
16598 cat conftest.err
>&5
16599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } && {
16601 test -z "$ac_c_werror_flag" ||
16602 test ! -s conftest.err
16603 } && test -s conftest.
$ac_objext; then
16604 ac_cv_member_krb5_ticket_enc_part2
=yes
16606 $as_echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.
$ac_ext >&5
16609 ac_cv_member_krb5_ticket_enc_part2
=no
16612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16617 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16618 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16619 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x
""yes; then
16621 cat >>confdefs.h
<<_ACEOF
16622 #define HAVE_KRB5_TICKET_ENC_PART2 1
16627 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
16628 $as_echo_n "checking for krb5_ticket.client... " >&6; }
16629 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
16630 $as_echo_n "(cached) " >&6
16632 cat >conftest.
$ac_ext <<_ACEOF
16635 cat confdefs.h
>>conftest.
$ac_ext
16636 cat >>conftest.
$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16643 static krb5_ticket ac_aggr;
16644 if (ac_aggr.client)
16650 rm -f conftest.
$ac_objext
16651 if { (ac_try
="$ac_compile"
16652 case "(($ac_try" in
16653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16657 $as_echo "$ac_try_echo") >&5
16658 (eval "$ac_compile") 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } && {
16665 test -z "$ac_c_werror_flag" ||
16666 test ! -s conftest.err
16667 } && test -s conftest.$ac_objext; then
16668 ac_cv_member_krb5_ticket_client=yes
16670 $as_echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16684 static krb5_ticket ac_aggr;
16685 if (sizeof ac_aggr.client)
16691 rm -f conftest.$ac_objext
16692 if { (ac_try="$ac_compile"
16693 case "(($ac_try" in
16694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16695 *) ac_try_echo
=$ac_try;;
16697 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16698 $as_echo "$ac_try_echo") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1
>conftest.err
16703 cat conftest.err
>&5
16704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest.
$ac_objext; then
16709 ac_cv_member_krb5_ticket_client
=yes
16711 $as_echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.
$ac_ext >&5
16714 ac_cv_member_krb5_ticket_client
=no
16717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16722 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
16723 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
16724 if test "x$ac_cv_member_krb5_ticket_client" = x
""yes; then
16726 cat >>confdefs.h
<<_ACEOF
16727 #define HAVE_KRB5_TICKET_CLIENT 1
16732 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
16733 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
16734 { (exit 1); exit 1; }; }
16739 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
16740 $as_echo_n "checking for krb5_error.text.data... " >&6; }
16741 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
16742 $as_echo_n "(cached) " >&6
16744 cat >conftest.
$ac_ext <<_ACEOF
16747 cat confdefs.h
>>conftest.
$ac_ext
16748 cat >>conftest.
$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16755 static krb5_error ac_aggr;
16756 if (ac_aggr.text.data)
16762 rm -f conftest.
$ac_objext
16763 if { (ac_try
="$ac_compile"
16764 case "(($ac_try" in
16765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16769 $as_echo "$ac_try_echo") >&5
16770 (eval "$ac_compile") 2>conftest.er1
16772 grep -v '^ *+' conftest.er1 >conftest.err
16774 cat conftest.err >&5
16775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } && {
16777 test -z "$ac_c_werror_flag" ||
16778 test ! -s conftest.err
16779 } && test -s conftest.$ac_objext; then
16780 ac_cv_member_krb5_error_text_data=yes
16782 $as_echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 cat >conftest.$ac_ext <<_ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16796 static krb5_error ac_aggr;
16797 if (sizeof ac_aggr.text.data)
16803 rm -f conftest.$ac_objext
16804 if { (ac_try="$ac_compile"
16805 case "(($ac_try" in
16806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16807 *) ac_try_echo
=$ac_try;;
16809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16810 $as_echo "$ac_try_echo") >&5
16811 (eval "$ac_compile") 2>conftest.er1
16813 grep -v '^ *+' conftest.er1
>conftest.err
16815 cat conftest.err
>&5
16816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } && {
16818 test -z "$ac_c_werror_flag" ||
16819 test ! -s conftest.err
16820 } && test -s conftest.
$ac_objext; then
16821 ac_cv_member_krb5_error_text_data
=yes
16823 $as_echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.
$ac_ext >&5
16826 ac_cv_member_krb5_error_text_data
=no
16829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16834 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
16835 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
16836 if test "x$ac_cv_member_krb5_error_text_data" = x
""yes; then
16838 cat >>confdefs.h
<<_ACEOF
16839 #define HAVE_KRB5_ERROR_TEXT_DATA 1
16844 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
16845 $as_echo_n "checking for krb5_error.e_data... " >&6; }
16846 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
16847 $as_echo_n "(cached) " >&6
16849 cat >conftest.
$ac_ext <<_ACEOF
16852 cat confdefs.h
>>conftest.
$ac_ext
16853 cat >>conftest.
$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16860 static krb5_error ac_aggr;
16861 if (ac_aggr.e_data)
16867 rm -f conftest.
$ac_objext
16868 if { (ac_try
="$ac_compile"
16869 case "(($ac_try" in
16870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16874 $as_echo "$ac_try_echo") >&5
16875 (eval "$ac_compile") 2>conftest.er1
16877 grep -v '^ *+' conftest.er1 >conftest.err
16879 cat conftest.err >&5
16880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } && {
16882 test -z "$ac_c_werror_flag" ||
16883 test ! -s conftest.err
16884 } && test -s conftest.$ac_objext; then
16885 ac_cv_member_krb5_error_e_data=yes
16887 $as_echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 cat >conftest.$ac_ext <<_ACEOF
16893 cat confdefs.h >>conftest.$ac_ext
16894 cat >>conftest.$ac_ext <<_ACEOF
16895 /* end confdefs.h. */
16901 static krb5_error ac_aggr;
16902 if (sizeof ac_aggr.e_data)
16908 rm -f conftest.$ac_objext
16909 if { (ac_try="$ac_compile"
16910 case "(($ac_try" in
16911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16912 *) ac_try_echo
=$ac_try;;
16914 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16915 $as_echo "$ac_try_echo") >&5
16916 (eval "$ac_compile") 2>conftest.er1
16918 grep -v '^ *+' conftest.er1
>conftest.err
16920 cat conftest.err
>&5
16921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } && {
16923 test -z "$ac_c_werror_flag" ||
16924 test ! -s conftest.err
16925 } && test -s conftest.
$ac_objext; then
16926 ac_cv_member_krb5_error_e_data
=yes
16928 $as_echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.
$ac_ext >&5
16931 ac_cv_member_krb5_error_e_data
=no
16934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16939 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
16940 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
16941 if test "x$ac_cv_member_krb5_error_e_data" = x
""yes; then
16943 cat >>confdefs.h
<<_ACEOF
16944 #define HAVE_KRB5_ERROR_E_DATA 1
16949 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16950 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16951 { (exit 1); exit 1; }; }
16957 # Win32 requires headers to be loaded for __stdcall, so can't use
16958 # AC_CHECK_FUNCS here.
16959 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16960 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
16961 cat >conftest.
$ac_ext <<_ACEOF
16964 cat confdefs.h
>>conftest.
$ac_ext
16965 cat >>conftest.
$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16971 krb5_free_unparsed_name(NULL,NULL);
16976 rm -f conftest.
$ac_objext conftest
$ac_exeext
16977 if { (ac_try
="$ac_link"
16978 case "(($ac_try" in
16979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16983 $as_echo "$ac_try_echo") >&5
16984 (eval "$ac_link") 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } && {
16991 test -z "$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 } && test -s conftest$ac_exeext && {
16994 test "$cross_compiling" = yes ||
16995 $as_test_x conftest$ac_exeext
16998 cat >>confdefs.h <<\_ACEOF
16999 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17002 { $as_echo "$as_me:$LINENO: result: yes" >&5
17003 $as_echo "yes" >&6; }
17005 $as_echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 { $as_echo "$as_me:$LINENO: result: no" >&5
17009 $as_echo "no" >&6; }
17012 rm -rf conftest.dSYM
17013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17014 conftest$ac_exeext conftest.$ac_ext
17019 ## Functions, global variables
17022 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
17023 $as_echo_n "checking for int timezone... " >&6; }
17024 if test "${pgac_cv_var_int_timezone+set}" = set; then
17025 $as_echo_n "(cached) " >&6
17027 cat >conftest.$ac_ext <<_ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17039 res = timezone / 60;
17041 res = _timezone / 60;
17047 rm -f conftest.$ac_objext conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17051 *) ac_try_echo
=$ac_try;;
17053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17054 $as_echo "$ac_try_echo") >&5
17055 (eval "$ac_link") 2>conftest.er1
17057 grep -v '^ *+' conftest.er1
>conftest.err
17059 cat conftest.err
>&5
17060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && {
17062 test -z "$ac_c_werror_flag" ||
17063 test ! -s conftest.err
17064 } && test -s conftest
$ac_exeext && {
17065 test "$cross_compiling" = yes ||
17066 $as_test_x conftest
$ac_exeext
17068 pgac_cv_var_int_timezone
=yes
17070 $as_echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.
$ac_ext >&5
17073 pgac_cv_var_int_timezone
=no
17076 rm -rf conftest.dSYM
17077 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17078 conftest
$ac_exeext conftest.
$ac_ext
17080 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
17081 $as_echo "$pgac_cv_var_int_timezone" >&6; }
17082 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
17084 cat >>confdefs.h
<<\_ACEOF
17085 #define HAVE_INT_TIMEZONE /**/
17089 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
17090 $as_echo_n "checking types of arguments for accept()... " >&6; }
17091 if test "${ac_cv_func_accept_return+set}" = set; then
17092 $as_echo_n "(cached) " >&6
17094 if test "${ac_cv_func_accept_arg1+set}" = set; then
17095 $as_echo_n "(cached) " >&6
17097 if test "${ac_cv_func_accept_arg2+set}" = set; then
17098 $as_echo_n "(cached) " >&6
17100 if test "${ac_cv_func_accept_arg3+set}" = set; then
17101 $as_echo_n "(cached) " >&6
17103 for ac_cv_func_accept_return
in 'int' 'unsigned int PASCAL'; do
17104 for ac_cv_func_accept_arg1
in 'int' 'unsigned int'; do
17105 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
17106 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
17107 cat >conftest.
$ac_ext <<_ACEOF
17110 cat confdefs.h
>>conftest.
$ac_ext
17111 cat >>conftest.
$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 #ifdef HAVE_SYS_TYPES_H
17114 #include <sys/types.h>
17116 #ifdef HAVE_SYS_SOCKET_H
17117 #include <sys/socket.h>
17119 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
17128 rm -f conftest.
$ac_objext
17129 if { (ac_try
="$ac_compile"
17130 case "(($ac_try" in
17131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17135 $as_echo "$ac_try_echo") >&5
17136 (eval "$ac_compile") 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } && {
17143 test -z "$ac_c_werror_flag" ||
17144 test ! -s conftest.err
17145 } && test -s conftest.$ac_objext; then
17146 ac_not_found=no; break 4
17148 $as_echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159 if test "$ac_not_found" = yes; then
17160 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
17161 $as_echo "$as_me: error: could not determine argument types" >&2;}
17162 { (exit 1); exit 1; }; }
17164 if test "$ac_cv_func_accept_arg3" = "void"; then
17165 ac_cv_func_accept_arg3=int
17175 { $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
17176 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
17178 cat >>confdefs.h <<_ACEOF
17179 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
17183 cat >>confdefs.h <<_ACEOF
17184 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
17188 cat >>confdefs.h <<_ACEOF
17189 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
17193 cat >>confdefs.h <<_ACEOF
17194 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
17198 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
17199 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
17200 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
17201 $as_echo_n "(cached) " >&6
17203 cat >conftest.$ac_ext <<_ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 #include <sys/time.h>
17213 struct timeval *tp;
17214 struct timezone *tzp;
17215 gettimeofday(tp,tzp);
17220 rm -f conftest.$ac_objext
17221 if { (ac_try="$ac_compile"
17222 case "(($ac_try" in
17223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17224 *) ac_try_echo
=$ac_try;;
17226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17227 $as_echo "$ac_try_echo") >&5
17228 (eval "$ac_compile") 2>conftest.er1
17230 grep -v '^ *+' conftest.er1
>conftest.err
17232 cat conftest.err
>&5
17233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && {
17235 test -z "$ac_c_werror_flag" ||
17236 test ! -s conftest.err
17237 } && test -s conftest.
$ac_objext; then
17238 pgac_cv_func_gettimeofday_1arg
=no
17240 $as_echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.
$ac_ext >&5
17243 pgac_cv_func_gettimeofday_1arg
=yes
17246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17248 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
17249 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
17250 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
17252 cat >>confdefs.h
<<\_ACEOF
17253 #define GETTIMEOFDAY_1ARG /**/
17281 for ac_func
in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
17283 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17285 $as_echo_n "checking for $ac_func... " >&6; }
17286 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17287 $as_echo_n "(cached) " >&6
17289 cat >conftest.
$ac_ext <<_ACEOF
17292 cat confdefs.h
>>conftest.
$ac_ext
17293 cat >>conftest.
$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17297 #define $ac_func innocuous_$ac_func
17299 /* System header to define __stub macros and hopefully few prototypes,
17300 which can conflict with char $ac_func (); below.
17301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302 <limits.h> exists even on freestanding compilers. */
17305 # include <limits.h>
17307 # include <assert.h>
17312 /* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17319 /* The GNU C library defines this for functions which it implements
17320 to always fail with ENOSYS. Some functions are actually named
17321 something starting with __ and the normal name is an alias. */
17322 #if defined __stub_$ac_func || defined __stub___$ac_func
17329 return $ac_func ();
17334 rm -f conftest.
$ac_objext conftest
$ac_exeext
17335 if { (ac_try
="$ac_link"
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_link") 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_exeext && {
17352 test "$cross_compiling" = yes ||
17353 $as_test_x conftest$ac_exeext
17355 eval "$as_ac_var=yes"
17357 $as_echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 eval "$as_ac_var=no"
17363 rm -rf conftest.dSYM
17364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17365 conftest$ac_exeext conftest.$ac_ext
17367 ac_res=`eval 'as_val=${'$as_ac_var'}
17368 $as_echo "$as_val"'`
17369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17370 $as_echo "$ac_res" >&6; }
17371 as_val=`eval 'as_val=${'$as_ac_var'}
17372 $as_echo "$as_val"'`
17373 if test "x$as_val" = x""yes; then
17374 cat >>confdefs.h <<_ACEOF
17375 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17382 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
17383 # by calling it, 2009-04-02
17384 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
17385 if test "$PORTNAME" != "solaris"; then
17387 for ac_func in posix_fadvise
17389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17390 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17391 $as_echo_n "checking for $ac_func... " >&6; }
17392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17393 $as_echo_n "(cached) " >&6
17395 cat >conftest.$ac_ext <<_ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17403 #define $ac_func innocuous_$ac_func
17405 /* System header to define __stub macros and hopefully few prototypes,
17406 which can conflict with char $ac_func (); below.
17407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17408 <limits.h> exists even on freestanding compilers. */
17411 # include <limits.h>
17413 # include <assert.h>
17418 /* Override any GCC internal prototype to avoid an error.
17419 Use char because int might match the return type of a GCC
17420 builtin and then its argument prototype would still apply. */
17425 /* The GNU C library defines this for functions which it implements
17426 to always fail with ENOSYS. Some functions are actually named
17427 something starting with __ and the normal name is an alias. */
17428 #if defined __stub_$ac_func || defined __stub___$ac_func
17435 return $ac_func ();
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (ac_try="$ac_link"
17442 case "(($ac_try" in
17443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17444 *) ac_try_echo
=$ac_try;;
17446 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17447 $as_echo "$ac_try_echo") >&5
17448 (eval "$ac_link") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1
>conftest.err
17452 cat conftest.err
>&5
17453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest
$ac_exeext && {
17458 test "$cross_compiling" = yes ||
17459 $as_test_x conftest
$ac_exeext
17461 eval "$as_ac_var=yes"
17463 $as_echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.
$ac_ext >&5
17466 eval "$as_ac_var=no"
17469 rm -rf conftest.dSYM
17470 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17471 conftest
$ac_exeext conftest.
$ac_ext
17473 ac_res
=`eval 'as_val=${'$as_ac_var'}
17474 $as_echo "$as_val"'`
17475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17476 $as_echo "$ac_res" >&6; }
17477 as_val
=`eval 'as_val=${'$as_ac_var'}
17478 $as_echo "$as_val"'`
17479 if test "x$as_val" = x
""yes; then
17480 cat >>confdefs.h
<<_ACEOF
17481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17487 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
17488 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
17489 if test "${ac_cv_have_decl_posix_fadvise+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 #ifndef posix_fadvise
17504 (void) posix_fadvise;
17511 rm -f conftest.
$ac_objext
17512 if { (ac_try
="$ac_compile"
17513 case "(($ac_try" in
17514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17518 $as_echo "$ac_try_echo") >&5
17519 (eval "$ac_compile") 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } && {
17526 test -z "$ac_c_werror_flag" ||
17527 test ! -s conftest.err
17528 } && test -s conftest.$ac_objext; then
17529 ac_cv_have_decl_posix_fadvise=yes
17531 $as_echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17534 ac_cv_have_decl_posix_fadvise=no
17537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17539 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
17540 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
17541 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
17543 cat >>confdefs.h <<_ACEOF
17544 #define HAVE_DECL_POSIX_FADVISE 1
17549 cat >>confdefs.h <<_ACEOF
17550 #define HAVE_DECL_POSIX_FADVISE 0
17559 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
17560 $as_echo_n "checking whether fdatasync is declared... " >&6; }
17561 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
17562 $as_echo_n "(cached) " >&6
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <unistd.h>
17583 rm -f conftest.$ac_objext
17584 if { (ac_try="$ac_compile"
17585 case "(($ac_try" in
17586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17587 *) ac_try_echo
=$ac_try;;
17589 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17590 $as_echo "$ac_try_echo") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17593 grep -v '^ *+' conftest.er1
>conftest.err
17595 cat conftest.err
>&5
17596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.
$ac_objext; then
17601 ac_cv_have_decl_fdatasync
=yes
17603 $as_echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.
$ac_ext >&5
17606 ac_cv_have_decl_fdatasync
=no
17609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17611 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
17612 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
17613 if test "x$ac_cv_have_decl_fdatasync" = x
""yes; then
17615 cat >>confdefs.h
<<_ACEOF
17616 #define HAVE_DECL_FDATASYNC 1
17621 cat >>confdefs.h
<<_ACEOF
17622 #define HAVE_DECL_FDATASYNC 0
17629 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
17630 $as_echo_n "checking whether strlcat is declared... " >&6; }
17631 if test "${ac_cv_have_decl_strlcat+set}" = set; then
17632 $as_echo_n "(cached) " >&6
17634 cat >conftest.
$ac_ext <<_ACEOF
17637 cat confdefs.h
>>conftest.
$ac_ext
17638 cat >>conftest.
$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 $ac_includes_default
17652 rm -f conftest.
$ac_objext
17653 if { (ac_try
="$ac_compile"
17654 case "(($ac_try" in
17655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17659 $as_echo "$ac_try_echo") >&5
17660 (eval "$ac_compile") 2>conftest.er1
17662 grep -v '^ *+' conftest.er1 >conftest.err
17664 cat conftest.err >&5
17665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } && {
17667 test -z "$ac_c_werror_flag" ||
17668 test ! -s conftest.err
17669 } && test -s conftest.$ac_objext; then
17670 ac_cv_have_decl_strlcat=yes
17672 $as_echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17675 ac_cv_have_decl_strlcat=no
17678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
17681 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
17682 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
17684 cat >>confdefs.h <<_ACEOF
17685 #define HAVE_DECL_STRLCAT 1
17690 cat >>confdefs.h <<_ACEOF
17691 #define HAVE_DECL_STRLCAT 0
17696 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
17697 $as_echo_n "checking whether strlcpy is declared... " >&6; }
17698 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
17699 $as_echo_n "(cached) " >&6
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 $ac_includes_default
17719 rm -f conftest.$ac_objext
17720 if { (ac_try="$ac_compile"
17721 case "(($ac_try" in
17722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17723 *) ac_try_echo
=$ac_try;;
17725 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17726 $as_echo "$ac_try_echo") >&5
17727 (eval "$ac_compile") 2>conftest.er1
17729 grep -v '^ *+' conftest.er1
>conftest.err
17731 cat conftest.err
>&5
17732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } && {
17734 test -z "$ac_c_werror_flag" ||
17735 test ! -s conftest.err
17736 } && test -s conftest.
$ac_objext; then
17737 ac_cv_have_decl_strlcpy
=yes
17739 $as_echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.
$ac_ext >&5
17742 ac_cv_have_decl_strlcpy
=no
17745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17747 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
17748 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
17749 if test "x$ac_cv_have_decl_strlcpy" = x
""yes; then
17751 cat >>confdefs.h
<<_ACEOF
17752 #define HAVE_DECL_STRLCPY 1
17757 cat >>confdefs.h
<<_ACEOF
17758 #define HAVE_DECL_STRLCPY 0
17765 # This is probably only present on Darwin, but may as well check always
17766 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
17767 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
17768 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
17769 $as_echo_n "(cached) " >&6
17771 cat >conftest.
$ac_ext <<_ACEOF
17774 cat confdefs.h
>>conftest.
$ac_ext
17775 cat >>conftest.
$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17782 #ifndef F_FULLFSYNC
17783 (void) F_FULLFSYNC;
17790 rm -f conftest.
$ac_objext
17791 if { (ac_try
="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17797 $as_echo "$ac_try_echo") >&5
17798 (eval "$ac_compile") 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && {
17805 test -z "$ac_c_werror_flag" ||
17806 test ! -s conftest.err
17807 } && test -s conftest.$ac_objext; then
17808 ac_cv_have_decl_F_FULLFSYNC=yes
17810 $as_echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 ac_cv_have_decl_F_FULLFSYNC=no
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
17819 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
17820 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
17822 cat >>confdefs.h <<_ACEOF
17823 #define HAVE_DECL_F_FULLFSYNC 1
17828 cat >>confdefs.h <<_ACEOF
17829 #define HAVE_DECL_F_FULLFSYNC 0
17838 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17839 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
17840 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
17841 $as_echo_n "(cached) " >&6
17843 ac_cv_type_struct_sockaddr_in6=no
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850 $ac_includes_default
17851 #include <netinet/in.h>
17856 if (sizeof (struct sockaddr_in6))
17862 rm -f conftest.$ac_objext
17863 if { (ac_try="$ac_compile"
17864 case "(($ac_try" in
17865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17866 *) ac_try_echo
=$ac_try;;
17868 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17869 $as_echo "$ac_try_echo") >&5
17870 (eval "$ac_compile") 2>conftest.er1
17872 grep -v '^ *+' conftest.er1
>conftest.err
17874 cat conftest.err
>&5
17875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && {
17877 test -z "$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17879 } && test -s conftest.
$ac_objext; then
17880 cat >conftest.
$ac_ext <<_ACEOF
17883 cat confdefs.h
>>conftest.
$ac_ext
17884 cat >>conftest.
$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 $ac_includes_default
17887 #include <netinet/in.h>
17892 if (sizeof ((struct sockaddr_in6)))
17898 rm -f conftest.
$ac_objext
17899 if { (ac_try
="$ac_compile"
17900 case "(($ac_try" in
17901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905 $as_echo "$ac_try_echo") >&5
17906 (eval "$ac_compile") 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && {
17913 test -z "$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 } && test -s conftest.$ac_objext; then
17918 $as_echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 ac_cv_type_struct_sockaddr_in6=yes
17924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926 $as_echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
17935 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
17936 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
17938 cat >>confdefs.h <<\_ACEOF
17939 #define HAVE_IPV6 1
17947 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
17948 $as_echo_n "checking for PS_STRINGS... " >&6; }
17949 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
17950 $as_echo_n "(cached) " >&6
17952 cat >conftest.$ac_ext <<_ACEOF
17955 cat confdefs.h >>conftest.$ac_ext
17956 cat >>conftest.$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17958 #include <machine/vmparam.h>
17959 #include <sys/exec.h>
17964 PS_STRINGS->ps_nargvstr = 1;
17965 PS_STRINGS->ps_argvstr = "foo";
17970 rm -f conftest.$ac_objext conftest$ac_exeext
17971 if { (ac_try="$ac_link"
17972 case "(($ac_try" in
17973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17974 *) ac_try_echo
=$ac_try;;
17976 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17977 $as_echo "$ac_try_echo") >&5
17978 (eval "$ac_link") 2>conftest.er1
17980 grep -v '^ *+' conftest.er1
>conftest.err
17982 cat conftest.err
>&5
17983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } && {
17985 test -z "$ac_c_werror_flag" ||
17986 test ! -s conftest.err
17987 } && test -s conftest
$ac_exeext && {
17988 test "$cross_compiling" = yes ||
17989 $as_test_x conftest
$ac_exeext
17991 pgac_cv_var_PS_STRINGS
=yes
17993 $as_echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.
$ac_ext >&5
17996 pgac_cv_var_PS_STRINGS
=no
17999 rm -rf conftest.dSYM
18000 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18001 conftest
$ac_exeext conftest.
$ac_ext
18003 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
18004 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
18005 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
18007 cat >>confdefs.h
<<\_ACEOF
18008 #define HAVE_PS_STRINGS /**/
18014 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
18015 # is missing. Yes, there are machines that have only one. We may
18016 # also decide to use snprintf.c if snprintf() is present but does not
18017 # have all the features we need --- see below.
18019 if test "$PORTNAME" = "win32"; then
18020 # Win32 gets snprintf.c built unconditionally.
18022 # To properly translate all NLS languages strings, we must support the
18023 # *printf() %$ format, which allows *printf() arguments to be selected
18024 # by position in the translated string.
18026 # libintl versions < 0.13 use the native *printf() functions, and Win32
18027 # *printf() doesn't understand %$, so we must use our /port versions,
18028 # which do understand %$. libintl versions >= 0.13 include their own
18029 # *printf versions on Win32. The libintl 0.13 release note text is:
18031 # C format strings with positions, as they arise when a translator
18032 # needs to reorder a sentence, are now supported on all platforms.
18033 # On those few platforms (NetBSD and Woe32) for which the native
18034 # printf()/fprintf()/... functions don't support such format
18035 # strings, replacements are provided through <libintl.h>.
18037 # We could use libintl >= 0.13's *printf() if we were sure that we had
18038 # a litint >= 0.13 at runtime, but seeing that there is no clean way
18039 # to guarantee that, it is best to just use our own, so we are sure to
18040 # get %$ support. In include/port.h we disable the *printf() macros
18041 # that might have been defined by libintl.
18043 # We do this unconditionally whether NLS is used or not so we are sure
18044 # that all Win32 libraries and binaries behave the same.
18045 pgac_need_repl_snprintf
=yes
18047 pgac_need_repl_snprintf
=no
18049 for ac_func
in snprintf
18051 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18052 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18053 $as_echo_n "checking for $ac_func... " >&6; }
18054 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18055 $as_echo_n "(cached) " >&6
18057 cat >conftest.
$ac_ext <<_ACEOF
18060 cat confdefs.h
>>conftest.
$ac_ext
18061 cat >>conftest.
$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18065 #define $ac_func innocuous_$ac_func
18067 /* System header to define __stub macros and hopefully few prototypes,
18068 which can conflict with char $ac_func (); below.
18069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18070 <limits.h> exists even on freestanding compilers. */
18073 # include <limits.h>
18075 # include <assert.h>
18080 /* Override any GCC internal prototype to avoid an error.
18081 Use char because int might match the return type of a GCC
18082 builtin and then its argument prototype would still apply. */
18087 /* The GNU C library defines this for functions which it implements
18088 to always fail with ENOSYS. Some functions are actually named
18089 something starting with __ and the normal name is an alias. */
18090 #if defined __stub_$ac_func || defined __stub___$ac_func
18097 return $ac_func ();
18102 rm -f conftest.
$ac_objext conftest
$ac_exeext
18103 if { (ac_try
="$ac_link"
18104 case "(($ac_try" in
18105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18109 $as_echo "$ac_try_echo") >&5
18110 (eval "$ac_link") 2>conftest.er1
18112 grep -v '^ *+' conftest.er1 >conftest.err
18114 cat conftest.err >&5
18115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } && {
18117 test -z "$ac_c_werror_flag" ||
18118 test ! -s conftest.err
18119 } && test -s conftest$ac_exeext && {
18120 test "$cross_compiling" = yes ||
18121 $as_test_x conftest$ac_exeext
18123 eval "$as_ac_var=yes"
18125 $as_echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18128 eval "$as_ac_var=no"
18131 rm -rf conftest.dSYM
18132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18133 conftest$ac_exeext conftest.$ac_ext
18135 ac_res=`eval 'as_val=${'$as_ac_var'}
18136 $as_echo "$as_val"'`
18137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18138 $as_echo "$ac_res" >&6; }
18139 as_val=`eval 'as_val=${'$as_ac_var'}
18140 $as_echo "$as_val"'`
18141 if test "x$as_val" = x""yes; then
18142 cat >>confdefs.h <<_ACEOF
18143 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18147 pgac_need_repl_snprintf=yes
18152 for ac_func in vsnprintf
18154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18155 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18156 $as_echo_n "checking for $ac_func... " >&6; }
18157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18158 $as_echo_n "(cached) " >&6
18160 cat >conftest.$ac_ext <<_ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h. */
18166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18168 #define $ac_func innocuous_$ac_func
18170 /* System header to define __stub macros and hopefully few prototypes,
18171 which can conflict with char $ac_func (); below.
18172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18173 <limits.h> exists even on freestanding compilers. */
18176 # include <limits.h>
18178 # include <assert.h>
18183 /* Override any GCC internal prototype to avoid an error.
18184 Use char because int might match the return type of a GCC
18185 builtin and then its argument prototype would still apply. */
18190 /* The GNU C library defines this for functions which it implements
18191 to always fail with ENOSYS. Some functions are actually named
18192 something starting with __ and the normal name is an alias. */
18193 #if defined __stub_$ac_func || defined __stub___$ac_func
18200 return $ac_func ();
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18209 *) ac_try_echo
=$ac_try;;
18211 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213 (eval "$ac_link") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1
>conftest.err
18217 cat conftest.err
>&5
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest
$ac_exeext && {
18223 test "$cross_compiling" = yes ||
18224 $as_test_x conftest
$ac_exeext
18226 eval "$as_ac_var=yes"
18228 $as_echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.
$ac_ext >&5
18231 eval "$as_ac_var=no"
18234 rm -rf conftest.dSYM
18235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18236 conftest
$ac_exeext conftest.
$ac_ext
18238 ac_res
=`eval 'as_val=${'$as_ac_var'}
18239 $as_echo "$as_val"'`
18240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18241 $as_echo "$ac_res" >&6; }
18242 as_val
=`eval 'as_val=${'$as_ac_var'}
18243 $as_echo "$as_val"'`
18244 if test "x$as_val" = x
""yes; then
18245 cat >>confdefs.h
<<_ACEOF
18246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18250 pgac_need_repl_snprintf
=yes
18257 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
18258 # include/c.h will provide declarations. Note this is a separate test
18259 # from whether the functions exist in the C library --- there are
18260 # systems that have the functions but don't bother to declare them :-(
18262 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18263 $as_echo_n "checking whether snprintf is declared... " >&6; }
18264 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18265 $as_echo_n "(cached) " >&6
18267 cat >conftest.
$ac_ext <<_ACEOF
18270 cat confdefs.h
>>conftest.
$ac_ext
18271 cat >>conftest.
$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18273 $ac_includes_default
18285 rm -f conftest.
$ac_objext
18286 if { (ac_try
="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18292 $as_echo "$ac_try_echo") >&5
18293 (eval "$ac_compile") 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } && {
18300 test -z "$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 } && test -s conftest.$ac_objext; then
18303 ac_cv_have_decl_snprintf=yes
18305 $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ac_cv_have_decl_snprintf=no
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18313 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18314 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
18315 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
18317 cat >>confdefs.h <<_ACEOF
18318 #define HAVE_DECL_SNPRINTF 1
18323 cat >>confdefs.h <<_ACEOF
18324 #define HAVE_DECL_SNPRINTF 0
18329 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18330 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
18331 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18332 $as_echo_n "(cached) " >&6
18334 cat >conftest.$ac_ext <<_ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 $ac_includes_default
18352 rm -f conftest.$ac_objext
18353 if { (ac_try="$ac_compile"
18354 case "(($ac_try" in
18355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18356 *) ac_try_echo
=$ac_try;;
18358 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18359 $as_echo "$ac_try_echo") >&5
18360 (eval "$ac_compile") 2>conftest.er1
18362 grep -v '^ *+' conftest.er1
>conftest.err
18364 cat conftest.err
>&5
18365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } && {
18367 test -z "$ac_c_werror_flag" ||
18368 test ! -s conftest.err
18369 } && test -s conftest.
$ac_objext; then
18370 ac_cv_have_decl_vsnprintf
=yes
18372 $as_echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.
$ac_ext >&5
18375 ac_cv_have_decl_vsnprintf
=no
18378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18380 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18381 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18382 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then
18384 cat >>confdefs.h
<<_ACEOF
18385 #define HAVE_DECL_VSNPRINTF 1
18390 cat >>confdefs.h
<<_ACEOF
18391 #define HAVE_DECL_VSNPRINTF 0
18400 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
18401 $as_echo_n "checking for isinf... " >&6; }
18402 if test "${ac_cv_func_isinf+set}" = set; then
18403 $as_echo_n "(cached) " >&6
18405 cat >conftest.
$ac_ext <<_ACEOF
18408 cat confdefs.h
>>conftest.
$ac_ext
18409 cat >>conftest.
$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18413 double glob_double;
18418 return isinf(glob_double) ? 0 : 1;
18423 rm -f conftest.
$ac_objext conftest
$ac_exeext
18424 if { (ac_try
="$ac_link"
18425 case "(($ac_try" in
18426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18430 $as_echo "$ac_try_echo") >&5
18431 (eval "$ac_link") 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } && {
18438 test -z "$ac_c_werror_flag" ||
18439 test ! -s conftest.err
18440 } && test -s conftest$ac_exeext && {
18441 test "$cross_compiling" = yes ||
18442 $as_test_x conftest$ac_exeext
18444 ac_cv_func_isinf=yes
18446 $as_echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_cv_func_isinf=no
18452 rm -rf conftest.dSYM
18453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18454 conftest$ac_exeext conftest.$ac_ext
18456 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
18457 $as_echo "$ac_cv_func_isinf" >&6; }
18459 if test $ac_cv_func_isinf = yes ; then
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_ISINF 1
18466 case " $LIBOBJS " in
18467 *" isinf.$ac_objext "* ) ;;
18468 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
18472 # Look for a way to implement a substitute for isinf()
18477 for ac_func in fpclass fp_class fp_class_d class
18479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18480 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18481 $as_echo_n "checking for $ac_func... " >&6; }
18482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18483 $as_echo_n "(cached) " >&6
18485 cat >conftest.$ac_ext <<_ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18493 #define $ac_func innocuous_$ac_func
18495 /* System header to define __stub macros and hopefully few prototypes,
18496 which can conflict with char $ac_func (); below.
18497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18498 <limits.h> exists even on freestanding compilers. */
18501 # include <limits.h>
18503 # include <assert.h>
18508 /* Override any GCC internal prototype to avoid an error.
18509 Use char because int might match the return type of a GCC
18510 builtin and then its argument prototype would still apply. */
18515 /* The GNU C library defines this for functions which it implements
18516 to always fail with ENOSYS. Some functions are actually named
18517 something starting with __ and the normal name is an alias. */
18518 #if defined __stub_$ac_func || defined __stub___$ac_func
18525 return $ac_func ();
18530 rm -f conftest.$ac_objext conftest$ac_exeext
18531 if { (ac_try="$ac_link"
18532 case "(($ac_try" in
18533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18534 *) ac_try_echo
=$ac_try;;
18536 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18537 $as_echo "$ac_try_echo") >&5
18538 (eval "$ac_link") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1
>conftest.err
18542 cat conftest.err
>&5
18543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } && {
18545 test -z "$ac_c_werror_flag" ||
18546 test ! -s conftest.err
18547 } && test -s conftest
$ac_exeext && {
18548 test "$cross_compiling" = yes ||
18549 $as_test_x conftest
$ac_exeext
18551 eval "$as_ac_var=yes"
18553 $as_echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.
$ac_ext >&5
18556 eval "$as_ac_var=no"
18559 rm -rf conftest.dSYM
18560 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18561 conftest
$ac_exeext conftest.
$ac_ext
18563 ac_res
=`eval 'as_val=${'$as_ac_var'}
18564 $as_echo "$as_val"'`
18565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18566 $as_echo "$ac_res" >&6; }
18567 as_val
=`eval 'as_val=${'$as_ac_var'}
18568 $as_echo "$as_val"'`
18569 if test "x$as_val" = x
""yes; then
18570 cat >>confdefs.h
<<_ACEOF
18571 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18579 # Some versions of libedit contain strlcpy(); so disregard that library while
18580 # checking for these standard libc functions.
18581 pgac_save_LIBS
="$LIBS"
18582 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18597 for ac_func
in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
18599 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18600 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18601 $as_echo_n "checking for $ac_func... " >&6; }
18602 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18603 $as_echo_n "(cached) " >&6
18605 cat >conftest.
$ac_ext <<_ACEOF
18608 cat confdefs.h
>>conftest.
$ac_ext
18609 cat >>conftest.
$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18613 #define $ac_func innocuous_$ac_func
18615 /* System header to define __stub macros and hopefully few prototypes,
18616 which can conflict with char $ac_func (); below.
18617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18618 <limits.h> exists even on freestanding compilers. */
18621 # include <limits.h>
18623 # include <assert.h>
18628 /* Override any GCC internal prototype to avoid an error.
18629 Use char because int might match the return type of a GCC
18630 builtin and then its argument prototype would still apply. */
18635 /* The GNU C library defines this for functions which it implements
18636 to always fail with ENOSYS. Some functions are actually named
18637 something starting with __ and the normal name is an alias. */
18638 #if defined __stub_$ac_func || defined __stub___$ac_func
18645 return $ac_func ();
18650 rm -f conftest.
$ac_objext conftest
$ac_exeext
18651 if { (ac_try
="$ac_link"
18652 case "(($ac_try" in
18653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18657 $as_echo "$ac_try_echo") >&5
18658 (eval "$ac_link") 2>conftest.er1
18660 grep -v '^ *+' conftest.er1 >conftest.err
18662 cat conftest.err >&5
18663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } && {
18665 test -z "$ac_c_werror_flag" ||
18666 test ! -s conftest.err
18667 } && test -s conftest$ac_exeext && {
18668 test "$cross_compiling" = yes ||
18669 $as_test_x conftest$ac_exeext
18671 eval "$as_ac_var=yes"
18673 $as_echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18676 eval "$as_ac_var=no"
18679 rm -rf conftest.dSYM
18680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18681 conftest$ac_exeext conftest.$ac_ext
18683 ac_res=`eval 'as_val=${'$as_ac_var'}
18684 $as_echo "$as_val"'`
18685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18686 $as_echo "$ac_res" >&6; }
18687 as_val=`eval 'as_val=${'$as_ac_var'}
18688 $as_echo "$as_val"'`
18689 if test "x$as_val" = x""yes; then
18690 cat >>confdefs.h <<_ACEOF
18691 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18695 case " $LIBOBJS " in
18696 *" $ac_func.$ac_objext "* ) ;;
18697 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18708 # Windows uses a specialised env handler
18711 cat >>confdefs.h <<\_ACEOF
18712 #define HAVE_UNSETENV 1
18715 ac_cv_func_unsetenv=yes;;
18718 for ac_func in unsetenv
18720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18721 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 $as_echo_n "checking for $ac_func... " >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724 $as_echo_n "(cached) " >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18734 #define $ac_func innocuous_$ac_func
18736 /* System header to define __stub macros and hopefully few prototypes,
18737 which can conflict with char $ac_func (); below.
18738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 <limits.h> exists even on freestanding compilers. */
18742 # include <limits.h>
18744 # include <assert.h>
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18766 return $ac_func ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18775 *) ac_try_echo
=$ac_try;;
18777 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18778 $as_echo "$ac_try_echo") >&5
18779 (eval "$ac_link") 2>conftest.er1
18781 grep -v '^ *+' conftest.er1
>conftest.err
18783 cat conftest.err
>&5
18784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } && {
18786 test -z "$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18788 } && test -s conftest
$ac_exeext && {
18789 test "$cross_compiling" = yes ||
18790 $as_test_x conftest
$ac_exeext
18792 eval "$as_ac_var=yes"
18794 $as_echo "$as_me: failed program was:" >&5
18795 sed 's/^/| /' conftest.
$ac_ext >&5
18797 eval "$as_ac_var=no"
18800 rm -rf conftest.dSYM
18801 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18802 conftest
$ac_exeext conftest.
$ac_ext
18804 ac_res
=`eval 'as_val=${'$as_ac_var'}
18805 $as_echo "$as_val"'`
18806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18807 $as_echo "$ac_res" >&6; }
18808 as_val
=`eval 'as_val=${'$as_ac_var'}
18809 $as_echo "$as_val"'`
18810 if test "x$as_val" = x
""yes; then
18811 cat >>confdefs.h
<<_ACEOF
18812 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 case " $LIBOBJS " in
18817 *" $ac_func.$ac_objext "* ) ;;
18818 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18830 LIBS
="$pgac_save_LIBS"
18832 # System's version of getaddrinfo(), if any, may be used only if we found
18833 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
18834 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
18835 # versions of getaddrinfo don't follow normal C call protocol. This is OK
18836 # because we want to use our own getaddrinfo.c on Windows anyway.)
18837 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
18839 for ac_func
in getaddrinfo
18841 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18842 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18843 $as_echo_n "checking for $ac_func... " >&6; }
18844 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18845 $as_echo_n "(cached) " >&6
18847 cat >conftest.
$ac_ext <<_ACEOF
18850 cat confdefs.h
>>conftest.
$ac_ext
18851 cat >>conftest.
$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18855 #define $ac_func innocuous_$ac_func
18857 /* System header to define __stub macros and hopefully few prototypes,
18858 which can conflict with char $ac_func (); below.
18859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18860 <limits.h> exists even on freestanding compilers. */
18863 # include <limits.h>
18865 # include <assert.h>
18870 /* Override any GCC internal prototype to avoid an error.
18871 Use char because int might match the return type of a GCC
18872 builtin and then its argument prototype would still apply. */
18877 /* The GNU C library defines this for functions which it implements
18878 to always fail with ENOSYS. Some functions are actually named
18879 something starting with __ and the normal name is an alias. */
18880 #if defined __stub_$ac_func || defined __stub___$ac_func
18887 return $ac_func ();
18892 rm -f conftest.
$ac_objext conftest
$ac_exeext
18893 if { (ac_try
="$ac_link"
18894 case "(($ac_try" in
18895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18899 $as_echo "$ac_try_echo") >&5
18900 (eval "$ac_link") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext && {
18910 test "$cross_compiling" = yes ||
18911 $as_test_x conftest$ac_exeext
18913 eval "$as_ac_var=yes"
18915 $as_echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18918 eval "$as_ac_var=no"
18921 rm -rf conftest.dSYM
18922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18923 conftest$ac_exeext conftest.$ac_ext
18925 ac_res=`eval 'as_val=${'$as_ac_var'}
18926 $as_echo "$as_val"'`
18927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18928 $as_echo "$ac_res" >&6; }
18929 as_val=`eval 'as_val=${'$as_ac_var'}
18930 $as_echo "$as_val"'`
18931 if test "x$as_val" = x""yes; then
18932 cat >>confdefs.h <<_ACEOF
18933 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18937 case " $LIBOBJS " in
18938 *" $ac_func.$ac_objext "* ) ;;
18939 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18948 case " $LIBOBJS " in
18949 *" getaddrinfo.$ac_objext "* ) ;;
18950 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18956 # Similarly, use system's getopt_long() only if system provides struct option.
18957 if test x"$ac_cv_type_struct_option" = xyes ; then
18959 for ac_func in getopt_long
18961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18962 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18963 $as_echo_n "checking for $ac_func... " >&6; }
18964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18965 $as_echo_n "(cached) " >&6
18967 cat >conftest.$ac_ext <<_ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18975 #define $ac_func innocuous_$ac_func
18977 /* System header to define __stub macros and hopefully few prototypes,
18978 which can conflict with char $ac_func (); below.
18979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18980 <limits.h> exists even on freestanding compilers. */
18983 # include <limits.h>
18985 # include <assert.h>
18990 /* Override any GCC internal prototype to avoid an error.
18991 Use char because int might match the return type of a GCC
18992 builtin and then its argument prototype would still apply. */
18997 /* The GNU C library defines this for functions which it implements
18998 to always fail with ENOSYS. Some functions are actually named
18999 something starting with __ and the normal name is an alias. */
19000 #if defined __stub_$ac_func || defined __stub___$ac_func
19007 return $ac_func ();
19012 rm -f conftest.$ac_objext conftest$ac_exeext
19013 if { (ac_try="$ac_link"
19014 case "(($ac_try" in
19015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19016 *) ac_try_echo
=$ac_try;;
19018 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020 (eval "$ac_link") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1
>conftest.err
19024 cat conftest.err
>&5
19025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest
$ac_exeext && {
19030 test "$cross_compiling" = yes ||
19031 $as_test_x conftest
$ac_exeext
19033 eval "$as_ac_var=yes"
19035 $as_echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.
$ac_ext >&5
19038 eval "$as_ac_var=no"
19041 rm -rf conftest.dSYM
19042 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19043 conftest
$ac_exeext conftest.
$ac_ext
19045 ac_res
=`eval 'as_val=${'$as_ac_var'}
19046 $as_echo "$as_val"'`
19047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19048 $as_echo "$ac_res" >&6; }
19049 as_val
=`eval 'as_val=${'$as_ac_var'}
19050 $as_echo "$as_val"'`
19051 if test "x$as_val" = x
""yes; then
19052 cat >>confdefs.h
<<_ACEOF
19053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19057 case " $LIBOBJS " in
19058 *" $ac_func.$ac_objext "* ) ;;
19059 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19068 case " $LIBOBJS " in
19069 *" getopt_long.$ac_objext "* ) ;;
19070 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
19076 # Solaris' getopt() doesn't do what we want for long options, so always use
19077 # our version on that platform.
19078 if test "$PORTNAME" = "solaris"; then
19079 case " $LIBOBJS " in
19080 *" getopt.$ac_objext "* ) ;;
19081 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
19088 if test "$PORTNAME" = "win32"; then
19090 for ac_func
in gettimeofday
19092 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19093 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19094 $as_echo_n "checking for $ac_func... " >&6; }
19095 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19096 $as_echo_n "(cached) " >&6
19098 cat >conftest.
$ac_ext <<_ACEOF
19101 cat confdefs.h
>>conftest.
$ac_ext
19102 cat >>conftest.
$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19106 #define $ac_func innocuous_$ac_func
19108 /* System header to define __stub macros and hopefully few prototypes,
19109 which can conflict with char $ac_func (); below.
19110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19111 <limits.h> exists even on freestanding compilers. */
19114 # include <limits.h>
19116 # include <assert.h>
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19128 /* The GNU C library defines this for functions which it implements
19129 to always fail with ENOSYS. Some functions are actually named
19130 something starting with __ and the normal name is an alias. */
19131 #if defined __stub_$ac_func || defined __stub___$ac_func
19138 return $ac_func ();
19143 rm -f conftest.
$ac_objext conftest
$ac_exeext
19144 if { (ac_try
="$ac_link"
19145 case "(($ac_try" in
19146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19150 $as_echo "$ac_try_echo") >&5
19151 (eval "$ac_link") 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } && {
19158 test -z "$ac_c_werror_flag" ||
19159 test ! -s conftest.err
19160 } && test -s conftest$ac_exeext && {
19161 test "$cross_compiling" = yes ||
19162 $as_test_x conftest$ac_exeext
19164 eval "$as_ac_var=yes"
19166 $as_echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 eval "$as_ac_var=no"
19172 rm -rf conftest.dSYM
19173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19174 conftest$ac_exeext conftest.$ac_ext
19176 ac_res=`eval 'as_val=${'$as_ac_var'}
19177 $as_echo "$as_val"'`
19178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19179 $as_echo "$ac_res" >&6; }
19180 as_val=`eval 'as_val=${'$as_ac_var'}
19181 $as_echo "$as_val"'`
19182 if test "x$as_val" = x""yes; then
19183 cat >>confdefs.h <<_ACEOF
19184 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19188 case " $LIBOBJS " in
19189 *" $ac_func.$ac_objext "* ) ;;
19190 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19198 case " $LIBOBJS " in
19199 *" kill.$ac_objext "* ) ;;
19200 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
19204 case " $LIBOBJS " in
19205 *" open.$ac_objext "* ) ;;
19206 *) LIBOBJS="$LIBOBJS open.$ac_objext"
19210 case " $LIBOBJS " in
19211 *" rand.$ac_objext "* ) ;;
19212 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
19216 case " $LIBOBJS " in
19217 *" win32env.$ac_objext "* ) ;;
19218 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
19222 case " $LIBOBJS " in
19223 *" win32error.$ac_objext "* ) ;;
19224 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE_SYMLINK 1
19235 if test "$with_readline" = yes; then
19236 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19237 $as_echo_n "checking for rl_completion_append_character... " >&6; }
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19245 #ifdef HAVE_READLINE_READLINE_H
19246 # include <readline/readline.h>
19247 #elif defined(HAVE_READLINE_H)
19248 # include <readline.h>
19254 rl_completion_append_character = 'x';
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19263 *) ac_try_echo
=$ac_try;;
19265 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19266 $as_echo "$ac_try_echo") >&5
19267 (eval "$ac_link") 2>conftest.er1
19269 grep -v '^ *+' conftest.er1
>conftest.err
19271 cat conftest.err
>&5
19272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } && {
19274 test -z "$ac_c_werror_flag" ||
19275 test ! -s conftest.err
19276 } && test -s conftest
$ac_exeext && {
19277 test "$cross_compiling" = yes ||
19278 $as_test_x conftest
$ac_exeext
19280 { $as_echo "$as_me:$LINENO: result: yes" >&5
19281 $as_echo "yes" >&6; }
19283 cat >>confdefs.h
<<\_ACEOF
19284 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19288 $as_echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.
$ac_ext >&5
19291 { $as_echo "$as_me:$LINENO: result: no" >&5
19292 $as_echo "no" >&6; }
19295 rm -rf conftest.dSYM
19296 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19297 conftest
$ac_exeext conftest.
$ac_ext
19300 for ac_func
in rl_completion_matches rl_filename_completion_function
19302 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19304 $as_echo_n "checking for $ac_func... " >&6; }
19305 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19306 $as_echo_n "(cached) " >&6
19308 cat >conftest.
$ac_ext <<_ACEOF
19311 cat confdefs.h
>>conftest.
$ac_ext
19312 cat >>conftest.
$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19316 #define $ac_func innocuous_$ac_func
19318 /* System header to define __stub macros and hopefully few prototypes,
19319 which can conflict with char $ac_func (); below.
19320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19321 <limits.h> exists even on freestanding compilers. */
19324 # include <limits.h>
19326 # include <assert.h>
19331 /* Override any GCC internal prototype to avoid an error.
19332 Use char because int might match the return type of a GCC
19333 builtin and then its argument prototype would still apply. */
19338 /* The GNU C library defines this for functions which it implements
19339 to always fail with ENOSYS. Some functions are actually named
19340 something starting with __ and the normal name is an alias. */
19341 #if defined __stub_$ac_func || defined __stub___$ac_func
19348 return $ac_func ();
19353 rm -f conftest.
$ac_objext conftest
$ac_exeext
19354 if { (ac_try
="$ac_link"
19355 case "(($ac_try" in
19356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19360 $as_echo "$ac_try_echo") >&5
19361 (eval "$ac_link") 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } && {
19368 test -z "$ac_c_werror_flag" ||
19369 test ! -s conftest.err
19370 } && test -s conftest$ac_exeext && {
19371 test "$cross_compiling" = yes ||
19372 $as_test_x conftest$ac_exeext
19374 eval "$as_ac_var=yes"
19376 $as_echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 eval "$as_ac_var=no"
19382 rm -rf conftest.dSYM
19383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19384 conftest$ac_exeext conftest.$ac_ext
19386 ac_res=`eval 'as_val=${'$as_ac_var'}
19387 $as_echo "$as_val"'`
19388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19389 $as_echo "$ac_res" >&6; }
19390 as_val=`eval 'as_val=${'$as_ac_var'}
19391 $as_echo "$as_val"'`
19392 if test "x$as_val" = x""yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19401 for ac_func in replace_history_entry
19403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19404 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19405 $as_echo_n "checking for $ac_func... " >&6; }
19406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19407 $as_echo_n "(cached) " >&6
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19417 #define $ac_func innocuous_$ac_func
19419 /* System header to define __stub macros and hopefully few prototypes,
19420 which can conflict with char $ac_func (); below.
19421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422 <limits.h> exists even on freestanding compilers. */
19425 # include <limits.h>
19427 # include <assert.h>
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19439 /* The GNU C library defines this for functions which it implements
19440 to always fail with ENOSYS. Some functions are actually named
19441 something starting with __ and the normal name is an alias. */
19442 #if defined __stub_$ac_func || defined __stub___$ac_func
19449 return $ac_func ();
19454 rm -f conftest.$ac_objext conftest$ac_exeext
19455 if { (ac_try="$ac_link"
19456 case "(($ac_try" in
19457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19458 *) ac_try_echo
=$ac_try;;
19460 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19461 $as_echo "$ac_try_echo") >&5
19462 (eval "$ac_link") 2>conftest.er1
19464 grep -v '^ *+' conftest.er1
>conftest.err
19466 cat conftest.err
>&5
19467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } && {
19469 test -z "$ac_c_werror_flag" ||
19470 test ! -s conftest.err
19471 } && test -s conftest
$ac_exeext && {
19472 test "$cross_compiling" = yes ||
19473 $as_test_x conftest
$ac_exeext
19475 eval "$as_ac_var=yes"
19477 $as_echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.
$ac_ext >&5
19480 eval "$as_ac_var=no"
19483 rm -rf conftest.dSYM
19484 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19485 conftest
$ac_exeext conftest.
$ac_ext
19487 ac_res
=`eval 'as_val=${'$as_ac_var'}
19488 $as_echo "$as_val"'`
19489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19490 $as_echo "$ac_res" >&6; }
19491 as_val
=`eval 'as_val=${'$as_ac_var'}
19492 $as_echo "$as_val"'`
19493 if test "x$as_val" = x
""yes; then
19494 cat >>confdefs.h
<<_ACEOF
19495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19504 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19505 $as_echo_n "checking for sigsetjmp... " >&6; }
19506 cat >conftest.
$ac_ext <<_ACEOF
19509 cat confdefs.h
>>conftest.
$ac_ext
19510 cat >>conftest.
$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 #include <setjmp.h>
19516 sigjmp_buf x; sigsetjmp(x, 1);
19521 rm -f conftest.
$ac_objext conftest
$ac_exeext
19522 if { (ac_try
="$ac_link"
19523 case "(($ac_try" in
19524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19528 $as_echo "$ac_try_echo") >&5
19529 (eval "$ac_link") 2>conftest.er1
19531 grep -v '^ *+' conftest.er1 >conftest.err
19533 cat conftest.err >&5
19534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } && {
19536 test -z "$ac_c_werror_flag" ||
19537 test ! -s conftest.err
19538 } && test -s conftest$ac_exeext && {
19539 test "$cross_compiling" = yes ||
19540 $as_test_x conftest$ac_exeext
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE_SIGSETJMP 1
19547 { $as_echo "$as_me:$LINENO: result: yes" >&5
19548 $as_echo "yes" >&6; }
19550 $as_echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 { $as_echo "$as_me:$LINENO: result: no" >&5
19554 $as_echo "no" >&6; }
19557 rm -rf conftest.dSYM
19558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19559 conftest$ac_exeext conftest.$ac_ext
19561 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19562 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19563 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19564 $as_echo_n "(cached) " >&6
19566 cat >conftest.$ac_ext <<_ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19572 #include <signal.h>
19573 /* NetBSD declares sys_siglist in unistd.h. */
19574 #ifdef HAVE_UNISTD_H
19575 # include <unistd.h>
19582 #ifndef sys_siglist
19583 (void) sys_siglist;
19590 rm -f conftest.$ac_objext
19591 if { (ac_try="$ac_compile"
19592 case "(($ac_try" in
19593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19594 *) ac_try_echo
=$ac_try;;
19596 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19597 $as_echo "$ac_try_echo") >&5
19598 (eval "$ac_compile") 2>conftest.er1
19600 grep -v '^ *+' conftest.er1
>conftest.err
19602 cat conftest.err
>&5
19603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } && {
19605 test -z "$ac_c_werror_flag" ||
19606 test ! -s conftest.err
19607 } && test -s conftest.
$ac_objext; then
19608 ac_cv_have_decl_sys_siglist
=yes
19610 $as_echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.
$ac_ext >&5
19613 ac_cv_have_decl_sys_siglist
=no
19616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19618 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19619 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19620 if test "x$ac_cv_have_decl_sys_siglist" = x
""yes; then
19622 cat >>confdefs.h
<<_ACEOF
19623 #define HAVE_DECL_SYS_SIGLIST 1
19628 cat >>confdefs.h
<<_ACEOF
19629 #define HAVE_DECL_SYS_SIGLIST 0
19638 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
19639 $as_echo_n "checking for syslog... " >&6; }
19640 if test "${ac_cv_func_syslog+set}" = set; then
19641 $as_echo_n "(cached) " >&6
19643 cat >conftest.
$ac_ext <<_ACEOF
19646 cat confdefs.h
>>conftest.
$ac_ext
19647 cat >>conftest.
$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19651 #define syslog innocuous_syslog
19653 /* System header to define __stub macros and hopefully few prototypes,
19654 which can conflict with char syslog (); below.
19655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19656 <limits.h> exists even on freestanding compilers. */
19659 # include <limits.h>
19661 # include <assert.h>
19666 /* Override any GCC internal prototype to avoid an error.
19667 Use char because int might match the return type of a GCC
19668 builtin and then its argument prototype would still apply. */
19673 /* The GNU C library defines this for functions which it implements
19674 to always fail with ENOSYS. Some functions are actually named
19675 something starting with __ and the normal name is an alias. */
19676 #if defined __stub_syslog || defined __stub___syslog
19688 rm -f conftest.
$ac_objext conftest
$ac_exeext
19689 if { (ac_try
="$ac_link"
19690 case "(($ac_try" in
19691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19695 $as_echo "$ac_try_echo") >&5
19696 (eval "$ac_link") 2>conftest.er1
19698 grep -v '^ *+' conftest.er1 >conftest.err
19700 cat conftest.err >&5
19701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_c_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest$ac_exeext && {
19706 test "$cross_compiling" = yes ||
19707 $as_test_x conftest$ac_exeext
19709 ac_cv_func_syslog=yes
19711 $as_echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19714 ac_cv_func_syslog=no
19717 rm -rf conftest.dSYM
19718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19719 conftest$ac_exeext conftest.$ac_ext
19721 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19722 $as_echo "$ac_cv_func_syslog" >&6; }
19723 if test "x$ac_cv_func_syslog" = x""yes; then
19724 if test "${ac_cv_header_syslog_h+set}" = set; then
19725 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19726 $as_echo_n "checking for syslog.h... " >&6; }
19727 if test "${ac_cv_header_syslog_h+set}" = set; then
19728 $as_echo_n "(cached) " >&6
19730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19731 $as_echo "$ac_cv_header_syslog_h" >&6; }
19733 # Is the header compilable?
19734 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
19735 $as_echo_n "checking syslog.h usability... " >&6; }
19736 cat >conftest.$ac_ext <<_ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 $ac_includes_default
19743 #include <syslog.h>
19745 rm -f conftest.$ac_objext
19746 if { (ac_try="$ac_compile"
19747 case "(($ac_try" in
19748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19749 *) ac_try_echo
=$ac_try;;
19751 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19752 $as_echo "$ac_try_echo") >&5
19753 (eval "$ac_compile") 2>conftest.er1
19755 grep -v '^ *+' conftest.er1
>conftest.err
19757 cat conftest.err
>&5
19758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } && {
19760 test -z "$ac_c_werror_flag" ||
19761 test ! -s conftest.err
19762 } && test -s conftest.
$ac_objext; then
19763 ac_header_compiler
=yes
19765 $as_echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.
$ac_ext >&5
19768 ac_header_compiler
=no
19771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19773 $as_echo "$ac_header_compiler" >&6; }
19775 # Is the header present?
19776 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
19777 $as_echo_n "checking syslog.h presence... " >&6; }
19778 cat >conftest.
$ac_ext <<_ACEOF
19781 cat confdefs.h
>>conftest.
$ac_ext
19782 cat >>conftest.
$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784 #include <syslog.h>
19786 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19787 case "(($ac_try" in
19788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19792 $as_echo "$ac_try_echo") >&5
19793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19795 grep -v '^ *+' conftest.er1 >conftest.err
19797 cat conftest.err >&5
19798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } >/dev/null && {
19800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19803 ac_header_preproc=yes
19805 $as_echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19808 ac_header_preproc=no
19811 rm -f conftest.err conftest.$ac_ext
19812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19813 $as_echo "$ac_header_preproc" >&6; }
19815 # So? What about this header?
19816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19818 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
19819 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19820 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
19821 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
19822 ac_header_preproc=yes
19825 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
19826 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
19827 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
19828 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
19829 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
19830 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
19831 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
19832 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
19833 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
19834 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
19835 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
19836 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
19838 ## ---------------------------------------- ##
19839 ## Report this to pgsql-bugs@postgresql.org ##
19840 ## ---------------------------------------- ##
19842 ) | sed "s/^/$as_me: WARNING: /" >&2
19845 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19846 $as_echo_n "checking for syslog.h... " >&6; }
19847 if test "${ac_cv_header_syslog_h+set}" = set; then
19848 $as_echo_n "(cached) " >&6
19850 ac_cv_header_syslog_h=$ac_header_preproc
19852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19853 $as_echo "$ac_cv_header_syslog_h" >&6; }
19856 if test "x$ac_cv_header_syslog_h" = x""yes; then
19858 cat >>confdefs.h <<\_ACEOF
19859 #define HAVE_SYSLOG 1
19868 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
19869 $as_echo_n "checking for opterr... " >&6; }
19870 if test "${pgac_cv_var_int_opterr+set}" = set; then
19871 $as_echo_n "(cached) " >&6
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 #include <unistd.h>
19883 extern int opterr; opterr = 1;
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (ac_try="$ac_link"
19890 case "(($ac_try" in
19891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19892 *) ac_try_echo
=$ac_try;;
19894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19895 $as_echo "$ac_try_echo") >&5
19896 (eval "$ac_link") 2>conftest.er1
19898 grep -v '^ *+' conftest.er1
>conftest.err
19900 cat conftest.err
>&5
19901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest
$ac_exeext && {
19906 test "$cross_compiling" = yes ||
19907 $as_test_x conftest
$ac_exeext
19909 pgac_cv_var_int_opterr
=yes
19911 $as_echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.
$ac_ext >&5
19914 pgac_cv_var_int_opterr
=no
19917 rm -rf conftest.dSYM
19918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19919 conftest
$ac_exeext conftest.
$ac_ext
19921 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
19922 $as_echo "$pgac_cv_var_int_opterr" >&6; }
19923 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
19925 cat >>confdefs.h
<<\_ACEOF
19926 #define HAVE_INT_OPTERR 1
19931 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
19932 $as_echo_n "checking for optreset... " >&6; }
19933 if test "${pgac_cv_var_int_optreset+set}" = set; then
19934 $as_echo_n "(cached) " >&6
19936 cat >conftest.
$ac_ext <<_ACEOF
19939 cat confdefs.h
>>conftest.
$ac_ext
19940 cat >>conftest.
$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19942 #include <unistd.h>
19946 extern int optreset; optreset = 1;
19951 rm -f conftest.
$ac_objext conftest
$ac_exeext
19952 if { (ac_try
="$ac_link"
19953 case "(($ac_try" in
19954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19958 $as_echo "$ac_try_echo") >&5
19959 (eval "$ac_link") 2>conftest.er1
19961 grep -v '^ *+' conftest.er1 >conftest.err
19963 cat conftest.err >&5
19964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } && {
19966 test -z "$ac_c_werror_flag" ||
19967 test ! -s conftest.err
19968 } && test -s conftest$ac_exeext && {
19969 test "$cross_compiling" = yes ||
19970 $as_test_x conftest$ac_exeext
19972 pgac_cv_var_int_optreset=yes
19974 $as_echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 pgac_cv_var_int_optreset=no
19980 rm -rf conftest.dSYM
19981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19982 conftest$ac_exeext conftest.$ac_ext
19984 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
19985 $as_echo "$pgac_cv_var_int_optreset" >&6; }
19986 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
19988 cat >>confdefs.h <<\_ACEOF
19989 #define HAVE_INT_OPTRESET 1
19996 for ac_func in strtoll strtoq
19998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19999 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20000 $as_echo_n "checking for $ac_func... " >&6; }
20001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20002 $as_echo_n "(cached) " >&6
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20012 #define $ac_func innocuous_$ac_func
20014 /* System header to define __stub macros and hopefully few prototypes,
20015 which can conflict with char $ac_func (); below.
20016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20017 <limits.h> exists even on freestanding compilers. */
20020 # include <limits.h>
20022 # include <assert.h>
20027 /* Override any GCC internal prototype to avoid an error.
20028 Use char because int might match the return type of a GCC
20029 builtin and then its argument prototype would still apply. */
20034 /* The GNU C library defines this for functions which it implements
20035 to always fail with ENOSYS. Some functions are actually named
20036 something starting with __ and the normal name is an alias. */
20037 #if defined __stub_$ac_func || defined __stub___$ac_func
20044 return $ac_func ();
20049 rm -f conftest.$ac_objext conftest$ac_exeext
20050 if { (ac_try="$ac_link"
20051 case "(($ac_try" in
20052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20053 *) ac_try_echo
=$ac_try;;
20055 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20056 $as_echo "$ac_try_echo") >&5
20057 (eval "$ac_link") 2>conftest.er1
20059 grep -v '^ *+' conftest.er1
>conftest.err
20061 cat conftest.err
>&5
20062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } && {
20064 test -z "$ac_c_werror_flag" ||
20065 test ! -s conftest.err
20066 } && test -s conftest
$ac_exeext && {
20067 test "$cross_compiling" = yes ||
20068 $as_test_x conftest
$ac_exeext
20070 eval "$as_ac_var=yes"
20072 $as_echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.
$ac_ext >&5
20075 eval "$as_ac_var=no"
20078 rm -rf conftest.dSYM
20079 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20080 conftest
$ac_exeext conftest.
$ac_ext
20082 ac_res
=`eval 'as_val=${'$as_ac_var'}
20083 $as_echo "$as_val"'`
20084 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20085 $as_echo "$ac_res" >&6; }
20086 as_val
=`eval 'as_val=${'$as_ac_var'}
20087 $as_echo "$as_val"'`
20088 if test "x$as_val" = x
""yes; then
20089 cat >>confdefs.h
<<_ACEOF
20090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20098 for ac_func
in strtoull strtouq
20100 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20102 $as_echo_n "checking for $ac_func... " >&6; }
20103 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20104 $as_echo_n "(cached) " >&6
20106 cat >conftest.
$ac_ext <<_ACEOF
20109 cat confdefs.h
>>conftest.
$ac_ext
20110 cat >>conftest.
$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20114 #define $ac_func innocuous_$ac_func
20116 /* System header to define __stub macros and hopefully few prototypes,
20117 which can conflict with char $ac_func (); below.
20118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20119 <limits.h> exists even on freestanding compilers. */
20122 # include <limits.h>
20124 # include <assert.h>
20129 /* Override any GCC internal prototype to avoid an error.
20130 Use char because int might match the return type of a GCC
20131 builtin and then its argument prototype would still apply. */
20136 /* The GNU C library defines this for functions which it implements
20137 to always fail with ENOSYS. Some functions are actually named
20138 something starting with __ and the normal name is an alias. */
20139 #if defined __stub_$ac_func || defined __stub___$ac_func
20146 return $ac_func ();
20151 rm -f conftest.
$ac_objext conftest
$ac_exeext
20152 if { (ac_try
="$ac_link"
20153 case "(($ac_try" in
20154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20158 $as_echo "$ac_try_echo") >&5
20159 (eval "$ac_link") 2>conftest.er1
20161 grep -v '^ *+' conftest.er1 >conftest.err
20163 cat conftest.err >&5
20164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } && {
20166 test -z "$ac_c_werror_flag" ||
20167 test ! -s conftest.err
20168 } && test -s conftest$ac_exeext && {
20169 test "$cross_compiling" = yes ||
20170 $as_test_x conftest$ac_exeext
20172 eval "$as_ac_var=yes"
20174 $as_echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20177 eval "$as_ac_var=no"
20180 rm -rf conftest.dSYM
20181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20182 conftest$ac_exeext conftest.$ac_ext
20184 ac_res=`eval 'as_val=${'$as_ac_var'}
20185 $as_echo "$as_val"'`
20186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20187 $as_echo "$ac_res" >&6; }
20188 as_val=`eval 'as_val=${'$as_ac_var'}
20189 $as_echo "$as_val"'`
20190 if test "x$as_val" = x""yes; then
20191 cat >>confdefs.h <<_ACEOF
20192 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20199 # Check for one of atexit() or on_exit()
20201 for ac_func in atexit
20203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20205 $as_echo_n "checking for $ac_func... " >&6; }
20206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20207 $as_echo_n "(cached) " >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20217 #define $ac_func innocuous_$ac_func
20219 /* System header to define __stub macros and hopefully few prototypes,
20220 which can conflict with char $ac_func (); below.
20221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20222 <limits.h> exists even on freestanding compilers. */
20225 # include <limits.h>
20227 # include <assert.h>
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20239 /* The GNU C library defines this for functions which it implements
20240 to always fail with ENOSYS. Some functions are actually named
20241 something starting with __ and the normal name is an alias. */
20242 #if defined __stub_$ac_func || defined __stub___$ac_func
20249 return $ac_func ();
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20258 *) ac_try_echo
=$ac_try;;
20260 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20261 $as_echo "$ac_try_echo") >&5
20262 (eval "$ac_link") 2>conftest.er1
20264 grep -v '^ *+' conftest.er1
>conftest.err
20266 cat conftest.err
>&5
20267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest
$ac_exeext && {
20272 test "$cross_compiling" = yes ||
20273 $as_test_x conftest
$ac_exeext
20275 eval "$as_ac_var=yes"
20277 $as_echo "$as_me: failed program was:" >&5
20278 sed 's/^/| /' conftest.
$ac_ext >&5
20280 eval "$as_ac_var=no"
20283 rm -rf conftest.dSYM
20284 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20285 conftest
$ac_exeext conftest.
$ac_ext
20287 ac_res
=`eval 'as_val=${'$as_ac_var'}
20288 $as_echo "$as_val"'`
20289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20290 $as_echo "$ac_res" >&6; }
20291 as_val
=`eval 'as_val=${'$as_ac_var'}
20292 $as_echo "$as_val"'`
20293 if test "x$as_val" = x
""yes; then
20294 cat >>confdefs.h
<<_ACEOF
20295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20300 for ac_func
in on_exit
20302 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20304 $as_echo_n "checking for $ac_func... " >&6; }
20305 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20306 $as_echo_n "(cached) " >&6
20308 cat >conftest.
$ac_ext <<_ACEOF
20311 cat confdefs.h
>>conftest.
$ac_ext
20312 cat >>conftest.
$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20316 #define $ac_func innocuous_$ac_func
20318 /* System header to define __stub macros and hopefully few prototypes,
20319 which can conflict with char $ac_func (); below.
20320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20321 <limits.h> exists even on freestanding compilers. */
20324 # include <limits.h>
20326 # include <assert.h>
20331 /* Override any GCC internal prototype to avoid an error.
20332 Use char because int might match the return type of a GCC
20333 builtin and then its argument prototype would still apply. */
20338 /* The GNU C library defines this for functions which it implements
20339 to always fail with ENOSYS. Some functions are actually named
20340 something starting with __ and the normal name is an alias. */
20341 #if defined __stub_$ac_func || defined __stub___$ac_func
20348 return $ac_func ();
20353 rm -f conftest.
$ac_objext conftest
$ac_exeext
20354 if { (ac_try
="$ac_link"
20355 case "(($ac_try" in
20356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20360 $as_echo "$ac_try_echo") >&5
20361 (eval "$ac_link") 2>conftest.er1
20363 grep -v '^ *+' conftest.er1 >conftest.err
20365 cat conftest.err >&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && {
20368 test -z "$ac_c_werror_flag" ||
20369 test ! -s conftest.err
20370 } && test -s conftest$ac_exeext && {
20371 test "$cross_compiling" = yes ||
20372 $as_test_x conftest$ac_exeext
20374 eval "$as_ac_var=yes"
20376 $as_echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 eval "$as_ac_var=no"
20382 rm -rf conftest.dSYM
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384 conftest$ac_exeext conftest.$ac_ext
20386 ac_res=`eval 'as_val=${'$as_ac_var'}
20387 $as_echo "$as_val"'`
20388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20389 $as_echo "$ac_res" >&6; }
20390 as_val=`eval 'as_val=${'$as_ac_var'}
20391 $as_echo "$as_val"'`
20392 if test "x$as_val" = x""yes; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20398 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
20399 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
20400 { (exit 1); exit 1; }; }
20409 for ac_func in fseeko
20411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20413 $as_echo_n "checking for $ac_func... " >&6; }
20414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20415 $as_echo_n "(cached) " >&6
20417 cat >conftest.$ac_ext <<_ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20425 #define $ac_func innocuous_$ac_func
20427 /* System header to define __stub macros and hopefully few prototypes,
20428 which can conflict with char $ac_func (); below.
20429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20430 <limits.h> exists even on freestanding compilers. */
20433 # include <limits.h>
20435 # include <assert.h>
20440 /* Override any GCC internal prototype to avoid an error.
20441 Use char because int might match the return type of a GCC
20442 builtin and then its argument prototype would still apply. */
20447 /* The GNU C library defines this for functions which it implements
20448 to always fail with ENOSYS. Some functions are actually named
20449 something starting with __ and the normal name is an alias. */
20450 #if defined __stub_$ac_func || defined __stub___$ac_func
20457 return $ac_func ();
20462 rm -f conftest.$ac_objext conftest$ac_exeext
20463 if { (ac_try="$ac_link"
20464 case "(($ac_try" in
20465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20466 *) ac_try_echo
=$ac_try;;
20468 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20469 $as_echo "$ac_try_echo") >&5
20470 (eval "$ac_link") 2>conftest.er1
20472 grep -v '^ *+' conftest.er1
>conftest.err
20474 cat conftest.err
>&5
20475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest
$ac_exeext && {
20480 test "$cross_compiling" = yes ||
20481 $as_test_x conftest
$ac_exeext
20483 eval "$as_ac_var=yes"
20485 $as_echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.
$ac_ext >&5
20488 eval "$as_ac_var=no"
20491 rm -rf conftest.dSYM
20492 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20493 conftest
$ac_exeext conftest.
$ac_ext
20495 ac_res
=`eval 'as_val=${'$as_ac_var'}
20496 $as_echo "$as_val"'`
20497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20498 $as_echo "$ac_res" >&6; }
20499 as_val
=`eval 'as_val=${'$as_ac_var'}
20500 $as_echo "$as_val"'`
20501 if test "x$as_val" = x
""yes; then
20502 cat >>confdefs.h
<<_ACEOF
20503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20507 case " $LIBOBJS " in
20508 *" $ac_func.$ac_objext "* ) ;;
20509 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20518 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
20519 # Mingw uses macros to access Win32 API calls
20520 bsdi
*|netbsd
*|mingw
*)
20522 cat >>confdefs.h
<<\_ACEOF
20523 #define HAVE_FSEEKO 1
20526 ac_cv_func_fseeko
=yes;;
20528 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20529 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20530 if test "${ac_cv_sys_largefile_source+set}" = set; then
20531 $as_echo_n "(cached) " >&6
20534 cat >conftest.
$ac_ext <<_ACEOF
20537 cat confdefs.h
>>conftest.
$ac_ext
20538 cat >>conftest.
$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 #include <sys/types.h> /* for off_t */
20545 int (*fp) (FILE *, off_t, int) = fseeko;
20546 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20551 rm -f conftest.
$ac_objext conftest
$ac_exeext
20552 if { (ac_try
="$ac_link"
20553 case "(($ac_try" in
20554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_link") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext && {
20569 test "$cross_compiling" = yes ||
20570 $as_test_x conftest$ac_exeext
20572 ac_cv_sys_largefile_source=no; break
20574 $as_echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20580 rm -rf conftest.dSYM
20581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20582 conftest$ac_exeext conftest.$ac_ext
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 #define _LARGEFILE_SOURCE 1
20590 #include <sys/types.h> /* for off_t */
20595 int (*fp) (FILE *, off_t, int) = fseeko;
20596 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20601 rm -f conftest.$ac_objext conftest$ac_exeext
20602 if { (ac_try="$ac_link"
20603 case "(($ac_try" in
20604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20605 *) ac_try_echo
=$ac_try;;
20607 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20608 $as_echo "$ac_try_echo") >&5
20609 (eval "$ac_link") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1
>conftest.err
20613 cat conftest.err
>&5
20614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest
$ac_exeext && {
20619 test "$cross_compiling" = yes ||
20620 $as_test_x conftest
$ac_exeext
20622 ac_cv_sys_largefile_source
=1; break
20624 $as_echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.
$ac_ext >&5
20630 rm -rf conftest.dSYM
20631 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20632 conftest
$ac_exeext conftest.
$ac_ext
20633 ac_cv_sys_largefile_source
=unknown
20637 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20638 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20639 case $ac_cv_sys_largefile_source in #(
20642 cat >>confdefs.h
<<_ACEOF
20643 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20649 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20650 # in glibc 2.1.3, but that breaks too many other things.
20651 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20652 if test $ac_cv_sys_largefile_source != unknown
; then
20654 cat >>confdefs.h
<<\_ACEOF
20655 #define HAVE_FSEEKO 1
20666 # For each platform, we need to know about any special compile and link
20667 # libraries, and whether the normal C function names are thread-safe.
20668 # See the comment at the top of src/port/thread.c for more information.
20669 # WIN32 doesn't need the pthread tests; it always uses threads
20670 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
20675 ac_cpp
='$CPP $CPPFLAGS'
20676 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20682 # We used to check for pthread.h first, but this fails if pthread.h
20683 # requires special compiler flags (e.g. on True64 or Sequent).
20684 # It gets checked for in the link test anyway.
20686 # First of all, check if the user has set any of the PTHREAD_LIBS,
20687 # etcetera environment variables, and if threads linking works using
20689 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
20690 save_CFLAGS
="$CFLAGS"
20691 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20693 LIBS
="$PTHREAD_LIBS $LIBS"
20694 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20695 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20696 cat >conftest.
$ac_ext <<_ACEOF
20699 cat confdefs.h
>>conftest.
$ac_ext
20700 cat >>conftest.
$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20703 /* Override any GCC internal prototype to avoid an error.
20704 Use char because int might match the return type of a GCC
20705 builtin and then its argument prototype would still apply. */
20709 char pthread_join ();
20713 return pthread_join ();
20718 rm -f conftest.
$ac_objext conftest
$ac_exeext
20719 if { (ac_try
="$ac_link"
20720 case "(($ac_try" in
20721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20725 $as_echo "$ac_try_echo") >&5
20726 (eval "$ac_link") 2>conftest.er1
20728 grep -v '^ *+' conftest.er1 >conftest.err
20730 cat conftest.err >&5
20731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest$ac_exeext && {
20736 test "$cross_compiling" = yes ||
20737 $as_test_x conftest$ac_exeext
20741 $as_echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20747 rm -rf conftest.dSYM
20748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20749 conftest$ac_exeext conftest.$ac_ext
20750 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20751 $as_echo "$acx_pthread_ok" >&6; }
20752 if test x"$acx_pthread_ok" = xno; then
20757 CFLAGS="$save_CFLAGS"
20760 # We must check for the threads library under a number of different
20761 # names; the ordering is very important because some systems
20762 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20763 # libraries is broken (non-POSIX).
20765 # Create a list of thread flags to try. Items starting with a "-" are
20766 # C compiler flags, and other items are library names, except for "none"
20767 # which indicates that we try without any flags at all, and "pthread-config"
20768 # which is a program returning the flags for the Pth emulation library.
20770 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
20772 # The ordering *is* (sometimes) important. Some notes on the
20773 # individual items follow:
20775 # pthreads: AIX (must check this before -lpthread)
20776 # none: in case threads are in libc; should be tried before -Kthread and
20777 # other compiler flags to prevent continual compiler warnings
20778 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20779 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20780 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20781 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20782 # -pthreads: Solaris/gcc
20783 # -mthreads: Mingw32/gcc, Lynx/gcc
20784 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20785 # doesn't hurt to check since this sometimes defines pthreads too;
20786 # also defines -D_REENTRANT)
20787 # pthread: Linux, etcetera
20788 # --thread-safe: KAI C++
20789 # pthread-config: use pthread-config program (for GNU Pth library)
20791 case "${host_cpu}-${host_os}" in
20794 # On Solaris (at least, for some versions), libc contains stubbed
20795 # (non-functional) versions of the pthreads routines, so link-based
20796 # tests will erroneously succeed. (We need to link with -pthread or
20797 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20798 # a function called by this macro, so we could check for that, but
20799 # who knows whether they'll stub that too in a future libc.) So,
20800 # we'll just look for -pthreads and -lpthread first:
20802 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20806 if test x"$acx_pthread_ok" = xno; then
20807 for flag in $acx_pthread_flags; do
20809 tryPTHREAD_CFLAGS=""
20813 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20814 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20818 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20819 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20820 tryPTHREAD_CFLAGS="$flag"
20824 # skip this if we already have flags defined, for PostgreSQL
20825 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
20826 # Extract the first word of "pthread-config", so it can be a program name with args.
20827 set dummy pthread-config; ac_word=$2
20828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20829 $as_echo_n "checking for $ac_word... " >&6; }
20830 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20831 $as_echo_n "(cached) " >&6
20833 if test -n "$acx_pthread_config"; then
20834 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837 for as_dir in $PATH
20840 test -z "$as_dir" && as_dir=.
20841 for ac_exec_ext in '' $ac_executable_extensions; do
20842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20843 ac_cv_prog_acx_pthread_config="yes"
20844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20851 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20854 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20855 if test -n "$acx_pthread_config"; then
20856 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20857 $as_echo "$acx_pthread_config" >&6; }
20859 { $as_echo "$as_me:$LINENO: result: no" >&5
20860 $as_echo "no" >&6; }
20864 if test x"$acx_pthread_config" = xno; then continue; fi
20865 tryPTHREAD_CFLAGS="`pthread-config
--cflags`"
20866 tryPTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
20870 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20871 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20872 tryPTHREAD_LIBS="-l$flag"
20877 save_CFLAGS="$CFLAGS"
20878 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
20879 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
20881 # Check for various functions. We must include pthread.h,
20882 # since some functions may be macros. (On the Sequent, we
20883 # need a special flag -Kthread to make this header compile.)
20884 # We check for pthread_join because it is in -lpthread on IRIX
20885 # while pthread_create is in libc. We check for pthread_attr_init
20886 # due to DEC craziness with -lpthreads. We check for
20887 # pthread_cleanup_push because it is one of the few pthread
20888 # functions on Solaris that doesn't have a non-functional libc stub.
20889 # We try pthread_create on general principles.
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 #include <pthread.h>
20900 pthread_t th; pthread_join(th, 0);
20901 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20902 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20907 rm -f conftest.$ac_objext conftest$ac_exeext
20908 if { (ac_try="$ac_link"
20909 case "(($ac_try" in
20910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20911 *) ac_try_echo
=$ac_try;;
20913 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20914 $as_echo "$ac_try_echo") >&5
20915 (eval "$ac_link") 2>conftest.er1
20917 grep -v '^ *+' conftest.er1
>conftest.err
20919 cat conftest.err
>&5
20920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } && {
20922 test -z "$ac_c_werror_flag" ||
20923 test ! -s conftest.err
20924 } && test -s conftest
$ac_exeext && {
20925 test "$cross_compiling" = yes ||
20926 $as_test_x conftest
$ac_exeext
20930 $as_echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.
$ac_ext >&5
20936 rm -rf conftest.dSYM
20937 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20938 conftest
$ac_exeext conftest.
$ac_ext
20940 if test "x$acx_pthread_ok" = xyes
; then
20941 # Don't use options that are ignored by the compiler.
20942 # We find them by checking stderror.
20943 cat >conftest.
$ac_ext <<_ACEOF
20945 main (int argc, char **argv)
20952 rm -f conftest.
$ac_objext conftest
$ac_exeext
20953 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
20954 # we continue with more flags because Linux needs -lpthread
20955 # for libpq builds on PostgreSQL. The test above only
20956 # tests for building binaries, not shared libraries.
20957 PTHREAD_LIBS
=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
20958 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
20959 else acx_pthread_ok
=no
20964 CFLAGS
="$save_CFLAGS"
20966 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20967 $as_echo "$acx_pthread_ok" >&6; }
20971 # Various other checks:
20972 if test "x$acx_pthread_ok" = xyes
; then
20974 LIBS
="$PTHREAD_LIBS $LIBS"
20975 save_CFLAGS
="$CFLAGS"
20976 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20978 # Detect AIX lossage: threads are created detached by default
20979 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
20980 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
20981 $as_echo_n "checking for joinable pthread attribute... " >&6; }
20982 cat >conftest.
$ac_ext <<_ACEOF
20985 cat confdefs.h
>>conftest.
$ac_ext
20986 cat >>conftest.
$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20988 #include <pthread.h>
20992 int attr=PTHREAD_CREATE_JOINABLE;
20997 rm -f conftest.
$ac_objext conftest
$ac_exeext
20998 if { (ac_try
="$ac_link"
20999 case "(($ac_try" in
21000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21004 $as_echo "$ac_try_echo") >&5
21005 (eval "$ac_link") 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } && {
21012 test -z "$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21014 } && test -s conftest$ac_exeext && {
21015 test "$cross_compiling" = yes ||
21016 $as_test_x conftest$ac_exeext
21018 ok=PTHREAD_CREATE_JOINABLE
21020 $as_echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21026 rm -rf conftest.dSYM
21027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21028 conftest$ac_exeext conftest.$ac_ext
21029 if test x"$ok" = xunknown; then
21030 cat >conftest.$ac_ext <<_ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21036 #include <pthread.h>
21040 int attr=PTHREAD_CREATE_UNDETACHED;
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (ac_try="$ac_link"
21047 case "(($ac_try" in
21048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21049 *) ac_try_echo
=$ac_try;;
21051 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21052 $as_echo "$ac_try_echo") >&5
21053 (eval "$ac_link") 2>conftest.er1
21055 grep -v '^ *+' conftest.er1
>conftest.err
21057 cat conftest.err
>&5
21058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest
$ac_exeext && {
21063 test "$cross_compiling" = yes ||
21064 $as_test_x conftest
$ac_exeext
21066 ok
=PTHREAD_CREATE_UNDETACHED
21068 $as_echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.
$ac_ext >&5
21074 rm -rf conftest.dSYM
21075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21076 conftest
$ac_exeext conftest.
$ac_ext
21078 if test x
"$ok" != xPTHREAD_CREATE_JOINABLE
; then
21080 cat >>confdefs.h
<<\_ACEOF
21081 #define PTHREAD_CREATE_JOINABLE $ok
21085 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
21086 $as_echo "${ok}" >&6; }
21087 if test x
"$ok" = xunknown
; then
21088 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21089 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21092 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21093 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21095 # We always add these in PostgreSQL
21096 # case "${host_cpu}-${host_os}" in
21097 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21098 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21100 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21101 $as_echo "${flag}" >&6; }
21102 if test "x$flag" != xno
; then
21103 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
21107 CFLAGS
="$save_CFLAGS"
21109 # Supporting cc_r would require a special CC in all places that
21110 # use libpq, and that is ugly, so we don't do it. Users can still
21111 # define their compiler as cc_r to do thread builds of everything.
21112 # More AIX lossage: must compile with cc_r
21113 # Extract the first word of "cc_r", so it can be a program name with args.
21114 set dummy cc_r
; ac_word
=$2
21115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21116 $as_echo_n "checking for $ac_word... " >&6; }
21117 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21118 $as_echo_n "(cached) " >&6
21120 if test -n "$PTHREAD_CC"; then
21121 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
21123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21124 for as_dir
in $PATH
21127 test -z "$as_dir" && as_dir
=.
21128 for ac_exec_ext
in '' $ac_executable_extensions; do
21129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21130 ac_cv_prog_PTHREAD_CC
="cc_r"
21131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21138 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC
="${CC}"
21141 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
21142 if test -n "$PTHREAD_CC"; then
21143 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21144 $as_echo "$PTHREAD_CC" >&6; }
21146 { $as_echo "$as_me:$LINENO: result: no" >&5
21147 $as_echo "no" >&6; }
21159 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21160 if test x
"$acx_pthread_ok" = xyes
; then
21162 cat >>confdefs.h
<<\_ACEOF
21163 #define HAVE_PTHREAD 1
21172 ac_cpp
='$CPP $CPPFLAGS'
21173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21179 # Some platforms use these, so just define them. They can't hurt if they
21180 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
21181 # enables 5-arg getpwuid_r, among other things.
21182 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
21185 # At this point, we don't want to muck with the compiler name for threading.
21186 # Let's see who fails, perhaps AIX. 2004-04-23
21187 if test "$PTHREAD_CC" != "$CC"; then
21188 { { $as_echo "$as_me:$LINENO: error:
21189 PostgreSQL does not support platforms that require a special compiler
21190 for thread safety." >&5
21191 $as_echo "$as_me: error:
21192 PostgreSQL does not support platforms that require a special compiler
21193 for thread safety." >&2;}
21194 { (exit 1); exit 1; }; }
21197 if test "$THREAD_SUPPORT" = no
; then
21198 { { $as_echo "$as_me:$LINENO: error: cannot enable threads on this platform
21199 This platform is known to not support thread-safe programs. For details,
21200 compile and run src/bin/pg_thread_test." >&5
21201 $as_echo "$as_me: error: cannot enable threads on this platform
21202 This platform is known to not support thread-safe programs. For details,
21203 compile and run src/bin/pg_thread_test." >&2;}
21204 { (exit 1); exit 1; }; }
21207 # Check for *_r functions
21210 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
21211 LIBS
="$LIBS $PTHREAD_LIBS"
21213 if test "$PORTNAME" != "win32"; then
21214 if test "${ac_cv_header_pthread_h+set}" = set; then
21215 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21216 $as_echo_n "checking for pthread.h... " >&6; }
21217 if test "${ac_cv_header_pthread_h+set}" = set; then
21218 $as_echo_n "(cached) " >&6
21220 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21221 $as_echo "$ac_cv_header_pthread_h" >&6; }
21223 # Is the header compilable?
21224 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
21225 $as_echo_n "checking pthread.h usability... " >&6; }
21226 cat >conftest.
$ac_ext <<_ACEOF
21229 cat confdefs.h
>>conftest.
$ac_ext
21230 cat >>conftest.
$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21233 #include <pthread.h>
21235 rm -f conftest.
$ac_objext
21236 if { (ac_try
="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21242 $as_echo "$ac_try_echo") >&5
21243 (eval "$ac_compile") 2>conftest.er1
21245 grep -v '^ *+' conftest.er1 >conftest.err
21247 cat conftest.err >&5
21248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } && {
21250 test -z "$ac_c_werror_flag" ||
21251 test ! -s conftest.err
21252 } && test -s conftest.$ac_objext; then
21253 ac_header_compiler=yes
21255 $as_echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_header_compiler=no
21261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21263 $as_echo "$ac_header_compiler" >&6; }
21265 # Is the header present?
21266 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
21267 $as_echo_n "checking pthread.h presence... " >&6; }
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <pthread.h>
21276 if { (ac_try="$ac_cpp conftest.$ac_ext"
21277 case "(($ac_try" in
21278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21279 *) ac_try_echo
=$ac_try;;
21281 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21282 $as_echo "$ac_try_echo") >&5
21283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21285 grep -v '^ *+' conftest.er1
>conftest.err
21287 cat conftest.err
>&5
21288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } >/dev
/null
&& {
21290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21293 ac_header_preproc
=yes
21295 $as_echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.
$ac_ext >&5
21298 ac_header_preproc
=no
21301 rm -f conftest.err conftest.
$ac_ext
21302 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21303 $as_echo "$ac_header_preproc" >&6; }
21305 # So? What about this header?
21306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21308 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21309 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21310 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21311 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21312 ac_header_preproc
=yes
21315 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21316 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21317 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
21318 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
21319 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21320 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21321 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
21322 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
21323 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21324 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21325 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21326 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21328 ## ---------------------------------------- ##
21329 ## Report this to pgsql-bugs@postgresql.org ##
21330 ## ---------------------------------------- ##
21332 ) |
sed "s/^/$as_me: WARNING: /" >&2
21335 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21336 $as_echo_n "checking for pthread.h... " >&6; }
21337 if test "${ac_cv_header_pthread_h+set}" = set; then
21338 $as_echo_n "(cached) " >&6
21340 ac_cv_header_pthread_h
=$ac_header_preproc
21342 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21343 $as_echo "$ac_cv_header_pthread_h" >&6; }
21346 if test "x$ac_cv_header_pthread_h" = x
""yes; then
21349 { { $as_echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
21350 $as_echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
21351 { (exit 1); exit 1; }; }
21360 for ac_func
in strerror_r getpwuid_r gethostbyname_r
21362 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21364 $as_echo_n "checking for $ac_func... " >&6; }
21365 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21366 $as_echo_n "(cached) " >&6
21368 cat >conftest.
$ac_ext <<_ACEOF
21371 cat confdefs.h
>>conftest.
$ac_ext
21372 cat >>conftest.
$ac_ext <<_ACEOF
21373 /* end confdefs.h. */
21374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21376 #define $ac_func innocuous_$ac_func
21378 /* System header to define __stub macros and hopefully few prototypes,
21379 which can conflict with char $ac_func (); below.
21380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21381 <limits.h> exists even on freestanding compilers. */
21384 # include <limits.h>
21386 # include <assert.h>
21391 /* Override any GCC internal prototype to avoid an error.
21392 Use char because int might match the return type of a GCC
21393 builtin and then its argument prototype would still apply. */
21398 /* The GNU C library defines this for functions which it implements
21399 to always fail with ENOSYS. Some functions are actually named
21400 something starting with __ and the normal name is an alias. */
21401 #if defined __stub_$ac_func || defined __stub___$ac_func
21408 return $ac_func ();
21413 rm -f conftest.
$ac_objext conftest
$ac_exeext
21414 if { (ac_try
="$ac_link"
21415 case "(($ac_try" in
21416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21420 $as_echo "$ac_try_echo") >&5
21421 (eval "$ac_link") 2>conftest.er1
21423 grep -v '^ *+' conftest.er1 >conftest.err
21425 cat conftest.err >&5
21426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } && {
21428 test -z "$ac_c_werror_flag" ||
21429 test ! -s conftest.err
21430 } && test -s conftest$ac_exeext && {
21431 test "$cross_compiling" = yes ||
21432 $as_test_x conftest$ac_exeext
21434 eval "$as_ac_var=yes"
21436 $as_echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21439 eval "$as_ac_var=no"
21442 rm -rf conftest.dSYM
21443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21444 conftest$ac_exeext conftest.$ac_ext
21446 ac_res=`eval 'as_val=${'$as_ac_var'}
21447 $as_echo "$as_val"'`
21448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21449 $as_echo "$ac_res" >&6; }
21450 as_val=`eval 'as_val=${'$as_ac_var'}
21451 $as_echo "$as_val"'`
21452 if test "x$as_val" = x""yes; then
21453 cat >>confdefs.h <<_ACEOF
21454 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21461 # Do test here with the proper thread flags
21462 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
21463 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
21464 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
21465 $as_echo_n "(cached) " >&6
21467 cat >conftest.$ac_ext <<_ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21473 #include <sys/types.h>
21479 struct passwd *space;
21482 struct passwd **result;
21483 getpwuid_r(uid, space, buf, bufsize, result);
21488 rm -f conftest.$ac_objext
21489 if { (ac_try="$ac_compile"
21490 case "(($ac_try" in
21491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21492 *) ac_try_echo
=$ac_try;;
21494 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21495 $as_echo "$ac_try_echo") >&5
21496 (eval "$ac_compile") 2>conftest.er1
21498 grep -v '^ *+' conftest.er1
>conftest.err
21500 cat conftest.err
>&5
21501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest.
$ac_objext; then
21506 pgac_cv_func_getpwuid_r_5arg
=yes
21508 $as_echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.
$ac_ext >&5
21511 pgac_cv_func_getpwuid_r_5arg
=no
21514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21516 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
21517 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
21518 if test x
"$pgac_cv_func_getpwuid_r_5arg" = xyes
; then
21520 cat >>confdefs.h
<<\_ACEOF
21521 #define GETPWUID_R_5ARG /**/
21526 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
21527 $as_echo_n "checking whether strerror_r returns int... " >&6; }
21528 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
21529 $as_echo_n "(cached) " >&6
21531 cat >conftest.
$ac_ext <<_ACEOF
21534 cat confdefs.h
>>conftest.
$ac_ext
21535 cat >>conftest.
$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <string.h>
21542 int strerror_r(int, char *, size_t);
21544 /* Older AIX has 'int' for the third argument so we don't test the args. */
21551 rm -f conftest.
$ac_objext
21552 if { (ac_try
="$ac_compile"
21553 case "(($ac_try" in
21554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21558 $as_echo "$ac_try_echo") >&5
21559 (eval "$ac_compile") 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest.$ac_objext; then
21569 pgac_cv_func_strerror_r_int=yes
21571 $as_echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 pgac_cv_func_strerror_r_int=no
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21579 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
21580 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
21581 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
21583 cat >>confdefs.h <<\_ACEOF
21584 #define STRERROR_R_INT /**/
21594 # do not use values from template file
21603 # We can test for libldap_r only after we know PTHREAD_LIBS
21604 if test "$with_ldap" = yes ; then
21606 if test "$PORTNAME" != "win32"; then
21608 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
21609 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
21610 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
21611 $as_echo_n "(cached) " >&6
21613 ac_check_lib_save_LIBS=$LIBS
21614 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
21615 cat >conftest.$ac_ext <<_ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h. */
21622 /* Override any GCC internal prototype to avoid an error.
21623 Use char because int might match the return type of a GCC
21624 builtin and then its argument prototype would still apply. */
21632 return ldap_bind ();
21637 rm -f conftest.$ac_objext conftest$ac_exeext
21638 if { (ac_try="$ac_link"
21639 case "(($ac_try" in
21640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21641 *) ac_try_echo
=$ac_try;;
21643 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21644 $as_echo "$ac_try_echo") >&5
21645 (eval "$ac_link") 2>conftest.er1
21647 grep -v '^ *+' conftest.er1
>conftest.err
21649 cat conftest.err
>&5
21650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest
$ac_exeext && {
21655 test "$cross_compiling" = yes ||
21656 $as_test_x conftest
$ac_exeext
21658 ac_cv_lib_ldap_ldap_bind
=yes
21660 $as_echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.
$ac_ext >&5
21663 ac_cv_lib_ldap_ldap_bind
=no
21666 rm -rf conftest.dSYM
21667 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21668 conftest
$ac_exeext conftest.
$ac_ext
21669 LIBS
=$ac_check_lib_save_LIBS
21671 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
21672 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
21673 if test "x$ac_cv_lib_ldap_ldap_bind" = x
""yes; then
21674 cat >>confdefs.h
<<_ACEOF
21675 #define HAVE_LIBLDAP 1
21678 LIBS
="-lldap $LIBS"
21681 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
21682 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
21683 { (exit 1); exit 1; }; }
21686 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
21687 if test "$enable_thread_safety" = yes; then
21688 # on some platforms ldap_r fails to link without PTHREAD_LIBS
21690 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
21691 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
21692 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
21693 $as_echo_n "(cached) " >&6
21695 ac_check_lib_save_LIBS
=$LIBS
21696 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
21697 cat >conftest.
$ac_ext <<_ACEOF
21700 cat confdefs.h
>>conftest.
$ac_ext
21701 cat >>conftest.
$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21704 /* Override any GCC internal prototype to avoid an error.
21705 Use char because int might match the return type of a GCC
21706 builtin and then its argument prototype would still apply. */
21710 char ldap_simple_bind ();
21714 return ldap_simple_bind ();
21719 rm -f conftest.
$ac_objext conftest
$ac_exeext
21720 if { (ac_try
="$ac_link"
21721 case "(($ac_try" in
21722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21726 $as_echo "$ac_try_echo") >&5
21727 (eval "$ac_link") 2>conftest.er1
21729 grep -v '^ *+' conftest.er1 >conftest.err
21731 cat conftest.err >&5
21732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); } && {
21734 test -z "$ac_c_werror_flag" ||
21735 test ! -s conftest.err
21736 } && test -s conftest$ac_exeext && {
21737 test "$cross_compiling" = yes ||
21738 $as_test_x conftest$ac_exeext
21740 ac_cv_lib_ldap_r_ldap_simple_bind=yes
21742 $as_echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_cv_lib_ldap_r_ldap_simple_bind=no
21748 rm -rf conftest.dSYM
21749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21750 conftest$ac_exeext conftest.$ac_ext
21751 LIBS=$ac_check_lib_save_LIBS
21753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
21754 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
21755 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
21756 cat >>confdefs.h <<_ACEOF
21757 #define HAVE_LIBLDAP_R 1
21760 LIBS="-lldap_r $LIBS"
21763 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
21764 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
21765 { (exit 1); exit 1; }; }
21768 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
21770 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
21774 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
21775 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
21776 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
21777 $as_echo_n "(cached) " >&6
21779 ac_check_lib_save_LIBS=$LIBS
21780 LIBS="-lwldap32 $LIBS"
21781 cat >conftest.$ac_ext <<_ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h. */
21788 /* Override any GCC internal prototype to avoid an error.
21789 Use char because int might match the return type of a GCC
21790 builtin and then its argument prototype would still apply. */
21798 return ldap_bind ();
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21807 *) ac_try_echo
=$ac_try;;
21809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21810 $as_echo "$ac_try_echo") >&5
21811 (eval "$ac_link") 2>conftest.er1
21813 grep -v '^ *+' conftest.er1
>conftest.err
21815 cat conftest.err
>&5
21816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && {
21818 test -z "$ac_c_werror_flag" ||
21819 test ! -s conftest.err
21820 } && test -s conftest
$ac_exeext && {
21821 test "$cross_compiling" = yes ||
21822 $as_test_x conftest
$ac_exeext
21824 ac_cv_lib_wldap32_ldap_bind
=yes
21826 $as_echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.
$ac_ext >&5
21829 ac_cv_lib_wldap32_ldap_bind
=no
21832 rm -rf conftest.dSYM
21833 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21834 conftest
$ac_exeext conftest.
$ac_ext
21835 LIBS
=$ac_check_lib_save_LIBS
21837 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
21838 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
21839 if test "x$ac_cv_lib_wldap32_ldap_bind" = x
""yes; then
21840 cat >>confdefs.h
<<_ACEOF
21841 #define HAVE_LIBWLDAP32 1
21844 LIBS
="-lwldap32 $LIBS"
21847 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
21848 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
21849 { (exit 1); exit 1; }; }
21852 LDAP_LIBS_FE
="-lwldap32"
21853 LDAP_LIBS_BE
="-lwldap32"
21861 # This test makes sure that run tests work at all. Sometimes a shared
21862 # library is found by the linker, but the runtime linker can't find it.
21863 # This check should come after all modifications of compiler or linker
21864 # variables, and before any other run tests.
21865 { $as_echo "$as_me:$LINENO: checking test program" >&5
21866 $as_echo_n "checking test program... " >&6; }
21867 if test "$cross_compiling" = yes; then
21868 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
21869 $as_echo "cross-compiling" >&6; }
21871 cat >conftest.
$ac_ext <<_ACEOF
21874 cat confdefs.h
>>conftest.
$ac_ext
21875 cat >>conftest.
$ac_ext <<_ACEOF
21876 /* end confdefs.h. */
21877 int main() { return 0; }
21879 rm -f conftest
$ac_exeext
21880 if { (ac_try
="$ac_link"
21881 case "(($ac_try" in
21882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21886 $as_echo "$ac_try_echo") >&5
21887 (eval "$ac_link") 2>&5
21889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 { $as_echo "$as_me:$LINENO: result: ok" >&5
21902 $as_echo "ok" >&6; }
21904 $as_echo "$as_me: program exited with status $ac_status" >&5
21905 $as_echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.
$ac_ext >&5
21908 ( exit $ac_status )
21909 { $as_echo "$as_me:$LINENO: result: failed" >&5
21910 $as_echo "failed" >&6; }
21911 { { $as_echo "$as_me:$LINENO: error:
21912 Could not execute a simple test program. This may be a problem
21913 related to locating shared libraries. Check the file 'config.log'
21914 for the exact reason." >&5
21915 $as_echo "$as_me: error:
21916 Could not execute a simple test program. This may be a problem
21917 related to locating shared libraries. Check the file 'config.log'
21918 for the exact reason." >&2;}
21919 { (exit 1); exit 1; }; }
21921 rm -rf conftest.dSYM
21922 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21927 # --------------------
21928 # Run tests below here
21929 # --------------------
21931 # Force use of our snprintf if system's doesn't do arg control
21932 # See comment above at snprintf test for details.
21933 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no
; then
21934 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
21935 $as_echo_n "checking whether printf supports argument control... " >&6; }
21936 if test "${pgac_cv_printf_arg_control+set}" = set; then
21937 $as_echo_n "(cached) " >&6
21939 if test "$cross_compiling" = yes; then
21940 pgac_cv_printf_arg_control
=cross
21942 cat >conftest.
$ac_ext <<_ACEOF
21945 cat confdefs.h
>>conftest.
$ac_ext
21946 cat >>conftest.
$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21949 #include <string.h>
21955 /* can it swap arguments? */
21956 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
21957 if (strcmp(buf, "4 3") != 0)
21962 rm -f conftest
$ac_exeext
21963 if { (ac_try
="$ac_link"
21964 case "(($ac_try" in
21965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21969 $as_echo "$ac_try_echo") >&5
21970 (eval "$ac_link") 2>&5
21972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21974 { (case "(($ac_try" in
21975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21976 *) ac_try_echo
=$ac_try;;
21978 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21979 $as_echo "$ac_try_echo") >&5
21980 (eval "$ac_try") 2>&5
21982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21984 pgac_cv_printf_arg_control
=yes
21986 $as_echo "$as_me: program exited with status $ac_status" >&5
21987 $as_echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.
$ac_ext >&5
21990 ( exit $ac_status )
21991 pgac_cv_printf_arg_control
=no
21993 rm -rf conftest.dSYM
21994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22000 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
22001 $as_echo "$pgac_cv_printf_arg_control" >&6; }
22003 if test $pgac_cv_printf_arg_control != yes ; then
22004 pgac_need_repl_snprintf
=yes
22010 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
22011 $as_echo_n "checking whether long int is 64 bits... " >&6; }
22012 if test "${pgac_cv_type_long_int_64+set}" = set; then
22013 $as_echo_n "(cached) " >&6
22015 if test "$cross_compiling" = yes; then
22016 # If cross-compiling, check the size reported by the compiler and
22017 # trust that the arithmetic works.
22018 cat >conftest.
$ac_ext <<_ACEOF
22021 cat confdefs.h
>>conftest.
$ac_ext
22022 cat >>conftest.
$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22028 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
22035 rm -f conftest.
$ac_objext
22036 if { (ac_try
="$ac_compile"
22037 case "(($ac_try" in
22038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22042 $as_echo "$ac_try_echo") >&5
22043 (eval "$ac_compile") 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && {
22050 test -z "$ac_c_werror_flag" ||
22051 test ! -s conftest.err
22052 } && test -s conftest.$ac_objext; then
22053 pgac_cv_type_long_int_64=yes
22055 $as_echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22058 pgac_cv_type_long_int_64=no
22061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 cat >conftest.$ac_ext <<_ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h. */
22069 typedef long int ac_int64;
22072 * These are globals to discourage the compiler from folding all the
22073 * arithmetic tests down to compile-time constants.
22075 ac_int64 a = 20000001;
22076 ac_int64 b = 40000005;
22078 int does_int64_work()
22082 if (sizeof(ac_int64) != 8)
22083 return 0; /* definitely not the right size */
22085 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22093 exit(! does_int64_work());
22096 rm -f conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22100 *) ac_try_echo
=$ac_try;;
22102 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22103 $as_echo "$ac_try_echo") >&5
22104 (eval "$ac_link") 2>&5
22106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22108 { (case "(($ac_try" in
22109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22113 $as_echo "$ac_try_echo") >&5
22114 (eval "$ac_try") 2>&5
22116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 pgac_cv_type_long_int_64=yes
22120 $as_echo "$as_me: program exited with status $ac_status" >&5
22121 $as_echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ( exit $ac_status )
22125 pgac_cv_type_long_int_64=no
22127 rm -rf conftest.dSYM
22128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22133 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
22134 $as_echo "$pgac_cv_type_long_int_64" >&6; }
22136 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
22137 if test x"$pgac_cv_type_long_int_64" = xyes ; then
22139 cat >>confdefs.h <<\_ACEOF
22140 #define HAVE_LONG_INT_64 1
22146 if test x"$HAVE_LONG_INT_64" = x"no" ; then
22147 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
22148 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
22149 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
22150 $as_echo_n "(cached) " >&6
22152 if test "$cross_compiling" = yes; then
22153 # If cross-compiling, check the size reported by the compiler and
22154 # trust that the arithmetic works.
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22165 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
22172 rm -f conftest.$ac_objext
22173 if { (ac_try="$ac_compile"
22174 case "(($ac_try" in
22175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22176 *) ac_try_echo
=$ac_try;;
22178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22179 $as_echo "$ac_try_echo") >&5
22180 (eval "$ac_compile") 2>conftest.er1
22182 grep -v '^ *+' conftest.er1
>conftest.err
22184 cat conftest.err
>&5
22185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && {
22187 test -z "$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22189 } && test -s conftest.
$ac_objext; then
22190 pgac_cv_type_long_long_int_64
=yes
22192 $as_echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.
$ac_ext >&5
22195 pgac_cv_type_long_long_int_64
=no
22198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22200 cat >conftest.
$ac_ext <<_ACEOF
22203 cat confdefs.h
>>conftest.
$ac_ext
22204 cat >>conftest.
$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22206 typedef long long int ac_int64;
22209 * These are globals to discourage the compiler from folding all the
22210 * arithmetic tests down to compile-time constants.
22212 ac_int64 a = 20000001;
22213 ac_int64 b = 40000005;
22215 int does_int64_work()
22219 if (sizeof(ac_int64) != 8)
22220 return 0; /* definitely not the right size */
22222 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22230 exit(! does_int64_work());
22233 rm -f conftest
$ac_exeext
22234 if { (ac_try
="$ac_link"
22235 case "(($ac_try" in
22236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22240 $as_echo "$ac_try_echo") >&5
22241 (eval "$ac_link") 2>&5
22243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22245 { (case "(($ac_try" in
22246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22247 *) ac_try_echo
=$ac_try;;
22249 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22250 $as_echo "$ac_try_echo") >&5
22251 (eval "$ac_try") 2>&5
22253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 pgac_cv_type_long_long_int_64
=yes
22257 $as_echo "$as_me: program exited with status $ac_status" >&5
22258 $as_echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.
$ac_ext >&5
22261 ( exit $ac_status )
22262 pgac_cv_type_long_long_int_64
=no
22264 rm -rf conftest.dSYM
22265 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22270 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
22271 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
22273 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
22274 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
22276 cat >>confdefs.h
<<\_ACEOF
22277 #define HAVE_LONG_LONG_INT_64 1
22286 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
; then
22287 cat >conftest.
$ac_ext <<_ACEOF
22290 cat confdefs.h
>>conftest.
$ac_ext
22291 cat >>conftest.
$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22294 #define INT64CONST(x) x##LL
22295 long long int foo = INT64CONST(0x1234567890123456);
22305 rm -f conftest.
$ac_objext
22306 if { (ac_try
="$ac_compile"
22307 case "(($ac_try" in
22308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22312 $as_echo "$ac_try_echo") >&5
22313 (eval "$ac_compile") 2>conftest.er1
22315 grep -v '^ *+' conftest.er1 >conftest.err
22317 cat conftest.err >&5
22318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } && {
22320 test -z "$ac_c_werror_flag" ||
22321 test ! -s conftest.err
22322 } && test -s conftest.$ac_objext; then
22324 cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_LL_CONSTANTS 1
22329 $as_echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339 # If we found "long int" is 64 bits, assume snprintf handles it. If
22340 # we found we need to use "long long int", better check. We cope with
22341 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
22342 # work, fall back to our own snprintf emulation (which we know uses %lld).
22344 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
22345 if test $pgac_need_repl_snprintf = no; then
22346 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
22347 $as_echo_n "checking snprintf format for long long int... " >&6; }
22348 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
22349 $as_echo_n "(cached) " >&6
22351 for pgac_format in '%lld' '%qd' '%I64d'; do
22352 if test "$cross_compiling" = yes; then
22353 pgac_cv_snprintf_long_long_int_format=cross; break
22355 cat >conftest.$ac_ext <<_ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22362 typedef long long int ac_int64;
22363 #define INT64_FORMAT "$pgac_format"
22365 ac_int64 a = 20000001;
22366 ac_int64 b = 40000005;
22368 int does_int64_snprintf_work()
22373 if (sizeof(ac_int64) != 8)
22374 return 0; /* doesn't look like the right size */
22377 snprintf(buf, 100, INT64_FORMAT, c);
22378 if (strcmp(buf, "800000140000005") != 0)
22379 return 0; /* either multiply or snprintf is busted */
22383 exit(! does_int64_snprintf_work());
22386 rm -f conftest$ac_exeext
22387 if { (ac_try="$ac_link"
22388 case "(($ac_try" in
22389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22390 *) ac_try_echo
=$ac_try;;
22392 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22393 $as_echo "$ac_try_echo") >&5
22394 (eval "$ac_link") 2>&5
22396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22398 { (case "(($ac_try" in
22399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22403 $as_echo "$ac_try_echo") >&5
22404 (eval "$ac_try") 2>&5
22406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
22410 $as_echo "$as_me: program exited with status $ac_status" >&5
22411 $as_echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22415 rm -rf conftest.dSYM
22416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22423 LONG_LONG_INT_FORMAT=''
22425 case $pgac_cv_snprintf_long_long_int_format in
22426 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
22427 $as_echo "cannot test (not on host machine)" >&6; };;
22428 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
22429 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
22430 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
22431 *) { $as_echo "$as_me:$LINENO: result: none" >&5
22432 $as_echo "none" >&6; };;
22434 if test "$LONG_LONG_INT_FORMAT" = ""; then
22435 # Force usage of our own snprintf, since system snprintf is broken
22436 pgac_need_repl_snprintf=yes
22437 LONG_LONG_INT_FORMAT='%lld'
22440 # Here if we previously decided we needed to use our own snprintf
22441 LONG_LONG_INT_FORMAT='%lld'
22443 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" |
sed 's/d$/u/'`
22444 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
22445 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
22447 # Here if we are not using 'long long int' at all
22448 INT64_FORMAT='"%ld"'
22449 UINT64_FORMAT='"%lu"'
22453 cat >>confdefs.h <<_ACEOF
22454 #define INT64_FORMAT $INT64_FORMAT
22459 cat >>confdefs.h <<_ACEOF
22460 #define UINT64_FORMAT $UINT64_FORMAT
22464 # Now we have checked all the reasons to replace snprintf
22465 if test $pgac_need_repl_snprintf = yes; then
22467 cat >>confdefs.h <<\_ACEOF
22468 #define USE_REPL_SNPRINTF 1
22471 case " $LIBOBJS " in
22472 *" snprintf.$ac_objext "* ) ;;
22473 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22479 # Need a #define for the size of Datum (unsigned long)
22480 # The cast to long int works around a bug in the HP C Compiler
22481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22482 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
22483 # This bug is HP SR number 8606223364.
22484 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
22485 $as_echo_n "checking size of unsigned long... " >&6; }
22486 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
22487 $as_echo_n "(cached) " >&6
22489 if test "$cross_compiling" = yes; then
22490 # Depending upon the size, compute the lo and hi bounds.
22491 cat >conftest.$ac_ext <<_ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497 $ac_includes_default
22501 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
22508 rm -f conftest.$ac_objext
22509 if { (ac_try="$ac_compile"
22510 case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22515 $as_echo "$ac_try_echo") >&5
22516 (eval "$ac_compile") 2>conftest.er1
22518 grep -v '^
*+' conftest.er1 >conftest.err
22520 cat conftest.err >&5
22521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } && {
22523 test -z "$ac_c_werror_flag" ||
22524 test ! -s conftest.err
22525 } && test -s conftest.$ac_objext; then
22528 cat >conftest.$ac_ext <<_ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22534 $ac_includes_default
22538 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22552 $as_echo "$ac_try_echo") >&5
22553 (eval "$ac_compile") 2>conftest.er1
22555 grep -v '^
*+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } && {
22560 test -z "$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22562 } && test -s conftest.$ac_objext; then
22563 ac_hi=$ac_mid; break
22565 $as_echo "$as_me: failed program was:" >&5
22566 sed 's
/^
/|
/' conftest.$ac_ext >&5
22568 ac_lo=`expr $ac_mid + 1`
22569 if test $ac_lo -le $ac_mid; then
22573 ac_mid=`expr 2 '*' $ac_mid + 1`
22576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 $as_echo "$as_me: failed program was:" >&5
22580 sed 's
/^
/|
/' conftest.$ac_ext >&5
22582 cat >conftest.$ac_ext <<_ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 $ac_includes_default
22592 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
22599 rm -f conftest.$ac_objext
22600 if { (ac_try="$ac_compile"
22601 case "(($ac_try" in
22602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603 *) ac_try_echo=$ac_try;;
22605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22606 $as_echo "$ac_try_echo") >&5
22607 (eval "$ac_compile") 2>conftest.er1
22609 grep -v '^
*+' conftest.er1 >conftest.err
22611 cat conftest.err >&5
22612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } && {
22614 test -z "$ac_c_werror_flag" ||
22615 test ! -s conftest.err
22616 } && test -s conftest.$ac_objext; then
22619 cat >conftest.$ac_ext <<_ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h. */
22625 $ac_includes_default
22629 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
22636 rm -f conftest.$ac_objext
22637 if { (ac_try="$ac_compile"
22638 case "(($ac_try" in
22639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640 *) ac_try_echo=$ac_try;;
22642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22643 $as_echo "$ac_try_echo") >&5
22644 (eval "$ac_compile") 2>conftest.er1
22646 grep -v '^
*+' conftest.er1 >conftest.err
22648 cat conftest.err >&5
22649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest.$ac_objext; then
22654 ac_lo=$ac_mid; break
22656 $as_echo "$as_me: failed program was:" >&5
22657 sed 's
/^
/|
/' conftest.$ac_ext >&5
22659 ac_hi=`expr '(' $ac_mid ')' - 1`
22660 if test $ac_mid -le $ac_hi; then
22664 ac_mid=`expr 2 '*' $ac_mid`
22667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22670 $as_echo "$as_me: failed program was:" >&5
22671 sed 's
/^
/|
/' conftest.$ac_ext >&5
22676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22680 # Binary search between lo and hi bounds.
22681 while test "x$ac_lo" != "x$ac_hi"; do
22682 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22683 cat >conftest.$ac_ext <<_ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 $ac_includes_default
22693 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704 *) ac_try_echo=$ac_try;;
22706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22707 $as_echo "$ac_try_echo") >&5
22708 (eval "$ac_compile") 2>conftest.er1
22710 grep -v '^
*+' conftest.er1 >conftest.err
22712 cat conftest.err >&5
22713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } && {
22715 test -z "$ac_c_werror_flag" ||
22716 test ! -s conftest.err
22717 } && test -s conftest.$ac_objext; then
22720 $as_echo "$as_me: failed program was:" >&5
22721 sed 's
/^
/|
/' conftest.$ac_ext >&5
22723 ac_lo=`expr '(' $ac_mid ')' + 1`
22726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22729 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
22730 '') if test "$ac_cv_type_unsigned_long" = yes; then
22731 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22732 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
22733 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22734 See \`config.log
' for more details." >&5
22735 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22736 See \`config.log' for more details.
" >&2;}
22737 { (exit 77); exit 77; }; }; }
22739 ac_cv_sizeof_unsigned_long=0
22743 cat >conftest.$ac_ext <<_ACEOF
22746 cat confdefs.h >>conftest.$ac_ext
22747 cat >>conftest.$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 $ac_includes_default
22750 static long int longval () { return (long int) (sizeof (unsigned long)); }
22751 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
22753 #include <stdlib.h>
22758 FILE *f = fopen ("conftest.val
", "w
");
22761 if (((long int) (sizeof (unsigned long))) < 0)
22763 long int i = longval ();
22764 if (i != ((long int) (sizeof (unsigned long))))
22766 fprintf (f, "%ld
", i);
22770 unsigned long int i = ulongval ();
22771 if (i != ((long int) (sizeof (unsigned long))))
22773 fprintf (f, "%lu
", i);
22775 /* Do not output a trailing newline, as this causes \r\n confusion
22776 on some platforms. */
22777 return ferror (f) || fclose (f) != 0;
22783 rm -f conftest$ac_exeext
22784 if { (ac_try="$ac_link"
22785 case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22789 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22790 $as_echo "$ac_try_echo") >&5
22791 (eval "$ac_link") 2>&5
22793 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22795 { (case "(($ac_try" in
22796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797 *) ac_try_echo=$ac_try;;
22799 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22800 $as_echo "$ac_try_echo") >&5
22801 (eval "$ac_try") 2>&5
22803 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22804 (exit $ac_status); }; }; then
22805 ac_cv_sizeof_unsigned_long=`cat conftest.val`
22807 $as_echo "$as_me: program exited with status
$ac_status" >&5
22808 $as_echo "$as_me: failed program was
:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 ( exit $ac_status )
22812 if test "$ac_cv_type_unsigned_long" = yes; then
22813 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
22814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22815 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22816 See \`config.log' for more details.
" >&5
22817 $as_echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
22818 See \
`config.log' for more details." >&2;}
22819 { (exit 77); exit 77; }; }; }
22821 ac_cv_sizeof_unsigned_long=0
22824 rm -rf conftest.dSYM
22825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22829 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
22830 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22834 cat >>confdefs.h <<_ACEOF
22835 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22840 # And check size of void *, size_t (enables tweaks for > 32bit address space)
22841 # The cast to long int works around a bug in the HP C Compiler
22842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22843 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
22844 # This bug is HP SR number 8606223364.
22845 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22846 $as_echo_n "checking size of void *... " >&6; }
22847 if test "${ac_cv_sizeof_void_p+set}" = set; then
22848 $as_echo_n "(cached) " >&6
22850 if test "$cross_compiling" = yes; then
22851 # Depending upon the size, compute the lo and hi bounds.
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 $ac_includes_default
22862 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22876 $as_echo "$ac_try_echo") >&5
22877 (eval "$ac_compile") 2>conftest.er1
22879 grep -v '^
*+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } && {
22884 test -z "$ac_c_werror_flag" ||
22885 test ! -s conftest.err
22886 } && test -s conftest.$ac_objext; then
22889 cat >conftest.$ac_ext <<_ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 $ac_includes_default
22899 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22906 rm -f conftest.$ac_objext
22907 if { (ac_try="$ac_compile"
22908 case "(($ac_try" in
22909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910 *) ac_try_echo=$ac_try;;
22912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22913 $as_echo "$ac_try_echo") >&5
22914 (eval "$ac_compile") 2>conftest.er1
22916 grep -v '^
*+' conftest.er1 >conftest.err
22918 cat conftest.err >&5
22919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && {
22921 test -z "$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22923 } && test -s conftest.$ac_objext; then
22924 ac_hi=$ac_mid; break
22926 $as_echo "$as_me: failed program was:" >&5
22927 sed 's
/^
/|
/' conftest.$ac_ext >&5
22929 ac_lo=`expr $ac_mid + 1`
22930 if test $ac_lo -le $ac_mid; then
22934 ac_mid=`expr 2 '*' $ac_mid + 1`
22937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 $as_echo "$as_me: failed program was:" >&5
22941 sed 's
/^
/|
/' conftest.$ac_ext >&5
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 $ac_includes_default
22953 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
22960 rm -f conftest.$ac_objext
22961 if { (ac_try="$ac_compile"
22962 case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22967 $as_echo "$ac_try_echo") >&5
22968 (eval "$ac_compile") 2>conftest.er1
22970 grep -v '^
*+' conftest.er1 >conftest.err
22972 cat conftest.err >&5
22973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && {
22975 test -z "$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 } && test -s conftest.$ac_objext; then
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 $ac_includes_default
22990 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
22997 rm -f conftest.$ac_objext
22998 if { (ac_try="$ac_compile"
22999 case "(($ac_try" in
23000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001 *) ac_try_echo=$ac_try;;
23003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23004 $as_echo "$ac_try_echo") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23007 grep -v '^
*+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23015 ac_lo=$ac_mid; break
23017 $as_echo "$as_me: failed program was:" >&5
23018 sed 's
/^
/|
/' conftest.$ac_ext >&5
23020 ac_hi=`expr '(' $ac_mid ')' - 1`
23021 if test $ac_mid -le $ac_hi; then
23025 ac_mid=`expr 2 '*' $ac_mid`
23028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 $as_echo "$as_me: failed program was:" >&5
23032 sed 's
/^
/|
/' conftest.$ac_ext >&5
23037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23041 # Binary search between lo and hi bounds.
23042 while test "x$ac_lo" != "x$ac_hi"; do
23043 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 $ac_includes_default
23054 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23068 $as_echo "$ac_try_echo") >&5
23069 (eval "$ac_compile") 2>conftest.er1
23071 grep -v '^
*+' conftest.er1 >conftest.err
23073 cat conftest.err >&5
23074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } && {
23076 test -z "$ac_c_werror_flag" ||
23077 test ! -s conftest.err
23078 } && test -s conftest.$ac_objext; then
23081 $as_echo "$as_me: failed program was:" >&5
23082 sed 's
/^
/|
/' conftest.$ac_ext >&5
23084 ac_lo=`expr '(' $ac_mid ')' + 1`
23087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23091 '') if test "$ac_cv_type_void_p" = yes; then
23092 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23093 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
23094 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23095 See \`config.log
' for more details." >&5
23096 $as_echo "$as_me: error: cannot compute sizeof (void *)
23097 See \`config.log' for more details.
" >&2;}
23098 { (exit 77); exit 77; }; }; }
23100 ac_cv_sizeof_void_p=0
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 $ac_includes_default
23111 static long int longval () { return (long int) (sizeof (void *)); }
23112 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23114 #include <stdlib.h>
23119 FILE *f = fopen ("conftest.val
", "w
");
23122 if (((long int) (sizeof (void *))) < 0)
23124 long int i = longval ();
23125 if (i != ((long int) (sizeof (void *))))
23127 fprintf (f, "%ld
", i);
23131 unsigned long int i = ulongval ();
23132 if (i != ((long int) (sizeof (void *))))
23134 fprintf (f, "%lu
", i);
23136 /* Do not output a trailing newline, as this causes \r\n confusion
23137 on some platforms. */
23138 return ferror (f) || fclose (f) != 0;
23144 rm -f conftest$ac_exeext
23145 if { (ac_try="$ac_link"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23150 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23151 $as_echo "$ac_try_echo") >&5
23152 (eval "$ac_link") 2>&5
23154 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23156 { (case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23161 $as_echo "$ac_try_echo") >&5
23162 (eval "$ac_try") 2>&5
23164 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_cv_sizeof_void_p=`cat conftest.val`
23168 $as_echo "$as_me: program exited with status
$ac_status" >&5
23169 $as_echo "$as_me: failed program was
:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ( exit $ac_status )
23173 if test "$ac_cv_type_void_p" = yes; then
23174 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
23175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23176 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23177 See \`config.log' for more details.
" >&5
23178 $as_echo "$as_me: error
: cannot compute sizeof
(void
*)
23179 See \
`config.log' for more details." >&2;}
23180 { (exit 77); exit 77; }; }; }
23182 ac_cv_sizeof_void_p=0
23185 rm -rf conftest.dSYM
23186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23190 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23191 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23195 cat >>confdefs.h <<_ACEOF
23196 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23200 # The cast to long int works around a bug in the HP C Compiler
23201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23202 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
23203 # This bug is HP SR number 8606223364.
23204 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
23205 $as_echo_n "checking size of size_t... " >&6; }
23206 if test "${ac_cv_sizeof_size_t+set}" = set; then
23207 $as_echo_n "(cached) " >&6
23209 if test "$cross_compiling" = yes; then
23210 # Depending upon the size, compute the lo and hi bounds.
23211 cat >conftest.$ac_ext <<_ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 $ac_includes_default
23221 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
23228 rm -f conftest.$ac_objext
23229 if { (ac_try="$ac_compile"
23230 case "(($ac_try" in
23231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23232 *) ac_try_echo=$ac_try;;
23234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23235 $as_echo "$ac_try_echo") >&5
23236 (eval "$ac_compile") 2>conftest.er1
23238 grep -v '^
*+' conftest.er1 >conftest.err
23240 cat conftest.err >&5
23241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } && {
23243 test -z "$ac_c_werror_flag" ||
23244 test ! -s conftest.err
23245 } && test -s conftest.$ac_objext; then
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 $ac_includes_default
23258 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23265 rm -f conftest.$ac_objext
23266 if { (ac_try="$ac_compile"
23267 case "(($ac_try" in
23268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23269 *) ac_try_echo=$ac_try;;
23271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23272 $as_echo "$ac_try_echo") >&5
23273 (eval "$ac_compile") 2>conftest.er1
23275 grep -v '^
*+' conftest.er1 >conftest.err
23277 cat conftest.err >&5
23278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest.$ac_objext; then
23283 ac_hi=$ac_mid; break
23285 $as_echo "$as_me: failed program was:" >&5
23286 sed 's
/^
/|
/' conftest.$ac_ext >&5
23288 ac_lo=`expr $ac_mid + 1`
23289 if test $ac_lo -le $ac_mid; then
23293 ac_mid=`expr 2 '*' $ac_mid + 1`
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23299 $as_echo "$as_me: failed program was:" >&5
23300 sed 's
/^
/|
/' conftest.$ac_ext >&5
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23308 $ac_includes_default
23312 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23326 $as_echo "$ac_try_echo") >&5
23327 (eval "$ac_compile") 2>conftest.er1
23329 grep -v '^
*+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } && {
23334 test -z "$ac_c_werror_flag" ||
23335 test ! -s conftest.err
23336 } && test -s conftest.$ac_objext; then
23339 cat >conftest.$ac_ext <<_ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23345 $ac_includes_default
23349 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
23356 rm -f conftest.$ac_objext
23357 if { (ac_try="$ac_compile"
23358 case "(($ac_try" in
23359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360 *) ac_try_echo=$ac_try;;
23362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23363 $as_echo "$ac_try_echo") >&5
23364 (eval "$ac_compile") 2>conftest.er1
23366 grep -v '^
*+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && {
23371 test -z "$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 } && test -s conftest.$ac_objext; then
23374 ac_lo=$ac_mid; break
23376 $as_echo "$as_me: failed program was:" >&5
23377 sed 's
/^
/|
/' conftest.$ac_ext >&5
23379 ac_hi=`expr '(' $ac_mid ')' - 1`
23380 if test $ac_mid -le $ac_hi; then
23384 ac_mid=`expr 2 '*' $ac_mid`
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 $as_echo "$as_me: failed program was:" >&5
23391 sed 's
/^
/|
/' conftest.$ac_ext >&5
23396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23400 # Binary search between lo and hi bounds.
23401 while test "x$ac_lo" != "x$ac_hi"; do
23402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23403 cat >conftest.$ac_ext <<_ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h. */
23409 $ac_includes_default
23413 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23420 rm -f conftest.$ac_objext
23421 if { (ac_try="$ac_compile"
23422 case "(($ac_try" in
23423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424 *) ac_try_echo=$ac_try;;
23426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23427 $as_echo "$ac_try_echo") >&5
23428 (eval "$ac_compile") 2>conftest.er1
23430 grep -v '^
*+' conftest.er1 >conftest.err
23432 cat conftest.err >&5
23433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); } && {
23435 test -z "$ac_c_werror_flag" ||
23436 test ! -s conftest.err
23437 } && test -s conftest.$ac_objext; then
23440 $as_echo "$as_me: failed program was:" >&5
23441 sed 's
/^
/|
/' conftest.$ac_ext >&5
23443 ac_lo=`expr '(' $ac_mid ')' + 1`
23446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23449 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23450 '') if test "$ac_cv_type_size_t" = yes; then
23451 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23452 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
23453 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23454 See \`config.log
' for more details." >&5
23455 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23456 See \`config.log' for more details.
" >&2;}
23457 { (exit 77); exit 77; }; }; }
23459 ac_cv_sizeof_size_t=0
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23469 $ac_includes_default
23470 static long int longval () { return (long int) (sizeof (size_t)); }
23471 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
23473 #include <stdlib.h>
23478 FILE *f = fopen ("conftest.val
", "w
");
23481 if (((long int) (sizeof (size_t))) < 0)
23483 long int i = longval ();
23484 if (i != ((long int) (sizeof (size_t))))
23486 fprintf (f, "%ld
", i);
23490 unsigned long int i = ulongval ();
23491 if (i != ((long int) (sizeof (size_t))))
23493 fprintf (f, "%lu
", i);
23495 /* Do not output a trailing newline, as this causes \r\n confusion
23496 on some platforms. */
23497 return ferror (f) || fclose (f) != 0;
23503 rm -f conftest$ac_exeext
23504 if { (ac_try="$ac_link"
23505 case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23509 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23510 $as_echo "$ac_try_echo") >&5
23511 (eval "$ac_link") 2>&5
23513 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23515 { (case "(($ac_try" in
23516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517 *) ac_try_echo=$ac_try;;
23519 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23520 $as_echo "$ac_try_echo") >&5
23521 (eval "$ac_try") 2>&5
23523 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23524 (exit $ac_status); }; }; then
23525 ac_cv_sizeof_size_t=`cat conftest.val`
23527 $as_echo "$as_me: program exited with status
$ac_status" >&5
23528 $as_echo "$as_me: failed program was
:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ( exit $ac_status )
23532 if test "$ac_cv_type_size_t" = yes; then
23533 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
23534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23535 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23536 See \`config.log' for more details.
" >&5
23537 $as_echo "$as_me: error
: cannot compute sizeof
(size_t
)
23538 See \
`config.log' for more details." >&2;}
23539 { (exit 77); exit 77; }; }; }
23541 ac_cv_sizeof_size_t=0
23544 rm -rf conftest.dSYM
23545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23549 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23550 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23554 cat >>confdefs.h <<_ACEOF
23555 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23560 # Decide whether float4 is passed by value: user-selectable, enabled by default
23561 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
23562 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
23565 # Check whether --enable-float4-byval was given.
23566 if test "${enable_float4_byval+set}" = set; then
23567 enableval=$enable_float4_byval;
23571 cat >>confdefs.h <<\_ACEOF
23572 #define USE_FLOAT4_BYVAL 1
23575 float4passbyval=true
23578 float4passbyval=false
23581 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
23582 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
23583 { (exit 1); exit 1; }; }
23588 enable_float4_byval=yes
23590 cat >>confdefs.h <<\_ACEOF
23591 #define USE_FLOAT4_BYVAL 1
23594 float4passbyval=true
23598 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
23599 $as_echo "$enable_float4_byval" >&6; }
23601 cat >>confdefs.h <<_ACEOF
23602 #define FLOAT4PASSBYVAL $float4passbyval
23606 # Decide whether float8 is passed by value.
23607 # Note: this setting also controls int8 and related types such as timestamp.
23608 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
23609 # If not, trying to select it is an error.
23610 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
23611 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
23612 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
23615 # Check whether --enable-float8-byval was given.
23616 if test "${enable_float8_byval+set}" = set; then
23617 enableval=$enable_float8_byval;
23626 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23627 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23628 { (exit 1); exit 1; }; }
23633 enable_float8_byval=yes
23641 # Check whether --enable-float8-byval was given.
23642 if test "${enable_float8_byval+set}" = set; then
23643 enableval=$enable_float8_byval;
23652 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23653 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23654 { (exit 1); exit 1; }; }
23659 enable_float8_byval=no
23664 if test "$enable_float8_byval" = yes ; then
23665 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
23666 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
23667 { (exit 1); exit 1; }; }
23670 if test "$enable_float8_byval" = yes ; then
23672 cat >>confdefs.h <<\_ACEOF
23673 #define USE_FLOAT8_BYVAL 1
23676 float8passbyval=true
23678 float8passbyval=false
23680 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
23681 $as_echo "$enable_float8_byval" >&6; }
23683 cat >>confdefs.h <<_ACEOF
23684 #define FLOAT8PASSBYVAL $float8passbyval
23688 # Determine memory alignment requirements for the basic C data types.
23690 # The cast to long int works around a bug in the HP C Compiler,
23691 # see AC_CHECK_SIZEOF for more information.
23692 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
23693 $as_echo_n "checking alignment of short... " >&6; }
23694 if test "${ac_cv_alignof_short+set}" = set; then
23695 $as_echo_n "(cached) " >&6
23697 if test "$cross_compiling" = yes; then
23698 # Depending upon the size, compute the lo and hi bounds.
23699 cat >conftest.$ac_ext <<_ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h. */
23705 $ac_includes_default
23707 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23709 typedef struct { char x; short y; } ac__type_alignof_;
23713 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23720 rm -f conftest.$ac_objext
23721 if { (ac_try="$ac_compile"
23722 case "(($ac_try" in
23723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23724 *) ac_try_echo
=$ac_try;;
23726 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23727 $as_echo "$ac_try_echo") >&5
23728 (eval "$ac_compile") 2>conftest.er1
23730 grep -v '^ *+' conftest.er1
>conftest.err
23732 cat conftest.err
>&5
23733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } && {
23735 test -z "$ac_c_werror_flag" ||
23736 test ! -s conftest.err
23737 } && test -s conftest.
$ac_objext; then
23740 cat >conftest.
$ac_ext <<_ACEOF
23743 cat confdefs.h
>>conftest.
$ac_ext
23744 cat >>conftest.
$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 $ac_includes_default
23748 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23750 typedef struct { char x; short y; } ac__type_alignof_;
23754 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23761 rm -f conftest.
$ac_objext
23762 if { (ac_try
="$ac_compile"
23763 case "(($ac_try" in
23764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23768 $as_echo "$ac_try_echo") >&5
23769 (eval "$ac_compile") 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } && {
23776 test -z "$ac_c_werror_flag" ||
23777 test ! -s conftest.err
23778 } && test -s conftest.$ac_objext; then
23779 ac_hi=$ac_mid; break
23781 $as_echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_lo=`expr $ac_mid + 1`
23785 if test $ac_lo -le $ac_mid; then
23789 ac_mid=`expr 2 '*' $ac_mid + 1`
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23795 $as_echo "$as_me: failed program was:" >&5
23796 sed 's/^/| /' conftest.$ac_ext >&5
23798 cat >conftest.$ac_ext <<_ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h. */
23804 $ac_includes_default
23806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23808 typedef struct { char x; short y; } ac__type_alignof_;
23812 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23823 *) ac_try_echo
=$ac_try;;
23825 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23826 $as_echo "$ac_try_echo") >&5
23827 (eval "$ac_compile") 2>conftest.er1
23829 grep -v '^ *+' conftest.er1
>conftest.err
23831 cat conftest.err
>&5
23832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); } && {
23834 test -z "$ac_c_werror_flag" ||
23835 test ! -s conftest.err
23836 } && test -s conftest.
$ac_objext; then
23839 cat >conftest.
$ac_ext <<_ACEOF
23842 cat confdefs.h
>>conftest.
$ac_ext
23843 cat >>conftest.
$ac_ext <<_ACEOF
23844 /* end confdefs.h. */
23845 $ac_includes_default
23847 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23849 typedef struct { char x; short y; } ac__type_alignof_;
23853 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23860 rm -f conftest.
$ac_objext
23861 if { (ac_try
="$ac_compile"
23862 case "(($ac_try" in
23863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23864 *) ac_try_echo=$ac_try;;
23866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23867 $as_echo "$ac_try_echo") >&5
23868 (eval "$ac_compile") 2>conftest.er1
23870 grep -v '^ *+' conftest.er1 >conftest.err
23872 cat conftest.err >&5
23873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } && {
23875 test -z "$ac_c_werror_flag" ||
23876 test ! -s conftest.err
23877 } && test -s conftest.$ac_objext; then
23878 ac_lo=$ac_mid; break
23880 $as_echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 ac_hi=`expr '(' $ac_mid ')' - 1`
23884 if test $ac_mid -le $ac_hi; then
23888 ac_mid=`expr 2 '*' $ac_mid`
23891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23894 $as_echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 # Binary search between lo and hi bounds.
23905 while test "x$ac_lo" != "x$ac_hi"; do
23906 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
23915 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23917 typedef struct { char x; short y; } ac__type_alignof_;
23921 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23928 rm -f conftest.$ac_objext
23929 if { (ac_try="$ac_compile"
23930 case "(($ac_try" in
23931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23932 *) ac_try_echo
=$ac_try;;
23934 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23935 $as_echo "$ac_try_echo") >&5
23936 (eval "$ac_compile") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1
>conftest.err
23940 cat conftest.err
>&5
23941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest.
$ac_objext; then
23948 $as_echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.
$ac_ext >&5
23951 ac_lo
=`expr '(' $ac_mid ')' + 1`
23954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23957 ?
*) ac_cv_alignof_short
=$ac_lo;;
23958 '') if test "$ac_cv_type_short" = yes; then
23959 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23961 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
23962 See \`config.log' for more details." >&5
23963 $as_echo "$as_me: error: cannot compute alignment of short
23964 See \`config.log' for more details." >&2;}
23965 { (exit 77); exit 77; }; }; }
23967 ac_cv_alignof_short
=0
23971 cat >conftest.
$ac_ext <<_ACEOF
23974 cat confdefs.h
>>conftest.
$ac_ext
23975 cat >>conftest.
$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23977 $ac_includes_default
23979 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23981 typedef struct { char x; short y; } ac__type_alignof_;
23982 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23983 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23985 #include <stdlib.h>
23990 FILE *f = fopen ("conftest.val", "w");
23993 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23995 long int i = longval ();
23996 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23998 fprintf (f, "%ld", i);
24002 unsigned long int i = ulongval ();
24003 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24005 fprintf (f, "%lu", i);
24007 /* Do not output a trailing newline, as this causes \r\n confusion
24008 on some platforms. */
24009 return ferror (f) || fclose (f) != 0;
24015 rm -f conftest
$ac_exeext
24016 if { (ac_try
="$ac_link"
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_link") 2>&5
24025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24027 { (case "(($ac_try" in
24028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24029 *) ac_try_echo
=$ac_try;;
24031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24032 $as_echo "$ac_try_echo") >&5
24033 (eval "$ac_try") 2>&5
24035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); }; }; then
24037 ac_cv_alignof_short
=`cat conftest.val`
24039 $as_echo "$as_me: program exited with status $ac_status" >&5
24040 $as_echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.
$ac_ext >&5
24043 ( exit $ac_status )
24044 if test "$ac_cv_type_short" = yes; then
24045 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24047 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24048 See \`config.log' for more details." >&5
24049 $as_echo "$as_me: error: cannot compute alignment of short
24050 See \`config.log' for more details." >&2;}
24051 { (exit 77); exit 77; }; }; }
24053 ac_cv_alignof_short
=0
24056 rm -rf conftest.dSYM
24057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24061 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
24062 $as_echo "$ac_cv_alignof_short" >&6; }
24066 cat >>confdefs.h
<<_ACEOF
24067 #define ALIGNOF_SHORT $ac_cv_alignof_short
24071 # The cast to long int works around a bug in the HP C Compiler,
24072 # see AC_CHECK_SIZEOF for more information.
24073 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
24074 $as_echo_n "checking alignment of int... " >&6; }
24075 if test "${ac_cv_alignof_int+set}" = set; then
24076 $as_echo_n "(cached) " >&6
24078 if test "$cross_compiling" = yes; then
24079 # Depending upon the size, compute the lo and hi bounds.
24080 cat >conftest.
$ac_ext <<_ACEOF
24083 cat confdefs.h
>>conftest.
$ac_ext
24084 cat >>conftest.
$ac_ext <<_ACEOF
24085 /* end confdefs.h. */
24086 $ac_includes_default
24088 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24090 typedef struct { char x; int y; } ac__type_alignof_;
24094 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24101 rm -f conftest.
$ac_objext
24102 if { (ac_try
="$ac_compile"
24103 case "(($ac_try" in
24104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24105 *) ac_try_echo=$ac_try;;
24107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24108 $as_echo "$ac_try_echo") >&5
24109 (eval "$ac_compile") 2>conftest.er1
24111 grep -v '^ *+' conftest.er1 >conftest.err
24113 cat conftest.err >&5
24114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } && {
24116 test -z "$ac_c_werror_flag" ||
24117 test ! -s conftest.err
24118 } && test -s conftest.$ac_objext; then
24121 cat >conftest.$ac_ext <<_ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24127 $ac_includes_default
24129 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24131 typedef struct { char x; int y; } ac__type_alignof_;
24135 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24142 rm -f conftest.$ac_objext
24143 if { (ac_try="$ac_compile"
24144 case "(($ac_try" in
24145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24146 *) ac_try_echo
=$ac_try;;
24148 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24149 $as_echo "$ac_try_echo") >&5
24150 (eval "$ac_compile") 2>conftest.er1
24152 grep -v '^ *+' conftest.er1
>conftest.err
24154 cat conftest.err
>&5
24155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } && {
24157 test -z "$ac_c_werror_flag" ||
24158 test ! -s conftest.err
24159 } && test -s conftest.
$ac_objext; then
24160 ac_hi
=$ac_mid; break
24162 $as_echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.
$ac_ext >&5
24165 ac_lo
=`expr $ac_mid + 1`
24166 if test $ac_lo -le $ac_mid; then
24170 ac_mid
=`expr 2 '*' $ac_mid + 1`
24173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24176 $as_echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.
$ac_ext >&5
24179 cat >conftest.
$ac_ext <<_ACEOF
24182 cat confdefs.h
>>conftest.
$ac_ext
24183 cat >>conftest.
$ac_ext <<_ACEOF
24184 /* end confdefs.h. */
24185 $ac_includes_default
24187 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24189 typedef struct { char x; int y; } ac__type_alignof_;
24193 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24200 rm -f conftest.
$ac_objext
24201 if { (ac_try
="$ac_compile"
24202 case "(($ac_try" in
24203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24204 *) ac_try_echo=$ac_try;;
24206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24207 $as_echo "$ac_try_echo") >&5
24208 (eval "$ac_compile") 2>conftest.er1
24210 grep -v '^ *+' conftest.er1 >conftest.err
24212 cat conftest.err >&5
24213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } && {
24215 test -z "$ac_c_werror_flag" ||
24216 test ! -s conftest.err
24217 } && test -s conftest.$ac_objext; then
24220 cat >conftest.$ac_ext <<_ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h. */
24226 $ac_includes_default
24228 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24230 typedef struct { char x; int y; } ac__type_alignof_;
24234 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24241 rm -f conftest.$ac_objext
24242 if { (ac_try="$ac_compile"
24243 case "(($ac_try" in
24244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24245 *) ac_try_echo
=$ac_try;;
24247 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24248 $as_echo "$ac_try_echo") >&5
24249 (eval "$ac_compile") 2>conftest.er1
24251 grep -v '^ *+' conftest.er1
>conftest.err
24253 cat conftest.err
>&5
24254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest.
$ac_objext; then
24259 ac_lo
=$ac_mid; break
24261 $as_echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.
$ac_ext >&5
24264 ac_hi
=`expr '(' $ac_mid ')' - 1`
24265 if test $ac_mid -le $ac_hi; then
24269 ac_mid
=`expr 2 '*' $ac_mid`
24272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24275 $as_echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.
$ac_ext >&5
24281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24285 # Binary search between lo and hi bounds.
24286 while test "x$ac_lo" != "x$ac_hi"; do
24287 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24288 cat >conftest.
$ac_ext <<_ACEOF
24291 cat confdefs.h
>>conftest.
$ac_ext
24292 cat >>conftest.
$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24294 $ac_includes_default
24296 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24298 typedef struct { char x; int y; } ac__type_alignof_;
24302 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24309 rm -f conftest.
$ac_objext
24310 if { (ac_try
="$ac_compile"
24311 case "(($ac_try" in
24312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24316 $as_echo "$ac_try_echo") >&5
24317 (eval "$ac_compile") 2>conftest.er1
24319 grep -v '^ *+' conftest.er1 >conftest.err
24321 cat conftest.err >&5
24322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } && {
24324 test -z "$ac_c_werror_flag" ||
24325 test ! -s conftest.err
24326 } && test -s conftest.$ac_objext; then
24329 $as_echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24332 ac_lo=`expr '(' $ac_mid ')' + 1`
24335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24338 ?*) ac_cv_alignof_int=$ac_lo;;
24339 '') if test "$ac_cv_type_int" = yes; then
24340 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24342 { { $as_echo "$as_me:$LINENO: error
: cannot compute alignment of int
24343 See \
`config.log' for more details." >&5
24344 $as_echo "$as_me: error: cannot compute alignment of int
24345 See \`config.log
' for more details." >&2;}
24346 { (exit 77); exit 77; }; }; }
24348 ac_cv_alignof_int=0
24352 cat >conftest.$ac_ext <<_ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 $ac_includes_default
24360 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24362 typedef struct { char x; int y; } ac__type_alignof_;
24363 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24364 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24366 #include <stdlib.h>
24371 FILE *f = fopen ("conftest.val", "w");
24374 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24376 long int i = longval ();
24377 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24379 fprintf (f, "%ld", i);
24383 unsigned long int i = ulongval ();
24384 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24386 fprintf (f, "%lu", i);
24388 /* Do not output a trailing newline, as this causes \r\n confusion
24389 on some platforms. */
24390 return ferror (f) || fclose (f) != 0;
24396 rm -f conftest$ac_exeext
24397 if { (ac_try="$ac_link"
24398 case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24403 $as_echo "$ac_try_echo") >&5
24404 (eval "$ac_link") 2>&5
24406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24408 { (case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24413 $as_echo "$ac_try_echo") >&5
24414 (eval "$ac_try") 2>&5
24416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); }; }; then
24418 ac_cv_alignof_int=`cat conftest.val`
24420 $as_echo "$as_me: program exited with status $ac_status" >&5
24421 $as_echo "$as_me: failed program was:" >&5
24422 sed 's
/^
/|
/' conftest.$ac_ext >&5
24424 ( exit $ac_status )
24425 if test "$ac_cv_type_int" = yes; then
24426 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24427 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
24428 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24429 See \`config.log
' for more details." >&5
24430 $as_echo "$as_me: error: cannot compute alignment of int
24431 See \`config.log' for more details.
" >&2;}
24432 { (exit 77); exit 77; }; }; }
24434 ac_cv_alignof_int=0
24437 rm -rf conftest.dSYM
24438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24442 { $as_echo "$as_me:$LINENO: result
: $ac_cv_alignof_int" >&5
24443 $as_echo "$ac_cv_alignof_int" >&6; }
24447 cat >>confdefs.h <<_ACEOF
24448 #define ALIGNOF_INT $ac_cv_alignof_int
24452 # The cast to long int works around a bug in the HP C Compiler,
24453 # see AC_CHECK_SIZEOF for more information.
24454 { $as_echo "$as_me:$LINENO: checking alignment of long
" >&5
24455 $as_echo_n "checking alignment of long...
" >&6; }
24456 if test "${ac_cv_alignof_long+set}" = set; then
24457 $as_echo_n "(cached
) " >&6
24459 if test "$cross_compiling" = yes; then
24460 # Depending upon the size, compute the lo and hi bounds.
24461 cat >conftest.$ac_ext <<_ACEOF
24464 cat confdefs.h >>conftest.$ac_ext
24465 cat >>conftest.$ac_ext <<_ACEOF
24466 /* end confdefs.h. */
24467 $ac_includes_default
24469 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24471 typedef struct { char x; long y; } ac__type_alignof_;
24475 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24482 rm -f conftest.$ac_objext
24483 if { (ac_try="$ac_compile"
24484 case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24488 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24489 $as_echo "$ac_try_echo") >&5
24490 (eval "$ac_compile") 2>conftest.er1
24492 grep -v '^ *+' conftest.er1 >conftest.err
24494 cat conftest.err >&5
24495 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24496 (exit $ac_status); } && {
24497 test -z "$ac_c_werror_flag" ||
24498 test ! -s conftest.err
24499 } && test -s conftest.$ac_objext; then
24502 cat >conftest.$ac_ext <<_ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h. */
24508 $ac_includes_default
24510 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24512 typedef struct { char x; long y; } ac__type_alignof_;
24516 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24523 rm -f conftest.$ac_objext
24524 if { (ac_try="$ac_compile"
24525 case "(($ac_try" in
24526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24529 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24530 $as_echo "$ac_try_echo") >&5
24531 (eval "$ac_compile") 2>conftest.er1
24533 grep -v '^ *+' conftest.er1 >conftest.err
24535 cat conftest.err >&5
24536 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24537 (exit $ac_status); } && {
24538 test -z "$ac_c_werror_flag" ||
24539 test ! -s conftest.err
24540 } && test -s conftest.$ac_objext; then
24541 ac_hi=$ac_mid; break
24543 $as_echo "$as_me: failed program was
:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24546 ac_lo=`expr $ac_mid + 1`
24547 if test $ac_lo -le $ac_mid; then
24551 ac_mid=`expr 2 '*' $ac_mid + 1`
24554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24557 $as_echo "$as_me: failed program was
:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24560 cat >conftest.$ac_ext <<_ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h. */
24566 $ac_includes_default
24568 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24570 typedef struct { char x; long y; } ac__type_alignof_;
24574 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24581 rm -f conftest.$ac_objext
24582 if { (ac_try="$ac_compile"
24583 case "(($ac_try" in
24584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585 *) ac_try_echo=$ac_try;;
24587 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24588 $as_echo "$ac_try_echo") >&5
24589 (eval "$ac_compile") 2>conftest.er1
24591 grep -v '^ *+' conftest.er1 >conftest.err
24593 cat conftest.err >&5
24594 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest.$ac_objext; then
24601 cat >conftest.$ac_ext <<_ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h. */
24607 $ac_includes_default
24609 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24611 typedef struct { char x; long y; } ac__type_alignof_;
24615 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626 *) ac_try_echo=$ac_try;;
24628 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24629 $as_echo "$ac_try_echo") >&5
24630 (eval "$ac_compile") 2>conftest.er1
24632 grep -v '^ *+' conftest.er1 >conftest.err
24634 cat conftest.err >&5
24635 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24636 (exit $ac_status); } && {
24637 test -z "$ac_c_werror_flag" ||
24638 test ! -s conftest.err
24639 } && test -s conftest.$ac_objext; then
24640 ac_lo=$ac_mid; break
24642 $as_echo "$as_me: failed program was
:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24645 ac_hi=`expr '(' $ac_mid ')' - 1`
24646 if test $ac_mid -le $ac_hi; then
24650 ac_mid=`expr 2 '*' $ac_mid`
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24656 $as_echo "$as_me: failed program was
:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 # Binary search between lo and hi bounds.
24667 while test "x
$ac_lo" != "x
$ac_hi"; do
24668 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 $ac_includes_default
24677 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24679 typedef struct { char x; long y; } ac__type_alignof_;
24683 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24690 rm -f conftest.$ac_objext
24691 if { (ac_try="$ac_compile"
24692 case "(($ac_try" in
24693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694 *) ac_try_echo=$ac_try;;
24696 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24697 $as_echo "$ac_try_echo") >&5
24698 (eval "$ac_compile") 2>conftest.er1
24700 grep -v '^ *+' conftest.er1 >conftest.err
24702 cat conftest.err >&5
24703 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24704 (exit $ac_status); } && {
24705 test -z "$ac_c_werror_flag" ||
24706 test ! -s conftest.err
24707 } && test -s conftest.$ac_objext; then
24710 $as_echo "$as_me: failed program was
:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24713 ac_lo=`expr '(' $ac_mid ')' + 1`
24716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719 ?*) ac_cv_alignof_long=$ac_lo;;
24720 '') if test "$ac_cv_type_long" = yes; then
24721 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
24722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24723 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24724 See \`config.log' for more details.
" >&5
24725 $as_echo "$as_me: error
: cannot compute alignment of long
24726 See \
`config.log' for more details." >&2;}
24727 { (exit 77); exit 77; }; }; }
24729 ac_cv_alignof_long=0
24733 cat >conftest.$ac_ext <<_ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h. */
24739 $ac_includes_default
24741 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24743 typedef struct { char x; long y; } ac__type_alignof_;
24744 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24745 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24747 #include <stdlib.h>
24752 FILE *f = fopen ("conftest.val", "w");
24755 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24757 long int i = longval ();
24758 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24760 fprintf (f, "%ld", i);
24764 unsigned long int i = ulongval ();
24765 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24767 fprintf (f, "%lu", i);
24769 /* Do not output a trailing newline, as this causes \r\n confusion
24770 on some platforms. */
24771 return ferror (f) || fclose (f) != 0;
24777 rm -f conftest$ac_exeext
24778 if { (ac_try="$ac_link"
24779 case "(($ac_try" in
24780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24781 *) ac_try_echo
=$ac_try;;
24783 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24784 $as_echo "$ac_try_echo") >&5
24785 (eval "$ac_link") 2>&5
24787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24789 { (case "(($ac_try" in
24790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24794 $as_echo "$ac_try_echo") >&5
24795 (eval "$ac_try") 2>&5
24797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; }; then
24799 ac_cv_alignof_long=`cat conftest.val
`
24801 $as_echo "$as_me: program exited with status $ac_status" >&5
24802 $as_echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24805 ( exit $ac_status )
24806 if test "$ac_cv_type_long" = yes; then
24807 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24809 { { $as_echo "$as_me:$LINENO: error
: cannot compute alignment of long
24810 See \
`config.log' for more details." >&5
24811 $as_echo "$as_me: error: cannot compute alignment of long
24812 See \`config.log
' for more details." >&2;}
24813 { (exit 77); exit 77; }; }; }
24815 ac_cv_alignof_long=0
24818 rm -rf conftest.dSYM
24819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24823 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
24824 $as_echo "$ac_cv_alignof_long" >&6; }
24828 cat >>confdefs.h <<_ACEOF
24829 #define ALIGNOF_LONG $ac_cv_alignof_long
24833 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24834 # The cast to long int works around a bug in the HP C Compiler,
24835 # see AC_CHECK_SIZEOF for more information.
24836 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
24837 $as_echo_n "checking alignment of long long int... " >&6; }
24838 if test "${ac_cv_alignof_long_long_int+set}" = set; then
24839 $as_echo_n "(cached) " >&6
24841 if test "$cross_compiling" = yes; then
24842 # Depending upon the size, compute the lo and hi bounds.
24843 cat >conftest.$ac_ext <<_ACEOF
24846 cat confdefs.h >>conftest.$ac_ext
24847 cat >>conftest.$ac_ext <<_ACEOF
24848 /* end confdefs.h. */
24849 $ac_includes_default
24851 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24853 typedef struct { char x; long long int y; } ac__type_alignof_;
24857 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872 (eval "$ac_compile") 2>conftest.er1
24874 grep -v '^
*+' conftest.er1 >conftest.err
24876 cat conftest.err >&5
24877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878 (exit $ac_status); } && {
24879 test -z "$ac_c_werror_flag" ||
24880 test ! -s conftest.err
24881 } && test -s conftest.$ac_objext; then
24884 cat >conftest.$ac_ext <<_ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h. */
24890 $ac_includes_default
24892 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24894 typedef struct { char x; long long int y; } ac__type_alignof_;
24898 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24905 rm -f conftest.$ac_objext
24906 if { (ac_try="$ac_compile"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24912 $as_echo "$ac_try_echo") >&5
24913 (eval "$ac_compile") 2>conftest.er1
24915 grep -v '^
*+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest.$ac_objext; then
24923 ac_hi=$ac_mid; break
24925 $as_echo "$as_me: failed program was:" >&5
24926 sed 's
/^
/|
/' conftest.$ac_ext >&5
24928 ac_lo=`expr $ac_mid + 1`
24929 if test $ac_lo -le $ac_mid; then
24933 ac_mid=`expr 2 '*' $ac_mid + 1`
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24939 $as_echo "$as_me: failed program was:" >&5
24940 sed 's
/^
/|
/' conftest.$ac_ext >&5
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24948 $ac_includes_default
24950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24952 typedef struct { char x; long long int y; } ac__type_alignof_;
24956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24963 rm -f conftest.$ac_objext
24964 if { (ac_try="$ac_compile"
24965 case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24970 $as_echo "$ac_try_echo") >&5
24971 (eval "$ac_compile") 2>conftest.er1
24973 grep -v '^
*+' conftest.er1 >conftest.err
24975 cat conftest.err >&5
24976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } && {
24978 test -z "$ac_c_werror_flag" ||
24979 test ! -s conftest.err
24980 } && test -s conftest.$ac_objext; then
24983 cat >conftest.$ac_ext <<_ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 $ac_includes_default
24991 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24993 typedef struct { char x; long long int y; } ac__type_alignof_;
24997 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25004 rm -f conftest.$ac_objext
25005 if { (ac_try="$ac_compile"
25006 case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011 $as_echo "$ac_try_echo") >&5
25012 (eval "$ac_compile") 2>conftest.er1
25014 grep -v '^
*+' conftest.er1 >conftest.err
25016 cat conftest.err >&5
25017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } && {
25019 test -z "$ac_c_werror_flag" ||
25020 test ! -s conftest.err
25021 } && test -s conftest.$ac_objext; then
25022 ac_lo=$ac_mid; break
25024 $as_echo "$as_me: failed program was:" >&5
25025 sed 's
/^
/|
/' conftest.$ac_ext >&5
25027 ac_hi=`expr '(' $ac_mid ')' - 1`
25028 if test $ac_mid -le $ac_hi; then
25032 ac_mid=`expr 2 '*' $ac_mid`
25035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25038 $as_echo "$as_me: failed program was:" >&5
25039 sed 's
/^
/|
/' conftest.$ac_ext >&5
25044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25048 # Binary search between lo and hi bounds.
25049 while test "x$ac_lo" != "x$ac_hi"; do
25050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 $ac_includes_default
25059 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25061 typedef struct { char x; long long int y; } ac__type_alignof_;
25065 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25072 rm -f conftest.$ac_objext
25073 if { (ac_try="$ac_compile"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25079 $as_echo "$ac_try_echo") >&5
25080 (eval "$ac_compile") 2>conftest.er1
25082 grep -v '^
*+' conftest.er1 >conftest.err
25084 cat conftest.err >&5
25085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); } && {
25087 test -z "$ac_c_werror_flag" ||
25088 test ! -s conftest.err
25089 } && test -s conftest.$ac_objext; then
25092 $as_echo "$as_me: failed program was:" >&5
25093 sed 's
/^
/|
/' conftest.$ac_ext >&5
25095 ac_lo=`expr '(' $ac_mid ')' + 1`
25098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
25102 '') if test "$ac_cv_type_long_long_int" = yes; then
25103 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25104 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
25105 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25106 See \`config.log
' for more details." >&5
25107 $as_echo "$as_me: error: cannot compute alignment of long long int
25108 See \`config.log' for more details.
" >&2;}
25109 { (exit 77); exit 77; }; }; }
25111 ac_cv_alignof_long_long_int=0
25115 cat >conftest.$ac_ext <<_ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h. */
25121 $ac_includes_default
25123 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25125 typedef struct { char x; long long int y; } ac__type_alignof_;
25126 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25127 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25129 #include <stdlib.h>
25134 FILE *f = fopen ("conftest.val
", "w
");
25137 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25139 long int i = longval ();
25140 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25142 fprintf (f, "%ld
", i);
25146 unsigned long int i = ulongval ();
25147 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25149 fprintf (f, "%lu
", i);
25151 /* Do not output a trailing newline, as this causes \r\n confusion
25152 on some platforms. */
25153 return ferror (f) || fclose (f) != 0;
25159 rm -f conftest$ac_exeext
25160 if { (ac_try="$ac_link"
25161 case "(($ac_try" in
25162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163 *) ac_try_echo=$ac_try;;
25165 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25166 $as_echo "$ac_try_echo") >&5
25167 (eval "$ac_link") 2>&5
25169 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25171 { (case "(($ac_try" in
25172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25175 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25176 $as_echo "$ac_try_echo") >&5
25177 (eval "$ac_try") 2>&5
25179 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25180 (exit $ac_status); }; }; then
25181 ac_cv_alignof_long_long_int=`cat conftest.val`
25183 $as_echo "$as_me: program exited with status
$ac_status" >&5
25184 $as_echo "$as_me: failed program was
:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25187 ( exit $ac_status )
25188 if test "$ac_cv_type_long_long_int" = yes; then
25189 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
25190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25191 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25192 See \`config.log' for more details.
" >&5
25193 $as_echo "$as_me: error
: cannot compute alignment of long long int
25194 See \
`config.log' for more details." >&2;}
25195 { (exit 77); exit 77; }; }; }
25197 ac_cv_alignof_long_long_int=0
25200 rm -rf conftest.dSYM
25201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25205 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
25206 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
25210 cat >>confdefs.h <<_ACEOF
25211 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
25216 # The cast to long int works around a bug in the HP C Compiler,
25217 # see AC_CHECK_SIZEOF for more information.
25218 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
25219 $as_echo_n "checking alignment of double... " >&6; }
25220 if test "${ac_cv_alignof_double+set}" = set; then
25221 $as_echo_n "(cached) " >&6
25223 if test "$cross_compiling" = yes; then
25224 # Depending upon the size, compute the lo and hi bounds.
25225 cat >conftest.$ac_ext <<_ACEOF
25228 cat confdefs.h >>conftest.$ac_ext
25229 cat >>conftest.$ac_ext <<_ACEOF
25230 /* end confdefs.h. */
25231 $ac_includes_default
25233 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25235 typedef struct { char x; double y; } ac__type_alignof_;
25239 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25246 rm -f conftest.$ac_objext
25247 if { (ac_try="$ac_compile"
25248 case "(($ac_try" in
25249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25250 *) ac_try_echo
=$ac_try;;
25252 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254 (eval "$ac_compile") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1
>conftest.err
25258 cat conftest.err
>&5
25259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest.
$ac_objext; then
25266 cat >conftest.
$ac_ext <<_ACEOF
25269 cat confdefs.h
>>conftest.
$ac_ext
25270 cat >>conftest.
$ac_ext <<_ACEOF
25271 /* end confdefs.h. */
25272 $ac_includes_default
25274 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25276 typedef struct { char x; double y; } ac__type_alignof_;
25280 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25287 rm -f conftest.
$ac_objext
25288 if { (ac_try
="$ac_compile"
25289 case "(($ac_try" in
25290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25291 *) ac_try_echo=$ac_try;;
25293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25294 $as_echo "$ac_try_echo") >&5
25295 (eval "$ac_compile") 2>conftest.er1
25297 grep -v '^ *+' conftest.er1 >conftest.err
25299 cat conftest.err >&5
25300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } && {
25302 test -z "$ac_c_werror_flag" ||
25303 test ! -s conftest.err
25304 } && test -s conftest.$ac_objext; then
25305 ac_hi=$ac_mid; break
25307 $as_echo "$as_me: failed program was:" >&5
25308 sed 's/^/| /' conftest.$ac_ext >&5
25310 ac_lo=`expr $ac_mid + 1`
25311 if test $ac_lo -le $ac_mid; then
25315 ac_mid=`expr 2 '*' $ac_mid + 1`
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25321 $as_echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25324 cat >conftest.$ac_ext <<_ACEOF
25327 cat confdefs.h >>conftest.$ac_ext
25328 cat >>conftest.$ac_ext <<_ACEOF
25329 /* end confdefs.h. */
25330 $ac_includes_default
25332 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25334 typedef struct { char x; double y; } ac__type_alignof_;
25338 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25345 rm -f conftest.$ac_objext
25346 if { (ac_try="$ac_compile"
25347 case "(($ac_try" in
25348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25349 *) ac_try_echo
=$ac_try;;
25351 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25352 $as_echo "$ac_try_echo") >&5
25353 (eval "$ac_compile") 2>conftest.er1
25355 grep -v '^ *+' conftest.er1
>conftest.err
25357 cat conftest.err
>&5
25358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } && {
25360 test -z "$ac_c_werror_flag" ||
25361 test ! -s conftest.err
25362 } && test -s conftest.
$ac_objext; then
25365 cat >conftest.
$ac_ext <<_ACEOF
25368 cat confdefs.h
>>conftest.
$ac_ext
25369 cat >>conftest.
$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25371 $ac_includes_default
25373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25375 typedef struct { char x; double y; } ac__type_alignof_;
25379 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25386 rm -f conftest.
$ac_objext
25387 if { (ac_try
="$ac_compile"
25388 case "(($ac_try" in
25389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25390 *) ac_try_echo=$ac_try;;
25392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25393 $as_echo "$ac_try_echo") >&5
25394 (eval "$ac_compile") 2>conftest.er1
25396 grep -v '^ *+' conftest.er1 >conftest.err
25398 cat conftest.err >&5
25399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } && {
25401 test -z "$ac_c_werror_flag" ||
25402 test ! -s conftest.err
25403 } && test -s conftest.$ac_objext; then
25404 ac_lo=$ac_mid; break
25406 $as_echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25409 ac_hi=`expr '(' $ac_mid ')' - 1`
25410 if test $ac_mid -le $ac_hi; then
25414 ac_mid=`expr 2 '*' $ac_mid`
25417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25420 $as_echo "$as_me: failed program was:" >&5
25421 sed 's/^/| /' conftest.$ac_ext >&5
25426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25430 # Binary search between lo and hi bounds.
25431 while test "x$ac_lo" != "x$ac_hi"; do
25432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 $ac_includes_default
25441 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25443 typedef struct { char x; double y; } ac__type_alignof_;
25447 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25458 *) ac_try_echo
=$ac_try;;
25460 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25461 $as_echo "$ac_try_echo") >&5
25462 (eval "$ac_compile") 2>conftest.er1
25464 grep -v '^ *+' conftest.er1
>conftest.err
25466 cat conftest.err
>&5
25467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); } && {
25469 test -z "$ac_c_werror_flag" ||
25470 test ! -s conftest.err
25471 } && test -s conftest.
$ac_objext; then
25474 $as_echo "$as_me: failed program was:" >&5
25475 sed 's/^/| /' conftest.
$ac_ext >&5
25477 ac_lo
=`expr '(' $ac_mid ')' + 1`
25480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25483 ?
*) ac_cv_alignof_double
=$ac_lo;;
25484 '') if test "$ac_cv_type_double" = yes; then
25485 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25487 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25488 See \`config.log' for more details." >&5
25489 $as_echo "$as_me: error: cannot compute alignment of double
25490 See \`config.log' for more details." >&2;}
25491 { (exit 77); exit 77; }; }; }
25493 ac_cv_alignof_double
=0
25497 cat >conftest.
$ac_ext <<_ACEOF
25500 cat confdefs.h
>>conftest.
$ac_ext
25501 cat >>conftest.
$ac_ext <<_ACEOF
25502 /* end confdefs.h. */
25503 $ac_includes_default
25505 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25507 typedef struct { char x; double y; } ac__type_alignof_;
25508 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25509 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25511 #include <stdlib.h>
25516 FILE *f = fopen ("conftest.val", "w");
25519 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25521 long int i = longval ();
25522 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25524 fprintf (f, "%ld", i);
25528 unsigned long int i = ulongval ();
25529 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25531 fprintf (f, "%lu", i);
25533 /* Do not output a trailing newline, as this causes \r\n confusion
25534 on some platforms. */
25535 return ferror (f) || fclose (f) != 0;
25541 rm -f conftest
$ac_exeext
25542 if { (ac_try
="$ac_link"
25543 case "(($ac_try" in
25544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25548 $as_echo "$ac_try_echo") >&5
25549 (eval "$ac_link") 2>&5
25551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25553 { (case "(($ac_try" in
25554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25555 *) ac_try_echo
=$ac_try;;
25557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25558 $as_echo "$ac_try_echo") >&5
25559 (eval "$ac_try") 2>&5
25561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); }; }; then
25563 ac_cv_alignof_double
=`cat conftest.val`
25565 $as_echo "$as_me: program exited with status $ac_status" >&5
25566 $as_echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.
$ac_ext >&5
25569 ( exit $ac_status )
25570 if test "$ac_cv_type_double" = yes; then
25571 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25573 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25574 See \`config.log' for more details." >&5
25575 $as_echo "$as_me: error: cannot compute alignment of double
25576 See \`config.log' for more details." >&2;}
25577 { (exit 77); exit 77; }; }; }
25579 ac_cv_alignof_double
=0
25582 rm -rf conftest.dSYM
25583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25587 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
25588 $as_echo "$ac_cv_alignof_double" >&6; }
25592 cat >>confdefs.h
<<_ACEOF
25593 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
25598 # Compute maximum alignment of any basic type.
25599 # We assume long's alignment is at least as strong as char, short, or int;
25600 # but we must check long long (if it exists) and double.
25602 MAX_ALIGNOF
=$ac_cv_alignof_long
25603 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
25604 MAX_ALIGNOF
=$ac_cv_alignof_double
25606 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
25607 MAX_ALIGNOF
="$ac_cv_alignof_long_long_int"
25610 cat >>confdefs.h
<<_ACEOF
25611 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
25616 # Some platforms predefine the types int8, int16, etc. Only check
25617 # a (hopefully) representative subset.
25618 { $as_echo "$as_me:$LINENO: checking for int8" >&5
25619 $as_echo_n "checking for int8... " >&6; }
25620 if test "${ac_cv_type_int8+set}" = set; then
25621 $as_echo_n "(cached) " >&6
25624 cat >conftest.
$ac_ext <<_ACEOF
25627 cat confdefs.h
>>conftest.
$ac_ext
25628 cat >>conftest.
$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25631 #ifdef HAVE_SUPPORTDEFS_H
25632 #include <SupportDefs.h>
25644 rm -f conftest.
$ac_objext
25645 if { (ac_try
="$ac_compile"
25646 case "(($ac_try" in
25647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25648 *) ac_try_echo=$ac_try;;
25650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25651 $as_echo "$ac_try_echo") >&5
25652 (eval "$ac_compile") 2>conftest.er1
25654 grep -v '^ *+' conftest.er1 >conftest.err
25656 cat conftest.err >&5
25657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } && {
25659 test -z "$ac_c_werror_flag" ||
25660 test ! -s conftest.err
25661 } && test -s conftest.$ac_objext; then
25662 cat >conftest.$ac_ext <<_ACEOF
25665 cat confdefs.h >>conftest.$ac_ext
25666 cat >>conftest.$ac_ext <<_ACEOF
25667 /* end confdefs.h. */
25669 #ifdef HAVE_SUPPORTDEFS_H
25670 #include <SupportDefs.h>
25676 if (sizeof ((int8)))
25682 rm -f conftest.$ac_objext
25683 if { (ac_try="$ac_compile"
25684 case "(($ac_try" in
25685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25686 *) ac_try_echo
=$ac_try;;
25688 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25689 $as_echo "$ac_try_echo") >&5
25690 (eval "$ac_compile") 2>conftest.er1
25692 grep -v '^ *+' conftest.er1
>conftest.err
25694 cat conftest.err
>&5
25695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); } && {
25697 test -z "$ac_c_werror_flag" ||
25698 test ! -s conftest.err
25699 } && test -s conftest.
$ac_objext; then
25702 $as_echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.
$ac_ext >&5
25705 ac_cv_type_int8
=yes
25708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25710 $as_echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.
$ac_ext >&5
25716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25718 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
25719 $as_echo "$ac_cv_type_int8" >&6; }
25720 if test "x$ac_cv_type_int8" = x
""yes; then
25722 cat >>confdefs.h
<<_ACEOF
25723 #define HAVE_INT8 1
25728 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
25729 $as_echo_n "checking for uint8... " >&6; }
25730 if test "${ac_cv_type_uint8+set}" = set; then
25731 $as_echo_n "(cached) " >&6
25733 ac_cv_type_uint8
=no
25734 cat >conftest.
$ac_ext <<_ACEOF
25737 cat confdefs.h
>>conftest.
$ac_ext
25738 cat >>conftest.
$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25741 #ifdef HAVE_SUPPORTDEFS_H
25742 #include <SupportDefs.h>
25748 if (sizeof (uint8))
25754 rm -f conftest.
$ac_objext
25755 if { (ac_try
="$ac_compile"
25756 case "(($ac_try" in
25757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25758 *) ac_try_echo=$ac_try;;
25760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25761 $as_echo "$ac_try_echo") >&5
25762 (eval "$ac_compile") 2>conftest.er1
25764 grep -v '^ *+' conftest.er1 >conftest.err
25766 cat conftest.err >&5
25767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } && {
25769 test -z "$ac_c_werror_flag" ||
25770 test ! -s conftest.err
25771 } && test -s conftest.$ac_objext; then
25772 cat >conftest.$ac_ext <<_ACEOF
25775 cat confdefs.h >>conftest.$ac_ext
25776 cat >>conftest.$ac_ext <<_ACEOF
25777 /* end confdefs.h. */
25779 #ifdef HAVE_SUPPORTDEFS_H
25780 #include <SupportDefs.h>
25786 if (sizeof ((uint8)))
25792 rm -f conftest.$ac_objext
25793 if { (ac_try="$ac_compile"
25794 case "(($ac_try" in
25795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25796 *) ac_try_echo
=$ac_try;;
25798 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25799 $as_echo "$ac_try_echo") >&5
25800 (eval "$ac_compile") 2>conftest.er1
25802 grep -v '^ *+' conftest.er1
>conftest.err
25804 cat conftest.err
>&5
25805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); } && {
25807 test -z "$ac_c_werror_flag" ||
25808 test ! -s conftest.err
25809 } && test -s conftest.
$ac_objext; then
25812 $as_echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.
$ac_ext >&5
25815 ac_cv_type_uint8
=yes
25818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25820 $as_echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.
$ac_ext >&5
25826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25828 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
25829 $as_echo "$ac_cv_type_uint8" >&6; }
25830 if test "x$ac_cv_type_uint8" = x
""yes; then
25832 cat >>confdefs.h
<<_ACEOF
25833 #define HAVE_UINT8 1
25838 { $as_echo "$as_me:$LINENO: checking for int64" >&5
25839 $as_echo_n "checking for int64... " >&6; }
25840 if test "${ac_cv_type_int64+set}" = set; then
25841 $as_echo_n "(cached) " >&6
25843 ac_cv_type_int64
=no
25844 cat >conftest.
$ac_ext <<_ACEOF
25847 cat confdefs.h
>>conftest.
$ac_ext
25848 cat >>conftest.
$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25851 #ifdef HAVE_SUPPORTDEFS_H
25852 #include <SupportDefs.h>
25858 if (sizeof (int64))
25864 rm -f conftest.
$ac_objext
25865 if { (ac_try
="$ac_compile"
25866 case "(($ac_try" in
25867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25868 *) ac_try_echo=$ac_try;;
25870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25871 $as_echo "$ac_try_echo") >&5
25872 (eval "$ac_compile") 2>conftest.er1
25874 grep -v '^ *+' conftest.er1 >conftest.err
25876 cat conftest.err >&5
25877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); } && {
25879 test -z "$ac_c_werror_flag" ||
25880 test ! -s conftest.err
25881 } && test -s conftest.$ac_objext; then
25882 cat >conftest.$ac_ext <<_ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25889 #ifdef HAVE_SUPPORTDEFS_H
25890 #include <SupportDefs.h>
25896 if (sizeof ((int64)))
25902 rm -f conftest.$ac_objext
25903 if { (ac_try="$ac_compile"
25904 case "(($ac_try" in
25905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25906 *) ac_try_echo
=$ac_try;;
25908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25909 $as_echo "$ac_try_echo") >&5
25910 (eval "$ac_compile") 2>conftest.er1
25912 grep -v '^ *+' conftest.er1
>conftest.err
25914 cat conftest.err
>&5
25915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } && {
25917 test -z "$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25919 } && test -s conftest.
$ac_objext; then
25922 $as_echo "$as_me: failed program was:" >&5
25923 sed 's/^/| /' conftest.
$ac_ext >&5
25925 ac_cv_type_int64
=yes
25928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25930 $as_echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.
$ac_ext >&5
25936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25938 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
25939 $as_echo "$ac_cv_type_int64" >&6; }
25940 if test "x$ac_cv_type_int64" = x
""yes; then
25942 cat >>confdefs.h
<<_ACEOF
25943 #define HAVE_INT64 1
25948 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
25949 $as_echo_n "checking for uint64... " >&6; }
25950 if test "${ac_cv_type_uint64+set}" = set; then
25951 $as_echo_n "(cached) " >&6
25953 ac_cv_type_uint64
=no
25954 cat >conftest.
$ac_ext <<_ACEOF
25957 cat confdefs.h
>>conftest.
$ac_ext
25958 cat >>conftest.
$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25961 #ifdef HAVE_SUPPORTDEFS_H
25962 #include <SupportDefs.h>
25968 if (sizeof (uint64))
25974 rm -f conftest.
$ac_objext
25975 if { (ac_try
="$ac_compile"
25976 case "(($ac_try" in
25977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25978 *) ac_try_echo=$ac_try;;
25980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25981 $as_echo "$ac_try_echo") >&5
25982 (eval "$ac_compile") 2>conftest.er1
25984 grep -v '^ *+' conftest.er1 >conftest.err
25986 cat conftest.err >&5
25987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); } && {
25989 test -z "$ac_c_werror_flag" ||
25990 test ! -s conftest.err
25991 } && test -s conftest.$ac_objext; then
25992 cat >conftest.$ac_ext <<_ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h. */
25999 #ifdef HAVE_SUPPORTDEFS_H
26000 #include <SupportDefs.h>
26006 if (sizeof ((uint64)))
26012 rm -f conftest.$ac_objext
26013 if { (ac_try="$ac_compile"
26014 case "(($ac_try" in
26015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26016 *) ac_try_echo
=$ac_try;;
26018 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26019 $as_echo "$ac_try_echo") >&5
26020 (eval "$ac_compile") 2>conftest.er1
26022 grep -v '^ *+' conftest.er1
>conftest.err
26024 cat conftest.err
>&5
26025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } && {
26027 test -z "$ac_c_werror_flag" ||
26028 test ! -s conftest.err
26029 } && test -s conftest.
$ac_objext; then
26032 $as_echo "$as_me: failed program was:" >&5
26033 sed 's/^/| /' conftest.
$ac_ext >&5
26035 ac_cv_type_uint64
=yes
26038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26040 $as_echo "$as_me: failed program was:" >&5
26041 sed 's/^/| /' conftest.
$ac_ext >&5
26046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26048 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
26049 $as_echo "$ac_cv_type_uint64" >&6; }
26050 if test "x$ac_cv_type_uint64" = x
""yes; then
26052 cat >>confdefs.h
<<_ACEOF
26053 #define HAVE_UINT64 1
26060 # We also check for sig_atomic_t, which *should* be defined per ANSI
26061 # C, but is missing on some old platforms.
26062 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
26063 $as_echo_n "checking for sig_atomic_t... " >&6; }
26064 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
26065 $as_echo_n "(cached) " >&6
26067 ac_cv_type_sig_atomic_t
=no
26068 cat >conftest.
$ac_ext <<_ACEOF
26071 cat confdefs.h
>>conftest.
$ac_ext
26072 cat >>conftest.
$ac_ext <<_ACEOF
26073 /* end confdefs.h. */
26074 #include <signal.h>
26079 if (sizeof (sig_atomic_t))
26085 rm -f conftest.
$ac_objext
26086 if { (ac_try
="$ac_compile"
26087 case "(($ac_try" in
26088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26089 *) ac_try_echo=$ac_try;;
26091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26092 $as_echo "$ac_try_echo") >&5
26093 (eval "$ac_compile") 2>conftest.er1
26095 grep -v '^ *+' conftest.er1 >conftest.err
26097 cat conftest.err >&5
26098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } && {
26100 test -z "$ac_c_werror_flag" ||
26101 test ! -s conftest.err
26102 } && test -s conftest.$ac_objext; then
26103 cat >conftest.$ac_ext <<_ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h. */
26109 #include <signal.h>
26114 if (sizeof ((sig_atomic_t)))
26120 rm -f conftest.$ac_objext
26121 if { (ac_try="$ac_compile"
26122 case "(($ac_try" in
26123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26124 *) ac_try_echo
=$ac_try;;
26126 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26127 $as_echo "$ac_try_echo") >&5
26128 (eval "$ac_compile") 2>conftest.er1
26130 grep -v '^ *+' conftest.er1
>conftest.err
26132 cat conftest.err
>&5
26133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); } && {
26135 test -z "$ac_c_werror_flag" ||
26136 test ! -s conftest.err
26137 } && test -s conftest.
$ac_objext; then
26140 $as_echo "$as_me: failed program was:" >&5
26141 sed 's/^/| /' conftest.
$ac_ext >&5
26143 ac_cv_type_sig_atomic_t
=yes
26146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26148 $as_echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.
$ac_ext >&5
26154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26156 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
26157 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
26158 if test "x$ac_cv_type_sig_atomic_t" = x
""yes; then
26160 cat >>confdefs.h
<<_ACEOF
26161 #define HAVE_SIG_ATOMIC_T 1
26169 # If the user did not disable integer datetimes, check that
26170 # there is a working 64-bit integral type to use.
26171 if test x
"$USE_INTEGER_DATETIMES" = x
"yes" &&
26172 test x
"$HAVE_LONG_INT_64" = x
"no" &&
26173 test x
"$HAVE_LONG_LONG_INT_64" = x
"no" &&
26174 test x
"$HAVE_INT64" = x
"no" ; then
26175 { { $as_echo "$as_me:$LINENO: error:
26176 Integer-based datetime support requires a 64-bit integer type,
26177 but no such type could be found. The --disable-integer-datetimes
26178 configure option can be used to disable integer-based storage
26179 of datetime values." >&5
26180 $as_echo "$as_me: error:
26181 Integer-based datetime support requires a 64-bit integer type,
26182 but no such type could be found. The --disable-integer-datetimes
26183 configure option can be used to disable integer-based storage
26184 of datetime values." >&2;}
26185 { (exit 1); exit 1; }; }
26189 if test "$PORTNAME" != "win32"
26191 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
26192 $as_echo_n "checking for POSIX signal interface... " >&6; }
26193 if test "${pgac_cv_func_posix_signals+set}" = set; then
26194 $as_echo_n "(cached) " >&6
26196 cat >conftest.
$ac_ext <<_ACEOF
26199 cat confdefs.h
>>conftest.
$ac_ext
26200 cat >>conftest.
$ac_ext <<_ACEOF
26201 /* end confdefs.h. */
26202 #include <signal.h>
26207 struct sigaction act, oact;
26208 sigemptyset(&act.sa_mask);
26209 act.sa_flags = SA_RESTART;
26210 sigaction(0, &act, &oact);
26215 rm -f conftest.
$ac_objext conftest
$ac_exeext
26216 if { (ac_try
="$ac_link"
26217 case "(($ac_try" in
26218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26219 *) ac_try_echo=$ac_try;;
26221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26222 $as_echo "$ac_try_echo") >&5
26223 (eval "$ac_link") 2>conftest.er1
26225 grep -v '^ *+' conftest.er1 >conftest.err
26227 cat conftest.err >&5
26228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); } && {
26230 test -z "$ac_c_werror_flag" ||
26231 test ! -s conftest.err
26232 } && test -s conftest$ac_exeext && {
26233 test "$cross_compiling" = yes ||
26234 $as_test_x conftest$ac_exeext
26236 pgac_cv_func_posix_signals=yes
26238 $as_echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26241 pgac_cv_func_posix_signals=no
26244 rm -rf conftest.dSYM
26245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26246 conftest$ac_exeext conftest.$ac_ext
26248 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
26249 $as_echo "$pgac_cv_func_posix_signals" >&6; }
26250 if test x"$pgac_cv_func_posix_signals" = xyes ; then
26252 cat >>confdefs.h <<\_ACEOF
26253 #define HAVE_POSIX_SIGNALS /**/
26257 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
26259 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
26260 { { $as_echo "$as_me:$LINENO: error:
26261 Thread-safety requires POSIX signals, which are not supported by this
26262 operating system." >&5
26263 $as_echo "$as_me: error:
26264 Thread-safety requires POSIX signals, which are not supported by this
26265 operating system." >&2;}
26266 { (exit 1); exit 1; }; }
26270 if test $ac_cv_func_fseeko = yes; then
26271 # Check whether --enable-largefile was given.
26272 if test "${enable_largefile+set}" = set; then
26273 enableval=$enable_largefile;
26276 if test "$enable_largefile" != no; then
26278 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26279 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
26280 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26281 $as_echo_n "(cached) " >&6
26283 ac_cv_sys_largefile_CC=no
26284 if test "$GCC" != yes; then
26287 # IRIX 6.2 and later do not support large files by default,
26288 # so use the C compiler's -n32 option if that helps.
26289 cat >conftest.$ac_ext <<_ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26295 #include <sys/types.h>
26296 /* Check that off_t can represent 2**63 - 1 correctly.
26297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26298 since some C++ compilers masquerading as C compilers
26299 incorrectly reject 9223372036854775807. */
26300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26302 && LARGE_OFF_T % 2147483647 == 1)
26312 rm -f conftest.$ac_objext
26313 if { (ac_try="$ac_compile"
26314 case "(($ac_try" in
26315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26316 *) ac_try_echo
=$ac_try;;
26318 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26319 $as_echo "$ac_try_echo") >&5
26320 (eval "$ac_compile") 2>conftest.er1
26322 grep -v '^ *+' conftest.er1
>conftest.err
26324 cat conftest.err
>&5
26325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326 (exit $ac_status); } && {
26327 test -z "$ac_c_werror_flag" ||
26328 test ! -s conftest.err
26329 } && test -s conftest.
$ac_objext; then
26332 $as_echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.
$ac_ext >&5
26338 rm -f core conftest.err conftest.
$ac_objext
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
26358 ac_cv_sys_largefile_CC=' -n32'; break
26360 $as_echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26366 rm -f core conftest.err conftest.$ac_objext
26370 rm -f conftest.$ac_ext
26373 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26374 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
26375 if test "$ac_cv_sys_largefile_CC" != no; then
26376 CC=$CC$ac_cv_sys_largefile_CC
26379 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26380 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
26381 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26382 $as_echo_n "(cached) " >&6
26385 cat >conftest.$ac_ext <<_ACEOF
26388 cat confdefs.h >>conftest.$ac_ext
26389 cat >>conftest.$ac_ext <<_ACEOF
26390 /* end confdefs.h. */
26391 #include <sys/types.h>
26392 /* Check that off_t can represent 2**63 - 1 correctly.
26393 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26394 since some C++ compilers masquerading as C compilers
26395 incorrectly reject 9223372036854775807. */
26396 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26397 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26398 && LARGE_OFF_T % 2147483647 == 1)
26408 rm -f conftest.$ac_objext
26409 if { (ac_try="$ac_compile"
26410 case "(($ac_try" in
26411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26412 *) ac_try_echo
=$ac_try;;
26414 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26415 $as_echo "$ac_try_echo") >&5
26416 (eval "$ac_compile") 2>conftest.er1
26418 grep -v '^ *+' conftest.er1
>conftest.err
26420 cat conftest.err
>&5
26421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); } && {
26423 test -z "$ac_c_werror_flag" ||
26424 test ! -s conftest.err
26425 } && test -s conftest.
$ac_objext; then
26426 ac_cv_sys_file_offset_bits
=no
; break
26428 $as_echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.
$ac_ext >&5
26434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26435 cat >conftest.
$ac_ext <<_ACEOF
26438 cat confdefs.h
>>conftest.
$ac_ext
26439 cat >>conftest.
$ac_ext <<_ACEOF
26440 /* end confdefs.h. */
26441 #define _FILE_OFFSET_BITS 64
26442 #include <sys/types.h>
26443 /* Check that off_t can represent 2**63 - 1 correctly.
26444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26445 since some C++ compilers masquerading as C compilers
26446 incorrectly reject 9223372036854775807. */
26447 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26449 && LARGE_OFF_T % 2147483647 == 1)
26459 rm -f conftest.
$ac_objext
26460 if { (ac_try
="$ac_compile"
26461 case "(($ac_try" in
26462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26466 $as_echo "$ac_try_echo") >&5
26467 (eval "$ac_compile") 2>conftest.er1
26469 grep -v '^ *+' conftest.er1 >conftest.err
26471 cat conftest.err >&5
26472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } && {
26474 test -z "$ac_c_werror_flag" ||
26475 test ! -s conftest.err
26476 } && test -s conftest.$ac_objext; then
26477 ac_cv_sys_file_offset_bits=64; break
26479 $as_echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26486 ac_cv_sys_file_offset_bits=unknown
26490 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26491 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
26492 case $ac_cv_sys_file_offset_bits in #(
26495 cat >>confdefs.h <<_ACEOF
26496 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26501 if test $ac_cv_sys_file_offset_bits = unknown; then
26502 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26503 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
26504 if test "${ac_cv_sys_large_files+set}" = set; then
26505 $as_echo_n "(cached) " >&6
26508 cat >conftest.$ac_ext <<_ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h. */
26514 #include <sys/types.h>
26515 /* Check that off_t can represent 2**63 - 1 correctly.
26516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26517 since some C++ compilers masquerading as C compilers
26518 incorrectly reject 9223372036854775807. */
26519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26521 && LARGE_OFF_T % 2147483647 == 1)
26531 rm -f conftest.$ac_objext
26532 if { (ac_try="$ac_compile"
26533 case "(($ac_try" in
26534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26535 *) ac_try_echo
=$ac_try;;
26537 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26538 $as_echo "$ac_try_echo") >&5
26539 (eval "$ac_compile") 2>conftest.er1
26541 grep -v '^ *+' conftest.er1
>conftest.err
26543 cat conftest.err
>&5
26544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); } && {
26546 test -z "$ac_c_werror_flag" ||
26547 test ! -s conftest.err
26548 } && test -s conftest.
$ac_objext; then
26549 ac_cv_sys_large_files
=no
; break
26551 $as_echo "$as_me: failed program was:" >&5
26552 sed 's/^/| /' conftest.
$ac_ext >&5
26557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26558 cat >conftest.
$ac_ext <<_ACEOF
26561 cat confdefs.h
>>conftest.
$ac_ext
26562 cat >>conftest.
$ac_ext <<_ACEOF
26563 /* end confdefs.h. */
26564 #define _LARGE_FILES 1
26565 #include <sys/types.h>
26566 /* Check that off_t can represent 2**63 - 1 correctly.
26567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26568 since some C++ compilers masquerading as C compilers
26569 incorrectly reject 9223372036854775807. */
26570 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26572 && LARGE_OFF_T % 2147483647 == 1)
26582 rm -f conftest.
$ac_objext
26583 if { (ac_try
="$ac_compile"
26584 case "(($ac_try" in
26585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26586 *) ac_try_echo=$ac_try;;
26588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26589 $as_echo "$ac_try_echo") >&5
26590 (eval "$ac_compile") 2>conftest.er1
26592 grep -v '^ *+' conftest.er1 >conftest.err
26594 cat conftest.err >&5
26595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); } && {
26597 test -z "$ac_c_werror_flag" ||
26598 test ! -s conftest.err
26599 } && test -s conftest.$ac_objext; then
26600 ac_cv_sys_large_files=1; break
26602 $as_echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26609 ac_cv_sys_large_files=unknown
26613 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26614 $as_echo "$ac_cv_sys_large_files" >&6; }
26615 case $ac_cv_sys_large_files in #(
26618 cat >>confdefs.h <<_ACEOF
26619 #define _LARGE_FILES $ac_cv_sys_large_files
26629 # Check for largefile support (must be after AC_SYS_LARGEFILE)
26630 # The cast to long int works around a bug in the HP C Compiler
26631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26632 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
26633 # This bug is HP SR number 8606223364.
26634 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26635 $as_echo_n "checking size of off_t... " >&6; }
26636 if test "${ac_cv_sizeof_off_t+set}" = set; then
26637 $as_echo_n "(cached) " >&6
26639 if test "$cross_compiling" = yes; then
26640 # Depending upon the size, compute the lo and hi bounds.
26641 cat >conftest.$ac_ext <<_ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h. */
26647 $ac_includes_default
26651 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
26658 rm -f conftest.$ac_objext
26659 if { (ac_try="$ac_compile"
26660 case "(($ac_try" in
26661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26662 *) ac_try_echo=$ac_try;;
26664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26665 $as_echo "$ac_try_echo") >&5
26666 (eval "$ac_compile") 2>conftest.er1
26668 grep -v '^
*+' conftest.er1 >conftest.err
26670 cat conftest.err >&5
26671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); } && {
26673 test -z "$ac_c_werror_flag" ||
26674 test ! -s conftest.err
26675 } && test -s conftest.$ac_objext; then
26678 cat >conftest.$ac_ext <<_ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h. */
26684 $ac_includes_default
26688 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26695 rm -f conftest.$ac_objext
26696 if { (ac_try="$ac_compile"
26697 case "(($ac_try" in
26698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699 *) ac_try_echo=$ac_try;;
26701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26702 $as_echo "$ac_try_echo") >&5
26703 (eval "$ac_compile") 2>conftest.er1
26705 grep -v '^
*+' conftest.er1 >conftest.err
26707 cat conftest.err >&5
26708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); } && {
26710 test -z "$ac_c_werror_flag" ||
26711 test ! -s conftest.err
26712 } && test -s conftest.$ac_objext; then
26713 ac_hi=$ac_mid; break
26715 $as_echo "$as_me: failed program was:" >&5
26716 sed 's
/^
/|
/' conftest.$ac_ext >&5
26718 ac_lo=`expr $ac_mid + 1`
26719 if test $ac_lo -le $ac_mid; then
26723 ac_mid=`expr 2 '*' $ac_mid + 1`
26726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26729 $as_echo "$as_me: failed program was:" >&5
26730 sed 's
/^
/|
/' conftest.$ac_ext >&5
26732 cat >conftest.$ac_ext <<_ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h. */
26738 $ac_includes_default
26742 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
26749 rm -f conftest.$ac_objext
26750 if { (ac_try="$ac_compile"
26751 case "(($ac_try" in
26752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26753 *) ac_try_echo=$ac_try;;
26755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26756 $as_echo "$ac_try_echo") >&5
26757 (eval "$ac_compile") 2>conftest.er1
26759 grep -v '^
*+' conftest.er1 >conftest.err
26761 cat conftest.err >&5
26762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); } && {
26764 test -z "$ac_c_werror_flag" ||
26765 test ! -s conftest.err
26766 } && test -s conftest.$ac_objext; then
26769 cat >conftest.$ac_ext <<_ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h. */
26775 $ac_includes_default
26779 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
26786 rm -f conftest.$ac_objext
26787 if { (ac_try="$ac_compile"
26788 case "(($ac_try" in
26789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790 *) ac_try_echo=$ac_try;;
26792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26793 $as_echo "$ac_try_echo") >&5
26794 (eval "$ac_compile") 2>conftest.er1
26796 grep -v '^
*+' conftest.er1 >conftest.err
26798 cat conftest.err >&5
26799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); } && {
26801 test -z "$ac_c_werror_flag" ||
26802 test ! -s conftest.err
26803 } && test -s conftest.$ac_objext; then
26804 ac_lo=$ac_mid; break
26806 $as_echo "$as_me: failed program was:" >&5
26807 sed 's
/^
/|
/' conftest.$ac_ext >&5
26809 ac_hi=`expr '(' $ac_mid ')' - 1`
26810 if test $ac_mid -le $ac_hi; then
26814 ac_mid=`expr 2 '*' $ac_mid`
26817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26820 $as_echo "$as_me: failed program was:" >&5
26821 sed 's
/^
/|
/' conftest.$ac_ext >&5
26826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26830 # Binary search between lo and hi bounds.
26831 while test "x$ac_lo" != "x$ac_hi"; do
26832 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26833 cat >conftest.$ac_ext <<_ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h. */
26839 $ac_includes_default
26843 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26850 rm -f conftest.$ac_objext
26851 if { (ac_try="$ac_compile"
26852 case "(($ac_try" in
26853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26854 *) ac_try_echo=$ac_try;;
26856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26857 $as_echo "$ac_try_echo") >&5
26858 (eval "$ac_compile") 2>conftest.er1
26860 grep -v '^
*+' conftest.er1 >conftest.err
26862 cat conftest.err >&5
26863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); } && {
26865 test -z "$ac_c_werror_flag" ||
26866 test ! -s conftest.err
26867 } && test -s conftest.$ac_objext; then
26870 $as_echo "$as_me: failed program was:" >&5
26871 sed 's
/^
/|
/' conftest.$ac_ext >&5
26873 ac_lo=`expr '(' $ac_mid ')' + 1`
26876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26879 ?*) ac_cv_sizeof_off_t=$ac_lo;;
26880 '') if test "$ac_cv_type_off_t" = yes; then
26881 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26882 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
26883 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
26884 See \`config.log
' for more details." >&5
26885 $as_echo "$as_me: error: cannot compute sizeof (off_t)
26886 See \`config.log' for more details.
" >&2;}
26887 { (exit 77); exit 77; }; }; }
26889 ac_cv_sizeof_off_t=0
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26899 $ac_includes_default
26900 static long int longval () { return (long int) (sizeof (off_t)); }
26901 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
26903 #include <stdlib.h>
26908 FILE *f = fopen ("conftest.val
", "w
");
26911 if (((long int) (sizeof (off_t))) < 0)
26913 long int i = longval ();
26914 if (i != ((long int) (sizeof (off_t))))
26916 fprintf (f, "%ld
", i);
26920 unsigned long int i = ulongval ();
26921 if (i != ((long int) (sizeof (off_t))))
26923 fprintf (f, "%lu
", i);
26925 /* Do not output a trailing newline, as this causes \r\n confusion
26926 on some platforms. */
26927 return ferror (f) || fclose (f) != 0;
26933 rm -f conftest$ac_exeext
26934 if { (ac_try="$ac_link"
26935 case "(($ac_try" in
26936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937 *) ac_try_echo=$ac_try;;
26939 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26940 $as_echo "$ac_try_echo") >&5
26941 (eval "$ac_link") 2>&5
26943 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26945 { (case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26949 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26950 $as_echo "$ac_try_echo") >&5
26951 (eval "$ac_try") 2>&5
26953 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26954 (exit $ac_status); }; }; then
26955 ac_cv_sizeof_off_t=`cat conftest.val`
26957 $as_echo "$as_me: program exited with status
$ac_status" >&5
26958 $as_echo "$as_me: failed program was
:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26961 ( exit $ac_status )
26962 if test "$ac_cv_type_off_t" = yes; then
26963 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26965 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
26966 See \`config.log' for more details.
" >&5
26967 $as_echo "$as_me: error
: cannot compute sizeof
(off_t
)
26968 See \
`config.log' for more details." >&2;}
26969 { (exit 77); exit 77; }; }; }
26971 ac_cv_sizeof_off_t=0
26974 rm -rf conftest.dSYM
26975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26979 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
26980 $as_echo "$ac_cv_sizeof_off_t" >&6; }
26984 cat >>confdefs.h <<_ACEOF
26985 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26990 # If we don't have largefile support, can't handle segsize >= 2GB.
26991 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
26992 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
26993 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
26994 { (exit 1); exit 1; }; }
26997 # SunOS doesn't handle negative byte comparisons properly with +/- return
26998 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
26999 $as_echo_n "checking for working memcmp... " >&6; }
27000 if test "${ac_cv_func_memcmp_working+set}" = set; then
27001 $as_echo_n "(cached) " >&6
27003 if test "$cross_compiling" = yes; then
27004 ac_cv_func_memcmp_working=no
27006 cat >conftest.$ac_ext <<_ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h. */
27012 $ac_includes_default
27017 /* Some versions of memcmp are not 8-bit clean. */
27018 char c0 = '\100', c1 = '\200', c2 = '\201';
27019 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27022 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27023 or more and with at least one buffer not starting on a 4-byte boundary.
27024 William Lewis provided this test program. */
27029 for (i = 0; i < 4; i++)
27033 strcpy (a, "--------01111111");
27034 strcpy (b, "--------10000000");
27035 if (memcmp (a, b, 16) >= 0)
27045 rm -f conftest$ac_exeext
27046 if { (ac_try="$ac_link"
27047 case "(($ac_try" in
27048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27049 *) ac_try_echo
=$ac_try;;
27051 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27052 $as_echo "$ac_try_echo") >&5
27053 (eval "$ac_link") 2>&5
27055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27057 { (case "(($ac_try" in
27058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27062 $as_echo "$ac_try_echo") >&5
27063 (eval "$ac_try") 2>&5
27065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; }; then
27067 ac_cv_func_memcmp_working=yes
27069 $as_echo "$as_me: program exited with status $ac_status" >&5
27070 $as_echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27073 ( exit $ac_status )
27074 ac_cv_func_memcmp_working=no
27076 rm -rf conftest.dSYM
27077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27082 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27083 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27084 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27085 *" memcmp.$ac_objext "* ) ;;
27086 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27093 # Select semaphore implementation type.
27094 if test "$PORTNAME" != "win32"; then
27095 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27097 cat >>confdefs.h <<\_ACEOF
27098 #define USE_NAMED_POSIX_SEMAPHORES 1
27101 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27103 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27105 cat >>confdefs.h <<\_ACEOF
27106 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27109 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27112 cat >>confdefs.h <<\_ACEOF
27113 #define USE_SYSV_SEMAPHORES 1
27116 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27121 cat >>confdefs.h <<\_ACEOF
27122 #define USE_WIN32_SEMAPHORES 1
27125 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27129 # Select shared-memory implementation type.
27130 if test "$PORTNAME" != "win32"; then
27132 cat >>confdefs.h <<\_ACEOF
27133 #define USE_SYSV_SHARED_MEMORY 1
27136 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27139 cat >>confdefs.h <<\_ACEOF
27140 #define USE_WIN32_SHARED_MEMORY 1
27143 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27146 # If not set in template file, set bytes to use libc memset()
27147 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27148 MEMSET_LOOP_LIMIT=1024
27151 cat >>confdefs.h <<_ACEOF
27152 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27157 if test "$enable_nls" = yes ; then
27159 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27160 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27161 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27162 $as_echo_n "(cached) " >&6
27164 ac_func_search_save_LIBS=$LIBS
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27172 /* Override any GCC internal prototype to avoid an error.
27173 Use char because int might match the return type of a GCC
27174 builtin and then its argument prototype would still apply. */
27178 char bind_textdomain_codeset ();
27182 return bind_textdomain_codeset ();
27187 for ac_lib in '' intl; do
27188 if test -z "$ac_lib"; then
27189 ac_res="none required"
27192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27194 rm -f conftest.$ac_objext conftest$ac_exeext
27195 if { (ac_try="$ac_link"
27196 case "(($ac_try" in
27197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27198 *) ac_try_echo
=$ac_try;;
27200 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27201 $as_echo "$ac_try_echo") >&5
27202 (eval "$ac_link") 2>conftest.er1
27204 grep -v '^ *+' conftest.er1
>conftest.err
27206 cat conftest.err
>&5
27207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); } && {
27209 test -z "$ac_c_werror_flag" ||
27210 test ! -s conftest.err
27211 } && test -s conftest
$ac_exeext && {
27212 test "$cross_compiling" = yes ||
27213 $as_test_x conftest
$ac_exeext
27215 ac_cv_search_bind_textdomain_codeset
=$ac_res
27217 $as_echo "$as_me: failed program was:" >&5
27218 sed 's/^/| /' conftest.
$ac_ext >&5
27223 rm -rf conftest.dSYM
27224 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27226 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27230 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27233 ac_cv_search_bind_textdomain_codeset
=no
27235 rm conftest.
$ac_ext
27236 LIBS
=$ac_func_search_save_LIBS
27238 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27239 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27240 ac_res
=$ac_cv_search_bind_textdomain_codeset
27241 if test "$ac_res" != no
; then
27242 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27245 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27246 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27247 { (exit 1); exit 1; }; }
27250 if test "${ac_cv_header_libintl_h+set}" = set; then
27251 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27252 $as_echo_n "checking for libintl.h... " >&6; }
27253 if test "${ac_cv_header_libintl_h+set}" = set; then
27254 $as_echo_n "(cached) " >&6
27256 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27257 $as_echo "$ac_cv_header_libintl_h" >&6; }
27259 # Is the header compilable?
27260 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27261 $as_echo_n "checking libintl.h usability... " >&6; }
27262 cat >conftest.
$ac_ext <<_ACEOF
27265 cat confdefs.h
>>conftest.
$ac_ext
27266 cat >>conftest.
$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 $ac_includes_default
27269 #include <libintl.h>
27271 rm -f conftest.
$ac_objext
27272 if { (ac_try
="$ac_compile"
27273 case "(($ac_try" in
27274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27275 *) ac_try_echo=$ac_try;;
27277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27278 $as_echo "$ac_try_echo") >&5
27279 (eval "$ac_compile") 2>conftest.er1
27281 grep -v '^ *+' conftest.er1 >conftest.err
27283 cat conftest.err >&5
27284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } && {
27286 test -z "$ac_c_werror_flag" ||
27287 test ! -s conftest.err
27288 } && test -s conftest.$ac_objext; then
27289 ac_header_compiler=yes
27291 $as_echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27294 ac_header_compiler=no
27297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27299 $as_echo "$ac_header_compiler" >&6; }
27301 # Is the header present?
27302 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27303 $as_echo_n "checking libintl.h presence... " >&6; }
27304 cat >conftest.$ac_ext <<_ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h. */
27310 #include <libintl.h>
27312 if { (ac_try="$ac_cpp conftest.$ac_ext"
27313 case "(($ac_try" in
27314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27315 *) ac_try_echo
=$ac_try;;
27317 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27318 $as_echo "$ac_try_echo") >&5
27319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27321 grep -v '^ *+' conftest.er1
>conftest.err
27323 cat conftest.err
>&5
27324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); } >/dev
/null
&& {
27326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27327 test ! -s conftest.err
27329 ac_header_preproc
=yes
27331 $as_echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.
$ac_ext >&5
27334 ac_header_preproc
=no
27337 rm -f conftest.err conftest.
$ac_ext
27338 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27339 $as_echo "$ac_header_preproc" >&6; }
27341 # So? What about this header?
27342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27344 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27345 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27346 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27347 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27348 ac_header_preproc
=yes
27351 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27352 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27353 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
27354 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
27355 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27356 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27357 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
27358 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27359 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27360 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27361 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27362 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27364 ## ---------------------------------------- ##
27365 ## Report this to pgsql-bugs@postgresql.org ##
27366 ## ---------------------------------------- ##
27368 ) |
sed "s/^/$as_me: WARNING: /" >&2
27371 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27372 $as_echo_n "checking for libintl.h... " >&6; }
27373 if test "${ac_cv_header_libintl_h+set}" = set; then
27374 $as_echo_n "(cached) " >&6
27376 ac_cv_header_libintl_h
=$ac_header_preproc
27378 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27379 $as_echo "$ac_cv_header_libintl_h" >&6; }
27382 if test "x$ac_cv_header_libintl_h" = x
""yes; then
27385 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27386 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27387 { (exit 1); exit 1; }; }
27391 for ac_prog
in msgfmt
27393 # Extract the first word of "$ac_prog", so it can be a program name with args.
27394 set dummy
$ac_prog; ac_word
=$2
27395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27396 $as_echo_n "checking for $ac_word... " >&6; }
27397 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27398 $as_echo_n "(cached) " >&6
27400 if test -n "$MSGFMT"; then
27401 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
27403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27404 for as_dir
in $PATH
27407 test -z "$as_dir" && as_dir
=.
27408 for ac_exec_ext
in '' $ac_executable_extensions; do
27409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27410 ac_cv_prog_MSGFMT
="$ac_prog"
27411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27420 MSGFMT
=$ac_cv_prog_MSGFMT
27421 if test -n "$MSGFMT"; then
27422 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27423 $as_echo "$MSGFMT" >&6; }
27425 { $as_echo "$as_me:$LINENO: result: no" >&5
27426 $as_echo "no" >&6; }
27430 test -n "$MSGFMT" && break
27433 if test -z "$MSGFMT"; then
27434 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27435 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27436 { (exit 1); exit 1; }; }
27438 for ac_prog
in msgmerge
27440 # Extract the first word of "$ac_prog", so it can be a program name with args.
27441 set dummy
$ac_prog; ac_word
=$2
27442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27443 $as_echo_n "checking for $ac_word... " >&6; }
27444 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27445 $as_echo_n "(cached) " >&6
27447 if test -n "$MSGMERGE"; then
27448 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
27450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27451 for as_dir
in $PATH
27454 test -z "$as_dir" && as_dir
=.
27455 for ac_exec_ext
in '' $ac_executable_extensions; do
27456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27457 ac_cv_prog_MSGMERGE
="$ac_prog"
27458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27467 MSGMERGE
=$ac_cv_prog_MSGMERGE
27468 if test -n "$MSGMERGE"; then
27469 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27470 $as_echo "$MSGMERGE" >&6; }
27472 { $as_echo "$as_me:$LINENO: result: no" >&5
27473 $as_echo "no" >&6; }
27477 test -n "$MSGMERGE" && break
27480 for ac_prog
in xgettext
27482 # Extract the first word of "$ac_prog", so it can be a program name with args.
27483 set dummy
$ac_prog; ac_word
=$2
27484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27485 $as_echo_n "checking for $ac_word... " >&6; }
27486 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27487 $as_echo_n "(cached) " >&6
27489 if test -n "$XGETTEXT"; then
27490 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
27492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27493 for as_dir
in $PATH
27496 test -z "$as_dir" && as_dir
=.
27497 for ac_exec_ext
in '' $ac_executable_extensions; do
27498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27499 ac_cv_prog_XGETTEXT
="$ac_prog"
27500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27509 XGETTEXT
=$ac_cv_prog_XGETTEXT
27510 if test -n "$XGETTEXT"; then
27511 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27512 $as_echo "$XGETTEXT" >&6; }
27514 { $as_echo "$as_me:$LINENO: result: no" >&5
27515 $as_echo "no" >&6; }
27519 test -n "$XGETTEXT" && break
27525 # Check for Tcl configuration script tclConfig.sh
27526 if test "$with_tcl" = yes; then
27527 for ac_prog
in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
27529 # Extract the first word of "$ac_prog", so it can be a program name with args.
27530 set dummy
$ac_prog; ac_word
=$2
27531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27532 $as_echo_n "checking for $ac_word... " >&6; }
27533 if test "${ac_cv_path_TCLSH+set}" = set; then
27534 $as_echo_n "(cached) " >&6
27538 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
27541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27542 for as_dir
in $PATH
27545 test -z "$as_dir" && as_dir
=.
27546 for ac_exec_ext
in '' $ac_executable_extensions; do
27547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27548 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
27549 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27559 TCLSH
=$ac_cv_path_TCLSH
27560 if test -n "$TCLSH"; then
27561 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
27562 $as_echo "$TCLSH" >&6; }
27564 { $as_echo "$as_me:$LINENO: result: no" >&5
27565 $as_echo "no" >&6; }
27569 test -n "$TCLSH" && break
27572 if test x
"$TCLSH" = x
""; then
27573 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
27574 $as_echo "$as_me: error: Tcl shell not found" >&2;}
27575 { (exit 1); exit 1; }; }
27578 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
27579 $as_echo_n "checking for tclConfig.sh... " >&6; }
27580 # Let user override test
27581 if test -z "$TCL_CONFIG_SH"; then
27582 pgac_test_dirs
="$with_tclconfig"
27584 set X
$pgac_test_dirs; shift
27585 if test $# -eq 0; then
27586 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
27587 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
27588 { (exit 1); exit 1; }; }
27589 set X
`echo 'puts $auto_path' | $TCLSH`; shift
27593 if test -r "$pgac_dir/tclConfig.sh"; then
27594 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
27600 if test -z "$TCL_CONFIG_SH"; then
27601 { $as_echo "$as_me:$LINENO: result: no" >&5
27602 $as_echo "no" >&6; }
27603 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
27604 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
27605 { (exit 1); exit 1; }; }
27607 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
27608 $as_echo "$TCL_CONFIG_SH" >&6; }
27614 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
27615 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
27616 eval TCL_LIBS
=\"$TCL_LIBS\"
27617 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
27618 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
27620 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
27621 ac_save_CPPFLAGS
=$CPPFLAGS
27622 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
27623 if test "${ac_cv_header_tcl_h+set}" = set; then
27624 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27625 $as_echo_n "checking for tcl.h... " >&6; }
27626 if test "${ac_cv_header_tcl_h+set}" = set; then
27627 $as_echo_n "(cached) " >&6
27629 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27630 $as_echo "$ac_cv_header_tcl_h" >&6; }
27632 # Is the header compilable?
27633 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
27634 $as_echo_n "checking tcl.h usability... " >&6; }
27635 cat >conftest.
$ac_ext <<_ACEOF
27638 cat confdefs.h
>>conftest.
$ac_ext
27639 cat >>conftest.
$ac_ext <<_ACEOF
27640 /* end confdefs.h. */
27641 $ac_includes_default
27644 rm -f conftest.
$ac_objext
27645 if { (ac_try
="$ac_compile"
27646 case "(($ac_try" in
27647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27648 *) ac_try_echo=$ac_try;;
27650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27651 $as_echo "$ac_try_echo") >&5
27652 (eval "$ac_compile") 2>conftest.er1
27654 grep -v '^ *+' conftest.er1 >conftest.err
27656 cat conftest.err >&5
27657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } && {
27659 test -z "$ac_c_werror_flag" ||
27660 test ! -s conftest.err
27661 } && test -s conftest.$ac_objext; then
27662 ac_header_compiler=yes
27664 $as_echo "$as_me: failed program was:" >&5
27665 sed 's/^/| /' conftest.$ac_ext >&5
27667 ac_header_compiler=no
27670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27671 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27672 $as_echo "$ac_header_compiler" >&6; }
27674 # Is the header present?
27675 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
27676 $as_echo_n "checking tcl.h presence... " >&6; }
27677 cat >conftest.$ac_ext <<_ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h. */
27685 if { (ac_try="$ac_cpp conftest.$ac_ext"
27686 case "(($ac_try" in
27687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27688 *) ac_try_echo
=$ac_try;;
27690 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27691 $as_echo "$ac_try_echo") >&5
27692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27694 grep -v '^ *+' conftest.er1
>conftest.err
27696 cat conftest.err
>&5
27697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); } >/dev
/null
&& {
27699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27700 test ! -s conftest.err
27702 ac_header_preproc
=yes
27704 $as_echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.
$ac_ext >&5
27707 ac_header_preproc
=no
27710 rm -f conftest.err conftest.
$ac_ext
27711 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27712 $as_echo "$ac_header_preproc" >&6; }
27714 # So? What about this header?
27715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27717 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27718 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27719 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
27720 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
27721 ac_header_preproc
=yes
27724 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
27725 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
27726 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
27727 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
27728 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
27729 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
27730 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
27731 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27732 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
27733 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
27734 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
27735 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
27737 ## ---------------------------------------- ##
27738 ## Report this to pgsql-bugs@postgresql.org ##
27739 ## ---------------------------------------- ##
27741 ) |
sed "s/^/$as_me: WARNING: /" >&2
27744 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27745 $as_echo_n "checking for tcl.h... " >&6; }
27746 if test "${ac_cv_header_tcl_h+set}" = set; then
27747 $as_echo_n "(cached) " >&6
27749 ac_cv_header_tcl_h
=$ac_header_preproc
27751 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27752 $as_echo "$ac_cv_header_tcl_h" >&6; }
27755 if test "x$ac_cv_header_tcl_h" = x
""yes; then
27758 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
27759 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
27760 { (exit 1); exit 1; }; }
27764 CPPFLAGS
=$ac_save_CPPFLAGS
27768 # Check for DocBook and tools
27770 for ac_prog
in onsgmls nsgmls
27772 # Extract the first word of "$ac_prog", so it can be a program name with args.
27773 set dummy
$ac_prog; ac_word
=$2
27774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27775 $as_echo_n "checking for $ac_word... " >&6; }
27776 if test "${ac_cv_prog_NSGMLS+set}" = set; then
27777 $as_echo_n "(cached) " >&6
27779 if test -n "$NSGMLS"; then
27780 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
27782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27783 for as_dir
in $PATH
27786 test -z "$as_dir" && as_dir
=.
27787 for ac_exec_ext
in '' $ac_executable_extensions; do
27788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27789 ac_cv_prog_NSGMLS
="$ac_prog"
27790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27799 NSGMLS
=$ac_cv_prog_NSGMLS
27800 if test -n "$NSGMLS"; then
27801 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
27802 $as_echo "$NSGMLS" >&6; }
27804 { $as_echo "$as_me:$LINENO: result: no" >&5
27805 $as_echo "no" >&6; }
27809 test -n "$NSGMLS" && break
27812 for ac_prog
in openjade jade
27814 # Extract the first word of "$ac_prog", so it can be a program name with args.
27815 set dummy
$ac_prog; ac_word
=$2
27816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27817 $as_echo_n "checking for $ac_word... " >&6; }
27818 if test "${ac_cv_prog_JADE+set}" = set; then
27819 $as_echo_n "(cached) " >&6
27821 if test -n "$JADE"; then
27822 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
27824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27825 for as_dir
in $PATH
27828 test -z "$as_dir" && as_dir
=.
27829 for ac_exec_ext
in '' $ac_executable_extensions; do
27830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27831 ac_cv_prog_JADE
="$ac_prog"
27832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27841 JADE
=$ac_cv_prog_JADE
27842 if test -n "$JADE"; then
27843 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
27844 $as_echo "$JADE" >&6; }
27846 { $as_echo "$as_me:$LINENO: result: no" >&5
27847 $as_echo "no" >&6; }
27851 test -n "$JADE" && break
27855 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
27856 $as_echo_n "checking for DocBook V4.2... " >&6; }
27857 if test "${pgac_cv_check_docbook+set}" = set; then
27858 $as_echo_n "(cached) " >&6
27860 cat >conftest.sgml
<<EOF
27861 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
27863 <title>test</title>
27865 <title>random</title>
27867 <title>testsect</title>
27874 pgac_cv_check_docbook
=no
27876 if test -n "$NSGMLS"; then
27877 $NSGMLS -s conftest.sgml
1>&5 2>&1
27878 if test $?
-eq 0; then
27879 pgac_cv_check_docbook
=yes
27882 rm -f conftest.sgml
27884 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
27885 $as_echo "$pgac_cv_check_docbook" >&6; }
27887 have_docbook
=$pgac_cv_check_docbook
27890 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
27891 $as_echo_n "checking for DocBook stylesheets... " >&6; }
27892 if test "${pgac_cv_path_stylesheets+set}" = set; then
27893 $as_echo_n "(cached) " >&6
27895 if test -n "$DOCBOOKSTYLE"; then
27896 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
27898 for pgac_prefix
in /usr
/usr
/local /opt
/sw
; do
27899 for pgac_infix
in share lib
; do
27900 for pgac_postfix
in \
27901 sgml
/stylesheets
/nwalsh-modular \
27902 sgml
/stylesheets
/docbook \
27903 sgml
/stylesheets
/dsssl
/docbook \
27904 sgml
/docbook-dsssl \
27905 sgml
/docbook
/dsssl
/modular \
27906 sgml
/docbook
/stylesheet
/dsssl
/modular \
27907 sgml
/docbook
/dsssl-stylesheets \
27908 sgml
/dsssl
/docbook-dsssl-nwalsh
27910 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
27911 if test -r "$pgac_candidate/html/docbook.dsl" \
27912 && test -r "$pgac_candidate/print/docbook.dsl"
27914 pgac_cv_path_stylesheets
=$pgac_candidate
27923 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
27925 if test -n "$DOCBOOKSTYLE"; then
27926 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
27927 $as_echo "$DOCBOOKSTYLE" >&6; }
27929 { $as_echo "$as_me:$LINENO: result: no" >&5
27930 $as_echo "no" >&6; }
27932 if test -n "$DOCBOOKSTYLE"; then
27933 for ac_prog
in collateindex.pl
27935 # Extract the first word of "$ac_prog", so it can be a program name with args.
27936 set dummy
$ac_prog; ac_word
=$2
27937 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27938 $as_echo_n "checking for $ac_word... " >&6; }
27939 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
27940 $as_echo_n "(cached) " >&6
27942 case $COLLATEINDEX in
27944 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
27947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27948 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
27951 test -z "$as_dir" && as_dir
=.
27952 for ac_exec_ext
in '' $ac_executable_extensions; do
27953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27954 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
27955 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27965 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
27966 if test -n "$COLLATEINDEX"; then
27967 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
27968 $as_echo "$COLLATEINDEX" >&6; }
27970 { $as_echo "$as_me:$LINENO: result: no" >&5
27971 $as_echo "no" >&6; }
27975 test -n "$COLLATEINDEX" && break
27979 for ac_prog
in collateindex.pl
27981 # Extract the first word of "$ac_prog", so it can be a program name with args.
27982 set dummy
$ac_prog; ac_word
=$2
27983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27984 $as_echo_n "checking for $ac_word... " >&6; }
27985 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
27986 $as_echo_n "(cached) " >&6
27988 case $COLLATEINDEX in
27990 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
27993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27994 for as_dir
in $PATH
27997 test -z "$as_dir" && as_dir
=.
27998 for ac_exec_ext
in '' $ac_executable_extensions; do
27999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28000 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
28001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28011 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
28012 if test -n "$COLLATEINDEX"; then
28013 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28014 $as_echo "$COLLATEINDEX" >&6; }
28016 { $as_echo "$as_me:$LINENO: result: no" >&5
28017 $as_echo "no" >&6; }
28021 test -n "$COLLATEINDEX" && break
28025 for ac_prog
in sgmlspl
28027 # Extract the first word of "$ac_prog", so it can be a program name with args.
28028 set dummy
$ac_prog; ac_word
=$2
28029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28030 $as_echo_n "checking for $ac_word... " >&6; }
28031 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
28032 $as_echo_n "(cached) " >&6
28034 if test -n "$SGMLSPL"; then
28035 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
28037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28038 for as_dir
in $PATH
28041 test -z "$as_dir" && as_dir
=.
28042 for ac_exec_ext
in '' $ac_executable_extensions; do
28043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28044 ac_cv_prog_SGMLSPL
="$ac_prog"
28045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28054 SGMLSPL
=$ac_cv_prog_SGMLSPL
28055 if test -n "$SGMLSPL"; then
28056 { $as_echo "$as_me:$LINENO: result: $SGMLSPL" >&5
28057 $as_echo "$SGMLSPL" >&6; }
28059 { $as_echo "$as_me:$LINENO: result: no" >&5
28060 $as_echo "no" >&6; }
28064 test -n "$SGMLSPL" && break
28067 { $as_echo "$as_me:$LINENO: checking for docbook2man" >&5
28068 $as_echo_n "checking for docbook2man... " >&6; }
28069 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
28070 $as_echo_n "(cached) " >&6
28072 if test -z "$DOCBOOK2MAN"; then
28073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28074 for as_dir
in $PATH
28077 test -z "$as_dir" && as_dir
=.
28078 for ac_prog
in docbook2x-man db2x_docbook2man docbook2man
; do
28079 ac_path
="$as_dir/$ac_prog"
28080 { test -f "$ac_path" && $as_test_x "$ac_path"; } ||
continue
28081 if "$ac_path" --version 2>/dev
/null |
$GREP docbook2x
>/dev
/null
2>&1; then
28082 ac_cv_path_DOCBOOK2MAN
=$ac_path
28090 ac_cv_path_DOCBOOK2MAN
=$DOCBOOK2MAN
28093 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
28094 $as_echo "$ac_cv_path_DOCBOOK2MAN" >&6; }
28095 DOCBOOK2MAN
=$ac_cv_path_DOCBOOK2MAN
28101 # We have to run the thread test near the end so we have all our symbols
28102 # defined. Cross compiling throws a warning.
28104 if test "$enable_thread_safety_force" = yes; then
28105 if test "$PORTNAME" != "win32"
28107 { $as_echo "$as_me:$LINENO: WARNING:
28108 *** Skipping thread test program. --enable-thread-safety-force was used.
28109 *** Run the program in src/test/thread on the your machine and add proper
28110 *** locking function calls to your applications to guarantee thread safety.
28112 $as_echo "$as_me: WARNING:
28113 *** Skipping thread test program. --enable-thread-safety-force was used.
28114 *** Run the program in src/test/thread on the your machine and add proper
28115 *** locking function calls to your applications to guarantee thread safety.
28118 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28119 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28121 elif test "$enable_thread_safety" = yes; then
28122 if test "$PORTNAME" != "win32"
28124 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28125 $as_echo_n "checking thread safety of required library functions... " >&6; }
28129 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28130 LIBS
="$LIBS $PTHREAD_LIBS"
28131 if test "$cross_compiling" = yes; then
28132 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28133 $as_echo "maybe" >&6; }
28134 { $as_echo "$as_me:$LINENO: WARNING:
28135 *** Skipping thread test program because of cross-compile build.
28136 *** Run the program in src/test/thread on the target machine.
28138 $as_echo "$as_me: WARNING:
28139 *** Skipping thread test program because of cross-compile build.
28140 *** Run the program in src/test/thread on the target machine.
28143 cat >conftest.
$ac_ext <<_ACEOF
28146 cat confdefs.h
>>conftest.
$ac_ext
28147 cat >>conftest.
$ac_ext <<_ACEOF
28148 /* end confdefs.h. */
28149 #include "$srcdir/src/test/thread/thread_test.c"
28151 rm -f conftest
$ac_exeext
28152 if { (ac_try
="$ac_link"
28153 case "(($ac_try" in
28154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28158 $as_echo "$ac_try_echo") >&5
28159 (eval "$ac_link") 2>&5
28161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28163 { (case "(($ac_try" in
28164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28165 *) ac_try_echo
=$ac_try;;
28167 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28168 $as_echo "$ac_try_echo") >&5
28169 (eval "$ac_try") 2>&5
28171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; }; then
28173 { $as_echo "$as_me:$LINENO: result: yes" >&5
28174 $as_echo "yes" >&6; }
28176 $as_echo "$as_me: program exited with status $ac_status" >&5
28177 $as_echo "$as_me: failed program was:" >&5
28178 sed 's/^/| /' conftest.
$ac_ext >&5
28180 ( exit $ac_status )
28181 { $as_echo "$as_me:$LINENO: result: no" >&5
28182 $as_echo "no" >&6; }
28183 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28184 This platform is not thread-safe. Check the file 'config.log' for the
28187 You can use the configure option --enable-thread-safety-force to force
28188 threads to be enabled. But you must then run the program in
28189 src/test/thread and add locking function calls to your applications to
28190 guarantee thread safety." >&5
28191 $as_echo "$as_me: error: thread test program failed
28192 This platform is not thread-safe. Check the file 'config.log' for the
28195 You can use the configure option --enable-thread-safety-force to force
28196 threads to be enabled. But you must then run the program in
28197 src/test/thread and add locking function calls to your applications to
28198 guarantee thread safety." >&2;}
28199 { (exit 1); exit 1; }; }
28201 rm -rf conftest.dSYM
28202 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28209 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28210 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28214 # If compiler will take -Wl,--as-needed (or various platform-specific
28215 # spellings thereof) then add that to LDFLAGS. This is much easier than
28216 # trying to filter LIBS to the minimum for each executable.
28217 # (Note that shared library links won't use this switch, though.)
28218 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28219 # libreadline; therefore we postpone testing it until we know what library
28220 # dependencies readline has. The test code will try to link with $LIBS.
28221 if test "$with_readline" = yes; then
28222 link_test_func
=readline
28224 link_test_func
=exit
28227 if test "$PORTNAME" = "darwin"; then
28228 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28229 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28230 pgac_save_LDFLAGS
=$LDFLAGS
28231 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28232 if test "$cross_compiling" = yes; then
28233 LDFLAGS
="$pgac_save_LDFLAGS"
28234 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28235 $as_echo "assuming no" >&6; }
28237 cat >conftest.
$ac_ext <<_ACEOF
28240 cat confdefs.h
>>conftest.
$ac_ext
28241 cat >>conftest.
$ac_ext <<_ACEOF
28242 /* end confdefs.h. */
28243 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28252 rm -f conftest
$ac_exeext
28253 if { (ac_try
="$ac_link"
28254 case "(($ac_try" in
28255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28259 $as_echo "$ac_try_echo") >&5
28260 (eval "$ac_link") 2>&5
28262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28264 { (case "(($ac_try" in
28265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28266 *) ac_try_echo
=$ac_try;;
28268 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28269 $as_echo "$ac_try_echo") >&5
28270 (eval "$ac_try") 2>&5
28272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; }; then
28274 { $as_echo "$as_me:$LINENO: result: yes" >&5
28275 $as_echo "yes" >&6; }
28277 $as_echo "$as_me: program exited with status $ac_status" >&5
28278 $as_echo "$as_me: failed program was:" >&5
28279 sed 's/^/| /' conftest.
$ac_ext >&5
28281 ( exit $ac_status )
28282 LDFLAGS
="$pgac_save_LDFLAGS"
28283 { $as_echo "$as_me:$LINENO: result: no" >&5
28284 $as_echo "no" >&6; }
28286 rm -rf conftest.dSYM
28287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28292 elif test "$PORTNAME" = "openbsd"; then
28293 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28294 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28295 pgac_save_LDFLAGS
=$LDFLAGS
28296 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28297 if test "$cross_compiling" = yes; then
28298 LDFLAGS
="$pgac_save_LDFLAGS"
28299 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28300 $as_echo "assuming no" >&6; }
28302 cat >conftest.
$ac_ext <<_ACEOF
28305 cat confdefs.h
>>conftest.
$ac_ext
28306 cat >>conftest.
$ac_ext <<_ACEOF
28307 /* end confdefs.h. */
28308 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28317 rm -f conftest
$ac_exeext
28318 if { (ac_try
="$ac_link"
28319 case "(($ac_try" in
28320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28324 $as_echo "$ac_try_echo") >&5
28325 (eval "$ac_link") 2>&5
28327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28329 { (case "(($ac_try" in
28330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28331 *) ac_try_echo
=$ac_try;;
28333 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28334 $as_echo "$ac_try_echo") >&5
28335 (eval "$ac_try") 2>&5
28337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; }; then
28339 { $as_echo "$as_me:$LINENO: result: yes" >&5
28340 $as_echo "yes" >&6; }
28342 $as_echo "$as_me: program exited with status $ac_status" >&5
28343 $as_echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.
$ac_ext >&5
28346 ( exit $ac_status )
28347 LDFLAGS
="$pgac_save_LDFLAGS"
28348 { $as_echo "$as_me:$LINENO: result: no" >&5
28349 $as_echo "no" >&6; }
28351 rm -rf conftest.dSYM
28352 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28358 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28359 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28360 pgac_save_LDFLAGS
=$LDFLAGS
28361 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
28362 if test "$cross_compiling" = yes; then
28363 LDFLAGS
="$pgac_save_LDFLAGS"
28364 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28365 $as_echo "assuming no" >&6; }
28367 cat >conftest.
$ac_ext <<_ACEOF
28370 cat confdefs.h
>>conftest.
$ac_ext
28371 cat >>conftest.
$ac_ext <<_ACEOF
28372 /* end confdefs.h. */
28373 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28382 rm -f conftest
$ac_exeext
28383 if { (ac_try
="$ac_link"
28384 case "(($ac_try" in
28385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28389 $as_echo "$ac_try_echo") >&5
28390 (eval "$ac_link") 2>&5
28392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28394 { (case "(($ac_try" in
28395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28396 *) ac_try_echo
=$ac_try;;
28398 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28399 $as_echo "$ac_try_echo") >&5
28400 (eval "$ac_try") 2>&5
28402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403 (exit $ac_status); }; }; then
28404 { $as_echo "$as_me:$LINENO: result: yes" >&5
28405 $as_echo "yes" >&6; }
28407 $as_echo "$as_me: program exited with status $ac_status" >&5
28408 $as_echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.
$ac_ext >&5
28411 ( exit $ac_status )
28412 LDFLAGS
="$pgac_save_LDFLAGS"
28413 { $as_echo "$as_me:$LINENO: result: no" >&5
28414 $as_echo "no" >&6; }
28416 rm -rf conftest.dSYM
28417 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28425 # Begin output steps
28427 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28428 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28429 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28430 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28431 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28432 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28434 # Create compiler version string
28435 if test x
"$GCC" = x
"yes" ; then
28436 cc_string
="GCC `${CC} --version | sed q`"
28437 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
28438 cc_string
=`${CC} -V 2>&1 | sed q`
28444 cat >>confdefs.h
<<_ACEOF
28445 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28449 # Supply a numeric version string for use by 3rd party add-ons
28450 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28451 PG_VERSION_NUM
="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28453 $AWK '{printf "%d
%02d
%02d
", $1, $2, (NF >= 3) ? $3 : 0}'`"
28455 cat >>confdefs.h
<<_ACEOF
28456 #define PG_VERSION_NUM $PG_VERSION_NUM
28461 # prepare build tree if outside source tree
28462 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28463 # Note 2: /bin/pwd might be better than shell's built-in at getting
28464 # a symlink-free name.
28465 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28469 if test "$no_create" != yes; then
28470 $as_echo_n "preparing build tree... " >&6
28471 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
28472 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28473 ||
{ { $as_echo "$as_me:$LINENO: error: failed" >&5
28474 $as_echo "$as_me: error: failed" >&2;}
28475 { (exit 1); exit 1; }; }
28476 { $as_echo "$as_me:$LINENO: result: done" >&5
28477 $as_echo "done" >&6; }
28483 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
28486 ac_config_links
="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
28489 if test "$PORTNAME" = "win32"; then
28490 ac_config_commands
="$ac_config_commands check_win32_symlinks"
28494 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
28497 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28500 cat >confcache
<<\_ACEOF
28501 # This file is a shell script that caches the results of configure
28502 # tests run on this system so they can be shared between configure
28503 # scripts and configure runs, see configure's option --config-cache.
28504 # It is not useful on other systems. If it contains results you don't
28505 # want to keep, you may remove or edit it.
28507 # config.status only pays attention to the cache file if you give it
28508 # the --recheck option to rerun configure.
28510 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28511 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28512 # following values.
28516 # The following way of writing the cache mishandles newlines in values,
28517 # but we know of no workaround that is simple, portable, and efficient.
28518 # So, we kill variables containing newlines.
28519 # Ultrix sh set writes to stderr and can't be redirected directly,
28520 # and sets the high bit in the cache file unless we assign to the vars.
28522 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28523 eval ac_val
=\$
$ac_var
28527 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28528 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28531 _ | IFS | as_nl
) ;; #(
28532 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28533 *) $as_unset $ac_var ;;
28539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28540 *${as_nl}ac_space
=\
*)
28541 # `set' does not quote correctly, so add quotes (double-quote
28542 # substitution turns \\\\ into \\, and sed turns \\ into \).
28545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28548 # `set' quotes correctly as required by POSIX, so do not add quotes.
28549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28562 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28563 if test -w "$cache_file"; then
28564 test "x$cache_file" != "x/dev/null" &&
28565 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28566 $as_echo "$as_me: updating cache $cache_file" >&6;}
28567 cat confcache
>$cache_file
28569 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28570 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28575 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28576 # Let make expand exec_prefix.
28577 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28579 DEFS
=-DHAVE_CONFIG_H
28583 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28584 # 1. Remove the extension, and $U if already installed.
28585 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28586 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28588 # will be set to the directory where LIBOBJS objects are built.
28589 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28590 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28592 LIBOBJS
=$ac_libobjs
28594 LTLIBOBJS
=$ac_ltlibobjs
28599 : ${CONFIG_STATUS=./config.status}
28601 ac_clean_files_save
=$ac_clean_files
28602 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28603 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28604 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28605 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28607 # Generated by $as_me.
28608 # Run this file to recreate the current configuration.
28609 # Compiler output produced by configure, useful for debugging
28610 # configure, is in config.log if it exists.
28613 ac_cs_recheck=false
28615 SHELL=\${CONFIG_SHELL-$SHELL}
28618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28619 ## --------------------- ##
28620 ## M4sh Initialization. ##
28621 ## --------------------- ##
28623 # Be more Bourne compatible
28624 DUALCASE
=1; export DUALCASE
# for MKS sh
28625 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
28628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28629 # is contrary to our usage. Disable this feature.
28630 alias -g '${1+"$@"}'='"$@"'
28631 setopt NO_GLOB_SUBST
28633 case `(set -o) 2>/dev/null` in
28634 *posix
*) set -o posix
;;
28643 # Avoid depending upon Character Ranges.
28644 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28645 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28646 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28647 as_cr_digits
='0123456789'
28648 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28653 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28654 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28656 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28657 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28658 as_echo='printf %s
\n'
28659 as_echo_n='printf %s
'
28661 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28662 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28663 as_echo_n='/usr
/ucb
/echo -n'
28665 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28666 as_echo_n_body='eval
28670 expr "X$arg" : "X\\(.*\\)$as_nl";
28671 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28673 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28675 export as_echo_n_body
28676 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28678 export as_echo_body
28679 as_echo='sh
-c $as_echo_body as_echo
'
28682 # The user is always right.
28683 if test "${PATH_SEPARATOR+set}" != set; then
28685 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28686 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28691 # Support unset when possible.
28692 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28700 # We need space, tab and new line, in precisely that order. Quoting is
28701 # there to prevent editors from complaining about space-tab.
28702 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28703 # splitting by setting IFS to empty value.)
28706 # Find who we are. Look in the path if we contain no directory separator.
28708 *[\\/]* ) as_myself=$0 ;;
28709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28710 for as_dir in $PATH
28713 test -z "$as_dir" && as_dir=.
28714 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28720 # We did not find ourselves, most probably we were run as `sh COMMAND'
28721 # in which case we are not to be found in the path.
28722 if test "x$as_myself" = x
; then
28725 if test ! -f "$as_myself"; then
28726 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28727 { (exit 1); exit 1; }
28730 # Work around bugs in pre-3.0 UWIN ksh.
28731 for as_var
in ENV MAIL MAILPATH
28732 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
28744 # Required to use basename.
28745 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28746 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28752 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28753 as_basename
=basename
28759 # Name of the executable.
28760 as_me
=`$as_basename -- "$0" ||
28761 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28762 X"$0" : 'X\(//\)$' \| \
28763 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28765 sed '/^.*\/\([^/][^/]*\)\/*$/{
28784 as_lineno_1
=$LINENO
28785 as_lineno_2
=$LINENO
28786 test "x$as_lineno_1" != "x$as_lineno_2" &&
28787 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
28789 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28790 # uniformly replaced by the line number. The first 'sed' inserts a
28791 # line-number line after each line using $LINENO; the second 'sed'
28792 # does the real work. The second script uses 'N' to pair each
28793 # line-number line with the line containing $LINENO, and appends
28794 # trailing '-' during substitution so that $LINENO is not a special
28795 # case at line end.
28796 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28797 # scripts with optimization help from Paolo Bonzini. Blame Lee
28798 # E. McMahon (1931-1989) for sed's syntax. :-)
28810 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28813 ' >$as_me.lineno
&&
28814 chmod +x
"$as_me.lineno" ||
28815 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28816 { (exit 1); exit 1; }; }
28818 # Don't try to exec as it changes $[0], causing all sort of problems
28819 # (the dirname of $[0] is not the place where we might find the
28820 # original and so on. Autoconf is especially sensitive to this).
28821 .
"./$as_me.lineno"
28822 # Exit status is that of the last command.
28827 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28833 ECHO_C
= ECHO_N
= ECHO_T
=
28834 case `echo -n x` in
28836 case `echo 'x\c'` in
28837 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28843 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28844 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28850 rm -f conf$$ conf$$.exe conf$$.
file
28851 if test -d conf$$.dir
; then
28852 rm -f conf$$.dir
/conf$$.
file
28855 mkdir conf$$.dir
2>/dev
/null
28857 if (echo >conf$$.
file) 2>/dev
/null
; then
28858 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28860 # ... but there are two gotchas:
28861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28863 # In both cases, we have to default to `cp -p'.
28864 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28866 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28874 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28875 rmdir conf$$.dir
2>/dev
/null
28877 if mkdir
-p .
2>/dev
/null
; then
28880 test -d .
/-p && rmdir .
/-p
28884 if test -x / >/dev
/null
2>&1; then
28885 as_test_x
='test -x'
28887 if ls -dL / >/dev
/null
2>&1; then
28894 if test -d "$1"; then
28900 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28901 ???[sx]*):;;*)false;;esac;fi
28905 as_executable_p
=$as_test_x
28907 # Sed expression to map a string onto a valid CPP name.
28908 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28910 # Sed expression to map a string onto a valid variable name.
28911 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28916 # Save the log message, to keep $[0] and so on meaningful, and to
28917 # report actual input values of CONFIG_FILES etc. instead of their
28918 # values after options handling.
28920 This file was extended by PostgreSQL $as_me 8.5devel, which was
28921 generated by GNU Autoconf 2.63. Invocation command line was
28923 CONFIG_FILES = $CONFIG_FILES
28924 CONFIG_HEADERS = $CONFIG_HEADERS
28925 CONFIG_LINKS = $CONFIG_LINKS
28926 CONFIG_COMMANDS = $CONFIG_COMMANDS
28929 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28934 case $ac_config_files in *"
28935 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28938 case $ac_config_headers in *"
28939 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28944 # Files that config.status was made for.
28945 config_files="$ac_config_files"
28946 config_headers="$ac_config_headers"
28947 config_links="$ac_config_links"
28948 config_commands="$ac_config_commands"
28952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28954 \`$as_me' instantiates files from templates according to the
28955 current configuration.
28957 Usage: $0 [OPTION]... [FILE]...
28959 -h, --help print this help, then exit
28960 -V, --version print version number and configuration settings, then exit
28961 -q, --quiet, --silent
28962 do not print progress messages
28963 -d, --debug don't remove temporary files
28964 --recheck update $as_me by reconfiguring in the same conditions
28965 --file=FILE[:TEMPLATE]
28966 instantiate the configuration file FILE
28967 --header=FILE[:TEMPLATE]
28968 instantiate the configuration header FILE
28970 Configuration files:
28973 Configuration headers:
28976 Configuration links:
28979 Configuration commands:
28982 Report bugs to <bug-autoconf@gnu.org>."
28985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28987 PostgreSQL config.status 8.5devel
28988 configured by $0, generated by GNU Autoconf 2.63,
28989 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28991 Copyright (C) 2008 Free Software Foundation, Inc.
28992 This config.status script is free software; the Free Software Foundation
28993 gives unlimited permission to copy, distribute and modify it."
28998 test -n "\$AWK" || AWK=awk
29001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29002 # The default lists apply if the user does not specify any file.
29008 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29009 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29020 # Handling of the options.
29021 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29023 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29024 $as_echo "$ac_cs_version"; exit ;;
29025 --debug |
--debu |
--deb |
--de |
--d |
-d )
29027 --file |
--fil |
--fi |
--f )
29030 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29032 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
29033 ac_need_defaults
=false
;;
29034 --header |
--heade |
--head |
--hea )
29037 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29039 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
29040 ac_need_defaults
=false
;;
29042 # Conflict between --help and --header
29043 { $as_echo "$as_me: error: ambiguous option: $1
29044 Try \`$0 --help' for more information." >&2
29045 { (exit 1); exit 1; }; };;
29046 --help |
--hel |
-h )
29047 $as_echo "$ac_cs_usage"; exit ;;
29048 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29049 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29052 # This is an error.
29053 -*) { $as_echo "$as_me: error: unrecognized option: $1
29054 Try \`$0 --help' for more information." >&2
29055 { (exit 1); exit 1; }; } ;;
29057 *) ac_config_targets
="$ac_config_targets $1"
29058 ac_need_defaults
=false
;;
29064 ac_configure_extra_args
=
29066 if $ac_cs_silent; then
29068 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29073 if \$ac_cs_recheck; then
29074 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29076 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29077 CONFIG_SHELL='$SHELL'
29078 export CONFIG_SHELL
29083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29088 ## Running $as_me. ##
29094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29099 # Handling of arguments.
29100 for ac_config_target
in $ac_config_targets
29102 case $ac_config_target in
29103 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29104 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
29105 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
29106 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29107 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29108 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29109 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29110 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29111 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29112 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
29113 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
29114 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29116 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29117 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29118 { (exit 1); exit 1; }; };;
29123 # If the user did not use the arguments to specify the items to instantiate,
29124 # then the envvar interface is used. Set only those that are not.
29125 # We use the long form for the default assignment because of an extremely
29126 # bizarre bug on SunOS 4.1.3.
29127 if $ac_need_defaults; then
29128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29130 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29134 # Have a temporary directory for convenience. Make it in the build tree
29135 # simply because there is no reason against having it here, and in addition,
29136 # creating and moving files from /tmp can sometimes cause problems.
29137 # Hook for its removal unless debugging.
29138 # Note that there is a small window in which the directory will not be cleaned:
29139 # after its creation but before its name has been assigned to `$tmp'.
29143 trap 'exit_status=$?
29144 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29146 trap '{ (exit 1); exit 1; }' 1 2 13 15
29148 # Create a (secure) tmp directory for tmp files.
29151 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29152 test -n "$tmp" && test -d "$tmp"
29155 tmp
=.
/conf$$
-$RANDOM
29156 (umask 077 && mkdir
"$tmp")
29159 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29160 { (exit 1); exit 1; }
29163 # Set up the scripts for CONFIG_FILES section.
29164 # No need to generate them if there are no CONFIG_FILES.
29165 # This happens for instance with `./config.status config.h'.
29166 if test -n "$CONFIG_FILES"; then
29170 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29174 ac_cs_awk_cr
=$ac_cr
29177 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29182 echo "cat >conf$$subs.awk <<_ACEOF" &&
29183 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29185 } >conf$$subs.sh ||
29186 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
29187 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
29188 { (exit 1); exit 1; }; }
29189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29191 for ac_last_try in false false false false false :; do
29192 . ./conf$$subs.sh ||
29193 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
29194 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
29195 { (exit 1); exit 1; }; }
29197 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29198 if test $ac_delim_n = $ac_delim_num; then
29200 elif $ac_last_try; then
29201 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
29202 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
29203 { (exit 1); exit 1; }; }
29205 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29208 rm -f conf$$subs.sh
29210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29211 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29215 s/^/S["/; s
/!.
*/"]=/
29225 s/\(.\{148\}\).*/\1/
29227 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29232 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29239 s/\(.\{148\}\).*/\1/
29241 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29245 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29250 ' <conf$$subs.awk | sed '
29255 ' >>$CONFIG_STATUS || ac_write_fail=1
29256 rm -f conf$$subs.awk
29257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29259 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29260 for (key in S) S_is_set[key] = 1
29266 nfields = split(line, field, "@
")
29268 len = length(field[1])
29269 for (i = 2; i < nfields; i++) {
29271 keylen = length(key)
29272 if (S_is_set[key]) {
29274 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29275 len += length(value) + length(field[++i])
29286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29287 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29288 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29291 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29292 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
29293 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
29294 { (exit 1); exit 1; }; }
29297 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29298 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29299 # trailing colons and then remove the whole line if VPATH becomes empty
29300 # (actually we leave an empty line to preserve line numbers).
29301 if test "x
$srcdir" = x.; then
29302 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29303 s/:*\$(srcdir):*/:/
29304 s/:*\${srcdir}:*/:/
29306 s/^\([^=]*=[ ]*\):*/\1/
29312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29313 fi # test -n "$CONFIG_FILES"
29315 # Set up the scripts for CONFIG_HEADERS section.
29316 # No need to generate them if there are no CONFIG_HEADERS.
29317 # This happens for instance with `./config.status Makefile'.
29318 if test -n "$CONFIG_HEADERS"; then
29319 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29323 # Transform confdefs.h into an awk script `defines.awk', embedded as
29324 # here-document in config.status, that substitutes the proper values into
29325 # config.h.in to produce config.h.
29327 # Create a delimiter string that does not exist in confdefs.h, to ease
29328 # handling of long lines.
29330 for ac_last_try in false false :; do
29331 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29332 if test -z "$ac_t"; then
29334 elif $ac_last_try; then
29335 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
29336 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
29337 { (exit 1); exit 1; }; }
29339 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29343 # For the awk script, D is an array of macro values keyed by name,
29344 # likewise P contains macro parameters if any. Preserve backslash
29345 # newline sequences.
29347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29349 s/.\{148\}/&'"$ac_delim"'/g
29352 s/^[ ]*#[ ]*define[ ][ ]*/ /
29359 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29361 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29366 D["\
1"]=" \
3\\\\\\n
"\\/p
29368 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29373 s/.\{148\}/&'"$ac_delim"'/g
29378 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29381 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29383 ' <confdefs.h | sed '
29384 s/'"$ac_delim"'/"\\\
29385 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29388 for (key in D) D_is_set[key] = 1
29391 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29393 split(line, arg, " ")
29394 if (arg[1] == "#") {
29398 defundef
= substr
(arg
[1], 2)
29401 split(mac1
, mac2
, "(") #)
29403 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29404 if (D_is_set
[macro
]) {
29405 # Preserve the white space surrounding the "#".
29406 print prefix
"define", macro P
[macro
] D
[macro
]
29409 # Replace #undef with comments. This is necessary, for example,
29410 # in the case of _POSIX_SOURCE, which is predefined and required
29411 # on some systems where configure will not decide to define it.
29412 if (defundef
== "undef") {
29413 print
"/*", prefix defundef
, macro
, "*/"
29421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29422 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29423 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29424 { (exit 1); exit 1; }; }
29425 fi # test -n "$CONFIG_HEADERS"
29428 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29433 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29435 case $ac_mode$ac_tag in
29437 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29438 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29439 { (exit 1); exit 1; }; };;
29440 :[FH
]-) ac_tag
=-:-;;
29441 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29458 -) ac_f
="$tmp/stdin";;
29459 *) # Look for the file first in the build tree, then in the source tree
29460 # (if the path is not absolute). The absolute path cannot be DOS-style,
29461 # because $ac_f cannot contain `:'.
29465 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29467 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29468 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29469 { (exit 1); exit 1; }; };;
29471 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29472 ac_file_inputs
="$ac_file_inputs '$ac_f'"
29475 # Let's still pretend it is `configure' which instantiates (i.e., don't
29476 # use $as_me), people would be surprised to read:
29477 # /* config.h. Generated by config.status. */
29478 configure_input
='Generated from '`
29479 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29481 if test x
"$ac_file" != x-
; then
29482 configure_input
="$ac_file. $configure_input"
29483 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29484 $as_echo "$as_me: creating $ac_file" >&6;}
29486 # Neutralize special characters interpreted by sed in replacement strings.
29487 case $configure_input in #(
29488 *\
&* |
*\|
* |
*\\* )
29489 ac_sed_conf_input
=`$as_echo "$configure_input" |
29490 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29491 *) ac_sed_conf_input
=$configure_input;;
29495 *:-:* |
*:-) cat >"$tmp/stdin" \
29496 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29497 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29498 { (exit 1); exit 1; }; } ;;
29503 ac_dir
=`$as_dirname -- "$ac_file" ||
29504 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29505 X"$ac_file" : 'X\(//\)[^/]' \| \
29506 X"$ac_file" : 'X\(//\)$' \| \
29507 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29508 $as_echo X"$ac_file" |
29509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29513 /^X\(\/\/\)[^/].*/{
29528 -*) as_dir
=.
/$as_dir;;
29530 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
29534 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29535 *) as_qdir
=$as_dir;;
29537 as_dirs
="'$as_qdir' $as_dirs"
29538 as_dir
=`$as_dirname -- "$as_dir" ||
29539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29540 X"$as_dir" : 'X\(//\)[^/]' \| \
29541 X"$as_dir" : 'X\(//\)$' \| \
29542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29543 $as_echo X"$as_dir" |
29544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29548 /^X\(\/\/\)[^/].*/{
29561 test -d "$as_dir" && break
29563 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29564 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29565 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29566 { (exit 1); exit 1; }; }; }
29570 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29572 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29573 # A ".." for each directory in $ac_dir_suffix.
29574 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29575 case $ac_top_builddir_sub in
29576 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29577 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29580 ac_abs_top_builddir
=$ac_pwd
29581 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29582 # for backward compatibility:
29583 ac_top_builddir
=$ac_top_build_prefix
29586 .
) # We are building in place.
29588 ac_top_srcdir
=$ac_top_builddir_sub
29589 ac_abs_top_srcdir
=$ac_pwd ;;
29590 [\\/]* | ?
:[\\/]* ) # Absolute name.
29591 ac_srcdir
=$srcdir$ac_dir_suffix;
29592 ac_top_srcdir
=$srcdir
29593 ac_abs_top_srcdir
=$srcdir ;;
29594 *) # Relative name.
29595 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29596 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29597 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29599 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29611 # If the template does not know about datarootdir, expand it.
29612 # FIXME: This hack should be removed a few years after 2.60.
29613 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29626 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29627 *datarootdir
*) ac_datarootdir_seen
=yes;;
29628 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29629 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29630 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29633 ac_datarootdir_hack='
29634 s&@datadir@&$datadir&g
29635 s&@docdir@&$docdir&g
29636 s&@infodir@&$infodir&g
29637 s&@localedir@&$localedir&g
29638 s&@mandir@&$mandir&g
29639 s&\\\${datarootdir}&$datarootdir&g' ;;
29643 # Neutralize VPATH when `$srcdir' = `.'.
29644 # Shell code in configure.ac might set extrasub.
29645 # FIXME: do we really want to maintain this feature?
29646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29647 ac_sed_extra="$ac_vpsub
29650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29652 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29653 s|@configure_input@|
$ac_sed_conf_input|
;t t
29654 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29655 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29656 s
&@srcdir@
&$ac_srcdir&;t t
29657 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29658 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29659 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29660 s
&@builddir@
&$ac_builddir&;t t
29661 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29662 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29663 $ac_datarootdir_hack
29665 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
29666 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
29667 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
29668 { (exit 1); exit 1; }; }
29670 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29671 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29672 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29673 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29674 which seems to be undefined. Please make sure it is defined." >&5
29675 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29676 which seems to be undefined. Please make sure it is defined." >&2;}
29680 -) cat "$tmp/out" && rm -f "$tmp/out";;
29681 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29683 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29684 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29685 { (exit 1); exit 1; }; }
29691 if test x"$ac_file" != x-; then
29693 $as_echo "/* $configure_input */" \
29694 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29695 } >"$tmp/config.h" \
29696 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29697 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29698 { (exit 1); exit 1; }; }
29699 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29700 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29701 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29704 mv "$tmp/config.h" "$ac_file" \
29705 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29706 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29707 { (exit 1); exit 1; }; }
29710 $as_echo "/* $configure_input */" \
29711 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29712 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29713 $as_echo "$as_me: error: could not create -" >&2;}
29714 { (exit 1); exit 1; }; }
29722 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29725 # Prefer the file from the source tree if names are identical.
29726 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29727 ac_source=$srcdir/$ac_source
29730 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
29731 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29733 if test ! -r "$ac_source"; then
29734 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
29735 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
29736 { (exit 1); exit 1; }; }
29740 # Try a relative symlink, then a hard link, then a copy.
29742 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29743 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29745 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29746 ln "$ac_source" "$ac_file" 2>/dev/null ||
29747 cp -p "$ac_source" "$ac_file" ||
29748 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
29749 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
29750 { (exit 1); exit 1; }; }
29753 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29754 $as_echo "$as_me: executing $ac_file commands" >&6;}
29759 case $ac_file$ac_mode in
29760 "check_win32_symlinks":C)
29761 # Links sometimes fail undetected on Mingw -
29762 # so here we detect it and warn the user
29763 for FILE in $CONFIG_LINKS
29765 # test -e works for symlinks in the MinGW console
29766 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
29767 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
29770 "src/include/pg_config.h":H)
29771 # Update timestamp for pg_config.h (see Makefile.global)
29772 echo >src/include/stamp-h
29774 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
29780 { (exit 0); exit 0; }
29782 chmod +x $CONFIG_STATUS
29783 ac_clean_files=$ac_clean_files_save
29785 test $ac_write_fail = 0 ||
29786 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29787 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29788 { (exit 1); exit 1; }; }
29791 # configure is writing to config.log, and then calls config.status.
29792 # config.status does its own redirection, appending to config.log.
29793 # Unfortunately, on DOS this fails, as config.log is still kept open
29794 # by configure, so config.status won't be able to
write to it
; its
29795 # output is simply discarded. So we exec the FD to /dev/null,
29796 # effectively closing config.log, so it can be properly (re)opened and
29797 # appended to by config.status. When coming back to configure, we
29798 # need to make the FD available again.
29799 if test "$no_create" != yes; then
29801 ac_config_status_args
=
29802 test "$silent" = yes &&
29803 ac_config_status_args
="$ac_config_status_args --quiet"
29805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29808 # would make configure fail if this is the last instruction.
29809 $ac_cs_success ||
{ (exit 1); exit 1; }
29811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29812 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29813 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}