2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
57 # Support unset when possible.
58 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself
=$0 ;;
77 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir
=.
82 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x
; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var
in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C
; export $as_var
115 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me
=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x
; then
159 if (eval ":") 2>/dev
/null
; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev
/null
; then
225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
226 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir
=.
232 for as_base
in sh bash ksh sh5
; do
233 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
240 for as_shell
in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix
*) set -o posix
;;
262 CONFIG_SHELL
=$as_shell
264 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix
*) set -o posix
;;
290 as_func_ret_success
() {
293 as_func_ret_failure
() {
298 if as_func_success
; then
302 echo as_func_success failed.
305 if as_func_failure
; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success
; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure
; then
319 echo as_func_ret_failure succeeded.
322 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) ||
{ (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x
; then
347 for as_var
in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no
; then
356 echo This
script requires a shell
more modern than all the
357 echo shells that I found on your system. Please
install a
358 echo modern shell
, or manually run the
script under such a
359 echo shell
if you
do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") ||
{
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system
,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
476 ECHO_C
= ECHO_N
= ECHO_T
=
480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
487 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
494 rm -f conf$$ conf$$.exe conf$$.
file
495 if test -d conf$$.dir
; then
496 rm -f conf$$.dir
/conf$$.
file
502 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
515 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
516 rmdir conf$$.dir
2>/dev
/null
518 if mkdir
-p .
2>/dev
/null
; then
521 test -d .
/-p && rmdir .
/-p
525 if test -x / >/dev
/null
2>&1; then
528 if ls -dL / >/dev
/null
2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p
=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev
/null
6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix
=/usr
/local
568 ac_config_libobj_dir
=.
574 SHELL
=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME
='PostgreSQL'
578 PACKAGE_TARNAME
='postgresql'
579 PACKAGE_VERSION
='8.4devel'
580 PACKAGE_STRING
='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT
='pgsql-bugs@postgresql.org'
583 ac_unique_file
="src/backend/access/common/heaptuple.c"
584 ac_default_prefix
=/usr
/local
/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
746 python_additional_libs
779 ac_precious_vars
='build_alias
792 # Initialize some variables set by options.
794 ac_init_version
=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name
=s
,x
,x
,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir
='${exec_prefix}/bin'
819 sbindir
='${exec_prefix}/sbin'
820 libexecdir
='${exec_prefix}/libexec'
821 datarootdir
='${prefix}/share'
822 datadir
='${datarootdir}'
823 sysconfdir
='${prefix}/etc'
824 sharedstatedir
='${prefix}/com'
825 localstatedir
='${prefix}/var'
826 includedir
='${prefix}/include'
827 oldincludedir
='/usr/include'
828 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir
='${datarootdir}/info'
834 libdir
='${exec_prefix}/lib'
835 localedir
='${datarootdir}/locale'
836 mandir
='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\
$ac_option
850 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
862 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
865 -build |
--build |
--buil |
--bui |
--bu)
866 ac_prev
=build_alias
;;
867 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
868 build_alias
=$ac_optarg ;;
870 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
871 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
872 ac_prev
=cache_file
;;
873 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
874 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
875 cache_file
=$ac_optarg ;;
878 cache_file
=config.cache
;;
880 -datadir |
--datadir |
--datadi |
--datad)
882 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
883 datadir
=$ac_optarg ;;
885 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
886 |
--dataroo |
--dataro |
--datar)
887 ac_prev
=datarootdir
;;
888 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
889 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
890 datarootdir
=$ac_optarg ;;
892 -disable-* |
--disable-*)
893 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
898 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
899 eval enable_
$ac_feature=no
;;
901 -docdir |
--docdir |
--docdi |
--doc |
--do)
903 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
906 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
908 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
911 -enable-* |
--enable-*)
912 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
918 eval enable_
$ac_feature=\
$ac_optarg ;;
920 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
921 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
922 |
--exec |
--exe |
--ex)
923 ac_prev
=exec_prefix
;;
924 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
925 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
926 |
--exec=* |
--exe=* |
--ex=*)
927 exec_prefix
=$ac_optarg ;;
929 -gas |
--gas |
--ga |
--g)
930 # Obsolete; use --with-gas.
933 -help |
--help |
--hel |
--he |
-h)
935 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
936 ac_init_help
=recursive
;;
937 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
938 ac_init_help
=short
;;
940 -host |
--host |
--hos |
--ho)
941 ac_prev
=host_alias
;;
942 -host=* |
--host=* |
--hos=* |
--ho=*)
943 host_alias
=$ac_optarg ;;
945 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
947 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
949 htmldir
=$ac_optarg ;;
951 -includedir |
--includedir |
--includedi |
--included |
--include \
952 |
--includ |
--inclu |
--incl |
--inc)
953 ac_prev
=includedir
;;
954 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
955 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
956 includedir
=$ac_optarg ;;
958 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
960 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
961 infodir
=$ac_optarg ;;
963 -libdir |
--libdir |
--libdi |
--libd)
965 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
968 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
969 |
--libexe |
--libex |
--libe)
970 ac_prev
=libexecdir
;;
971 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
972 |
--libexe=* |
--libex=* |
--libe=*)
973 libexecdir
=$ac_optarg ;;
975 -localedir |
--localedir |
--localedi |
--localed |
--locale)
977 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
978 localedir
=$ac_optarg ;;
980 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
981 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
982 ac_prev
=localstatedir
;;
983 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
984 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
985 localstatedir
=$ac_optarg ;;
987 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
989 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
993 # Obsolete; use --without-fp.
996 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
997 |
--no-cr |
--no-c |
-n)
1000 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1001 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1004 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1005 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1006 |
--oldin |
--oldi |
--old |
--ol |
--o)
1007 ac_prev
=oldincludedir
;;
1008 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1009 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1010 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1011 oldincludedir
=$ac_optarg ;;
1013 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1015 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1016 prefix
=$ac_optarg ;;
1018 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1019 |
--program-pre |
--program-pr |
--program-p)
1020 ac_prev
=program_prefix
;;
1021 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1022 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1023 program_prefix
=$ac_optarg ;;
1025 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1026 |
--program-suf |
--program-su |
--program-s)
1027 ac_prev
=program_suffix
;;
1028 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1029 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1030 program_suffix
=$ac_optarg ;;
1032 -program-transform-name |
--program-transform-name \
1033 |
--program-transform-nam |
--program-transform-na \
1034 |
--program-transform-n |
--program-transform- \
1035 |
--program-transform |
--program-transfor \
1036 |
--program-transfo |
--program-transf \
1037 |
--program-trans |
--program-tran \
1038 |
--progr-tra |
--program-tr |
--program-t)
1039 ac_prev
=program_transform_name
;;
1040 -program-transform-name=* |
--program-transform-name=* \
1041 |
--program-transform-nam=* |
--program-transform-na=* \
1042 |
--program-transform-n=* |
--program-transform-=* \
1043 |
--program-transform=* |
--program-transfor=* \
1044 |
--program-transfo=* |
--program-transf=* \
1045 |
--program-trans=* |
--program-tran=* \
1046 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1047 program_transform_name
=$ac_optarg ;;
1049 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1051 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1052 pdfdir
=$ac_optarg ;;
1054 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1056 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1059 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1060 |
-silent |
--silent |
--silen |
--sile |
--sil)
1063 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1065 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1067 sbindir
=$ac_optarg ;;
1069 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1070 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1071 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1073 ac_prev
=sharedstatedir
;;
1074 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1075 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1076 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1078 sharedstatedir
=$ac_optarg ;;
1080 -site |
--site |
--sit)
1082 -site=* |
--site=* |
--sit=*)
1085 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1087 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1088 srcdir
=$ac_optarg ;;
1090 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1091 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1092 ac_prev
=sysconfdir
;;
1093 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1094 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1095 sysconfdir
=$ac_optarg ;;
1097 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1098 ac_prev
=target_alias
;;
1099 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1100 target_alias
=$ac_optarg ;;
1102 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1105 -version |
--version |
--versio |
--versi |
--vers |
-V)
1106 ac_init_version
=: ;;
1109 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_
$ac_package=\
$ac_optarg ;;
1117 -without-* |
--without-*)
1118 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_
$ac_package=no
;;
1127 # Obsolete; use --with-x.
1130 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1131 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1132 ac_prev
=x_includes
;;
1133 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1134 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1135 x_includes
=$ac_optarg ;;
1137 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1138 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1139 ac_prev
=x_libraries
;;
1140 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1141 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1142 x_libraries
=$ac_optarg ;;
1144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
1150 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
1155 eval $ac_envvar=\
$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 if test -n "$ac_prev"; then
1170 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
1175 # Be sure to have absolute directory names.
1176 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val
=\$
$ac_var
1183 [\\/$
]* | ?
:[\\/]* ) continue;;
1184 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1195 target
=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x
; then
1199 if test "x$build_alias" = x
; then
1200 cross_compiling
=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1211 test "$silent" = yes && exec 6>/dev
/null
1214 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di
=`ls -di .` &&
1216 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted
=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir
=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
1232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1256 ac_srcdir_defaulted
=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261 { (exit 1); exit 1; }; }
1263 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266 { (exit 1); exit 1; }; }
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1276 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 for ac_var
in $ac_precious_vars; do
1279 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1281 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1292 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1350 --build=BUILD configure
for building on BUILD
[guessed
]
1351 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1362 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1363 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1364 --disable-integer-datetimes
1365 disable
64-bit integer date
/time support
1366 --enable-nls[=LANGUAGES
]
1367 enable Native Language Support
1368 --disable-shared do not build shared libraries
1369 --disable-rpath do not embed shared library search path
in
1371 --disable-spinlocks do not use spinlocks
1372 --enable-debug build with debugging symbols
(-g)
1373 --enable-profiling build with profiling enabled
1374 --enable-coverage build with coverage testing instrumentation
1375 --enable-dtrace build with DTrace support
1376 --enable-depend turn on automatic dependency tracking
1377 --enable-cassert enable assertion checks
(for debugging
)
1378 --enable-thread-safety make client libraries thread-safe
1379 --enable-thread-safety-force
1380 force thread-safety despite thread
test failure
1381 --disable-float4-byval disable float4 passed by value
1382 --disable-float8-byval disable float8 passed by value
1383 --disable-largefile omit support
for large files
1386 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1387 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1388 --with-template=NAME override operating system template
1389 --with-includes=DIRS
look for additional header files
in DIRS
1390 --with-libraries=DIRS
look for additional libraries
in DIRS
1391 --with-libs=DIRS alternative spelling of
--with-libraries
1392 --with-pgport=PORTNUM
set default port number
[5432]
1393 --with-blocksize=BLOCKSIZE
1394 set table block size
in kB
[8]
1395 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1396 --with-wal-blocksize=BLOCKSIZE
1397 set WAL block size
in kB
[8]
1398 --with-wal-segsize=SEGSIZE
1399 set WAL segment size
in MB
[16]
1400 --with-CC=CMD
set compiler
(deprecated
)
1401 --with-tcl build Tcl modules
(PL
/Tcl
)
1402 --with-tclconfig=DIR tclConfig.sh is
in DIR
1403 --with-perl build Perl modules
(PL
/Perl
)
1404 --with-python build Python modules
(PL
/Python
)
1405 --with-gssapi build with GSSAPI support
1406 --with-krb5 build with Kerberos
5 support
1407 --with-krb-srvnam=NAME default service principal name
in Kerberos
1409 --with-pam build with PAM support
1410 --with-ldap build with LDAP support
1411 --with-bonjour build with Bonjour support
1412 --with-openssl build with OpenSSL support
1413 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1414 --with-libedit-preferred
1415 prefer BSD Libedit over GNU Readline
1416 --with-ossp-uuid use OSSP UUID library when building
1418 --with-libxml build with XML support
1419 --with-libxslt use XSLT support when building contrib
/xml2
1420 --with-system-tzdata=DIR
1421 use system
time zone data
in DIR
1422 --without-zlib do not use Zlib
1423 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1425 Some influential environment variables
:
1426 CC C compiler
command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1429 nonstandard directory
<lib dir
>
1430 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1431 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1432 you have headers
in a nonstandard directory
<include dir
>
1436 location of DocBook stylesheets
1438 Use these variables to override the choices made by
`configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <pgsql-bugs@postgresql.org>.
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" || continue
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1469 .) # We are building in place.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1493 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1502 PostgreSQL configure 8.4devel
1503 generated by GNU Autoconf 2.61
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1510 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1518 It was created by PostgreSQL $as_me 8.4devel, which was
1519 generated by GNU Autoconf 2.61. Invocation command line was
1531 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1532 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1533 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1534 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1535 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1537 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1538 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1540 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1541 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1542 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1543 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1544 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1545 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1546 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1579 ac_must_keep_next=false
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1590 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1608 -* ) ac_must_keep_next=true ;;
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1630 ## ---------------- ##
1631 ## Cache variables. ##
1632 ## ---------------- ##
1635 # The following way of writing the cache mishandles newlines in values,
1637 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1638 eval ac_val=\$$ac_var
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1652 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1667 ## ----------------- ##
1668 ## Output variables. ##
1669 ## ----------------- ##
1672 for ac_var in $ac_subst_vars
1674 eval ac_val=\$$ac_var
1676 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1678 echo "$ac_var='\''$ac_val'\''"
1682 if test -n "$ac_subst_files"; then
1684 ## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##
1689 for ac_var in $ac_subst_files
1691 eval ac_val=\$$ac_var
1693 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 echo "$ac_var='\''$ac_val'\''"
1700 if test -s confdefs.h; then
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1726 # Predefined preprocessor variables.
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_NAME "$PACKAGE_NAME"
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_STRING "$PACKAGE_STRING"
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1791 # Check that the precious variables saved in the cache have kept the same
1793 ac_cache_corrupted=false
1794 for ac_var in $ac_precious_vars; do
1795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1796 eval ac_new_set=\$ac_env_${ac_var}_set
1797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798 eval ac_new_val=\$ac_env_${ac_var}_value
1799 case $ac_old_set,$ac_new_set in
1801 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1802 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1803 ac_cache_corrupted=: ;;
1805 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1806 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1807 ac_cache_corrupted=: ;;
1810 if test "x$ac_old_val" != "x$ac_new_val"; then
1811 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1812 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1813 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1814 echo "$as_me: former value
: $ac_old_val" >&2;}
1815 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1816 echo "$as_me: current value
: $ac_new_val" >&2;}
1817 ac_cache_corrupted=:
1820 # Pass precious variables to config.status.
1821 if test "$ac_new_set" = set; then
1823 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1824 *) ac_arg=$ac_var=$ac_new_val ;;
1826 case " $ac_configure_args " in
1827 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1828 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1832 if $ac_cache_corrupted; then
1833 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1834 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1835 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1836 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1837 { (exit 1); exit 1; }; }
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 for ac_dir in config "$srcdir"/config; do
1877 if test -f "$ac_dir/install-sh"; then
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 elif test -f "$ac_dir/install.sh"; then
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 elif test -f "$ac_dir/shtool"; then
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 configure_args=$ac_configure_args
1911 cat >>confdefs.h <<_ACEOF
1912 #define PG_VERSION "$PACKAGE_VERSION"
1915 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1918 cat >>confdefs.h <<_ACEOF
1919 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1956 ac_save_IFS=$IFS; IFS='-'
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1966 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1993 ac_save_IFS=$IFS; IFS='-'
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2003 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking which template to use" >&5
2009 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2012 pgac_args="$pgac_args with_template"
2015 # Check whether --with-template was given.
2016 if test "${with_template+set}" = set; then
2017 withval=$with_template;
2020 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2021 echo "$as_me: error: argument required for --with-template option" >&2;}
2022 { (exit 1); exit 1; }; }
2025 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2026 echo "$as_me: error: argument required for --with-template option" >&2;}
2027 { (exit 1); exit 1; }; }
2032 list) echo; ls "$srcdir/src/template"; exit;;
2033 *) if test -f "$srcdir/src/template/$with_template" ; then
2036 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2037 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2038 { (exit 1); exit 1; }; }
2047 # --with-template not given
2050 aix*) template=aix ;;
2051 bsdi*) template=bsdi ;;
2052 cygwin*) template=cygwin ;;
2053 darwin*) template=darwin ;;
2054 dgux*) template=dgux ;;
2055 freebsd*) template=freebsd ;;
2056 hpux*) template=hpux ;;
2057 irix*) template=irix ;;
2058 linux*|gnu*|k*bsd*-gnu)
2060 mingw*) template=win32 ;;
2061 netbsd*) template=netbsd ;;
2062 nextstep*) template=nextstep ;;
2063 openbsd*) template=openbsd ;;
2064 osf*) template=osf ;;
2065 sco*) template=sco ;;
2066 solaris*) template=solaris ;;
2067 sunos*) template=sunos4 ;;
2069 case $host_vendor in
2070 univel) template=univel ;;
2072 sysv4*) template=svr4 ;;
2073 sysv5*) template=unixware ;;
2074 ultrix*) template=ultrix4 ;;
2077 if test x"$template" = x"" ; then
2078 { { echo "$as_me:$LINENO: error:
2079 *******************************************************************
2080 PostgreSQL has apparently not been ported to your platform yet.
2081 To try a manual configuration, look into the src/template directory
2082 for a similar platform and use the '--with-template=' option.
2084 Please also contact <pgsql-bugs@postgresql.org> to see about
2085 rectifying this. Include the above 'checking host system type...'
2087 *******************************************************************
2089 echo "$as_me: error:
2090 *******************************************************************
2091 PostgreSQL has apparently not been ported to your platform yet.
2092 To try a manual configuration, look into the src/template directory
2093 for a similar platform and use the '--with-template=' option.
2095 Please also contact <pgsql-bugs@postgresql.org> to see about
2096 rectifying this. Include the above 'checking host system type...'
2098 *******************************************************************
2100 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: $template" >&5
2109 echo "${ECHO_T}$template" >&6; }
2114 # Initialize default assumption that we do not need separate assembly code
2115 # for TAS (test-and-set). This can be overridden by the template file
2116 # when it's executed.
2123 ## Command line options
2127 # Add non-standard directories to the include path
2130 pgac_args="$pgac_args with_includes"
2133 # Check whether --with-includes was given.
2134 if test "${with_includes+set}" = set; then
2135 withval=$with_includes;
2138 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2139 echo "$as_me: error: argument required for --with-includes option" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2144 echo "$as_me: error: argument required for --with-includes option" >&2;}
2145 { (exit 1); exit 1; }; }
2158 # Add non-standard directories to the library search path
2161 pgac_args="$pgac_args with_libraries"
2164 # Check whether --with-libraries was given.
2165 if test "${with_libraries+set}" = set; then
2166 withval=$with_libraries;
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2170 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2175 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2176 { (exit 1); exit 1; }; }
2179 LIBRARY_DIRS=$withval
2188 pgac_args="$pgac_args with_libs"
2191 # Check whether --with-libs was given.
2192 if test "${with_libs+set}" = set; then
2196 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2197 echo "$as_me: error: argument required for --with-libs option" >&2;}
2198 { (exit 1); exit 1; }; }
2201 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2202 echo "$as_me: error: argument required for --with-libs option" >&2;}
2203 { (exit 1); exit 1; }; }
2206 LIBRARY_DIRS=$withval
2216 # 64-bit integer date/time storage: enabled by default.
2218 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2219 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2221 pgac_args="$pgac_args enable_integer_datetimes"
2223 # Check whether --enable-integer-datetimes was given.
2224 if test "${enable_integer_datetimes+set}" = set; then
2225 enableval=$enable_integer_datetimes;
2229 cat >>confdefs.h <<\_ACEOF
2230 #define USE_INTEGER_DATETIMES 1
2238 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2239 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2240 { (exit 1); exit 1; }; }
2245 enable_integer_datetimes=yes
2247 cat >>confdefs.h <<\_ACEOF
2248 #define USE_INTEGER_DATETIMES 1
2254 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2255 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2261 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2262 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2264 pgac_args="$pgac_args enable_nls"
2266 # Check whether --enable-nls was given.
2267 if test "${enable_nls+set}" = set; then
2268 enableval=$enable_nls;
2278 WANTED_LANGUAGES=$enableval
2288 if test "$enable_nls" = yes; then
2290 cat >>confdefs.h <<\_ACEOF
2291 #define ENABLE_NLS 1
2296 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2297 echo "${ECHO_T}$enable_nls" >&6; }
2302 # Default port number (--with-pgport), default 5432
2304 { echo "$as_me:$LINENO: checking for default port number" >&5
2305 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2307 pgac_args="$pgac_args with_pgport"
2310 # Check whether --with-pgport was given.
2311 if test "${with_pgport+set}" = set; then
2312 withval=$with_pgport;
2315 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2316 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2321 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2322 { (exit 1); exit 1; }; }
2325 default_port=$withval
2334 { echo "$as_me:$LINENO: result: $default_port" >&5
2335 echo "${ECHO_T}$default_port" >&6; }
2336 # Need both of these because some places want an integer and some a string
2338 cat >>confdefs.h <<_ACEOF
2339 #define DEF_PGPORT ${default_port}
2343 cat >>confdefs.h <<_ACEOF
2344 #define DEF_PGPORT_STR "${default_port}"
2350 # Option to disable shared libraries
2353 pgac_args="$pgac_args enable_shared"
2355 # Check whether --enable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357 enableval=$enable_shared;
2366 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2367 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2368 { (exit 1); exit 1; }; }
2381 # '-rpath'-like feature can be disabled
2384 pgac_args="$pgac_args enable_rpath"
2386 # Check whether --enable-rpath was given.
2387 if test "${enable_rpath+set}" = set; then
2388 enableval=$enable_rpath;
2397 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2398 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2399 { (exit 1); exit 1; }; }
2415 pgac_args="$pgac_args enable_spinlocks"
2417 # Check whether --enable-spinlocks was given.
2418 if test "${enable_spinlocks+set}" = set; then
2419 enableval=$enable_spinlocks;
2428 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2429 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2430 { (exit 1); exit 1; }; }
2435 enable_spinlocks=yes
2442 # --enable-debug adds -g to compiler flags
2445 pgac_args="$pgac_args enable_debug"
2447 # Check whether --enable-debug was given.
2448 if test "${enable_debug+set}" = set; then
2449 enableval=$enable_debug;
2458 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2459 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2460 { (exit 1); exit 1; }; }
2473 # --enable-profiling enables gcc profiling
2476 pgac_args="$pgac_args enable_profiling"
2478 # Check whether --enable-profiling was given.
2479 if test "${enable_profiling+set}" = set; then
2480 enableval=$enable_profiling;
2489 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2490 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2491 { (exit 1); exit 1; }; }
2504 # --enable-coverage enables generation of code coverage metrics with gcov
2507 pgac_args="$pgac_args enable_coverage"
2509 # Check whether --enable-coverage was given.
2510 if test "${enable_coverage+set}" = set; then
2511 enableval=$enable_coverage;
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_GCOV+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$GCOV"; then
2524 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_GCOV="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 GCOV=$ac_cv_prog_GCOV
2544 if test -n "$GCOV"; then
2545 { echo "$as_me:$LINENO: result: $GCOV" >&5
2546 echo "${ECHO_T}$GCOV" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$GCOV" && break
2556 if test -z "$GCOV"; then
2557 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2558 echo "$as_me: error: gcov not found" >&2;}
2559 { (exit 1); exit 1; }; }
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_LCOV+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$LCOV"; then
2571 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_LCOV="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 LCOV=$ac_cv_prog_LCOV
2591 if test -n "$LCOV"; then
2592 { echo "$as_me:$LINENO: result: $LCOV" >&5
2593 echo "${ECHO_T}$LCOV" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$LCOV" && break
2603 if test -z "$LCOV"; then
2604 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2605 echo "$as_me: error: lcov not found" >&2;}
2606 { (exit 1); exit 1; }; }
2608 for ac_prog in genhtml
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_GENHTML+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$GENHTML"; then
2618 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_GENHTML="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 GENHTML=$ac_cv_prog_GENHTML
2638 if test -n "$GENHTML"; then
2639 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2640 echo "${ECHO_T}$GENHTML" >&6; }
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$GENHTML" && break
2650 if test -z "$GENHTML"; then
2651 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2652 echo "$as_me: error: genhtml not found" >&2;}
2653 { (exit 1); exit 1; }; }
2660 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2661 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2662 { (exit 1); exit 1; }; }
2678 pgac_args="$pgac_args enable_dtrace"
2680 # Check whether --enable-dtrace was given.
2681 if test "${enable_dtrace+set}" = set; then
2682 enableval=$enable_dtrace;
2686 cat >>confdefs.h <<\_ACEOF
2687 #define ENABLE_DTRACE 1
2690 for ac_prog in dtrace
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_DTRACE+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$DTRACE"; then
2700 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_DTRACE="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 DTRACE=$ac_cv_prog_DTRACE
2720 if test -n "$DTRACE"; then
2721 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2722 echo "${ECHO_T}$DTRACE" >&6; }
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$DTRACE" && break
2732 if test -z "$DTRACE"; then
2733 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2734 echo "$as_me: error: dtrace not found" >&2;}
2735 { (exit 1); exit 1; }; }
2743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2744 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2745 { (exit 1); exit 1; }; }
2760 { echo "$as_me:$LINENO: checking for block size" >&5
2761 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2763 pgac_args="$pgac_args with_blocksize"
2766 # Check whether --with-blocksize was given.
2767 if test "${with_blocksize+set}" = set; then
2768 withval=$with_blocksize;
2771 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2772 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2773 { (exit 1); exit 1; }; }
2776 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2777 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2778 { (exit 1); exit 1; }; }
2790 case ${blocksize} in
2797 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2798 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2799 { (exit 1); exit 1; }; }
2801 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2802 echo "${ECHO_T}${blocksize}kB" >&6; }
2805 cat >>confdefs.h <<_ACEOF
2806 #define BLCKSZ ${BLCKSZ}
2811 # Relation segment size
2813 { echo "$as_me:$LINENO: checking for segment size" >&5
2814 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2816 pgac_args="$pgac_args with_segsize"
2819 # Check whether --with-segsize was given.
2820 if test "${with_segsize+set}" = set; then
2821 withval=$with_segsize;
2824 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2825 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2826 { (exit 1); exit 1; }; }
2829 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2830 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2831 { (exit 1); exit 1; }; }
2843 # this expression is set up to avoid unnecessary integer overflow
2844 # blocksize is already guaranteed to be a factor of 1024
2845 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2846 test $? -eq 0 || exit 1
2847 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2848 echo "${ECHO_T}${segsize}GB" >&6; }
2851 cat >>confdefs.h <<_ACEOF
2852 #define RELSEG_SIZE ${RELSEG_SIZE}
2859 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2860 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2862 pgac_args="$pgac_args with_wal_blocksize"
2865 # Check whether --with-wal-blocksize was given.
2866 if test "${with_wal_blocksize+set}" = set; then
2867 withval=$with_wal_blocksize;
2870 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2871 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2872 { (exit 1); exit 1; }; }
2875 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2876 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2877 { (exit 1); exit 1; }; }
2880 wal_blocksize=$withval
2889 case ${wal_blocksize} in
2890 1) XLOG_BLCKSZ=1024;;
2891 2) XLOG_BLCKSZ=2048;;
2892 4) XLOG_BLCKSZ=4096;;
2893 8) XLOG_BLCKSZ=8192;;
2894 16) XLOG_BLCKSZ=16384;;
2895 32) XLOG_BLCKSZ=32768;;
2896 64) XLOG_BLCKSZ=65536;;
2897 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2898 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2899 { (exit 1); exit 1; }; }
2901 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2902 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2905 cat >>confdefs.h <<_ACEOF
2906 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2913 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2914 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2916 pgac_args="$pgac_args with_wal_segsize"
2919 # Check whether --with-wal-segsize was given.
2920 if test "${with_wal_segsize+set}" = set; then
2921 withval=$with_wal_segsize;
2924 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2925 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2926 { (exit 1); exit 1; }; }
2929 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2930 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2931 { (exit 1); exit 1; }; }
2934 wal_segsize=$withval
2943 case ${wal_segsize} in
2951 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2952 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2953 { (exit 1); exit 1; }; }
2955 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2956 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2959 cat >>confdefs.h <<_ACEOF
2960 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2968 # For historical reasons you can also use --with-CC to specify the C compiler
2969 # to use, although the standard way to do this is to set the CC environment
2972 pgac_args="$pgac_args with_CC"
2975 # Check whether --with-CC was given.
2976 if test "${with_CC+set}" = set; then
2980 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2981 echo "$as_me: error: argument required for --with-CC option" >&2;}
2982 { (exit 1); exit 1; }; }
2985 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2986 echo "$as_me: error: argument required for --with-CC option" >&2;}
2987 { (exit 1); exit 1; }; }
2999 aix) pgac_cc_list="gcc xlc";;
3000 irix) pgac_cc_list="cc";; # no gcc
3001 *) pgac_cc_list="gcc cc";;
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 for ac_prog in $pgac_cc_list
3012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 if test -n "$CC"; then
3041 { echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6; }
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 test -n "$CC" && break
3052 if test -z "$CC"; then
3054 for ac_prog in $pgac_cc_list
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_CC="$ac_prog"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086 echo "${ECHO_T}$ac_ct_CC" >&6; }
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3093 test -n "$ac_ct_CC" && break
3096 if test "x$ac_ct_CC" = x; then
3099 case $cross_compiling:$ac_tool_warned in
3101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet. If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&5
3104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3107 ac_tool_warned=yes ;;
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log
' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details.
" >&2;}
3118 { (exit 1); exit 1; }; }
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (ac_try="$ac_compiler --version >&5"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compiler --version >&5") 2>&5
3131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3132 (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compiler -v >&5") 2>&5
3141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3142 (exit $ac_status); }
3143 { (ac_try="$ac_compiler -V >&5"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compiler -V >&5") 2>&5
3151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3152 (exit $ac_status); }
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3174 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3175 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # List of possible output files, starting from the most likely.
3179 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3180 # only as a last resort. b.out is created by i960 compilers.
3181 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3183 # The IRIX 6 linker writes into existing files which may not be
3184 # executable, retaining their permissions. Remove them first so a
3185 # subsequent execution test works.
3187 for ac_file in $ac_files
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 if { (ac_try="$ac_link_default"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_link_default") 2>&5
3204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3205 (exit $ac_status); }; then
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3211 for ac_file in $ac_files ''
3213 test -f "$ac_file" || continue
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3218 # We found the default executable, but exeext='' is most
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3243 echo "${ECHO_T}$ac_file" >&6; }
3244 if test -z "$ac_file"; then
3245 echo "$as_me: failed program was
:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3249 See \
`config.log' for more details." >&5
3250 echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log
' for more details." >&2;}
3252 { (exit 77); exit 77; }; }
3255 ac_exeext=$ac_cv_exeext
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264 if { ac_try='.
/$ac_file'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3276 if test "$cross_compiling" = maybe; then
3279 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \
`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details.
" >&2;}
3285 { (exit 1); exit 1; }; }
3289 { echo "$as_me:$LINENO: result
: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3297 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3298 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6; }
3301 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3302 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3303 if { (ac_try="$ac_link"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_link") 2>&5
3311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3312 (exit $ac_status); }; then
3313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3317 for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3328 See \
`config.log' for more details." >&5
3329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log
' for more details." >&2;}
3331 { (exit 1); exit 1; }; }
3334 rm -f conftest$ac_cv_exeext
3335 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3336 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3341 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3343 if test "${ac_cv_objext+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3361 rm -f conftest.o conftest.obj
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3381 echo "$as_me: failed program was:" >&5
3382 sed 's
/^
/|
/' conftest.$ac_ext >&5
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details.
" >&5
3386 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3387 See \
`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3391 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3394 echo "${ECHO_T}$ac_cv_objext" >&6; }
3395 OBJEXT=$ac_cv_objext
3397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3424 *) ac_try_echo
=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1
>conftest.err
3431 cat conftest.err
>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } && {
3434 test -z "$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 } && test -s conftest.
$ac_objext; then
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.
$ac_ext >&5
3445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3446 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3451 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS
=${CFLAGS+set}
3453 ac_save_CFLAGS
=$CFLAGS
3454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 ac_save_c_werror_flag
=$ac_c_werror_flag
3460 ac_c_werror_flag
=yes
3463 cat >conftest.
$ac_ext <<_ACEOF
3466 cat confdefs.h
>>conftest.
$ac_ext
3467 cat >>conftest.
$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3478 rm -f conftest.
$ac_objext
3479 if { (ac_try
="$ac_compile"
3481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3520 *) ac_try_echo
=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.
$ac_objext; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3538 ac_c_werror_flag
=$ac_save_c_werror_flag
3540 cat >conftest.
$ac_ext <<_ACEOF
3543 cat confdefs.h
>>conftest.
$ac_ext
3544 cat >>conftest.
$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3555 rm -f conftest.
$ac_objext
3556 if { (ac_try
="$ac_compile"
3558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3600 if test "$GCC" = yes; then
3606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_cv_prog_cc_c89=no
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3637 s = g (p, va_arg (v,int));
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3678 *) ac_try_echo
=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1
>conftest.err
3685 cat conftest.err
>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.
$ac_objext; then
3691 ac_cv_prog_cc_c89
=$ac_arg
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.
$ac_ext >&5
3699 rm -f core conftest.err conftest.
$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 rm -f conftest.
$ac_ext
3707 case "x$ac_cv_prog_cc_c89" in
3709 { echo "$as_me:$LINENO: result: none needed" >&5
3710 echo "${ECHO_T}none needed" >&6; } ;;
3712 { echo "$as_me:$LINENO: result: unsupported" >&5
3713 echo "${ECHO_T}unsupported" >&6; } ;;
3715 CC
="$CC $ac_cv_prog_cc_c89"
3716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3722 ac_cpp
='$CPP $CPPFLAGS'
3723 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3728 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3729 # but has idiosyncrasies of its own. We assume icc will define
3730 # __INTEL_COMPILER regardless of CFLAGS.
3732 cat >conftest.
$ac_ext <<_ACEOF
3735 cat confdefs.h
>>conftest.
$ac_ext
3736 cat >>conftest.
$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3742 #ifndef __INTEL_COMPILER
3749 rm -f conftest.
$ac_objext
3750 if { (ac_try
="$ac_compile"
3752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3758 grep -v '^ *+' conftest.er1 >conftest.err
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 # Check if it's Sun Studio compiler. We assume that
3777 # __SUNPRO_C will be defined for Sun Studio compilers
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3799 *) ac_try_echo
=$ac_try;;
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3804 grep -v '^ *+' conftest.er1
>conftest.err
3806 cat conftest.err
>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.
$ac_objext; then
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.
$ac_ext >&5
3820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3829 .
"$srcdir/src/template/$template" ||
exit
3831 # CFLAGS are selected so:
3832 # If the user specifies something in the environment, that is used.
3833 # else: If the template file set something, that is used.
3834 # else: If coverage was enabled, don't set anything.
3835 # else: If the compiler is GCC, then we use -O2.
3836 # else: If the compiler is something else, then we use -O.
3838 if test "$ac_env_CFLAGS_set" = set; then
3839 CFLAGS
=$ac_env_CFLAGS_value
3840 elif test "${CFLAGS+set}" = set; then
3841 : # (keep what template set)
3842 elif test "$enable_coverage" = yes; then
3843 : # no optimization by default
3844 elif test "$GCC" = yes; then
3847 # if the user selected debug mode, don't use -O
3848 if test "$enable_debug" != yes; then
3853 # Some versions of GCC support some additional useful warning flags.
3854 # Check whether they are supported, and add them to CFLAGS if so.
3855 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3857 if test "$GCC" = yes -a "$ICC" = no
; then
3858 CFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3859 # These work in some but not all gcc versions
3860 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3861 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3862 pgac_save_CFLAGS
=$CFLAGS
3863 CFLAGS
="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3864 cat >conftest.
$ac_ext <<_ACEOF
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3879 rm -f conftest.
$ac_objext
3880 if { (ac_try
="$ac_compile"
3882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3896 { echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6; }
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 CFLAGS="$pgac_save_CFLAGS"
3903 { echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6; }
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3910 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3911 pgac_save_CFLAGS=$CFLAGS
3912 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3932 *) ac_try_echo
=$ac_try;;
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_compile") 2>conftest.er1
3937 grep -v '^ *+' conftest.er1
>conftest.err
3939 cat conftest.err
>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && {
3942 test -z "$ac_c_werror_flag" ||
3943 test ! -s conftest.err
3944 } && test -s conftest.
$ac_objext; then
3945 { echo "$as_me:$LINENO: result: yes" >&5
3946 echo "${ECHO_T}yes" >&6; }
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.
$ac_ext >&5
3951 CFLAGS
="$pgac_save_CFLAGS"
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3958 # Disable strict-aliasing rules; needed for gcc 3.3+
3959 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3960 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3961 pgac_save_CFLAGS
=$CFLAGS
3962 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3963 cat >conftest.
$ac_ext <<_ACEOF
3966 cat confdefs.h
>>conftest.
$ac_ext
3967 cat >>conftest.
$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3978 rm -f conftest.
$ac_objext
3979 if { (ac_try
="$ac_compile"
3981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
3995 { echo "$as_me:$LINENO: result: yes" >&5
3996 echo "${ECHO_T}yes" >&6; }
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 CFLAGS="$pgac_save_CFLAGS"
4002 { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4009 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4010 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4011 pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4032 *) ac_try_echo
=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4037 grep -v '^ *+' conftest.er1
>conftest.err
4039 cat conftest.err
>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
4044 } && test -s conftest.
$ac_objext; then
4045 { echo "$as_me:$LINENO: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6; }
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.
$ac_ext >&5
4051 CFLAGS
="$pgac_save_CFLAGS"
4052 { echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6; }
4056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4058 elif test "$ICC" = yes; then
4059 # Intel's compiler has a bug/misoptimization in checking for
4060 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4061 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4062 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4063 pgac_save_CFLAGS
=$CFLAGS
4064 CFLAGS
="$pgac_save_CFLAGS -mp1"
4065 cat >conftest.
$ac_ext <<_ACEOF
4068 cat confdefs.h
>>conftest.
$ac_ext
4069 cat >>conftest.
$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4080 rm -f conftest.
$ac_objext
4081 if { (ac_try
="$ac_compile"
4083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4097 { echo "$as_me:$LINENO: result: yes" >&5
4098 echo "${ECHO_T}yes" >&6; }
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 CFLAGS="$pgac_save_CFLAGS"
4104 { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 # Make sure strict aliasing is off (though this is said to be the default)
4111 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4112 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4113 pgac_save_CFLAGS=$CFLAGS
4114 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4134 *) ac_try_echo
=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1
>conftest.err
4141 cat conftest.err
>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.
$ac_objext; then
4147 { echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6; }
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.
$ac_ext >&5
4153 CFLAGS
="$pgac_save_CFLAGS"
4154 { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4160 elif test x
"${CC}" = x
"xlc"; then
4161 # AIX xlc has to have strict aliasing turned off too
4162 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4163 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4164 pgac_save_CFLAGS
=$CFLAGS
4165 CFLAGS
="$pgac_save_CFLAGS -qnoansialias"
4166 cat >conftest.
$ac_ext <<_ACEOF
4169 cat confdefs.h
>>conftest.
$ac_ext
4170 cat >>conftest.
$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4181 rm -f conftest.
$ac_objext
4182 if { (ac_try
="$ac_compile"
4184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_compile") 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
4197 } && test -s conftest.$ac_objext; then
4198 { echo "$as_me:$LINENO: result: yes" >&5
4199 echo "${ECHO_T}yes" >&6; }
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 CFLAGS="$pgac_save_CFLAGS"
4205 { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 # supply -g if --enable-debug
4214 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4218 # enable code coverage if --enable-coverage
4219 if test "$enable_coverage" = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4223 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4224 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4225 { (exit 1); exit 1; }; }
4229 # enable profiling if --enable-profiling
4230 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4231 if test "$GCC" = yes; then
4233 cat >>confdefs.h <<\_ACEOF
4234 #define PROFILE_PID_DIR 1
4237 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4239 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4240 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4241 { (exit 1); exit 1; }; }
4245 # We already have this in Makefile.win32, but configure needs it too
4246 if test "$PORTNAME" = "win32"; then
4247 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4250 # Check if the compiler still works with the template settings
4251 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4252 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (ac_try="$ac_link"
4271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4272 *) ac_try_echo
=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_link") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1
>conftest.err
4279 cat conftest.err
>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest
$ac_exeext &&
4285 $as_test_x conftest
$ac_exeext; then
4286 { echo "$as_me:$LINENO: result: yes" >&5
4287 echo "${ECHO_T}yes" >&6; }
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.
$ac_ext >&5
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4294 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4295 echo "$as_me: error: cannot proceed" >&2;}
4296 { (exit 1); exit 1; }; }
4299 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4300 conftest
$ac_exeext conftest.
$ac_ext
4302 # Defend against gcc -ffast-math
4303 if test "$GCC" = yes; then
4304 cat >conftest.
$ac_ext <<_ACEOF
4307 cat confdefs.h
>>conftest.
$ac_ext
4308 cat >>conftest.
$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4314 #ifdef __FAST_MATH__
4321 rm -f conftest.
$ac_objext
4322 if { (ac_try
="$ac_compile"
4324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4344 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4345 { (exit 1); exit 1; }; }
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4362 if test -z "$CPP"; then
4363 if test "${ac_cv_prog_CPP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 # Double quotes because CPP needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4385 # include <limits.h>
4387 # include <assert.h>
4391 if { (ac_try="$ac_cpp conftest.$ac_ext"
4393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4394 *) ac_try_echo
=$ac_try;;
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4399 grep -v '^ *+' conftest.er1
>conftest.err
4401 cat conftest.err
>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } >/dev
/null
&& {
4404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4405 test ! -s conftest.err
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.
$ac_ext >&5
4412 # Broken: fails on valid input.
4416 rm -f conftest.err conftest.
$ac_ext
4418 # OK, works on sane cases. Now check whether nonexistent headers
4419 # can be detected and how.
4420 cat >conftest.
$ac_ext <<_ACEOF
4423 cat confdefs.h
>>conftest.
$ac_ext
4424 cat >>conftest.
$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <ac_nonexistent.h>
4428 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } >/dev/null && {
4441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4444 # Broken: success on invalid input.
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 # Passes both tests.
4455 rm -f conftest.err conftest.$ac_ext
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.err conftest.
$ac_ext
4460 if $ac_preproc_ok; then
4472 { echo "$as_me:$LINENO: result: $CPP" >&5
4473 echo "${ECHO_T}$CPP" >&6; }
4475 for ac_c_preproc_warn_flag
in '' yes
4477 # Use a header file that comes with gcc, so configuring glibc
4478 # with a fresh cross-compiler works.
4479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 # <limits.h> exists even on freestanding compilers.
4481 # On the NeXT, cc -E runs the code through the compiler's parser,
4482 # not just through cpp. "Syntax error" is here to catch this case.
4483 cat >conftest.
$ac_ext <<_ACEOF
4486 cat confdefs.h
>>conftest.
$ac_ext
4487 cat >>conftest.
$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4490 # include <limits.h>
4492 # include <assert.h>
4496 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504 grep -v '^ *+' conftest.er1 >conftest.err
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null && {
4509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # Broken: fails on valid input.
4521 rm -f conftest.err conftest.$ac_ext
4523 # OK, works on sane cases. Now check whether nonexistent headers
4524 # can be detected and how.
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <ac_nonexistent.h>
4533 if { (ac_try="$ac_cpp conftest.$ac_ext"
4535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4536 *) ac_try_echo
=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4541 grep -v '^ *+' conftest.er1
>conftest.err
4543 cat conftest.err
>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev
/null
&& {
4546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4547 test ! -s conftest.err
4549 # Broken: success on invalid input.
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.
$ac_ext >&5
4555 # Passes both tests.
4560 rm -f conftest.err conftest.
$ac_ext
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.err conftest.
$ac_ext
4565 if $ac_preproc_ok; then
4568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details." >&2;}
4572 { (exit 1); exit 1; }; }
4576 ac_cpp
='$CPP $CPPFLAGS'
4577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4585 # Set up TAS assembly code if needed; the template file has now had its
4586 # chance to request this.
4588 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4591 if test "$need_tas" = yes ; then
4600 # Automatic dependency tracking
4603 pgac_args
="$pgac_args enable_depend"
4605 # Check whether --enable-depend was given.
4606 if test "${enable_depend+set}" = set; then
4607 enableval
=$enable_depend;
4616 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4617 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4618 { (exit 1); exit 1; }; }
4632 # Enable assert checks
4635 pgac_args
="$pgac_args enable_cassert"
4637 # Check whether --enable-cassert was given.
4638 if test "${enable_cassert+set}" = set; then
4639 enableval
=$enable_cassert;
4643 cat >>confdefs.h
<<\_ACEOF
4644 #define USE_ASSERT_CHECKING 1
4652 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4653 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4654 { (exit 1); exit 1; }; }
4667 # Include directories
4670 IFS
="${IFS}${PATH_SEPARATOR}"
4671 # SRCH_INC comes from the template file
4672 for dir
in $with_includes $SRCH_INC; do
4673 if test -d "$dir"; then
4674 INCLUDES
="$INCLUDES -I$dir"
4676 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4677 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4685 # Library directories
4688 IFS
="${IFS}${PATH_SEPARATOR}"
4689 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4690 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4691 if test -d "$dir"; then
4692 LIBDIRS
="$LIBDIRS -L$dir"
4694 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4695 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4701 # Enable thread-safe client libraries
4703 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4704 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4705 if test "$PORTNAME" != "win32"; then
4707 pgac_args
="$pgac_args enable_thread_safety"
4709 # Check whether --enable-thread-safety was given.
4710 if test "${enable_thread_safety+set}" = set; then
4711 enableval
=$enable_thread_safety;
4720 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4721 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4722 { (exit 1); exit 1; }; }
4727 enable_thread_safety
=no
4733 # Win32 should always use threads
4735 pgac_args
="$pgac_args enable_thread_safety"
4737 # Check whether --enable-thread-safety was given.
4738 if test "${enable_thread_safety+set}" = set; then
4739 enableval
=$enable_thread_safety;
4748 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4749 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4750 { (exit 1); exit 1; }; }
4755 enable_thread_safety
=yes
4763 pgac_args
="$pgac_args enable_thread_safety_force"
4765 # Check whether --enable-thread-safety-force was given.
4766 if test "${enable_thread_safety_force+set}" = set; then
4767 enableval
=$enable_thread_safety_force;
4776 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4777 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4778 { (exit 1); exit 1; }; }
4783 enable_thread_safety_force
=no
4788 if test "$enable_thread_safety" = yes -o \
4789 "$enable_thread_safety_force" = yes; then
4790 enable_thread_safety
="yes" # for 'force'
4792 cat >>confdefs.h
<<\_ACEOF
4793 #define ENABLE_THREAD_SAFETY 1
4797 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4798 echo "${ECHO_T}$enable_thread_safety" >&6; }
4802 # Optionally build Tcl modules (PL/Tcl)
4804 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4805 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4807 pgac_args
="$pgac_args with_tcl"
4810 # Check whether --with-tcl was given.
4811 if test "${with_tcl+set}" = set; then
4821 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4822 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4823 { (exit 1); exit 1; }; }
4833 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4834 echo "${ECHO_T}$with_tcl" >&6; }
4837 # We see if the path to the Tcl/Tk configuration scripts is specified.
4838 # This will override the use of tclsh to find the paths to search.
4841 pgac_args
="$pgac_args with_tclconfig"
4844 # Check whether --with-tclconfig was given.
4845 if test "${with_tclconfig+set}" = set; then
4846 withval
=$with_tclconfig;
4849 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4850 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4851 { (exit 1); exit 1; }; }
4854 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4855 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4856 { (exit 1); exit 1; }; }
4868 # Optionally build Perl modules (PL/Perl)
4870 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4871 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4873 pgac_args
="$pgac_args with_perl"
4876 # Check whether --with-perl was given.
4877 if test "${with_perl+set}" = set; then
4887 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4888 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4889 { (exit 1); exit 1; }; }
4899 { echo "$as_me:$LINENO: result: $with_perl" >&5
4900 echo "${ECHO_T}$with_perl" >&6; }
4904 # Optionally build Python modules (PL/Python)
4906 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4907 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4909 pgac_args
="$pgac_args with_python"
4912 # Check whether --with-python was given.
4913 if test "${with_python+set}" = set; then
4914 withval
=$with_python;
4923 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4924 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4925 { (exit 1); exit 1; }; }
4935 { echo "$as_me:$LINENO: result: $with_python" >&5
4936 echo "${ECHO_T}$with_python" >&6; }
4942 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4943 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4945 pgac_args
="$pgac_args with_gssapi"
4948 # Check whether --with-gssapi was given.
4949 if test "${with_gssapi+set}" = set; then
4950 withval
=$with_gssapi;
4955 cat >>confdefs.h
<<\_ACEOF
4956 #define ENABLE_GSS 1
4959 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4966 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4967 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4968 { (exit 1); exit 1; }; }
4978 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4979 echo "${ECHO_T}$with_gssapi" >&6; }
4985 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4986 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4988 pgac_args
="$pgac_args with_krb5"
4991 # Check whether --with-krb5 was given.
4992 if test "${with_krb5+set}" = set; then
4998 cat >>confdefs.h
<<\_ACEOF
5002 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5009 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5010 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5011 { (exit 1); exit 1; }; }
5021 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5022 echo "${ECHO_T}$with_krb5" >&6; }
5030 # Kerberos configuration parameters
5033 pgac_args
="$pgac_args with_krb_srvnam"
5036 # Check whether --with-krb-srvnam was given.
5037 if test "${with_krb_srvnam+set}" = set; then
5038 withval
=$with_krb_srvnam;
5041 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5042 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5043 { (exit 1); exit 1; }; }
5046 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5047 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5048 { (exit 1); exit 1; }; }
5056 with_krb_srvnam
="postgres"
5061 cat >>confdefs.h
<<_ACEOF
5062 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5070 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5071 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5073 pgac_args
="$pgac_args with_pam"
5076 # Check whether --with-pam was given.
5077 if test "${with_pam+set}" = set; then
5082 cat >>confdefs.h
<<\_ACEOF
5091 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5092 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5093 { (exit 1); exit 1; }; }
5103 { echo "$as_me:$LINENO: result: $with_pam" >&5
5104 echo "${ECHO_T}$with_pam" >&6; }
5111 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5112 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5114 pgac_args
="$pgac_args with_ldap"
5117 # Check whether --with-ldap was given.
5118 if test "${with_ldap+set}" = set; then
5123 cat >>confdefs.h
<<\_ACEOF
5132 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5133 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5134 { (exit 1); exit 1; }; }
5144 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5145 echo "${ECHO_T}$with_ldap" >&6; }
5152 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5153 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5155 pgac_args
="$pgac_args with_bonjour"
5158 # Check whether --with-bonjour was given.
5159 if test "${with_bonjour+set}" = set; then
5160 withval
=$with_bonjour;
5164 cat >>confdefs.h
<<\_ACEOF
5165 #define USE_BONJOUR 1
5173 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5174 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5175 { (exit 1); exit 1; }; }
5185 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5186 echo "${ECHO_T}$with_bonjour" >&6; }
5193 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5194 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5196 pgac_args
="$pgac_args with_openssl"
5199 # Check whether --with-openssl was given.
5200 if test "${with_openssl+set}" = set; then
5201 withval
=$with_openssl;
5205 cat >>confdefs.h
<<\_ACEOF
5214 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5215 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5216 { (exit 1); exit 1; }; }
5226 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5227 echo "${ECHO_T}$with_openssl" >&6; }
5235 pgac_args
="$pgac_args with_readline"
5238 # Check whether --with-readline was given.
5239 if test "${with_readline+set}" = set; then
5240 withval
=$with_readline;
5249 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5250 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5251 { (exit 1); exit 1; }; }
5261 # readline on MinGW has problems with backslashes in psql and other bugs.
5262 # This is particularly a problem with non-US code pages.
5263 # Therefore disable its use until we understand the cause. 2004-07-20
5264 if test "$PORTNAME" = "win32"; then
5265 if test "$with_readline" = yes; then
5266 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5267 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5277 pgac_args
="$pgac_args with_libedit_preferred"
5280 # Check whether --with-libedit-preferred was given.
5281 if test "${with_libedit_preferred+set}" = set; then
5282 withval
=$with_libedit_preferred;
5291 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5292 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5293 { (exit 1); exit 1; }; }
5298 with_libedit_preferred
=no
5309 pgac_args
="$pgac_args with_ossp_uuid"
5312 # Check whether --with-ossp-uuid was given.
5313 if test "${with_ossp_uuid+set}" = set; then
5314 withval
=$with_ossp_uuid;
5323 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5324 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5325 { (exit 1); exit 1; }; }
5342 pgac_args
="$pgac_args with_libxml"
5345 # Check whether --with-libxml was given.
5346 if test "${with_libxml+set}" = set; then
5347 withval
=$with_libxml;
5351 cat >>confdefs.h
<<\_ACEOF
5352 #define USE_LIBXML 1
5360 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5361 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5362 { (exit 1); exit 1; }; }
5373 if test "$with_libxml" = yes ; then
5374 for ac_prog
in xml2-config
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy
$ac_prog; ac_word
=$2
5378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 if test -n "$XML2_CONFIG"; then
5384 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir
=.
5391 for ac_exec_ext
in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5404 if test -n "$XML2_CONFIG"; then
5405 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5406 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5408 { echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6; }
5413 test -n "$XML2_CONFIG" && break
5416 if test -n "$XML2_CONFIG"; then
5417 for pgac_option
in `$XML2_CONFIG --cflags`; do
5418 case $pgac_option in
5419 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5422 for pgac_option
in `$XML2_CONFIG --libs`; do
5423 case $pgac_option in
5424 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5436 pgac_args
="$pgac_args with_libxslt"
5439 # Check whether --with-libxslt was given.
5440 if test "${with_libxslt+set}" = set; then
5441 withval
=$with_libxslt;
5445 cat >>confdefs.h
<<\_ACEOF
5446 #define USE_LIBXSLT 1
5454 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5455 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5456 { (exit 1); exit 1; }; }
5474 pgac_args
="$pgac_args with_system_tzdata"
5477 # Check whether --with-system-tzdata was given.
5478 if test "${with_system_tzdata+set}" = set; then
5479 withval
=$with_system_tzdata;
5482 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5483 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5484 { (exit 1); exit 1; }; }
5487 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5488 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5489 { (exit 1); exit 1; }; }
5505 pgac_args
="$pgac_args with_zlib"
5508 # Check whether --with-zlib was given.
5509 if test "${with_zlib+set}" = set; then
5519 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5520 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5521 { (exit 1); exit 1; }; }
5537 # Assume system is ELF if it predefines __ELF__ as 1,
5538 # otherwise believe host_os based default.
5540 freebsd1
*|freebsd2
*) elf
=no
;;
5541 freebsd3
*|freebsd4
*) elf
=yes;;
5545 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5546 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5547 if test "${ac_cv_path_GREP+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 # Extract the first word of "grep ggrep" to use in msg output
5551 if test -z "$GREP"; then
5552 set dummy
grep ggrep
; ac_prog_name
=$2
5553 if test "${ac_cv_path_GREP+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_path_GREP_found
=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5559 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5562 test -z "$as_dir" && as_dir
=.
5563 for ac_prog
in grep ggrep
; do
5564 for ac_exec_ext
in '' $ac_executable_extensions; do
5565 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5566 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5567 # Check for GNU ac_path_GREP and select it if it is found.
5568 # Check for GNU $ac_path_GREP
5569 case `"$ac_path_GREP" --version 2>&1` in
5571 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5574 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 echo 'GREP' >> "conftest.nl"
5581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5582 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5583 ac_count
=`expr $ac_count + 1`
5584 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_GREP
="$ac_path_GREP"
5587 ac_path_GREP_max
=$ac_count
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5592 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5596 $ac_path_GREP_found && break 3
5606 GREP
="$ac_cv_path_GREP"
5607 if test -z "$GREP"; then
5608 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5610 { (exit 1); exit 1; }; }
5614 ac_cv_path_GREP
=$GREP
5619 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5620 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5621 GREP
="$ac_cv_path_GREP"
5624 { echo "$as_me:$LINENO: checking for egrep" >&5
5625 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5626 if test "${ac_cv_path_EGREP+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5630 then ac_cv_path_EGREP
="$GREP -E"
5632 # Extract the first word of "egrep" to use in msg output
5633 if test -z "$EGREP"; then
5634 set dummy
egrep; ac_prog_name
=$2
5635 if test "${ac_cv_path_EGREP+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 ac_path_EGREP_found
=false
5639 # Loop through the user's path and test for each of PROGNAME-LIST
5640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5641 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5644 test -z "$as_dir" && as_dir
=.
5645 for ac_prog
in egrep; do
5646 for ac_exec_ext
in '' $ac_executable_extensions; do
5647 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5648 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5649 # Check for GNU ac_path_EGREP and select it if it is found.
5650 # Check for GNU $ac_path_EGREP
5651 case `"$ac_path_EGREP" --version 2>&1` in
5653 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5656 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5659 cat "conftest.in" "conftest.in" >"conftest.tmp"
5660 mv "conftest.tmp" "conftest.in"
5661 cp "conftest.in" "conftest.nl"
5662 echo 'EGREP' >> "conftest.nl"
5663 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5664 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5665 ac_count
=`expr $ac_count + 1`
5666 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5667 # Best one so far, save it but keep looking for a better one
5668 ac_cv_path_EGREP
="$ac_path_EGREP"
5669 ac_path_EGREP_max
=$ac_count
5671 # 10*(2^10) chars as input seems more than enough
5672 test $ac_count -gt 10 && break
5674 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5678 $ac_path_EGREP_found && break 3
5688 EGREP
="$ac_cv_path_EGREP"
5689 if test -z "$EGREP"; then
5690 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5691 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5692 { (exit 1); exit 1; }; }
5696 ac_cv_path_EGREP
=$EGREP
5702 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5703 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5704 EGREP
="$ac_cv_path_EGREP"
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5719 $EGREP "yes" >/dev
/null
2>&1; then
5722 if test "X$elf" = "Xyes" ; then
5736 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5737 LDFLAGS
="$LDFLAGS $LIBDIRS"
5742 # Check whether --with-gnu-ld was given.
5743 if test "${with_gnu_ld+set}" = set; then
5744 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5750 if test "$GCC" = yes; then
5751 # Check if gcc -print-prog-name=ld gives a path.
5752 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5753 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5756 # gcc leaves a trailing carriage return which upsets mingw
5757 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5759 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5762 # Accept absolute paths.
5763 [\\/]* |
[A-Za-z
]:[\\/]*)
5764 re_direlt
='/[^/][^/]*/\.\./'
5765 # Canonicalize the path of ld
5766 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5767 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5768 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5770 test -z "$LD" && LD
="$ac_prog"
5773 # If it fails, then pretend we aren't using GCC.
5777 # If it is relative, then search for the first ld in PATH.
5781 elif test "$with_gnu_ld" = yes; then
5782 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5785 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5788 if test "${ac_cv_path_LD+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 if test -z "$LD"; then
5792 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5793 for ac_dir
in $PATH; do
5794 test -z "$ac_dir" && ac_dir
=.
5795 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5796 ac_cv_path_LD
="$ac_dir/$ac_prog"
5797 # Check to see if the program is GNU ld. I'd rather use --version,
5798 # but apparently some GNU ld's only accept -v.
5799 # Break only if it was the GNU/non-GNU ld that we prefer.
5800 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5801 test "$with_gnu_ld" != no
&& break
5803 test "$with_gnu_ld" != yes && break
5809 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5814 if test -n "$LD"; then
5815 { echo "$as_me:$LINENO: result: $LD" >&5
5816 echo "${ECHO_T}$LD" >&6; }
5818 { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5821 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5822 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5823 { (exit 1); exit 1; }; }
5824 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5825 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5826 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5830 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5831 ac_cv_prog_gnu_ld
=yes
5833 ac_cv_prog_gnu_ld
=no
5836 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5837 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5838 with_gnu_ld
=$ac_cv_prog_gnu_ld
5843 case $host_os in sysv5
*)
5844 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5845 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5846 if test "${pgac_cv_prog_ld_R+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5851 cat >conftest.
$ac_ext <<_ACEOF
5854 cat confdefs.h
>>conftest.
$ac_ext
5855 cat >>conftest.
$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5866 rm -f conftest.
$ac_objext conftest
$ac_exeext
5867 if { (ac_try
="$ac_link"
5869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_link") 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest$ac_exeext &&
5883 $as_test_x conftest$ac_exeext; then
5884 pgac_cv_prog_ld_R=yes
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5889 pgac_cv_prog_ld_R=no
5892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5893 conftest$ac_exeext conftest.$ac_ext
5894 LDFLAGS=$pgac_save_LDFLAGS
5897 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5898 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5899 ld_R_works=$pgac_cv_prog_ld_R
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_prog_RANLIB+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 if test -n "$RANLIB"; then
5911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 RANLIB=$ac_cv_prog_RANLIB
5931 if test -n "$RANLIB"; then
5932 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5933 echo "${ECHO_T}$RANLIB" >&6; }
5935 { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5941 if test -z "$ac_cv_prog_RANLIB"; then
5942 ac_ct_RANLIB=$RANLIB
5943 # Extract the first word of "ranlib", so it can be a program name with args.
5944 set dummy ranlib; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 if test -n "$ac_ct_RANLIB"; then
5951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_ac_ct_RANLIB="ranlib"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5971 if test -n "$ac_ct_RANLIB"; then
5972 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5973 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5979 if test "x$ac_ct_RANLIB" = x; then
5982 case $cross_compiling:$ac_tool_warned in
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet. If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet. If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990 ac_tool_warned=yes ;;
5992 RANLIB=$ac_ct_RANLIB
5995 RANLIB="$ac_cv_prog_RANLIB"
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6001 set dummy ${ac_tool_prefix}strip; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_prog_STRIP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 if test -n "$STRIP"; then
6008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 STRIP=$ac_cv_prog_STRIP
6028 if test -n "$STRIP"; then
6029 { echo "$as_me:$LINENO: result: $STRIP" >&5
6030 echo "${ECHO_T}$STRIP" >&6; }
6032 { echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6; }
6038 if test -z "$ac_cv_prog_STRIP"; then
6040 # Extract the first word of "strip", so it can be a program name with args.
6041 set dummy strip; ac_word=$2
6042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 if test -n "$ac_ct_STRIP"; then
6048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_ac_ct_STRIP="strip"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068 if test -n "$ac_ct_STRIP"; then
6069 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6070 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6072 { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6076 if test "x$ac_ct_STRIP" = x; then
6079 case $cross_compiling:$ac_tool_warned in
6081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6082 whose name does not start with the host triplet. If you think this
6083 configuration is useful to you, please write to autoconf@gnu.org." >&5
6084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6085 whose name does not start with the host triplet. If you think this
6086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6087 ac_tool_warned=yes ;;
6092 STRIP="$ac_cv_prog_STRIP"
6096 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6097 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6098 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6099 STRIP_STATIC_LIB="$STRIP -x"
6100 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6101 { echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6; }
6106 { echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6; }
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ar; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_AR+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 if test -n "$AR"; then
6121 ac_cv_prog_AR="$AR" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_prog_AR="${ac_tool_prefix}ar"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 if test -n "$AR"; then
6142 { echo "$as_me:$LINENO: result: $AR" >&5
6143 echo "${ECHO_T}$AR" >&6; }
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6151 if test -z "$ac_cv_prog_AR"; then
6153 # Extract the first word of "ar", so it can be a program name with args.
6154 set dummy ar; ac_word=$2
6155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 if test -n "$ac_ct_AR"; then
6161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_prog_ac_ct_AR="ar"
6171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6181 if test -n "$ac_ct_AR"; then
6182 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6183 echo "${ECHO_T}$ac_ct_AR" >&6; }
6185 { echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6; }
6189 if test "x$ac_ct_AR" = x; then
6192 case $cross_compiling:$ac_tool_warned in
6194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet. If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&5
6197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6198 whose name does not start with the host triplet. If you think this
6199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6200 ac_tool_warned=yes ;;
6208 if test "$PORTNAME" = "win32"; then
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$DLLTOOL"; then
6218 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 DLLTOOL=$ac_cv_prog_DLLTOOL
6238 if test -n "$DLLTOOL"; then
6239 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6240 echo "${ECHO_T}$DLLTOOL" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6248 if test -z "$ac_cv_prog_DLLTOOL"; then
6249 ac_ct_DLLTOOL=$DLLTOOL
6250 # Extract the first word of "dlltool", so it can be a program name with args.
6251 set dummy dlltool; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 if test -n "$ac_ct_DLLTOOL"; then
6258 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6278 if test -n "$ac_ct_DLLTOOL"; then
6279 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6280 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6286 if test "x$ac_ct_DLLTOOL" = x; then
6289 case $cross_compiling:$ac_tool_warned in
6291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6292 whose name does not start with the host triplet. If you think this
6293 configuration is useful to you, please write to autoconf@gnu.org." >&5
6294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6295 whose name does not start with the host triplet. If you think this
6296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6297 ac_tool_warned=yes ;;
6299 DLLTOOL=$ac_ct_DLLTOOL
6302 DLLTOOL="$ac_cv_prog_DLLTOOL"
6305 if test -n "$ac_tool_prefix"; then
6306 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6307 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 if test -n "$DLLWRAP"; then
6314 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 DLLWRAP=$ac_cv_prog_DLLWRAP
6334 if test -n "$DLLWRAP"; then
6335 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6336 echo "${ECHO_T}$DLLWRAP" >&6; }
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6344 if test -z "$ac_cv_prog_DLLWRAP"; then
6345 ac_ct_DLLWRAP=$DLLWRAP
6346 # Extract the first word of "dllwrap", so it can be a program name with args.
6347 set dummy dllwrap; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 if test -n "$ac_ct_DLLWRAP"; then
6354 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6374 if test -n "$ac_ct_DLLWRAP"; then
6375 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6376 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6382 if test "x$ac_ct_DLLWRAP" = x; then
6385 case $cross_compiling:$ac_tool_warned in
6387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6388 whose name does not start with the host triplet. If you think this
6389 configuration is useful to you, please write to autoconf@gnu.org." >&5
6390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6391 whose name does not start with the host triplet. If you think this
6392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6393 ac_tool_warned=yes ;;
6395 DLLWRAP=$ac_ct_DLLWRAP
6398 DLLWRAP="$ac_cv_prog_DLLWRAP"
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}windres; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_prog_WINDRES+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 if test -n "$WINDRES"; then
6410 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 WINDRES=$ac_cv_prog_WINDRES
6430 if test -n "$WINDRES"; then
6431 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6432 echo "${ECHO_T}$WINDRES" >&6; }
6434 { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6440 if test -z "$ac_cv_prog_WINDRES"; then
6441 ac_ct_WINDRES=$WINDRES
6442 # Extract the first word of "windres", so it can be a program name with args.
6443 set dummy windres; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 if test -n "$ac_ct_WINDRES"; then
6450 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_ac_ct_WINDRES="windres"
6460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6470 if test -n "$ac_ct_WINDRES"; then
6471 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6472 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6474 { echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6; }
6478 if test "x$ac_ct_WINDRES" = x; then
6481 case $cross_compiling:$ac_tool_warned in
6483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6484 whose name does not start with the host triplet. If you think this
6485 configuration is useful to you, please write to autoconf@gnu.org." >&5
6486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6487 whose name does not start with the host triplet. If you think this
6488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6489 ac_tool_warned=yes ;;
6491 WINDRES=$ac_ct_WINDRES
6494 WINDRES="$ac_cv_prog_WINDRES"
6499 # Extract the first word of "tar", so it can be a program name with args.
6500 set dummy tar; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_TAR+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 if test -n "$TAR"; then
6531 { echo "$as_me:$LINENO: result: $TAR" >&5
6532 echo "${ECHO_T}$TAR" >&6; }
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6539 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6540 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6542 if test "$LN_S" = "ln -s"; then
6543 { echo "$as_me:$LINENO: result: yes" >&5
6544 echo "${ECHO_T}yes" >&6; }
6546 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6547 echo "${ECHO_T}no, using $LN_S" >&6; }
6550 for ac_prog in gawk mawk nawk awk
6552 # Extract the first word of "$ac_prog", so it can be a program name with args.
6553 set dummy $ac_prog; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_AWK+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 if test -n "$AWK"; then
6560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_AWK="$ac_prog"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 if test -n "$AWK"; then
6581 { echo "$as_me:$LINENO: result: $AWK" >&5
6582 echo "${ECHO_T}$AWK" >&6; }
6584 { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6589 test -n "$AWK" && break
6593 # Let the user override the search
6594 if test -z "$BISON"; then
6595 for ac_prog in bison
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601 if test "${ac_cv_prog_BISON+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 if test -n "$BISON"; then
6605 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614 ac_cv_prog_BISON="$ac_prog"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 BISON=$ac_cv_prog_BISON
6625 if test -n "$BISON"; then
6626 { echo "$as_me:$LINENO: result: $BISON" >&5
6627 echo "${ECHO_T}$BISON" >&6; }
6629 { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6634 test -n "$BISON" && break
6639 if test "$BISON"; then
6640 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6641 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6642 echo "$as_me: using $pgac_bison_version" >&6;}
6643 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6645 { echo "$as_me:$LINENO: WARNING:
6646 *** The installed version of Bison is too old to use with PostgreSQL.
6647 *** Bison version 1.875 or later is required." >&5
6648 echo "$as_me: WARNING:
6649 *** The installed version of Bison is too old to use with PostgreSQL.
6650 *** Bison version 1.875 or later is required." >&2;}
6655 if test -z "$BISON"; then
6656 { echo "$as_me:$LINENO: WARNING:
6657 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6658 *** change any of the parser definition files. You can obtain Bison from
6659 *** a GNU mirror site. (If you are using the official distribution of
6660 *** PostgreSQL then you do not need to worry about this, because the Bison
6661 *** output is pre-generated.)" >&5
6662 echo "$as_me: WARNING:
6663 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6664 *** change any of the parser definition files. You can obtain Bison from
6665 *** a GNU mirror site. (If you are using the official distribution of
6666 *** PostgreSQL then you do not need to worry about this, because the Bison
6667 *** output is pre-generated.)" >&2;}
6669 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6672 { echo "$as_me:$LINENO: checking for flex" >&5
6673 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6674 if test "${pgac_cv_path_flex+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 # Let the user override the test
6678 if test -n "$FLEX"; then
6679 pgac_cv_path_flex=$FLEX
6683 for pgac_dir in $PATH; do
6685 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6688 for pgac_prog in flex lex; do
6689 pgac_candidate="$pgac_dir/$pgac_prog"
6690 if test -f "$pgac_candidate" \
6691 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6693 echo '%%' > conftest.l
6694 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6695 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6696 pgac_broken_flex=$pgac_candidate
6700 pgac_cv_path_flex=$pgac_candidate
6706 rm -f conftest.l lex.yy.c
6707 : ${pgac_cv_path_flex=no}
6711 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6712 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6713 if test x"$pgac_cv_path_flex" = x"no"; then
6714 if test -n "$pgac_broken_flex"; then
6715 { echo "$as_me:$LINENO: WARNING:
6716 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6717 *** should get version 2.5.4 or later." >&5
6718 echo "$as_me: WARNING:
6719 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6720 *** should get version 2.5.4 or later." >&2;}
6723 { echo "$as_me:$LINENO: WARNING:
6724 *** Without Flex you will not be able to build PostgreSQL from CVS or
6725 *** change any of the scanner definition files. You can obtain Flex from
6726 *** a GNU mirror site. (If you are using the official distribution of
6727 *** PostgreSQL then you do not need to worry about this because the Flex
6728 *** output is pre-generated.)" >&5
6729 echo "$as_me: WARNING:
6730 *** Without Flex you will not be able to build PostgreSQL from CVS or
6731 *** change any of the scanner definition files. You can obtain Flex from
6732 *** a GNU mirror site. (If you are using the official distribution of
6733 *** PostgreSQL then you do not need to worry about this because the Flex
6734 *** output is pre-generated.)" >&2;}
6738 FLEX=$pgac_cv_path_flex
6739 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6740 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6741 echo "$as_me: using $pgac_flex_version" >&6;}
6748 # Extract the first word of "perl", so it can be a program name with args.
6749 set dummy perl; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_PERL+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 PERL=$ac_cv_path_PERL
6779 if test -n "$PERL"; then
6780 { echo "$as_me:$LINENO: result: $PERL" >&5
6781 echo "${ECHO_T}$PERL" >&6; }
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6788 if test "$with_perl" = yes; then
6790 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6791 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6792 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6793 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6794 echo "${ECHO_T}$perl_archlibexp" >&6; }
6795 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6796 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6797 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6798 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6799 echo "${ECHO_T}$perl_privlibexp" >&6; }
6800 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6801 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6802 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6803 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6804 echo "${ECHO_T}$perl_useshrplib" >&6; }
6806 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6807 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6808 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6809 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6810 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6811 if test -z "$perl_embed_ldflags" ; then
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6815 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6817 echo "$as_me: error: could not determine flags for linking embedded Perl.
6818 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6820 { (exit 1); exit 1; }; }
6822 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6823 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6828 if test "$with_python" = yes; then
6829 # Extract the first word of "python", so it can be a program name with args.
6830 set dummy python; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_path_PYTHON+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 PYTHON=$ac_cv_path_PYTHON
6860 if test -n "$PYTHON"; then
6861 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6862 echo "${ECHO_T}$PYTHON" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 if test x"$PYTHON" = x""; then
6870 { { echo "$as_me:$LINENO: error: Python not found" >&5
6871 echo "$as_me: error: Python not found" >&2;}
6872 { (exit 1); exit 1; }; }
6876 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6877 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6878 if "${PYTHON}" 2>&- -c 'import distutils'
6880 { echo "$as_me:$LINENO: result: yes" >&5
6881 echo "${ECHO_T}yes" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6886 echo "$as_me: error: distutils module not found" >&2;}
6887 { (exit 1); exit 1; }; }
6889 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6890 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6891 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6892 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'))"`
6893 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6895 # This should be enough of a message.
6896 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6897 echo "${ECHO_T}$python_configdir" >&6; }
6900 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6901 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6903 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6904 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6905 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6906 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6908 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6910 # New way: use the official shared library
6911 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6912 python_libspec="-L${python_libdir} -l${ldlibrary}"
6914 # Old way: use libpython from python_configdir
6915 python_libdir="${python_configdir}"
6916 python_libspec="-L${python_libdir} -lpython${python_version}"
6919 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6921 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6922 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6925 # threaded python is not supported on bsd's
6926 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6927 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6928 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
6929 if test "$pythreads" = "1"; then
6930 { echo "$as_me:$LINENO: result: yes" >&5
6931 echo "${ECHO_T}yes" >&6; }
6934 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6935 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6936 { (exit 1); exit 1; }; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6947 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
6948 # Extract the first word of "zic", so it can be a program name with args.
6949 set dummy zic; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_path_ZIC+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 if test -n "$ZIC"; then
6980 { echo "$as_me:$LINENO: result: $ZIC" >&5
6981 echo "${ECHO_T}$ZIC" >&6; }
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6988 if test -z "$ZIC"; then
6989 { { echo "$as_me:$LINENO: error:
6990 When cross-compiling, either use the option --with-system-tzdata to use
6991 existing time-zone data, or set the environment variable ZIC to a zic
6992 program to use during the build." >&5
6993 echo "$as_me: error:
6994 When cross-compiling, either use the option --with-system-tzdata to use
6995 existing time-zone data, or set the environment variable ZIC to a zic
6996 program to use during the build." >&2;}
6997 { (exit 1); exit 1; }; }
7005 ## Most libraries are included only if they demonstrably provide a function
7006 ## we need, but libm is an exception: always include it, because there are
7007 ## too many compilers that play cute optimization games that will break
7008 ## probes for standard functions such as pow().
7012 { echo "$as_me:$LINENO: checking for main in -lm" >&5
7013 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
7014 if test "${ac_cv_lib_m_main+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 ac_check_lib_save_LIBS=$LIBS
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (ac_try="$ac_link"
7038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7039 *) ac_try_echo
=$ac_try;;
7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_link") 2>conftest.er1
7044 grep -v '^ *+' conftest.er1
>conftest.err
7046 cat conftest.err
>&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && {
7049 test -z "$ac_c_werror_flag" ||
7050 test ! -s conftest.err
7051 } && test -s conftest
$ac_exeext &&
7052 $as_test_x conftest
$ac_exeext; then
7053 ac_cv_lib_m_main
=yes
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.
$ac_ext >&5
7061 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7062 conftest
$ac_exeext conftest.
$ac_ext
7063 LIBS
=$ac_check_lib_save_LIBS
7065 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7066 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7067 if test $ac_cv_lib_m_main = yes; then
7068 cat >>confdefs.h
<<_ACEOF
7076 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7077 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7078 if test "${ac_cv_search_setproctitle+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_func_search_save_LIBS
=$LIBS
7082 cat >conftest.
$ac_ext <<_ACEOF
7085 cat confdefs.h
>>conftest.
$ac_ext
7086 cat >>conftest.
$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7089 /* Override any GCC internal prototype to avoid an error.
7090 Use char because int might match the return type of a GCC
7091 builtin and then its argument prototype would still apply. */
7095 char setproctitle ();
7099 return setproctitle ();
7104 for ac_lib
in '' util
; do
7105 if test -z "$ac_lib"; then
7106 ac_res
="none required"
7109 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7111 rm -f conftest.
$ac_objext conftest
$ac_exeext
7112 if { (ac_try
="$ac_link"
7114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_link") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest$ac_exeext &&
7128 $as_test_x conftest$ac_exeext; then
7129 ac_cv_search_setproctitle=$ac_res
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7139 if test "${ac_cv_search_setproctitle+set}" = set; then
7143 if test "${ac_cv_search_setproctitle+set}" = set; then
7146 ac_cv_search_setproctitle=no
7149 LIBS=$ac_func_search_save_LIBS
7151 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7152 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7153 ac_res=$ac_cv_search_setproctitle
7154 if test "$ac_res" != no; then
7155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7159 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7160 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7161 if test "${ac_cv_search_dlopen+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 ac_func_search_save_LIBS=$LIBS
7165 cat >conftest.$ac_ext <<_ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7172 /* Override any GCC internal prototype to avoid an error.
7173 Use char because int might match the return type of a GCC
7174 builtin and then its argument prototype would still apply. */
7187 for ac_lib in '' dl; do
7188 if test -z "$ac_lib"; then
7189 ac_res="none required"
7192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7194 rm -f conftest.$ac_objext conftest$ac_exeext
7195 if { (ac_try="$ac_link"
7197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7198 *) ac_try_echo
=$ac_try;;
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201 (eval "$ac_link") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1
>conftest.err
7205 cat conftest.err
>&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest
$ac_exeext &&
7211 $as_test_x conftest
$ac_exeext; then
7212 ac_cv_search_dlopen
=$ac_res
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.
$ac_ext >&5
7220 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7222 if test "${ac_cv_search_dlopen+set}" = set; then
7226 if test "${ac_cv_search_dlopen+set}" = set; then
7229 ac_cv_search_dlopen
=no
7232 LIBS
=$ac_func_search_save_LIBS
7234 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7235 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7236 ac_res
=$ac_cv_search_dlopen
7237 if test "$ac_res" != no
; then
7238 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7242 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7243 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7244 if test "${ac_cv_search_socket+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_func_search_save_LIBS
=$LIBS
7248 cat >conftest.
$ac_ext <<_ACEOF
7251 cat confdefs.h
>>conftest.
$ac_ext
7252 cat >>conftest.
$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7255 /* Override any GCC internal prototype to avoid an error.
7256 Use char because int might match the return type of a GCC
7257 builtin and then its argument prototype would still apply. */
7270 for ac_lib
in '' socket wsock32
; do
7271 if test -z "$ac_lib"; then
7272 ac_res
="none required"
7275 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7277 rm -f conftest.
$ac_objext conftest
$ac_exeext
7278 if { (ac_try
="$ac_link"
7280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest$ac_exeext &&
7294 $as_test_x conftest$ac_exeext; then
7295 ac_cv_search_socket=$ac_res
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7305 if test "${ac_cv_search_socket+set}" = set; then
7309 if test "${ac_cv_search_socket+set}" = set; then
7312 ac_cv_search_socket=no
7315 LIBS=$ac_func_search_save_LIBS
7317 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7318 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7319 ac_res=$ac_cv_search_socket
7320 if test "$ac_res" != no; then
7321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7325 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7326 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7327 if test "${ac_cv_search_shl_load+set}" = set; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_func_search_save_LIBS=$LIBS
7331 cat >conftest.$ac_ext <<_ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7338 /* Override any GCC internal prototype to avoid an error.
7339 Use char because int might match the return type of a GCC
7340 builtin and then its argument prototype would still apply. */
7353 for ac_lib in '' dld; do
7354 if test -z "$ac_lib"; then
7355 ac_res="none required"
7358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (ac_try="$ac_link"
7363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7364 *) ac_try_echo
=$ac_try;;
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_link") 2>conftest.er1
7369 grep -v '^ *+' conftest.er1
>conftest.err
7371 cat conftest.err
>&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } && {
7374 test -z "$ac_c_werror_flag" ||
7375 test ! -s conftest.err
7376 } && test -s conftest
$ac_exeext &&
7377 $as_test_x conftest
$ac_exeext; then
7378 ac_cv_search_shl_load
=$ac_res
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.
$ac_ext >&5
7386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7388 if test "${ac_cv_search_shl_load+set}" = set; then
7392 if test "${ac_cv_search_shl_load+set}" = set; then
7395 ac_cv_search_shl_load
=no
7398 LIBS
=$ac_func_search_save_LIBS
7400 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7401 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7402 ac_res
=$ac_cv_search_shl_load
7403 if test "$ac_res" != no
; then
7404 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7408 # We only use libld in port/dynloader/aix.c
7411 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7412 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7413 if test "${ac_cv_search_ldopen+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 ac_func_search_save_LIBS
=$LIBS
7417 cat >conftest.
$ac_ext <<_ACEOF
7420 cat confdefs.h
>>conftest.
$ac_ext
7421 cat >>conftest.
$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7424 /* Override any GCC internal prototype to avoid an error.
7425 Use char because int might match the return type of a GCC
7426 builtin and then its argument prototype would still apply. */
7439 for ac_lib
in '' ld
; do
7440 if test -z "$ac_lib"; then
7441 ac_res
="none required"
7444 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7446 rm -f conftest.
$ac_objext conftest
$ac_exeext
7447 if { (ac_try
="$ac_link"
7449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_link") 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest$ac_exeext &&
7463 $as_test_x conftest$ac_exeext; then
7464 ac_cv_search_ldopen=$ac_res
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7474 if test "${ac_cv_search_ldopen+set}" = set; then
7478 if test "${ac_cv_search_ldopen+set}" = set; then
7481 ac_cv_search_ldopen=no
7484 LIBS=$ac_func_search_save_LIBS
7486 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7487 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7488 ac_res=$ac_cv_search_ldopen
7489 if test "$ac_res" != no; then
7490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7496 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7497 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7498 if test "${ac_cv_search_getopt_long+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_func_search_save_LIBS=$LIBS
7502 cat >conftest.$ac_ext <<_ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7509 /* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7515 char getopt_long ();
7519 return getopt_long ();
7524 for ac_lib in '' getopt gnugetopt; do
7525 if test -z "$ac_lib"; then
7526 ac_res="none required"
7529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7531 rm -f conftest.$ac_objext conftest$ac_exeext
7532 if { (ac_try="$ac_link"
7534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7535 *) ac_try_echo
=$ac_try;;
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_link") 2>conftest.er1
7540 grep -v '^ *+' conftest.er1
>conftest.err
7542 cat conftest.err
>&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest
$ac_exeext &&
7548 $as_test_x conftest
$ac_exeext; then
7549 ac_cv_search_getopt_long
=$ac_res
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.
$ac_ext >&5
7557 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7559 if test "${ac_cv_search_getopt_long+set}" = set; then
7563 if test "${ac_cv_search_getopt_long+set}" = set; then
7566 ac_cv_search_getopt_long
=no
7569 LIBS
=$ac_func_search_save_LIBS
7571 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7572 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7573 ac_res
=$ac_cv_search_getopt_long
7574 if test "$ac_res" != no
; then
7575 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7579 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7580 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7581 if test "${ac_cv_search_crypt+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_func_search_save_LIBS
=$LIBS
7585 cat >conftest.
$ac_ext <<_ACEOF
7588 cat confdefs.h
>>conftest.
$ac_ext
7589 cat >>conftest.
$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7592 /* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7607 for ac_lib
in '' crypt; do
7608 if test -z "$ac_lib"; then
7609 ac_res
="none required"
7612 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7614 rm -f conftest.
$ac_objext conftest
$ac_exeext
7615 if { (ac_try
="$ac_link"
7617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_link") 2>conftest.er1
7623 grep -v '^ *+' conftest.er1 >conftest.err
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest$ac_exeext &&
7631 $as_test_x conftest$ac_exeext; then
7632 ac_cv_search_crypt=$ac_res
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642 if test "${ac_cv_search_crypt+set}" = set; then
7646 if test "${ac_cv_search_crypt+set}" = set; then
7649 ac_cv_search_crypt=no
7652 LIBS=$ac_func_search_save_LIBS
7654 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7655 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7656 ac_res=$ac_cv_search_crypt
7657 if test "$ac_res" != no; then
7658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7663 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7664 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7665 if test "${ac_cv_search_fdatasync+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_func_search_save_LIBS=$LIBS
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7676 /* Override any GCC internal prototype to avoid an error.
7677 Use char because int might match the return type of a GCC
7678 builtin and then its argument prototype would still apply. */
7686 return fdatasync ();
7691 for ac_lib in '' rt posix4; do
7692 if test -z "$ac_lib"; then
7693 ac_res="none required"
7696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (ac_try="$ac_link"
7701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7702 *) ac_try_echo
=$ac_try;;
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_link") 2>conftest.er1
7707 grep -v '^ *+' conftest.er1
>conftest.err
7709 cat conftest.err
>&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest
$ac_exeext &&
7715 $as_test_x conftest
$ac_exeext; then
7716 ac_cv_search_fdatasync
=$ac_res
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.
$ac_ext >&5
7724 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7726 if test "${ac_cv_search_fdatasync+set}" = set; then
7730 if test "${ac_cv_search_fdatasync+set}" = set; then
7733 ac_cv_search_fdatasync
=no
7736 LIBS
=$ac_func_search_save_LIBS
7738 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7739 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7740 ac_res
=$ac_cv_search_fdatasync
7741 if test "$ac_res" != no
; then
7742 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7746 # Required for thread_test.c on Solaris 2.5:
7747 # Other ports use it too (HP-UX) so test unconditionally
7748 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7749 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
7750 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_func_search_save_LIBS
=$LIBS
7754 cat >conftest.
$ac_ext <<_ACEOF
7757 cat confdefs.h
>>conftest.
$ac_ext
7758 cat >>conftest.
$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7761 /* Override any GCC internal prototype to avoid an error.
7762 Use char because int might match the return type of a GCC
7763 builtin and then its argument prototype would still apply. */
7767 char gethostbyname_r ();
7771 return gethostbyname_r ();
7776 for ac_lib
in '' nsl
; do
7777 if test -z "$ac_lib"; then
7778 ac_res
="none required"
7781 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7783 rm -f conftest.
$ac_objext conftest
$ac_exeext
7784 if { (ac_try
="$ac_link"
7786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_link") 2>conftest.er1
7792 grep -v '^ *+' conftest.er1 >conftest.err
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest$ac_exeext &&
7800 $as_test_x conftest$ac_exeext; then
7801 ac_cv_search_gethostbyname_r=$ac_res
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7811 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7815 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7818 ac_cv_search_gethostbyname_r=no
7821 LIBS=$ac_func_search_save_LIBS
7823 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7824 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
7825 ac_res=$ac_cv_search_gethostbyname_r
7826 if test "$ac_res" != no; then
7827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7832 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7833 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7834 if test "${ac_cv_search_shmget+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 ac_func_search_save_LIBS=$LIBS
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 /* Override any GCC internal prototype to avoid an error.
7846 Use char because int might match the return type of a GCC
7847 builtin and then its argument prototype would still apply. */
7860 for ac_lib in '' cygipc; do
7861 if test -z "$ac_lib"; then
7862 ac_res="none required"
7865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7867 rm -f conftest.$ac_objext conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7871 *) ac_try_echo
=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1
>conftest.err
7878 cat conftest.err
>&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest
$ac_exeext &&
7884 $as_test_x conftest
$ac_exeext; then
7885 ac_cv_search_shmget
=$ac_res
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.
$ac_ext >&5
7893 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7895 if test "${ac_cv_search_shmget+set}" = set; then
7899 if test "${ac_cv_search_shmget+set}" = set; then
7902 ac_cv_search_shmget
=no
7905 LIBS
=$ac_func_search_save_LIBS
7907 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7908 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7909 ac_res
=$ac_cv_search_shmget
7910 if test "$ac_res" != no
; then
7911 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7916 if test "$with_readline" = yes; then
7919 if test "${pgac_cv_check_readline+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 pgac_cv_check_readline
=no
7923 pgac_save_LIBS
=$LIBS
7924 if test x
"$with_libedit_preferred" != x
"yes"
7925 then READLINE_ORDER
="-lreadline -ledit"
7926 else READLINE_ORDER
="-ledit -lreadline"
7928 for pgac_rllib
in $READLINE_ORDER ; do
7929 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7930 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7931 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7932 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7933 cat >conftest.
$ac_ext <<_ACEOF
7936 cat confdefs.h
>>conftest.
$ac_ext
7937 cat >>conftest.
$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7940 /* Override any GCC internal prototype to avoid an error.
7941 Use char because int might match the return type of a GCC
7942 builtin and then its argument prototype would still apply. */
7955 rm -f conftest.
$ac_objext conftest
$ac_exeext
7956 if { (ac_try
="$ac_link"
7958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest$ac_exeext &&
7972 $as_test_x conftest$ac_exeext; then
7974 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7975 # recognize dependent libraries; assume curses is needed if we didn't
7976 # find any dependency.
7978 netbsd* | openbsd* | irix*)
7979 if test x"$pgac_lib" = x"" ; then
7980 pgac_lib=" -lcurses"
7984 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995 conftest$ac_exeext conftest.$ac_ext
7997 if test "$pgac_cv_check_readline" != no ; then
7998 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7999 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8006 LIBS=$pgac_save_LIBS
8010 if test "$pgac_cv_check_readline" != no ; then
8011 LIBS="$pgac_cv_check_readline $LIBS"
8013 cat >>confdefs.h <<\_ACEOF
8014 #define HAVE_LIBREADLINE 1
8020 if test x"$pgac_cv_check_readline" = x"no"; then
8021 { { echo "$as_me:$LINENO: error: readline library not found
8022 If you have readline already installed, see config.log for details on the
8023 failure. It is possible the compiler isn't looking in the proper directory.
8024 Use --without-readline to disable readline support." >&5
8025 echo "$as_me: error: readline library not found
8026 If you have readline already installed, see config.log for details on the
8027 failure. It is possible the compiler isn't looking in the proper directory.
8028 Use --without-readline to disable readline support." >&2;}
8029 { (exit 1); exit 1; }; }
8033 if test "$with_zlib" = yes; then
8035 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8036 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
8037 if test "${ac_cv_lib_z_inflate+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 ac_check_lib_save_LIBS=$LIBS
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8049 /* Override any GCC internal prototype to avoid an error.
8050 Use char because int might match the return type of a GCC
8051 builtin and then its argument prototype would still apply. */
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8068 *) ac_try_echo
=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1
>conftest.err
8075 cat conftest.err
>&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest
$ac_exeext &&
8081 $as_test_x conftest
$ac_exeext; then
8082 ac_cv_lib_z_inflate
=yes
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.
$ac_ext >&5
8087 ac_cv_lib_z_inflate
=no
8090 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8091 conftest
$ac_exeext conftest.
$ac_ext
8092 LIBS
=$ac_check_lib_save_LIBS
8094 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8095 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8096 if test $ac_cv_lib_z_inflate = yes; then
8097 cat >>confdefs.h
<<_ACEOF
8104 { { echo "$as_me:$LINENO: error: zlib library not found
8105 If you have zlib already installed, see config.log for details on the
8106 failure. It is possible the compiler isn't looking in the proper directory.
8107 Use --without-zlib to disable zlib support." >&5
8108 echo "$as_me: error: zlib library not found
8109 If you have zlib already installed, see config.log for details on the
8110 failure. It is possible the compiler isn't looking in the proper directory.
8111 Use --without-zlib to disable zlib support." >&2;}
8112 { (exit 1); exit 1; }; }
8117 if test "$enable_spinlocks" = yes; then
8119 cat >>confdefs.h
<<\_ACEOF
8120 #define HAVE_SPINLOCKS 1
8124 { echo "$as_me:$LINENO: WARNING:
8125 *** Not using spinlocks will cause poor performance." >&5
8126 echo "$as_me: WARNING:
8127 *** Not using spinlocks will cause poor performance." >&2;}
8130 if test "$with_gssapi" = yes ; then
8131 if test "$PORTNAME" != "win32"; then
8132 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8133 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8134 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 ac_func_search_save_LIBS
=$LIBS
8138 cat >conftest.
$ac_ext <<_ACEOF
8141 cat confdefs.h
>>conftest.
$ac_ext
8142 cat >>conftest.
$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8145 /* Override any GCC internal prototype to avoid an error.
8146 Use char because int might match the return type of a GCC
8147 builtin and then its argument prototype would still apply. */
8151 char gss_init_sec_context ();
8155 return gss_init_sec_context ();
8160 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
8161 if test -z "$ac_lib"; then
8162 ac_res
="none required"
8165 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8167 rm -f conftest.
$ac_objext conftest
$ac_exeext
8168 if { (ac_try
="$ac_link"
8170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>conftest.er1
8176 grep -v '^ *+' conftest.er1 >conftest.err
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } && {
8181 test -z "$ac_c_werror_flag" ||
8182 test ! -s conftest.err
8183 } && test -s conftest$ac_exeext &&
8184 $as_test_x conftest$ac_exeext; then
8185 ac_cv_search_gss_init_sec_context=$ac_res
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8199 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8202 ac_cv_search_gss_init_sec_context=no
8205 LIBS=$ac_func_search_save_LIBS
8207 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8208 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8209 ac_res=$ac_cv_search_gss_init_sec_context
8210 if test "$ac_res" != no; then
8211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8214 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8215 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8216 { (exit 1); exit 1; }; }
8220 LIBS="$LIBS -lgssapi32"
8224 if test "$with_krb5" = yes ; then
8225 if test "$PORTNAME" != "win32"; then
8226 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8227 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8228 if test "${ac_cv_search_com_err+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 ac_func_search_save_LIBS=$LIBS
8232 cat >conftest.$ac_ext <<_ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8239 /* Override any GCC internal prototype to avoid an error.
8240 Use char because int might match the return type of a GCC
8241 builtin and then its argument prototype would still apply. */
8254 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8255 if test -z "$ac_lib"; then
8256 ac_res="none required"
8259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8265 *) ac_try_echo
=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_link") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1
>conftest.err
8272 cat conftest.err
>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest
$ac_exeext &&
8278 $as_test_x conftest
$ac_exeext; then
8279 ac_cv_search_com_err
=$ac_res
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.
$ac_ext >&5
8287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8289 if test "${ac_cv_search_com_err+set}" = set; then
8293 if test "${ac_cv_search_com_err+set}" = set; then
8296 ac_cv_search_com_err
=no
8299 LIBS
=$ac_func_search_save_LIBS
8301 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8302 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8303 ac_res
=$ac_cv_search_com_err
8304 if test "$ac_res" != no
; then
8305 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8308 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8309 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8310 { (exit 1); exit 1; }; }
8313 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8314 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8315 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 ac_func_search_save_LIBS
=$LIBS
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8326 /* Override any GCC internal prototype to avoid an error.
8327 Use char because int might match the return type of a GCC
8328 builtin and then its argument prototype would still apply. */
8332 char krb5_sendauth ();
8336 return krb5_sendauth ();
8341 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8342 if test -z "$ac_lib"; then
8343 ac_res
="none required"
8346 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8348 rm -f conftest.
$ac_objext conftest
$ac_exeext
8349 if { (ac_try
="$ac_link"
8351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_link") 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest$ac_exeext &&
8365 $as_test_x conftest$ac_exeext; then
8366 ac_cv_search_krb5_sendauth=$ac_res
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8376 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8380 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8383 ac_cv_search_krb5_sendauth=no
8386 LIBS=$ac_func_search_save_LIBS
8388 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8389 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8390 ac_res=$ac_cv_search_krb5_sendauth
8391 if test "$ac_res" != no; then
8392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8395 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8396 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8397 { (exit 1); exit 1; }; }
8401 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8402 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8403 if test "${ac_cv_search_com_err+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 ac_func_search_save_LIBS=$LIBS
8407 cat >conftest.$ac_ext <<_ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8429 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8430 if test -z "$ac_lib"; then
8431 ac_res="none required"
8434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8436 rm -f conftest.$ac_objext conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8440 *) ac_try_echo
=$ac_try;;
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_link") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1
>conftest.err
8447 cat conftest.err
>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } && {
8450 test -z "$ac_c_werror_flag" ||
8451 test ! -s conftest.err
8452 } && test -s conftest
$ac_exeext &&
8453 $as_test_x conftest
$ac_exeext; then
8454 ac_cv_search_com_err
=$ac_res
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.
$ac_ext >&5
8462 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8464 if test "${ac_cv_search_com_err+set}" = set; then
8468 if test "${ac_cv_search_com_err+set}" = set; then
8471 ac_cv_search_com_err
=no
8474 LIBS
=$ac_func_search_save_LIBS
8476 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8477 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8478 ac_res
=$ac_cv_search_com_err
8479 if test "$ac_res" != no
; then
8480 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8483 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8484 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8485 { (exit 1); exit 1; }; }
8491 if test "$with_openssl" = yes ; then
8492 if test "$PORTNAME" != "win32"; then
8494 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8495 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8496 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 ac_check_lib_save_LIBS
=$LIBS
8500 LIBS
="-lcrypto $LIBS"
8501 cat >conftest.
$ac_ext <<_ACEOF
8504 cat confdefs.h
>>conftest.
$ac_ext
8505 cat >>conftest.
$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8508 /* Override any GCC internal prototype to avoid an error.
8509 Use char because int might match the return type of a GCC
8510 builtin and then its argument prototype would still apply. */
8514 char CRYPTO_new_ex_data ();
8518 return CRYPTO_new_ex_data ();
8523 rm -f conftest.
$ac_objext conftest
$ac_exeext
8524 if { (ac_try
="$ac_link"
8526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_link") 2>conftest.er1
8532 grep -v '^ *+' conftest.er1 >conftest.err
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest$ac_exeext &&
8540 $as_test_x conftest$ac_exeext; then
8541 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8553 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8554 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8555 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557 #define HAVE_LIBCRYPTO 1
8560 LIBS="-lcrypto $LIBS"
8563 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8564 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8565 { (exit 1); exit 1; }; }
8569 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8570 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8571 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 ac_check_lib_save_LIBS=$LIBS
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8583 /* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8589 char SSL_library_init ();
8593 return SSL_library_init ();
8598 rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8602 *) ac_try_echo
=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_link") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1
>conftest.err
8609 cat conftest.err
>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest
$ac_exeext &&
8615 $as_test_x conftest
$ac_exeext; then
8616 ac_cv_lib_ssl_SSL_library_init
=yes
8618 echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.
$ac_ext >&5
8621 ac_cv_lib_ssl_SSL_library_init
=no
8624 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8625 conftest
$ac_exeext conftest.
$ac_ext
8626 LIBS
=$ac_check_lib_save_LIBS
8628 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8629 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8630 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8631 cat >>confdefs.h
<<_ACEOF
8632 #define HAVE_LIBSSL 1
8638 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8639 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8640 { (exit 1); exit 1; }; }
8645 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8646 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8647 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 ac_check_lib_save_LIBS
=$LIBS
8651 LIBS
="-leay32 $LIBS"
8652 cat >conftest.
$ac_ext <<_ACEOF
8655 cat confdefs.h
>>conftest.
$ac_ext
8656 cat >>conftest.
$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 /* Override any GCC internal prototype to avoid an error.
8660 Use char because int might match the return type of a GCC
8661 builtin and then its argument prototype would still apply. */
8665 char CRYPTO_new_ex_data ();
8669 return CRYPTO_new_ex_data ();
8674 rm -f conftest.
$ac_objext conftest
$ac_exeext
8675 if { (ac_try
="$ac_link"
8677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_link") 2>conftest.er1
8683 grep -v '^ *+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest$ac_exeext &&
8691 $as_test_x conftest$ac_exeext; then
8692 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8701 conftest$ac_exeext conftest.$ac_ext
8702 LIBS=$ac_check_lib_save_LIBS
8704 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8705 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8706 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8707 cat >>confdefs.h <<_ACEOF
8708 #define HAVE_LIBEAY32 1
8711 LIBS="-leay32 $LIBS"
8714 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8715 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8716 { (exit 1); exit 1; }; }
8720 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8721 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8722 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 ac_check_lib_save_LIBS=$LIBS
8726 LIBS="-lssleay32 $LIBS"
8727 cat >conftest.$ac_ext <<_ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8740 char SSL_library_init ();
8744 return SSL_library_init ();
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8753 *) ac_try_echo
=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_link") 2>conftest.er1
8758 grep -v '^ *+' conftest.er1
>conftest.err
8760 cat conftest.err
>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest
$ac_exeext &&
8766 $as_test_x conftest
$ac_exeext; then
8767 ac_cv_lib_ssleay32_SSL_library_init
=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.
$ac_ext >&5
8772 ac_cv_lib_ssleay32_SSL_library_init
=no
8775 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8776 conftest
$ac_exeext conftest.
$ac_ext
8777 LIBS
=$ac_check_lib_save_LIBS
8779 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8780 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8781 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8782 cat >>confdefs.h
<<_ACEOF
8783 #define HAVE_LIBSSLEAY32 1
8786 LIBS
="-lssleay32 $LIBS"
8789 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8790 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8791 { (exit 1); exit 1; }; }
8797 if test "$with_pam" = yes ; then
8799 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8800 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8801 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 ac_check_lib_save_LIBS
=$LIBS
8806 cat >conftest.
$ac_ext <<_ACEOF
8809 cat confdefs.h
>>conftest.
$ac_ext
8810 cat >>conftest.
$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8813 /* Override any GCC internal prototype to avoid an error.
8814 Use char because int might match the return type of a GCC
8815 builtin and then its argument prototype would still apply. */
8823 return pam_start ();
8828 rm -f conftest.
$ac_objext conftest
$ac_exeext
8829 if { (ac_try
="$ac_link"
8831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_link") 2>conftest.er1
8837 grep -v '^ *+' conftest.er1 >conftest.err
8839 cat conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } && {
8842 test -z "$ac_c_werror_flag" ||
8843 test ! -s conftest.err
8844 } && test -s conftest$ac_exeext &&
8845 $as_test_x conftest$ac_exeext; then
8846 ac_cv_lib_pam_pam_start=yes
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.$ac_ext >&5
8851 ac_cv_lib_pam_pam_start=no
8854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8855 conftest$ac_exeext conftest.$ac_ext
8856 LIBS=$ac_check_lib_save_LIBS
8858 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8859 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8860 if test $ac_cv_lib_pam_pam_start = yes; then
8861 cat >>confdefs.h <<_ACEOF
8862 #define HAVE_LIBPAM 1
8868 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8869 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8870 { (exit 1); exit 1; }; }
8875 if test "$with_libxml" = yes ; then
8877 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8878 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8879 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 ac_check_lib_save_LIBS=$LIBS
8884 cat >conftest.$ac_ext <<_ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8891 /* Override any GCC internal prototype to avoid an error.
8892 Use char because int might match the return type of a GCC
8893 builtin and then its argument prototype would still apply. */
8897 char xmlSaveToBuffer ();
8901 return xmlSaveToBuffer ();
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (ac_try="$ac_link"
8909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8910 *) ac_try_echo
=$ac_try;;
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_link") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1
>conftest.err
8917 cat conftest.err
>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } && {
8920 test -z "$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8922 } && test -s conftest
$ac_exeext &&
8923 $as_test_x conftest
$ac_exeext; then
8924 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.
$ac_ext >&5
8929 ac_cv_lib_xml2_xmlSaveToBuffer
=no
8932 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8933 conftest
$ac_exeext conftest.
$ac_ext
8934 LIBS
=$ac_check_lib_save_LIBS
8936 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8937 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8938 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8939 cat >>confdefs.h
<<_ACEOF
8940 #define HAVE_LIBXML2 1
8946 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8947 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8948 { (exit 1); exit 1; }; }
8953 if test "$with_libxslt" = yes ; then
8955 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8956 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8957 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8960 ac_check_lib_save_LIBS
=$LIBS
8962 cat >conftest.
$ac_ext <<_ACEOF
8965 cat confdefs.h
>>conftest.
$ac_ext
8966 cat >>conftest.
$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any GCC internal prototype to avoid an error.
8970 Use char because int might match the return type of a GCC
8971 builtin and then its argument prototype would still apply. */
8975 char xsltCleanupGlobals ();
8979 return xsltCleanupGlobals ();
8984 rm -f conftest.
$ac_objext conftest
$ac_exeext
8985 if { (ac_try
="$ac_link"
8987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_link") 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest$ac_exeext &&
9001 $as_test_x conftest$ac_exeext; then
9002 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_cv_lib_xslt_xsltCleanupGlobals=no
9010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LIBS=$ac_check_lib_save_LIBS
9014 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9015 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9016 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_LIBXSLT 1
9024 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9025 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9026 { (exit 1); exit 1; }; }
9031 # for contrib/uuid-ossp
9032 if test "$with_ossp_uuid" = yes ; then
9033 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9034 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
9035 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 ac_check_lib_save_LIBS=$LIBS
9039 LIBS="-lossp-uuid $LIBS"
9040 cat >conftest.$ac_ext <<_ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9047 /* Override any GCC internal prototype to avoid an error.
9048 Use char because int might match the return type of a GCC
9049 builtin and then its argument prototype would still apply. */
9053 char uuid_export ();
9057 return uuid_export ();
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9066 *) ac_try_echo
=$ac_try;;
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_link") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1
>conftest.err
9073 cat conftest.err
>&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest
$ac_exeext &&
9079 $as_test_x conftest
$ac_exeext; then
9080 ac_cv_lib_ossp_uuid_uuid_export
=yes
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.
$ac_ext >&5
9085 ac_cv_lib_ossp_uuid_uuid_export
=no
9088 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9089 conftest
$ac_exeext conftest.
$ac_ext
9090 LIBS
=$ac_check_lib_save_LIBS
9092 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9093 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9094 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9095 OSSP_UUID_LIBS
="-lossp-uuid"
9097 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9098 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9099 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 ac_check_lib_save_LIBS
=$LIBS
9104 cat >conftest.
$ac_ext <<_ACEOF
9107 cat confdefs.h
>>conftest.
$ac_ext
9108 cat >>conftest.
$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9111 /* Override any GCC internal prototype to avoid an error.
9112 Use char because int might match the return type of a GCC
9113 builtin and then its argument prototype would still apply. */
9117 char uuid_export ();
9121 return uuid_export ();
9126 rm -f conftest.
$ac_objext conftest
$ac_exeext
9127 if { (ac_try
="$ac_link"
9129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_link") 2>conftest.er1
9135 grep -v '^ *+' conftest.er1 >conftest.err
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && {
9140 test -z "$ac_c_werror_flag" ||
9141 test ! -s conftest.err
9142 } && test -s conftest$ac_exeext &&
9143 $as_test_x conftest$ac_exeext; then
9144 ac_cv_lib_uuid_uuid_export=yes
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ac_cv_lib_uuid_uuid_export=no
9152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9156 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9157 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9158 if test $ac_cv_lib_uuid_uuid_export = yes; then
9159 OSSP_UUID_LIBS="-luuid"
9161 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9162 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9163 { (exit 1); exit 1; }; }
9176 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9178 if test "${ac_cv_header_stdc+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9200 rm -f conftest.$ac_objext
9201 if { (ac_try="$ac_compile"
9203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9204 *) ac_try_echo
=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1
>conftest.err
9211 cat conftest.err
>&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.
$ac_objext; then
9217 ac_cv_header_stdc
=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.
$ac_ext >&5
9222 ac_cv_header_stdc
=no
9225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9227 if test $ac_cv_header_stdc = yes; then
9228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9229 cat >conftest.
$ac_ext <<_ACEOF
9232 cat confdefs.h
>>conftest.
$ac_ext
9233 cat >>conftest.
$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9239 $EGREP "memchr" >/dev
/null
2>&1; then
9242 ac_cv_header_stdc
=no
9248 if test $ac_cv_header_stdc = yes; then
9249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9250 cat >conftest.
$ac_ext <<_ACEOF
9253 cat confdefs.h
>>conftest.
$ac_ext
9254 cat >>conftest.
$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "free" >/dev
/null
2>&1; then
9263 ac_cv_header_stdc
=no
9269 if test $ac_cv_header_stdc = yes; then
9270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9271 if test "$cross_compiling" = yes; then
9274 cat >conftest.
$ac_ext <<_ACEOF
9277 cat confdefs.h
>>conftest.
$ac_ext
9278 cat >>conftest.
$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9282 #if ((' ' & 0x0FF) == 0x020)
9283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9286 # define ISLOWER(c) \
9287 (('a' <= (c) && (c) <= 'i') \
9288 || ('j' <= (c) && (c) <= 'r') \
9289 || ('s' <= (c) && (c) <= 'z'))
9290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9298 for (i = 0; i < 256; i++)
9299 if (XOR (islower (i), ISLOWER (i))
9300 || toupper (i) != TOUPPER (i))
9305 rm -f conftest
$ac_exeext
9306 if { (ac_try
="$ac_link"
9308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_link") 2>&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9318 *) ac_try_echo
=$ac_try;;
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9327 echo "$as_me: program exited with status $ac_status" >&5
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.
$ac_ext >&5
9332 ac_cv_header_stdc
=no
9334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9340 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9341 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9342 if test $ac_cv_header_stdc = yes; then
9344 cat >>confdefs.h
<<\_ACEOF
9345 #define STDC_HEADERS 1
9350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9360 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
9361 inttypes.h stdint.h unistd.h
9363 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9366 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 cat >conftest.
$ac_ext <<_ACEOF
9372 cat confdefs.h
>>conftest.
$ac_ext
9373 cat >>conftest.
$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9377 #include <$ac_header>
9379 rm -f conftest.
$ac_objext
9380 if { (ac_try
="$ac_compile"
9382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9396 eval "$as_ac_Header=yes"
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 eval "$as_ac_Header=no"
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 ac_res=`eval echo '${'$as_ac_Header'}'`
9407 { echo "$as_me:$LINENO: result: $ac_res" >&5
9408 echo "${ECHO_T}$ac_res" >&6; }
9409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9446 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
9448 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 ac_res=`eval echo '${'$as_ac_Header'}'`
9456 { echo "$as_me:$LINENO: result: $ac_res" >&5
9457 echo "${ECHO_T}$ac_res" >&6; }
9459 # Is the header compilable?
9460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9468 $ac_includes_default
9469 #include <$ac_header>
9471 rm -f conftest.$ac_objext
9472 if { (ac_try="$ac_compile"
9474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9475 *) ac_try_echo
=$ac_try;;
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_compile") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1
>conftest.err
9482 cat conftest.err
>&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest.
$ac_objext; then
9488 ac_header_compiler
=yes
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.
$ac_ext >&5
9493 ac_header_compiler
=no
9496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9498 echo "${ECHO_T}$ac_header_compiler" >&6; }
9500 # Is the header present?
9501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9503 cat >conftest.
$ac_ext <<_ACEOF
9506 cat confdefs.h
>>conftest.
$ac_ext
9507 cat >>conftest.
$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <$ac_header>
9511 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9519 grep -v '^ *+' conftest.er1 >conftest.err
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null && {
9524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9525 test ! -s conftest.err
9527 ac_header_preproc=yes
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ac_header_preproc=no
9535 rm -f conftest.err conftest.$ac_ext
9536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9537 echo "${ECHO_T}$ac_header_preproc" >&6; }
9539 # So? What about this header?
9540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9546 ac_header_preproc=yes
9549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9562 ## ---------------------------------------- ##
9563 ## Report this to pgsql-bugs@postgresql.org ##
9564 ## ---------------------------------------- ##
9566 ) | sed "s/^/$as_me: WARNING: /" >&2
9569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 eval "$as_ac_Header=\$ac_header_preproc"
9576 ac_res=`eval echo '${'$as_ac_Header'}'`
9577 { echo "$as_me:$LINENO: result: $ac_res" >&5
9578 echo "${ECHO_T}$ac_res" >&6; }
9581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9582 cat >>confdefs.h <<_ACEOF
9583 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9591 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9592 # netinet/in.h is included first.
9594 for ac_header in netinet/in.h
9596 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.$ac_ext <<_ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9623 *) ac_try_echo
=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1
>conftest.err
9630 cat conftest.err
>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.
$ac_objext; then
9636 ac_header_compiler
=yes
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.
$ac_ext >&5
9641 ac_header_compiler
=no
9644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.
$ac_ext <<_ACEOF
9654 cat confdefs.h
>>conftest.
$ac_ext
9655 cat >>conftest.
$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9659 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev/null && {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9675 ac_header_preproc=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_preproc=no
9683 rm -f conftest.err conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc=yes
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9710 ## ---------------------------------------- ##
9711 ## Report this to pgsql-bugs@postgresql.org ##
9712 ## ---------------------------------------- ##
9714 ) | sed "s/^/$as_me: WARNING: /" >&2
9717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 eval "$as_ac_Header=\$ac_header_preproc"
9724 ac_res=`eval echo '${'$as_ac_Header'}'`
9725 { echo "$as_me:$LINENO: result: $ac_res" >&5
9726 echo "${ECHO_T}$ac_res" >&6; }
9729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9730 cat >>confdefs.h <<_ACEOF
9731 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9739 for ac_header in netinet/tcp.h
9741 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 $ac_includes_default
9754 #ifdef HAVE_NETINET_IN_H
9755 #include <netinet/in.h>
9759 #include <$ac_header>
9761 rm -f conftest.$ac_objext
9762 if { (ac_try="$ac_compile"
9764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9765 *) ac_try_echo
=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_compile") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1
>conftest.err
9772 cat conftest.err
>&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest.
$ac_objext; then
9778 eval "$as_ac_Header=yes"
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.
$ac_ext >&5
9783 eval "$as_ac_Header=no"
9786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9788 ac_res
=`eval echo '${'$as_ac_Header'}'`
9789 { echo "$as_me:$LINENO: result: $ac_res" >&5
9790 echo "${ECHO_T}$ac_res" >&6; }
9791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9792 cat >>confdefs.h
<<_ACEOF
9793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9801 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
9803 for ac_header
in readline
/readline.h
9805 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9806 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9809 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_res
=`eval echo '${'$as_ac_Header'}'`
9813 { echo "$as_me:$LINENO: result: $ac_res" >&5
9814 echo "${ECHO_T}$ac_res" >&6; }
9816 # Is the header compilable?
9817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9819 cat >conftest.
$ac_ext <<_ACEOF
9822 cat confdefs.h
>>conftest.
$ac_ext
9823 cat >>conftest.
$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 $ac_includes_default
9826 #include <$ac_header>
9828 rm -f conftest.
$ac_objext
9829 if { (ac_try
="$ac_compile"
9831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_compile") 2>conftest.er1
9837 grep -v '^ *+' conftest.er1 >conftest.err
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
9845 ac_header_compiler=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_header_compiler=no
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9855 echo "${ECHO_T}$ac_header_compiler" >&6; }
9857 # Is the header present?
9858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 #include <$ac_header>
9868 if { (ac_try="$ac_cpp conftest.$ac_ext"
9870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9871 *) ac_try_echo
=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1
>conftest.err
9878 cat conftest.err
>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } >/dev
/null
&& {
9881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9884 ac_header_preproc
=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.
$ac_ext >&5
9889 ac_header_preproc
=no
9892 rm -f conftest.err conftest.
$ac_ext
9893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894 echo "${ECHO_T}$ac_header_preproc" >&6; }
9896 # So? What about this header?
9897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9903 ac_header_preproc
=yes
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9919 ## ---------------------------------------- ##
9920 ## Report this to pgsql-bugs@postgresql.org ##
9921 ## ---------------------------------------- ##
9923 ) |
sed "s/^/$as_me: WARNING: /" >&2
9926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9928 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 eval "$as_ac_Header=\$ac_header_preproc"
9933 ac_res
=`eval echo '${'$as_ac_Header'}'`
9934 { echo "$as_me:$LINENO: result: $ac_res" >&5
9935 echo "${ECHO_T}$ac_res" >&6; }
9938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9939 cat >>confdefs.h
<<_ACEOF
9940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9945 for ac_header
in readline.h
9947 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9951 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 ac_res
=`eval echo '${'$as_ac_Header'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9958 # Is the header compilable?
9959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9961 cat >conftest.
$ac_ext <<_ACEOF
9964 cat confdefs.h
>>conftest.
$ac_ext
9965 cat >>conftest.
$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 $ac_includes_default
9968 #include <$ac_header>
9970 rm -f conftest.
$ac_objext
9971 if { (ac_try
="$ac_compile"
9973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_compile") 2>conftest.er1
9979 grep -v '^ *+' conftest.er1 >conftest.err
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } && {
9984 test -z "$ac_c_werror_flag" ||
9985 test ! -s conftest.err
9986 } && test -s conftest.$ac_objext; then
9987 ac_header_compiler=yes
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9992 ac_header_compiler=no
9995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9997 echo "${ECHO_T}$ac_header_compiler" >&6; }
9999 # Is the header present?
10000 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <$ac_header>
10010 if { (ac_try="$ac_cpp conftest.$ac_ext"
10011 case "(($ac_try" in
10012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10013 *) ac_try_echo
=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1
>conftest.err
10020 cat conftest.err
>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev
/null
&& {
10023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10026 ac_header_preproc
=yes
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.
$ac_ext >&5
10031 ac_header_preproc
=no
10034 rm -f conftest.err conftest.
$ac_ext
10035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10036 echo "${ECHO_T}$ac_header_preproc" >&6; }
10038 # So? What about this header?
10039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10045 ac_header_preproc
=yes
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10061 ## ---------------------------------------- ##
10062 ## Report this to pgsql-bugs@postgresql.org ##
10063 ## ---------------------------------------- ##
10065 ) |
sed "s/^/$as_me: WARNING: /" >&2
10068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10070 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 eval "$as_ac_Header=\$ac_header_preproc"
10075 ac_res
=`eval echo '${'$as_ac_Header'}'`
10076 { echo "$as_me:$LINENO: result: $ac_res" >&5
10077 echo "${ECHO_T}$ac_res" >&6; }
10080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10081 cat >>confdefs.h
<<_ACEOF
10082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10086 { { echo "$as_me:$LINENO: error: readline header not found
10087 If you have readline already installed, see config.log for details on the
10088 failure. It is possible the compiler isn't looking in the proper directory.
10089 Use --without-readline to disable readline support." >&5
10090 echo "$as_me: error: readline header not found
10091 If you have readline already installed, see config.log for details on the
10092 failure. It is possible the compiler isn't looking in the proper directory.
10093 Use --without-readline to disable readline support." >&2;}
10094 { (exit 1); exit 1; }; }
10104 for ac_header
in readline
/history.h
10106 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10107 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10110 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 ac_res
=`eval echo '${'$as_ac_Header'}'`
10114 { echo "$as_me:$LINENO: result: $ac_res" >&5
10115 echo "${ECHO_T}$ac_res" >&6; }
10117 # Is the header compilable?
10118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10120 cat >conftest.
$ac_ext <<_ACEOF
10123 cat confdefs.h
>>conftest.
$ac_ext
10124 cat >>conftest.
$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10129 rm -f conftest.
$ac_objext
10130 if { (ac_try
="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_compile") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest.$ac_objext; then
10146 ac_header_compiler=yes
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_header_compiler=no
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10156 echo "${ECHO_T}$ac_header_compiler" >&6; }
10158 # Is the header present?
10159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 #include <$ac_header>
10169 if { (ac_try="$ac_cpp conftest.$ac_ext"
10170 case "(($ac_try" in
10171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10172 *) ac_try_echo
=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10177 grep -v '^ *+' conftest.er1
>conftest.err
10179 cat conftest.err
>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } >/dev
/null
&& {
10182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10183 test ! -s conftest.err
10185 ac_header_preproc
=yes
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.
$ac_ext >&5
10190 ac_header_preproc
=no
10193 rm -f conftest.err conftest.
$ac_ext
10194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10195 echo "${ECHO_T}$ac_header_preproc" >&6; }
10197 # So? What about this header?
10198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10204 ac_header_preproc
=yes
10207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10220 ## ---------------------------------------- ##
10221 ## Report this to pgsql-bugs@postgresql.org ##
10222 ## ---------------------------------------- ##
10224 ) |
sed "s/^/$as_me: WARNING: /" >&2
10227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10229 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 eval "$as_ac_Header=\$ac_header_preproc"
10234 ac_res
=`eval echo '${'$as_ac_Header'}'`
10235 { echo "$as_me:$LINENO: result: $ac_res" >&5
10236 echo "${ECHO_T}$ac_res" >&6; }
10239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10240 cat >>confdefs.h
<<_ACEOF
10241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10246 for ac_header
in history.h
10248 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10249 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10252 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 ac_res
=`eval echo '${'$as_ac_Header'}'`
10256 { echo "$as_me:$LINENO: result: $ac_res" >&5
10257 echo "${ECHO_T}$ac_res" >&6; }
10259 # Is the header compilable?
10260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10262 cat >conftest.
$ac_ext <<_ACEOF
10265 cat confdefs.h
>>conftest.
$ac_ext
10266 cat >>conftest.
$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 $ac_includes_default
10269 #include <$ac_header>
10271 rm -f conftest.
$ac_objext
10272 if { (ac_try
="$ac_compile"
10273 case "(($ac_try" in
10274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_compile") 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && {
10285 test -z "$ac_c_werror_flag" ||
10286 test ! -s conftest.err
10287 } && test -s conftest.$ac_objext; then
10288 ac_header_compiler=yes
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 ac_header_compiler=no
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10298 echo "${ECHO_T}$ac_header_compiler" >&6; }
10300 # Is the header present?
10301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10303 cat >conftest.$ac_ext <<_ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h. */
10309 #include <$ac_header>
10311 if { (ac_try="$ac_cpp conftest.$ac_ext"
10312 case "(($ac_try" in
10313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10314 *) ac_try_echo
=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1
>conftest.err
10321 cat conftest.err
>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } >/dev
/null
&& {
10324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10327 ac_header_preproc
=yes
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.
$ac_ext >&5
10332 ac_header_preproc
=no
10335 rm -f conftest.err conftest.
$ac_ext
10336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10337 echo "${ECHO_T}$ac_header_preproc" >&6; }
10339 # So? What about this header?
10340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10346 ac_header_preproc
=yes
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10362 ## ---------------------------------------- ##
10363 ## Report this to pgsql-bugs@postgresql.org ##
10364 ## ---------------------------------------- ##
10366 ) |
sed "s/^/$as_me: WARNING: /" >&2
10369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10371 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 eval "$as_ac_Header=\$ac_header_preproc"
10376 ac_res
=`eval echo '${'$as_ac_Header'}'`
10377 { echo "$as_me:$LINENO: result: $ac_res" >&5
10378 echo "${ECHO_T}$ac_res" >&6; }
10381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10382 cat >>confdefs.h
<<_ACEOF
10383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10387 { { echo "$as_me:$LINENO: error: history header not found
10388 If you have readline already installed, see config.log for details on the
10389 failure. It is possible the compiler isn't looking in the proper directory.
10390 Use --without-readline to disable readline support." >&5
10391 echo "$as_me: error: history header not found
10392 If you have readline already installed, see config.log for details on the
10393 failure. It is possible the compiler isn't looking in the proper directory.
10394 Use --without-readline to disable readline support." >&2;}
10395 { (exit 1); exit 1; }; }
10406 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
10407 # Some installations of libedit usurp /usr/include/readline/, which seems
10408 # bad practice, since in combined installations readline will have its headers
10409 # there. We might have to resort to AC_EGREP checks to make sure we found
10410 # the proper header...
10412 for ac_header
in editline
/readline.h
10414 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10415 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10418 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_res
=`eval echo '${'$as_ac_Header'}'`
10422 { echo "$as_me:$LINENO: result: $ac_res" >&5
10423 echo "${ECHO_T}$ac_res" >&6; }
10425 # Is the header compilable?
10426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10428 cat >conftest.
$ac_ext <<_ACEOF
10431 cat confdefs.h
>>conftest.
$ac_ext
10432 cat >>conftest.
$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 #include <$ac_header>
10437 rm -f conftest.
$ac_objext
10438 if { (ac_try
="$ac_compile"
10439 case "(($ac_try" in
10440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_compile") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest.$ac_objext; then
10454 ac_header_compiler=yes
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_header_compiler=no
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10464 echo "${ECHO_T}$ac_header_compiler" >&6; }
10466 # Is the header present?
10467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 #include <$ac_header>
10477 if { (ac_try="$ac_cpp conftest.$ac_ext"
10478 case "(($ac_try" in
10479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10480 *) ac_try_echo
=$ac_try;;
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10485 grep -v '^ *+' conftest.er1
>conftest.err
10487 cat conftest.err
>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } >/dev
/null
&& {
10490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10493 ac_header_preproc
=yes
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.
$ac_ext >&5
10498 ac_header_preproc
=no
10501 rm -f conftest.err conftest.
$ac_ext
10502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10503 echo "${ECHO_T}$ac_header_preproc" >&6; }
10505 # So? What about this header?
10506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10512 ac_header_preproc
=yes
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10528 ## ---------------------------------------- ##
10529 ## Report this to pgsql-bugs@postgresql.org ##
10530 ## ---------------------------------------- ##
10532 ) |
sed "s/^/$as_me: WARNING: /" >&2
10535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10537 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 eval "$as_ac_Header=\$ac_header_preproc"
10542 ac_res
=`eval echo '${'$as_ac_Header'}'`
10543 { echo "$as_me:$LINENO: result: $ac_res" >&5
10544 echo "${ECHO_T}$ac_res" >&6; }
10547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10548 cat >>confdefs.h
<<_ACEOF
10549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10554 for ac_header
in readline.h
10556 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10557 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10560 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 ac_res
=`eval echo '${'$as_ac_Header'}'`
10564 { echo "$as_me:$LINENO: result: $ac_res" >&5
10565 echo "${ECHO_T}$ac_res" >&6; }
10567 # Is the header compilable?
10568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10570 cat >conftest.
$ac_ext <<_ACEOF
10573 cat confdefs.h
>>conftest.
$ac_ext
10574 cat >>conftest.
$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 #include <$ac_header>
10579 rm -f conftest.
$ac_objext
10580 if { (ac_try
="$ac_compile"
10581 case "(($ac_try" in
10582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_compile") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest.$ac_objext; then
10596 ac_header_compiler=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_compiler=no
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6; }
10608 # Is the header present?
10609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <$ac_header>
10619 if { (ac_try="$ac_cpp conftest.$ac_ext"
10620 case "(($ac_try" in
10621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10622 *) ac_try_echo
=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1
>conftest.err
10629 cat conftest.err
>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } >/dev
/null
&& {
10632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10635 ac_header_preproc
=yes
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.
$ac_ext >&5
10640 ac_header_preproc
=no
10643 rm -f conftest.err conftest.
$ac_ext
10644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10645 echo "${ECHO_T}$ac_header_preproc" >&6; }
10647 # So? What about this header?
10648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10654 ac_header_preproc
=yes
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10670 ## ---------------------------------------- ##
10671 ## Report this to pgsql-bugs@postgresql.org ##
10672 ## ---------------------------------------- ##
10674 ) |
sed "s/^/$as_me: WARNING: /" >&2
10677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 eval "$as_ac_Header=\$ac_header_preproc"
10684 ac_res
=`eval echo '${'$as_ac_Header'}'`
10685 { echo "$as_me:$LINENO: result: $ac_res" >&5
10686 echo "${ECHO_T}$ac_res" >&6; }
10689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10690 cat >>confdefs.h
<<_ACEOF
10691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696 for ac_header
in readline
/readline.h
10698 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10702 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10703 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 ac_res
=`eval echo '${'$as_ac_Header'}'`
10706 { echo "$as_me:$LINENO: result: $ac_res" >&5
10707 echo "${ECHO_T}$ac_res" >&6; }
10709 # Is the header compilable?
10710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10712 cat >conftest.
$ac_ext <<_ACEOF
10715 cat confdefs.h
>>conftest.
$ac_ext
10716 cat >>conftest.
$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10719 #include <$ac_header>
10721 rm -f conftest.
$ac_objext
10722 if { (ac_try
="$ac_compile"
10723 case "(($ac_try" in
10724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728 (eval "$ac_compile") 2>conftest.er1
10730 grep -v '^ *+' conftest.er1 >conftest.err
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
10736 test ! -s conftest.err
10737 } && test -s conftest.$ac_objext; then
10738 ac_header_compiler=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_header_compiler=no
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10748 echo "${ECHO_T}$ac_header_compiler" >&6; }
10750 # Is the header present?
10751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 #include <$ac_header>
10761 if { (ac_try="$ac_cpp conftest.$ac_ext"
10762 case "(($ac_try" in
10763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10764 *) ac_try_echo
=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1
>conftest.err
10771 cat conftest.err
>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } >/dev
/null
&& {
10774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10777 ac_header_preproc
=yes
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.
$ac_ext >&5
10782 ac_header_preproc
=no
10785 rm -f conftest.err conftest.
$ac_ext
10786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10787 echo "${ECHO_T}$ac_header_preproc" >&6; }
10789 # So? What about this header?
10790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10796 ac_header_preproc
=yes
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10812 ## ---------------------------------------- ##
10813 ## Report this to pgsql-bugs@postgresql.org ##
10814 ## ---------------------------------------- ##
10816 ) |
sed "s/^/$as_me: WARNING: /" >&2
10819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10821 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 eval "$as_ac_Header=\$ac_header_preproc"
10826 ac_res
=`eval echo '${'$as_ac_Header'}'`
10827 { echo "$as_me:$LINENO: result: $ac_res" >&5
10828 echo "${ECHO_T}$ac_res" >&6; }
10831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10832 cat >>confdefs.h
<<_ACEOF
10833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837 { { echo "$as_me:$LINENO: error: readline header not found
10838 If you have libedit already installed, see config.log for details on the
10839 failure. It is possible the compiler isn't looking in the proper directory.
10840 Use --without-readline to disable libedit support." >&5
10841 echo "$as_me: error: readline header not found
10842 If you have libedit already installed, see config.log for details on the
10843 failure. It is possible the compiler isn't looking in the proper directory.
10844 Use --without-readline to disable libedit support." >&2;}
10845 { (exit 1); exit 1; }; }
10858 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10859 # not be there at all. Hence, don't complain if not found. We must check
10860 # though, since in yet other versions it is an independent header.
10862 for ac_header
in editline
/history.h
10864 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10865 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10868 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 ac_res
=`eval echo '${'$as_ac_Header'}'`
10872 { echo "$as_me:$LINENO: result: $ac_res" >&5
10873 echo "${ECHO_T}$ac_res" >&6; }
10875 # Is the header compilable?
10876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10878 cat >conftest.
$ac_ext <<_ACEOF
10881 cat confdefs.h
>>conftest.
$ac_ext
10882 cat >>conftest.
$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 $ac_includes_default
10885 #include <$ac_header>
10887 rm -f conftest.
$ac_objext
10888 if { (ac_try
="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest.$ac_objext; then
10904 ac_header_compiler=yes
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_header_compiler=no
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10914 echo "${ECHO_T}$ac_header_compiler" >&6; }
10916 # Is the header present?
10917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10919 cat >conftest.$ac_ext <<_ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 #include <$ac_header>
10927 if { (ac_try="$ac_cpp conftest.$ac_ext"
10928 case "(($ac_try" in
10929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10930 *) ac_try_echo
=$ac_try;;
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10935 grep -v '^ *+' conftest.er1
>conftest.err
10937 cat conftest.err
>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev
/null
&& {
10940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10943 ac_header_preproc
=yes
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.
$ac_ext >&5
10948 ac_header_preproc
=no
10951 rm -f conftest.err conftest.
$ac_ext
10952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10953 echo "${ECHO_T}$ac_header_preproc" >&6; }
10955 # So? What about this header?
10956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10962 ac_header_preproc
=yes
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10978 ## ---------------------------------------- ##
10979 ## Report this to pgsql-bugs@postgresql.org ##
10980 ## ---------------------------------------- ##
10982 ) |
sed "s/^/$as_me: WARNING: /" >&2
10985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10987 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 eval "$as_ac_Header=\$ac_header_preproc"
10992 ac_res
=`eval echo '${'$as_ac_Header'}'`
10993 { echo "$as_me:$LINENO: result: $ac_res" >&5
10994 echo "${ECHO_T}$ac_res" >&6; }
10997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10998 cat >>confdefs.h
<<_ACEOF
10999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11004 for ac_header
in history.h
11006 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11007 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11010 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 ac_res
=`eval echo '${'$as_ac_Header'}'`
11014 { echo "$as_me:$LINENO: result: $ac_res" >&5
11015 echo "${ECHO_T}$ac_res" >&6; }
11017 # Is the header compilable?
11018 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11020 cat >conftest.
$ac_ext <<_ACEOF
11023 cat confdefs.h
>>conftest.
$ac_ext
11024 cat >>conftest.
$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026 $ac_includes_default
11027 #include <$ac_header>
11029 rm -f conftest.
$ac_objext
11030 if { (ac_try
="$ac_compile"
11031 case "(($ac_try" in
11032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest.$ac_objext; then
11046 ac_header_compiler=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_header_compiler=no
11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11056 echo "${ECHO_T}$ac_header_compiler" >&6; }
11058 # Is the header present?
11059 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11060 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11061 cat >conftest.$ac_ext <<_ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 #include <$ac_header>
11069 if { (ac_try="$ac_cpp conftest.$ac_ext"
11070 case "(($ac_try" in
11071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11072 *) ac_try_echo
=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1
>conftest.err
11079 cat conftest.err
>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } >/dev
/null
&& {
11082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11085 ac_header_preproc
=yes
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.
$ac_ext >&5
11090 ac_header_preproc
=no
11093 rm -f conftest.err conftest.
$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11095 echo "${ECHO_T}$ac_header_preproc" >&6; }
11097 # So? What about this header?
11098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11104 ac_header_preproc
=yes
11107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11120 ## ---------------------------------------- ##
11121 ## Report this to pgsql-bugs@postgresql.org ##
11122 ## ---------------------------------------- ##
11124 ) |
sed "s/^/$as_me: WARNING: /" >&2
11127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11129 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 eval "$as_ac_Header=\$ac_header_preproc"
11134 ac_res
=`eval echo '${'$as_ac_Header'}'`
11135 { echo "$as_me:$LINENO: result: $ac_res" >&5
11136 echo "${ECHO_T}$ac_res" >&6; }
11139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h
<<_ACEOF
11141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11146 for ac_header
in readline
/history.h
11148 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11149 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 ac_res
=`eval echo '${'$as_ac_Header'}'`
11156 { echo "$as_me:$LINENO: result: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11159 # Is the header compilable?
11160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11162 cat >conftest.
$ac_ext <<_ACEOF
11165 cat confdefs.h
>>conftest.
$ac_ext
11166 cat >>conftest.
$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 $ac_includes_default
11169 #include <$ac_header>
11171 rm -f conftest.
$ac_objext
11172 if { (ac_try
="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11188 ac_header_compiler=yes
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 ac_header_compiler=no
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11198 echo "${ECHO_T}$ac_header_compiler" >&6; }
11200 # Is the header present?
11201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11203 cat >conftest.$ac_ext <<_ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h. */
11209 #include <$ac_header>
11211 if { (ac_try="$ac_cpp conftest.$ac_ext"
11212 case "(($ac_try" in
11213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11214 *) ac_try_echo
=$ac_try;;
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11219 grep -v '^ *+' conftest.er1
>conftest.err
11221 cat conftest.err
>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } >/dev
/null
&& {
11224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11227 ac_header_preproc
=yes
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.
$ac_ext >&5
11232 ac_header_preproc
=no
11235 rm -f conftest.err conftest.
$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11237 echo "${ECHO_T}$ac_header_preproc" >&6; }
11239 # So? What about this header?
11240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11246 ac_header_preproc
=yes
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11262 ## ---------------------------------------- ##
11263 ## Report this to pgsql-bugs@postgresql.org ##
11264 ## ---------------------------------------- ##
11266 ) |
sed "s/^/$as_me: WARNING: /" >&2
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 eval "$as_ac_Header=\$ac_header_preproc"
11276 ac_res
=`eval echo '${'$as_ac_Header'}'`
11277 { echo "$as_me:$LINENO: result: $ac_res" >&5
11278 echo "${ECHO_T}$ac_res" >&6; }
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282 cat >>confdefs.h
<<_ACEOF
11283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300 if test "$with_zlib" = yes; then
11301 if test "${ac_cv_header_zlib_h+set}" = set; then
11302 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11303 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11304 if test "${ac_cv_header_zlib_h+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11308 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11310 # Is the header compilable?
11311 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11312 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11313 cat >conftest.
$ac_ext <<_ACEOF
11316 cat confdefs.h
>>conftest.
$ac_ext
11317 cat >>conftest.
$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11322 rm -f conftest.
$ac_objext
11323 if { (ac_try
="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11339 ac_header_compiler=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_compiler=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6; }
11351 # Is the header present?
11352 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11353 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11365 *) ac_try_echo
=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11370 grep -v '^ *+' conftest.er1
>conftest.err
11372 cat conftest.err
>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } >/dev
/null
&& {
11375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11378 ac_header_preproc
=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.
$ac_ext >&5
11383 ac_header_preproc
=no
11386 rm -f conftest.err conftest.
$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388 echo "${ECHO_T}$ac_header_preproc" >&6; }
11390 # So? What about this header?
11391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11393 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11394 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11396 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11397 ac_header_preproc
=yes
11400 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11401 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11403 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11405 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11407 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11411 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11413 ## ---------------------------------------- ##
11414 ## Report this to pgsql-bugs@postgresql.org ##
11415 ## ---------------------------------------- ##
11417 ) |
sed "s/^/$as_me: WARNING: /" >&2
11420 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11421 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11422 if test "${ac_cv_header_zlib_h+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 ac_cv_header_zlib_h
=$ac_header_preproc
11427 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11428 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11431 if test $ac_cv_header_zlib_h = yes; then
11434 { { echo "$as_me:$LINENO: error: zlib header not found
11435 If you have zlib already installed, see config.log for details on the
11436 failure. It is possible the compiler isn't looking in the proper directory.
11437 Use --without-zlib to disable zlib support." >&5
11438 echo "$as_me: error: zlib header not found
11439 If you have zlib already installed, see config.log for details on the
11440 failure. It is possible the compiler isn't looking in the proper directory.
11441 Use --without-zlib to disable zlib support." >&2;}
11442 { (exit 1); exit 1; }; }
11448 if test "$with_gssapi" = yes ; then
11450 for ac_header
in gssapi
/gssapi.h
11452 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11453 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11456 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 ac_res
=`eval echo '${'$as_ac_Header'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11463 # Is the header compilable?
11464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11466 cat >conftest.
$ac_ext <<_ACEOF
11469 cat confdefs.h
>>conftest.
$ac_ext
11470 cat >>conftest.
$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11473 #include <$ac_header>
11475 rm -f conftest.
$ac_objext
11476 if { (ac_try
="$ac_compile"
11477 case "(($ac_try" in
11478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_compile") 2>conftest.er1
11484 grep -v '^ *+' conftest.er1 >conftest.err
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest.$ac_objext; then
11492 ac_header_compiler=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_header_compiler=no
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11518 *) ac_try_echo
=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1
>conftest.err
11525 cat conftest.err
>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev
/null
&& {
11528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11531 ac_header_preproc
=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.
$ac_ext >&5
11536 ac_header_preproc
=no
11539 rm -f conftest.err conftest.
$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11543 # So? What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc
=yes
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11566 ## ---------------------------------------- ##
11567 ## Report this to pgsql-bugs@postgresql.org ##
11568 ## ---------------------------------------- ##
11570 ) |
sed "s/^/$as_me: WARNING: /" >&2
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 eval "$as_ac_Header=\$ac_header_preproc"
11580 ac_res
=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582 echo "${ECHO_T}$ac_res" >&6; }
11585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h
<<_ACEOF
11587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 for ac_header
in gssapi.h
11594 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11595 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11598 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 ac_res
=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11605 # Is the header compilable?
11606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11608 cat >conftest.
$ac_ext <<_ACEOF
11611 cat confdefs.h
>>conftest.
$ac_ext
11612 cat >>conftest.
$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 $ac_includes_default
11615 #include <$ac_header>
11617 rm -f conftest.
$ac_objext
11618 if { (ac_try
="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_compile") 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest.$ac_objext; then
11634 ac_header_compiler=yes
11636 echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11639 ac_header_compiler=no
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11644 echo "${ECHO_T}$ac_header_compiler" >&6; }
11646 # Is the header present?
11647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11649 cat >conftest.$ac_ext <<_ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #include <$ac_header>
11657 if { (ac_try="$ac_cpp conftest.$ac_ext"
11658 case "(($ac_try" in
11659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11660 *) ac_try_echo
=$ac_try;;
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11665 grep -v '^ *+' conftest.er1
>conftest.err
11667 cat conftest.err
>&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } >/dev
/null
&& {
11670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11671 test ! -s conftest.err
11673 ac_header_preproc
=yes
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.
$ac_ext >&5
11678 ac_header_preproc
=no
11681 rm -f conftest.err conftest.
$ac_ext
11682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11683 echo "${ECHO_T}$ac_header_preproc" >&6; }
11685 # So? What about this header?
11686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11692 ac_header_preproc
=yes
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11708 ## ---------------------------------------- ##
11709 ## Report this to pgsql-bugs@postgresql.org ##
11710 ## ---------------------------------------- ##
11712 ) |
sed "s/^/$as_me: WARNING: /" >&2
11715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11717 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 eval "$as_ac_Header=\$ac_header_preproc"
11722 ac_res
=`eval echo '${'$as_ac_Header'}'`
11723 { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11728 cat >>confdefs.h
<<_ACEOF
11729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11733 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11734 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11735 { (exit 1); exit 1; }; }
11746 if test "$with_krb5" = yes ; then
11747 if test "${ac_cv_header_krb5_h+set}" = set; then
11748 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11749 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11750 if test "${ac_cv_header_krb5_h+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11754 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11756 # Is the header compilable?
11757 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11758 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11759 cat >conftest.
$ac_ext <<_ACEOF
11762 cat confdefs.h
>>conftest.
$ac_ext
11763 cat >>conftest.
$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 $ac_includes_default
11768 rm -f conftest.
$ac_objext
11769 if { (ac_try
="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_header_compiler=yes
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_compiler=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 echo "${ECHO_T}$ac_header_compiler" >&6; }
11797 # Is the header present?
11798 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11799 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11811 *) ac_try_echo
=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1
>conftest.err
11818 cat conftest.err
>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev
/null
&& {
11821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11824 ac_header_preproc
=yes
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.
$ac_ext >&5
11829 ac_header_preproc
=no
11832 rm -f conftest.err conftest.
$ac_ext
11833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6; }
11836 # So? What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11839 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11843 ac_header_preproc
=yes
11846 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11859 ## ---------------------------------------- ##
11860 ## Report this to pgsql-bugs@postgresql.org ##
11861 ## ---------------------------------------- ##
11863 ) |
sed "s/^/$as_me: WARNING: /" >&2
11866 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11867 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11868 if test "${ac_cv_header_krb5_h+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 ac_cv_header_krb5_h
=$ac_header_preproc
11873 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11874 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11877 if test $ac_cv_header_krb5_h = yes; then
11880 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11881 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11882 { (exit 1); exit 1; }; }
11888 if test "$with_openssl" = yes ; then
11889 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11890 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11891 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11892 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11896 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11898 # Is the header compilable?
11899 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11900 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11901 cat >conftest.
$ac_ext <<_ACEOF
11904 cat confdefs.h
>>conftest.
$ac_ext
11905 cat >>conftest.
$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 $ac_includes_default
11908 #include <openssl/ssl.h>
11910 rm -f conftest.
$ac_objext
11911 if { (ac_try
="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 ac_header_compiler=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_header_compiler=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939 # Is the header present?
11940 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11941 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <openssl/ssl.h>
11950 if { (ac_try="$ac_cpp conftest.$ac_ext"
11951 case "(($ac_try" in
11952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11953 *) ac_try_echo
=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1
>conftest.err
11960 cat conftest.err
>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev
/null
&& {
11963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11964 test ! -s conftest.err
11966 ac_header_preproc
=yes
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.
$ac_ext >&5
11971 ac_header_preproc
=no
11974 rm -f conftest.err conftest.
$ac_ext
11975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11976 echo "${ECHO_T}$ac_header_preproc" >&6; }
11978 # So? What about this header?
11979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11982 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11984 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11985 ac_header_preproc
=yes
11988 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11989 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11991 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11993 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11995 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11997 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11999 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12001 ## ---------------------------------------- ##
12002 ## Report this to pgsql-bugs@postgresql.org ##
12003 ## ---------------------------------------- ##
12005 ) |
sed "s/^/$as_me: WARNING: /" >&2
12008 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12009 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12010 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12013 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
12015 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12016 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12019 if test $ac_cv_header_openssl_ssl_h = yes; then
12022 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12023 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12024 { (exit 1); exit 1; }; }
12028 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12029 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12030 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12031 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12035 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12037 # Is the header compilable?
12038 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12039 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
12040 cat >conftest.
$ac_ext <<_ACEOF
12043 cat confdefs.h
>>conftest.
$ac_ext
12044 cat >>conftest.
$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 $ac_includes_default
12047 #include <openssl/err.h>
12049 rm -f conftest.
$ac_objext
12050 if { (ac_try
="$ac_compile"
12051 case "(($ac_try" in
12052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_compile") 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest.$ac_objext; then
12066 ac_header_compiler=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 ac_header_compiler=no
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12076 echo "${ECHO_T}$ac_header_compiler" >&6; }
12078 # Is the header present?
12079 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12080 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <openssl/err.h>
12089 if { (ac_try="$ac_cpp conftest.$ac_ext"
12090 case "(($ac_try" in
12091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12092 *) ac_try_echo
=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12097 grep -v '^ *+' conftest.er1
>conftest.err
12099 cat conftest.err
>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } >/dev
/null
&& {
12102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12105 ac_header_preproc
=yes
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.
$ac_ext >&5
12110 ac_header_preproc
=no
12113 rm -f conftest.err conftest.
$ac_ext
12114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12115 echo "${ECHO_T}$ac_header_preproc" >&6; }
12117 # So? What about this header?
12118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12120 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12121 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12123 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12124 ac_header_preproc
=yes
12127 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12128 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12129 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12130 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12132 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12134 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12136 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12138 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12140 ## ---------------------------------------- ##
12141 ## Report this to pgsql-bugs@postgresql.org ##
12142 ## ---------------------------------------- ##
12144 ) |
sed "s/^/$as_me: WARNING: /" >&2
12147 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12148 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12149 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 ac_cv_header_openssl_err_h
=$ac_header_preproc
12154 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12155 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12158 if test $ac_cv_header_openssl_err_h = yes; then
12161 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12162 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12163 { (exit 1); exit 1; }; }
12168 for ac_func
in ERR_set_mark
12170 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12173 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 cat >conftest.
$ac_ext <<_ACEOF
12179 cat confdefs.h
>>conftest.
$ac_ext
12180 cat >>conftest.
$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12184 #define $ac_func innocuous_$ac_func
12186 /* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char $ac_func (); below.
12188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12189 <limits.h> exists even on freestanding compilers. */
12192 # include <limits.h>
12194 # include <assert.h>
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12206 /* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209 #if defined __stub_$ac_func || defined __stub___$ac_func
12216 return $ac_func ();
12221 rm -f conftest.
$ac_objext conftest
$ac_exeext
12222 if { (ac_try
="$ac_link"
12223 case "(($ac_try" in
12224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12228 (eval "$ac_link") 2>conftest.er1
12230 grep -v '^ *+' conftest.er1 >conftest.err
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } && {
12235 test -z "$ac_c_werror_flag" ||
12236 test ! -s conftest.err
12237 } && test -s conftest$ac_exeext &&
12238 $as_test_x conftest$ac_exeext; then
12239 eval "$as_ac_var=yes"
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 eval "$as_ac_var=no"
12247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12248 conftest$ac_exeext conftest.$ac_ext
12250 ac_res=`eval echo '${'$as_ac_var'}'`
12251 { echo "$as_me:$LINENO: result: $ac_res" >&5
12252 echo "${ECHO_T}$ac_res" >&6; }
12253 if test `eval echo '${'$as_ac_var'}'` = yes; then
12254 cat >>confdefs.h <<_ACEOF
12255 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12263 if test "$with_pam" = yes ; then
12265 for ac_header in security/pam_appl.h
12267 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 ac_res=`eval echo '${'$as_ac_Header'}'`
12275 { echo "$as_me:$LINENO: result: $ac_res" >&5
12276 echo "${ECHO_T}$ac_res" >&6; }
12278 # Is the header compilable?
12279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12288 #include <$ac_header>
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12294 *) ac_try_echo
=$ac_try;;
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_compile") 2>conftest.er1
12299 grep -v '^ *+' conftest.er1
>conftest.err
12301 cat conftest.err
>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.
$ac_objext; then
12307 ac_header_compiler
=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.
$ac_ext >&5
12312 ac_header_compiler
=no
12315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12317 echo "${ECHO_T}$ac_header_compiler" >&6; }
12319 # Is the header present?
12320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12322 cat >conftest.
$ac_ext <<_ACEOF
12325 cat confdefs.h
>>conftest.
$ac_ext
12326 cat >>conftest.
$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328 #include <$ac_header>
12330 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12331 case "(($ac_try" in
12332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } >/dev/null && {
12343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12346 ac_header_preproc=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_header_preproc=no
12354 rm -f conftest.err conftest.$ac_ext
12355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12356 echo "${ECHO_T}$ac_header_preproc" >&6; }
12358 # So? What about this header?
12359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12365 ac_header_preproc=yes
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12381 ## ---------------------------------------- ##
12382 ## Report this to pgsql-bugs@postgresql.org ##
12383 ## ---------------------------------------- ##
12385 ) | sed "s/^/$as_me: WARNING: /" >&2
12388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 eval "$as_ac_Header=\$ac_header_preproc"
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396 { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12401 cat >>confdefs.h <<_ACEOF
12402 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12407 for ac_header in pam/pam_appl.h
12409 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 ac_res=`eval echo '${'$as_ac_Header'}'`
12417 { echo "$as_me:$LINENO: result: $ac_res" >&5
12418 echo "${ECHO_T}$ac_res" >&6; }
12420 # Is the header compilable?
12421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12423 cat >conftest.$ac_ext <<_ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h. */
12429 $ac_includes_default
12430 #include <$ac_header>
12432 rm -f conftest.$ac_objext
12433 if { (ac_try="$ac_compile"
12434 case "(($ac_try" in
12435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12436 *) ac_try_echo
=$ac_try;;
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_compile") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1
>conftest.err
12443 cat conftest.err
>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && {
12446 test -z "$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12448 } && test -s conftest.
$ac_objext; then
12449 ac_header_compiler
=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.
$ac_ext >&5
12454 ac_header_compiler
=no
12457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12459 echo "${ECHO_T}$ac_header_compiler" >&6; }
12461 # Is the header present?
12462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12464 cat >conftest.
$ac_ext <<_ACEOF
12467 cat confdefs.h
>>conftest.
$ac_ext
12468 cat >>conftest.
$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 #include <$ac_header>
12472 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12473 case "(($ac_try" in
12474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12480 grep -v '^ *+' conftest.er1 >conftest.err
12482 cat conftest.err >&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } >/dev/null && {
12485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12486 test ! -s conftest.err
12488 ac_header_preproc=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12493 ac_header_preproc=no
12496 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6; }
12500 # So? What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12507 ac_header_preproc=yes
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12523 ## ---------------------------------------- ##
12524 ## Report this to pgsql-bugs@postgresql.org ##
12525 ## ---------------------------------------- ##
12527 ) | sed "s/^/$as_me: WARNING: /" >&2
12530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 eval "$as_ac_Header=\$ac_header_preproc"
12537 ac_res=`eval echo '${'$as_ac_Header'}'`
12538 { echo "$as_me:$LINENO: result: $ac_res" >&5
12539 echo "${ECHO_T}$ac_res" >&6; }
12542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12548 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12549 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12550 { (exit 1); exit 1; }; }
12561 if test "$with_libxml" = yes ; then
12562 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12563 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12564 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12565 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12569 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12571 # Is the header compilable?
12572 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12573 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12574 cat >conftest.$ac_ext <<_ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 $ac_includes_default
12581 #include <libxml/parser.h>
12583 rm -f conftest.$ac_objext
12584 if { (ac_try="$ac_compile"
12585 case "(($ac_try" in
12586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12587 *) ac_try_echo
=$ac_try;;
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_compile") 2>conftest.er1
12592 grep -v '^ *+' conftest.er1
>conftest.err
12594 cat conftest.err
>&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } && {
12597 test -z "$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 } && test -s conftest.
$ac_objext; then
12600 ac_header_compiler
=yes
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.
$ac_ext >&5
12605 ac_header_compiler
=no
12608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12610 echo "${ECHO_T}$ac_header_compiler" >&6; }
12612 # Is the header present?
12613 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12614 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12615 cat >conftest.
$ac_ext <<_ACEOF
12618 cat confdefs.h
>>conftest.
$ac_ext
12619 cat >>conftest.
$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 #include <libxml/parser.h>
12623 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12624 case "(($ac_try" in
12625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12631 grep -v '^ *+' conftest.er1 >conftest.err
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } >/dev/null && {
12636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12639 ac_header_preproc=yes
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ac_header_preproc=no
12647 rm -f conftest.err conftest.$ac_ext
12648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12649 echo "${ECHO_T}$ac_header_preproc" >&6; }
12651 # So? What about this header?
12652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12654 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12655 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12657 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12658 ac_header_preproc=yes
12661 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12662 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12664 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12666 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12668 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12670 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12672 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12674 ## ---------------------------------------- ##
12675 ## Report this to pgsql-bugs@postgresql.org ##
12676 ## ---------------------------------------- ##
12678 ) | sed "s/^/$as_me: WARNING: /" >&2
12681 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12682 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12683 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 ac_cv_header_libxml_parser_h=$ac_header_preproc
12688 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12689 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12692 if test $ac_cv_header_libxml_parser_h = yes; then
12695 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12696 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12697 { (exit 1); exit 1; }; }
12703 if test "$with_libxslt" = yes ; then
12704 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12705 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12706 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12707 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12711 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12713 # Is the header compilable?
12714 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12715 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 #include <libxslt/xslt.h>
12725 rm -f conftest.$ac_objext
12726 if { (ac_try="$ac_compile"
12727 case "(($ac_try" in
12728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12729 *) ac_try_echo
=$ac_try;;
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_compile") 2>conftest.er1
12734 grep -v '^ *+' conftest.er1
>conftest.err
12736 cat conftest.err
>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } && {
12739 test -z "$ac_c_werror_flag" ||
12740 test ! -s conftest.err
12741 } && test -s conftest.
$ac_objext; then
12742 ac_header_compiler
=yes
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.
$ac_ext >&5
12747 ac_header_compiler
=no
12750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12752 echo "${ECHO_T}$ac_header_compiler" >&6; }
12754 # Is the header present?
12755 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12756 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12757 cat >conftest.
$ac_ext <<_ACEOF
12760 cat confdefs.h
>>conftest.
$ac_ext
12761 cat >>conftest.
$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 #include <libxslt/xslt.h>
12765 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12766 case "(($ac_try" in
12767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } >/dev/null && {
12778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12781 ac_header_preproc=yes
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12786 ac_header_preproc=no
12789 rm -f conftest.err conftest.$ac_ext
12790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12791 echo "${ECHO_T}$ac_header_preproc" >&6; }
12793 # So? What about this header?
12794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12796 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12797 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12799 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12800 ac_header_preproc=yes
12803 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12804 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12806 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12808 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12810 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12812 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12814 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12816 ## ---------------------------------------- ##
12817 ## Report this to pgsql-bugs@postgresql.org ##
12818 ## ---------------------------------------- ##
12820 ) | sed "s/^/$as_me: WARNING: /" >&2
12823 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12824 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12825 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12830 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12831 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12834 if test $ac_cv_header_libxslt_xslt_h = yes; then
12837 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12838 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12839 { (exit 1); exit 1; }; }
12845 if test "$with_ldap" = yes ; then
12846 if test "$PORTNAME" != "win32"; then
12848 for ac_header in ldap.h
12850 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 ac_res=`eval echo '${'$as_ac_Header'}'`
12858 { echo "$as_me:$LINENO: result: $ac_res" >&5
12859 echo "${ECHO_T}$ac_res" >&6; }
12861 # Is the header compilable?
12862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12864 cat >conftest.$ac_ext <<_ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 $ac_includes_default
12871 #include <$ac_header>
12873 rm -f conftest.$ac_objext
12874 if { (ac_try="$ac_compile"
12875 case "(($ac_try" in
12876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12877 *) ac_try_echo
=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_compile") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1
>conftest.err
12884 cat conftest.err
>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest.
$ac_objext; then
12890 ac_header_compiler
=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.
$ac_ext >&5
12895 ac_header_compiler
=no
12898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900 echo "${ECHO_T}$ac_header_compiler" >&6; }
12902 # Is the header present?
12903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12905 cat >conftest.
$ac_ext <<_ACEOF
12908 cat confdefs.h
>>conftest.
$ac_ext
12909 cat >>conftest.
$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 #include <$ac_header>
12913 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12914 case "(($ac_try" in
12915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12921 grep -v '^ *+' conftest.er1 >conftest.err
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } >/dev/null && {
12926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12927 test ! -s conftest.err
12929 ac_header_preproc=yes
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_header_preproc=no
12937 rm -f conftest.err conftest.$ac_ext
12938 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12939 echo "${ECHO_T}$ac_header_preproc" >&6; }
12941 # So? What about this header?
12942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12945 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12947 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12948 ac_header_preproc=yes
12951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12956 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12958 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12962 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12964 ## ---------------------------------------- ##
12965 ## Report this to pgsql-bugs@postgresql.org ##
12966 ## ---------------------------------------- ##
12968 ) | sed "s/^/$as_me: WARNING: /" >&2
12971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 eval "$as_ac_Header=\$ac_header_preproc"
12978 ac_res=`eval echo '${'$as_ac_Header'}'`
12979 { echo "$as_me:$LINENO: result: $ac_res" >&5
12980 echo "${ECHO_T}$ac_res" >&6; }
12983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12984 cat >>confdefs.h <<_ACEOF
12985 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12989 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12990 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12991 { (exit 1); exit 1; }; }
12998 for ac_header in winldap.h
13000 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 $ac_includes_default
13013 #include <windows.h>
13016 #include <$ac_header>
13018 rm -f conftest.$ac_objext
13019 if { (ac_try="$ac_compile"
13020 case "(($ac_try" in
13021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13022 *) ac_try_echo
=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_compile") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1
>conftest.err
13029 cat conftest.err
>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest.
$ac_objext; then
13035 eval "$as_ac_Header=yes"
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.
$ac_ext >&5
13040 eval "$as_ac_Header=no"
13043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13045 ac_res
=`eval echo '${'$as_ac_Header'}'`
13046 { echo "$as_me:$LINENO: result: $ac_res" >&5
13047 echo "${ECHO_T}$ac_res" >&6; }
13048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13049 cat >>confdefs.h
<<_ACEOF
13050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13054 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13055 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13056 { (exit 1); exit 1; }; }
13064 if test "$with_bonjour" = yes ; then
13065 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13066 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13067 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13068 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13072 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13074 # Is the header compilable?
13075 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13076 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
13077 cat >conftest.
$ac_ext <<_ACEOF
13080 cat confdefs.h
>>conftest.
$ac_ext
13081 cat >>conftest.
$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 $ac_includes_default
13084 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13086 rm -f conftest.
$ac_objext
13087 if { (ac_try
="$ac_compile"
13088 case "(($ac_try" in
13089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_compile") 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
13103 ac_header_compiler=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_header_compiler=no
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13113 echo "${ECHO_T}$ac_header_compiler" >&6; }
13115 # Is the header present?
13116 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13117 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13126 if { (ac_try="$ac_cpp conftest.$ac_ext"
13127 case "(($ac_try" in
13128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13129 *) ac_try_echo
=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13134 grep -v '^ *+' conftest.er1
>conftest.err
13136 cat conftest.err
>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } >/dev
/null
&& {
13139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13140 test ! -s conftest.err
13142 ac_header_preproc
=yes
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.
$ac_ext >&5
13147 ac_header_preproc
=no
13150 rm -f conftest.err conftest.
$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152 echo "${ECHO_T}$ac_header_preproc" >&6; }
13154 # So? What about this header?
13155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13157 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13158 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13159 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13160 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13161 ac_header_preproc
=yes
13164 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13165 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13169 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13171 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13173 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13175 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13177 ## ---------------------------------------- ##
13178 ## Report this to pgsql-bugs@postgresql.org ##
13179 ## ---------------------------------------- ##
13181 ) |
sed "s/^/$as_me: WARNING: /" >&2
13184 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13185 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13186 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h
=$ac_header_preproc
13191 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13192 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13195 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13198 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13199 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13200 { (exit 1); exit 1; }; }
13206 # for contrib/uuid-ossp
13207 if test "$with_ossp_uuid" = yes ; then
13209 for ac_header
in ossp
/uuid.h
13211 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13212 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13215 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 ac_res
=`eval echo '${'$as_ac_Header'}'`
13219 { echo "$as_me:$LINENO: result: $ac_res" >&5
13220 echo "${ECHO_T}$ac_res" >&6; }
13222 # Is the header compilable?
13223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&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 $ac_includes_default
13232 #include <$ac_header>
13234 rm -f conftest.
$ac_objext
13235 if { (ac_try
="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
13251 ac_header_compiler=yes
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_header_compiler=no
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13261 echo "${ECHO_T}$ac_header_compiler" >&6; }
13263 # Is the header present?
13264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 #include <$ac_header>
13274 if { (ac_try="$ac_cpp conftest.$ac_ext"
13275 case "(($ac_try" in
13276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13277 *) ac_try_echo
=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1
>conftest.err
13284 cat conftest.err
>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } >/dev
/null
&& {
13287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13290 ac_header_preproc
=yes
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.
$ac_ext >&5
13295 ac_header_preproc
=no
13298 rm -f conftest.err conftest.
$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13300 echo "${ECHO_T}$ac_header_preproc" >&6; }
13302 # So? What about this header?
13303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13309 ac_header_preproc
=yes
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13325 ## ---------------------------------------- ##
13326 ## Report this to pgsql-bugs@postgresql.org ##
13327 ## ---------------------------------------- ##
13329 ) |
sed "s/^/$as_me: WARNING: /" >&2
13332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13334 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 eval "$as_ac_Header=\$ac_header_preproc"
13339 ac_res
=`eval echo '${'$as_ac_Header'}'`
13340 { echo "$as_me:$LINENO: result: $ac_res" >&5
13341 echo "${ECHO_T}$ac_res" >&6; }
13344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13345 cat >>confdefs.h
<<_ACEOF
13346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13352 for ac_header
in uuid.h
13354 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13355 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13358 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 ac_res
=`eval echo '${'$as_ac_Header'}'`
13362 { echo "$as_me:$LINENO: result: $ac_res" >&5
13363 echo "${ECHO_T}$ac_res" >&6; }
13365 # Is the header compilable?
13366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13368 cat >conftest.
$ac_ext <<_ACEOF
13371 cat confdefs.h
>>conftest.
$ac_ext
13372 cat >>conftest.
$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 #include <$ac_header>
13377 rm -f conftest.
$ac_objext
13378 if { (ac_try
="$ac_compile"
13379 case "(($ac_try" in
13380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_compile") 2>conftest.er1
13386 grep -v '^ *+' conftest.er1 >conftest.err
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && {
13391 test -z "$ac_c_werror_flag" ||
13392 test ! -s conftest.err
13393 } && test -s conftest.$ac_objext; then
13394 ac_header_compiler=yes
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 ac_header_compiler=no
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13404 echo "${ECHO_T}$ac_header_compiler" >&6; }
13406 # Is the header present?
13407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13409 cat >conftest.$ac_ext <<_ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13415 #include <$ac_header>
13417 if { (ac_try="$ac_cpp conftest.$ac_ext"
13418 case "(($ac_try" in
13419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13420 *) ac_try_echo
=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13425 grep -v '^ *+' conftest.er1
>conftest.err
13427 cat conftest.err
>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } >/dev
/null
&& {
13430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13433 ac_header_preproc
=yes
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.
$ac_ext >&5
13438 ac_header_preproc
=no
13441 rm -f conftest.err conftest.
$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13443 echo "${ECHO_T}$ac_header_preproc" >&6; }
13445 # So? What about this header?
13446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13452 ac_header_preproc
=yes
13455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13468 ## ---------------------------------------- ##
13469 ## Report this to pgsql-bugs@postgresql.org ##
13470 ## ---------------------------------------- ##
13472 ) |
sed "s/^/$as_me: WARNING: /" >&2
13475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13477 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 eval "$as_ac_Header=\$ac_header_preproc"
13482 ac_res
=`eval echo '${'$as_ac_Header'}'`
13483 { echo "$as_me:$LINENO: result: $ac_res" >&5
13484 echo "${ECHO_T}$ac_res" >&6; }
13487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13488 cat >>confdefs.h
<<_ACEOF
13489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13493 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13494 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13495 { (exit 1); exit 1; }; }
13508 ## Types, structures, compiler characteristics
13511 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13512 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13513 if test "${ac_cv_c_bigendian+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 # See if sys/param.h defines the BYTE_ORDER macro.
13517 cat >conftest.
$ac_ext <<_ACEOF
13520 cat confdefs.h
>>conftest.
$ac_ext
13521 cat >>conftest.
$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 #include <sys/types.h>
13524 #include <sys/param.h>
13529 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13530 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13531 bogus endian macros
13538 rm -f conftest.
$ac_objext
13539 if { (ac_try
="$ac_compile"
13540 case "(($ac_try" in
13541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_compile") 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && {
13552 test -z "$ac_c_werror_flag" ||
13553 test ! -s conftest.err
13554 } && test -s conftest.$ac_objext; then
13555 # It does; now see whether it defined to BIG_ENDIAN or not.
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 #include <sys/types.h>
13563 #include <sys/param.h>
13568 #if BYTE_ORDER != BIG_ENDIAN
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13580 *) ac_try_echo
=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compile") 2>conftest.er1
13585 grep -v '^ *+' conftest.er1
>conftest.err
13587 cat conftest.err
>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.
$ac_objext; then
13593 ac_cv_c_bigendian
=yes
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.
$ac_ext >&5
13598 ac_cv_c_bigendian
=no
13601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.
$ac_ext >&5
13606 # It does not; compile a test program.
13607 if test "$cross_compiling" = yes; then
13608 # try to guess the endianness by grepping values into an object file
13609 ac_cv_c_bigendian
=unknown
13610 cat >conftest.
$ac_ext <<_ACEOF
13613 cat confdefs.h
>>conftest.
$ac_ext
13614 cat >>conftest.
$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13617 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13618 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13619 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13620 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13621 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13625 _ascii (); _ebcdic ();
13630 rm -f conftest.
$ac_objext
13631 if { (ac_try
="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1 >conftest.err
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.$ac_objext; then
13647 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13648 ac_cv_c_bigendian=yes
13650 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13651 if test "$ac_cv_c_bigendian" = unknown; then
13652 ac_cv_c_bigendian=no
13654 # finding both strings is unlikely to happen, but who knows?
13655 ac_cv_c_bigendian=unknown
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13678 /* Are we little or big endian? From Harbison&Steele. */
13682 char c[sizeof (long int)];
13685 return u.c[sizeof (long int) - 1] == 1;
13691 rm -f conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13695 *) ac_try_echo
=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13702 { (case "(($ac_try" in
13703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 ac_cv_c_bigendian=no
13713 echo "$as_me: program exited with status $ac_status" >&5
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ( exit $ac_status )
13718 ac_cv_c_bigendian=yes
13720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13729 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13730 case $ac_cv_c_bigendian in
13733 cat >>confdefs.h <<\_ACEOF
13734 #define WORDS_BIGENDIAN 1
13740 { { echo "$as_me:$LINENO: error: unknown endianness
13741 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13742 echo "$as_me: error: unknown endianness
13743 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13744 { (exit 1); exit 1; }; } ;;
13747 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13748 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13749 if test "${ac_cv_c_const+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13762 /* FIXME: Include the comments suggested by Paul. */
13763 #ifndef __cplusplus
13764 /* Ultrix mips cc rejects this. */
13765 typedef int charset[2];
13767 /* SunOS 4.1.1 cc rejects this. */
13768 char const *const *pcpcc;
13770 /* NEC SVR4.0.2 mips cc rejects this. */
13771 struct point {int x, y;};
13772 static struct point const zero = {0,0};
13773 /* AIX XL C 1.02.0.0 rejects this.
13774 It does not let you subtract one const X* pointer from another in
13775 an arm of an if-expression whose if-part is not a constant
13777 const char *g = "string";
13778 pcpcc = &g + (g ? g-g : 0);
13779 /* HPUX 7.0 cc rejects these. */
13781 ppc = (char**) pcpcc;
13782 pcpcc = (char const *const *) ppc;
13783 { /* SCO 3.2v4 cc rejects this. */
13785 char const *s = 0 ? (char *) 0 : (char const *) 0;
13790 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13791 int x[] = {25, 17};
13792 const int *foo = &x[0];
13795 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13796 typedef const int *iptr;
13800 { /* AIX XL C 1.02.0.0 rejects this saying
13801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13802 struct s { int j; const int *ap[3]; };
13803 struct s *b; b->j = 5;
13805 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13806 const int foo = 10;
13807 if (!foo) return 0;
13809 return !cs[0] && !zero.x;
13816 rm -f conftest.$ac_objext
13817 if { (ac_try="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13820 *) ac_try_echo
=$ac_try;;
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13825 grep -v '^ *+' conftest.er1
>conftest.err
13827 cat conftest.err
>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && {
13830 test -z "$ac_c_werror_flag" ||
13831 test ! -s conftest.err
13832 } && test -s conftest.
$ac_objext; then
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.
$ac_ext >&5
13841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13843 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13844 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13845 if test $ac_cv_c_const = no
; then
13847 cat >>confdefs.h
<<\_ACEOF
13853 { echo "$as_me:$LINENO: checking for inline" >&5
13854 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13855 if test "${ac_cv_c_inline+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 for ac_kw
in inline __inline__ __inline
; do
13860 cat >conftest.
$ac_ext <<_ACEOF
13863 cat confdefs.h
>>conftest.
$ac_ext
13864 cat >>conftest.
$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #ifndef __cplusplus
13868 static $ac_kw foo_t static_foo () {return 0; }
13869 $ac_kw foo_t foo () {return 0; }
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_compile") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest.$ac_objext; then
13890 ac_cv_c_inline=$ac_kw
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 test "$ac_cv_c_inline" != no && break
13903 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13904 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13907 case $ac_cv_c_inline in
13910 case $ac_cv_c_inline in
13912 *) ac_val=$ac_cv_c_inline;;
13914 cat >>confdefs.h <<_ACEOF
13915 #ifndef __cplusplus
13916 #define inline $ac_val
13922 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13923 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13924 if test "${ac_cv_c_stringize+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 cat >conftest.$ac_ext <<_ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13935 char *s = x(teststring);
13937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13938 $EGREP "#teststring" >/dev/null 2>&1; then
13939 ac_cv_c_stringize=no
13941 ac_cv_c_stringize=yes
13946 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13947 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13948 if test $ac_cv_c_stringize = yes; then
13950 cat >>confdefs.h <<\_ACEOF
13951 #define HAVE_STRINGIZE 1
13956 { echo "$as_me:$LINENO: checking for signed types" >&5
13957 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13958 if test "${pgac_cv_c_signed+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13971 signed char c; signed short s; signed int i;
13976 rm -f conftest.$ac_objext
13977 if { (ac_try="$ac_compile"
13978 case "(($ac_try" in
13979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13980 *) ac_try_echo
=$ac_try;;
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_compile") 2>conftest.er1
13985 grep -v '^ *+' conftest.er1
>conftest.err
13987 cat conftest.err
>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest.
$ac_objext; then
13993 pgac_cv_c_signed
=yes
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.
$ac_ext >&5
13998 pgac_cv_c_signed
=no
14001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14003 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14004 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
14005 if test x
"$pgac_cv_c_signed" = xno
; then
14007 cat >>confdefs.h
<<\_ACEOF
14012 { echo "$as_me:$LINENO: checking for working volatile" >&5
14013 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14014 if test "${ac_cv_c_volatile+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 cat >conftest.
$ac_ext <<_ACEOF
14020 cat confdefs.h
>>conftest.
$ac_ext
14021 cat >>conftest.
$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14029 int * volatile y = (int *) 0;
14035 rm -f conftest.
$ac_objext
14036 if { (ac_try
="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
14052 ac_cv_c_volatile=yes
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 ac_cv_c_volatile=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14062 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14063 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
14064 if test $ac_cv_c_volatile = no; then
14066 cat >>confdefs.h <<\_ACEOF
14072 { echo "$as_me:$LINENO: checking for __func__" >&5
14073 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
14074 if test "${pgac_cv_funcname_func_support+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14087 printf("%s\n", __func__);
14092 rm -f conftest.$ac_objext
14093 if { (ac_try="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14096 *) ac_try_echo
=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_compile") 2>conftest.er1
14101 grep -v '^ *+' conftest.er1
>conftest.err
14103 cat conftest.err
>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && {
14106 test -z "$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14108 } && test -s conftest.
$ac_objext; then
14109 pgac_cv_funcname_func_support
=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.
$ac_ext >&5
14114 pgac_cv_funcname_func_support
=no
14117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14119 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14120 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14121 if test x
"$pgac_cv_funcname_func_support" = xyes
; then
14123 cat >>confdefs.h
<<\_ACEOF
14124 #define HAVE_FUNCNAME__FUNC 1
14128 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14129 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14130 if test "${pgac_cv_funcname_function_support+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 cat >conftest.
$ac_ext <<_ACEOF
14136 cat confdefs.h
>>conftest.
$ac_ext
14137 cat >>conftest.
$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14143 printf("%s\n", __FUNCTION__);
14148 rm -f conftest.
$ac_objext
14149 if { (ac_try
="$ac_compile"
14150 case "(($ac_try" in
14151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_compile") 2>conftest.er1
14157 grep -v '^ *+' conftest.er1 >conftest.err
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest.$ac_objext; then
14165 pgac_cv_funcname_function_support=yes
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 pgac_cv_funcname_function_support=no
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14176 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14177 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_FUNCNAME__FUNCTION 1
14185 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14186 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14187 if test "${ac_cv_struct_tm+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <sys/types.h>
14203 int *p = &tm.tm_sec;
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14213 *) ac_try_echo
=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_compile") 2>conftest.er1
14218 grep -v '^ *+' conftest.er1
>conftest.err
14220 cat conftest.err
>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && {
14223 test -z "$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 } && test -s conftest.
$ac_objext; then
14226 ac_cv_struct_tm
=time.h
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.
$ac_ext >&5
14231 ac_cv_struct_tm
=sys
/time.h
14234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14236 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14237 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14238 if test $ac_cv_struct_tm = sys
/time.h
; then
14240 cat >>confdefs.h
<<\_ACEOF
14241 #define TM_IN_SYS_TIME 1
14246 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14247 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14248 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 cat >conftest.
$ac_ext <<_ACEOF
14254 cat confdefs.h
>>conftest.
$ac_ext
14255 cat >>conftest.
$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 #include <sys/types.h>
14258 #include <$ac_cv_struct_tm>
14264 static struct tm ac_aggr;
14265 if (ac_aggr.tm_zone)
14271 rm -f conftest.
$ac_objext
14272 if { (ac_try
="$ac_compile"
14273 case "(($ac_try" in
14274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14275 *) ac_try_echo=$ac_try;;
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278 (eval "$ac_compile") 2>conftest.er1
14280 grep -v '^ *+' conftest.er1 >conftest.err
14282 cat conftest.err >&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); } && {
14285 test -z "$ac_c_werror_flag" ||
14286 test ! -s conftest.err
14287 } && test -s conftest.$ac_objext; then
14288 ac_cv_member_struct_tm_tm_zone=yes
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 cat >conftest.$ac_ext <<_ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 #include <sys/types.h>
14300 #include <$ac_cv_struct_tm>
14306 static struct tm ac_aggr;
14307 if (sizeof ac_aggr.tm_zone)
14313 rm -f conftest.$ac_objext
14314 if { (ac_try="$ac_compile"
14315 case "(($ac_try" in
14316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14317 *) ac_try_echo
=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_compile") 2>conftest.er1
14322 grep -v '^ *+' conftest.er1
>conftest.err
14324 cat conftest.err
>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest.
$ac_objext; then
14330 ac_cv_member_struct_tm_tm_zone
=yes
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.
$ac_ext >&5
14335 ac_cv_member_struct_tm_tm_zone
=no
14338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14343 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14344 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14345 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14347 cat >>confdefs.h
<<_ACEOF
14348 #define HAVE_STRUCT_TM_TM_ZONE 1
14354 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14356 cat >>confdefs.h
<<\_ACEOF
14357 #define HAVE_TM_ZONE 1
14361 { echo "$as_me:$LINENO: checking for tzname" >&5
14362 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14363 if test "${ac_cv_var_tzname+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 cat >conftest.
$ac_ext <<_ACEOF
14369 cat confdefs.h
>>conftest.
$ac_ext
14370 cat >>conftest.
$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14373 #ifndef tzname /* For SGI. */
14374 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14385 rm -f conftest.
$ac_objext conftest
$ac_exeext
14386 if { (ac_try
="$ac_link"
14387 case "(($ac_try" in
14388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_link") 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && {
14399 test -z "$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14401 } && test -s conftest$ac_exeext &&
14402 $as_test_x conftest$ac_exeext; then
14403 ac_cv_var_tzname=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_var_tzname=no
14411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14412 conftest$ac_exeext conftest.$ac_ext
14414 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14415 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14416 if test $ac_cv_var_tzname = yes; then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_TZNAME 1
14424 { echo "$as_me:$LINENO: checking for union semun" >&5
14425 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14426 if test "${ac_cv_type_union_semun+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <sys/types.h>
14436 #include <sys/ipc.h>
14437 #include <sys/sem.h>
14439 typedef union semun ac__type_new_;
14443 if ((ac__type_new_ *) 0)
14445 if (sizeof (ac__type_new_))
14451 rm -f conftest.$ac_objext
14452 if { (ac_try="$ac_compile"
14453 case "(($ac_try" in
14454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14455 *) ac_try_echo
=$ac_try;;
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_compile") 2>conftest.er1
14460 grep -v '^ *+' conftest.er1
>conftest.err
14462 cat conftest.err
>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } && {
14465 test -z "$ac_c_werror_flag" ||
14466 test ! -s conftest.err
14467 } && test -s conftest.
$ac_objext; then
14468 ac_cv_type_union_semun
=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.
$ac_ext >&5
14473 ac_cv_type_union_semun
=no
14476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14479 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14480 if test $ac_cv_type_union_semun = yes; then
14482 cat >>confdefs.h
<<_ACEOF
14483 #define HAVE_UNION_SEMUN 1
14489 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14490 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14491 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 cat >conftest.
$ac_ext <<_ACEOF
14497 cat confdefs.h
>>conftest.
$ac_ext
14498 cat >>conftest.
$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 #include <sys/types.h>
14501 #ifdef HAVE_SYS_UN_H
14502 #include <sys/un.h>
14506 typedef struct sockaddr_un ac__type_new_;
14510 if ((ac__type_new_ *) 0)
14512 if (sizeof (ac__type_new_))
14518 rm -f conftest.
$ac_objext
14519 if { (ac_try
="$ac_compile"
14520 case "(($ac_try" in
14521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14522 *) ac_try_echo=$ac_try;;
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525 (eval "$ac_compile") 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } && {
14532 test -z "$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14534 } && test -s conftest.$ac_objext; then
14535 ac_cv_type_struct_sockaddr_un=yes
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_cv_type_struct_sockaddr_un=no
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14546 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14547 if test $ac_cv_type_struct_sockaddr_un = yes; then
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_STRUCT_SOCKADDR_UN 1
14554 cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_UNIX_SOCKETS 1
14560 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14561 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14562 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 #include <sys/types.h>
14572 #ifdef HAVE_SYS_SOCKET_H
14573 #include <sys/socket.h>
14577 typedef struct sockaddr_storage ac__type_new_;
14581 if ((ac__type_new_ *) 0)
14583 if (sizeof (ac__type_new_))
14589 rm -f conftest.$ac_objext
14590 if { (ac_try="$ac_compile"
14591 case "(($ac_try" in
14592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14593 *) ac_try_echo
=$ac_try;;
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_compile") 2>conftest.er1
14598 grep -v '^ *+' conftest.er1
>conftest.err
14600 cat conftest.err
>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest.
$ac_objext; then
14606 ac_cv_type_struct_sockaddr_storage
=yes
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.
$ac_ext >&5
14611 ac_cv_type_struct_sockaddr_storage
=no
14614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14617 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14618 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14620 cat >>confdefs.h
<<_ACEOF
14621 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14627 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14628 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14629 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 cat >conftest.
$ac_ext <<_ACEOF
14635 cat confdefs.h
>>conftest.
$ac_ext
14636 cat >>conftest.
$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 #include <sys/types.h>
14639 #ifdef HAVE_SYS_SOCKET_H
14640 #include <sys/socket.h>
14647 static struct sockaddr_storage ac_aggr;
14648 if (ac_aggr.ss_family)
14654 rm -f conftest.
$ac_objext
14655 if { (ac_try
="$ac_compile"
14656 case "(($ac_try" in
14657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_compile") 2>conftest.er1
14663 grep -v '^ *+' conftest.er1 >conftest.err
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } && {
14668 test -z "$ac_c_werror_flag" ||
14669 test ! -s conftest.err
14670 } && test -s conftest.$ac_objext; then
14671 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14676 cat >conftest.$ac_ext <<_ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 #include <sys/types.h>
14683 #ifdef HAVE_SYS_SOCKET_H
14684 #include <sys/socket.h>
14691 static struct sockaddr_storage ac_aggr;
14692 if (sizeof ac_aggr.ss_family)
14698 rm -f conftest.$ac_objext
14699 if { (ac_try="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14702 *) ac_try_echo
=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1
>conftest.err
14709 cat conftest.err
>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.
$ac_objext; then
14715 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.
$ac_ext >&5
14720 ac_cv_member_struct_sockaddr_storage_ss_family
=no
14723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14729 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14730 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14732 cat >>confdefs.h
<<_ACEOF
14733 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14738 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14739 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14740 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 cat >conftest.
$ac_ext <<_ACEOF
14746 cat confdefs.h
>>conftest.
$ac_ext
14747 cat >>conftest.
$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <sys/types.h>
14750 #ifdef HAVE_SYS_SOCKET_H
14751 #include <sys/socket.h>
14758 static struct sockaddr_storage ac_aggr;
14759 if (ac_aggr.__ss_family)
14765 rm -f conftest.
$ac_objext
14766 if { (ac_try
="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } && {
14779 test -z "$ac_c_werror_flag" ||
14780 test ! -s conftest.err
14781 } && test -s conftest.$ac_objext; then
14782 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 cat >conftest.$ac_ext <<_ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <sys/types.h>
14794 #ifdef HAVE_SYS_SOCKET_H
14795 #include <sys/socket.h>
14802 static struct sockaddr_storage ac_aggr;
14803 if (sizeof ac_aggr.__ss_family)
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14813 *) ac_try_echo
=$ac_try;;
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14818 grep -v '^ *+' conftest.er1
>conftest.err
14820 cat conftest.err
>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest.
$ac_objext; then
14826 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.
$ac_ext >&5
14831 ac_cv_member_struct_sockaddr_storage___ss_family
=no
14834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14840 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14841 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14843 cat >>confdefs.h
<<_ACEOF
14844 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14849 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14850 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14851 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 cat >conftest.
$ac_ext <<_ACEOF
14857 cat confdefs.h
>>conftest.
$ac_ext
14858 cat >>conftest.
$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 #include <sys/types.h>
14861 #ifdef HAVE_SYS_SOCKET_H
14862 #include <sys/socket.h>
14869 static struct sockaddr_storage ac_aggr;
14870 if (ac_aggr.ss_len)
14876 rm -f conftest.
$ac_objext
14877 if { (ac_try
="$ac_compile"
14878 case "(($ac_try" in
14879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_compile") 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } && {
14890 test -z "$ac_c_werror_flag" ||
14891 test ! -s conftest.err
14892 } && test -s conftest.$ac_objext; then
14893 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14895 echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <sys/types.h>
14905 #ifdef HAVE_SYS_SOCKET_H
14906 #include <sys/socket.h>
14913 static struct sockaddr_storage ac_aggr;
14914 if (sizeof ac_aggr.ss_len)
14920 rm -f conftest.$ac_objext
14921 if { (ac_try="$ac_compile"
14922 case "(($ac_try" in
14923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14924 *) ac_try_echo
=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_compile") 2>conftest.er1
14929 grep -v '^ *+' conftest.er1
>conftest.err
14931 cat conftest.err
>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 } && test -s conftest.
$ac_objext; then
14937 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.
$ac_ext >&5
14942 ac_cv_member_struct_sockaddr_storage_ss_len
=no
14945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14950 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14951 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14952 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14954 cat >>confdefs.h
<<_ACEOF
14955 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14960 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14961 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14962 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 cat >conftest.
$ac_ext <<_ACEOF
14968 cat confdefs.h
>>conftest.
$ac_ext
14969 cat >>conftest.
$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <sys/types.h>
14972 #ifdef HAVE_SYS_SOCKET_H
14973 #include <sys/socket.h>
14980 static struct sockaddr_storage ac_aggr;
14981 if (ac_aggr.__ss_len)
14987 rm -f conftest.
$ac_objext
14988 if { (ac_try
="$ac_compile"
14989 case "(($ac_try" in
14990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_compile") 2>conftest.er1
14996 grep -v '^ *+' conftest.er1 >conftest.err
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest.$ac_objext; then
15004 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <sys/types.h>
15016 #ifdef HAVE_SYS_SOCKET_H
15017 #include <sys/socket.h>
15024 static struct sockaddr_storage ac_aggr;
15025 if (sizeof ac_aggr.__ss_len)
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15035 *) ac_try_echo
=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_compile") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1
>conftest.err
15042 cat conftest.err
>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_c_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest.
$ac_objext; then
15048 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.
$ac_ext >&5
15053 ac_cv_member_struct_sockaddr_storage___ss_len
=no
15056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15061 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15062 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15063 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
15065 cat >>confdefs.h
<<_ACEOF
15066 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15071 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15072 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
15073 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 cat >conftest.
$ac_ext <<_ACEOF
15079 cat confdefs.h
>>conftest.
$ac_ext
15080 cat >>conftest.
$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15082 #include <sys/types.h>
15083 #ifdef HAVE_SYS_SOCKET_H
15084 #include <sys/socket.h>
15091 static struct sockaddr ac_aggr;
15092 if (ac_aggr.sa_len)
15098 rm -f conftest.
$ac_objext
15099 if { (ac_try
="$ac_compile"
15100 case "(($ac_try" in
15101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_compile") 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && {
15112 test -z "$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 } && test -s conftest.$ac_objext; then
15115 ac_cv_member_struct_sockaddr_sa_len=yes
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 #include <sys/types.h>
15127 #ifdef HAVE_SYS_SOCKET_H
15128 #include <sys/socket.h>
15135 static struct sockaddr ac_aggr;
15136 if (sizeof ac_aggr.sa_len)
15142 rm -f conftest.$ac_objext
15143 if { (ac_try="$ac_compile"
15144 case "(($ac_try" in
15145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15146 *) ac_try_echo
=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_compile") 2>conftest.er1
15151 grep -v '^ *+' conftest.er1
>conftest.err
15153 cat conftest.err
>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest.
$ac_objext; then
15159 ac_cv_member_struct_sockaddr_sa_len
=yes
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.
$ac_ext >&5
15164 ac_cv_member_struct_sockaddr_sa_len
=no
15167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15173 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15174 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15176 cat >>confdefs.h
<<_ACEOF
15177 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15183 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15184 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15185 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 cat >conftest.
$ac_ext <<_ACEOF
15191 cat confdefs.h
>>conftest.
$ac_ext
15192 cat >>conftest.
$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 #include <sys/types.h>
15195 #include <sys/socket.h>
15199 typedef struct addrinfo ac__type_new_;
15203 if ((ac__type_new_ *) 0)
15205 if (sizeof (ac__type_new_))
15211 rm -f conftest.
$ac_objext
15212 if { (ac_try
="$ac_compile"
15213 case "(($ac_try" in
15214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_compile") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1 >conftest.err
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest.$ac_objext; then
15228 ac_cv_type_struct_addrinfo=yes
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 ac_cv_type_struct_addrinfo=no
15236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15239 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15240 if test $ac_cv_type_struct_addrinfo = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define HAVE_STRUCT_ADDRINFO 1
15250 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15251 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15252 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <sys/param.h>
15262 #include <sys/types.h>
15263 #include <sys/socket.h>
15264 #include <sys/ucred.h>
15266 typedef struct cmsgcred ac__type_new_;
15270 if ((ac__type_new_ *) 0)
15272 if (sizeof (ac__type_new_))
15278 rm -f conftest.$ac_objext
15279 if { (ac_try="$ac_compile"
15280 case "(($ac_try" in
15281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15282 *) ac_try_echo
=$ac_try;;
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15287 grep -v '^ *+' conftest.er1
>conftest.err
15289 cat conftest.err
>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } && {
15292 test -z "$ac_c_werror_flag" ||
15293 test ! -s conftest.err
15294 } && test -s conftest.
$ac_objext; then
15295 ac_cv_type_struct_cmsgcred
=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.
$ac_ext >&5
15300 ac_cv_type_struct_cmsgcred
=no
15303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15305 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15306 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15307 if test $ac_cv_type_struct_cmsgcred = yes; then
15309 cat >>confdefs.h
<<_ACEOF
15310 #define HAVE_STRUCT_CMSGCRED 1
15315 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15316 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15317 if test "${ac_cv_type_struct_fcred+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 cat >conftest.
$ac_ext <<_ACEOF
15323 cat confdefs.h
>>conftest.
$ac_ext
15324 cat >>conftest.
$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 #include <sys/param.h>
15327 #include <sys/types.h>
15328 #include <sys/socket.h>
15329 #include <sys/ucred.h>
15331 typedef struct fcred ac__type_new_;
15335 if ((ac__type_new_ *) 0)
15337 if (sizeof (ac__type_new_))
15343 rm -f conftest.
$ac_objext
15344 if { (ac_try
="$ac_compile"
15345 case "(($ac_try" in
15346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_compile") 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && {
15357 test -z "$ac_c_werror_flag" ||
15358 test ! -s conftest.err
15359 } && test -s conftest.$ac_objext; then
15360 ac_cv_type_struct_fcred=yes
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_cv_type_struct_fcred=no
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15371 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15372 if test $ac_cv_type_struct_fcred = yes; then
15374 cat >>confdefs.h <<_ACEOF
15375 #define HAVE_STRUCT_FCRED 1
15380 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15381 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15382 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 #include <sys/param.h>
15392 #include <sys/types.h>
15393 #include <sys/socket.h>
15394 #include <sys/ucred.h>
15396 typedef struct sockcred ac__type_new_;
15400 if ((ac__type_new_ *) 0)
15402 if (sizeof (ac__type_new_))
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15412 *) ac_try_echo
=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_compile") 2>conftest.er1
15417 grep -v '^ *+' conftest.er1
>conftest.err
15419 cat conftest.err
>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest.
$ac_objext; then
15425 ac_cv_type_struct_sockcred
=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.
$ac_ext >&5
15430 ac_cv_type_struct_sockcred
=no
15433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15436 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15437 if test $ac_cv_type_struct_sockcred = yes; then
15439 cat >>confdefs.h
<<_ACEOF
15440 #define HAVE_STRUCT_SOCKCRED 1
15447 { echo "$as_me:$LINENO: checking for struct option" >&5
15448 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15449 if test "${ac_cv_type_struct_option+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 cat >conftest.
$ac_ext <<_ACEOF
15455 cat confdefs.h
>>conftest.
$ac_ext
15456 cat >>conftest.
$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 #ifdef HAVE_GETOPT_H
15459 #include <getopt.h>
15462 typedef struct option ac__type_new_;
15466 if ((ac__type_new_ *) 0)
15468 if (sizeof (ac__type_new_))
15474 rm -f conftest.
$ac_objext
15475 if { (ac_try
="$ac_compile"
15476 case "(($ac_try" in
15477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15481 (eval "$ac_compile") 2>conftest.er1
15483 grep -v '^ *+' conftest.er1 >conftest.err
15485 cat conftest.err >&5
15486 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_type_struct_option=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_type_struct_option=no
15499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15501 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15502 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15503 if test $ac_cv_type_struct_option = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define HAVE_STRUCT_OPTION 1
15513 if test "$with_zlib" = yes; then
15514 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15515 # did not). While we could work around the lack of z_streamp, it
15516 # seems unwise to encourage people to use such old zlib versions...
15517 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15518 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15519 if test "${ac_cv_type_z_streamp+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15530 typedef z_streamp ac__type_new_;
15534 if ((ac__type_new_ *) 0)
15536 if (sizeof (ac__type_new_))
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15546 *) ac_try_echo
=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_compile") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1
>conftest.err
15553 cat conftest.err
>&5
15554 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_type_z_streamp
=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.
$ac_ext >&5
15564 ac_cv_type_z_streamp
=no
15567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15570 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15571 if test $ac_cv_type_z_streamp = yes; then
15574 { { echo "$as_me:$LINENO: error: zlib version is too old
15575 Use --without-zlib to disable zlib support." >&5
15576 echo "$as_me: error: zlib version is too old
15577 Use --without-zlib to disable zlib support." >&2;}
15578 { (exit 1); exit 1; }; }
15583 if test "$with_krb5" = yes; then
15584 # Check for differences between MIT and Heimdal (KTH) releases
15585 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15586 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15587 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 cat >conftest.
$ac_ext <<_ACEOF
15593 cat confdefs.h
>>conftest.
$ac_ext
15594 cat >>conftest.
$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15601 static krb5_ticket ac_aggr;
15602 if (ac_aggr.enc_part2)
15608 rm -f conftest.
$ac_objext
15609 if { (ac_try
="$ac_compile"
15610 case "(($ac_try" in
15611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_compile") 2>conftest.er1
15617 grep -v '^ *+' conftest.er1 >conftest.err
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest.$ac_objext; then
15625 ac_cv_member_krb5_ticket_enc_part2=yes
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15641 static krb5_ticket ac_aggr;
15642 if (sizeof ac_aggr.enc_part2)
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15652 *) ac_try_echo
=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_compile") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1
>conftest.err
15659 cat conftest.err
>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest.
$ac_objext; then
15665 ac_cv_member_krb5_ticket_enc_part2
=yes
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.
$ac_ext >&5
15670 ac_cv_member_krb5_ticket_enc_part2
=no
15673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15678 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15679 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15680 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15682 cat >>confdefs.h
<<_ACEOF
15683 #define HAVE_KRB5_TICKET_ENC_PART2 1
15688 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15689 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15690 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 cat >conftest.
$ac_ext <<_ACEOF
15696 cat confdefs.h
>>conftest.
$ac_ext
15697 cat >>conftest.
$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15704 static krb5_ticket ac_aggr;
15705 if (ac_aggr.client)
15711 rm -f conftest.
$ac_objext
15712 if { (ac_try
="$ac_compile"
15713 case "(($ac_try" in
15714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_compile") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest.$ac_objext; then
15728 ac_cv_member_krb5_ticket_client=yes
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15744 static krb5_ticket ac_aggr;
15745 if (sizeof ac_aggr.client)
15751 rm -f conftest.$ac_objext
15752 if { (ac_try="$ac_compile"
15753 case "(($ac_try" in
15754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15755 *) ac_try_echo
=$ac_try;;
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_compile") 2>conftest.er1
15760 grep -v '^ *+' conftest.er1
>conftest.err
15762 cat conftest.err
>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } && {
15765 test -z "$ac_c_werror_flag" ||
15766 test ! -s conftest.err
15767 } && test -s conftest.
$ac_objext; then
15768 ac_cv_member_krb5_ticket_client
=yes
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.
$ac_ext >&5
15773 ac_cv_member_krb5_ticket_client
=no
15776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15781 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15782 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15783 if test $ac_cv_member_krb5_ticket_client = yes; then
15785 cat >>confdefs.h
<<_ACEOF
15786 #define HAVE_KRB5_TICKET_CLIENT 1
15791 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15792 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15793 { (exit 1); exit 1; }; }
15798 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15799 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15800 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 cat >conftest.
$ac_ext <<_ACEOF
15806 cat confdefs.h
>>conftest.
$ac_ext
15807 cat >>conftest.
$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15814 static krb5_error ac_aggr;
15815 if (ac_aggr.text.data)
15821 rm -f conftest.
$ac_objext
15822 if { (ac_try
="$ac_compile"
15823 case "(($ac_try" in
15824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } && {
15835 test -z "$ac_c_werror_flag" ||
15836 test ! -s conftest.err
15837 } && test -s conftest.$ac_objext; then
15838 ac_cv_member_krb5_error_text_data=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15854 static krb5_error ac_aggr;
15855 if (sizeof ac_aggr.text.data)
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15865 *) ac_try_echo
=$ac_try;;
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15870 grep -v '^ *+' conftest.er1
>conftest.err
15872 cat conftest.err
>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest.
$ac_objext; then
15878 ac_cv_member_krb5_error_text_data
=yes
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.
$ac_ext >&5
15883 ac_cv_member_krb5_error_text_data
=no
15886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15891 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15892 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15893 if test $ac_cv_member_krb5_error_text_data = yes; then
15895 cat >>confdefs.h
<<_ACEOF
15896 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15901 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15902 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15903 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 cat >conftest.
$ac_ext <<_ACEOF
15909 cat confdefs.h
>>conftest.
$ac_ext
15910 cat >>conftest.
$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15917 static krb5_error ac_aggr;
15918 if (ac_aggr.e_data)
15924 rm -f conftest.
$ac_objext
15925 if { (ac_try
="$ac_compile"
15926 case "(($ac_try" in
15927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_compile") 2>conftest.er1
15933 grep -v '^ *+' conftest.er1 >conftest.err
15935 cat conftest.err >&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest.$ac_objext; then
15941 ac_cv_member_krb5_error_e_data=yes
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 cat >conftest.$ac_ext <<_ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15957 static krb5_error ac_aggr;
15958 if (sizeof ac_aggr.e_data)
15964 rm -f conftest.$ac_objext
15965 if { (ac_try="$ac_compile"
15966 case "(($ac_try" in
15967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15968 *) ac_try_echo
=$ac_try;;
15970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_compile") 2>conftest.er1
15973 grep -v '^ *+' conftest.er1
>conftest.err
15975 cat conftest.err
>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
15980 } && test -s conftest.
$ac_objext; then
15981 ac_cv_member_krb5_error_e_data
=yes
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.
$ac_ext >&5
15986 ac_cv_member_krb5_error_e_data
=no
15989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15995 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15996 if test $ac_cv_member_krb5_error_e_data = yes; then
15998 cat >>confdefs.h
<<_ACEOF
15999 #define HAVE_KRB5_ERROR_E_DATA 1
16004 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16005 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16006 { (exit 1); exit 1; }; }
16012 # Win32 requires headers to be loaded for __stdcall, so can't use
16013 # AC_CHECK_FUNCS here.
16014 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16015 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
16016 cat >conftest.
$ac_ext <<_ACEOF
16019 cat confdefs.h
>>conftest.
$ac_ext
16020 cat >>conftest.
$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16026 krb5_free_unparsed_name(NULL,NULL);
16031 rm -f conftest.
$ac_objext conftest
$ac_exeext
16032 if { (ac_try
="$ac_link"
16033 case "(($ac_try" in
16034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_link") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 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_exeext &&
16048 $as_test_x conftest$ac_exeext; then
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
16054 { echo "$as_me:$LINENO: result: yes" >&5
16055 echo "${ECHO_T}yes" >&6; }
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 { echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6; }
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065 conftest$ac_exeext conftest.$ac_ext
16070 ## Functions, global variables
16073 { echo "$as_me:$LINENO: checking for int timezone" >&5
16074 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
16075 if test "${pgac_cv_var_int_timezone+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16090 res = timezone / 60;
16092 res = _timezone / 60;
16098 rm -f conftest.$ac_objext conftest$ac_exeext
16099 if { (ac_try="$ac_link"
16100 case "(($ac_try" in
16101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16102 *) ac_try_echo
=$ac_try;;
16104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16105 (eval "$ac_link") 2>conftest.er1
16107 grep -v '^ *+' conftest.er1
>conftest.err
16109 cat conftest.err
>&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } && {
16112 test -z "$ac_c_werror_flag" ||
16113 test ! -s conftest.err
16114 } && test -s conftest
$ac_exeext &&
16115 $as_test_x conftest
$ac_exeext; then
16116 pgac_cv_var_int_timezone
=yes
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.
$ac_ext >&5
16121 pgac_cv_var_int_timezone
=no
16124 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16125 conftest
$ac_exeext conftest.
$ac_ext
16127 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16128 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16129 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
16131 cat >>confdefs.h
<<\_ACEOF
16132 #define HAVE_INT_TIMEZONE
16136 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16137 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16138 if test "${ac_cv_func_accept_return+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 if test "${ac_cv_func_accept_arg1+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 if test "${ac_cv_func_accept_arg2+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 if test "${ac_cv_func_accept_arg3+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 for ac_cv_func_accept_return
in 'int' 'unsigned int PASCAL'; do
16151 for ac_cv_func_accept_arg1
in 'int' 'unsigned int'; do
16152 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16153 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16154 cat >conftest.
$ac_ext <<_ACEOF
16157 cat confdefs.h
>>conftest.
$ac_ext
16158 cat >>conftest.
$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 #ifdef HAVE_SYS_TYPES_H
16161 #include <sys/types.h>
16163 #ifdef HAVE_SYS_SOCKET_H
16164 #include <sys/socket.h>
16166 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16175 rm -f conftest.
$ac_objext
16176 if { (ac_try
="$ac_compile"
16177 case "(($ac_try" in
16178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16179 *) ac_try_echo=$ac_try;;
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182 (eval "$ac_compile") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest.$ac_objext; then
16192 ac_not_found=no; break 4
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205 if test "$ac_not_found" = yes; then
16206 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16207 echo "$as_me: error: could not determine argument types" >&2;}
16208 { (exit 1); exit 1; }; }
16210 if test "$ac_cv_func_accept_arg3" = "void"; then
16211 ac_cv_func_accept_arg3=int
16221 { 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
16222 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16224 cat >>confdefs.h <<_ACEOF
16225 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16229 cat >>confdefs.h <<_ACEOF
16230 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16234 cat >>confdefs.h <<_ACEOF
16235 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16239 cat >>confdefs.h <<_ACEOF
16240 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16244 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16245 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16246 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <sys/time.h>
16259 struct timeval *tp;
16260 struct timezone *tzp;
16261 gettimeofday(tp,tzp);
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16270 *) ac_try_echo
=$ac_try;;
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_compile") 2>conftest.er1
16275 grep -v '^ *+' conftest.er1
>conftest.err
16277 cat conftest.err
>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && {
16280 test -z "$ac_c_werror_flag" ||
16281 test ! -s conftest.err
16282 } && test -s conftest.
$ac_objext; then
16283 pgac_cv_func_gettimeofday_1arg
=no
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.
$ac_ext >&5
16288 pgac_cv_func_gettimeofday_1arg
=yes
16291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16293 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16294 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16295 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
16297 cat >>confdefs.h
<<\_ACEOF
16298 #define GETTIMEOFDAY_1ARG
16327 for ac_func
in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll posix_fadvise pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
16329 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16332 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 cat >conftest.
$ac_ext <<_ACEOF
16338 cat confdefs.h
>>conftest.
$ac_ext
16339 cat >>conftest.
$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16343 #define $ac_func innocuous_$ac_func
16345 /* System header to define __stub macros and hopefully few prototypes,
16346 which can conflict with char $ac_func (); below.
16347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16348 <limits.h> exists even on freestanding compilers. */
16351 # include <limits.h>
16353 # include <assert.h>
16358 /* Override any GCC internal prototype to avoid an error.
16359 Use char because int might match the return type of a GCC
16360 builtin and then its argument prototype would still apply. */
16365 /* The GNU C library defines this for functions which it implements
16366 to always fail with ENOSYS. Some functions are actually named
16367 something starting with __ and the normal name is an alias. */
16368 #if defined __stub_$ac_func || defined __stub___$ac_func
16375 return $ac_func ();
16380 rm -f conftest.
$ac_objext conftest
$ac_exeext
16381 if { (ac_try
="$ac_link"
16382 case "(($ac_try" in
16383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_link") 2>conftest.er1
16389 grep -v '^ *+' conftest.er1 >conftest.err
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && {
16394 test -z "$ac_c_werror_flag" ||
16395 test ! -s conftest.err
16396 } && test -s conftest$ac_exeext &&
16397 $as_test_x conftest$ac_exeext; then
16398 eval "$as_ac_var=yes"
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 eval "$as_ac_var=no"
16406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16407 conftest$ac_exeext conftest.$ac_ext
16409 ac_res=`eval echo '${'$as_ac_var'}'`
16410 { echo "$as_me:$LINENO: result: $ac_res" >&5
16411 echo "${ECHO_T}$ac_res" >&6; }
16412 if test `eval echo '${'$as_ac_var'}'` = yes; then
16413 cat >>confdefs.h <<_ACEOF
16414 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16421 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16422 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16423 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #include <unistd.h>
16445 rm -f conftest.$ac_objext
16446 if { (ac_try="$ac_compile"
16447 case "(($ac_try" in
16448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16449 *) ac_try_echo
=$ac_try;;
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_compile") 2>conftest.er1
16454 grep -v '^ *+' conftest.er1
>conftest.err
16456 cat conftest.err
>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } && {
16459 test -z "$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 } && test -s conftest.
$ac_objext; then
16462 ac_cv_have_decl_fdatasync
=yes
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.
$ac_ext >&5
16467 ac_cv_have_decl_fdatasync
=no
16470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16472 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16473 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16474 if test $ac_cv_have_decl_fdatasync = yes; then
16476 cat >>confdefs.h
<<_ACEOF
16477 #define HAVE_DECL_FDATASYNC 1
16482 cat >>confdefs.h
<<_ACEOF
16483 #define HAVE_DECL_FDATASYNC 0
16490 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16491 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16492 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 cat >conftest.
$ac_ext <<_ACEOF
16498 cat confdefs.h
>>conftest.
$ac_ext
16499 cat >>conftest.
$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16506 #ifndef posix_fadvise
16507 (void) posix_fadvise;
16514 rm -f conftest.
$ac_objext
16515 if { (ac_try
="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest.$ac_objext; then
16531 ac_cv_have_decl_posix_fadvise=yes
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 ac_cv_have_decl_posix_fadvise=no
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16542 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16543 if test $ac_cv_have_decl_posix_fadvise = yes; then
16545 cat >>confdefs.h <<_ACEOF
16546 #define HAVE_DECL_POSIX_FADVISE 1
16551 cat >>confdefs.h <<_ACEOF
16552 #define HAVE_DECL_POSIX_FADVISE 0
16559 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16560 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16561 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 $ac_includes_default
16582 rm -f conftest.$ac_objext
16583 if { (ac_try="$ac_compile"
16584 case "(($ac_try" in
16585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16586 *) ac_try_echo
=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_compile") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1
>conftest.err
16593 cat conftest.err
>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest.
$ac_objext; then
16599 ac_cv_have_decl_strlcat
=yes
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.
$ac_ext >&5
16604 ac_cv_have_decl_strlcat
=no
16607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16610 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16611 if test $ac_cv_have_decl_strlcat = yes; then
16613 cat >>confdefs.h
<<_ACEOF
16614 #define HAVE_DECL_STRLCAT 1
16619 cat >>confdefs.h
<<_ACEOF
16620 #define HAVE_DECL_STRLCAT 0
16625 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16626 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16627 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 cat >conftest.
$ac_ext <<_ACEOF
16633 cat confdefs.h
>>conftest.
$ac_ext
16634 cat >>conftest.
$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 $ac_includes_default
16648 rm -f conftest.
$ac_objext
16649 if { (ac_try
="$ac_compile"
16650 case "(($ac_try" in
16651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_compile") 2>conftest.er1
16657 grep -v '^ *+' conftest.er1 >conftest.err
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } && {
16662 test -z "$ac_c_werror_flag" ||
16663 test ! -s conftest.err
16664 } && test -s conftest.$ac_objext; then
16665 ac_cv_have_decl_strlcpy=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_cv_have_decl_strlcpy=no
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16676 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16677 if test $ac_cv_have_decl_strlcpy = yes; then
16679 cat >>confdefs.h <<_ACEOF
16680 #define HAVE_DECL_STRLCPY 1
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_DECL_STRLCPY 0
16693 # This is probably only present on Darwin, but may as well check always
16694 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16695 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16696 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16710 #ifndef F_FULLFSYNC
16711 (void) F_FULLFSYNC;
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16722 *) ac_try_echo
=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1
>conftest.err
16729 cat conftest.err
>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest.
$ac_objext; then
16735 ac_cv_have_decl_F_FULLFSYNC
=yes
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.
$ac_ext >&5
16740 ac_cv_have_decl_F_FULLFSYNC
=no
16743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16745 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16746 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16747 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16749 cat >>confdefs.h
<<_ACEOF
16750 #define HAVE_DECL_F_FULLFSYNC 1
16755 cat >>confdefs.h
<<_ACEOF
16756 #define HAVE_DECL_F_FULLFSYNC 0
16765 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16766 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16767 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 cat >conftest.
$ac_ext <<_ACEOF
16773 cat confdefs.h
>>conftest.
$ac_ext
16774 cat >>conftest.
$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 $ac_includes_default
16777 #include <netinet/in.h>
16779 typedef struct sockaddr_in6 ac__type_new_;
16783 if ((ac__type_new_ *) 0)
16785 if (sizeof (ac__type_new_))
16791 rm -f conftest.
$ac_objext
16792 if { (ac_try
="$ac_compile"
16793 case "(($ac_try" in
16794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_compile") 2>conftest.er1
16800 grep -v '^ *+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest.$ac_objext; then
16808 ac_cv_type_struct_sockaddr_in6=yes
16810 echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ac_cv_type_struct_sockaddr_in6=no
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16819 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16820 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16822 cat >>confdefs.h <<\_ACEOF
16823 #define HAVE_IPV6 1
16831 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16832 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16833 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 cat >conftest.$ac_ext <<_ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 #include <machine/vmparam.h>
16843 #include <sys/exec.h>
16848 PS_STRINGS->ps_nargvstr = 1;
16849 PS_STRINGS->ps_argvstr = "foo";
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16858 *) ac_try_echo
=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1
>conftest.err
16865 cat conftest.err
>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest
$ac_exeext &&
16871 $as_test_x conftest
$ac_exeext; then
16872 pgac_cv_var_PS_STRINGS
=yes
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.
$ac_ext >&5
16877 pgac_cv_var_PS_STRINGS
=no
16880 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16881 conftest
$ac_exeext conftest.
$ac_ext
16883 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16884 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16885 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16887 cat >>confdefs.h
<<\_ACEOF
16888 #define HAVE_PS_STRINGS
16894 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16895 # is missing. Yes, there are machines that have only one. We may
16896 # also decide to use snprintf.c if snprintf() is present but does not
16897 # have all the features we need --- see below.
16899 if test "$PORTNAME" = "win32"; then
16900 # Win32 gets snprintf.c built unconditionally.
16902 # To properly translate all NLS languages strings, we must support the
16903 # *printf() %$ format, which allows *printf() arguments to be selected
16904 # by position in the translated string.
16906 # libintl versions < 0.13 use the native *printf() functions, and Win32
16907 # *printf() doesn't understand %$, so we must use our /port versions,
16908 # which do understand %$. libintl versions >= 0.13 include their own
16909 # *printf versions on Win32. The libintl 0.13 release note text is:
16911 # C format strings with positions, as they arise when a translator
16912 # needs to reorder a sentence, are now supported on all platforms.
16913 # On those few platforms (NetBSD and Woe32) for which the native
16914 # printf()/fprintf()/... functions don't support such format
16915 # strings, replacements are provided through <libintl.h>.
16917 # We could use libintl >= 0.13's *printf() if we were sure that we had
16918 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16919 # to guarantee that, it is best to just use our own, so we are sure to
16920 # get %$ support. In include/port.h we disable the *printf() macros
16921 # that might have been defined by libintl.
16923 # We do this unconditionally whether NLS is used or not so we are sure
16924 # that all Win32 libraries and binaries behave the same.
16925 pgac_need_repl_snprintf
=yes
16927 pgac_need_repl_snprintf
=no
16929 for ac_func
in snprintf
16931 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16934 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 cat >conftest.
$ac_ext <<_ACEOF
16940 cat confdefs.h
>>conftest.
$ac_ext
16941 cat >>conftest.
$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16945 #define $ac_func innocuous_$ac_func
16947 /* System header to define __stub macros and hopefully few prototypes,
16948 which can conflict with char $ac_func (); below.
16949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950 <limits.h> exists even on freestanding compilers. */
16953 # include <limits.h>
16955 # include <assert.h>
16960 /* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
16967 /* The GNU C library defines this for functions which it implements
16968 to always fail with ENOSYS. Some functions are actually named
16969 something starting with __ and the normal name is an alias. */
16970 #if defined __stub_$ac_func || defined __stub___$ac_func
16977 return $ac_func ();
16982 rm -f conftest.
$ac_objext conftest
$ac_exeext
16983 if { (ac_try
="$ac_link"
16984 case "(($ac_try" in
16985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } && {
16996 test -z "$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16998 } && test -s conftest$ac_exeext &&
16999 $as_test_x conftest$ac_exeext; then
17000 eval "$as_ac_var=yes"
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 eval "$as_ac_var=no"
17008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17009 conftest$ac_exeext conftest.$ac_ext
17011 ac_res=`eval echo '${'$as_ac_var'}'`
17012 { echo "$as_me:$LINENO: result: $ac_res" >&5
17013 echo "${ECHO_T}$ac_res" >&6; }
17014 if test `eval echo '${'$as_ac_var'}'` = yes; then
17015 cat >>confdefs.h <<_ACEOF
17016 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17020 pgac_need_repl_snprintf=yes
17025 for ac_func in vsnprintf
17027 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 cat >conftest.$ac_ext <<_ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17041 #define $ac_func innocuous_$ac_func
17043 /* System header to define __stub macros and hopefully few prototypes,
17044 which can conflict with char $ac_func (); below.
17045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17046 <limits.h> exists even on freestanding compilers. */
17049 # include <limits.h>
17051 # include <assert.h>
17056 /* Override any GCC internal prototype to avoid an error.
17057 Use char because int might match the return type of a GCC
17058 builtin and then its argument prototype would still apply. */
17063 /* The GNU C library defines this for functions which it implements
17064 to always fail with ENOSYS. Some functions are actually named
17065 something starting with __ and the normal name is an alias. */
17066 #if defined __stub_$ac_func || defined __stub___$ac_func
17073 return $ac_func ();
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (ac_try="$ac_link"
17080 case "(($ac_try" in
17081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17082 *) ac_try_echo
=$ac_try;;
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_link") 2>conftest.er1
17087 grep -v '^ *+' conftest.er1
>conftest.err
17089 cat conftest.err
>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } && {
17092 test -z "$ac_c_werror_flag" ||
17093 test ! -s conftest.err
17094 } && test -s conftest
$ac_exeext &&
17095 $as_test_x conftest
$ac_exeext; then
17096 eval "$as_ac_var=yes"
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.
$ac_ext >&5
17101 eval "$as_ac_var=no"
17104 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17105 conftest
$ac_exeext conftest.
$ac_ext
17107 ac_res
=`eval echo '${'$as_ac_var'}'`
17108 { echo "$as_me:$LINENO: result: $ac_res" >&5
17109 echo "${ECHO_T}$ac_res" >&6; }
17110 if test `eval echo '${'$as_ac_var'}'` = yes; then
17111 cat >>confdefs.h
<<_ACEOF
17112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17116 pgac_need_repl_snprintf
=yes
17123 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17124 # include/c.h will provide declarations. Note this is a separate test
17125 # from whether the functions exist in the C library --- there are
17126 # systems that have the functions but don't bother to declare them :-(
17128 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17129 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17130 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 cat >conftest.
$ac_ext <<_ACEOF
17136 cat confdefs.h
>>conftest.
$ac_ext
17137 cat >>conftest.
$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 $ac_includes_default
17151 rm -f conftest.
$ac_objext
17152 if { (ac_try
="$ac_compile"
17153 case "(($ac_try" in
17154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_compile") 2>conftest.er1
17160 grep -v '^ *+' conftest.er1 >conftest.err
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } && {
17165 test -z "$ac_c_werror_flag" ||
17166 test ! -s conftest.err
17167 } && test -s conftest.$ac_objext; then
17168 ac_cv_have_decl_snprintf=yes
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 ac_cv_have_decl_snprintf=no
17176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17178 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17179 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17180 if test $ac_cv_have_decl_snprintf = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define HAVE_DECL_SNPRINTF 1
17188 cat >>confdefs.h <<_ACEOF
17189 #define HAVE_DECL_SNPRINTF 0
17194 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17195 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17196 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17217 rm -f conftest.$ac_objext
17218 if { (ac_try="$ac_compile"
17219 case "(($ac_try" in
17220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17221 *) ac_try_echo
=$ac_try;;
17223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_compile") 2>conftest.er1
17226 grep -v '^ *+' conftest.er1
>conftest.err
17228 cat conftest.err
>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && {
17231 test -z "$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 } && test -s conftest.
$ac_objext; then
17234 ac_cv_have_decl_vsnprintf
=yes
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.
$ac_ext >&5
17239 ac_cv_have_decl_vsnprintf
=no
17242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17244 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17245 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17246 if test $ac_cv_have_decl_vsnprintf = yes; then
17248 cat >>confdefs.h
<<_ACEOF
17249 #define HAVE_DECL_VSNPRINTF 1
17254 cat >>confdefs.h
<<_ACEOF
17255 #define HAVE_DECL_VSNPRINTF 0
17264 { echo "$as_me:$LINENO: checking for isinf" >&5
17265 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17266 if test "${ac_cv_func_isinf+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 cat >conftest.
$ac_ext <<_ACEOF
17272 cat confdefs.h
>>conftest.
$ac_ext
17273 cat >>conftest.
$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17277 double glob_double;
17282 return isinf(glob_double) ? 0 : 1;
17287 rm -f conftest.
$ac_objext conftest
$ac_exeext
17288 if { (ac_try
="$ac_link"
17289 case "(($ac_try" in
17290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294 (eval "$ac_link") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext &&
17304 $as_test_x conftest$ac_exeext; then
17305 ac_cv_func_isinf=yes
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 ac_cv_func_isinf=no
17313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17314 conftest$ac_exeext conftest.$ac_ext
17316 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17317 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17319 if test $ac_cv_func_isinf = yes ; then
17321 cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_ISINF 1
17326 case " $LIBOBJS " in
17327 *" isinf.$ac_objext "* ) ;;
17328 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17332 # Look for a way to implement a substitute for isinf()
17337 for ac_func in fpclass fp_class fp_class_d class
17339 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17340 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 cat >conftest.$ac_ext <<_ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17353 #define $ac_func innocuous_$ac_func
17355 /* System header to define __stub macros and hopefully few prototypes,
17356 which can conflict with char $ac_func (); below.
17357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17358 <limits.h> exists even on freestanding compilers. */
17361 # include <limits.h>
17363 # include <assert.h>
17368 /* Override any GCC internal prototype to avoid an error.
17369 Use char because int might match the return type of a GCC
17370 builtin and then its argument prototype would still apply. */
17375 /* The GNU C library defines this for functions which it implements
17376 to always fail with ENOSYS. Some functions are actually named
17377 something starting with __ and the normal name is an alias. */
17378 #if defined __stub_$ac_func || defined __stub___$ac_func
17385 return $ac_func ();
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17394 *) ac_try_echo
=$ac_try;;
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_link") 2>conftest.er1
17399 grep -v '^ *+' conftest.er1
>conftest.err
17401 cat conftest.err
>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest
$ac_exeext &&
17407 $as_test_x conftest
$ac_exeext; then
17408 eval "$as_ac_var=yes"
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.
$ac_ext >&5
17413 eval "$as_ac_var=no"
17416 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17417 conftest
$ac_exeext conftest.
$ac_ext
17419 ac_res
=`eval echo '${'$as_ac_var'}'`
17420 { echo "$as_me:$LINENO: result: $ac_res" >&5
17421 echo "${ECHO_T}$ac_res" >&6; }
17422 if test `eval echo '${'$as_ac_var'}'` = yes; then
17423 cat >>confdefs.h
<<_ACEOF
17424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17432 # Some versions of libedit contain strlcpy(); so disregard that library while
17433 # checking for these standard libc functions.
17434 pgac_save_LIBS
="$LIBS"
17435 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17451 for ac_func
in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17453 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17454 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17456 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17459 cat >conftest.
$ac_ext <<_ACEOF
17462 cat confdefs.h
>>conftest.
$ac_ext
17463 cat >>conftest.
$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17467 #define $ac_func innocuous_$ac_func
17469 /* System header to define __stub macros and hopefully few prototypes,
17470 which can conflict with char $ac_func (); below.
17471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17472 <limits.h> exists even on freestanding compilers. */
17475 # include <limits.h>
17477 # include <assert.h>
17482 /* Override any GCC internal prototype to avoid an error.
17483 Use char because int might match the return type of a GCC
17484 builtin and then its argument prototype would still apply. */
17489 /* The GNU C library defines this for functions which it implements
17490 to always fail with ENOSYS. Some functions are actually named
17491 something starting with __ and the normal name is an alias. */
17492 #if defined __stub_$ac_func || defined __stub___$ac_func
17499 return $ac_func ();
17504 rm -f conftest.
$ac_objext conftest
$ac_exeext
17505 if { (ac_try
="$ac_link"
17506 case "(($ac_try" in
17507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_link") 2>conftest.er1
17513 grep -v '^ *+' conftest.er1 >conftest.err
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } && {
17518 test -z "$ac_c_werror_flag" ||
17519 test ! -s conftest.err
17520 } && test -s conftest$ac_exeext &&
17521 $as_test_x conftest$ac_exeext; then
17522 eval "$as_ac_var=yes"
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 eval "$as_ac_var=no"
17530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17531 conftest$ac_exeext conftest.$ac_ext
17533 ac_res=`eval echo '${'$as_ac_var'}'`
17534 { echo "$as_me:$LINENO: result: $ac_res" >&5
17535 echo "${ECHO_T}$ac_res" >&6; }
17536 if test `eval echo '${'$as_ac_var'}'` = yes; then
17537 cat >>confdefs.h <<_ACEOF
17538 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17542 case " $LIBOBJS " in
17543 *" $ac_func.$ac_objext "* ) ;;
17544 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17553 LIBS="$pgac_save_LIBS"
17555 # System's version of getaddrinfo(), if any, may be used only if we found
17556 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17557 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17558 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17559 # because we want to use our own getaddrinfo.c on Windows anyway.)
17560 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17562 for ac_func in getaddrinfo
17564 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 cat >conftest.$ac_ext <<_ACEOF
17573 cat confdefs.h >>conftest.$ac_ext
17574 cat >>conftest.$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17578 #define $ac_func innocuous_$ac_func
17580 /* System header to define __stub macros and hopefully few prototypes,
17581 which can conflict with char $ac_func (); below.
17582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17583 <limits.h> exists even on freestanding compilers. */
17586 # include <limits.h>
17588 # include <assert.h>
17593 /* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17600 /* The GNU C library defines this for functions which it implements
17601 to always fail with ENOSYS. Some functions are actually named
17602 something starting with __ and the normal name is an alias. */
17603 #if defined __stub_$ac_func || defined __stub___$ac_func
17610 return $ac_func ();
17615 rm -f conftest.$ac_objext conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17619 *) ac_try_echo
=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_link") 2>conftest.er1
17624 grep -v '^ *+' conftest.er1
>conftest.err
17626 cat conftest.err
>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest
$ac_exeext &&
17632 $as_test_x conftest
$ac_exeext; then
17633 eval "$as_ac_var=yes"
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.
$ac_ext >&5
17638 eval "$as_ac_var=no"
17641 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17642 conftest
$ac_exeext conftest.
$ac_ext
17644 ac_res
=`eval echo '${'$as_ac_var'}'`
17645 { echo "$as_me:$LINENO: result: $ac_res" >&5
17646 echo "${ECHO_T}$ac_res" >&6; }
17647 if test `eval echo '${'$as_ac_var'}'` = yes; then
17648 cat >>confdefs.h
<<_ACEOF
17649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653 case " $LIBOBJS " in
17654 *" $ac_func.$ac_objext "* ) ;;
17655 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17664 case " $LIBOBJS " in
17665 *" getaddrinfo.$ac_objext "* ) ;;
17666 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
17672 # Similarly, use system's getopt_long() only if system provides struct option.
17673 # Solaris' getopt() doesn't do what we want for long options, so always use
17674 # our versions on that platform.
17675 if test "$PORTNAME" = "solaris"; then
17676 case " $LIBOBJS " in
17677 *" getopt.$ac_objext "* ) ;;
17678 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
17682 case " $LIBOBJS " in
17683 *" getopt_long.$ac_objext "* ) ;;
17684 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
17688 elif test x
"$ac_cv_type_struct_option" = xyes
; then
17690 for ac_func
in getopt_long
17692 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17695 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17696 echo $ECHO_N "(cached) $ECHO_C" >&6
17698 cat >conftest.
$ac_ext <<_ACEOF
17701 cat confdefs.h
>>conftest.
$ac_ext
17702 cat >>conftest.
$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17706 #define $ac_func innocuous_$ac_func
17708 /* System header to define __stub macros and hopefully few prototypes,
17709 which can conflict with char $ac_func (); below.
17710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17711 <limits.h> exists even on freestanding compilers. */
17714 # include <limits.h>
17716 # include <assert.h>
17721 /* Override any GCC internal prototype to avoid an error.
17722 Use char because int might match the return type of a GCC
17723 builtin and then its argument prototype would still apply. */
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined __stub_$ac_func || defined __stub___$ac_func
17738 return $ac_func ();
17743 rm -f conftest.
$ac_objext conftest
$ac_exeext
17744 if { (ac_try
="$ac_link"
17745 case "(($ac_try" in
17746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_link") 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } && {
17757 test -z "$ac_c_werror_flag" ||
17758 test ! -s conftest.err
17759 } && test -s conftest$ac_exeext &&
17760 $as_test_x conftest$ac_exeext; then
17761 eval "$as_ac_var=yes"
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 eval "$as_ac_var=no"
17769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17770 conftest$ac_exeext conftest.$ac_ext
17772 ac_res=`eval echo '${'$as_ac_var'}'`
17773 { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17775 if test `eval echo '${'$as_ac_var'}'` = yes; then
17776 cat >>confdefs.h <<_ACEOF
17777 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17781 case " $LIBOBJS " in
17782 *" $ac_func.$ac_objext "* ) ;;
17783 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17792 case " $LIBOBJS " in
17793 *" getopt_long.$ac_objext "* ) ;;
17794 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17801 if test "$PORTNAME" = "win32"; then
17803 for ac_func in gettimeofday
17805 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 cat >conftest.$ac_ext <<_ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17819 #define $ac_func innocuous_$ac_func
17821 /* System header to define __stub macros and hopefully few prototypes,
17822 which can conflict with char $ac_func (); below.
17823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824 <limits.h> exists even on freestanding compilers. */
17827 # include <limits.h>
17829 # include <assert.h>
17834 /* Override any GCC internal prototype to avoid an error.
17835 Use char because int might match the return type of a GCC
17836 builtin and then its argument prototype would still apply. */
17841 /* The GNU C library defines this for functions which it implements
17842 to always fail with ENOSYS. Some functions are actually named
17843 something starting with __ and the normal name is an alias. */
17844 #if defined __stub_$ac_func || defined __stub___$ac_func
17851 return $ac_func ();
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (ac_try="$ac_link"
17858 case "(($ac_try" in
17859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17860 *) ac_try_echo
=$ac_try;;
17862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_link") 2>conftest.er1
17865 grep -v '^ *+' conftest.er1
>conftest.err
17867 cat conftest.err
>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && {
17870 test -z "$ac_c_werror_flag" ||
17871 test ! -s conftest.err
17872 } && test -s conftest
$ac_exeext &&
17873 $as_test_x conftest
$ac_exeext; then
17874 eval "$as_ac_var=yes"
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.
$ac_ext >&5
17879 eval "$as_ac_var=no"
17882 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17883 conftest
$ac_exeext conftest.
$ac_ext
17885 ac_res
=`eval echo '${'$as_ac_var'}'`
17886 { echo "$as_me:$LINENO: result: $ac_res" >&5
17887 echo "${ECHO_T}$ac_res" >&6; }
17888 if test `eval echo '${'$as_ac_var'}'` = yes; then
17889 cat >>confdefs.h
<<_ACEOF
17890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17894 case " $LIBOBJS " in
17895 *" $ac_func.$ac_objext "* ) ;;
17896 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17904 case " $LIBOBJS " in
17905 *" kill.$ac_objext "* ) ;;
17906 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
17910 case " $LIBOBJS " in
17911 *" open.$ac_objext "* ) ;;
17912 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
17916 case " $LIBOBJS " in
17917 *" rand.$ac_objext "* ) ;;
17918 *) LIBOBJS
="$LIBOBJS rand.$ac_objext"
17922 case " $LIBOBJS " in
17923 *" win32env.$ac_objext "* ) ;;
17924 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
17928 case " $LIBOBJS " in
17929 *" win32error.$ac_objext "* ) ;;
17930 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
17935 cat >>confdefs.h
<<\_ACEOF
17936 #define HAVE_SYMLINK 1
17941 if test "$with_readline" = yes; then
17942 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17943 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17944 cat >conftest.
$ac_ext <<_ACEOF
17947 cat confdefs.h
>>conftest.
$ac_ext
17948 cat >>conftest.
$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17951 #ifdef HAVE_READLINE_READLINE_H
17952 # include <readline/readline.h>
17953 #elif defined(HAVE_READLINE_H)
17954 # include <readline.h>
17960 rl_completion_append_character = 'x';
17965 rm -f conftest.
$ac_objext conftest
$ac_exeext
17966 if { (ac_try
="$ac_link"
17967 case "(($ac_try" in
17968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_link") 2>conftest.er1
17974 grep -v '^ *+' conftest.er1 >conftest.err
17976 cat conftest.err >&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } && {
17979 test -z "$ac_c_werror_flag" ||
17980 test ! -s conftest.err
17981 } && test -s conftest$ac_exeext &&
17982 $as_test_x conftest$ac_exeext; then
17983 { echo "$as_me:$LINENO: result: yes" >&5
17984 echo "${ECHO_T}yes" >&6; }
17986 cat >>confdefs.h <<\_ACEOF
17987 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 { echo "$as_me:$LINENO: result: no" >&5
17995 echo "${ECHO_T}no" >&6; }
17998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17999 conftest$ac_exeext conftest.$ac_ext
18002 for ac_func in rl_completion_matches rl_filename_completion_function
18004 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 cat >conftest.$ac_ext <<_ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18018 #define $ac_func innocuous_$ac_func
18020 /* System header to define __stub macros and hopefully few prototypes,
18021 which can conflict with char $ac_func (); below.
18022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18023 <limits.h> exists even on freestanding compilers. */
18026 # include <limits.h>
18028 # include <assert.h>
18033 /* Override any GCC internal prototype to avoid an error.
18034 Use char because int might match the return type of a GCC
18035 builtin and then its argument prototype would still apply. */
18040 /* The GNU C library defines this for functions which it implements
18041 to always fail with ENOSYS. Some functions are actually named
18042 something starting with __ and the normal name is an alias. */
18043 #if defined __stub_$ac_func || defined __stub___$ac_func
18050 return $ac_func ();
18055 rm -f conftest.$ac_objext conftest$ac_exeext
18056 if { (ac_try="$ac_link"
18057 case "(($ac_try" in
18058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18059 *) ac_try_echo
=$ac_try;;
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_link") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1
>conftest.err
18066 cat conftest.err
>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest
$ac_exeext &&
18072 $as_test_x conftest
$ac_exeext; then
18073 eval "$as_ac_var=yes"
18075 echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.
$ac_ext >&5
18078 eval "$as_ac_var=no"
18081 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18082 conftest
$ac_exeext conftest.
$ac_ext
18084 ac_res
=`eval echo '${'$as_ac_var'}'`
18085 { echo "$as_me:$LINENO: result: $ac_res" >&5
18086 echo "${ECHO_T}$ac_res" >&6; }
18087 if test `eval echo '${'$as_ac_var'}'` = yes; then
18088 cat >>confdefs.h
<<_ACEOF
18089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18096 for ac_func
in replace_history_entry
18098 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18101 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 cat >conftest.
$ac_ext <<_ACEOF
18107 cat confdefs.h
>>conftest.
$ac_ext
18108 cat >>conftest.
$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18112 #define $ac_func innocuous_$ac_func
18114 /* System header to define __stub macros and hopefully few prototypes,
18115 which can conflict with char $ac_func (); below.
18116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18117 <limits.h> exists even on freestanding compilers. */
18120 # include <limits.h>
18122 # include <assert.h>
18127 /* Override any GCC internal prototype to avoid an error.
18128 Use char because int might match the return type of a GCC
18129 builtin and then its argument prototype would still apply. */
18134 /* The GNU C library defines this for functions which it implements
18135 to always fail with ENOSYS. Some functions are actually named
18136 something starting with __ and the normal name is an alias. */
18137 #if defined __stub_$ac_func || defined __stub___$ac_func
18144 return $ac_func ();
18149 rm -f conftest.
$ac_objext conftest
$ac_exeext
18150 if { (ac_try
="$ac_link"
18151 case "(($ac_try" in
18152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_link") 2>conftest.er1
18158 grep -v '^ *+' conftest.er1 >conftest.err
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } && {
18163 test -z "$ac_c_werror_flag" ||
18164 test ! -s conftest.err
18165 } && test -s conftest$ac_exeext &&
18166 $as_test_x conftest$ac_exeext; then
18167 eval "$as_ac_var=yes"
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18172 eval "$as_ac_var=no"
18175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18176 conftest$ac_exeext conftest.$ac_ext
18178 ac_res=`eval echo '${'$as_ac_var'}'`
18179 { echo "$as_me:$LINENO: result: $ac_res" >&5
18180 echo "${ECHO_T}$ac_res" >&6; }
18181 if test `eval echo '${'$as_ac_var'}'` = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18192 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18193 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18194 cat >conftest.$ac_ext <<_ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 #include <setjmp.h>
18204 sigjmp_buf x; sigsetjmp(x, 1);
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (ac_try="$ac_link"
18211 case "(($ac_try" in
18212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18213 *) ac_try_echo
=$ac_try;;
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_link") 2>conftest.er1
18218 grep -v '^ *+' conftest.er1
>conftest.err
18220 cat conftest.err
>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } && {
18223 test -z "$ac_c_werror_flag" ||
18224 test ! -s conftest.err
18225 } && test -s conftest
$ac_exeext &&
18226 $as_test_x conftest
$ac_exeext; then
18228 cat >>confdefs.h
<<\_ACEOF
18229 #define HAVE_SIGSETJMP 1
18232 { echo "$as_me:$LINENO: result: yes" >&5
18233 echo "${ECHO_T}yes" >&6; }
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.
$ac_ext >&5
18238 { echo "$as_me:$LINENO: result: no" >&5
18239 echo "${ECHO_T}no" >&6; }
18242 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18243 conftest
$ac_exeext conftest.
$ac_ext
18245 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18246 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18247 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 cat >conftest.
$ac_ext <<_ACEOF
18253 cat confdefs.h
>>conftest.
$ac_ext
18254 cat >>conftest.
$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 #include <signal.h>
18257 /* NetBSD declares sys_siglist in unistd.h. */
18258 #ifdef HAVE_UNISTD_H
18259 # include <unistd.h>
18266 #ifndef sys_siglist
18267 (void) sys_siglist;
18274 rm -f conftest.
$ac_objext
18275 if { (ac_try
="$ac_compile"
18276 case "(($ac_try" in
18277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_compile") 2>conftest.er1
18283 grep -v '^ *+' conftest.er1 >conftest.err
18285 cat conftest.err >&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } && {
18288 test -z "$ac_c_werror_flag" ||
18289 test ! -s conftest.err
18290 } && test -s conftest.$ac_objext; then
18291 ac_cv_have_decl_sys_siglist=yes
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_cv_have_decl_sys_siglist=no
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18302 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18303 if test $ac_cv_have_decl_sys_siglist = yes; then
18305 cat >>confdefs.h <<_ACEOF
18306 #define HAVE_DECL_SYS_SIGLIST 1
18311 cat >>confdefs.h <<_ACEOF
18312 #define HAVE_DECL_SYS_SIGLIST 0
18321 { echo "$as_me:$LINENO: checking for syslog" >&5
18322 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18323 if test "${ac_cv_func_syslog+set}" = set; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 cat >conftest.$ac_ext <<_ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18334 #define syslog innocuous_syslog
18336 /* System header to define __stub macros and hopefully few prototypes,
18337 which can conflict with char syslog (); below.
18338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18339 <limits.h> exists even on freestanding compilers. */
18342 # include <limits.h>
18344 # include <assert.h>
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18356 /* The GNU C library defines this for functions which it implements
18357 to always fail with ENOSYS. Some functions are actually named
18358 something starting with __ and the normal name is an alias. */
18359 #if defined __stub_syslog || defined __stub___syslog
18371 rm -f conftest.$ac_objext conftest$ac_exeext
18372 if { (ac_try="$ac_link"
18373 case "(($ac_try" in
18374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18375 *) ac_try_echo
=$ac_try;;
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_link") 2>conftest.er1
18380 grep -v '^ *+' conftest.er1
>conftest.err
18382 cat conftest.err
>&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && {
18385 test -z "$ac_c_werror_flag" ||
18386 test ! -s conftest.err
18387 } && test -s conftest
$ac_exeext &&
18388 $as_test_x conftest
$ac_exeext; then
18389 ac_cv_func_syslog
=yes
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.
$ac_ext >&5
18394 ac_cv_func_syslog
=no
18397 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18398 conftest
$ac_exeext conftest.
$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18401 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18402 if test $ac_cv_func_syslog = yes; then
18403 if test "${ac_cv_header_syslog_h+set}" = set; then
18404 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18405 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18406 if test "${ac_cv_header_syslog_h+set}" = set; then
18407 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18410 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18412 # Is the header compilable?
18413 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18414 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18415 cat >conftest.
$ac_ext <<_ACEOF
18418 cat confdefs.h
>>conftest.
$ac_ext
18419 cat >>conftest.
$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 $ac_includes_default
18422 #include <syslog.h>
18424 rm -f conftest.
$ac_objext
18425 if { (ac_try
="$ac_compile"
18426 case "(($ac_try" in
18427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_compile") 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 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_objext; then
18441 ac_header_compiler=yes
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_header_compiler=no
18449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18451 echo "${ECHO_T}$ac_header_compiler" >&6; }
18453 # Is the header present?
18454 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18455 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18456 cat >conftest.$ac_ext <<_ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 #include <syslog.h>
18464 if { (ac_try="$ac_cpp conftest.$ac_ext"
18465 case "(($ac_try" in
18466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18467 *) ac_try_echo
=$ac_try;;
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18472 grep -v '^ *+' conftest.er1
>conftest.err
18474 cat conftest.err
>&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } >/dev
/null
&& {
18477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18478 test ! -s conftest.err
18480 ac_header_preproc
=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.
$ac_ext >&5
18485 ac_header_preproc
=no
18488 rm -f conftest.err conftest.
$ac_ext
18489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18490 echo "${ECHO_T}$ac_header_preproc" >&6; }
18492 # So? What about this header?
18493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18495 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18496 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18497 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18498 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18499 ac_header_preproc
=yes
18502 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18503 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18505 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18506 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18507 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18509 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18511 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18512 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18513 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18515 ## ---------------------------------------- ##
18516 ## Report this to pgsql-bugs@postgresql.org ##
18517 ## ---------------------------------------- ##
18519 ) |
sed "s/^/$as_me: WARNING: /" >&2
18522 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18523 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18524 if test "${ac_cv_header_syslog_h+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18527 ac_cv_header_syslog_h
=$ac_header_preproc
18529 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18530 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18533 if test $ac_cv_header_syslog_h = yes; then
18535 cat >>confdefs.h
<<\_ACEOF
18536 #define HAVE_SYSLOG 1
18545 { echo "$as_me:$LINENO: checking for optreset" >&5
18546 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18547 if test "${pgac_cv_var_int_optreset+set}" = set; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 cat >conftest.
$ac_ext <<_ACEOF
18553 cat confdefs.h
>>conftest.
$ac_ext
18554 cat >>conftest.
$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <unistd.h>
18560 extern int optreset; optreset = 1;
18565 rm -f conftest.
$ac_objext conftest
$ac_exeext
18566 if { (ac_try
="$ac_link"
18567 case "(($ac_try" in
18568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_link") 2>conftest.er1
18574 grep -v '^ *+' conftest.er1 >conftest.err
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } && {
18579 test -z "$ac_c_werror_flag" ||
18580 test ! -s conftest.err
18581 } && test -s conftest$ac_exeext &&
18582 $as_test_x conftest$ac_exeext; then
18583 pgac_cv_var_int_optreset=yes
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 pgac_cv_var_int_optreset=no
18591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18592 conftest$ac_exeext conftest.$ac_ext
18594 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18595 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18596 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18598 cat >>confdefs.h <<\_ACEOF
18599 #define HAVE_INT_OPTRESET 1
18606 for ac_func in strtoll strtoq
18608 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 cat >conftest.$ac_ext <<_ACEOF
18617 cat confdefs.h >>conftest.$ac_ext
18618 cat >>conftest.$ac_ext <<_ACEOF
18619 /* end confdefs.h. */
18620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18622 #define $ac_func innocuous_$ac_func
18624 /* System header to define __stub macros and hopefully few prototypes,
18625 which can conflict with char $ac_func (); below.
18626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18627 <limits.h> exists even on freestanding compilers. */
18630 # include <limits.h>
18632 # include <assert.h>
18637 /* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
18644 /* The GNU C library defines this for functions which it implements
18645 to always fail with ENOSYS. Some functions are actually named
18646 something starting with __ and the normal name is an alias. */
18647 #if defined __stub_$ac_func || defined __stub___$ac_func
18654 return $ac_func ();
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (ac_try="$ac_link"
18661 case "(($ac_try" in
18662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18663 *) ac_try_echo
=$ac_try;;
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_link") 2>conftest.er1
18668 grep -v '^ *+' conftest.er1
>conftest.err
18670 cat conftest.err
>&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } && {
18673 test -z "$ac_c_werror_flag" ||
18674 test ! -s conftest.err
18675 } && test -s conftest
$ac_exeext &&
18676 $as_test_x conftest
$ac_exeext; then
18677 eval "$as_ac_var=yes"
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.
$ac_ext >&5
18682 eval "$as_ac_var=no"
18685 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18686 conftest
$ac_exeext conftest.
$ac_ext
18688 ac_res
=`eval echo '${'$as_ac_var'}'`
18689 { echo "$as_me:$LINENO: result: $ac_res" >&5
18690 echo "${ECHO_T}$ac_res" >&6; }
18691 if test `eval echo '${'$as_ac_var'}'` = yes; then
18692 cat >>confdefs.h
<<_ACEOF
18693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18701 for ac_func
in strtoull strtouq
18703 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18706 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 cat >conftest.
$ac_ext <<_ACEOF
18712 cat confdefs.h
>>conftest.
$ac_ext
18713 cat >>conftest.
$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18717 #define $ac_func innocuous_$ac_func
18719 /* System header to define __stub macros and hopefully few prototypes,
18720 which can conflict with char $ac_func (); below.
18721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18722 <limits.h> exists even on freestanding compilers. */
18725 # include <limits.h>
18727 # include <assert.h>
18732 /* Override any GCC internal prototype to avoid an error.
18733 Use char because int might match the return type of a GCC
18734 builtin and then its argument prototype would still apply. */
18739 /* The GNU C library defines this for functions which it implements
18740 to always fail with ENOSYS. Some functions are actually named
18741 something starting with __ and the normal name is an alias. */
18742 #if defined __stub_$ac_func || defined __stub___$ac_func
18749 return $ac_func ();
18754 rm -f conftest.
$ac_objext conftest
$ac_exeext
18755 if { (ac_try
="$ac_link"
18756 case "(($ac_try" in
18757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_link") 2>conftest.er1
18763 grep -v '^ *+' conftest.er1 >conftest.err
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } && {
18768 test -z "$ac_c_werror_flag" ||
18769 test ! -s conftest.err
18770 } && test -s conftest$ac_exeext &&
18771 $as_test_x conftest$ac_exeext; then
18772 eval "$as_ac_var=yes"
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 eval "$as_ac_var=no"
18780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18781 conftest$ac_exeext conftest.$ac_ext
18783 ac_res=`eval echo '${'$as_ac_var'}'`
18784 { echo "$as_me:$LINENO: result: $ac_res" >&5
18785 echo "${ECHO_T}$ac_res" >&6; }
18786 if test `eval echo '${'$as_ac_var'}'` = yes; then
18787 cat >>confdefs.h <<_ACEOF
18788 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18795 # Check for one of atexit() or on_exit()
18797 for ac_func in atexit
18799 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 cat >conftest.$ac_ext <<_ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18813 #define $ac_func innocuous_$ac_func
18815 /* System header to define __stub macros and hopefully few prototypes,
18816 which can conflict with char $ac_func (); below.
18817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818 <limits.h> exists even on freestanding compilers. */
18821 # include <limits.h>
18823 # include <assert.h>
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined __stub_$ac_func || defined __stub___$ac_func
18845 return $ac_func ();
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (ac_try="$ac_link"
18852 case "(($ac_try" in
18853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18854 *) ac_try_echo
=$ac_try;;
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_link") 2>conftest.er1
18859 grep -v '^ *+' conftest.er1
>conftest.err
18861 cat conftest.err
>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } && {
18864 test -z "$ac_c_werror_flag" ||
18865 test ! -s conftest.err
18866 } && test -s conftest
$ac_exeext &&
18867 $as_test_x conftest
$ac_exeext; then
18868 eval "$as_ac_var=yes"
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.
$ac_ext >&5
18873 eval "$as_ac_var=no"
18876 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18877 conftest
$ac_exeext conftest.
$ac_ext
18879 ac_res
=`eval echo '${'$as_ac_var'}'`
18880 { echo "$as_me:$LINENO: result: $ac_res" >&5
18881 echo "${ECHO_T}$ac_res" >&6; }
18882 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883 cat >>confdefs.h
<<_ACEOF
18884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18889 for ac_func
in on_exit
18891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18894 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18897 cat >conftest.
$ac_ext <<_ACEOF
18900 cat confdefs.h
>>conftest.
$ac_ext
18901 cat >>conftest.
$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18905 #define $ac_func innocuous_$ac_func
18907 /* System header to define __stub macros and hopefully few prototypes,
18908 which can conflict with char $ac_func (); below.
18909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18910 <limits.h> exists even on freestanding compilers. */
18913 # include <limits.h>
18915 # include <assert.h>
18920 /* Override any GCC internal prototype to avoid an error.
18921 Use char because int might match the return type of a GCC
18922 builtin and then its argument prototype would still apply. */
18927 /* The GNU C library defines this for functions which it implements
18928 to always fail with ENOSYS. Some functions are actually named
18929 something starting with __ and the normal name is an alias. */
18930 #if defined __stub_$ac_func || defined __stub___$ac_func
18937 return $ac_func ();
18942 rm -f conftest.
$ac_objext conftest
$ac_exeext
18943 if { (ac_try
="$ac_link"
18944 case "(($ac_try" in
18945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_link") 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } && {
18956 test -z "$ac_c_werror_flag" ||
18957 test ! -s conftest.err
18958 } && test -s conftest$ac_exeext &&
18959 $as_test_x conftest$ac_exeext; then
18960 eval "$as_ac_var=yes"
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 eval "$as_ac_var=no"
18968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18969 conftest$ac_exeext conftest.$ac_ext
18971 ac_res=`eval echo '${'$as_ac_var'}'`
18972 { echo "$as_me:$LINENO: result: $ac_res" >&5
18973 echo "${ECHO_T}$ac_res" >&6; }
18974 if test `eval echo '${'$as_ac_var'}'` = yes; then
18975 cat >>confdefs.h <<_ACEOF
18976 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18980 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18981 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18982 { (exit 1); exit 1; }; }
18991 for ac_func in fseeko
18993 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19007 #define $ac_func innocuous_$ac_func
19009 /* System header to define __stub macros and hopefully few prototypes,
19010 which can conflict with char $ac_func (); below.
19011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19012 <limits.h> exists even on freestanding compilers. */
19015 # include <limits.h>
19017 # include <assert.h>
19022 /* Override any GCC internal prototype to avoid an error.
19023 Use char because int might match the return type of a GCC
19024 builtin and then its argument prototype would still apply. */
19029 /* The GNU C library defines this for functions which it implements
19030 to always fail with ENOSYS. Some functions are actually named
19031 something starting with __ and the normal name is an alias. */
19032 #if defined __stub_$ac_func || defined __stub___$ac_func
19039 return $ac_func ();
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19048 *) ac_try_echo
=$ac_try;;
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_link") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1
>conftest.err
19055 cat conftest.err
>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest
$ac_exeext &&
19061 $as_test_x conftest
$ac_exeext; then
19062 eval "$as_ac_var=yes"
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.
$ac_ext >&5
19067 eval "$as_ac_var=no"
19070 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19071 conftest
$ac_exeext conftest.
$ac_ext
19073 ac_res
=`eval echo '${'$as_ac_var'}'`
19074 { echo "$as_me:$LINENO: result: $ac_res" >&5
19075 echo "${ECHO_T}$ac_res" >&6; }
19076 if test `eval echo '${'$as_ac_var'}'` = yes; then
19077 cat >>confdefs.h
<<_ACEOF
19078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19082 case " $LIBOBJS " in
19083 *" $ac_func.$ac_objext "* ) ;;
19084 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19093 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19094 # Mingw uses macros to access Win32 API calls
19095 bsdi
*|netbsd
*|mingw
*)
19097 cat >>confdefs.h
<<\_ACEOF
19098 #define HAVE_FSEEKO 1
19101 ac_cv_func_fseeko
=yes;;
19103 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19104 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19105 if test "${ac_cv_sys_largefile_source+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 cat >conftest.
$ac_ext <<_ACEOF
19112 cat confdefs.h
>>conftest.
$ac_ext
19113 cat >>conftest.
$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 #include <sys/types.h> /* for off_t */
19120 int (*fp) (FILE *, off_t, int) = fseeko;
19121 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19126 rm -f conftest.
$ac_objext conftest
$ac_exeext
19127 if { (ac_try
="$ac_link"
19128 case "(($ac_try" in
19129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest$ac_exeext &&
19143 $as_test_x conftest$ac_exeext; then
19144 ac_cv_sys_largefile_source=no; break
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19153 conftest$ac_exeext conftest.$ac_ext
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 #define _LARGEFILE_SOURCE 1
19161 #include <sys/types.h> /* for off_t */
19166 int (*fp) (FILE *, off_t, int) = fseeko;
19167 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19172 rm -f conftest.$ac_objext conftest$ac_exeext
19173 if { (ac_try="$ac_link"
19174 case "(($ac_try" in
19175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19176 *) ac_try_echo
=$ac_try;;
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179 (eval "$ac_link") 2>conftest.er1
19181 grep -v '^ *+' conftest.er1
>conftest.err
19183 cat conftest.err
>&5
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } && {
19186 test -z "$ac_c_werror_flag" ||
19187 test ! -s conftest.err
19188 } && test -s conftest
$ac_exeext &&
19189 $as_test_x conftest
$ac_exeext; then
19190 ac_cv_sys_largefile_source
=1; break
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.
$ac_ext >&5
19198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19199 conftest
$ac_exeext conftest.
$ac_ext
19200 ac_cv_sys_largefile_source
=unknown
19204 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19205 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19206 case $ac_cv_sys_largefile_source in #(
19209 cat >>confdefs.h
<<_ACEOF
19210 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19216 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19217 # in glibc 2.1.3, but that breaks too many other things.
19218 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19219 if test $ac_cv_sys_largefile_source != unknown
; then
19221 cat >>confdefs.h
<<\_ACEOF
19222 #define HAVE_FSEEKO 1
19233 # For each platform, we need to know about any special compile and link
19234 # libraries, and whether the normal C function names are thread-safe.
19235 # See the comment at the top of src/port/thread.c for more information.
19236 # WIN32 doesn't need the pthread tests; it always uses threads
19237 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19242 ac_cpp
='$CPP $CPPFLAGS'
19243 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19244 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19245 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19249 # We used to check for pthread.h first, but this fails if pthread.h
19250 # requires special compiler flags (e.g. on True64 or Sequent).
19251 # It gets checked for in the link test anyway.
19253 # First of all, check if the user has set any of the PTHREAD_LIBS,
19254 # etcetera environment variables, and if threads linking works using
19256 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
19257 save_CFLAGS
="$CFLAGS"
19258 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
19260 LIBS
="$PTHREAD_LIBS $LIBS"
19261 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19262 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19263 cat >conftest.
$ac_ext <<_ACEOF
19266 cat confdefs.h
>>conftest.
$ac_ext
19267 cat >>conftest.
$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19270 /* Override any GCC internal prototype to avoid an error.
19271 Use char because int might match the return type of a GCC
19272 builtin and then its argument prototype would still apply. */
19276 char pthread_join ();
19280 return pthread_join ();
19285 rm -f conftest.
$ac_objext conftest
$ac_exeext
19286 if { (ac_try
="$ac_link"
19287 case "(($ac_try" in
19288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_link") 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest$ac_exeext &&
19302 $as_test_x conftest$ac_exeext; then
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19312 conftest$ac_exeext conftest.$ac_ext
19313 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19314 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19315 if test x"$acx_pthread_ok" = xno; then
19320 CFLAGS="$save_CFLAGS"
19323 # We must check for the threads library under a number of different
19324 # names; the ordering is very important because some systems
19325 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19326 # libraries is broken (non-POSIX).
19328 # Create a list of thread flags to try. Items starting with a "-" are
19329 # C compiler flags, and other items are library names, except for "none"
19330 # which indicates that we try without any flags at all, and "pthread-config"
19331 # which is a program returning the flags for the Pth emulation library.
19333 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19335 # The ordering *is* (sometimes) important. Some notes on the
19336 # individual items follow:
19338 # pthreads: AIX (must check this before -lpthread)
19339 # none: in case threads are in libc; should be tried before -Kthread and
19340 # other compiler flags to prevent continual compiler warnings
19341 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19342 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19343 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19344 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19345 # -pthreads: Solaris/gcc
19346 # -mthreads: Mingw32/gcc, Lynx/gcc
19347 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19348 # doesn't hurt to check since this sometimes defines pthreads too;
19349 # also defines -D_REENTRANT)
19350 # pthread: Linux, etcetera
19351 # --thread-safe: KAI C++
19352 # pthread-config: use pthread-config program (for GNU Pth library)
19354 case "${host_cpu}-${host_os}" in
19357 # On Solaris (at least, for some versions), libc contains stubbed
19358 # (non-functional) versions of the pthreads routines, so link-based
19359 # tests will erroneously succeed. (We need to link with -pthread or
19360 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19361 # a function called by this macro, so we could check for that, but
19362 # who knows whether they'll stub that too in a future libc.) So,
19363 # we'll just look for -pthreads and -lpthread first:
19365 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19369 if test x"$acx_pthread_ok" = xno; then
19370 for flag in $acx_pthread_flags; do
19372 tryPTHREAD_CFLAGS=""
19376 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19377 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19381 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19382 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19383 tryPTHREAD_CFLAGS="$flag"
19387 # skip this if we already have flags defined, for PostgreSQL
19388 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19389 # Extract the first word of "pthread-config", so it can be a program name with args.
19390 set dummy pthread-config; ac_word=$2
19391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19393 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 if test -n "$acx_pthread_config"; then
19397 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19400 for as_dir in $PATH
19403 test -z "$as_dir" && as_dir=.
19404 for ac_exec_ext in '' $ac_executable_extensions; do
19405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19406 ac_cv_prog_acx_pthread_config="yes"
19407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19414 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19417 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19418 if test -n "$acx_pthread_config"; then
19419 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19420 echo "${ECHO_T}$acx_pthread_config" >&6; }
19422 { echo "$as_me:$LINENO: result: no" >&5
19423 echo "${ECHO_T}no" >&6; }
19427 if test x"$acx_pthread_config" = xno; then continue; fi
19428 tryPTHREAD_CFLAGS="`pthread-config
--cflags`"
19429 tryPTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
19433 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19434 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19435 tryPTHREAD_LIBS="-l$flag"
19440 save_CFLAGS="$CFLAGS"
19441 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19442 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19444 # Check for various functions. We must include pthread.h,
19445 # since some functions may be macros. (On the Sequent, we
19446 # need a special flag -Kthread to make this header compile.)
19447 # We check for pthread_join because it is in -lpthread on IRIX
19448 # while pthread_create is in libc. We check for pthread_attr_init
19449 # due to DEC craziness with -lpthreads. We check for
19450 # pthread_cleanup_push because it is one of the few pthread
19451 # functions on Solaris that doesn't have a non-functional libc stub.
19452 # We try pthread_create on general principles.
19453 cat >conftest.$ac_ext <<_ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459 #include <pthread.h>
19463 pthread_t th; pthread_join(th, 0);
19464 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19465 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19474 *) ac_try_echo
=$ac_try;;
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19479 grep -v '^ *+' conftest.er1
>conftest.err
19481 cat conftest.err
>&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest
$ac_exeext &&
19487 $as_test_x conftest
$ac_exeext; then
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.
$ac_ext >&5
19496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19497 conftest
$ac_exeext conftest.
$ac_ext
19499 if test "x$acx_pthread_ok" = xyes
; then
19500 # Don't use options that are ignored by the compiler.
19501 # We find them by checking stderror.
19502 cat >conftest.
$ac_ext <<_ACEOF
19504 main (int argc, char **argv)
19511 rm -f conftest.
$ac_objext conftest
$ac_exeext
19512 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19513 # we continue with more flags because Linux needs -lpthread
19514 # for libpq builds on PostgreSQL. The test above only
19515 # tests for building binaries, not shared libraries.
19516 PTHREAD_LIBS
=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19517 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19518 else acx_pthread_ok
=no
19523 CFLAGS
="$save_CFLAGS"
19525 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19526 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19530 # Various other checks:
19531 if test "x$acx_pthread_ok" = xyes
; then
19533 LIBS
="$PTHREAD_LIBS $LIBS"
19534 save_CFLAGS
="$CFLAGS"
19535 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
19537 # Detect AIX lossage: threads are created detached by default
19538 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19539 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19540 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19541 cat >conftest.
$ac_ext <<_ACEOF
19544 cat confdefs.h
>>conftest.
$ac_ext
19545 cat >>conftest.
$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <pthread.h>
19551 int attr=PTHREAD_CREATE_JOINABLE;
19556 rm -f conftest.
$ac_objext conftest
$ac_exeext
19557 if { (ac_try
="$ac_link"
19558 case "(($ac_try" in
19559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_link") 2>conftest.er1
19565 grep -v '^ *+' conftest.er1 >conftest.err
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest$ac_exeext &&
19573 $as_test_x conftest$ac_exeext; then
19574 ok=PTHREAD_CREATE_JOINABLE
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19584 if test x"$ok" = xunknown; then
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #include <pthread.h>
19595 int attr=PTHREAD_CREATE_UNDETACHED;
19600 rm -f conftest.$ac_objext conftest$ac_exeext
19601 if { (ac_try="$ac_link"
19602 case "(($ac_try" in
19603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19604 *) ac_try_echo
=$ac_try;;
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_link") 2>conftest.er1
19609 grep -v '^ *+' conftest.er1
>conftest.err
19611 cat conftest.err
>&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest
$ac_exeext &&
19617 $as_test_x conftest
$ac_exeext; then
19618 ok
=PTHREAD_CREATE_UNDETACHED
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.
$ac_ext >&5
19626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19627 conftest
$ac_exeext conftest.
$ac_ext
19629 if test x
"$ok" != xPTHREAD_CREATE_JOINABLE
; then
19631 cat >>confdefs.h
<<\_ACEOF
19632 #define PTHREAD_CREATE_JOINABLE $ok
19636 { echo "$as_me:$LINENO: result: ${ok}" >&5
19637 echo "${ECHO_T}${ok}" >&6; }
19638 if test x"$ok" = xunknown; then
19639 { echo "$as_me:$LINENO: WARNING
: we
do not know how to create joinable pthreads
" >&5
19640 echo "$as_me: WARNING
: we
do not know how to create joinable pthreads
" >&2;}
19643 { echo "$as_me:$LINENO: checking
if more special flags are required
for pthreads
" >&5
19644 echo $ECHO_N "checking
if more special flags are required
for pthreads...
$ECHO_C" >&6; }
19646 # We always add these in PostgreSQL
19647 # case "${host_cpu}-${host_os}" in
19648 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19649 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19651 { echo "$as_me:$LINENO: result
: ${flag}" >&5
19652 echo "${ECHO_T}${flag}" >&6; }
19653 if test "x$flag" != xno
; then
19654 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
19658 CFLAGS
="$save_CFLAGS"
19660 # Supporting cc_r would require a special CC in all places that
19661 # use libpq, and that is ugly, so we don't do it. Users can still
19662 # define their compiler as cc_r to do thread builds of everything.
19663 # More AIX lossage: must compile with cc_r
19664 # Extract the first word of "cc_r", so it can be a program name with args.
19665 set dummy cc_r
; ac_word
=$2
19666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19668 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 if test -n "$PTHREAD_CC"; then
19672 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
19674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19675 for as_dir
in $PATH
19678 test -z "$as_dir" && as_dir
=.
19679 for ac_exec_ext
in '' $ac_executable_extensions; do
19680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19681 ac_cv_prog_PTHREAD_CC
="cc_r"
19682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19689 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC
="${CC}"
19692 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
19693 if test -n "$PTHREAD_CC"; then
19694 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19695 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19697 { echo "$as_me:$LINENO: result: no" >&5
19698 echo "${ECHO_T}no" >&6; }
19710 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19711 if test x
"$acx_pthread_ok" = xyes
; then
19713 cat >>confdefs.h
<<\_ACEOF
19714 #define HAVE_PTHREAD 1
19723 ac_cpp
='$CPP $CPPFLAGS'
19724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19730 # Some platforms use these, so just define them. They can't hurt if they
19731 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19732 # enables 5-arg getpwuid_r, among other things.
19733 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19736 # At this point, we don't want to muck with the compiler name for threading.
19737 # Let's see who fails, perhaps AIX. 2004-04-23
19738 if test "$PTHREAD_CC" != "$CC"; then
19739 { { echo "$as_me:$LINENO: error:
19740 PostgreSQL does not support platforms that require a special compiler
19741 for thread safety." >&5
19742 echo "$as_me: error:
19743 PostgreSQL does not support platforms that require a special compiler
19744 for thread safety." >&2;}
19745 { (exit 1); exit 1; }; }
19748 if test "$THREAD_SUPPORT" = no
; then
19749 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19750 This platform is known to not support thread-safe programs. For details,
19751 compile and run src/bin/pg_thread_test." >&5
19752 echo "$as_me: error: cannot enable threads on this platform
19753 This platform is known to not support thread-safe programs. For details,
19754 compile and run src/bin/pg_thread_test." >&2;}
19755 { (exit 1); exit 1; }; }
19758 # Check for *_r functions
19761 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
19762 LIBS
="$LIBS $PTHREAD_LIBS"
19764 if test "$PORTNAME" != "win32"; then
19765 if test "${ac_cv_header_pthread_h+set}" = set; then
19766 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19767 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19768 if test "${ac_cv_header_pthread_h+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19772 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19774 # Is the header compilable?
19775 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19776 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19777 cat >conftest.
$ac_ext <<_ACEOF
19780 cat confdefs.h
>>conftest.
$ac_ext
19781 cat >>conftest.
$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19783 $ac_includes_default
19784 #include <pthread.h>
19786 rm -f conftest.
$ac_objext
19787 if { (ac_try
="$ac_compile"
19788 case "(($ac_try" in
19789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_compile") 2>conftest.er1
19795 grep -v '^ *+' conftest.er1 >conftest.err
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest.$ac_objext; then
19803 ac_header_compiler=yes
19805 echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19808 ac_header_compiler=no
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19813 echo "${ECHO_T}$ac_header_compiler" >&6; }
19815 # Is the header present?
19816 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19817 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 #include <pthread.h>
19826 if { (ac_try="$ac_cpp conftest.$ac_ext"
19827 case "(($ac_try" in
19828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19829 *) ac_try_echo
=$ac_try;;
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19834 grep -v '^ *+' conftest.er1
>conftest.err
19836 cat conftest.err
>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } >/dev
/null
&& {
19839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19842 ac_header_preproc
=yes
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.
$ac_ext >&5
19847 ac_header_preproc
=no
19850 rm -f conftest.err conftest.
$ac_ext
19851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19852 echo "${ECHO_T}$ac_header_preproc" >&6; }
19854 # So? What about this header?
19855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19857 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19858 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19859 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19860 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19861 ac_header_preproc
=yes
19864 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19865 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19866 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19867 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19868 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19869 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19871 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19873 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19875 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19877 ## ---------------------------------------- ##
19878 ## Report this to pgsql-bugs@postgresql.org ##
19879 ## ---------------------------------------- ##
19881 ) |
sed "s/^/$as_me: WARNING: /" >&2
19884 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19885 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19886 if test "${ac_cv_header_pthread_h+set}" = set; then
19887 echo $ECHO_N "(cached) $ECHO_C" >&6
19889 ac_cv_header_pthread_h
=$ac_header_preproc
19891 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19892 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19895 if test $ac_cv_header_pthread_h = yes; then
19898 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19899 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19900 { (exit 1); exit 1; }; }
19909 for ac_func
in strerror_r getpwuid_r gethostbyname_r
19911 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19914 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 cat >conftest.
$ac_ext <<_ACEOF
19920 cat confdefs.h
>>conftest.
$ac_ext
19921 cat >>conftest.
$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19925 #define $ac_func innocuous_$ac_func
19927 /* System header to define __stub macros and hopefully few prototypes,
19928 which can conflict with char $ac_func (); below.
19929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19930 <limits.h> exists even on freestanding compilers. */
19933 # include <limits.h>
19935 # include <assert.h>
19940 /* Override any GCC internal prototype to avoid an error.
19941 Use char because int might match the return type of a GCC
19942 builtin and then its argument prototype would still apply. */
19947 /* The GNU C library defines this for functions which it implements
19948 to always fail with ENOSYS. Some functions are actually named
19949 something starting with __ and the normal name is an alias. */
19950 #if defined __stub_$ac_func || defined __stub___$ac_func
19957 return $ac_func ();
19962 rm -f conftest.
$ac_objext conftest
$ac_exeext
19963 if { (ac_try
="$ac_link"
19964 case "(($ac_try" in
19965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_link") 2>conftest.er1
19971 grep -v '^ *+' conftest.er1 >conftest.err
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } && {
19976 test -z "$ac_c_werror_flag" ||
19977 test ! -s conftest.err
19978 } && test -s conftest$ac_exeext &&
19979 $as_test_x conftest$ac_exeext; then
19980 eval "$as_ac_var=yes"
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19985 eval "$as_ac_var=no"
19988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19989 conftest$ac_exeext conftest.$ac_ext
19991 ac_res=`eval echo '${'$as_ac_var'}'`
19992 { echo "$as_me:$LINENO: result: $ac_res" >&5
19993 echo "${ECHO_T}$ac_res" >&6; }
19994 if test `eval echo '${'$as_ac_var'}'` = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20003 # Do test here with the proper thread flags
20004 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
20005 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20006 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 #include <sys/types.h>
20021 struct passwd *space;
20024 struct passwd **result;
20025 getpwuid_r(uid, space, buf, bufsize, result);
20030 rm -f conftest.$ac_objext
20031 if { (ac_try="$ac_compile"
20032 case "(($ac_try" in
20033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20034 *) ac_try_echo
=$ac_try;;
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_compile") 2>conftest.er1
20039 grep -v '^ *+' conftest.er1
>conftest.err
20041 cat conftest.err
>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest.
$ac_objext; then
20047 pgac_cv_func_getpwuid_r_5arg
=yes
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.
$ac_ext >&5
20052 pgac_cv_func_getpwuid_r_5arg
=no
20055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20057 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20058 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20059 if test x
"$pgac_cv_func_getpwuid_r_5arg" = xyes
; then
20061 cat >>confdefs.h
<<\_ACEOF
20062 #define GETPWUID_R_5ARG
20067 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20068 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20069 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20070 echo $ECHO_N "(cached) $ECHO_C" >&6
20072 cat >conftest.
$ac_ext <<_ACEOF
20075 cat confdefs.h
>>conftest.
$ac_ext
20076 cat >>conftest.
$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20078 #include <string.h>
20083 int strerror_r(int, char *, size_t);
20085 /* Older AIX has 'int' for the third argument so we don't test the args. */
20092 rm -f conftest.
$ac_objext
20093 if { (ac_try
="$ac_compile"
20094 case "(($ac_try" in
20095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_compile") 2>conftest.er1
20101 grep -v '^ *+' conftest.er1 >conftest.err
20103 cat conftest.err >&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); } && {
20106 test -z "$ac_c_werror_flag" ||
20107 test ! -s conftest.err
20108 } && test -s conftest.$ac_objext; then
20109 pgac_cv_func_strerror_r_int=yes
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20114 pgac_cv_func_strerror_r_int=no
20117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20120 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20121 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20123 cat >>confdefs.h <<\_ACEOF
20124 #define STRERROR_R_INT
20134 # do not use values from template file
20143 # We can test for libldap_r only after we know PTHREAD_LIBS
20144 if test "$with_ldap" = yes ; then
20146 if test "$PORTNAME" != "win32"; then
20148 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20149 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20150 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 ac_check_lib_save_LIBS=$LIBS
20154 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20172 return ldap_bind ();
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20181 *) ac_try_echo
=$ac_try;;
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_link") 2>conftest.er1
20186 grep -v '^ *+' conftest.er1
>conftest.err
20188 cat conftest.err
>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest
$ac_exeext &&
20194 $as_test_x conftest
$ac_exeext; then
20195 ac_cv_lib_ldap_ldap_bind
=yes
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.
$ac_ext >&5
20200 ac_cv_lib_ldap_ldap_bind
=no
20203 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20204 conftest
$ac_exeext conftest.
$ac_ext
20205 LIBS
=$ac_check_lib_save_LIBS
20207 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20208 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20209 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20210 cat >>confdefs.h
<<_ACEOF
20211 #define HAVE_LIBLDAP 1
20214 LIBS
="-lldap $LIBS"
20217 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20218 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20219 { (exit 1); exit 1; }; }
20222 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
20223 if test "$enable_thread_safety" = yes; then
20224 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20226 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20227 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20228 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 ac_check_lib_save_LIBS
=$LIBS
20232 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20233 cat >conftest.
$ac_ext <<_ACEOF
20236 cat confdefs.h
>>conftest.
$ac_ext
20237 cat >>conftest.
$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20240 /* Override any GCC internal prototype to avoid an error.
20241 Use char because int might match the return type of a GCC
20242 builtin and then its argument prototype would still apply. */
20246 char ldap_simple_bind ();
20250 return ldap_simple_bind ();
20255 rm -f conftest.
$ac_objext conftest
$ac_exeext
20256 if { (ac_try
="$ac_link"
20257 case "(($ac_try" in
20258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_link") 2>conftest.er1
20264 grep -v '^ *+' conftest.er1 >conftest.err
20266 cat conftest.err >&5
20267 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 $as_test_x conftest$ac_exeext; then
20273 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_cv_lib_ldap_r_ldap_simple_bind=no
20281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20282 conftest$ac_exeext conftest.$ac_ext
20283 LIBS=$ac_check_lib_save_LIBS
20285 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20286 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20287 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20288 cat >>confdefs.h <<_ACEOF
20289 #define HAVE_LIBLDAP_R 1
20292 LIBS="-lldap_r $LIBS"
20295 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20296 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20297 { (exit 1); exit 1; }; }
20300 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20302 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20306 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20307 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20308 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20309 echo $ECHO_N "(cached) $ECHO_C" >&6
20311 ac_check_lib_save_LIBS=$LIBS
20312 LIBS="-lwldap32 $LIBS"
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20320 /* Override any GCC internal prototype to avoid an error.
20321 Use char because int might match the return type of a GCC
20322 builtin and then its argument prototype would still apply. */
20330 return ldap_bind ();
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (ac_try="$ac_link"
20337 case "(($ac_try" in
20338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20339 *) ac_try_echo
=$ac_try;;
20341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20342 (eval "$ac_link") 2>conftest.er1
20344 grep -v '^ *+' conftest.er1
>conftest.err
20346 cat conftest.err
>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } && {
20349 test -z "$ac_c_werror_flag" ||
20350 test ! -s conftest.err
20351 } && test -s conftest
$ac_exeext &&
20352 $as_test_x conftest
$ac_exeext; then
20353 ac_cv_lib_wldap32_ldap_bind
=yes
20355 echo "$as_me: failed program was:" >&5
20356 sed 's/^/| /' conftest.
$ac_ext >&5
20358 ac_cv_lib_wldap32_ldap_bind
=no
20361 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20362 conftest
$ac_exeext conftest.
$ac_ext
20363 LIBS
=$ac_check_lib_save_LIBS
20365 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20366 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20367 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20368 cat >>confdefs.h
<<_ACEOF
20369 #define HAVE_LIBWLDAP32 1
20372 LIBS
="-lwldap32 $LIBS"
20375 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20376 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20377 { (exit 1); exit 1; }; }
20380 LDAP_LIBS_FE
="-lwldap32"
20381 LDAP_LIBS_BE
="-lwldap32"
20389 # This test makes sure that run tests work at all. Sometimes a shared
20390 # library is found by the linker, but the runtime linker can't find it.
20391 # This check should come after all modifications of compiler or linker
20392 # variables, and before any other run tests.
20393 { echo "$as_me:$LINENO: checking test program" >&5
20394 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20395 if test "$cross_compiling" = yes; then
20396 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20397 echo "${ECHO_T}cross-compiling" >&6; }
20399 cat >conftest.
$ac_ext <<_ACEOF
20402 cat confdefs.h
>>conftest.
$ac_ext
20403 cat >>conftest.
$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 int main() { return 0; }
20407 rm -f conftest
$ac_exeext
20408 if { (ac_try
="$ac_link"
20409 case "(($ac_try" in
20410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20420 *) ac_try_echo
=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 { echo "$as_me:$LINENO: result: ok" >&5
20428 echo "${ECHO_T}ok" >&6; }
20430 echo "$as_me: program exited with status $ac_status" >&5
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.
$ac_ext >&5
20434 ( exit $ac_status )
20435 { echo "$as_me:$LINENO: result: failed" >&5
20436 echo "${ECHO_T}failed" >&6; }
20437 { { echo "$as_me:$LINENO: error:
20438 Could not execute a simple test program. This may be a problem
20439 related to locating shared libraries. Check the file 'config.log'
20440 for the exact reason." >&5
20441 echo "$as_me: error:
20442 Could not execute a simple test program. This may be a problem
20443 related to locating shared libraries. Check the file 'config.log'
20444 for the exact reason." >&2;}
20445 { (exit 1); exit 1; }; }
20447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20452 # --------------------
20453 # Run tests below here
20454 # --------------------
20456 # Force use of our snprintf if system's doesn't do arg control
20457 # See comment above at snprintf test for details.
20458 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no
; then
20459 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20460 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20461 if test "${pgac_cv_printf_arg_control+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 if test "$cross_compiling" = yes; then
20465 pgac_cv_printf_arg_control
=cross
20467 cat >conftest.
$ac_ext <<_ACEOF
20470 cat confdefs.h
>>conftest.
$ac_ext
20471 cat >>conftest.
$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 #include <string.h>
20480 /* can it swap arguments? */
20481 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20482 if (strcmp(buf, "4 3") != 0)
20487 rm -f conftest
$ac_exeext
20488 if { (ac_try
="$ac_link"
20489 case "(($ac_try" in
20490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_link") 2>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20498 { (case "(($ac_try" in
20499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20500 *) ac_try_echo
=$ac_try;;
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503 (eval "$ac_try") 2>&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 pgac_cv_printf_arg_control
=yes
20509 echo "$as_me: program exited with status $ac_status" >&5
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.
$ac_ext >&5
20513 ( exit $ac_status )
20514 pgac_cv_printf_arg_control
=no
20516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20522 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20523 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20525 if test $pgac_cv_printf_arg_control != yes ; then
20526 pgac_need_repl_snprintf
=yes
20532 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20533 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20534 if test "${pgac_cv_type_long_int_64+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 if test "$cross_compiling" = yes; then
20538 # If cross-compiling, check the size reported by the compiler and
20539 # trust that the arithmetic works.
20540 cat >conftest.
$ac_ext <<_ACEOF
20543 cat confdefs.h
>>conftest.
$ac_ext
20544 cat >>conftest.
$ac_ext <<_ACEOF
20545 /* end confdefs.h. */
20550 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20557 rm -f conftest.
$ac_objext
20558 if { (ac_try
="$ac_compile"
20559 case "(($ac_try" in
20560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_compile") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest.$ac_objext; then
20574 pgac_cv_type_long_int_64=yes
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 pgac_cv_type_long_int_64=no
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 typedef long int ac_int64;
20593 * These are globals to discourage the compiler from folding all the
20594 * arithmetic tests down to compile-time constants.
20596 ac_int64 a = 20000001;
20597 ac_int64 b = 40000005;
20599 int does_int64_work()
20603 if (sizeof(ac_int64) != 8)
20604 return 0; /* definitely not the right size */
20606 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20614 exit(! does_int64_work());
20617 rm -f conftest$ac_exeext
20618 if { (ac_try="$ac_link"
20619 case "(($ac_try" in
20620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20621 *) ac_try_echo
=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_link") 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20628 { (case "(($ac_try" in
20629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_try") 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 pgac_cv_type_long_int_64=yes
20639 echo "$as_me: program exited with status $ac_status" >&5
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ( exit $ac_status )
20644 pgac_cv_type_long_int_64=no
20646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20651 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20652 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20654 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20655 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_LONG_INT_64 1
20664 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20665 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20666 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20667 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20668 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 if test "$cross_compiling" = yes; then
20671 # If cross-compiling, check the size reported by the compiler and
20672 # trust that the arithmetic works.
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20683 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20690 rm -f conftest.$ac_objext
20691 if { (ac_try="$ac_compile"
20692 case "(($ac_try" in
20693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20694 *) ac_try_echo
=$ac_try;;
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_compile") 2>conftest.er1
20699 grep -v '^ *+' conftest.er1
>conftest.err
20701 cat conftest.err
>&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } && {
20704 test -z "$ac_c_werror_flag" ||
20705 test ! -s conftest.err
20706 } && test -s conftest.
$ac_objext; then
20707 pgac_cv_type_long_long_int_64
=yes
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.
$ac_ext >&5
20712 pgac_cv_type_long_long_int_64
=no
20715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20717 cat >conftest.
$ac_ext <<_ACEOF
20720 cat confdefs.h
>>conftest.
$ac_ext
20721 cat >>conftest.
$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 typedef long long int ac_int64;
20726 * These are globals to discourage the compiler from folding all the
20727 * arithmetic tests down to compile-time constants.
20729 ac_int64 a = 20000001;
20730 ac_int64 b = 40000005;
20732 int does_int64_work()
20736 if (sizeof(ac_int64) != 8)
20737 return 0; /* definitely not the right size */
20739 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20747 exit(! does_int64_work());
20750 rm -f conftest
$ac_exeext
20751 if { (ac_try
="$ac_link"
20752 case "(($ac_try" in
20753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_link") 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20761 { (case "(($ac_try" in
20762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20763 *) ac_try_echo
=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_try") 2>&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 pgac_cv_type_long_long_int_64
=yes
20772 echo "$as_me: program exited with status $ac_status" >&5
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.
$ac_ext >&5
20776 ( exit $ac_status )
20777 pgac_cv_type_long_long_int_64
=no
20779 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20784 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20785 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20787 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
20788 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
20790 cat >>confdefs.h
<<\_ACEOF
20791 #define HAVE_LONG_LONG_INT_64 1
20800 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
; then
20801 cat >conftest.
$ac_ext <<_ACEOF
20804 cat confdefs.h
>>conftest.
$ac_ext
20805 cat >>conftest.
$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 #define INT64CONST(x) x##LL
20809 long long int foo = INT64CONST(0x1234567890123456);
20819 rm -f conftest.
$ac_objext
20820 if { (ac_try
="$ac_compile"
20821 case "(($ac_try" in
20822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_compile") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } && {
20833 test -z "$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20835 } && test -s conftest.$ac_objext; then
20837 cat >>confdefs.h <<\_ACEOF
20838 #define HAVE_LL_CONSTANTS 1
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20852 # If we found "long int" is 64 bits, assume snprintf handles it. If
20853 # we found we need to use "long long int", better check. We cope with
20854 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20855 # work, fall back to our own snprintf emulation (which we know uses %lld).
20857 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20858 if test $pgac_need_repl_snprintf = no; then
20859 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20860 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20861 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 for pgac_format in '%lld' '%qd' '%I64d'; do
20865 if test "$cross_compiling" = yes; then
20866 pgac_cv_snprintf_long_long_int_format=cross; break
20868 cat >conftest.$ac_ext <<_ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20875 typedef long long int ac_int64;
20876 #define INT64_FORMAT "$pgac_format"
20878 ac_int64 a = 20000001;
20879 ac_int64 b = 40000005;
20881 int does_int64_snprintf_work()
20886 if (sizeof(ac_int64) != 8)
20887 return 0; /* doesn't look like the right size */
20890 snprintf(buf, 100, INT64_FORMAT, c);
20891 if (strcmp(buf, "800000140000005") != 0)
20892 return 0; /* either multiply or snprintf is busted */
20896 exit(! does_int64_snprintf_work());
20899 rm -f conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20903 *) ac_try_echo
=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_link") 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20910 { (case "(($ac_try" in
20911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20921 echo "$as_me: program exited with status $ac_status" >&5
20922 echo "$as_me: failed program was:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20933 LONG_LONG_INT_FORMAT=''
20935 case $pgac_cv_snprintf_long_long_int_format in
20936 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20937 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20938 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20939 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20940 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20941 *) { echo "$as_me:$LINENO: result: none" >&5
20942 echo "${ECHO_T}none" >&6; };;
20944 if test "$LONG_LONG_INT_FORMAT" = ""; then
20945 # Force usage of our own snprintf, since system snprintf is broken
20946 pgac_need_repl_snprintf=yes
20947 LONG_LONG_INT_FORMAT='%lld'
20950 # Here if we previously decided we needed to use our own snprintf
20951 LONG_LONG_INT_FORMAT='%lld'
20953 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" |
sed 's/d$/u/'`
20954 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20955 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20957 # Here if we are not using 'long long int' at all
20958 INT64_FORMAT='"%ld"'
20959 UINT64_FORMAT='"%lu"'
20963 cat >>confdefs.h <<_ACEOF
20964 #define INT64_FORMAT $INT64_FORMAT
20969 cat >>confdefs.h <<_ACEOF
20970 #define UINT64_FORMAT $UINT64_FORMAT
20974 # Now we have checked all the reasons to replace snprintf
20975 if test $pgac_need_repl_snprintf = yes; then
20977 cat >>confdefs.h <<\_ACEOF
20978 #define USE_REPL_SNPRINTF 1
20981 case " $LIBOBJS " in
20982 *" snprintf.$ac_objext "* ) ;;
20983 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20989 # Need a #define for the size of Datum (unsigned long)
20990 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20991 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20992 if test "${ac_cv_type_unsigned_long+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 cat >conftest.$ac_ext <<_ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 $ac_includes_default
21002 typedef unsigned long ac__type_new_;
21006 if ((ac__type_new_ *) 0)
21008 if (sizeof (ac__type_new_))
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21018 *) ac_try_echo
=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_compile") 2>conftest.er1
21023 grep -v '^ *+' conftest.er1
>conftest.err
21025 cat conftest.err
>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest.
$ac_objext; then
21031 ac_cv_type_unsigned_long
=yes
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.
$ac_ext >&5
21036 ac_cv_type_unsigned_long
=no
21039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21041 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21042 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21044 # The cast to long int works around a bug in the HP C Compiler
21045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21047 # This bug is HP SR number 8606223364.
21048 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21049 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21050 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 if test "$cross_compiling" = yes; then
21054 # Depending upon the size, compute the lo and hi bounds.
21055 cat >conftest.
$ac_ext <<_ACEOF
21058 cat confdefs.h
>>conftest.
$ac_ext
21059 cat >>conftest.
$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 $ac_includes_default
21062 typedef unsigned long ac__type_sizeof_;
21066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21073 rm -f conftest.
$ac_objext
21074 if { (ac_try
="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest.$ac_objext; then
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 $ac_includes_default
21099 typedef unsigned long ac__type_sizeof_;
21103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21110 rm -f conftest.$ac_objext
21111 if { (ac_try="$ac_compile"
21112 case "(($ac_try" in
21113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21114 *) ac_try_echo
=$ac_try;;
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117 (eval "$ac_compile") 2>conftest.er1
21119 grep -v '^ *+' conftest.er1
>conftest.err
21121 cat conftest.err
>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); } && {
21124 test -z "$ac_c_werror_flag" ||
21125 test ! -s conftest.err
21126 } && test -s conftest.
$ac_objext; then
21127 ac_hi
=$ac_mid; break
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.
$ac_ext >&5
21132 ac_lo
=`expr $ac_mid + 1`
21133 if test $ac_lo -le $ac_mid; then
21137 ac_mid
=`expr 2 '*' $ac_mid + 1`
21140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.
$ac_ext >&5
21146 cat >conftest.
$ac_ext <<_ACEOF
21149 cat confdefs.h
>>conftest.
$ac_ext
21150 cat >>conftest.
$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 $ac_includes_default
21153 typedef unsigned long ac__type_sizeof_;
21157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21164 rm -f conftest.
$ac_objext
21165 if { (ac_try
="$ac_compile"
21166 case "(($ac_try" in
21167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21168 *) ac_try_echo=$ac_try;;
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171 (eval "$ac_compile") 2>conftest.er1
21173 grep -v '^ *+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && {
21178 test -z "$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21180 } && test -s conftest.$ac_objext; then
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 $ac_includes_default
21190 typedef unsigned long ac__type_sizeof_;
21194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21201 rm -f conftest.$ac_objext
21202 if { (ac_try="$ac_compile"
21203 case "(($ac_try" in
21204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21205 *) ac_try_echo
=$ac_try;;
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_compile") 2>conftest.er1
21210 grep -v '^ *+' conftest.er1
>conftest.err
21212 cat conftest.err
>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest.
$ac_objext; then
21218 ac_lo
=$ac_mid; break
21220 echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.
$ac_ext >&5
21223 ac_hi
=`expr '(' $ac_mid ')' - 1`
21224 if test $ac_mid -le $ac_hi; then
21228 ac_mid
=`expr 2 '*' $ac_mid`
21231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21234 echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.
$ac_ext >&5
21240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21244 # Binary search between lo and hi bounds.
21245 while test "x$ac_lo" != "x$ac_hi"; do
21246 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21247 cat >conftest.
$ac_ext <<_ACEOF
21250 cat confdefs.h
>>conftest.
$ac_ext
21251 cat >>conftest.
$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 $ac_includes_default
21254 typedef unsigned long ac__type_sizeof_;
21258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21265 rm -f conftest.
$ac_objext
21266 if { (ac_try
="$ac_compile"
21267 case "(($ac_try" in
21268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_compile") 2>conftest.er1
21274 grep -v '^ *+' conftest.er1 >conftest.err
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest.$ac_objext; then
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21287 ac_lo=`expr '(' $ac_mid ')' + 1`
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21294 '') if test "$ac_cv_type_unsigned_long" = yes; then
21295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21296 See \`config.log
' for more details." >&5
21297 echo "$as_me: error: cannot compute sizeof (unsigned long)
21298 See \`config.log' for more details.
" >&2;}
21299 { (exit 77); exit 77; }; }
21301 ac_cv_sizeof_unsigned_long=0
21305 cat >conftest.$ac_ext <<_ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21311 $ac_includes_default
21312 typedef unsigned long ac__type_sizeof_;
21313 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21314 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21316 #include <stdlib.h>
21321 FILE *f = fopen ("conftest.val
", "w
");
21324 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21326 long int i = longval ();
21327 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21329 fprintf (f, "%ld
\n", i);
21333 unsigned long int i = ulongval ();
21334 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21336 fprintf (f, "%lu
\n", i);
21338 return ferror (f) || fclose (f) != 0;
21344 rm -f conftest$ac_exeext
21345 if { (ac_try="$ac_link"
21346 case "(($ac_try" in
21347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348 *) ac_try_echo=$ac_try;;
21350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21351 (eval "$ac_link") 2>&5
21353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21355 { (case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_try") 2>&5
21362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21366 echo "$as_me: program exited with status
$ac_status" >&5
21367 echo "$as_me: failed program was
:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ( exit $ac_status )
21371 if test "$ac_cv_type_unsigned_long" = yes; then
21372 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned long
)
21373 See \
`config.log' for more details." >&5
21374 echo "$as_me: error: cannot compute sizeof (unsigned long)
21375 See \`config.log
' for more details." >&2;}
21376 { (exit 77); exit 77; }; }
21378 ac_cv_sizeof_unsigned_long=0
21381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21386 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21390 cat >>confdefs.h <<_ACEOF
21391 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21396 # And check size of void *, size_t (enables tweaks for > 32bit address space)
21397 { echo "$as_me:$LINENO: checking for void *" >&5
21398 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21399 if test "${ac_cv_type_void_p+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 cat >conftest.$ac_ext <<_ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 $ac_includes_default
21409 typedef void * ac__type_new_;
21413 if ((ac__type_new_ *) 0)
21415 if (sizeof (ac__type_new_))
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_compile") 2>conftest.er1
21430 grep -v '^
*+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } && {
21435 test -z "$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 } && test -s conftest.$ac_objext; then
21438 ac_cv_type_void_p=yes
21440 echo "$as_me: failed program was:" >&5
21441 sed 's
/^
/|
/' conftest.$ac_ext >&5
21443 ac_cv_type_void_p=no
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21449 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21451 # The cast to long int works around a bug in the HP C Compiler
21452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21454 # This bug is HP SR number 8606223364.
21455 { echo "$as_me:$LINENO: checking size of void *" >&5
21456 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21457 if test "${ac_cv_sizeof_void_p+set}" = set; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 if test "$cross_compiling" = yes; then
21461 # Depending upon the size, compute the lo and hi bounds.
21462 cat >conftest.
$ac_ext <<_ACEOF
21465 cat confdefs.h
>>conftest.
$ac_ext
21466 cat >>conftest.
$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 $ac_includes_default
21469 typedef void * ac__type_sizeof_;
21473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21480 rm -f conftest.
$ac_objext
21481 if { (ac_try
="$ac_compile"
21482 case "(($ac_try" in
21483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_compile") 2>conftest.er1
21489 grep -v '^ *+' conftest.er1 >conftest.err
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } && {
21494 test -z "$ac_c_werror_flag" ||
21495 test ! -s conftest.err
21496 } && test -s conftest.$ac_objext; then
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 $ac_includes_default
21506 typedef void * ac__type_sizeof_;
21510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21517 rm -f conftest.$ac_objext
21518 if { (ac_try="$ac_compile"
21519 case "(($ac_try" in
21520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21521 *) ac_try_echo
=$ac_try;;
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_compile") 2>conftest.er1
21526 grep -v '^ *+' conftest.er1
>conftest.err
21528 cat conftest.err
>&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } && {
21531 test -z "$ac_c_werror_flag" ||
21532 test ! -s conftest.err
21533 } && test -s conftest.
$ac_objext; then
21534 ac_hi
=$ac_mid; break
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.
$ac_ext >&5
21539 ac_lo
=`expr $ac_mid + 1`
21540 if test $ac_lo -le $ac_mid; then
21544 ac_mid
=`expr 2 '*' $ac_mid + 1`
21547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.
$ac_ext >&5
21553 cat >conftest.
$ac_ext <<_ACEOF
21556 cat confdefs.h
>>conftest.
$ac_ext
21557 cat >>conftest.
$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 $ac_includes_default
21560 typedef void * ac__type_sizeof_;
21564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21571 rm -f conftest.
$ac_objext
21572 if { (ac_try
="$ac_compile"
21573 case "(($ac_try" in
21574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_compile") 2>conftest.er1
21580 grep -v '^ *+' conftest.er1 >conftest.err
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && {
21585 test -z "$ac_c_werror_flag" ||
21586 test ! -s conftest.err
21587 } && test -s conftest.$ac_objext; then
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 $ac_includes_default
21597 typedef void * ac__type_sizeof_;
21601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21612 *) ac_try_echo
=$ac_try;;
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_compile") 2>conftest.er1
21617 grep -v '^ *+' conftest.er1
>conftest.err
21619 cat conftest.err
>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && {
21622 test -z "$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21624 } && test -s conftest.
$ac_objext; then
21625 ac_lo
=$ac_mid; break
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.
$ac_ext >&5
21630 ac_hi
=`expr '(' $ac_mid ')' - 1`
21631 if test $ac_mid -le $ac_hi; then
21635 ac_mid
=`expr 2 '*' $ac_mid`
21638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.
$ac_ext >&5
21647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21651 # Binary search between lo and hi bounds.
21652 while test "x$ac_lo" != "x$ac_hi"; do
21653 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21654 cat >conftest.
$ac_ext <<_ACEOF
21657 cat confdefs.h
>>conftest.
$ac_ext
21658 cat >>conftest.
$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 $ac_includes_default
21661 typedef void * ac__type_sizeof_;
21665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21672 rm -f conftest.
$ac_objext
21673 if { (ac_try
="$ac_compile"
21674 case "(($ac_try" in
21675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21676 *) ac_try_echo=$ac_try;;
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679 (eval "$ac_compile") 2>conftest.er1
21681 grep -v '^ *+' conftest.er1 >conftest.err
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest.$ac_objext; then
21691 echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_lo=`expr '(' $ac_mid ')' + 1`
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21701 '') if test "$ac_cv_type_void_p" = yes; then
21702 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21703 See \`config.log
' for more details." >&5
21704 echo "$as_me: error: cannot compute sizeof (void *)
21705 See \`config.log' for more details.
" >&2;}
21706 { (exit 77); exit 77; }; }
21708 ac_cv_sizeof_void_p=0
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 $ac_includes_default
21719 typedef void * ac__type_sizeof_;
21720 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21721 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21723 #include <stdlib.h>
21728 FILE *f = fopen ("conftest.val
", "w
");
21731 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21733 long int i = longval ();
21734 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21736 fprintf (f, "%ld
\n", i);
21740 unsigned long int i = ulongval ();
21741 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21743 fprintf (f, "%lu
\n", i);
21745 return ferror (f) || fclose (f) != 0;
21751 rm -f conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_link") 2>&5
21760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21762 { (case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_try") 2>&5
21769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_cv_sizeof_void_p=`cat conftest.val`
21773 echo "$as_me: program exited with status
$ac_status" >&5
21774 echo "$as_me: failed program was
:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ( exit $ac_status )
21778 if test "$ac_cv_type_void_p" = yes; then
21779 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
21780 See \
`config.log' for more details." >&5
21781 echo "$as_me: error: cannot compute sizeof (void *)
21782 See \`config.log
' for more details." >&2;}
21783 { (exit 77); exit 77; }; }
21785 ac_cv_sizeof_void_p=0
21788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21792 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21793 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21797 cat >>confdefs.h <<_ACEOF
21798 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21802 { echo "$as_me:$LINENO: checking for size_t" >&5
21803 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21804 if test "${ac_cv_type_size_t+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 cat >conftest.$ac_ext <<_ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21813 $ac_includes_default
21814 typedef size_t ac__type_new_;
21818 if ((ac__type_new_ *) 0)
21820 if (sizeof (ac__type_new_))
21826 rm -f conftest.$ac_objext
21827 if { (ac_try="$ac_compile"
21828 case "(($ac_try" in
21829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830 *) ac_try_echo=$ac_try;;
21832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833 (eval "$ac_compile") 2>conftest.er1
21835 grep -v '^
*+' conftest.er1 >conftest.err
21837 cat conftest.err >&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && {
21840 test -z "$ac_c_werror_flag" ||
21841 test ! -s conftest.err
21842 } && test -s conftest.$ac_objext; then
21843 ac_cv_type_size_t=yes
21845 echo "$as_me: failed program was:" >&5
21846 sed 's
/^
/|
/' conftest.$ac_ext >&5
21848 ac_cv_type_size_t=no
21851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21854 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21856 # The cast to long int works around a bug in the HP C Compiler
21857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21859 # This bug is HP SR number 8606223364.
21860 { echo "$as_me:$LINENO: checking size of size_t" >&5
21861 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21862 if test "${ac_cv_sizeof_size_t+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21865 if test "$cross_compiling" = yes; then
21866 # Depending upon the size, compute the lo and hi bounds.
21867 cat >conftest.
$ac_ext <<_ACEOF
21870 cat confdefs.h
>>conftest.
$ac_ext
21871 cat >>conftest.
$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 $ac_includes_default
21874 typedef size_t ac__type_sizeof_;
21878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21885 rm -f conftest.
$ac_objext
21886 if { (ac_try
="$ac_compile"
21887 case "(($ac_try" in
21888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21889 *) ac_try_echo=$ac_try;;
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892 (eval "$ac_compile") 2>conftest.er1
21894 grep -v '^ *+' conftest.er1 >conftest.err
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } && {
21899 test -z "$ac_c_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest.$ac_objext; then
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 $ac_includes_default
21911 typedef size_t ac__type_sizeof_;
21915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21922 rm -f conftest.$ac_objext
21923 if { (ac_try="$ac_compile"
21924 case "(($ac_try" in
21925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21926 *) ac_try_echo
=$ac_try;;
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929 (eval "$ac_compile") 2>conftest.er1
21931 grep -v '^ *+' conftest.er1
>conftest.err
21933 cat conftest.err
>&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } && {
21936 test -z "$ac_c_werror_flag" ||
21937 test ! -s conftest.err
21938 } && test -s conftest.
$ac_objext; then
21939 ac_hi
=$ac_mid; break
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.
$ac_ext >&5
21944 ac_lo
=`expr $ac_mid + 1`
21945 if test $ac_lo -le $ac_mid; then
21949 ac_mid
=`expr 2 '*' $ac_mid + 1`
21952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.
$ac_ext >&5
21958 cat >conftest.
$ac_ext <<_ACEOF
21961 cat confdefs.h
>>conftest.
$ac_ext
21962 cat >>conftest.
$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964 $ac_includes_default
21965 typedef size_t ac__type_sizeof_;
21969 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21976 rm -f conftest.
$ac_objext
21977 if { (ac_try
="$ac_compile"
21978 case "(($ac_try" in
21979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.$ac_objext; then
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 $ac_includes_default
22002 typedef size_t ac__type_sizeof_;
22006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22013 rm -f conftest.$ac_objext
22014 if { (ac_try="$ac_compile"
22015 case "(($ac_try" in
22016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22017 *) ac_try_echo
=$ac_try;;
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020 (eval "$ac_compile") 2>conftest.er1
22022 grep -v '^ *+' conftest.er1
>conftest.err
22024 cat conftest.err
>&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && {
22027 test -z "$ac_c_werror_flag" ||
22028 test ! -s conftest.err
22029 } && test -s conftest.
$ac_objext; then
22030 ac_lo
=$ac_mid; break
22032 echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.
$ac_ext >&5
22035 ac_hi
=`expr '(' $ac_mid ')' - 1`
22036 if test $ac_mid -le $ac_hi; then
22040 ac_mid
=`expr 2 '*' $ac_mid`
22043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.
$ac_ext >&5
22052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22056 # Binary search between lo and hi bounds.
22057 while test "x$ac_lo" != "x$ac_hi"; do
22058 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22059 cat >conftest.
$ac_ext <<_ACEOF
22062 cat confdefs.h
>>conftest.
$ac_ext
22063 cat >>conftest.
$ac_ext <<_ACEOF
22064 /* end confdefs.h. */
22065 $ac_includes_default
22066 typedef size_t ac__type_sizeof_;
22070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22077 rm -f conftest.
$ac_objext
22078 if { (ac_try
="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_lo=`expr '(' $ac_mid ')' + 1`
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22105 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22106 '') if test "$ac_cv_type_size_t" = yes; then
22107 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22108 See \`config.log
' for more details." >&5
22109 echo "$as_me: error: cannot compute sizeof (size_t)
22110 See \`config.log' for more details.
" >&2;}
22111 { (exit 77); exit 77; }; }
22113 ac_cv_sizeof_size_t=0
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22124 typedef size_t ac__type_sizeof_;
22125 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22126 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22128 #include <stdlib.h>
22133 FILE *f = fopen ("conftest.val
", "w
");
22136 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22138 long int i = longval ();
22139 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22141 fprintf (f, "%ld
\n", i);
22145 unsigned long int i = ulongval ();
22146 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22148 fprintf (f, "%lu
\n", i);
22150 return ferror (f) || fclose (f) != 0;
22156 rm -f conftest$ac_exeext
22157 if { (ac_try="$ac_link"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_link") 2>&5
22165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22167 { (case "(($ac_try" in
22168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169 *) ac_try_echo=$ac_try;;
22171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_try") 2>&5
22174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22175 (exit $ac_status); }; }; then
22176 ac_cv_sizeof_size_t=`cat conftest.val`
22178 echo "$as_me: program exited with status
$ac_status" >&5
22179 echo "$as_me: failed program was
:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ( exit $ac_status )
22183 if test "$ac_cv_type_size_t" = yes; then
22184 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
22185 See \
`config.log' for more details." >&5
22186 echo "$as_me: error: cannot compute sizeof (size_t)
22187 See \`config.log
' for more details." >&2;}
22188 { (exit 77); exit 77; }; }
22190 ac_cv_sizeof_size_t=0
22193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22197 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22198 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22202 cat >>confdefs.h <<_ACEOF
22203 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22208 # Decide whether float4 is passed by value: user-selectable, enabled by default
22209 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22210 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22212 pgac_args="$pgac_args enable_float4_byval"
22214 # Check whether --enable-float4-byval was given.
22215 if test "${enable_float4_byval+set}" = set; then
22216 enableval=$enable_float4_byval;
22220 cat >>confdefs.h <<\_ACEOF
22221 #define USE_FLOAT4_BYVAL 1
22224 float4passbyval=true
22227 float4passbyval=false
22230 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22231 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22232 { (exit 1); exit 1; }; }
22237 enable_float4_byval=yes
22239 cat >>confdefs.h <<\_ACEOF
22240 #define USE_FLOAT4_BYVAL 1
22243 float4passbyval=true
22247 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22248 echo "${ECHO_T}$enable_float4_byval" >&6; }
22250 cat >>confdefs.h <<_ACEOF
22251 #define FLOAT4PASSBYVAL $float4passbyval
22255 # Decide whether float8 is passed by value.
22256 # Note: this setting also controls int8 and related types such as timestamp.
22257 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22258 # If not, trying to select it is an error.
22259 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22260 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22261 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22263 pgac_args="$pgac_args enable_float8_byval"
22265 # Check whether --enable-float8-byval was given.
22266 if test "${enable_float8_byval+set}" = set; then
22267 enableval=$enable_float8_byval;
22276 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22277 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22278 { (exit 1); exit 1; }; }
22283 enable_float8_byval=yes
22290 pgac_args="$pgac_args enable_float8_byval"
22292 # Check whether --enable-float8-byval was given.
22293 if test "${enable_float8_byval+set}" = set; then
22294 enableval=$enable_float8_byval;
22303 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22304 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22305 { (exit 1); exit 1; }; }
22310 enable_float8_byval=no
22315 if test "$enable_float8_byval" = yes ; then
22316 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22317 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22318 { (exit 1); exit 1; }; }
22321 if test "$enable_float8_byval" = yes ; then
22323 cat >>confdefs.h <<\_ACEOF
22324 #define USE_FLOAT8_BYVAL 1
22327 float8passbyval=true
22329 float8passbyval=false
22331 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22332 echo "${ECHO_T}$enable_float8_byval" >&6; }
22334 cat >>confdefs.h <<_ACEOF
22335 #define FLOAT8PASSBYVAL $float8passbyval
22339 # Determine memory alignment requirements for the basic C data types.
22341 { echo "$as_me:$LINENO: checking for short" >&5
22342 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22343 if test "${ac_cv_type_short+set}" = set; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22346 cat >conftest.$ac_ext <<_ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22352 $ac_includes_default
22353 typedef short ac__type_new_;
22357 if ((ac__type_new_ *) 0)
22359 if (sizeof (ac__type_new_))
22365 rm -f conftest.$ac_objext
22366 if { (ac_try="$ac_compile"
22367 case "(($ac_try" in
22368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369 *) ac_try_echo=$ac_try;;
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372 (eval "$ac_compile") 2>conftest.er1
22374 grep -v '^
*+' conftest.er1 >conftest.err
22376 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && {
22379 test -z "$ac_c_werror_flag" ||
22380 test ! -s conftest.err
22381 } && test -s conftest.$ac_objext; then
22382 ac_cv_type_short=yes
22384 echo "$as_me: failed program was:" >&5
22385 sed 's
/^
/|
/' conftest.$ac_ext >&5
22387 ac_cv_type_short=no
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22392 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22393 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22395 # The cast to long int works around a bug in the HP C Compiler,
22396 # see AC_CHECK_SIZEOF for more information.
22397 { echo "$as_me:$LINENO: checking alignment of short" >&5
22398 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22399 if test "${ac_cv_alignof_short+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22402 if test "$cross_compiling" = yes; then
22403 # Depending upon the size, compute the lo and hi bounds.
22404 cat >conftest.$ac_ext <<_ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 $ac_includes_default
22412 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22414 typedef struct { char x; short y; } ac__type_alignof_;
22418 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22425 rm -f conftest.$ac_objext
22426 if { (ac_try="$ac_compile"
22427 case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_compile") 2>conftest.er1
22434 grep -v '^
*+' conftest.er1 >conftest.err
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && {
22439 test -z "$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 } && test -s conftest.$ac_objext; then
22444 cat >conftest.$ac_ext <<_ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22450 $ac_includes_default
22452 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22454 typedef struct { char x; short y; } ac__type_alignof_;
22458 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_compile") 2>conftest.er1
22474 grep -v '^
*+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } && {
22479 test -z "$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 } && test -s conftest.$ac_objext; then
22482 ac_hi=$ac_mid; break
22484 echo "$as_me: failed program was:" >&5
22485 sed 's
/^
/|
/' conftest.$ac_ext >&5
22487 ac_lo=`expr $ac_mid + 1`
22488 if test $ac_lo -le $ac_mid; then
22492 ac_mid=`expr 2 '*' $ac_mid + 1`
22495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498 echo "$as_me: failed program was:" >&5
22499 sed 's
/^
/|
/' conftest.$ac_ext >&5
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 $ac_includes_default
22509 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22511 typedef struct { char x; short y; } ac__type_alignof_;
22515 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_compile") 2>conftest.er1
22531 grep -v '^
*+' conftest.er1 >conftest.err
22533 cat conftest.err >&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); } && {
22536 test -z "$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22538 } && test -s conftest.$ac_objext; then
22541 cat >conftest.$ac_ext <<_ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h. */
22547 $ac_includes_default
22549 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22551 typedef struct { char x; short y; } ac__type_alignof_;
22555 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22562 rm -f conftest.$ac_objext
22563 if { (ac_try="$ac_compile"
22564 case "(($ac_try" in
22565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566 *) ac_try_echo=$ac_try;;
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569 (eval "$ac_compile") 2>conftest.er1
22571 grep -v '^
*+' conftest.er1 >conftest.err
22573 cat conftest.err >&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && {
22576 test -z "$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22578 } && test -s conftest.$ac_objext; then
22579 ac_lo=$ac_mid; break
22581 echo "$as_me: failed program was:" >&5
22582 sed 's
/^
/|
/' conftest.$ac_ext >&5
22584 ac_hi=`expr '(' $ac_mid ')' - 1`
22585 if test $ac_mid -le $ac_hi; then
22589 ac_mid=`expr 2 '*' $ac_mid`
22592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22595 echo "$as_me: failed program was:" >&5
22596 sed 's
/^
/|
/' conftest.$ac_ext >&5
22601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22605 # Binary search between lo and hi bounds.
22606 while test "x$ac_lo" != "x$ac_hi"; do
22607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22608 cat >conftest.$ac_ext <<_ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614 $ac_includes_default
22616 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22618 typedef struct { char x; short y; } ac__type_alignof_;
22622 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22629 rm -f conftest.$ac_objext
22630 if { (ac_try="$ac_compile"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_compile") 2>conftest.er1
22638 grep -v '^
*+' conftest.er1 >conftest.err
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest.$ac_objext; then
22648 echo "$as_me: failed program was:" >&5
22649 sed 's
/^
/|
/' conftest.$ac_ext >&5
22651 ac_lo=`expr '(' $ac_mid ')' + 1`
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657 ?*) ac_cv_alignof_short=$ac_lo;;
22658 '') if test "$ac_cv_type_short" = yes; then
22659 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22660 See \`config.log' for more details.
" >&5
22661 echo "$as_me: error
: cannot compute alignment of short
22662 See \
`config.log' for more details." >&2;}
22663 { (exit 77); exit 77; }; }
22665 ac_cv_alignof_short=0
22669 cat >conftest.$ac_ext <<_ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22675 $ac_includes_default
22677 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22679 typedef struct { char x; short y; } ac__type_alignof_;
22680 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22681 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22683 #include <stdlib.h>
22688 FILE *f = fopen ("conftest.val", "w");
22691 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22693 long int i = longval ();
22694 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22696 fprintf (f, "%ld\n", i);
22700 unsigned long int i = ulongval ();
22701 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22703 fprintf (f, "%lu\n", i);
22705 return ferror (f) || fclose (f) != 0;
22711 rm -f conftest$ac_exeext
22712 if { (ac_try="$ac_link"
22713 case "(($ac_try" in
22714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22715 *) ac_try_echo
=$ac_try;;
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718 (eval "$ac_link") 2>&5
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22722 { (case "(($ac_try" in
22723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_try") 2>&5
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; }; then
22731 ac_cv_alignof_short=`cat conftest.val
`
22733 echo "$as_me: program exited with status $ac_status" >&5
22734 echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 ( exit $ac_status )
22738 if test "$ac_cv_type_short" = yes; then
22739 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22740 See \`config.log
' for more details." >&5
22741 echo "$as_me: error: cannot compute alignment of short
22742 See \`config.log' for more details.
" >&2;}
22743 { (exit 77); exit 77; }; }
22745 ac_cv_alignof_short=0
22748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22752 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_short" >&5
22753 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22757 cat >>confdefs.h <<_ACEOF
22758 #define ALIGNOF_SHORT $ac_cv_alignof_short
22762 { echo "$as_me:$LINENO: checking
for int
" >&5
22763 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
22764 if test "${ac_cv_type_int+set}" = set; then
22765 echo $ECHO_N "(cached
) $ECHO_C" >&6
22767 cat >conftest.$ac_ext <<_ACEOF
22770 cat confdefs.h >>conftest.$ac_ext
22771 cat >>conftest.$ac_ext <<_ACEOF
22772 /* end confdefs.h. */
22773 $ac_includes_default
22774 typedef int ac__type_new_;
22778 if ((ac__type_new_ *) 0)
22780 if (sizeof (ac__type_new_))
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22792 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22793 (eval "$ac_compile") 2>conftest.er1
22795 grep -v '^ *+' conftest.er1 >conftest.err
22797 cat conftest.err >&5
22798 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22799 (exit $ac_status); } && {
22800 test -z "$ac_c_werror_flag" ||
22801 test ! -s conftest.err
22802 } && test -s conftest.$ac_objext; then
22805 echo "$as_me: failed program was
:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
22814 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22816 # The cast to long int works around a bug in the HP C Compiler,
22817 # see AC_CHECK_SIZEOF for more information.
22818 { echo "$as_me:$LINENO: checking alignment of int
" >&5
22819 echo $ECHO_N "checking alignment of int...
$ECHO_C" >&6; }
22820 if test "${ac_cv_alignof_int+set}" = set; then
22821 echo $ECHO_N "(cached
) $ECHO_C" >&6
22823 if test "$cross_compiling" = yes; then
22824 # Depending upon the size, compute the lo and hi bounds.
22825 cat >conftest.$ac_ext <<_ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h. */
22831 $ac_includes_default
22833 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22835 typedef struct { char x; int y; } ac__type_alignof_;
22839 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_compile") 2>conftest.er1
22855 grep -v '^ *+' conftest.er1 >conftest.err
22857 cat conftest.err >&5
22858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest.$ac_objext; then
22865 cat >conftest.$ac_ext <<_ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22871 $ac_includes_default
22873 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22875 typedef struct { char x; int y; } ac__type_alignof_;
22879 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22886 rm -f conftest.$ac_objext
22887 if { (ac_try="$ac_compile"
22888 case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22893 (eval "$ac_compile") 2>conftest.er1
22895 grep -v '^ *+' conftest.er1 >conftest.err
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22899 (exit $ac_status); } && {
22900 test -z "$ac_c_werror_flag" ||
22901 test ! -s conftest.err
22902 } && test -s conftest.$ac_objext; then
22903 ac_hi=$ac_mid; break
22905 echo "$as_me: failed program was
:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22908 ac_lo=`expr $ac_mid + 1`
22909 if test $ac_lo -le $ac_mid; then
22913 ac_mid=`expr 2 '*' $ac_mid + 1`
22916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 echo "$as_me: failed program was
:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 cat >conftest.$ac_ext <<_ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 $ac_includes_default
22930 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22932 typedef struct { char x; int y; } ac__type_alignof_;
22936 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22943 rm -f conftest.$ac_objext
22944 if { (ac_try="$ac_compile"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22950 (eval "$ac_compile") 2>conftest.er1
22952 grep -v '^ *+' conftest.er1 >conftest.err
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22956 (exit $ac_status); } && {
22957 test -z "$ac_c_werror_flag" ||
22958 test ! -s conftest.err
22959 } && test -s conftest.$ac_objext; then
22962 cat >conftest.$ac_ext <<_ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 $ac_includes_default
22970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22972 typedef struct { char x; int y; } ac__type_alignof_;
22976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_compile") 2>conftest.er1
22992 grep -v '^ *+' conftest.er1 >conftest.err
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22996 (exit $ac_status); } && {
22997 test -z "$ac_c_werror_flag" ||
22998 test ! -s conftest.err
22999 } && test -s conftest.$ac_objext; then
23000 ac_lo=$ac_mid; break
23002 echo "$as_me: failed program was
:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23005 ac_hi=`expr '(' $ac_mid ')' - 1`
23006 if test $ac_mid -le $ac_hi; then
23010 ac_mid=`expr 2 '*' $ac_mid`
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016 echo "$as_me: failed program was
:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 # Binary search between lo and hi bounds.
23027 while test "x
$ac_lo" != "x
$ac_hi"; do
23028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23029 cat >conftest.$ac_ext <<_ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h. */
23035 $ac_includes_default
23037 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23039 typedef struct { char x; int y; } ac__type_alignof_;
23043 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23050 rm -f conftest.$ac_objext
23051 if { (ac_try="$ac_compile"
23052 case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23057 (eval "$ac_compile") 2>conftest.er1
23059 grep -v '^ *+' conftest.er1 >conftest.err
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23063 (exit $ac_status); } && {
23064 test -z "$ac_c_werror_flag" ||
23065 test ! -s conftest.err
23066 } && test -s conftest.$ac_objext; then
23069 echo "$as_me: failed program was
:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ac_lo=`expr '(' $ac_mid ')' + 1`
23075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 ?*) ac_cv_alignof_int=$ac_lo;;
23079 '') if test "$ac_cv_type_int" = yes; then
23080 { { echo "$as_me:$LINENO: error
: cannot compute alignment of int
23081 See \
`config.log' for more details." >&5
23082 echo "$as_me: error: cannot compute alignment of int
23083 See \`config.log
' for more details." >&2;}
23084 { (exit 77); exit 77; }; }
23086 ac_cv_alignof_int=0
23090 cat >conftest.$ac_ext <<_ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 $ac_includes_default
23098 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23100 typedef struct { char x; int y; } ac__type_alignof_;
23101 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23102 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23104 #include <stdlib.h>
23109 FILE *f = fopen ("conftest.val", "w");
23112 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23114 long int i = longval ();
23115 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23117 fprintf (f, "%ld\n", i);
23121 unsigned long int i = ulongval ();
23122 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23124 fprintf (f, "%lu\n", i);
23126 return ferror (f) || fclose (f) != 0;
23132 rm -f conftest$ac_exeext
23133 if { (ac_try="$ac_link"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_link") 2>&5
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23143 { (case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_try") 2>&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; }; then
23152 ac_cv_alignof_int=`cat conftest.val`
23154 echo "$as_me: program exited with status $ac_status" >&5
23155 echo "$as_me: failed program was:" >&5
23156 sed 's
/^
/|
/' conftest.$ac_ext >&5
23158 ( exit $ac_status )
23159 if test "$ac_cv_type_int" = yes; then
23160 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23161 See \`config.log' for more details.
" >&5
23162 echo "$as_me: error
: cannot compute alignment of int
23163 See \
`config.log' for more details." >&2;}
23164 { (exit 77); exit 77; }; }
23166 ac_cv_alignof_int=0
23169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23173 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23174 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23178 cat >>confdefs.h <<_ACEOF
23179 #define ALIGNOF_INT $ac_cv_alignof_int
23183 { echo "$as_me:$LINENO: checking for long" >&5
23184 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23185 if test "${ac_cv_type_long+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 cat >conftest.$ac_ext <<_ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23195 typedef long ac__type_new_;
23199 if ((ac__type_new_ *) 0)
23201 if (sizeof (ac__type_new_))
23207 rm -f conftest.$ac_objext
23208 if { (ac_try="$ac_compile"
23209 case "(($ac_try" in
23210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23211 *) ac_try_echo
=$ac_try;;
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_compile") 2>conftest.er1
23216 grep -v '^ *+' conftest.er1
>conftest.err
23218 cat conftest.err
>&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } && {
23221 test -z "$ac_c_werror_flag" ||
23222 test ! -s conftest.err
23223 } && test -s conftest.
$ac_objext; then
23224 ac_cv_type_long
=yes
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.
$ac_ext >&5
23232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23234 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23235 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23237 # The cast to long int works around a bug in the HP C Compiler,
23238 # see AC_CHECK_SIZEOF for more information.
23239 { echo "$as_me:$LINENO: checking alignment of long" >&5
23240 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23241 if test "${ac_cv_alignof_long+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23244 if test "$cross_compiling" = yes; then
23245 # Depending upon the size, compute the lo and hi bounds.
23246 cat >conftest.
$ac_ext <<_ACEOF
23249 cat confdefs.h
>>conftest.
$ac_ext
23250 cat >>conftest.
$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23252 $ac_includes_default
23254 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23256 typedef struct { char x; long y; } ac__type_alignof_;
23260 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23267 rm -f conftest.
$ac_objext
23268 if { (ac_try
="$ac_compile"
23269 case "(($ac_try" in
23270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_compile") 2>conftest.er1
23276 grep -v '^ *+' conftest.er1 >conftest.err
23278 cat conftest.err >&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest.$ac_objext; then
23286 cat >conftest.$ac_ext <<_ACEOF
23289 cat confdefs.h >>conftest.$ac_ext
23290 cat >>conftest.$ac_ext <<_ACEOF
23291 /* end confdefs.h. */
23292 $ac_includes_default
23294 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23296 typedef struct { char x; long y; } ac__type_alignof_;
23300 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23307 rm -f conftest.$ac_objext
23308 if { (ac_try="$ac_compile"
23309 case "(($ac_try" in
23310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23311 *) ac_try_echo
=$ac_try;;
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_compile") 2>conftest.er1
23316 grep -v '^ *+' conftest.er1
>conftest.err
23318 cat conftest.err
>&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } && {
23321 test -z "$ac_c_werror_flag" ||
23322 test ! -s conftest.err
23323 } && test -s conftest.
$ac_objext; then
23324 ac_hi
=$ac_mid; break
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.
$ac_ext >&5
23329 ac_lo
=`expr $ac_mid + 1`
23330 if test $ac_lo -le $ac_mid; then
23334 ac_mid
=`expr 2 '*' $ac_mid + 1`
23337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23340 echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.
$ac_ext >&5
23343 cat >conftest.
$ac_ext <<_ACEOF
23346 cat confdefs.h
>>conftest.
$ac_ext
23347 cat >>conftest.
$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23349 $ac_includes_default
23351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23353 typedef struct { char x; long y; } ac__type_alignof_;
23357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23364 rm -f conftest.
$ac_objext
23365 if { (ac_try
="$ac_compile"
23366 case "(($ac_try" in
23367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_compile") 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } && {
23378 test -z "$ac_c_werror_flag" ||
23379 test ! -s conftest.err
23380 } && test -s conftest.$ac_objext; then
23383 cat >conftest.$ac_ext <<_ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23389 $ac_includes_default
23391 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23393 typedef struct { char x; long y; } ac__type_alignof_;
23397 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23404 rm -f conftest.$ac_objext
23405 if { (ac_try="$ac_compile"
23406 case "(($ac_try" in
23407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23408 *) ac_try_echo
=$ac_try;;
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411 (eval "$ac_compile") 2>conftest.er1
23413 grep -v '^ *+' conftest.er1
>conftest.err
23415 cat conftest.err
>&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } && {
23418 test -z "$ac_c_werror_flag" ||
23419 test ! -s conftest.err
23420 } && test -s conftest.
$ac_objext; then
23421 ac_lo
=$ac_mid; break
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.
$ac_ext >&5
23426 ac_hi
=`expr '(' $ac_mid ')' - 1`
23427 if test $ac_mid -le $ac_hi; then
23431 ac_mid
=`expr 2 '*' $ac_mid`
23434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.
$ac_ext >&5
23443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23447 # Binary search between lo and hi bounds.
23448 while test "x$ac_lo" != "x$ac_hi"; do
23449 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23450 cat >conftest.
$ac_ext <<_ACEOF
23453 cat confdefs.h
>>conftest.
$ac_ext
23454 cat >>conftest.
$ac_ext <<_ACEOF
23455 /* end confdefs.h. */
23456 $ac_includes_default
23458 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23460 typedef struct { char x; long y; } ac__type_alignof_;
23464 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23471 rm -f conftest.
$ac_objext
23472 if { (ac_try
="$ac_compile"
23473 case "(($ac_try" in
23474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_compile") 2>conftest.er1
23480 grep -v '^ *+' conftest.er1 >conftest.err
23482 cat conftest.err >&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } && {
23485 test -z "$ac_c_werror_flag" ||
23486 test ! -s conftest.err
23487 } && test -s conftest.$ac_objext; then
23490 echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23493 ac_lo=`expr '(' $ac_mid ')' + 1`
23496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 ?*) ac_cv_alignof_long=$ac_lo;;
23500 '') if test "$ac_cv_type_long" = yes; then
23501 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23502 See \`config.log
' for more details." >&5
23503 echo "$as_me: error: cannot compute alignment of long
23504 See \`config.log' for more details.
" >&2;}
23505 { (exit 77); exit 77; }; }
23507 ac_cv_alignof_long=0
23511 cat >conftest.$ac_ext <<_ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h. */
23517 $ac_includes_default
23519 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23521 typedef struct { char x; long y; } ac__type_alignof_;
23522 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23523 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23525 #include <stdlib.h>
23530 FILE *f = fopen ("conftest.val
", "w
");
23533 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23535 long int i = longval ();
23536 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23538 fprintf (f, "%ld
\n", i);
23542 unsigned long int i = ulongval ();
23543 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23545 fprintf (f, "%lu
\n", i);
23547 return ferror (f) || fclose (f) != 0;
23553 rm -f conftest$ac_exeext
23554 if { (ac_try="$ac_link"
23555 case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_link") 2>&5
23562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23564 { (case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_try") 2>&5
23571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23572 (exit $ac_status); }; }; then
23573 ac_cv_alignof_long=`cat conftest.val`
23575 echo "$as_me: program exited with status
$ac_status" >&5
23576 echo "$as_me: failed program was
:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ( exit $ac_status )
23580 if test "$ac_cv_type_long" = yes; then
23581 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
23582 See \
`config.log' for more details." >&5
23583 echo "$as_me: error: cannot compute alignment of long
23584 See \`config.log
' for more details." >&2;}
23585 { (exit 77); exit 77; }; }
23587 ac_cv_alignof_long=0
23590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23594 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23595 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23599 cat >>confdefs.h <<_ACEOF
23600 #define ALIGNOF_LONG $ac_cv_alignof_long
23604 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23605 { echo "$as_me:$LINENO: checking for long long int" >&5
23606 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23607 if test "${ac_cv_type_long_long_int+set}" = set; then
23608 echo $ECHO_N "(cached) $ECHO_C" >&6
23610 cat >conftest.$ac_ext <<_ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h. */
23616 $ac_includes_default
23617 typedef long long int ac__type_new_;
23621 if ((ac__type_new_ *) 0)
23623 if (sizeof (ac__type_new_))
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23638 grep -v '^
*+' conftest.er1 >conftest.err
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23646 ac_cv_type_long_long_int=yes
23648 echo "$as_me: failed program was:" >&5
23649 sed 's
/^
/|
/' conftest.$ac_ext >&5
23651 ac_cv_type_long_long_int=no
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23656 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23657 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23659 # The cast to long int works around a bug in the HP C Compiler,
23660 # see AC_CHECK_SIZEOF for more information.
23661 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23662 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23663 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 if test "$cross_compiling" = yes; then
23667 # Depending upon the size, compute the lo and hi bounds.
23668 cat >conftest.$ac_ext <<_ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h. */
23674 $ac_includes_default
23676 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23678 typedef struct { char x; long long int y; } ac__type_alignof_;
23682 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23689 rm -f conftest.$ac_objext
23690 if { (ac_try="$ac_compile"
23691 case "(($ac_try" in
23692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693 *) ac_try_echo=$ac_try;;
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696 (eval "$ac_compile") 2>conftest.er1
23698 grep -v '^
*+' conftest.er1 >conftest.err
23700 cat conftest.err >&5
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } && {
23703 test -z "$ac_c_werror_flag" ||
23704 test ! -s conftest.err
23705 } && test -s conftest.$ac_objext; then
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 $ac_includes_default
23716 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23718 typedef struct { char x; long long int y; } ac__type_alignof_;
23722 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23729 rm -f conftest.$ac_objext
23730 if { (ac_try="$ac_compile"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_compile") 2>conftest.er1
23738 grep -v '^
*+' conftest.er1 >conftest.err
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } && {
23743 test -z "$ac_c_werror_flag" ||
23744 test ! -s conftest.err
23745 } && test -s conftest.$ac_objext; then
23746 ac_hi=$ac_mid; break
23748 echo "$as_me: failed program was:" >&5
23749 sed 's
/^
/|
/' conftest.$ac_ext >&5
23751 ac_lo=`expr $ac_mid + 1`
23752 if test $ac_lo -le $ac_mid; then
23756 ac_mid=`expr 2 '*' $ac_mid + 1`
23759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23762 echo "$as_me: failed program was:" >&5
23763 sed 's
/^
/|
/' conftest.$ac_ext >&5
23765 cat >conftest.$ac_ext <<_ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 $ac_includes_default
23773 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23775 typedef struct { char x; long long int y; } ac__type_alignof_;
23779 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_compile") 2>conftest.er1
23795 grep -v '^
*+' conftest.er1 >conftest.err
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && {
23800 test -z "$ac_c_werror_flag" ||
23801 test ! -s conftest.err
23802 } && test -s conftest.$ac_objext; then
23805 cat >conftest.$ac_ext <<_ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23811 $ac_includes_default
23813 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23815 typedef struct { char x; long long int y; } ac__type_alignof_;
23819 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_compile") 2>conftest.er1
23835 grep -v '^
*+' conftest.er1 >conftest.err
23837 cat conftest.err >&5
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest.$ac_objext; then
23843 ac_lo=$ac_mid; break
23845 echo "$as_me: failed program was:" >&5
23846 sed 's
/^
/|
/' conftest.$ac_ext >&5
23848 ac_hi=`expr '(' $ac_mid ')' - 1`
23849 if test $ac_mid -le $ac_hi; then
23853 ac_mid=`expr 2 '*' $ac_mid`
23856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23859 echo "$as_me: failed program was:" >&5
23860 sed 's
/^
/|
/' conftest.$ac_ext >&5
23865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23869 # Binary search between lo and hi bounds.
23870 while test "x$ac_lo" != "x$ac_hi"; do
23871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23872 cat >conftest.$ac_ext <<_ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878 $ac_includes_default
23880 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23882 typedef struct { char x; long long int y; } ac__type_alignof_;
23886 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_compile") 2>conftest.er1
23902 grep -v '^
*+' conftest.er1 >conftest.err
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); } && {
23907 test -z "$ac_c_werror_flag" ||
23908 test ! -s conftest.err
23909 } && test -s conftest.$ac_objext; then
23912 echo "$as_me: failed program was:" >&5
23913 sed 's
/^
/|
/' conftest.$ac_ext >&5
23915 ac_lo=`expr '(' $ac_mid ')' + 1`
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23922 '') if test "$ac_cv_type_long_long_int" = yes; then
23923 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23924 See \`config.log' for more details.
" >&5
23925 echo "$as_me: error
: cannot compute alignment of long long int
23926 See \
`config.log' for more details." >&2;}
23927 { (exit 77); exit 77; }; }
23929 ac_cv_alignof_long_long_int=0
23933 cat >conftest.$ac_ext <<_ACEOF
23936 cat confdefs.h >>conftest.$ac_ext
23937 cat >>conftest.$ac_ext <<_ACEOF
23938 /* end confdefs.h. */
23939 $ac_includes_default
23941 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23943 typedef struct { char x; long long int y; } ac__type_alignof_;
23944 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23945 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23947 #include <stdlib.h>
23952 FILE *f = fopen ("conftest.val", "w");
23955 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23957 long int i = longval ();
23958 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23960 fprintf (f, "%ld\n", i);
23964 unsigned long int i = ulongval ();
23965 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23967 fprintf (f, "%lu\n", i);
23969 return ferror (f) || fclose (f) != 0;
23975 rm -f conftest$ac_exeext
23976 if { (ac_try="$ac_link"
23977 case "(($ac_try" in
23978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23979 *) ac_try_echo
=$ac_try;;
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982 (eval "$ac_link") 2>&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23986 { (case "(($ac_try" in
23987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23988 *) ac_try_echo=$ac_try;;
23990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991 (eval "$ac_try") 2>&5
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; }; then
23995 ac_cv_alignof_long_long_int=`cat conftest.val
`
23997 echo "$as_me: program exited with status $ac_status" >&5
23998 echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24001 ( exit $ac_status )
24002 if test "$ac_cv_type_long_long_int" = yes; then
24003 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
24004 See \`config.log
' for more details." >&5
24005 echo "$as_me: error: cannot compute alignment of long long int
24006 See \`config.log' for more details.
" >&2;}
24007 { (exit 77); exit 77; }; }
24009 ac_cv_alignof_long_long_int=0
24012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24016 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_long_long_int" >&5
24017 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
24021 cat >>confdefs.h <<_ACEOF
24022 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
24027 { echo "$as_me:$LINENO: checking
for double
" >&5
24028 echo $ECHO_N "checking
for double...
$ECHO_C" >&6; }
24029 if test "${ac_cv_type_double+set}" = set; then
24030 echo $ECHO_N "(cached
) $ECHO_C" >&6
24032 cat >conftest.$ac_ext <<_ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h. */
24038 $ac_includes_default
24039 typedef double ac__type_new_;
24043 if ((ac__type_new_ *) 0)
24045 if (sizeof (ac__type_new_))
24051 rm -f conftest.$ac_objext
24052 if { (ac_try="$ac_compile"
24053 case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_compile") 2>conftest.er1
24060 grep -v '^ *+' conftest.er1 >conftest.err
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24064 (exit $ac_status); } && {
24065 test -z "$ac_c_werror_flag" ||
24066 test ! -s conftest.err
24067 } && test -s conftest.$ac_objext; then
24068 ac_cv_type_double=yes
24070 echo "$as_me: failed program was
:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 ac_cv_type_double=no
24076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24078 { echo "$as_me:$LINENO: result
: $ac_cv_type_double" >&5
24079 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24081 # The cast to long int works around a bug in the HP C Compiler,
24082 # see AC_CHECK_SIZEOF for more information.
24083 { echo "$as_me:$LINENO: checking alignment of double
" >&5
24084 echo $ECHO_N "checking alignment of double...
$ECHO_C" >&6; }
24085 if test "${ac_cv_alignof_double+set}" = set; then
24086 echo $ECHO_N "(cached
) $ECHO_C" >&6
24088 if test "$cross_compiling" = yes; then
24089 # Depending upon the size, compute the lo and hi bounds.
24090 cat >conftest.$ac_ext <<_ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 $ac_includes_default
24098 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24100 typedef struct { char x; double y; } ac__type_alignof_;
24104 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24111 rm -f conftest.$ac_objext
24112 if { (ac_try="$ac_compile"
24113 case "(($ac_try" in
24114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24118 (eval "$ac_compile") 2>conftest.er1
24120 grep -v '^ *+' conftest.er1 >conftest.err
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest.$ac_objext; then
24130 cat >conftest.$ac_ext <<_ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24136 $ac_includes_default
24138 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24140 typedef struct { char x; double y; } ac__type_alignof_;
24144 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24158 (eval "$ac_compile") 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest.$ac_objext; then
24168 ac_hi=$ac_mid; break
24170 echo "$as_me: failed program was
:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 ac_lo=`expr $ac_mid + 1`
24174 if test $ac_lo -le $ac_mid; then
24178 ac_mid=`expr 2 '*' $ac_mid + 1`
24181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24184 echo "$as_me: failed program was
:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 cat >conftest.$ac_ext <<_ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */
24193 $ac_includes_default
24195 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24197 typedef struct { char x; double y; } ac__type_alignof_;
24201 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24208 rm -f conftest.$ac_objext
24209 if { (ac_try="$ac_compile"
24210 case "(($ac_try" in
24211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24212 *) ac_try_echo=$ac_try;;
24214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24215 (eval "$ac_compile") 2>conftest.er1
24217 grep -v '^ *+' conftest.er1 >conftest.err
24219 cat conftest.err >&5
24220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24221 (exit $ac_status); } && {
24222 test -z "$ac_c_werror_flag" ||
24223 test ! -s conftest.err
24224 } && test -s conftest.$ac_objext; then
24227 cat >conftest.$ac_ext <<_ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h. */
24233 $ac_includes_default
24235 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24237 typedef struct { char x; double y; } ac__type_alignof_;
24241 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24248 rm -f conftest.$ac_objext
24249 if { (ac_try="$ac_compile"
24250 case "(($ac_try" in
24251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252 *) ac_try_echo=$ac_try;;
24254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24255 (eval "$ac_compile") 2>conftest.er1
24257 grep -v '^ *+' conftest.er1 >conftest.err
24259 cat conftest.err >&5
24260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24261 (exit $ac_status); } && {
24262 test -z "$ac_c_werror_flag" ||
24263 test ! -s conftest.err
24264 } && test -s conftest.$ac_objext; then
24265 ac_lo=$ac_mid; break
24267 echo "$as_me: failed program was
:" >&5
24268 sed 's/^/| /' conftest.$ac_ext >&5
24270 ac_hi=`expr '(' $ac_mid ')' - 1`
24271 if test $ac_mid -le $ac_hi; then
24275 ac_mid=`expr 2 '*' $ac_mid`
24278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24281 echo "$as_me: failed program was
:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 # Binary search between lo and hi bounds.
24292 while test "x
$ac_lo" != "x
$ac_hi"; do
24293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 $ac_includes_default
24302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24304 typedef struct { char x; double y; } ac__type_alignof_;
24308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24315 rm -f conftest.$ac_objext
24316 if { (ac_try="$ac_compile"
24317 case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24322 (eval "$ac_compile") 2>conftest.er1
24324 grep -v '^ *+' conftest.er1 >conftest.err
24326 cat conftest.err >&5
24327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24328 (exit $ac_status); } && {
24329 test -z "$ac_c_werror_flag" ||
24330 test ! -s conftest.err
24331 } && test -s conftest.$ac_objext; then
24334 echo "$as_me: failed program was
:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24337 ac_lo=`expr '(' $ac_mid ')' + 1`
24340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24343 ?*) ac_cv_alignof_double=$ac_lo;;
24344 '') if test "$ac_cv_type_double" = yes; then
24345 { { echo "$as_me:$LINENO: error
: cannot compute alignment of double
24346 See \
`config.log' for more details." >&5
24347 echo "$as_me: error: cannot compute alignment of double
24348 See \`config.log
' for more details." >&2;}
24349 { (exit 77); exit 77; }; }
24351 ac_cv_alignof_double=0
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 $ac_includes_default
24363 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24365 typedef struct { char x; double y; } ac__type_alignof_;
24366 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24367 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24369 #include <stdlib.h>
24374 FILE *f = fopen ("conftest.val", "w");
24377 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24379 long int i = longval ();
24380 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24382 fprintf (f, "%ld\n", i);
24386 unsigned long int i = ulongval ();
24387 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24389 fprintf (f, "%lu\n", i);
24391 return ferror (f) || fclose (f) != 0;
24397 rm -f conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_link") 2>&5
24406 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_try") 2>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24417 ac_cv_alignof_double=`cat conftest.val`
24419 echo "$as_me: program exited with status $ac_status" >&5
24420 echo "$as_me: failed program was:" >&5
24421 sed 's
/^
/|
/' conftest.$ac_ext >&5
24423 ( exit $ac_status )
24424 if test "$ac_cv_type_double" = yes; then
24425 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24426 See \`config.log' for more details.
" >&5
24427 echo "$as_me: error
: cannot compute alignment of double
24428 See \
`config.log' for more details." >&2;}
24429 { (exit 77); exit 77; }; }
24431 ac_cv_alignof_double=0
24434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24438 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24439 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24443 cat >>confdefs.h <<_ACEOF
24444 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24449 # Compute maximum alignment of any basic type.
24450 # We assume long's alignment is at least as strong as char, short, or int;
24451 # but we must check long long (if it exists) and double.
24453 MAX_ALIGNOF=$ac_cv_alignof_long
24454 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24455 MAX_ALIGNOF=$ac_cv_alignof_double
24457 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24458 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24461 cat >>confdefs.h <<_ACEOF
24462 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24467 # Some platforms predefine the types int8, int16, etc. Only check
24468 # a (hopefully) representative subset.
24469 { echo "$as_me:$LINENO: checking for int8" >&5
24470 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24471 if test "${ac_cv_type_int8+set}" = set; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24474 cat >conftest.$ac_ext <<_ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24481 #ifdef HAVE_SUPPORTDEFS_H
24482 #include <SupportDefs.h>
24485 typedef int8 ac__type_new_;
24489 if ((ac__type_new_ *) 0)
24491 if (sizeof (ac__type_new_))
24497 rm -f conftest.$ac_objext
24498 if { (ac_try="$ac_compile"
24499 case "(($ac_try" in
24500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24501 *) ac_try_echo
=$ac_try;;
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504 (eval "$ac_compile") 2>conftest.er1
24506 grep -v '^ *+' conftest.er1
>conftest.err
24508 cat conftest.err
>&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } && {
24511 test -z "$ac_c_werror_flag" ||
24512 test ! -s conftest.err
24513 } && test -s conftest.
$ac_objext; then
24514 ac_cv_type_int8
=yes
24516 echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.
$ac_ext >&5
24522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24524 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24525 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24526 if test $ac_cv_type_int8 = yes; then
24528 cat >>confdefs.h
<<_ACEOF
24529 #define HAVE_INT8 1
24534 { echo "$as_me:$LINENO: checking for uint8" >&5
24535 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24536 if test "${ac_cv_type_uint8+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24539 cat >conftest.
$ac_ext <<_ACEOF
24542 cat confdefs.h
>>conftest.
$ac_ext
24543 cat >>conftest.
$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24546 #ifdef HAVE_SUPPORTDEFS_H
24547 #include <SupportDefs.h>
24550 typedef uint8 ac__type_new_;
24554 if ((ac__type_new_ *) 0)
24556 if (sizeof (ac__type_new_))
24562 rm -f conftest.
$ac_objext
24563 if { (ac_try
="$ac_compile"
24564 case "(($ac_try" in
24565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_compile") 2>conftest.er1
24571 grep -v '^ *+' conftest.er1 >conftest.err
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest.$ac_objext; then
24579 ac_cv_type_uint8=yes
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24584 ac_cv_type_uint8=no
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24589 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24590 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24591 if test $ac_cv_type_uint8 = yes; then
24593 cat >>confdefs.h <<_ACEOF
24594 #define HAVE_UINT8 1
24599 { echo "$as_me:$LINENO: checking for int64" >&5
24600 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24601 if test "${ac_cv_type_int64+set}" = set; then
24602 echo $ECHO_N "(cached) $ECHO_C" >&6
24604 cat >conftest.$ac_ext <<_ACEOF
24607 cat confdefs.h >>conftest.$ac_ext
24608 cat >>conftest.$ac_ext <<_ACEOF
24609 /* end confdefs.h. */
24611 #ifdef HAVE_SUPPORTDEFS_H
24612 #include <SupportDefs.h>
24615 typedef int64 ac__type_new_;
24619 if ((ac__type_new_ *) 0)
24621 if (sizeof (ac__type_new_))
24627 rm -f conftest.$ac_objext
24628 if { (ac_try="$ac_compile"
24629 case "(($ac_try" in
24630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24631 *) ac_try_echo
=$ac_try;;
24633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24634 (eval "$ac_compile") 2>conftest.er1
24636 grep -v '^ *+' conftest.er1
>conftest.err
24638 cat conftest.err
>&5
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); } && {
24641 test -z "$ac_c_werror_flag" ||
24642 test ! -s conftest.err
24643 } && test -s conftest.
$ac_objext; then
24644 ac_cv_type_int64
=yes
24646 echo "$as_me: failed program was:" >&5
24647 sed 's/^/| /' conftest.
$ac_ext >&5
24649 ac_cv_type_int64
=no
24652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24654 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24655 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24656 if test $ac_cv_type_int64 = yes; then
24658 cat >>confdefs.h
<<_ACEOF
24659 #define HAVE_INT64 1
24664 { echo "$as_me:$LINENO: checking for uint64" >&5
24665 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24666 if test "${ac_cv_type_uint64+set}" = set; then
24667 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 cat >conftest.
$ac_ext <<_ACEOF
24672 cat confdefs.h
>>conftest.
$ac_ext
24673 cat >>conftest.
$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24676 #ifdef HAVE_SUPPORTDEFS_H
24677 #include <SupportDefs.h>
24680 typedef uint64 ac__type_new_;
24684 if ((ac__type_new_ *) 0)
24686 if (sizeof (ac__type_new_))
24692 rm -f conftest.
$ac_objext
24693 if { (ac_try
="$ac_compile"
24694 case "(($ac_try" in
24695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24699 (eval "$ac_compile") 2>conftest.er1
24701 grep -v '^ *+' conftest.er1 >conftest.err
24703 cat conftest.err >&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } && {
24706 test -z "$ac_c_werror_flag" ||
24707 test ! -s conftest.err
24708 } && test -s conftest.$ac_objext; then
24709 ac_cv_type_uint64=yes
24711 echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24714 ac_cv_type_uint64=no
24717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24720 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24721 if test $ac_cv_type_uint64 = yes; then
24723 cat >>confdefs.h <<_ACEOF
24724 #define HAVE_UINT64 1
24731 # We also check for sig_atomic_t, which *should* be defined per ANSI
24732 # C, but is missing on some old platforms.
24733 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24734 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24735 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24736 echo $ECHO_N "(cached) $ECHO_C" >&6
24738 cat >conftest.$ac_ext <<_ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <signal.h>
24746 typedef sig_atomic_t ac__type_new_;
24750 if ((ac__type_new_ *) 0)
24752 if (sizeof (ac__type_new_))
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24762 *) ac_try_echo
=$ac_try;;
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24767 grep -v '^ *+' conftest.er1
>conftest.err
24769 cat conftest.err
>&5
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.
$ac_objext; then
24775 ac_cv_type_sig_atomic_t
=yes
24777 echo "$as_me: failed program was:" >&5
24778 sed 's/^/| /' conftest.
$ac_ext >&5
24780 ac_cv_type_sig_atomic_t
=no
24783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24785 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24786 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24787 if test $ac_cv_type_sig_atomic_t = yes; then
24789 cat >>confdefs.h
<<_ACEOF
24790 #define HAVE_SIG_ATOMIC_T 1
24798 # If the user did not disable integer datetimes, check that
24799 # there is a working 64-bit integral type to use.
24800 if test x
"$USE_INTEGER_DATETIMES" = x
"yes" &&
24801 test x
"$HAVE_LONG_INT_64" = x
"no" &&
24802 test x
"$HAVE_LONG_LONG_INT_64" = x
"no" &&
24803 test x
"$HAVE_INT64" = x
"no" ; then
24804 { { echo "$as_me:$LINENO: error:
24805 Integer-based datetime support requires a 64-bit integer type,
24806 but no such type could be found. The --disable-integer-datetimes
24807 configure option can be used to disable integer-based storage
24808 of datetime values." >&5
24809 echo "$as_me: error:
24810 Integer-based datetime support requires a 64-bit integer type,
24811 but no such type could be found. The --disable-integer-datetimes
24812 configure option can be used to disable integer-based storage
24813 of datetime values." >&2;}
24814 { (exit 1); exit 1; }; }
24818 if test "$PORTNAME" != "win32"
24820 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24821 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24822 if test "${pgac_cv_func_posix_signals+set}" = set; then
24823 echo $ECHO_N "(cached) $ECHO_C" >&6
24825 cat >conftest.
$ac_ext <<_ACEOF
24828 cat confdefs.h
>>conftest.
$ac_ext
24829 cat >>conftest.
$ac_ext <<_ACEOF
24830 /* end confdefs.h. */
24831 #include <signal.h>
24836 struct sigaction act, oact;
24837 sigemptyset(&act.sa_mask);
24838 act.sa_flags = SA_RESTART;
24839 sigaction(0, &act, &oact);
24844 rm -f conftest.
$ac_objext conftest
$ac_exeext
24845 if { (ac_try
="$ac_link"
24846 case "(($ac_try" in
24847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_link") 2>conftest.er1
24853 grep -v '^ *+' conftest.er1 >conftest.err
24855 cat conftest.err >&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && {
24858 test -z "$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24860 } && test -s conftest$ac_exeext &&
24861 $as_test_x conftest$ac_exeext; then
24862 pgac_cv_func_posix_signals=yes
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24867 pgac_cv_func_posix_signals=no
24870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24871 conftest$ac_exeext conftest.$ac_ext
24873 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24874 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24875 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24877 cat >>confdefs.h <<\_ACEOF
24878 #define HAVE_POSIX_SIGNALS
24882 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24884 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24885 { { echo "$as_me:$LINENO: error:
24886 Thread-safety requires POSIX signals, which are not supported by this
24887 operating system." >&5
24888 echo "$as_me: error:
24889 Thread-safety requires POSIX signals, which are not supported by this
24890 operating system." >&2;}
24891 { (exit 1); exit 1; }; }
24895 if test $ac_cv_func_fseeko = yes; then
24896 # Check whether --enable-largefile was given.
24897 if test "${enable_largefile+set}" = set; then
24898 enableval=$enable_largefile;
24901 if test "$enable_largefile" != no; then
24903 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24904 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24905 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 ac_cv_sys_largefile_CC=no
24909 if test "$GCC" != yes; then
24912 # IRIX 6.2 and later do not support large files by default,
24913 # so use the C compiler's -n32 option if that helps.
24914 cat >conftest.$ac_ext <<_ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h. */
24920 #include <sys/types.h>
24921 /* Check that off_t can represent 2**63 - 1 correctly.
24922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24923 since some C++ compilers masquerading as C compilers
24924 incorrectly reject 9223372036854775807. */
24925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24927 && LARGE_OFF_T % 2147483647 == 1)
24937 rm -f conftest.$ac_objext
24938 if { (ac_try="$ac_compile"
24939 case "(($ac_try" in
24940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24941 *) ac_try_echo
=$ac_try;;
24943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24944 (eval "$ac_compile") 2>conftest.er1
24946 grep -v '^ *+' conftest.er1
>conftest.err
24948 cat conftest.err
>&5
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } && {
24951 test -z "$ac_c_werror_flag" ||
24952 test ! -s conftest.err
24953 } && test -s conftest.
$ac_objext; then
24956 echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.
$ac_ext >&5
24962 rm -f core conftest.err conftest.
$ac_objext
24964 rm -f conftest.
$ac_objext
24965 if { (ac_try
="$ac_compile"
24966 case "(($ac_try" in
24967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_compile") 2>conftest.er1
24973 grep -v '^ *+' conftest.er1 >conftest.err
24975 cat conftest.err >&5
24976 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
24981 ac_cv_sys_largefile_CC=' -n32'; break
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24989 rm -f core conftest.err conftest.$ac_objext
24993 rm -f conftest.$ac_ext
24996 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24997 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24998 if test "$ac_cv_sys_largefile_CC" != no; then
24999 CC=$CC$ac_cv_sys_largefile_CC
25002 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25003 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25004 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25005 echo $ECHO_N "(cached) $ECHO_C" >&6
25008 cat >conftest.$ac_ext <<_ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25014 #include <sys/types.h>
25015 /* Check that off_t can represent 2**63 - 1 correctly.
25016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25017 since some C++ compilers masquerading as C compilers
25018 incorrectly reject 9223372036854775807. */
25019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25021 && LARGE_OFF_T % 2147483647 == 1)
25031 rm -f conftest.$ac_objext
25032 if { (ac_try="$ac_compile"
25033 case "(($ac_try" in
25034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25035 *) ac_try_echo
=$ac_try;;
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038 (eval "$ac_compile") 2>conftest.er1
25040 grep -v '^ *+' conftest.er1
>conftest.err
25042 cat conftest.err
>&5
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); } && {
25045 test -z "$ac_c_werror_flag" ||
25046 test ! -s conftest.err
25047 } && test -s conftest.
$ac_objext; then
25048 ac_cv_sys_file_offset_bits
=no
; break
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.
$ac_ext >&5
25056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25057 cat >conftest.
$ac_ext <<_ACEOF
25060 cat confdefs.h
>>conftest.
$ac_ext
25061 cat >>conftest.
$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063 #define _FILE_OFFSET_BITS 64
25064 #include <sys/types.h>
25065 /* Check that off_t can represent 2**63 - 1 correctly.
25066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25067 since some C++ compilers masquerading as C compilers
25068 incorrectly reject 9223372036854775807. */
25069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25071 && LARGE_OFF_T % 2147483647 == 1)
25081 rm -f conftest.
$ac_objext
25082 if { (ac_try
="$ac_compile"
25083 case "(($ac_try" in
25084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_compile") 2>conftest.er1
25090 grep -v '^ *+' conftest.er1 >conftest.err
25092 cat conftest.err >&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && {
25095 test -z "$ac_c_werror_flag" ||
25096 test ! -s conftest.err
25097 } && test -s conftest.$ac_objext; then
25098 ac_cv_sys_file_offset_bits=64; break
25100 echo "$as_me: failed program was:" >&5
25101 sed 's/^/| /' conftest.$ac_ext >&5
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107 ac_cv_sys_file_offset_bits=unknown
25111 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25112 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25113 case $ac_cv_sys_file_offset_bits in #(
25116 cat >>confdefs.h <<_ACEOF
25117 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25122 if test $ac_cv_sys_file_offset_bits = unknown; then
25123 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25124 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25125 if test "${ac_cv_sys_large_files+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25129 cat >conftest.$ac_ext <<_ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h. */
25135 #include <sys/types.h>
25136 /* Check that off_t can represent 2**63 - 1 correctly.
25137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25138 since some C++ compilers masquerading as C compilers
25139 incorrectly reject 9223372036854775807. */
25140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25142 && LARGE_OFF_T % 2147483647 == 1)
25152 rm -f conftest.$ac_objext
25153 if { (ac_try="$ac_compile"
25154 case "(($ac_try" in
25155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25156 *) ac_try_echo
=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_compile") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1
>conftest.err
25163 cat conftest.err
>&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest.
$ac_objext; then
25169 ac_cv_sys_large_files
=no
; break
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.
$ac_ext >&5
25177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25178 cat >conftest.
$ac_ext <<_ACEOF
25181 cat confdefs.h
>>conftest.
$ac_ext
25182 cat >>conftest.
$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 #define _LARGE_FILES 1
25185 #include <sys/types.h>
25186 /* Check that off_t can represent 2**63 - 1 correctly.
25187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25188 since some C++ compilers masquerading as C compilers
25189 incorrectly reject 9223372036854775807. */
25190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25192 && LARGE_OFF_T % 2147483647 == 1)
25202 rm -f conftest.
$ac_objext
25203 if { (ac_try
="$ac_compile"
25204 case "(($ac_try" in
25205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25206 *) ac_try_echo=$ac_try;;
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209 (eval "$ac_compile") 2>conftest.er1
25211 grep -v '^ *+' conftest.er1 >conftest.err
25213 cat conftest.err >&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); } && {
25216 test -z "$ac_c_werror_flag" ||
25217 test ! -s conftest.err
25218 } && test -s conftest.$ac_objext; then
25219 ac_cv_sys_large_files=1; break
25221 echo "$as_me: failed program was:" >&5
25222 sed 's/^/| /' conftest.$ac_ext >&5
25227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25228 ac_cv_sys_large_files=unknown
25232 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25233 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25234 case $ac_cv_sys_large_files in #(
25237 cat >>confdefs.h <<_ACEOF
25238 #define _LARGE_FILES $ac_cv_sys_large_files
25248 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25249 { echo "$as_me:$LINENO: checking for off_t" >&5
25250 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25251 if test "${ac_cv_type_off_t+set}" = set; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25254 cat >conftest.$ac_ext <<_ACEOF
25257 cat confdefs.h >>conftest.$ac_ext
25258 cat >>conftest.$ac_ext <<_ACEOF
25259 /* end confdefs.h. */
25260 $ac_includes_default
25261 typedef off_t ac__type_new_;
25265 if ((ac__type_new_ *) 0)
25267 if (sizeof (ac__type_new_))
25273 rm -f conftest.$ac_objext
25274 if { (ac_try="$ac_compile"
25275 case "(($ac_try" in
25276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25277 *) ac_try_echo
=$ac_try;;
25279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25280 (eval "$ac_compile") 2>conftest.er1
25282 grep -v '^ *+' conftest.er1
>conftest.err
25284 cat conftest.err
>&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } && {
25287 test -z "$ac_c_werror_flag" ||
25288 test ! -s conftest.err
25289 } && test -s conftest.
$ac_objext; then
25290 ac_cv_type_off_t
=yes
25292 echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.
$ac_ext >&5
25295 ac_cv_type_off_t
=no
25298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25300 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25301 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25303 # The cast to long int works around a bug in the HP C Compiler
25304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25306 # This bug is HP SR number 8606223364.
25307 { echo "$as_me:$LINENO: checking size of off_t" >&5
25308 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25309 if test "${ac_cv_sizeof_off_t+set}" = set; then
25310 echo $ECHO_N "(cached) $ECHO_C" >&6
25312 if test "$cross_compiling" = yes; then
25313 # Depending upon the size, compute the lo and hi bounds.
25314 cat >conftest.
$ac_ext <<_ACEOF
25317 cat confdefs.h
>>conftest.
$ac_ext
25318 cat >>conftest.
$ac_ext <<_ACEOF
25319 /* end confdefs.h. */
25320 $ac_includes_default
25321 typedef off_t ac__type_sizeof_;
25325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25332 rm -f conftest.
$ac_objext
25333 if { (ac_try
="$ac_compile"
25334 case "(($ac_try" in
25335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25336 *) ac_try_echo=$ac_try;;
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_compile") 2>conftest.er1
25341 grep -v '^ *+' conftest.er1 >conftest.err
25343 cat conftest.err >&5
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); } && {
25346 test -z "$ac_c_werror_flag" ||
25347 test ! -s conftest.err
25348 } && test -s conftest.$ac_objext; then
25351 cat >conftest.$ac_ext <<_ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h. */
25357 $ac_includes_default
25358 typedef off_t ac__type_sizeof_;
25362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25369 rm -f conftest.$ac_objext
25370 if { (ac_try="$ac_compile"
25371 case "(($ac_try" in
25372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25373 *) ac_try_echo
=$ac_try;;
25375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25376 (eval "$ac_compile") 2>conftest.er1
25378 grep -v '^ *+' conftest.er1
>conftest.err
25380 cat conftest.err
>&5
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } && {
25383 test -z "$ac_c_werror_flag" ||
25384 test ! -s conftest.err
25385 } && test -s conftest.
$ac_objext; then
25386 ac_hi
=$ac_mid; break
25388 echo "$as_me: failed program was:" >&5
25389 sed 's/^/| /' conftest.
$ac_ext >&5
25391 ac_lo
=`expr $ac_mid + 1`
25392 if test $ac_lo -le $ac_mid; then
25396 ac_mid
=`expr 2 '*' $ac_mid + 1`
25399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25402 echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.
$ac_ext >&5
25405 cat >conftest.
$ac_ext <<_ACEOF
25408 cat confdefs.h
>>conftest.
$ac_ext
25409 cat >>conftest.
$ac_ext <<_ACEOF
25410 /* end confdefs.h. */
25411 $ac_includes_default
25412 typedef off_t ac__type_sizeof_;
25416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25423 rm -f conftest.
$ac_objext
25424 if { (ac_try
="$ac_compile"
25425 case "(($ac_try" in
25426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25427 *) ac_try_echo=$ac_try;;
25429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25430 (eval "$ac_compile") 2>conftest.er1
25432 grep -v '^ *+' conftest.er1 >conftest.err
25434 cat conftest.err >&5
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest.$ac_objext; then
25442 cat >conftest.$ac_ext <<_ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 $ac_includes_default
25449 typedef off_t ac__type_sizeof_;
25453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25460 rm -f conftest.$ac_objext
25461 if { (ac_try="$ac_compile"
25462 case "(($ac_try" in
25463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25464 *) ac_try_echo
=$ac_try;;
25466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25467 (eval "$ac_compile") 2>conftest.er1
25469 grep -v '^ *+' conftest.er1
>conftest.err
25471 cat conftest.err
>&5
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); } && {
25474 test -z "$ac_c_werror_flag" ||
25475 test ! -s conftest.err
25476 } && test -s conftest.
$ac_objext; then
25477 ac_lo
=$ac_mid; break
25479 echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.
$ac_ext >&5
25482 ac_hi
=`expr '(' $ac_mid ')' - 1`
25483 if test $ac_mid -le $ac_hi; then
25487 ac_mid
=`expr 2 '*' $ac_mid`
25490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.
$ac_ext >&5
25499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25503 # Binary search between lo and hi bounds.
25504 while test "x$ac_lo" != "x$ac_hi"; do
25505 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25506 cat >conftest.
$ac_ext <<_ACEOF
25509 cat confdefs.h
>>conftest.
$ac_ext
25510 cat >>conftest.
$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25512 $ac_includes_default
25513 typedef off_t ac__type_sizeof_;
25517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25524 rm -f conftest.
$ac_objext
25525 if { (ac_try
="$ac_compile"
25526 case "(($ac_try" in
25527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25528 *) ac_try_echo=$ac_try;;
25530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25531 (eval "$ac_compile") 2>conftest.er1
25533 grep -v '^ *+' conftest.er1 >conftest.err
25535 cat conftest.err >&5
25536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537 (exit $ac_status); } && {
25538 test -z "$ac_c_werror_flag" ||
25539 test ! -s conftest.err
25540 } && test -s conftest.$ac_objext; then
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ac_lo=`expr '(' $ac_mid ')' + 1`
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25552 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25553 '') if test "$ac_cv_type_off_t" = yes; then
25554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25555 See \`config.log
' for more details." >&5
25556 echo "$as_me: error: cannot compute sizeof (off_t)
25557 See \`config.log' for more details.
" >&2;}
25558 { (exit 77); exit 77; }; }
25560 ac_cv_sizeof_off_t=0
25564 cat >conftest.$ac_ext <<_ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25570 $ac_includes_default
25571 typedef off_t ac__type_sizeof_;
25572 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25573 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25575 #include <stdlib.h>
25580 FILE *f = fopen ("conftest.val
", "w
");
25583 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25585 long int i = longval ();
25586 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25588 fprintf (f, "%ld
\n", i);
25592 unsigned long int i = ulongval ();
25593 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25595 fprintf (f, "%lu
\n", i);
25597 return ferror (f) || fclose (f) != 0;
25603 rm -f conftest$ac_exeext
25604 if { (ac_try="$ac_link"
25605 case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_link") 2>&5
25612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25614 { (case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_try") 2>&5
25621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25622 (exit $ac_status); }; }; then
25623 ac_cv_sizeof_off_t=`cat conftest.val`
25625 echo "$as_me: program exited with status
$ac_status" >&5
25626 echo "$as_me: failed program was
:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25629 ( exit $ac_status )
25630 if test "$ac_cv_type_off_t" = yes; then
25631 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
25632 See \
`config.log' for more details." >&5
25633 echo "$as_me: error: cannot compute sizeof (off_t)
25634 See \`config.log
' for more details." >&2;}
25635 { (exit 77); exit 77; }; }
25637 ac_cv_sizeof_off_t=0
25640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25644 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25645 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25649 cat >>confdefs.h <<_ACEOF
25650 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25655 # If we don't have largefile support
, can
't handle segsize >= 2GB.
25656 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25657 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25658 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25659 { (exit 1); exit 1; }; }
25662 # SunOS doesn't handle negative byte comparisons properly with
+/- return
25663 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25664 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25665 if test "${ac_cv_func_memcmp_working+set}" = set; then
25666 echo $ECHO_N "(cached) $ECHO_C" >&6
25668 if test "$cross_compiling" = yes; then
25669 ac_cv_func_memcmp_working
=no
25671 cat >conftest.
$ac_ext <<_ACEOF
25674 cat confdefs.h
>>conftest.
$ac_ext
25675 cat >>conftest.
$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25677 $ac_includes_default
25682 /* Some versions of memcmp are not 8-bit clean. */
25683 char c0 = '\100', c1 = '\200', c2 = '\201';
25684 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25687 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25688 or more and with at least one buffer not starting on a 4-byte boundary.
25689 William Lewis provided this test program. */
25694 for (i = 0; i < 4; i++)
25698 strcpy (a, "--------01111111");
25699 strcpy (b, "--------10000000");
25700 if (memcmp (a, b, 16) >= 0)
25710 rm -f conftest
$ac_exeext
25711 if { (ac_try
="$ac_link"
25712 case "(($ac_try" in
25713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25714 *) ac_try_echo=$ac_try;;
25716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25717 (eval "$ac_link") 2>&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25721 { (case "(($ac_try" in
25722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25723 *) ac_try_echo
=$ac_try;;
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726 (eval "$ac_try") 2>&5
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); }; }; then
25730 ac_cv_func_memcmp_working
=yes
25732 echo "$as_me: program exited with status $ac_status" >&5
25733 echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.
$ac_ext >&5
25736 ( exit $ac_status )
25737 ac_cv_func_memcmp_working
=no
25739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25744 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25745 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25746 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
25747 *" memcmp.$ac_objext "* ) ;;
25748 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
25755 # Select semaphore implementation type.
25756 if test "$PORTNAME" != "win32"; then
25757 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
25759 cat >>confdefs.h
<<\_ACEOF
25760 #define USE_NAMED_POSIX_SEMAPHORES 1
25763 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
25765 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
25767 cat >>confdefs.h
<<\_ACEOF
25768 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25771 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
25774 cat >>confdefs.h
<<\_ACEOF
25775 #define USE_SYSV_SEMAPHORES 1
25778 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
25783 cat >>confdefs.h
<<\_ACEOF
25784 #define USE_WIN32_SEMAPHORES 1
25787 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
25791 # Select shared-memory implementation type.
25792 if test "$PORTNAME" != "win32"; then
25794 cat >>confdefs.h
<<\_ACEOF
25795 #define USE_SYSV_SHARED_MEMORY 1
25798 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
25801 cat >>confdefs.h
<<\_ACEOF
25802 #define USE_WIN32_SHARED_MEMORY 1
25805 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
25808 # If not set in template file, set bytes to use libc memset()
25809 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
25810 MEMSET_LOOP_LIMIT
=1024
25813 cat >>confdefs.h
<<_ACEOF
25814 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25819 if test "$enable_nls" = yes ; then
25821 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25822 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25823 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25826 ac_func_search_save_LIBS
=$LIBS
25827 cat >conftest.
$ac_ext <<_ACEOF
25830 cat confdefs.h
>>conftest.
$ac_ext
25831 cat >>conftest.
$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25834 /* Override any GCC internal prototype to avoid an error.
25835 Use char because int might match the return type of a GCC
25836 builtin and then its argument prototype would still apply. */
25840 char bind_textdomain_codeset ();
25844 return bind_textdomain_codeset ();
25849 for ac_lib
in '' intl
; do
25850 if test -z "$ac_lib"; then
25851 ac_res
="none required"
25854 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25856 rm -f conftest.
$ac_objext conftest
$ac_exeext
25857 if { (ac_try
="$ac_link"
25858 case "(($ac_try" in
25859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25860 *) ac_try_echo=$ac_try;;
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863 (eval "$ac_link") 2>conftest.er1
25865 grep -v '^ *+' conftest.er1 >conftest.err
25867 cat conftest.err >&5
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); } && {
25870 test -z "$ac_c_werror_flag" ||
25871 test ! -s conftest.err
25872 } && test -s conftest$ac_exeext &&
25873 $as_test_x conftest$ac_exeext; then
25874 ac_cv_search_bind_textdomain_codeset=$ac_res
25876 echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25884 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25888 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25891 ac_cv_search_bind_textdomain_codeset=no
25893 rm conftest.$ac_ext
25894 LIBS=$ac_func_search_save_LIBS
25896 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25897 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25898 ac_res=$ac_cv_search_bind_textdomain_codeset
25899 if test "$ac_res" != no; then
25900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25903 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25904 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25905 { (exit 1); exit 1; }; }
25908 if test "${ac_cv_header_libintl_h+set}" = set; then
25909 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25910 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25911 if test "${ac_cv_header_libintl_h+set}" = set; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25914 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25915 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25917 # Is the header compilable?
25918 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25919 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25920 cat >conftest.$ac_ext <<_ACEOF
25923 cat confdefs.h >>conftest.$ac_ext
25924 cat >>conftest.$ac_ext <<_ACEOF
25925 /* end confdefs.h. */
25926 $ac_includes_default
25927 #include <libintl.h>
25929 rm -f conftest.$ac_objext
25930 if { (ac_try="$ac_compile"
25931 case "(($ac_try" in
25932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25933 *) ac_try_echo
=$ac_try;;
25935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25936 (eval "$ac_compile") 2>conftest.er1
25938 grep -v '^ *+' conftest.er1
>conftest.err
25940 cat conftest.err
>&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } && {
25943 test -z "$ac_c_werror_flag" ||
25944 test ! -s conftest.err
25945 } && test -s conftest.
$ac_objext; then
25946 ac_header_compiler
=yes
25948 echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.
$ac_ext >&5
25951 ac_header_compiler
=no
25954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25956 echo "${ECHO_T}$ac_header_compiler" >&6; }
25958 # Is the header present?
25959 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25960 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25961 cat >conftest.
$ac_ext <<_ACEOF
25964 cat confdefs.h
>>conftest.
$ac_ext
25965 cat >>conftest.
$ac_ext <<_ACEOF
25966 /* end confdefs.h. */
25967 #include <libintl.h>
25969 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25970 case "(($ac_try" in
25971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25972 *) ac_try_echo=$ac_try;;
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25977 grep -v '^ *+' conftest.er1 >conftest.err
25979 cat conftest.err >&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); } >/dev/null && {
25982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25983 test ! -s conftest.err
25985 ac_header_preproc=yes
25987 echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25990 ac_header_preproc=no
25993 rm -f conftest.err conftest.$ac_ext
25994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25995 echo "${ECHO_T}$ac_header_preproc" >&6; }
25997 # So? What about this header?
25998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26000 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26001 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26002 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
26003 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
26004 ac_header_preproc=yes
26007 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
26008 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
26009 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
26010 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
26011 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
26012 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
26013 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
26014 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26015 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
26016 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
26017 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
26018 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
26020 ## ---------------------------------------- ##
26021 ## Report this to pgsql-bugs@postgresql.org ##
26022 ## ---------------------------------------- ##
26024 ) | sed "s/^/$as_me: WARNING: /" >&2
26027 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26028 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26029 if test "${ac_cv_header_libintl_h+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26032 ac_cv_header_libintl_h=$ac_header_preproc
26034 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26035 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26038 if test $ac_cv_header_libintl_h = yes; then
26041 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
26042 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
26043 { (exit 1); exit 1; }; }
26047 for ac_prog in msgfmt
26049 # Extract the first word of "$ac_prog", so it can be a program name with args.
26050 set dummy $ac_prog; ac_word=$2
26051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26053 if test "${ac_cv_prog_MSGFMT+set}" = set; then
26054 echo $ECHO_N "(cached) $ECHO_C" >&6
26056 if test -n "$MSGFMT"; then
26057 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
26059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26060 for as_dir in $PATH
26063 test -z "$as_dir" && as_dir=.
26064 for ac_exec_ext in '' $ac_executable_extensions; do
26065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26066 ac_cv_prog_MSGFMT="$ac_prog"
26067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26076 MSGFMT=$ac_cv_prog_MSGFMT
26077 if test -n "$MSGFMT"; then
26078 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26079 echo "${ECHO_T}$MSGFMT" >&6; }
26081 { echo "$as_me:$LINENO: result: no" >&5
26082 echo "${ECHO_T}no" >&6; }
26086 test -n "$MSGFMT" && break
26089 if test -z "$MSGFMT"; then
26090 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26091 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26092 { (exit 1); exit 1; }; }
26094 for ac_prog in msgmerge
26096 # Extract the first word of "$ac_prog", so it can be a program name with args.
26097 set dummy $ac_prog; ac_word=$2
26098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26100 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26101 echo $ECHO_N "(cached) $ECHO_C" >&6
26103 if test -n "$MSGMERGE"; then
26104 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26107 for as_dir in $PATH
26110 test -z "$as_dir" && as_dir=.
26111 for ac_exec_ext in '' $ac_executable_extensions; do
26112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26113 ac_cv_prog_MSGMERGE="$ac_prog"
26114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26123 MSGMERGE=$ac_cv_prog_MSGMERGE
26124 if test -n "$MSGMERGE"; then
26125 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26126 echo "${ECHO_T}$MSGMERGE" >&6; }
26128 { echo "$as_me:$LINENO: result: no" >&5
26129 echo "${ECHO_T}no" >&6; }
26133 test -n "$MSGMERGE" && break
26136 for ac_prog in xgettext
26138 # Extract the first word of "$ac_prog", so it can be a program name with args.
26139 set dummy $ac_prog; ac_word=$2
26140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26142 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26143 echo $ECHO_N "(cached) $ECHO_C" >&6
26145 if test -n "$XGETTEXT"; then
26146 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26149 for as_dir in $PATH
26152 test -z "$as_dir" && as_dir=.
26153 for ac_exec_ext in '' $ac_executable_extensions; do
26154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26155 ac_cv_prog_XGETTEXT="$ac_prog"
26156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26165 XGETTEXT=$ac_cv_prog_XGETTEXT
26166 if test -n "$XGETTEXT"; then
26167 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26168 echo "${ECHO_T}$XGETTEXT" >&6; }
26170 { echo "$as_me:$LINENO: result: no" >&5
26171 echo "${ECHO_T}no" >&6; }
26175 test -n "$XGETTEXT" && break
26181 # Check for Tcl configuration script tclConfig.sh
26182 if test "$with_tcl" = yes; then
26183 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
26185 # Extract the first word of "$ac_prog", so it can be a program name with args.
26186 set dummy $ac_prog; ac_word=$2
26187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26189 if test "${ac_cv_path_TCLSH+set}" = set; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26194 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26198 for as_dir in $PATH
26201 test -z "$as_dir" && as_dir=.
26202 for ac_exec_ext in '' $ac_executable_extensions; do
26203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26204 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26215 TCLSH=$ac_cv_path_TCLSH
26216 if test -n "$TCLSH"; then
26217 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26218 echo "${ECHO_T}$TCLSH" >&6; }
26220 { echo "$as_me:$LINENO: result: no" >&5
26221 echo "${ECHO_T}no" >&6; }
26225 test -n "$TCLSH" && break
26228 if test x"$TCLSH" = x""; then
26229 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26230 echo "$as_me: error: Tcl shell not found" >&2;}
26231 { (exit 1); exit 1; }; }
26234 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26235 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26236 # Let user override test
26237 if test -z "$TCL_CONFIG_SH"; then
26238 pgac_test_dirs="$with_tclconfig"
26240 set X $pgac_test_dirs; shift
26241 if test $# -eq 0; then
26242 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26243 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26244 { (exit 1); exit 1; }; }
26245 set X `echo 'puts $auto_path' |
$TCLSH`; shift
26249 if test -r "$pgac_dir/tclConfig.sh"; then
26250 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26256 if test -z "$TCL_CONFIG_SH"; then
26257 { echo "$as_me:$LINENO: result: no" >&5
26258 echo "${ECHO_T}no" >&6; }
26259 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26260 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26261 { (exit 1); exit 1; }; }
26263 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26264 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26270 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26271 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26272 eval TCL_LIBS=\"$TCL_LIBS\"
26273 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26274 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26276 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26277 ac_save_CPPFLAGS=$CPPFLAGS
26278 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26279 if test "${ac_cv_header_tcl_h+set}" = set; then
26280 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26281 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26282 if test "${ac_cv_header_tcl_h+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26285 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26286 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26288 # Is the header compilable?
26289 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26290 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26291 cat >conftest.$ac_ext <<_ACEOF
26294 cat confdefs.h >>conftest.$ac_ext
26295 cat >>conftest.$ac_ext <<_ACEOF
26296 /* end confdefs.h. */
26297 $ac_includes_default
26300 rm -f conftest.$ac_objext
26301 if { (ac_try="$ac_compile"
26302 case "(($ac_try" in
26303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26304 *) ac_try_echo
=$ac_try;;
26306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26307 (eval "$ac_compile") 2>conftest.er1
26309 grep -v '^ *+' conftest.er1
>conftest.err
26311 cat conftest.err
>&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && {
26314 test -z "$ac_c_werror_flag" ||
26315 test ! -s conftest.err
26316 } && test -s conftest.
$ac_objext; then
26317 ac_header_compiler
=yes
26319 echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.
$ac_ext >&5
26322 ac_header_compiler
=no
26325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26327 echo "${ECHO_T}$ac_header_compiler" >&6; }
26329 # Is the header present?
26330 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26331 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26332 cat >conftest.
$ac_ext <<_ACEOF
26335 cat confdefs.h
>>conftest.
$ac_ext
26336 cat >>conftest.
$ac_ext <<_ACEOF
26337 /* end confdefs.h. */
26340 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26341 case "(($ac_try" in
26342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26343 *) ac_try_echo=$ac_try;;
26345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26348 grep -v '^ *+' conftest.er1 >conftest.err
26350 cat conftest.err >&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } >/dev/null && {
26353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26354 test ! -s conftest.err
26356 ac_header_preproc=yes
26358 echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26361 ac_header_preproc=no
26364 rm -f conftest.err conftest.$ac_ext
26365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26366 echo "${ECHO_T}$ac_header_preproc" >&6; }
26368 # So? What about this header?
26369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26371 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26372 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26373 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26374 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26375 ac_header_preproc=yes
26378 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26379 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26380 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26381 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26383 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26385 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26387 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26389 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26391 ## ---------------------------------------- ##
26392 ## Report this to pgsql-bugs@postgresql.org ##
26393 ## ---------------------------------------- ##
26395 ) | sed "s/^/$as_me: WARNING: /" >&2
26398 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26399 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26400 if test "${ac_cv_header_tcl_h+set}" = set; then
26401 echo $ECHO_N "(cached) $ECHO_C" >&6
26403 ac_cv_header_tcl_h=$ac_header_preproc
26405 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26406 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26409 if test $ac_cv_header_tcl_h = yes; then
26412 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26413 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26414 { (exit 1); exit 1; }; }
26418 CPPFLAGS=$ac_save_CPPFLAGS
26422 # Check for DocBook and tools
26424 for ac_prog in onsgmls nsgmls
26426 # Extract the first word of "$ac_prog", so it can be a program name with args.
26427 set dummy $ac_prog; ac_word=$2
26428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26430 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 if test -n "$NSGMLS"; then
26434 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26437 for as_dir in $PATH
26440 test -z "$as_dir" && as_dir=.
26441 for ac_exec_ext in '' $ac_executable_extensions; do
26442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26443 ac_cv_prog_NSGMLS="$ac_prog"
26444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26453 NSGMLS=$ac_cv_prog_NSGMLS
26454 if test -n "$NSGMLS"; then
26455 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26456 echo "${ECHO_T}$NSGMLS" >&6; }
26458 { echo "$as_me:$LINENO: result: no" >&5
26459 echo "${ECHO_T}no" >&6; }
26463 test -n "$NSGMLS" && break
26466 for ac_prog in openjade jade
26468 # Extract the first word of "$ac_prog", so it can be a program name with args.
26469 set dummy $ac_prog; ac_word=$2
26470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26472 if test "${ac_cv_prog_JADE+set}" = set; then
26473 echo $ECHO_N "(cached) $ECHO_C" >&6
26475 if test -n "$JADE"; then
26476 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26479 for as_dir in $PATH
26482 test -z "$as_dir" && as_dir=.
26483 for ac_exec_ext in '' $ac_executable_extensions; do
26484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26485 ac_cv_prog_JADE="$ac_prog"
26486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26495 JADE=$ac_cv_prog_JADE
26496 if test -n "$JADE"; then
26497 { echo "$as_me:$LINENO: result: $JADE" >&5
26498 echo "${ECHO_T}$JADE" >&6; }
26500 { echo "$as_me:$LINENO: result: no" >&5
26501 echo "${ECHO_T}no" >&6; }
26505 test -n "$JADE" && break
26509 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26510 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26511 if test "${pgac_cv_check_docbook+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26514 cat >conftest.sgml <<EOF
26515 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26517 <title>test</title>
26519 <title>random</title>
26521 <title>testsect</title>
26528 pgac_cv_check_docbook=no
26530 if test -n "$NSGMLS"; then
26531 $NSGMLS -s conftest.sgml 1>&5 2>&1
26532 if test $? -eq 0; then
26533 pgac_cv_check_docbook=yes
26536 rm -f conftest.sgml
26538 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26539 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26541 have_docbook=$pgac_cv_check_docbook
26544 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26545 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26546 if test "${pgac_cv_path_stylesheets+set}" = set; then
26547 echo $ECHO_N "(cached) $ECHO_C" >&6
26549 if test -n "$DOCBOOKSTYLE"; then
26550 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26552 for pgac_prefix in /usr /usr/local /opt /sw; do
26553 for pgac_infix in share lib; do
26554 for pgac_postfix in \
26555 sgml/stylesheets/nwalsh-modular \
26556 sgml/stylesheets/docbook \
26557 sgml/stylesheets/dsssl/docbook \
26558 sgml/docbook-dsssl \
26559 sgml/docbook/dsssl/modular \
26560 sgml/docbook/stylesheet/dsssl/modular \
26561 sgml/docbook/dsssl-stylesheets \
26562 sgml/dsssl/docbook-dsssl-nwalsh
26564 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26565 if test -r "$pgac_candidate/html/docbook.dsl" \
26566 && test -r "$pgac_candidate/print/docbook.dsl"
26568 pgac_cv_path_stylesheets=$pgac_candidate
26577 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26579 if test -n "$DOCBOOKSTYLE"; then
26580 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26581 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26583 { echo "$as_me:$LINENO: result: no" >&5
26584 echo "${ECHO_T}no" >&6; }
26586 if test -n "$DOCBOOKSTYLE"; then
26587 for ac_prog in collateindex.pl
26589 # Extract the first word of "$ac_prog", so it can be a program name with args.
26590 set dummy $ac_prog; ac_word=$2
26591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26593 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26596 case $COLLATEINDEX in
26598 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26602 for as_dir in $DOCBOOKSTYLE/bin $PATH
26605 test -z "$as_dir" && as_dir=.
26606 for ac_exec_ext in '' $ac_executable_extensions; do
26607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26608 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26619 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26620 if test -n "$COLLATEINDEX"; then
26621 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26622 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26624 { echo "$as_me:$LINENO: result: no" >&5
26625 echo "${ECHO_T}no" >&6; }
26629 test -n "$COLLATEINDEX" && break
26633 for ac_prog in collateindex.pl
26635 # Extract the first word of "$ac_prog", so it can be a program name with args.
26636 set dummy $ac_prog; ac_word=$2
26637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26639 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26640 echo $ECHO_N "(cached) $ECHO_C" >&6
26642 case $COLLATEINDEX in
26644 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26648 for as_dir in $PATH
26651 test -z "$as_dir" && as_dir=.
26652 for ac_exec_ext in '' $ac_executable_extensions; do
26653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26654 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26665 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26666 if test -n "$COLLATEINDEX"; then
26667 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26668 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26670 { echo "$as_me:$LINENO: result: no" >&5
26671 echo "${ECHO_T}no" >&6; }
26675 test -n "$COLLATEINDEX" && break
26679 for ac_prog in sgmlspl
26681 # Extract the first word of "$ac_prog", so it can be a program name with args.
26682 set dummy $ac_prog; ac_word=$2
26683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26685 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26688 if test -n "$SGMLSPL"; then
26689 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26692 for as_dir in $PATH
26695 test -z "$as_dir" && as_dir=.
26696 for ac_exec_ext in '' $ac_executable_extensions; do
26697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26698 ac_cv_prog_SGMLSPL="$ac_prog"
26699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26708 SGMLSPL=$ac_cv_prog_SGMLSPL
26709 if test -n "$SGMLSPL"; then
26710 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26711 echo "${ECHO_T}$SGMLSPL" >&6; }
26713 { echo "$as_me:$LINENO: result: no" >&5
26714 echo "${ECHO_T}no" >&6; }
26718 test -n "$SGMLSPL" && break
26721 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26722 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26723 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26726 if test -z "$DOCBOOK2MAN"; then
26727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26728 for as_dir in $PATH
26731 test -z "$as_dir" && as_dir=.
26732 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26733 ac_path="$as_dir/$ac_prog"
26734 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26735 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26736 ac_cv_path_DOCBOOK2MAN=$ac_path
26744 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26747 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26748 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26749 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26755 # We have to run the thread test near the end so we have all our symbols
26756 # defined. Cross compiling throws a warning.
26758 if test "$enable_thread_safety_force" = yes; then
26759 if test "$PORTNAME" != "win32"
26761 { echo "$as_me:$LINENO: WARNING:
26762 *** Skipping thread test program. --enable-thread-safety-force was used.
26763 *** Run the program in src/test/thread on the your machine and add proper
26764 *** locking function calls to your applications to guarantee thread safety.
26766 echo "$as_me: WARNING:
26767 *** Skipping thread test program. --enable-thread-safety-force was used.
26768 *** Run the program in src/test/thread on the your machine and add proper
26769 *** locking function calls to your applications to guarantee thread safety.
26772 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26773 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26775 elif test "$enable_thread_safety" = yes; then
26776 if test "$PORTNAME" != "win32"
26778 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26779 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26783 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26784 LIBS="$LIBS $PTHREAD_LIBS"
26785 if test "$cross_compiling" = yes; then
26786 { echo "$as_me:$LINENO: result: maybe" >&5
26787 echo "${ECHO_T}maybe" >&6; }
26788 { echo "$as_me:$LINENO: WARNING:
26789 *** Skipping thread test program because of cross-compile build.
26790 *** Run the program in src/test/thread on the target machine.
26792 echo "$as_me: WARNING:
26793 *** Skipping thread test program because of cross-compile build.
26794 *** Run the program in src/test/thread on the target machine.
26797 cat >conftest.$ac_ext <<_ACEOF
26800 cat confdefs.h >>conftest.$ac_ext
26801 cat >>conftest.$ac_ext <<_ACEOF
26802 /* end confdefs.h. */
26803 #include "$srcdir/src/test/thread/thread_test.c"
26805 rm -f conftest$ac_exeext
26806 if { (ac_try="$ac_link"
26807 case "(($ac_try" in
26808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26809 *) ac_try_echo
=$ac_try;;
26811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26812 (eval "$ac_link") 2>&5
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26816 { (case "(($ac_try" in
26817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26818 *) ac_try_echo=$ac_try;;
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821 (eval "$ac_try") 2>&5
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; }; then
26825 { echo "$as_me:$LINENO: result: yes" >&5
26826 echo "${ECHO_T}yes" >&6; }
26828 echo "$as_me: program exited with status $ac_status" >&5
26829 echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26832 ( exit $ac_status )
26833 { echo "$as_me:$LINENO: result: no" >&5
26834 echo "${ECHO_T}no" >&6; }
26835 { { echo "$as_me:$LINENO: error: thread test program failed
26836 This platform is not thread-safe. Check the file 'config.log' for the
26839 You can use the configure option --enable-thread-safety-force to force
26840 threads to be enabled. But you must then run the program in
26841 src/test/thread and add locking function calls to your applications to
26842 guarantee thread safety." >&5
26843 echo "$as_me: error: thread test program failed
26844 This platform is not thread-safe. Check the file 'config.log' for the
26847 You can use the configure option --enable-thread-safety-force to force
26848 threads to be enabled. But you must then run the program in
26849 src/test/thread and add locking function calls to your applications to
26850 guarantee thread safety." >&2;}
26851 { (exit 1); exit 1; }; }
26853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26860 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26861 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26865 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26866 # This is much easier than trying to filter LIBS to the minimum for each
26867 # executable. (Note that shared library links won't use this switch, though.)
26868 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26869 # libreadline; therefore we postpone testing it until we know what library
26870 # dependencies readline has. The test code will try to link with $LIBS.
26871 if test "$with_readline" = yes; then
26872 link_test_func=readline
26874 link_test_func=exit
26876 if test "$PORTNAME" != "darwin"; then
26877 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26878 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26879 pgac_save_LDFLAGS=$LDFLAGS
26880 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26881 if test "$cross_compiling" = yes; then
26882 LDFLAGS="$pgac_save_LDFLAGS"
26883 { echo "$as_me:$LINENO: result: assuming no" >&5
26884 echo "${ECHO_T}assuming no" >&6; }
26886 cat >conftest.$ac_ext <<_ACEOF
26889 cat confdefs.h >>conftest.$ac_ext
26890 cat >>conftest.$ac_ext <<_ACEOF
26891 /* end confdefs.h. */
26892 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26901 rm -f conftest$ac_exeext
26902 if { (ac_try="$ac_link"
26903 case "(($ac_try" in
26904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26905 *) ac_try_echo
=$ac_try;;
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908 (eval "$ac_link") 2>&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26912 { (case "(($ac_try" in
26913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26914 *) ac_try_echo=$ac_try;;
26916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26917 (eval "$ac_try") 2>&5
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; }; then
26921 { echo "$as_me:$LINENO: result: yes" >&5
26922 echo "${ECHO_T}yes" >&6; }
26924 echo "$as_me: program exited with status $ac_status" >&5
26925 echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ( exit $ac_status )
26929 LDFLAGS="$pgac_save_LDFLAGS"
26930 { echo "$as_me:$LINENO: result: no" >&5
26931 echo "${ECHO_T}no" >&6; }
26933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26939 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26940 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26941 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26942 pgac_save_LDFLAGS=$LDFLAGS
26943 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26944 if test "$cross_compiling" = yes; then
26945 LDFLAGS="$pgac_save_LDFLAGS"
26946 { echo "$as_me:$LINENO: result: assuming no" >&5
26947 echo "${ECHO_T}assuming no" >&6; }
26949 cat >conftest.$ac_ext <<_ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h. */
26955 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26964 rm -f conftest$ac_exeext
26965 if { (ac_try="$ac_link"
26966 case "(($ac_try" in
26967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26968 *) ac_try_echo
=$ac_try;;
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971 (eval "$ac_link") 2>&5
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26975 { (case "(($ac_try" in
26976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26977 *) ac_try_echo=$ac_try;;
26979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26980 (eval "$ac_try") 2>&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); }; }; then
26984 { echo "$as_me:$LINENO: result: yes" >&5
26985 echo "${ECHO_T}yes" >&6; }
26987 echo "$as_me: program exited with status $ac_status" >&5
26988 echo "$as_me: failed program was:" >&5
26989 sed 's/^/| /' conftest.$ac_ext >&5
26991 ( exit $ac_status )
26992 LDFLAGS="$pgac_save_LDFLAGS"
26993 { echo "$as_me:$LINENO: result: no" >&5
26994 echo "${ECHO_T}no" >&6; }
26996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27004 # Begin output steps
27006 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
27007 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
27008 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
27009 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
27010 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
27011 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
27013 # Create compiler version string
27014 if test x"$GCC" = x"yes" ; then
27015 cc_string="GCC `${CC} --version |
sed q
`"
27016 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
27017 cc_string=`${CC} -V 2>&1 |
sed q
`
27023 cat >>confdefs.h <<_ACEOF
27024 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \
* 8`-bit"
27028 # Supply a numeric version string for use by 3rd party add-ons
27029 # awk -F is a regex on some platforms, and not on others, so make "." a tab
27030 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
27032 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
27034 cat >>confdefs.h <<_ACEOF
27035 #define PG_VERSION_NUM $PG_VERSION_NUM
27040 # prepare build tree if outside source tree
27041 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
27042 # Note 2: /bin/pwd might be better than shell's built-in at getting
27043 # a symlink-free name.
27044 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin
/pwd`" = "`/bin
/pwd`"; then
27048 if test "$no_create" != yes; then
27049 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
27050 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
27051 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
27052 || { { echo "$as_me:$LINENO: error: failed" >&5
27053 echo "$as_me: error: failed" >&2;}
27054 { (exit 1); exit 1; }; }
27055 { echo "$as_me:$LINENO: result: done" >&5
27056 echo "${ECHO_T}done" >&6; }
27062 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
27065 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}"
27068 if test "$PORTNAME" = "win32"; then
27069 ac_config_commands="$ac_config_commands check_win32_symlinks"
27073 ac_config_headers="$ac_config_headers src/include/pg_config.h"
27076 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
27079 cat >confcache <<\_ACEOF
27080 # This file is a shell script that caches the results of configure
27081 # tests run on this system so they can be shared between configure
27082 # scripts and configure runs, see configure's option --config-cache.
27083 # It is not useful on other systems. If it contains results you don't
27084 # want to keep, you may remove or edit it.
27086 # config.status only pays attention to the cache file if you give it
27087 # the --recheck option to rerun configure.
27089 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
27090 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27091 # following values.
27095 # The following way of writing the cache mishandles newlines in values,
27096 # but we know of no workaround that is simple, portable, and efficient.
27097 # So, we kill variables containing newlines.
27098 # Ultrix sh set writes to stderr and can't be redirected directly,
27099 # and sets the high bit in the cache file unless we assign to the vars.
27101 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27102 eval ac_val
=\$
$ac_var
27106 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27107 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27110 _ | IFS | as_nl
) ;; #(
27111 *) $as_unset $ac_var ;;
27117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27118 *${as_nl}ac_space
=\
*)
27119 # `set' does not quote correctly, so add quotes (double-quote
27120 # substitution turns \\\\ into \\, and sed turns \\ into \).
27123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27126 # `set' quotes correctly as required by POSIX, so do not add quotes.
27127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27140 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27141 if test -w "$cache_file"; then
27142 test "x$cache_file" != "x/dev/null" &&
27143 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27144 echo "$as_me: updating cache $cache_file" >&6;}
27145 cat confcache
>$cache_file
27147 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27148 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27153 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27154 # Let make expand exec_prefix.
27155 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27157 DEFS
=-DHAVE_CONFIG_H
27161 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27162 # 1. Remove the extension, and $U if already installed.
27163 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27164 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27165 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27166 # will be set to the directory where LIBOBJS objects are built.
27167 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27168 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27170 LIBOBJS
=$ac_libobjs
27172 LTLIBOBJS
=$ac_ltlibobjs
27176 : ${CONFIG_STATUS=./config.status}
27177 ac_clean_files_save
=$ac_clean_files
27178 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27179 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27180 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27181 cat >$CONFIG_STATUS <<_ACEOF
27183 # Generated by $as_me.
27184 # Run this file to recreate the current configuration.
27185 # Compiler output produced by configure, useful for debugging
27186 # configure, is in config.log if it exists.
27189 ac_cs_recheck=false
27191 SHELL=\${CONFIG_SHELL-$SHELL}
27194 cat >>$CONFIG_STATUS <<\_ACEOF
27195 ## --------------------- ##
27196 ## M4sh Initialization. ##
27197 ## --------------------- ##
27199 # Be more Bourne compatible
27200 DUALCASE
=1; export DUALCASE
# for MKS sh
27201 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27204 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27205 # is contrary to our usage. Disable this feature.
27206 alias -g '${1+"$@"}'='"$@"'
27207 setopt NO_GLOB_SUBST
27209 case `(set -o) 2>/dev/null` in
27210 *posix
*) set -o posix
;;
27219 # Avoid depending upon Character Ranges.
27220 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27221 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27222 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27223 as_cr_digits
='0123456789'
27224 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27226 # The user is always right.
27227 if test "${PATH_SEPARATOR+set}" != set; then
27228 echo "#! /bin/sh" >conf$$.sh
27229 echo "exit 0" >>conf$$.sh
27231 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27239 # Support unset when possible.
27240 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27248 # We need space, tab and new line, in precisely that order. Quoting is
27249 # there to prevent editors from complaining about space-tab.
27250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27251 # splitting by setting IFS to empty value.)
27256 # Find who we are. Look in the path if we contain no directory separator.
27258 *[\\/]* ) as_myself
=$0 ;;
27259 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27260 for as_dir
in $PATH
27263 test -z "$as_dir" && as_dir
=.
27264 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27270 # We did not find ourselves, most probably we were run as `sh COMMAND'
27271 # in which case we are not to be found in the path.
27272 if test "x$as_myself" = x
; then
27275 if test ! -f "$as_myself"; then
27276 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27277 { (exit 1); exit 1; }
27280 # Work around bugs in pre-3.0 UWIN ksh.
27281 for as_var
in ENV MAIL MAILPATH
27282 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27290 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27291 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27292 LC_TELEPHONE LC_TIME
27294 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27295 eval $as_var=C
; export $as_var
27297 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27301 # Required to use basename.
27302 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27303 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27309 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27310 as_basename
=basename
27316 # Name of the executable.
27317 as_me
=`$as_basename -- "$0" ||
27318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27319 X"$0" : 'X\(//\)$' \| \
27320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27322 sed '/^.*\/\([^/][^/]*\)\/*$/{
27341 as_lineno_1
=$LINENO
27342 as_lineno_2
=$LINENO
27343 test "x$as_lineno_1" != "x$as_lineno_2" &&
27344 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27346 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27347 # uniformly replaced by the line number. The first 'sed' inserts a
27348 # line-number line after each line using $LINENO; the second 'sed'
27349 # does the real work. The second script uses 'N' to pair each
27350 # line-number line with the line containing $LINENO, and appends
27351 # trailing '-' during substitution so that $LINENO is not a special
27352 # case at line end.
27353 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27354 # scripts with optimization help from Paolo Bonzini. Blame Lee
27355 # E. McMahon (1931-1989) for sed's syntax. :-)
27367 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27370 ' >$as_me.lineno
&&
27371 chmod +x
"$as_me.lineno" ||
27372 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27373 { (exit 1); exit 1; }; }
27375 # Don't try to exec as it changes $[0], causing all sort of problems
27376 # (the dirname of $[0] is not the place where we might find the
27377 # original and so on. Autoconf is especially sensitive to this).
27378 .
"./$as_me.lineno"
27379 # Exit status is that of the last command.
27384 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27390 ECHO_C
= ECHO_N
= ECHO_T
=
27391 case `echo -n x` in
27393 case `echo 'x\c'` in
27394 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27401 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27402 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27408 rm -f conf$$ conf$$.exe conf$$.
file
27409 if test -d conf$$.dir
; then
27410 rm -f conf$$.dir
/conf$$.
file
27416 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27418 # ... but there are two gotchas:
27419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27421 # In both cases, we have to default to `cp -p'.
27422 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27424 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27429 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27430 rmdir conf$$.dir
2>/dev
/null
27432 if mkdir
-p .
2>/dev
/null
; then
27435 test -d .
/-p && rmdir .
/-p
27439 if test -x / >/dev
/null
2>&1; then
27440 as_test_x
='test -x'
27442 if ls -dL / >/dev
/null
2>&1; then
27449 if test -d "$1"; then
27455 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27456 ???[sx]*):;;*)false;;esac;fi
27460 as_executable_p
=$as_test_x
27462 # Sed expression to map a string onto a valid CPP name.
27463 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27465 # Sed expression to map a string onto a valid variable name.
27466 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27471 # Save the log message, to keep $[0] and so on meaningful, and to
27472 # report actual input values of CONFIG_FILES etc. instead of their
27473 # values after options handling.
27475 This file was extended by PostgreSQL $as_me 8.4devel, which was
27476 generated by GNU Autoconf 2.61. Invocation command line was
27478 CONFIG_FILES = $CONFIG_FILES
27479 CONFIG_HEADERS = $CONFIG_HEADERS
27480 CONFIG_LINKS = $CONFIG_LINKS
27481 CONFIG_COMMANDS = $CONFIG_COMMANDS
27484 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27489 cat >>$CONFIG_STATUS <<_ACEOF
27490 # Files that config.status was made for.
27491 config_files="$ac_config_files"
27492 config_headers="$ac_config_headers"
27493 config_links="$ac_config_links"
27494 config_commands="$ac_config_commands"
27498 cat >>$CONFIG_STATUS <<\_ACEOF
27500 \`$as_me' instantiates files from templates according to the
27501 current configuration.
27503 Usage: $0 [OPTIONS] [FILE]...
27505 -h, --help print this help, then exit
27506 -V, --version print version number and configuration settings, then exit
27507 -q, --quiet do not print progress messages
27508 -d, --debug don't remove temporary files
27509 --recheck update $as_me by reconfiguring in the same conditions
27510 --file=FILE[:TEMPLATE]
27511 instantiate the configuration file FILE
27512 --header=FILE[:TEMPLATE]
27513 instantiate the configuration header FILE
27515 Configuration files:
27518 Configuration headers:
27521 Configuration links:
27524 Configuration commands:
27527 Report bugs to <bug-autoconf@gnu.org>."
27530 cat >>$CONFIG_STATUS <<_ACEOF
27532 PostgreSQL config.status 8.4devel
27533 configured by $0, generated by GNU Autoconf 2.61,
27534 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27536 Copyright (C) 2006 Free Software Foundation, Inc.
27537 This config.status script is free software; the Free Software Foundation
27538 gives unlimited permission to copy, distribute and modify it."
27544 cat >>$CONFIG_STATUS <<\_ACEOF
27545 # If no file are specified by the user, then we need to provide default
27546 # value. By we need to know if files were specified by the user.
27552 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27553 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27564 # Handling of the options.
27565 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27567 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27568 echo "$ac_cs_version"; exit ;;
27569 --debug |
--debu |
--deb |
--de |
--d |
-d )
27571 --file |
--fil |
--fi |
--f )
27573 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27574 ac_need_defaults
=false
;;
27575 --header |
--heade |
--head |
--hea )
27577 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27578 ac_need_defaults
=false
;;
27580 # Conflict between --help and --header
27581 { echo "$as_me: error: ambiguous option: $1
27582 Try \`$0 --help' for more information." >&2
27583 { (exit 1); exit 1; }; };;
27584 --help |
--hel |
-h )
27585 echo "$ac_cs_usage"; exit ;;
27586 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27587 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27590 # This is an error.
27591 -*) { echo "$as_me: error: unrecognized option: $1
27592 Try \`$0 --help' for more information." >&2
27593 { (exit 1); exit 1; }; } ;;
27595 *) ac_config_targets
="$ac_config_targets $1"
27596 ac_need_defaults
=false
;;
27602 ac_configure_extra_args
=
27604 if $ac_cs_silent; then
27606 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27610 cat >>$CONFIG_STATUS <<_ACEOF
27611 if \$ac_cs_recheck; then
27612 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27613 CONFIG_SHELL=$SHELL
27614 export CONFIG_SHELL
27615 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27619 cat >>$CONFIG_STATUS <<\_ACEOF
27623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27624 ## Running $as_me. ##
27630 cat >>$CONFIG_STATUS <<_ACEOF
27633 cat >>$CONFIG_STATUS <<\_ACEOF
27635 # Handling of arguments.
27636 for ac_config_target
in $ac_config_targets
27638 case $ac_config_target in
27639 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27640 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
27641 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
27642 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27643 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27644 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27645 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27646 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27647 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27648 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
27649 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
27650 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27652 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27653 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27654 { (exit 1); exit 1; }; };;
27659 # If the user did not use the arguments to specify the items to instantiate,
27660 # then the envvar interface is used. Set only those that are not.
27661 # We use the long form for the default assignment because of an extremely
27662 # bizarre bug on SunOS 4.1.3.
27663 if $ac_need_defaults; then
27664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27666 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
27667 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27670 # Have a temporary directory for convenience. Make it in the build tree
27671 # simply because there is no reason against having it here, and in addition,
27672 # creating and moving files from /tmp can sometimes cause problems.
27673 # Hook for its removal unless debugging.
27674 # Note that there is a small window in which the directory will not be cleaned:
27675 # after its creation but before its name has been assigned to `$tmp'.
27679 trap 'exit_status=$?
27680 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27682 trap '{ (exit 1); exit 1; }' 1 2 13 15
27684 # Create a (secure) tmp directory for tmp files.
27687 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27688 test -n "$tmp" && test -d "$tmp"
27691 tmp
=.
/conf$$
-$RANDOM
27692 (umask 077 && mkdir
"$tmp")
27695 echo "$me: cannot create a temporary directory in ." >&2
27696 { (exit 1); exit 1; }
27700 # Set up the sed scripts for CONFIG_FILES section.
27703 # No need to generate the scripts if there are no CONFIG_FILES.
27704 # This happens for instance when ./config.status config.h
27705 if test -n "$CONFIG_FILES"; then
27712 for ac_last_try
in false false false false false
:; do
27713 cat >conf$
$subs.
sed <<_ACEOF
27714 SHELL!$SHELL$ac_delim
27715 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27716 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27717 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27718 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27719 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27720 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27721 exec_prefix!$exec_prefix$ac_delim
27722 prefix!$prefix$ac_delim
27723 program_transform_name!$program_transform_name$ac_delim
27724 bindir!$bindir$ac_delim
27725 sbindir!$sbindir$ac_delim
27726 libexecdir!$libexecdir$ac_delim
27727 datarootdir!$datarootdir$ac_delim
27728 datadir!$datadir$ac_delim
27729 sysconfdir!$sysconfdir$ac_delim
27730 sharedstatedir!$sharedstatedir$ac_delim
27731 localstatedir!$localstatedir$ac_delim
27732 includedir!$includedir$ac_delim
27733 oldincludedir!$oldincludedir$ac_delim
27734 docdir!$docdir$ac_delim
27735 infodir!$infodir$ac_delim
27736 htmldir!$htmldir$ac_delim
27737 dvidir!$dvidir$ac_delim
27738 pdfdir!$pdfdir$ac_delim
27739 psdir!$psdir$ac_delim
27740 libdir!$libdir$ac_delim
27741 localedir!$localedir$ac_delim
27742 mandir!$mandir$ac_delim
27743 DEFS!$DEFS$ac_delim
27744 ECHO_C!$ECHO_C$ac_delim
27745 ECHO_N!$ECHO_N$ac_delim
27746 ECHO_T!$ECHO_T$ac_delim
27747 LIBS!$LIBS$ac_delim
27748 build_alias!$build_alias$ac_delim
27749 host_alias!$host_alias$ac_delim
27750 target_alias!$target_alias$ac_delim
27751 configure_args!$configure_args$ac_delim
27752 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27753 build!$build$ac_delim
27754 build_cpu!$build_cpu$ac_delim
27755 build_vendor!$build_vendor$ac_delim
27756 build_os!$build_os$ac_delim
27757 host!$host$ac_delim
27758 host_cpu!$host_cpu$ac_delim
27759 host_vendor!$host_vendor$ac_delim
27760 host_os!$host_os$ac_delim
27761 PORTNAME!$PORTNAME$ac_delim
27762 enable_nls!$enable_nls$ac_delim
27763 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27764 default_port!$default_port$ac_delim
27765 enable_shared!$enable_shared$ac_delim
27766 enable_rpath!$enable_rpath$ac_delim
27767 enable_debug!$enable_debug$ac_delim
27768 enable_profiling!$enable_profiling$ac_delim
27769 GCOV!$GCOV$ac_delim
27770 LCOV!$LCOV$ac_delim
27771 GENHTML!$GENHTML$ac_delim
27772 enable_coverage!$enable_coverage$ac_delim
27773 DTRACE!$DTRACE$ac_delim
27774 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27775 enable_dtrace!$enable_dtrace$ac_delim
27777 CFLAGS!$CFLAGS$ac_delim
27778 LDFLAGS!$LDFLAGS$ac_delim
27779 CPPFLAGS!$CPPFLAGS$ac_delim
27780 ac_ct_CC!$ac_ct_CC$ac_delim
27781 EXEEXT!$EXEEXT$ac_delim
27782 OBJEXT!$OBJEXT$ac_delim
27783 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27787 autodepend!$autodepend$ac_delim
27788 INCLUDES!$INCLUDES$ac_delim
27789 enable_thread_safety!$enable_thread_safety$ac_delim
27790 with_tcl!$with_tcl$ac_delim
27791 with_perl!$with_perl$ac_delim
27792 with_python!$with_python$ac_delim
27793 with_gssapi!$with_gssapi$ac_delim
27794 with_krb5!$with_krb5$ac_delim
27795 krb_srvtab!$krb_srvtab$ac_delim
27796 with_pam!$with_pam$ac_delim
27797 with_ldap!$with_ldap$ac_delim
27798 with_bonjour!$with_bonjour$ac_delim
27799 with_openssl!$with_openssl$ac_delim
27800 with_ossp_uuid!$with_ossp_uuid$ac_delim
27801 XML2_CONFIG!$XML2_CONFIG$ac_delim
27802 with_libxml!$with_libxml$ac_delim
27803 with_libxslt!$with_libxslt$ac_delim
27804 with_system_tzdata!$with_system_tzdata$ac_delim
27805 with_zlib!$with_zlib$ac_delim
27806 GREP!$GREP$ac_delim
27807 EGREP!$EGREP$ac_delim
27808 ELF_SYS!$ELF_SYS$ac_delim
27809 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27813 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27815 elif $ac_last_try; then
27816 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27817 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27818 { (exit 1); exit 1; }; }
27820 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27824 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27825 if test -n "$ac_eof"; then
27826 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27827 ac_eof
=`expr $ac_eof + 1`
27830 cat >>$CONFIG_STATUS <<_ACEOF
27831 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27835 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27836 s/^/s,@/; s/!/@,|#_!!_#|/
27839 s/'"$ac_delim"'$/,g/; t
27841 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27842 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27843 rm -f conf$
$subs.
sed
27844 cat >>$CONFIG_STATUS <<_ACEOF
27850 for ac_last_try
in false false false false false
:; do
27851 cat >conf$
$subs.
sed <<_ACEOF
27852 with_gnu_ld!$with_gnu_ld$ac_delim
27853 ld_R_works!$ld_R_works$ac_delim
27854 RANLIB!$RANLIB$ac_delim
27855 STRIP!$STRIP$ac_delim
27856 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27857 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27859 DLLTOOL!$DLLTOOL$ac_delim
27860 DLLWRAP!$DLLWRAP$ac_delim
27861 WINDRES!$WINDRES$ac_delim
27863 LN_S!$LN_S$ac_delim
27865 BISON!$BISON$ac_delim
27866 BISONFLAGS!$BISONFLAGS$ac_delim
27867 FLEX!$FLEX$ac_delim
27868 FLEXFLAGS!$FLEXFLAGS$ac_delim
27869 PERL!$PERL$ac_delim
27870 perl_archlibexp!$perl_archlibexp$ac_delim
27871 perl_privlibexp!$perl_privlibexp$ac_delim
27872 perl_useshrplib!$perl_useshrplib$ac_delim
27873 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27874 PYTHON!$PYTHON$ac_delim
27875 python_version!$python_version$ac_delim
27876 python_configdir!$python_configdir$ac_delim
27877 python_includespec!$python_includespec$ac_delim
27878 python_libdir!$python_libdir$ac_delim
27879 python_libspec!$python_libspec$ac_delim
27880 python_additional_libs!$python_additional_libs$ac_delim
27882 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27883 HAVE_IPV6!$HAVE_IPV6$ac_delim
27884 LIBOBJS!$LIBOBJS$ac_delim
27885 acx_pthread_config!$acx_pthread_config$ac_delim
27886 PTHREAD_CC!$PTHREAD_CC$ac_delim
27887 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27888 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27889 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27890 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27891 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27892 MSGFMT!$MSGFMT$ac_delim
27893 MSGMERGE!$MSGMERGE$ac_delim
27894 XGETTEXT!$XGETTEXT$ac_delim
27895 TCLSH!$TCLSH$ac_delim
27896 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27897 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27898 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27899 TCL_LIBS!$TCL_LIBS$ac_delim
27900 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27901 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27902 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27903 NSGMLS!$NSGMLS$ac_delim
27904 JADE!$JADE$ac_delim
27905 have_docbook!$have_docbook$ac_delim
27906 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27907 COLLATEINDEX!$COLLATEINDEX$ac_delim
27908 SGMLSPL!$SGMLSPL$ac_delim
27909 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27910 vpath_build!$vpath_build$ac_delim
27911 LTLIBOBJS!$LTLIBOBJS$ac_delim
27914 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27916 elif $ac_last_try; then
27917 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27918 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27919 { (exit 1); exit 1; }; }
27921 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27925 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27926 if test -n "$ac_eof"; then
27927 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27928 ac_eof
=`expr $ac_eof + 1`
27931 cat >>$CONFIG_STATUS <<_ACEOF
27932 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27936 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27937 s/^/s,@/; s/!/@,|#_!!_#|/
27940 s/'"$ac_delim"'$/,g/; t
27942 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27943 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27944 rm -f conf$
$subs.
sed
27945 cat >>$CONFIG_STATUS <<_ACEOF
27952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27954 # trailing colons and then remove the whole line if VPATH becomes empty
27955 # (actually we leave an empty line to preserve line numbers).
27956 if test "x$srcdir" = x.
; then
27957 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27958 s/:*\$(srcdir):*/:/
27959 s/:*\${srcdir}:*/:/
27961 s/^\([^=]*=[ ]*\):*/\1/
27967 cat >>$CONFIG_STATUS <<\_ACEOF
27968 fi # test -n "$CONFIG_FILES"
27971 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
27974 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27976 case $ac_mode$ac_tag in
27978 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27979 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27980 { (exit 1); exit 1; }; };;
27981 :[FH
]-) ac_tag
=-:-;;
27982 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27999 -) ac_f
="$tmp/stdin";;
28000 *) # Look for the file first in the build tree, then in the source tree
28001 # (if the path is not absolute). The absolute path cannot be DOS-style,
28002 # because $ac_f cannot contain `:'.
28006 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28008 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28009 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28010 { (exit 1); exit 1; }; };;
28012 ac_file_inputs
="$ac_file_inputs $ac_f"
28015 # Let's still pretend it is `configure' which instantiates (i.e., don't
28016 # use $as_me), people would be surprised to read:
28017 # /* config.h. Generated by config.status. */
28018 configure_input
="Generated from "`IFS=:
28019 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28020 if test x
"$ac_file" != x-
; then
28021 configure_input
="$ac_file. $configure_input"
28022 { echo "$as_me:$LINENO: creating $ac_file" >&5
28023 echo "$as_me: creating $ac_file" >&6;}
28027 *:-:* |
*:-) cat >"$tmp/stdin";;
28032 ac_dir
=`$as_dirname -- "$ac_file" ||
28033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28034 X"$ac_file" : 'X\(//\)[^/]' \| \
28035 X"$ac_file" : 'X\(//\)$' \| \
28036 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28042 /^X\(\/\/\)[^/].*/{
28057 -*) as_dir
=.
/$as_dir;;
28059 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28063 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28064 *) as_qdir
=$as_dir;;
28066 as_dirs
="'$as_qdir' $as_dirs"
28067 as_dir
=`$as_dirname -- "$as_dir" ||
28068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28069 X"$as_dir" : 'X\(//\)[^/]' \| \
28070 X"$as_dir" : 'X\(//\)$' \| \
28071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28077 /^X\(\/\/\)[^/].*/{
28090 test -d "$as_dir" && break
28092 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28093 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28094 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28095 { (exit 1); exit 1; }; }; }
28099 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28101 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28102 # A ".." for each directory in $ac_dir_suffix.
28103 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28104 case $ac_top_builddir_sub in
28105 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28106 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28109 ac_abs_top_builddir
=$ac_pwd
28110 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28111 # for backward compatibility:
28112 ac_top_builddir
=$ac_top_build_prefix
28115 .
) # We are building in place.
28117 ac_top_srcdir
=$ac_top_builddir_sub
28118 ac_abs_top_srcdir
=$ac_pwd ;;
28119 [\\/]* | ?
:[\\/]* ) # Absolute name.
28120 ac_srcdir
=$srcdir$ac_dir_suffix;
28121 ac_top_srcdir
=$srcdir
28122 ac_abs_top_srcdir
=$srcdir ;;
28123 *) # Relative name.
28124 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28125 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28126 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28128 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28139 cat >>$CONFIG_STATUS <<\_ACEOF
28140 # If the template does not know about datarootdir, expand it.
28141 # FIXME: This hack should be removed a few years after 2.60.
28142 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28144 case `sed -n '/datarootdir/ {
28153 ' $ac_file_inputs` in
28154 *datarootdir
*) ac_datarootdir_seen
=yes;;
28155 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28156 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28157 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28159 cat >>$CONFIG_STATUS <<_ACEOF
28160 ac_datarootdir_hack='
28161 s&@datadir@&$datadir&g
28162 s&@docdir@&$docdir&g
28163 s&@infodir@&$infodir&g
28164 s&@localedir@&$localedir&g
28165 s&@mandir@&$mandir&g
28166 s&\\\${datarootdir}&$datarootdir&g' ;;
28170 # Neutralize VPATH when `$srcdir' = `.'.
28171 # Shell code in configure.ac might set extrasub.
28172 # FIXME: do we really want to maintain this feature?
28173 cat >>$CONFIG_STATUS <<_ACEOF
28177 cat >>$CONFIG_STATUS <<\_ACEOF
28179 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28180 s
&@configure_input@
&$configure_input&;t t
28181 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28182 s
&@srcdir@
&$ac_srcdir&;t t
28183 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28184 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28185 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28186 s
&@builddir@
&$ac_builddir&;t t
28187 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28188 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28189 $ac_datarootdir_hack
28190 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
28192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28193 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28195 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28196 which seems to be undefined. Please make sure it is defined." >&5
28197 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28198 which seems to be undefined. Please make sure it is defined." >&2;}
28202 -) cat "$tmp/out"; rm -f "$tmp/out";;
28203 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28212 # Transform confdefs.h into a sed script `conftest.defines', that
28213 # substitutes the proper values into config.h.in to produce config.h.
28214 rm -f conftest.defines conftest.
tail
28215 # First, append a space to every undef/define line, to ease matching.
28216 echo 's/$/ /' >conftest.defines
28217 # Then, protect against being on the right side of a sed subst, or in
28218 # an unquoted here document, in config.status. If some macros were
28219 # called several times there might be several #defines for the same
28220 # symbol, which is useless. But do not sort them, since the last
28221 # AC_DEFINE must be honored.
28222 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28223 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28224 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28225 # PARAMS is the parameter list in the macro definition--in most cases, it's
28226 # just an empty string.
28227 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28228 ac_dB
='\\)[ (].*,\\1define\\2'
28236 s/^[ ]*#[ ]*define[ ][ ]*//
28241 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28242 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28243 ' >>conftest.defines
28245 # Remove the space that was appended to ease matching.
28246 # Then replace #undef with comments. This is necessary, for
28247 # example, in the case of _POSIX_SOURCE, which is predefined and required
28248 # on some systems where configure will not decide to define it.
28249 # (The regexp can be short, since the line contains either #define or #undef.)
28251 s,^[ #]*u.*,/* & */,' >>conftest.defines
28253 # Break up conftest.defines:
28254 ac_max_sed_lines
=50
28256 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28257 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28258 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28260 ac_in
='$ac_file_inputs'
28261 ac_out
='"$tmp/out1"'
28262 ac_nxt
='"$tmp/out2"'
28266 # Write a here document:
28267 cat >>$CONFIG_STATUS <<_ACEOF
28268 # First, check the format of the line:
28269 cat >"\$tmp/defines.sed" <<\\CEOF
28270 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28271 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28275 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28277 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28278 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28279 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28280 grep . conftest.
tail >/dev
/null ||
break
28281 rm -f conftest.defines
28282 mv conftest.
tail conftest.defines
28284 rm -f conftest.defines conftest.
tail
28286 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28287 cat >>$CONFIG_STATUS <<\_ACEOF
28288 if test x
"$ac_file" != x-
; then
28289 echo "/* $configure_input */" >"$tmp/config.h"
28290 cat "$ac_result" >>"$tmp/config.h"
28291 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28292 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28293 echo "$as_me: $ac_file is unchanged" >&6;}
28296 mv "$tmp/config.h" $ac_file
28299 echo "/* $configure_input */"
28309 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28310 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28312 if test ! -r "$srcdir/$ac_source"; then
28313 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28314 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28315 { (exit 1); exit 1; }; }
28319 # Try a relative symlink, then a hard link, then a copy.
28321 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
28322 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
28324 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
28325 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
28326 cp -p "$srcdir/$ac_source" "$ac_file" ||
28327 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28328 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28329 { (exit 1); exit 1; }; }
28331 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28332 echo "$as_me: executing $ac_file commands" >&6;}
28337 case $ac_file$ac_mode in
28338 "check_win32_symlinks":C
)
28339 # Links sometimes fail undetected on Mingw -
28340 # so here we detect it and warn the user
28341 for FILE
in $CONFIG_LINKS
28343 # test -e works for symlinks in the MinGW console
28344 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28345 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28348 "src/include/pg_config.h":H
)
28349 # Update timestamp for pg_config.h (see Makefile.global)
28350 echo >src
/include
/stamp-h
28352 "src/interfaces/ecpg/include/ecpg_config.h":H
) echo >src
/interfaces
/ecpg
/include
/stamp-h
;;
28358 { (exit 0); exit 0; }
28360 chmod +x
$CONFIG_STATUS
28361 ac_clean_files
=$ac_clean_files_save
28364 # configure is writing to config.log, and then calls config.status.
28365 # config.status does its own redirection, appending to config.log.
28366 # Unfortunately, on DOS this fails, as config.log is still kept open
28367 # by configure, so config.status won't be able to write to it; its
28368 # output is simply discarded. So we exec the FD to /dev/null,
28369 # effectively closing config.log, so it can be properly (re)opened and
28370 # appended to by config.status. When coming back to configure, we
28371 # need to make the FD available again.
28372 if test "$no_create" != yes; then
28374 ac_config_status_args
=
28375 test "$silent" = yes &&
28376 ac_config_status_args
="$ac_config_status_args --quiet"
28378 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28380 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28381 # would make configure fail if this is the last instruction.
28382 $ac_cs_success ||
{ (exit 1); exit 1; }
28386 # Warn about unknown options
28387 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28388 for pgac_arg
in $pgac_args with_gnu_ld
; do
28389 if test "$pgac_var" = "$pgac_arg"; then
28393 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
28394 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28395 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}