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-2008, 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
741 python_additional_libs
773 ac_precious_vars
='build_alias
786 # Initialize some variables set by options.
788 ac_init_version
=false
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
798 program_transform_name
=s
,x
,x
,
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir
='${exec_prefix}/bin'
813 sbindir
='${exec_prefix}/sbin'
814 libexecdir
='${exec_prefix}/libexec'
815 datarootdir
='${prefix}/share'
816 datadir
='${datarootdir}'
817 sysconfdir
='${prefix}/etc'
818 sharedstatedir
='${prefix}/com'
819 localstatedir
='${prefix}/var'
820 includedir
='${prefix}/include'
821 oldincludedir
='/usr/include'
822 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
823 infodir
='${datarootdir}/info'
828 libdir
='${exec_prefix}/lib'
829 localedir
='${datarootdir}/locale'
830 mandir
='${datarootdir}/man'
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
838 eval $ac_prev=\
$ac_option
844 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 # Accept the important Cygnus configure options, so we can diagnose typos.
850 case $ac_dashdash$ac_option in
854 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
856 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
859 -build |
--build |
--buil |
--bui |
--bu)
860 ac_prev
=build_alias
;;
861 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
862 build_alias
=$ac_optarg ;;
864 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
865 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
866 ac_prev
=cache_file
;;
867 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
868 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
869 cache_file
=$ac_optarg ;;
872 cache_file
=config.cache
;;
874 -datadir |
--datadir |
--datadi |
--datad)
876 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
877 datadir
=$ac_optarg ;;
879 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
880 |
--dataroo |
--dataro |
--datar)
881 ac_prev
=datarootdir
;;
882 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
883 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
884 datarootdir
=$ac_optarg ;;
886 -disable-* |
--disable-*)
887 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
890 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
891 { (exit 1); exit 1; }; }
892 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
893 eval enable_
$ac_feature=no
;;
895 -docdir |
--docdir |
--docdi |
--doc |
--do)
897 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
900 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
902 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
905 -enable-* |
--enable-*)
906 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
909 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910 { (exit 1); exit 1; }; }
911 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
912 eval enable_
$ac_feature=\
$ac_optarg ;;
914 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
915 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
916 |
--exec |
--exe |
--ex)
917 ac_prev
=exec_prefix
;;
918 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
919 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
920 |
--exec=* |
--exe=* |
--ex=*)
921 exec_prefix
=$ac_optarg ;;
923 -gas |
--gas |
--ga |
--g)
924 # Obsolete; use --with-gas.
927 -help |
--help |
--hel |
--he |
-h)
929 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
930 ac_init_help
=recursive
;;
931 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
932 ac_init_help
=short
;;
934 -host |
--host |
--hos |
--ho)
935 ac_prev
=host_alias
;;
936 -host=* |
--host=* |
--hos=* |
--ho=*)
937 host_alias
=$ac_optarg ;;
939 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
941 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
943 htmldir
=$ac_optarg ;;
945 -includedir |
--includedir |
--includedi |
--included |
--include \
946 |
--includ |
--inclu |
--incl |
--inc)
947 ac_prev
=includedir
;;
948 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
949 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
950 includedir
=$ac_optarg ;;
952 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
954 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
955 infodir
=$ac_optarg ;;
957 -libdir |
--libdir |
--libdi |
--libd)
959 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
962 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
963 |
--libexe |
--libex |
--libe)
964 ac_prev
=libexecdir
;;
965 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
966 |
--libexe=* |
--libex=* |
--libe=*)
967 libexecdir
=$ac_optarg ;;
969 -localedir |
--localedir |
--localedi |
--localed |
--locale)
971 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
972 localedir
=$ac_optarg ;;
974 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
975 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
976 ac_prev
=localstatedir
;;
977 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
978 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
979 localstatedir
=$ac_optarg ;;
981 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
983 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
987 # Obsolete; use --without-fp.
990 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
991 |
--no-cr |
--no-c |
-n)
994 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
995 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
998 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
999 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1000 |
--oldin |
--oldi |
--old |
--ol |
--o)
1001 ac_prev
=oldincludedir
;;
1002 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1003 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1004 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1005 oldincludedir
=$ac_optarg ;;
1007 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1009 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1010 prefix
=$ac_optarg ;;
1012 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1013 |
--program-pre |
--program-pr |
--program-p)
1014 ac_prev
=program_prefix
;;
1015 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1016 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1017 program_prefix
=$ac_optarg ;;
1019 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1020 |
--program-suf |
--program-su |
--program-s)
1021 ac_prev
=program_suffix
;;
1022 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1023 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1024 program_suffix
=$ac_optarg ;;
1026 -program-transform-name |
--program-transform-name \
1027 |
--program-transform-nam |
--program-transform-na \
1028 |
--program-transform-n |
--program-transform- \
1029 |
--program-transform |
--program-transfor \
1030 |
--program-transfo |
--program-transf \
1031 |
--program-trans |
--program-tran \
1032 |
--progr-tra |
--program-tr |
--program-t)
1033 ac_prev
=program_transform_name
;;
1034 -program-transform-name=* |
--program-transform-name=* \
1035 |
--program-transform-nam=* |
--program-transform-na=* \
1036 |
--program-transform-n=* |
--program-transform-=* \
1037 |
--program-transform=* |
--program-transfor=* \
1038 |
--program-transfo=* |
--program-transf=* \
1039 |
--program-trans=* |
--program-tran=* \
1040 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1041 program_transform_name
=$ac_optarg ;;
1043 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1045 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1046 pdfdir
=$ac_optarg ;;
1048 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1050 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1053 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1054 |
-silent |
--silent |
--silen |
--sile |
--sil)
1057 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1059 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1061 sbindir
=$ac_optarg ;;
1063 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1064 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1065 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1067 ac_prev
=sharedstatedir
;;
1068 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1069 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1070 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1072 sharedstatedir
=$ac_optarg ;;
1074 -site |
--site |
--sit)
1076 -site=* |
--site=* |
--sit=*)
1079 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1081 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1082 srcdir
=$ac_optarg ;;
1084 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1085 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1086 ac_prev
=sysconfdir
;;
1087 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1088 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1089 sysconfdir
=$ac_optarg ;;
1091 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1092 ac_prev
=target_alias
;;
1093 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1094 target_alias
=$ac_optarg ;;
1096 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1099 -version |
--version |
--versio |
--versi |
--vers |
-V)
1100 ac_init_version
=: ;;
1103 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1106 { echo "$as_me: error: invalid package name: $ac_package" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1109 eval with_
$ac_package=\
$ac_optarg ;;
1111 -without-* |
--without-*)
1112 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_
$ac_package=no
;;
1121 # Obsolete; use --with-x.
1124 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1125 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1126 ac_prev
=x_includes
;;
1127 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1128 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1129 x_includes
=$ac_optarg ;;
1131 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1132 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1133 ac_prev
=x_libraries
;;
1134 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1135 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1136 x_libraries
=$ac_optarg ;;
1138 -*) { echo "$as_me: error: unrecognized option: $ac_option
1139 Try \`$0 --help' for more information." >&2
1140 { (exit 1); exit 1; }; }
1144 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1147 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1148 { (exit 1); exit 1; }; }
1149 eval $ac_envvar=\
$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1156 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1163 if test -n "$ac_prev"; then
1164 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1165 { echo "$as_me: error: missing argument to $ac_option" >&2
1166 { (exit 1); exit 1; }; }
1169 # Be sure to have absolute directory names.
1170 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val
=\$
$ac_var
1177 [\\/$
]* | ?
:[\\/]* ) continue;;
1178 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1180 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1181 { (exit 1); exit 1; }; }
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1189 target
=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x
; then
1193 if test "x$build_alias" = x
; then
1194 cross_compiling
=maybe
1195 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196 If a cross compiler is detected then cross compile mode will be used." >&2
1197 elif test "x$build_alias" != "x$host_alias"; then
1203 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1205 test "$silent" = yes && exec 6>/dev
/null
1208 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di
=`ls -di .` &&
1210 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1211 { echo "$as_me: error: Working directory cannot be determined" >&2
1212 { (exit 1); exit 1; }; }
1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214 { echo "$as_me: error: pwd does not report name of working directory" >&2
1215 { (exit 1); exit 1; }; }
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted
=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir
=`$as_dirname -- "$0" ||
1223 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$0" : 'X\(//\)[^/]' \| \
1225 X"$0" : 'X\(//\)$' \| \
1226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1250 ac_srcdir_defaulted
=no
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1254 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1255 { (exit 1); exit 1; }; }
1257 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1260 { (exit 1); exit 1; }; }
1262 # When building in place, set srcdir=.
1263 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 # Remove unnecessary trailing slashes from srcdir.
1267 # Double slashes in file names in object file debugging info
1268 # mess up M-x gdb in Emacs.
1270 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 for ac_var
in $ac_precious_vars; do
1273 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1274 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1275 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1276 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1280 # Report the --help message.
1282 if test "$ac_init_help" = "long"; then
1283 # Omit some internal or obsolete options to make the list less imposing.
1284 # This message is too long to be a string in the A/UX 3.1 sh.
1286 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1288 Usage: $0 [OPTION]... [VAR=VALUE]...
1290 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1291 VAR=VALUE. See below for descriptions of some of the useful variables.
1293 Defaults for the options are specified in brackets.
1296 -h, --help display this help and exit
1297 --help=short display options specific to this package
1298 --help=recursive display the short help of all the included packages
1299 -V, --version display version information and exit
1300 -q, --quiet, --silent do not print \`checking...' messages
1301 --cache-file=FILE cache test results in FILE [disabled]
1302 -C, --config-cache alias for \`--cache-file=config.cache'
1303 -n, --no-create do not create output files
1304 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306 Installation directories:
1307 --prefix=PREFIX install architecture-independent files in PREFIX
1308 [$ac_default_prefix]
1309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 By default, \`make install' will install all the files in
1313 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1314 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1315 for instance \`--prefix=\$HOME'.
1317 For better control, use the options below.
1319 Fine tuning of the installation directories:
1320 --bindir=DIR user executables [EPREFIX/bin]
1321 --sbindir=DIR system admin executables [EPREFIX/sbin]
1322 --libexecdir=DIR program executables [EPREFIX/libexec]
1323 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1324 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1325 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1326 --libdir=DIR object code libraries [EPREFIX/lib]
1327 --includedir=DIR C header files [PREFIX/include]
1328 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1331 --infodir=DIR info documentation [DATAROOTDIR/info]
1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1333 --mandir=DIR man documentation [DATAROOTDIR/man]
1334 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1335 --htmldir=DIR html documentation [DOCDIR]
1336 --dvidir=DIR dvi documentation [DOCDIR]
1337 --pdfdir=DIR pdf documentation [DOCDIR]
1338 --psdir=DIR ps documentation [DOCDIR]
1344 --build=BUILD configure
for building on BUILD
[guessed
]
1345 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1349 if test -n "$ac_init_help"; then
1350 case $ac_init_help in
1351 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1356 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1357 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1358 --disable-integer-datetimes
1359 disable
64-bit integer date
/time support
1360 --enable-nls[=LANGUAGES
]
1361 enable Native Language Support
1362 --disable-shared do not build shared libraries
1363 --disable-rpath do not embed shared library search path
in
1365 --disable-spinlocks do not use spinlocks
1366 --enable-debug build with debugging symbols
(-g)
1367 --enable-profiling build with profiling enabled
1368 --enable-coverage build with coverage testing instrumentation
1369 --enable-dtrace build with DTrace support
1370 --enable-depend turn on automatic dependency tracking
1371 --enable-cassert enable assertion checks
(for debugging
)
1372 --enable-thread-safety make client libraries thread-safe
1373 --enable-thread-safety-force
1374 force thread-safety despite thread
test failure
1375 --disable-float4-byval disable float4 passed by value
1376 --disable-float8-byval disable float8 passed by value
1377 --disable-largefile omit support
for large files
1380 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1381 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1382 --with-template=NAME override operating system template
1383 --with-includes=DIRS
look for additional header files
in DIRS
1384 --with-libraries=DIRS
look for additional libraries
in DIRS
1385 --with-libs=DIRS alternative spelling of
--with-libraries
1386 --with-pgport=PORTNUM
set default port number
[5432]
1387 --with-blocksize=BLOCKSIZE
1388 set table block size
in kB
[8]
1389 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1390 --with-wal-blocksize=BLOCKSIZE
1391 set WAL block size
in kB
[8]
1392 --with-wal-segsize=SEGSIZE
1393 set WAL segment size
in MB
[16]
1394 --with-CC=CMD
set compiler
(deprecated
)
1395 --with-tcl build Tcl modules
(PL
/Tcl
)
1396 --with-tclconfig=DIR tclConfig.sh is
in DIR
1397 --with-perl build Perl modules
(PL
/Perl
)
1398 --with-python build Python modules
(PL
/Python
)
1399 --with-gssapi build with GSSAPI support
1400 --with-krb5 build with Kerberos
5 support
1401 --with-krb-srvnam=NAME default service principal name
in Kerberos
1403 --with-pam build with PAM support
1404 --with-ldap build with LDAP support
1405 --with-bonjour build with Bonjour support
1406 --with-openssl build with OpenSSL support
1407 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1408 --with-libedit-preferred
1409 prefer BSD Libedit over GNU Readline
1410 --with-ossp-uuid use OSSP UUID library when building
1412 --with-libxml build with XML support
1413 --with-libxslt use XSLT support when building contrib
/xml2
1414 --with-system-tzdata=DIR
1415 use system
time zone data
in DIR
1416 --without-zlib do not use Zlib
1417 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1419 Some influential environment variables
:
1420 CC C compiler
command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1423 nonstandard directory
<lib dir
>
1424 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1425 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1426 you have headers
in a nonstandard directory
<include dir
>
1430 location of DocBook stylesheets
1432 Use these variables to override the choices made by
`configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1435 Report bugs to <pgsql-bugs@postgresql.org>.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" || continue
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1463 .) # We are building in place.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1487 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1496 PostgreSQL configure 8.4devel
1497 generated by GNU Autoconf 2.61
1499 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1500 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1504 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1508 cat >config.log <<_ACEOF
1509 This file contains any messages produced by compilers while
1510 running configure, to aid debugging if configure makes a mistake.
1512 It was created by PostgreSQL $as_me 8.4devel, which was
1513 generated by GNU Autoconf 2.61. Invocation command line was
1525 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1526 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1527 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1528 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1529 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1531 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1532 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1534 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1535 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1536 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1537 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1538 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1539 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1540 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 test -z "$as_dir" && as_dir=.
1549 echo "PATH: $as_dir"
1565 # Keep a trace of the command line.
1566 # Strip out --no-create and --no-recursion so they do not pile up.
1567 # Strip out --silent because we don't want to record it for future runs.
1568 # Also quote any args containing shell meta-characters.
1569 # Make two passes to allow for proper duplicate-argument suppression.
1573 ac_must_keep_next=false
1579 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581 | -silent | --silent | --silen | --sile | --sil)
1584 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1587 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1589 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590 if test $ac_must_keep_next = true; then
1591 ac_must_keep_next=false # Got value, back to normal.
1594 *=* | --config-cache | -C | -disable-* | --disable-* \
1595 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597 | -with-* | --with-* | -without-* | --without-* | --x)
1598 case "$ac_configure_args0 " in
1599 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1602 -* ) ac_must_keep_next=true ;;
1605 ac_configure_args="$ac_configure_args '$ac_arg'"
1610 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1613 # When interrupted or exit'd, cleanup temporary files, and complete
1614 # config.log. We remove comments because anyway the quotes in there
1615 # would cause problems or look ugly.
1616 # WARNING: Use '\'' to represent an apostrophe within the trap.
1617 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618 trap 'exit_status=$?
1619 # Save into config.log some information that might help in debugging.
1624 ## ---------------- ##
1625 ## Cache variables. ##
1626 ## ---------------- ##
1629 # The following way of writing the cache mishandles newlines in values,
1631 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1632 eval ac_val=\$$ac_var
1636 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1640 _ | IFS | as_nl) ;; #(
1641 *) $as_unset $ac_var ;;
1646 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1647 *${as_nl}ac_space=\ *)
1649 "s/'\''/'\''\\\\'\'''\''/g;
1650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1666 for ac_var in $ac_subst_vars
1668 eval ac_val=\$$ac_var
1670 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 echo "$ac_var='\''$ac_val'\''"
1676 if test -n "$ac_subst_files"; then
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1683 for ac_var in $ac_subst_files
1685 eval ac_val=\$$ac_var
1687 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 echo "$ac_var='\''$ac_val'\''"
1694 if test -s confdefs.h; then
1704 test "$ac_signal" != 0 &&
1705 echo "$as_me: caught signal $ac_signal"
1706 echo "$as_me: exit $exit_status"
1708 rm -f core *.core core.conftest.* &&
1709 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1712 for ac_signal in 1 2 13 15; do
1713 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest* confdefs.h
1720 # Predefined preprocessor variables.
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer explicitly selected file to automatically selected ones.
1749 if test -n "$CONFIG_SITE"; then
1750 set x "$CONFIG_SITE"
1751 elif test "x$prefix" != xNONE; then
1752 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1754 set x "$ac_default_prefix/share/config.site" \
1755 "$ac_default_prefix/etc/config.site"
1760 if test -r "$ac_site_file"; then
1761 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762 echo "$as_me: loading site script $ac_site_file" >&6;}
1763 sed 's/^/| /' "$ac_site_file" >&5
1768 if test -r "$cache_file"; then
1769 # Some versions of bash will fail to source /dev/null (special
1770 # files actually), so we avoid doing that.
1771 if test -f "$cache_file"; then
1772 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773 echo "$as_me: loading cache $cache_file" >&6;}
1775 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776 *) . "./$cache_file";;
1780 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781 echo "$as_me: creating cache $cache_file" >&6;}
1785 # Check that the precious variables saved in the cache have kept the same
1787 ac_cache_corrupted=false
1788 for ac_var in $ac_precious_vars; do
1789 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790 eval ac_new_set=\$ac_env_${ac_var}_set
1791 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792 eval ac_new_val=\$ac_env_${ac_var}_value
1793 case $ac_old_set,$ac_new_set in
1795 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1796 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797 ac_cache_corrupted=: ;;
1799 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1800 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1804 if test "x$ac_old_val" != "x$ac_new_val"; then
1805 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1807 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1808 echo "$as_me: former value
: $ac_old_val" >&2;}
1809 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1810 echo "$as_me: current value
: $ac_new_val" >&2;}
1811 ac_cache_corrupted=:
1814 # Pass precious variables to config.status.
1815 if test "$ac_new_set" = set; then
1817 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1818 *) ac_arg=$ac_var=$ac_new_val ;;
1820 case " $ac_configure_args " in
1821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1822 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1826 if $ac_cache_corrupted; then
1827 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1828 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1829 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1830 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1831 { (exit 1); exit 1; }; }
1859 ac_cpp='$CPP $CPPFLAGS'
1860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 for ac_dir in config "$srcdir"/config; do
1871 if test -f "$ac_dir/install-sh"; then
1873 ac_install_sh="$ac_aux_dir/install-sh -c"
1875 elif test -f "$ac_dir/install.sh"; then
1877 ac_install_sh="$ac_aux_dir/install.sh -c"
1879 elif test -f "$ac_dir/shtool"; then
1881 ac_install_sh="$ac_aux_dir/shtool install -c"
1885 if test -z "$ac_aux_dir"; then
1886 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1887 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1888 { (exit 1); exit 1; }; }
1891 # These three variables are undocumented and unsupported,
1892 # and are intended to be withdrawn in a future Autoconf release.
1893 # They can cause serious problems if a builder's source tree is in a directory
1894 # whose full name contains unusual characters.
1895 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1896 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1897 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1901 configure_args=$ac_configure_args
1905 cat >>confdefs.h <<_ACEOF
1906 #define PG_VERSION "$PACKAGE_VERSION"
1910 # Make sure we can run config.sub.
1911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1912 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1913 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1914 { (exit 1); exit 1; }; }
1916 { echo "$as_me:$LINENO: checking build system type" >&5
1917 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1918 if test "${ac_cv_build+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 ac_build_alias=$build_alias
1922 test "x$ac_build_alias" = x &&
1923 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1924 test "x$ac_build_alias" = x &&
1925 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1926 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1927 { (exit 1); exit 1; }; }
1928 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1929 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1930 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1931 { (exit 1); exit 1; }; }
1934 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1935 echo "${ECHO_T}$ac_cv_build" >&6; }
1936 case $ac_cv_build in
1938 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1939 echo "$as_me: error: invalid value of canonical build" >&2;}
1940 { (exit 1); exit 1; }; };;
1943 ac_save_IFS=$IFS; IFS='-'
1949 # Remember, the first character of IFS is used to create $*,
1950 # except with old shells:
1953 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1956 { echo "$as_me:$LINENO: checking host system type" >&5
1957 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1958 if test "${ac_cv_host+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test "x$host_alias" = x; then
1962 ac_cv_host=$ac_cv_build
1964 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1965 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1966 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1967 { (exit 1); exit 1; }; }
1971 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1972 echo "${ECHO_T}$ac_cv_host" >&6; }
1975 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1976 echo "$as_me: error: invalid value of canonical host" >&2;}
1977 { (exit 1); exit 1; }; };;
1980 ac_save_IFS=$IFS; IFS='-'
1986 # Remember, the first character of IFS is used to create $*,
1987 # except with old shells:
1990 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1995 { echo "$as_me:$LINENO: checking which template to use" >&5
1996 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1999 pgac_args="$pgac_args with_template"
2002 # Check whether --with-template was given.
2003 if test "${with_template+set}" = set; then
2004 withval=$with_template;
2007 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2008 echo "$as_me: error: argument required for --with-template option" >&2;}
2009 { (exit 1); exit 1; }; }
2012 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2013 echo "$as_me: error: argument required for --with-template option" >&2;}
2014 { (exit 1); exit 1; }; }
2019 list) echo; ls "$srcdir/src/template"; exit;;
2020 *) if test -f "$srcdir/src/template/$with_template" ; then
2023 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2024 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2025 { (exit 1); exit 1; }; }
2034 # --with-template not given
2037 aix*) template=aix ;;
2038 bsdi*) template=bsdi ;;
2039 cygwin*) template=cygwin ;;
2040 darwin*) template=darwin ;;
2041 dgux*) template=dgux ;;
2042 freebsd*) template=freebsd ;;
2043 hpux*) template=hpux ;;
2044 irix*) template=irix ;;
2045 linux*|gnu*|k*bsd*-gnu)
2047 mingw*) template=win32 ;;
2048 netbsd*) template=netbsd ;;
2049 nextstep*) template=nextstep ;;
2050 openbsd*) template=openbsd ;;
2051 osf*) template=osf ;;
2052 sco*) template=sco ;;
2053 solaris*) template=solaris ;;
2054 sunos*) template=sunos4 ;;
2056 case $host_vendor in
2057 univel) template=univel ;;
2059 sysv4*) template=svr4 ;;
2060 sysv5*) template=unixware ;;
2061 ultrix*) template=ultrix4 ;;
2064 if test x"$template" = x"" ; then
2065 { { echo "$as_me:$LINENO: error:
2066 *******************************************************************
2067 PostgreSQL has apparently not been ported to your platform yet.
2068 To try a manual configuration, look into the src/template directory
2069 for a similar platform and use the '--with-template=' option.
2071 Please also contact <pgsql-ports@postgresql.org> to see about
2072 rectifying this. Include the above 'checking host system type...'
2074 *******************************************************************
2076 echo "$as_me: error:
2077 *******************************************************************
2078 PostgreSQL has apparently not been ported to your platform yet.
2079 To try a manual configuration, look into the src/template directory
2080 for a similar platform and use the '--with-template=' option.
2082 Please also contact <pgsql-ports@postgresql.org> to see about
2083 rectifying this. Include the above 'checking host system type...'
2085 *******************************************************************
2087 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: result: $template" >&5
2096 echo "${ECHO_T}$template" >&6; }
2101 # Initialize default assumption that we do not need separate assembly code
2102 # for TAS (test-and-set). This can be overridden by the template file
2103 # when it's executed.
2110 ## Command line options
2114 # Add non-standard directories to the include path
2117 pgac_args="$pgac_args with_includes"
2120 # Check whether --with-includes was given.
2121 if test "${with_includes+set}" = set; then
2122 withval=$with_includes;
2125 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2126 echo "$as_me: error: argument required for --with-includes option" >&2;}
2127 { (exit 1); exit 1; }; }
2130 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2131 echo "$as_me: error: argument required for --with-includes option" >&2;}
2132 { (exit 1); exit 1; }; }
2145 # Add non-standard directories to the library search path
2148 pgac_args="$pgac_args with_libraries"
2151 # Check whether --with-libraries was given.
2152 if test "${with_libraries+set}" = set; then
2153 withval=$with_libraries;
2156 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2157 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2158 { (exit 1); exit 1; }; }
2161 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2162 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2163 { (exit 1); exit 1; }; }
2166 LIBRARY_DIRS=$withval
2175 pgac_args="$pgac_args with_libs"
2178 # Check whether --with-libs was given.
2179 if test "${with_libs+set}" = set; then
2183 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2184 echo "$as_me: error: argument required for --with-libs option" >&2;}
2185 { (exit 1); exit 1; }; }
2188 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2189 echo "$as_me: error: argument required for --with-libs option" >&2;}
2190 { (exit 1); exit 1; }; }
2193 LIBRARY_DIRS=$withval
2203 # 64-bit integer date/time storage: enabled by default.
2205 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2206 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2208 pgac_args="$pgac_args enable_integer_datetimes"
2210 # Check whether --enable-integer-datetimes was given.
2211 if test "${enable_integer_datetimes+set}" = set; then
2212 enableval=$enable_integer_datetimes;
2216 cat >>confdefs.h <<\_ACEOF
2217 #define USE_INTEGER_DATETIMES 1
2225 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2226 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2227 { (exit 1); exit 1; }; }
2232 enable_integer_datetimes=yes
2234 cat >>confdefs.h <<\_ACEOF
2235 #define USE_INTEGER_DATETIMES 1
2241 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2242 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2248 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2249 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2251 pgac_args="$pgac_args enable_nls"
2253 # Check whether --enable-nls was given.
2254 if test "${enable_nls+set}" = set; then
2255 enableval=$enable_nls;
2265 WANTED_LANGUAGES=$enableval
2275 if test "$enable_nls" = yes; then
2277 cat >>confdefs.h <<\_ACEOF
2278 #define ENABLE_NLS 1
2283 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2284 echo "${ECHO_T}$enable_nls" >&6; }
2289 # Default port number (--with-pgport), default 5432
2291 { echo "$as_me:$LINENO: checking for default port number" >&5
2292 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2294 pgac_args="$pgac_args with_pgport"
2297 # Check whether --with-pgport was given.
2298 if test "${with_pgport+set}" = set; then
2299 withval=$with_pgport;
2302 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2303 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2304 { (exit 1); exit 1; }; }
2307 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2308 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2309 { (exit 1); exit 1; }; }
2312 default_port=$withval
2321 { echo "$as_me:$LINENO: result: $default_port" >&5
2322 echo "${ECHO_T}$default_port" >&6; }
2323 # Need both of these because some places want an integer and some a string
2325 cat >>confdefs.h <<_ACEOF
2326 #define DEF_PGPORT ${default_port}
2330 cat >>confdefs.h <<_ACEOF
2331 #define DEF_PGPORT_STR "${default_port}"
2337 # Option to disable shared libraries
2340 pgac_args="$pgac_args enable_shared"
2342 # Check whether --enable-shared was given.
2343 if test "${enable_shared+set}" = set; then
2344 enableval=$enable_shared;
2353 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2354 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2355 { (exit 1); exit 1; }; }
2368 # '-rpath'-like feature can be disabled
2371 pgac_args="$pgac_args enable_rpath"
2373 # Check whether --enable-rpath was given.
2374 if test "${enable_rpath+set}" = set; then
2375 enableval=$enable_rpath;
2384 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2385 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2386 { (exit 1); exit 1; }; }
2402 pgac_args="$pgac_args enable_spinlocks"
2404 # Check whether --enable-spinlocks was given.
2405 if test "${enable_spinlocks+set}" = set; then
2406 enableval=$enable_spinlocks;
2415 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2416 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2417 { (exit 1); exit 1; }; }
2422 enable_spinlocks=yes
2429 # --enable-debug adds -g to compiler flags
2432 pgac_args="$pgac_args enable_debug"
2434 # Check whether --enable-debug was given.
2435 if test "${enable_debug+set}" = set; then
2436 enableval=$enable_debug;
2445 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2446 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2447 { (exit 1); exit 1; }; }
2460 # --enable-profiling enables gcc profiling
2463 pgac_args="$pgac_args enable_profiling"
2465 # Check whether --enable-profiling was given.
2466 if test "${enable_profiling+set}" = set; then
2467 enableval=$enable_profiling;
2476 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2477 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2478 { (exit 1); exit 1; }; }
2491 # --enable-coverage enables generation of code coverage metrics with gcov
2494 pgac_args="$pgac_args enable_coverage"
2496 # Check whether --enable-coverage was given.
2497 if test "${enable_coverage+set}" = set; then
2498 enableval=$enable_coverage;
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_GCOV+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$GCOV"; then
2511 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_GCOV="$ac_prog"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 GCOV=$ac_cv_prog_GCOV
2531 if test -n "$GCOV"; then
2532 { echo "$as_me:$LINENO: result: $GCOV" >&5
2533 echo "${ECHO_T}$GCOV" >&6; }
2535 { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2540 test -n "$GCOV" && break
2543 if test -z "$GCOV"; then
2544 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2545 echo "$as_me: error: gcov not found" >&2;}
2546 { (exit 1); exit 1; }; }
2550 # Extract the first word of "$ac_prog", so it can be a program name with args.
2551 set dummy $ac_prog; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_LCOV+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 if test -n "$LCOV"; then
2558 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_LCOV="$ac_prog"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 LCOV=$ac_cv_prog_LCOV
2578 if test -n "$LCOV"; then
2579 { echo "$as_me:$LINENO: result: $LCOV" >&5
2580 echo "${ECHO_T}$LCOV" >&6; }
2582 { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2587 test -n "$LCOV" && break
2590 if test -z "$LCOV"; then
2591 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2592 echo "$as_me: error: lcov not found" >&2;}
2593 { (exit 1); exit 1; }; }
2595 for ac_prog in genhtml
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_GENHTML+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$GENHTML"; then
2605 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_GENHTML="$ac_prog"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 GENHTML=$ac_cv_prog_GENHTML
2625 if test -n "$GENHTML"; then
2626 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2627 echo "${ECHO_T}$GENHTML" >&6; }
2629 { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2634 test -n "$GENHTML" && break
2637 if test -z "$GENHTML"; then
2638 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2639 echo "$as_me: error: genhtml not found" >&2;}
2640 { (exit 1); exit 1; }; }
2647 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2648 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2649 { (exit 1); exit 1; }; }
2665 pgac_args="$pgac_args enable_dtrace"
2667 # Check whether --enable-dtrace was given.
2668 if test "${enable_dtrace+set}" = set; then
2669 enableval=$enable_dtrace;
2673 cat >>confdefs.h <<\_ACEOF
2674 #define ENABLE_DTRACE 1
2677 for ac_prog in dtrace
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_DTRACE+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 if test -n "$DTRACE"; then
2687 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_DTRACE="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 DTRACE=$ac_cv_prog_DTRACE
2707 if test -n "$DTRACE"; then
2708 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2709 echo "${ECHO_T}$DTRACE" >&6; }
2711 { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2716 test -n "$DTRACE" && break
2719 if test -z "$DTRACE"; then
2720 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2721 echo "$as_me: error: dtrace not found" >&2;}
2722 { (exit 1); exit 1; }; }
2730 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2731 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2732 { (exit 1); exit 1; }; }
2747 { echo "$as_me:$LINENO: checking for block size" >&5
2748 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2750 pgac_args="$pgac_args with_blocksize"
2753 # Check whether --with-blocksize was given.
2754 if test "${with_blocksize+set}" = set; then
2755 withval=$with_blocksize;
2758 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2759 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2760 { (exit 1); exit 1; }; }
2763 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2764 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2765 { (exit 1); exit 1; }; }
2777 case ${blocksize} in
2784 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2785 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2786 { (exit 1); exit 1; }; }
2788 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2789 echo "${ECHO_T}${blocksize}kB" >&6; }
2792 cat >>confdefs.h <<_ACEOF
2793 #define BLCKSZ ${BLCKSZ}
2798 # Relation segment size
2800 { echo "$as_me:$LINENO: checking for segment size" >&5
2801 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2803 pgac_args="$pgac_args with_segsize"
2806 # Check whether --with-segsize was given.
2807 if test "${with_segsize+set}" = set; then
2808 withval=$with_segsize;
2811 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2812 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2813 { (exit 1); exit 1; }; }
2816 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2817 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2818 { (exit 1); exit 1; }; }
2830 # this expression is set up to avoid unnecessary integer overflow
2831 # blocksize is already guaranteed to be a factor of 1024
2832 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2833 test $? -eq 0 || exit 1
2834 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2835 echo "${ECHO_T}${segsize}GB" >&6; }
2838 cat >>confdefs.h <<_ACEOF
2839 #define RELSEG_SIZE ${RELSEG_SIZE}
2846 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2847 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2849 pgac_args="$pgac_args with_wal_blocksize"
2852 # Check whether --with-wal-blocksize was given.
2853 if test "${with_wal_blocksize+set}" = set; then
2854 withval=$with_wal_blocksize;
2857 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2858 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2859 { (exit 1); exit 1; }; }
2862 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2863 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2864 { (exit 1); exit 1; }; }
2867 wal_blocksize=$withval
2876 case ${wal_blocksize} in
2877 1) XLOG_BLCKSZ=1024;;
2878 2) XLOG_BLCKSZ=2048;;
2879 4) XLOG_BLCKSZ=4096;;
2880 8) XLOG_BLCKSZ=8192;;
2881 16) XLOG_BLCKSZ=16384;;
2882 32) XLOG_BLCKSZ=32768;;
2883 64) XLOG_BLCKSZ=65536;;
2884 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2885 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2886 { (exit 1); exit 1; }; }
2888 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2889 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2892 cat >>confdefs.h <<_ACEOF
2893 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2900 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2901 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2903 pgac_args="$pgac_args with_wal_segsize"
2906 # Check whether --with-wal-segsize was given.
2907 if test "${with_wal_segsize+set}" = set; then
2908 withval=$with_wal_segsize;
2911 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2912 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2913 { (exit 1); exit 1; }; }
2916 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2917 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2918 { (exit 1); exit 1; }; }
2921 wal_segsize=$withval
2930 case ${wal_segsize} in
2938 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2939 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2940 { (exit 1); exit 1; }; }
2942 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2943 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2946 cat >>confdefs.h <<_ACEOF
2947 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2955 # For historical reasons you can also use --with-CC to specify the C compiler
2956 # to use, although the standard way to do this is to set the CC environment
2959 pgac_args="$pgac_args with_CC"
2962 # Check whether --with-CC was given.
2963 if test "${with_CC+set}" = set; then
2967 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2968 echo "$as_me: error: argument required for --with-CC option" >&2;}
2969 { (exit 1); exit 1; }; }
2972 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2973 echo "$as_me: error: argument required for --with-CC option" >&2;}
2974 { (exit 1); exit 1; }; }
2986 aix) pgac_cc_list="gcc xlc";;
2987 irix) pgac_cc_list="cc";; # no gcc
2988 *) pgac_cc_list="gcc cc";;
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 if test -n "$ac_tool_prefix"; then
2997 for ac_prog in $pgac_cc_list
2999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_CC+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 if test -n "$CC"; then
3007 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 if test -n "$CC"; then
3028 { echo "$as_me:$LINENO: result: $CC" >&5
3029 echo "${ECHO_T}$CC" >&6; }
3031 { echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6; }
3036 test -n "$CC" && break
3039 if test -z "$CC"; then
3041 for ac_prog in $pgac_cc_list
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_CC="$ac_prog"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073 echo "${ECHO_T}$ac_ct_CC" >&6; }
3075 { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3080 test -n "$ac_ct_CC" && break
3083 if test "x$ac_ct_CC" = x; then
3086 case $cross_compiling:$ac_tool_warned in
3088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3089 whose name does not start with the host triplet. If you think this
3090 configuration is useful to you, please write to autoconf@gnu.org." >&5
3091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3092 whose name does not start with the host triplet. If you think this
3093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3094 ac_tool_warned=yes ;;
3101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3102 See \`config.log
' for more details." >&5
3103 echo "$as_me: error: no acceptable C compiler found in \$PATH
3104 See \`config.log' for more details.
" >&2;}
3105 { (exit 1); exit 1; }; }
3107 # Provide some information about the compiler.
3108 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3109 ac_compiler=`set X $ac_compile; echo $2`
3110 { (ac_try="$ac_compiler --version >&5"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compiler --version >&5") 2>&5
3118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3119 (exit $ac_status); }
3120 { (ac_try="$ac_compiler -v >&5"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compiler -v >&5") 2>&5
3128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3129 (exit $ac_status); }
3130 { (ac_try="$ac_compiler -V >&5"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compiler -V >&5") 2>&5
3138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3139 (exit $ac_status); }
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3156 ac_clean_files_save=$ac_clean_files
3157 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3158 # Try to create an executable without -o first, disregard a.out.
3159 # It will help us diagnose broken compilers, and finding out an intuition
3161 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3162 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3165 # List of possible output files, starting from the most likely.
3166 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3167 # only as a last resort. b.out is created by i960 compilers.
3168 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3170 # The IRIX 6 linker writes into existing files which may not be
3171 # executable, retaining their permissions. Remove them first so a
3172 # subsequent execution test works.
3174 for ac_file in $ac_files
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3178 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3183 if { (ac_try="$ac_link_default"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_link_default") 2>&5
3191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3192 (exit $ac_status); }; then
3193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3195 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3196 # so that the user can short-circuit this test for compilers unknown to
3198 for ac_file in $ac_files ''
3200 test -f "$ac_file" || continue
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3205 # We found the default executable, but exeext='' is most
3209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 # We set ac_cv_exeext here because the later test for it is not
3214 # safe: cross compilers may not add the suffix if given an `-o'
3215 # argument, so we may need to know it at that point already.
3216 # Even if this section looks crufty: it has the advantage of
3223 test "$ac_cv_exeext" = no && ac_cv_exeext=
3229 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3230 echo "${ECHO_T}$ac_file" >&6; }
3231 if test -z "$ac_file"; then
3232 echo "$as_me: failed program was
:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3235 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3236 See \
`config.log' for more details." >&5
3237 echo "$as_me: error: C compiler cannot create executables
3238 See \`config.log
' for more details." >&2;}
3239 { (exit 77); exit 77; }; }
3242 ac_exeext=$ac_cv_exeext
3244 # Check that the compiler produces executables we can run. If not, either
3245 # the compiler is broken, or we cross compile.
3246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3249 # If not cross compiling, check that we can run a simple program.
3250 if test "$cross_compiling" != yes; then
3251 if { ac_try='.
/$ac_file'
3252 { (case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_try") 2>&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3263 if test "$cross_compiling" = maybe; then
3266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3267 If you meant to cross compile, use \`--host'.
3268 See \
`config.log' for more details." >&5
3269 echo "$as_me: error: cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'.
3271 See \`config.log' for more details.
" >&2;}
3272 { (exit 1); exit 1; }; }
3276 { echo "$as_me:$LINENO: result
: yes" >&5
3277 echo "${ECHO_T}yes" >&6; }
3279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3280 ac_clean_files=$ac_clean_files_save
3281 # Check that the compiler produces executables we can run. If not, either
3282 # the compiler is broken, or we cross compile.
3283 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3284 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3285 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3286 echo "${ECHO_T}$cross_compiling" >&6; }
3288 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3289 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3290 if { (ac_try="$ac_link"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_link") 2>&5
3298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3299 (exit $ac_status); }; then
3300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3302 # work properly (i.e., refer to `conftest.exe'), while it won't with
3304 for ac_file in conftest.exe conftest conftest.*; do
3305 test -f "$ac_file" || continue
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3315 See \
`config.log' for more details." >&5
3316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3317 See \`config.log
' for more details." >&2;}
3318 { (exit 1); exit 1; }; }
3321 rm -f conftest$ac_cv_exeext
3322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3325 rm -f conftest.$ac_ext
3326 EXEEXT=$ac_cv_exeext
3328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3330 if test "${ac_cv_objext+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3348 rm -f conftest.o conftest.obj
3349 if { (ac_try="$ac_compile"
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_compile") 2>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; then
3359 for ac_file in conftest.o conftest.obj conftest.*; do
3360 test -f "$ac_file" || continue;
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3363 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3368 echo "$as_me: failed program was:" >&5
3369 sed 's
/^
/|
/' conftest.$ac_ext >&5
3371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3372 See \`config.log' for more details.
" >&5
3373 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3374 See \
`config.log' for more details." >&2;}
3375 { (exit 1); exit 1; }; }
3378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3381 echo "${ECHO_T}$ac_cv_objext" >&6; }
3382 OBJEXT=$ac_cv_objext
3384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 cat >conftest.$ac_ext <<_ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3407 rm -f conftest.$ac_objext
3408 if { (ac_try="$ac_compile"
3410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3411 *) ac_try_echo
=$ac_try;;
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_compile") 2>conftest.er1
3416 grep -v '^ *+' conftest.er1
>conftest.err
3418 cat conftest.err
>&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } && {
3421 test -z "$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 } && test -s conftest.
$ac_objext; then
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.
$ac_ext >&5
3432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3433 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3436 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3437 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3438 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3439 ac_test_CFLAGS
=${CFLAGS+set}
3440 ac_save_CFLAGS
=$CFLAGS
3441 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3442 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_cc_g+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 ac_save_c_werror_flag
=$ac_c_werror_flag
3447 ac_c_werror_flag
=yes
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3465 rm -f conftest.
$ac_objext
3466 if { (ac_try
="$ac_compile"
3468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_compile") 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } && {
3479 test -z "$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 } && test -s conftest.$ac_objext; then
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3507 *) ac_try_echo
=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_compile") 2>conftest.er1
3512 grep -v '^ *+' conftest.er1
>conftest.err
3514 cat conftest.err
>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } && {
3517 test -z "$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 } && test -s conftest.
$ac_objext; then
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.
$ac_ext >&5
3525 ac_c_werror_flag
=$ac_save_c_werror_flag
3527 cat >conftest.
$ac_ext <<_ACEOF
3530 cat confdefs.h
>>conftest.
$ac_ext
3531 cat >>conftest.
$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3542 rm -f conftest.
$ac_objext
3543 if { (ac_try
="$ac_compile"
3545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_compile") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } && {
3556 test -z "$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3558 } && test -s conftest.$ac_objext; then
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3577 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3578 if test "$ac_test_CFLAGS" = set; then
3579 CFLAGS=$ac_save_CFLAGS
3580 elif test $ac_cv_prog_cc_g = yes; then
3581 if test "$GCC" = yes; then
3587 if test "$GCC" = yes; then
3593 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3594 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3595 if test "${ac_cv_prog_cc_c89+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 ac_cv_prog_cc_c89=no
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3608 #include <sys/types.h>
3609 #include <sys/stat.h>
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3624 s = g (p, va_arg (v,int));
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3630 function prototypes and stuff, but not '\xHH' hex character constants.
3631 These don't provoke an error unfortunately, instead are silently treated
3632 as 'x'. The following induces an error, until -std is added to get
3633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3634 array size at least. It's necessary to write '\x00'==0 to get something
3635 that's true only with -std. */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660 CC="$ac_save_CC $ac_arg"
3661 rm -f conftest.$ac_objext
3662 if { (ac_try="$ac_compile"
3664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3665 *) ac_try_echo
=$ac_try;;
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_compile") 2>conftest.er1
3670 grep -v '^ *+' conftest.er1
>conftest.err
3672 cat conftest.err
>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest.
$ac_objext; then
3678 ac_cv_prog_cc_c89
=$ac_arg
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.
$ac_ext >&5
3686 rm -f core conftest.err conftest.
$ac_objext
3687 test "x$ac_cv_prog_cc_c89" != "xno" && break
3689 rm -f conftest.
$ac_ext
3694 case "x$ac_cv_prog_cc_c89" in
3696 { echo "$as_me:$LINENO: result: none needed" >&5
3697 echo "${ECHO_T}none needed" >&6; } ;;
3699 { echo "$as_me:$LINENO: result: unsupported" >&5
3700 echo "${ECHO_T}unsupported" >&6; } ;;
3702 CC
="$CC $ac_cv_prog_cc_c89"
3703 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3704 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3709 ac_cpp
='$CPP $CPPFLAGS'
3710 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3715 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3716 # but has idiosyncrasies of its own. We assume icc will define
3717 # __INTEL_COMPILER regardless of CFLAGS.
3719 cat >conftest.
$ac_ext <<_ACEOF
3722 cat confdefs.h
>>conftest.
$ac_ext
3723 cat >>conftest.
$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3729 #ifndef __INTEL_COMPILER
3736 rm -f conftest.
$ac_objext
3737 if { (ac_try
="$ac_compile"
3739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3743 (eval "$ac_compile") 2>conftest.er1
3745 grep -v '^ *+' conftest.er1 >conftest.err
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } && {
3750 test -z "$ac_c_werror_flag" ||
3751 test ! -s conftest.err
3752 } && test -s conftest.$ac_objext; then
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 # Check if it's Sun Studio compiler. We assume that
3764 # __SUNPRO_C will be defined for Sun Studio compilers
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3782 rm -f conftest.$ac_objext
3783 if { (ac_try="$ac_compile"
3785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3786 *) ac_try_echo
=$ac_try;;
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3791 grep -v '^ *+' conftest.er1
>conftest.err
3793 cat conftest.err
>&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.
$ac_objext; then
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.
$ac_ext >&5
3807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3816 .
"$srcdir/src/template/$template" ||
exit
3818 # CFLAGS are selected so:
3819 # If the user specifies something in the environment, that is used.
3820 # else: If the template file set something, that is used.
3821 # else: If coverage was enabled, don't set anything.
3822 # else: If the compiler is GCC, then we use -O2.
3823 # else: If the compiler is something else, then we use -O.
3825 if test "$ac_env_CFLAGS_set" = set; then
3826 CFLAGS
=$ac_env_CFLAGS_value
3827 elif test "${CFLAGS+set}" = set; then
3828 : # (keep what template set)
3829 elif test "$enable_coverage" = yes; then
3830 : # no optimization by default
3831 elif test "$GCC" = yes; then
3834 # if the user selected debug mode, don't use -O
3835 if test "$enable_debug" != yes; then
3840 # Some versions of GCC support some additional useful warning flags.
3841 # Check whether they are supported, and add them to CFLAGS if so.
3842 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3844 if test "$GCC" = yes -a "$ICC" = no
; then
3845 CFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3846 # These work in some but not all gcc versions
3847 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3848 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3849 pgac_save_CFLAGS
=$CFLAGS
3850 CFLAGS
="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3851 cat >conftest.
$ac_ext <<_ACEOF
3854 cat confdefs.h
>>conftest.
$ac_ext
3855 cat >>conftest.
$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3866 rm -f conftest.
$ac_objext
3867 if { (ac_try
="$ac_compile"
3869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.$ac_objext; then
3883 { echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6; }
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 CFLAGS="$pgac_save_CFLAGS"
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3897 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3898 pgac_save_CFLAGS=$CFLAGS
3899 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3915 rm -f conftest.$ac_objext
3916 if { (ac_try="$ac_compile"
3918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3919 *) ac_try_echo
=$ac_try;;
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_compile") 2>conftest.er1
3924 grep -v '^ *+' conftest.er1
>conftest.err
3926 cat conftest.err
>&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } && {
3929 test -z "$ac_c_werror_flag" ||
3930 test ! -s conftest.err
3931 } && test -s conftest.
$ac_objext; then
3932 { echo "$as_me:$LINENO: result: yes" >&5
3933 echo "${ECHO_T}yes" >&6; }
3935 echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.
$ac_ext >&5
3938 CFLAGS
="$pgac_save_CFLAGS"
3939 { echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6; }
3943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3945 # Disable strict-aliasing rules; needed for gcc 3.3+
3946 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3947 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3948 pgac_save_CFLAGS
=$CFLAGS
3949 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3950 cat >conftest.
$ac_ext <<_ACEOF
3953 cat confdefs.h
>>conftest.
$ac_ext
3954 cat >>conftest.
$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3965 rm -f conftest.
$ac_objext
3966 if { (ac_try
="$ac_compile"
3968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_compile") 2>conftest.er1
3974 grep -v '^ *+' conftest.er1 >conftest.err
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest.$ac_objext; then
3982 { echo "$as_me:$LINENO: result: yes" >&5
3983 echo "${ECHO_T}yes" >&6; }
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 CFLAGS="$pgac_save_CFLAGS"
3989 { echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6; }
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3996 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3997 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3998 pgac_save_CFLAGS=$CFLAGS
3999 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4019 *) ac_try_echo
=$ac_try;;
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4024 grep -v '^ *+' conftest.er1
>conftest.err
4026 cat conftest.err
>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.
$ac_objext; then
4032 { echo "$as_me:$LINENO: result: yes" >&5
4033 echo "${ECHO_T}yes" >&6; }
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.
$ac_ext >&5
4038 CFLAGS
="$pgac_save_CFLAGS"
4039 { echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6; }
4043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4045 elif test "$ICC" = yes; then
4046 # Intel's compiler has a bug/misoptimization in checking for
4047 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4048 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4049 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4050 pgac_save_CFLAGS
=$CFLAGS
4051 CFLAGS
="$pgac_save_CFLAGS -mp1"
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4067 rm -f conftest.
$ac_objext
4068 if { (ac_try
="$ac_compile"
4070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4084 { echo "$as_me:$LINENO: result: yes" >&5
4085 echo "${ECHO_T}yes" >&6; }
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 CFLAGS="$pgac_save_CFLAGS"
4091 { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 # Make sure strict aliasing is off (though this is said to be the default)
4098 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4099 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4100 pgac_save_CFLAGS=$CFLAGS
4101 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4117 rm -f conftest.$ac_objext
4118 if { (ac_try="$ac_compile"
4120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4121 *) ac_try_echo
=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4126 grep -v '^ *+' conftest.er1
>conftest.err
4128 cat conftest.err
>&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } && {
4131 test -z "$ac_c_werror_flag" ||
4132 test ! -s conftest.err
4133 } && test -s conftest.
$ac_objext; then
4134 { echo "$as_me:$LINENO: result: yes" >&5
4135 echo "${ECHO_T}yes" >&6; }
4137 echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.
$ac_ext >&5
4140 CFLAGS
="$pgac_save_CFLAGS"
4141 { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4147 elif test x
"${CC}" = x
"xlc"; then
4148 # AIX xlc has to have strict aliasing turned off too
4149 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4150 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4151 pgac_save_CFLAGS
=$CFLAGS
4152 CFLAGS
="$pgac_save_CFLAGS -qnoansialias"
4153 cat >conftest.
$ac_ext <<_ACEOF
4156 cat confdefs.h
>>conftest.
$ac_ext
4157 cat >>conftest.
$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4168 rm -f conftest.
$ac_objext
4169 if { (ac_try
="$ac_compile"
4171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_compile") 2>conftest.er1
4177 grep -v '^ *+' conftest.er1 >conftest.err
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && {
4182 test -z "$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 } && test -s conftest.$ac_objext; then
4185 { echo "$as_me:$LINENO: result: yes" >&5
4186 echo "${ECHO_T}yes" >&6; }
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 CFLAGS="$pgac_save_CFLAGS"
4192 { echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6; }
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 # supply -g if --enable-debug
4201 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4205 # enable code coverage if --enable-coverage
4206 if test "$enable_coverage" = yes; then
4207 if test "$GCC" = yes; then
4208 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4210 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4211 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4212 { (exit 1); exit 1; }; }
4216 # enable profiling if --enable-profiling
4217 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4218 if test "$GCC" = yes; then
4220 cat >>confdefs.h <<\_ACEOF
4221 #define PROFILE_PID_DIR 1
4224 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4226 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4227 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4228 { (exit 1); exit 1; }; }
4232 # We already have this in Makefile.win32, but configure needs it too
4233 if test "$PORTNAME" = "win32"; then
4234 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4237 # Check if the compiler still works with the template settings
4238 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4239 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4240 cat >conftest.$ac_ext <<_ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4255 rm -f conftest.$ac_objext conftest$ac_exeext
4256 if { (ac_try="$ac_link"
4258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4259 *) ac_try_echo
=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_link") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1
>conftest.err
4266 cat conftest.err
>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } && {
4269 test -z "$ac_c_werror_flag" ||
4270 test ! -s conftest.err
4271 } && test -s conftest
$ac_exeext &&
4272 $as_test_x conftest
$ac_exeext; then
4273 { echo "$as_me:$LINENO: result: yes" >&5
4274 echo "${ECHO_T}yes" >&6; }
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.
$ac_ext >&5
4279 { echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6; }
4281 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4282 echo "$as_me: error: cannot proceed" >&2;}
4283 { (exit 1); exit 1; }; }
4286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4287 conftest
$ac_exeext conftest.
$ac_ext
4289 # Defend against gcc -ffast-math
4290 if test "$GCC" = yes; then
4291 cat >conftest.
$ac_ext <<_ACEOF
4294 cat confdefs.h
>>conftest.
$ac_ext
4295 cat >>conftest.
$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4301 #ifdef __FAST_MATH__
4308 rm -f conftest.
$ac_objext
4309 if { (ac_try
="$ac_compile"
4311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_compile") 2>conftest.er1
4317 grep -v '^ *+' conftest.er1 >conftest.err
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } && {
4322 test -z "$ac_c_werror_flag" ||
4323 test ! -s conftest.err
4324 } && test -s conftest.$ac_objext; then
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4331 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4332 { (exit 1); exit 1; }; }
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4349 if test -z "$CPP"; then
4350 if test "${ac_cv_prog_CPP+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 # Double quotes because CPP needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4357 for ac_c_preproc_warn_flag in '' yes
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat >conftest.$ac_ext <<_ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4372 # include <limits.h>
4374 # include <assert.h>
4378 if { (ac_try="$ac_cpp conftest.$ac_ext"
4380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4381 *) ac_try_echo
=$ac_try;;
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4386 grep -v '^ *+' conftest.er1
>conftest.err
4388 cat conftest.err
>&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } >/dev
/null
&& {
4391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.
$ac_ext >&5
4399 # Broken: fails on valid input.
4403 rm -f conftest.err conftest.
$ac_ext
4405 # OK, works on sane cases. Now check whether nonexistent headers
4406 # can be detected and how.
4407 cat >conftest.
$ac_ext <<_ACEOF
4410 cat confdefs.h
>>conftest.
$ac_ext
4411 cat >>conftest.
$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <ac_nonexistent.h>
4415 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4423 grep -v '^ *+' conftest.er1 >conftest.err
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } >/dev/null && {
4428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4429 test ! -s conftest.err
4431 # Broken: success on invalid input.
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 # Passes both tests.
4442 rm -f conftest.err conftest.$ac_ext
4445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4446 rm -f conftest.err conftest.
$ac_ext
4447 if $ac_preproc_ok; then
4459 { echo "$as_me:$LINENO: result: $CPP" >&5
4460 echo "${ECHO_T}$CPP" >&6; }
4462 for ac_c_preproc_warn_flag
in '' yes
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
4470 cat >conftest.
$ac_ext <<_ACEOF
4473 cat confdefs.h
>>conftest.
$ac_ext
4474 cat >>conftest.
$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4477 # include <limits.h>
4479 # include <assert.h>
4483 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null && {
4496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 # Broken: fails on valid input.
4508 rm -f conftest.err conftest.$ac_ext
4510 # OK, works on sane cases. Now check whether nonexistent headers
4511 # can be detected and how.
4512 cat >conftest.$ac_ext <<_ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4520 if { (ac_try="$ac_cpp conftest.$ac_ext"
4522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4523 *) ac_try_echo
=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1
>conftest.err
4530 cat conftest.err
>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } >/dev
/null
&& {
4533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4536 # Broken: success on invalid input.
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4542 # Passes both tests.
4547 rm -f conftest.err conftest.
$ac_ext
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.err conftest.
$ac_ext
4552 if $ac_preproc_ok; then
4555 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4556 See \`config.log' for more details." >&5
4557 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4558 See \`config.log' for more details." >&2;}
4559 { (exit 1); exit 1; }; }
4563 ac_cpp
='$CPP $CPPFLAGS'
4564 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4570 # Create compiler version string
4571 if test x
"$GCC" = x
"yes" ; then
4572 cc_string
="GCC `${CC} --version | sed q`"
4577 cat >>confdefs.h
<<_ACEOF
4578 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4584 # Set up TAS assembly code if needed; the template file has now had its
4585 # chance to request this.
4587 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4590 if test "$need_tas" = yes ; then
4599 # Automatic dependency tracking
4602 pgac_args
="$pgac_args enable_depend"
4604 # Check whether --enable-depend was given.
4605 if test "${enable_depend+set}" = set; then
4606 enableval
=$enable_depend;
4615 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4616 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4617 { (exit 1); exit 1; }; }
4631 # Enable assert checks
4634 pgac_args
="$pgac_args enable_cassert"
4636 # Check whether --enable-cassert was given.
4637 if test "${enable_cassert+set}" = set; then
4638 enableval
=$enable_cassert;
4642 cat >>confdefs.h
<<\_ACEOF
4643 #define USE_ASSERT_CHECKING 1
4651 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4652 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4653 { (exit 1); exit 1; }; }
4666 # Include directories
4669 IFS
="${IFS}${PATH_SEPARATOR}"
4670 # SRCH_INC comes from the template file
4671 for dir
in $with_includes $SRCH_INC; do
4672 if test -d "$dir"; then
4673 INCLUDES
="$INCLUDES -I$dir"
4675 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4676 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4684 # Library directories
4687 IFS
="${IFS}${PATH_SEPARATOR}"
4688 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4689 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4690 if test -d "$dir"; then
4691 LIBDIRS
="$LIBDIRS -L$dir"
4693 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4694 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4700 # Enable thread-safe client libraries
4702 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4703 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4704 if test "$PORTNAME" != "win32"; then
4706 pgac_args
="$pgac_args enable_thread_safety"
4708 # Check whether --enable-thread-safety was given.
4709 if test "${enable_thread_safety+set}" = set; then
4710 enableval
=$enable_thread_safety;
4719 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4720 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4721 { (exit 1); exit 1; }; }
4726 enable_thread_safety
=no
4732 # Win32 should always use threads
4734 pgac_args
="$pgac_args enable_thread_safety"
4736 # Check whether --enable-thread-safety was given.
4737 if test "${enable_thread_safety+set}" = set; then
4738 enableval
=$enable_thread_safety;
4747 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4748 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4749 { (exit 1); exit 1; }; }
4754 enable_thread_safety
=yes
4762 pgac_args
="$pgac_args enable_thread_safety_force"
4764 # Check whether --enable-thread-safety-force was given.
4765 if test "${enable_thread_safety_force+set}" = set; then
4766 enableval
=$enable_thread_safety_force;
4775 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4776 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4777 { (exit 1); exit 1; }; }
4782 enable_thread_safety_force
=no
4787 if test "$enable_thread_safety" = yes -o \
4788 "$enable_thread_safety_force" = yes; then
4789 enable_thread_safety
="yes" # for 'force'
4791 cat >>confdefs.h
<<\_ACEOF
4792 #define ENABLE_THREAD_SAFETY 1
4796 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4797 echo "${ECHO_T}$enable_thread_safety" >&6; }
4801 # Optionally build Tcl modules (PL/Tcl)
4803 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4804 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4806 pgac_args
="$pgac_args with_tcl"
4809 # Check whether --with-tcl was given.
4810 if test "${with_tcl+set}" = set; then
4820 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4821 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4822 { (exit 1); exit 1; }; }
4832 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4833 echo "${ECHO_T}$with_tcl" >&6; }
4836 # We see if the path to the Tcl/Tk configuration scripts is specified.
4837 # This will override the use of tclsh to find the paths to search.
4840 pgac_args
="$pgac_args with_tclconfig"
4843 # Check whether --with-tclconfig was given.
4844 if test "${with_tclconfig+set}" = set; then
4845 withval
=$with_tclconfig;
4848 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4849 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4850 { (exit 1); exit 1; }; }
4853 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4854 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4855 { (exit 1); exit 1; }; }
4867 # Optionally build Perl modules (PL/Perl)
4869 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4870 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4872 pgac_args
="$pgac_args with_perl"
4875 # Check whether --with-perl was given.
4876 if test "${with_perl+set}" = set; then
4886 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4887 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4888 { (exit 1); exit 1; }; }
4898 { echo "$as_me:$LINENO: result: $with_perl" >&5
4899 echo "${ECHO_T}$with_perl" >&6; }
4903 # Optionally build Python modules (PL/Python)
4905 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4906 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4908 pgac_args
="$pgac_args with_python"
4911 # Check whether --with-python was given.
4912 if test "${with_python+set}" = set; then
4913 withval
=$with_python;
4922 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4923 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4924 { (exit 1); exit 1; }; }
4934 { echo "$as_me:$LINENO: result: $with_python" >&5
4935 echo "${ECHO_T}$with_python" >&6; }
4941 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4942 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4944 pgac_args
="$pgac_args with_gssapi"
4947 # Check whether --with-gssapi was given.
4948 if test "${with_gssapi+set}" = set; then
4949 withval
=$with_gssapi;
4954 cat >>confdefs.h
<<\_ACEOF
4955 #define ENABLE_GSS 1
4958 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4965 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4966 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4967 { (exit 1); exit 1; }; }
4977 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4978 echo "${ECHO_T}$with_gssapi" >&6; }
4984 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4985 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4987 pgac_args
="$pgac_args with_krb5"
4990 # Check whether --with-krb5 was given.
4991 if test "${with_krb5+set}" = set; then
4997 cat >>confdefs.h
<<\_ACEOF
5001 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5008 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5009 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5010 { (exit 1); exit 1; }; }
5020 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5021 echo "${ECHO_T}$with_krb5" >&6; }
5029 # Kerberos configuration parameters
5032 pgac_args
="$pgac_args with_krb_srvnam"
5035 # Check whether --with-krb-srvnam was given.
5036 if test "${with_krb_srvnam+set}" = set; then
5037 withval
=$with_krb_srvnam;
5040 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5041 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5042 { (exit 1); exit 1; }; }
5045 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5046 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5047 { (exit 1); exit 1; }; }
5055 with_krb_srvnam
="postgres"
5060 cat >>confdefs.h
<<_ACEOF
5061 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5069 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5070 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5072 pgac_args
="$pgac_args with_pam"
5075 # Check whether --with-pam was given.
5076 if test "${with_pam+set}" = set; then
5081 cat >>confdefs.h
<<\_ACEOF
5090 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5091 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5092 { (exit 1); exit 1; }; }
5102 { echo "$as_me:$LINENO: result: $with_pam" >&5
5103 echo "${ECHO_T}$with_pam" >&6; }
5110 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5111 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5113 pgac_args
="$pgac_args with_ldap"
5116 # Check whether --with-ldap was given.
5117 if test "${with_ldap+set}" = set; then
5122 cat >>confdefs.h
<<\_ACEOF
5131 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5132 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5133 { (exit 1); exit 1; }; }
5143 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5144 echo "${ECHO_T}$with_ldap" >&6; }
5151 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5152 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5154 pgac_args
="$pgac_args with_bonjour"
5157 # Check whether --with-bonjour was given.
5158 if test "${with_bonjour+set}" = set; then
5159 withval
=$with_bonjour;
5163 cat >>confdefs.h
<<\_ACEOF
5164 #define USE_BONJOUR 1
5172 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5173 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5174 { (exit 1); exit 1; }; }
5184 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5185 echo "${ECHO_T}$with_bonjour" >&6; }
5192 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5193 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5195 pgac_args
="$pgac_args with_openssl"
5198 # Check whether --with-openssl was given.
5199 if test "${with_openssl+set}" = set; then
5200 withval
=$with_openssl;
5204 cat >>confdefs.h
<<\_ACEOF
5213 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5214 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5215 { (exit 1); exit 1; }; }
5225 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5226 echo "${ECHO_T}$with_openssl" >&6; }
5234 pgac_args
="$pgac_args with_readline"
5237 # Check whether --with-readline was given.
5238 if test "${with_readline+set}" = set; then
5239 withval
=$with_readline;
5248 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5249 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5250 { (exit 1); exit 1; }; }
5260 # readline on MinGW has problems with backslashes in psql and other bugs.
5261 # This is particularly a problem with non-US code pages.
5262 # Therefore disable its use until we understand the cause. 2004-07-20
5263 if test "$PORTNAME" = "win32"; then
5264 if test "$with_readline" = yes; then
5265 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5266 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5276 pgac_args
="$pgac_args with_libedit_preferred"
5279 # Check whether --with-libedit-preferred was given.
5280 if test "${with_libedit_preferred+set}" = set; then
5281 withval
=$with_libedit_preferred;
5290 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5291 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5292 { (exit 1); exit 1; }; }
5297 with_libedit_preferred
=no
5308 pgac_args
="$pgac_args with_ossp_uuid"
5311 # Check whether --with-ossp-uuid was given.
5312 if test "${with_ossp_uuid+set}" = set; then
5313 withval
=$with_ossp_uuid;
5322 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5323 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5324 { (exit 1); exit 1; }; }
5341 pgac_args
="$pgac_args with_libxml"
5344 # Check whether --with-libxml was given.
5345 if test "${with_libxml+set}" = set; then
5346 withval
=$with_libxml;
5350 cat >>confdefs.h
<<\_ACEOF
5351 #define USE_LIBXML 1
5359 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5360 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5361 { (exit 1); exit 1; }; }
5372 if test "$with_libxml" = yes ; then
5373 for ac_prog
in xml2-config
5375 # Extract the first word of "$ac_prog", so it can be a program name with args.
5376 set dummy
$ac_prog; ac_word
=$2
5377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5379 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 if test -n "$XML2_CONFIG"; then
5383 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5389 test -z "$as_dir" && as_dir
=.
5390 for ac_exec_ext
in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5403 if test -n "$XML2_CONFIG"; then
5404 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5405 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5407 { echo "$as_me:$LINENO: result: no" >&5
5408 echo "${ECHO_T}no" >&6; }
5412 test -n "$XML2_CONFIG" && break
5415 if test -n "$XML2_CONFIG"; then
5416 for pgac_option
in `$XML2_CONFIG --cflags`; do
5417 case $pgac_option in
5418 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5421 for pgac_option
in `$XML2_CONFIG --libs`; do
5422 case $pgac_option in
5423 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5435 pgac_args
="$pgac_args with_libxslt"
5438 # Check whether --with-libxslt was given.
5439 if test "${with_libxslt+set}" = set; then
5440 withval
=$with_libxslt;
5444 cat >>confdefs.h
<<\_ACEOF
5445 #define USE_LIBXSLT 1
5453 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5454 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5455 { (exit 1); exit 1; }; }
5473 pgac_args
="$pgac_args with_system_tzdata"
5476 # Check whether --with-system-tzdata was given.
5477 if test "${with_system_tzdata+set}" = set; then
5478 withval
=$with_system_tzdata;
5481 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5482 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5483 { (exit 1); exit 1; }; }
5486 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5487 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5488 { (exit 1); exit 1; }; }
5504 pgac_args
="$pgac_args with_zlib"
5507 # Check whether --with-zlib was given.
5508 if test "${with_zlib+set}" = set; then
5518 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5519 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5520 { (exit 1); exit 1; }; }
5536 # Assume system is ELF if it predefines __ELF__ as 1,
5537 # otherwise believe host_os based default.
5539 freebsd1
*|freebsd2
*) elf
=no
;;
5540 freebsd3
*|freebsd4
*) elf
=yes;;
5544 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5545 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5546 if test "${ac_cv_path_GREP+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 # Extract the first word of "grep ggrep" to use in msg output
5550 if test -z "$GREP"; then
5551 set dummy
grep ggrep
; ac_prog_name
=$2
5552 if test "${ac_cv_path_GREP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 ac_path_GREP_found
=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5561 test -z "$as_dir" && as_dir
=.
5562 for ac_prog
in grep ggrep
; do
5563 for ac_exec_ext
in '' $ac_executable_extensions; do
5564 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5566 # Check for GNU ac_path_GREP and select it if it is found.
5567 # Check for GNU $ac_path_GREP
5568 case `"$ac_path_GREP" --version 2>&1` in
5570 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 echo 'GREP' >> "conftest.nl"
5580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5582 ac_count
=`expr $ac_count + 1`
5583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_GREP
="$ac_path_GREP"
5586 ac_path_GREP_max
=$ac_count
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5595 $ac_path_GREP_found && break 3
5605 GREP
="$ac_cv_path_GREP"
5606 if test -z "$GREP"; then
5607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5609 { (exit 1); exit 1; }; }
5613 ac_cv_path_GREP
=$GREP
5618 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5619 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5620 GREP
="$ac_cv_path_GREP"
5623 { echo "$as_me:$LINENO: checking for egrep" >&5
5624 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5625 if test "${ac_cv_path_EGREP+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5629 then ac_cv_path_EGREP
="$GREP -E"
5631 # Extract the first word of "egrep" to use in msg output
5632 if test -z "$EGREP"; then
5633 set dummy
egrep; ac_prog_name
=$2
5634 if test "${ac_cv_path_EGREP+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_path_EGREP_found
=false
5638 # Loop through the user's path and test for each of PROGNAME-LIST
5639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5640 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5643 test -z "$as_dir" && as_dir
=.
5644 for ac_prog
in egrep; do
5645 for ac_exec_ext
in '' $ac_executable_extensions; do
5646 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5647 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5648 # Check for GNU ac_path_EGREP and select it if it is found.
5649 # Check for GNU $ac_path_EGREP
5650 case `"$ac_path_EGREP" --version 2>&1` in
5652 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5655 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5658 cat "conftest.in" "conftest.in" >"conftest.tmp"
5659 mv "conftest.tmp" "conftest.in"
5660 cp "conftest.in" "conftest.nl"
5661 echo 'EGREP' >> "conftest.nl"
5662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5663 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5664 ac_count
=`expr $ac_count + 1`
5665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5666 # Best one so far, save it but keep looking for a better one
5667 ac_cv_path_EGREP
="$ac_path_EGREP"
5668 ac_path_EGREP_max
=$ac_count
5670 # 10*(2^10) chars as input seems more than enough
5671 test $ac_count -gt 10 && break
5673 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5677 $ac_path_EGREP_found && break 3
5687 EGREP
="$ac_cv_path_EGREP"
5688 if test -z "$EGREP"; then
5689 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5690 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5691 { (exit 1); exit 1; }; }
5695 ac_cv_path_EGREP
=$EGREP
5701 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5702 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5703 EGREP
="$ac_cv_path_EGREP"
5706 cat >conftest.
$ac_ext <<_ACEOF
5709 cat confdefs.h
>>conftest.
$ac_ext
5710 cat >>conftest.
$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5718 $EGREP "yes" >/dev
/null
2>&1; then
5721 if test "X$elf" = "Xyes" ; then
5735 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5736 LDFLAGS
="$LDFLAGS $LIBDIRS"
5741 # Check whether --with-gnu-ld was given.
5742 if test "${with_gnu_ld+set}" = set; then
5743 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5749 if test "$GCC" = yes; then
5750 # Check if gcc -print-prog-name=ld gives a path.
5751 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5752 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5755 # gcc leaves a trailing carriage return which upsets mingw
5756 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5758 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5761 # Accept absolute paths.
5762 [\\/]* |
[A-Za-z
]:[\\/]*)
5763 re_direlt
='/[^/][^/]*/\.\./'
5764 # Canonicalize the path of ld
5765 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5766 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5767 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5769 test -z "$LD" && LD
="$ac_prog"
5772 # If it fails, then pretend we aren't using GCC.
5776 # If it is relative, then search for the first ld in PATH.
5780 elif test "$with_gnu_ld" = yes; then
5781 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5782 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5784 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5785 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5787 if test "${ac_cv_path_LD+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 if test -z "$LD"; then
5791 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5792 for ac_dir
in $PATH; do
5793 test -z "$ac_dir" && ac_dir
=.
5794 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5795 ac_cv_path_LD
="$ac_dir/$ac_prog"
5796 # Check to see if the program is GNU ld. I'd rather use --version,
5797 # but apparently some GNU ld's only accept -v.
5798 # Break only if it was the GNU/non-GNU ld that we prefer.
5799 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5800 test "$with_gnu_ld" != no
&& break
5802 test "$with_gnu_ld" != yes && break
5808 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5813 if test -n "$LD"; then
5814 { echo "$as_me:$LINENO: result: $LD" >&5
5815 echo "${ECHO_T}$LD" >&6; }
5817 { echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6; }
5820 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5821 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5822 { (exit 1); exit 1; }; }
5823 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5824 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5825 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5829 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5830 ac_cv_prog_gnu_ld
=yes
5832 ac_cv_prog_gnu_ld
=no
5835 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5836 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5837 with_gnu_ld
=$ac_cv_prog_gnu_ld
5842 case $host_os in sysv5
*)
5843 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5844 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5845 if test "${pgac_cv_prog_ld_R+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5850 cat >conftest.
$ac_ext <<_ACEOF
5853 cat confdefs.h
>>conftest.
$ac_ext
5854 cat >>conftest.
$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5865 rm -f conftest.
$ac_objext conftest
$ac_exeext
5866 if { (ac_try
="$ac_link"
5868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_link") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1 >conftest.err
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest$ac_exeext &&
5882 $as_test_x conftest$ac_exeext; then
5883 pgac_cv_prog_ld_R=yes
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 pgac_cv_prog_ld_R=no
5891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5892 conftest$ac_exeext conftest.$ac_ext
5893 LDFLAGS=$pgac_save_LDFLAGS
5896 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5897 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5898 ld_R_works=$pgac_cv_prog_ld_R
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 if test -n "$RANLIB"; then
5910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 RANLIB=$ac_cv_prog_RANLIB
5930 if test -n "$RANLIB"; then
5931 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5932 echo "${ECHO_T}$RANLIB" >&6; }
5934 { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5940 if test -z "$ac_cv_prog_RANLIB"; then
5941 ac_ct_RANLIB=$RANLIB
5942 # Extract the first word of "ranlib", so it can be a program name with args.
5943 set dummy ranlib; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 if test -n "$ac_ct_RANLIB"; then
5950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5959 ac_cv_prog_ac_ct_RANLIB="ranlib"
5960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5970 if test -n "$ac_ct_RANLIB"; then
5971 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5972 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5974 { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5978 if test "x$ac_ct_RANLIB" = x; then
5981 case $cross_compiling:$ac_tool_warned in
5983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5984 whose name does not start with the host triplet. If you think this
5985 configuration is useful to you, please write to autoconf@gnu.org." >&5
5986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5987 whose name does not start with the host triplet. If you think this
5988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5989 ac_tool_warned=yes ;;
5991 RANLIB=$ac_ct_RANLIB
5994 RANLIB="$ac_cv_prog_RANLIB"
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}strip; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_STRIP+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 if test -n "$STRIP"; then
6007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 STRIP=$ac_cv_prog_STRIP
6027 if test -n "$STRIP"; then
6028 { echo "$as_me:$LINENO: result: $STRIP" >&5
6029 echo "${ECHO_T}$STRIP" >&6; }
6031 { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6037 if test -z "$ac_cv_prog_STRIP"; then
6039 # Extract the first word of "strip", so it can be a program name with args.
6040 set dummy strip; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 if test -n "$ac_ct_STRIP"; then
6047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_STRIP="strip"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6067 if test -n "$ac_ct_STRIP"; then
6068 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6069 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6075 if test "x$ac_ct_STRIP" = x; then
6078 case $cross_compiling:$ac_tool_warned in
6080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6081 whose name does not start with the host triplet. If you think this
6082 configuration is useful to you, please write to autoconf@gnu.org." >&5
6083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6084 whose name does not start with the host triplet. If you think this
6085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6086 ac_tool_warned=yes ;;
6091 STRIP="$ac_cv_prog_STRIP"
6095 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6096 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6097 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6098 STRIP_STATIC_LIB="$STRIP -x"
6099 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6100 { echo "$as_me:$LINENO: result: yes" >&5
6101 echo "${ECHO_T}yes" >&6; }
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6112 # Extract the first word of "tar", so it can be a program name with args.
6113 set dummy tar; ac_word=$2
6114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116 if test "${ac_cv_path_TAR+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 if test -n "$TAR"; then
6144 { echo "$as_me:$LINENO: result: $TAR" >&5
6145 echo "${ECHO_T}$TAR" >&6; }
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6152 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6153 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6155 if test "$LN_S" = "ln -s"; then
6156 { echo "$as_me:$LINENO: result: yes" >&5
6157 echo "${ECHO_T}yes" >&6; }
6159 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6160 echo "${ECHO_T}no, using $LN_S" >&6; }
6163 for ac_prog in gawk mawk nawk awk
6165 # Extract the first word of "$ac_prog", so it can be a program name with args.
6166 set dummy $ac_prog; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_prog_AWK+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 if test -n "$AWK"; then
6173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182 ac_cv_prog_AWK="$ac_prog"
6183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 if test -n "$AWK"; then
6194 { echo "$as_me:$LINENO: result: $AWK" >&5
6195 echo "${ECHO_T}$AWK" >&6; }
6197 { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6202 test -n "$AWK" && break
6206 # Let the user override the search
6207 if test -z "$BISON"; then
6208 for ac_prog in bison
6210 # Extract the first word of "$ac_prog", so it can be a program name with args.
6211 set dummy $ac_prog; 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_BISON+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 if test -n "$BISON"; then
6218 ac_cv_prog_BISON="$BISON" # 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_BISON="$ac_prog"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 BISON=$ac_cv_prog_BISON
6238 if test -n "$BISON"; then
6239 { echo "$as_me:$LINENO: result: $BISON" >&5
6240 echo "${ECHO_T}$BISON" >&6; }
6242 { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6247 test -n "$BISON" && break
6252 if test "$BISON"; then
6253 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6254 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6255 echo "$as_me: using $pgac_bison_version" >&6;}
6256 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6258 { echo "$as_me:$LINENO: WARNING:
6259 *** The installed version of Bison is too old to use with PostgreSQL.
6260 *** Bison version 1.875 or later is required." >&5
6261 echo "$as_me: WARNING:
6262 *** The installed version of Bison is too old to use with PostgreSQL.
6263 *** Bison version 1.875 or later is required." >&2;}
6268 if test -z "$BISON"; then
6269 { echo "$as_me:$LINENO: WARNING:
6270 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6271 *** change any of the parser definition files. You can obtain Bison from
6272 *** a GNU mirror site. (If you are using the official distribution of
6273 *** PostgreSQL then you do not need to worry about this, because the Bison
6274 *** output is pre-generated.)" >&5
6275 echo "$as_me: WARNING:
6276 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6277 *** change any of the parser definition files. You can obtain Bison from
6278 *** a GNU mirror site. (If you are using the official distribution of
6279 *** PostgreSQL then you do not need to worry about this, because the Bison
6280 *** output is pre-generated.)" >&2;}
6282 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6285 { echo "$as_me:$LINENO: checking for flex" >&5
6286 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6287 if test "${pgac_cv_path_flex+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 # Let the user override the test
6291 if test -n "$FLEX"; then
6292 pgac_cv_path_flex=$FLEX
6296 for pgac_dir in $PATH; do
6298 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6301 for pgac_prog in flex lex; do
6302 pgac_candidate="$pgac_dir/$pgac_prog"
6303 if test -f "$pgac_candidate" \
6304 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6306 echo '%%' > conftest.l
6307 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6308 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6309 pgac_broken_flex=$pgac_candidate
6313 pgac_cv_path_flex=$pgac_candidate
6319 rm -f conftest.l lex.yy.c
6320 : ${pgac_cv_path_flex=no}
6324 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6325 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6326 if test x"$pgac_cv_path_flex" = x"no"; then
6327 if test -n "$pgac_broken_flex"; then
6328 { echo "$as_me:$LINENO: WARNING:
6329 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6330 *** should get version 2.5.4 or later." >&5
6331 echo "$as_me: WARNING:
6332 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6333 *** should get version 2.5.4 or later." >&2;}
6336 { echo "$as_me:$LINENO: WARNING:
6337 *** Without Flex you will not be able to build PostgreSQL from CVS or
6338 *** change any of the scanner definition files. You can obtain Flex from
6339 *** a GNU mirror site. (If you are using the official distribution of
6340 *** PostgreSQL then you do not need to worry about this because the Flex
6341 *** output is pre-generated.)" >&5
6342 echo "$as_me: WARNING:
6343 *** Without Flex you will not be able to build PostgreSQL from CVS or
6344 *** change any of the scanner definition files. You can obtain Flex from
6345 *** a GNU mirror site. (If you are using the official distribution of
6346 *** PostgreSQL then you do not need to worry about this because the Flex
6347 *** output is pre-generated.)" >&2;}
6351 FLEX=$pgac_cv_path_flex
6352 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6353 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6354 echo "$as_me: using $pgac_flex_version" >&6;}
6361 # Extract the first word of "perl", so it can be a program name with args.
6362 set dummy perl; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_PERL+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 PERL=$ac_cv_path_PERL
6392 if test -n "$PERL"; then
6393 { echo "$as_me:$LINENO: result: $PERL" >&5
6394 echo "${ECHO_T}$PERL" >&6; }
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6401 if test "$with_perl" = yes; then
6403 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6404 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6405 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6406 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6407 echo "${ECHO_T}$perl_archlibexp" >&6; }
6408 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6409 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6410 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6411 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6412 echo "${ECHO_T}$perl_privlibexp" >&6; }
6413 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6414 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6415 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6416 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6417 echo "${ECHO_T}$perl_useshrplib" >&6; }
6419 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6420 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6421 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6422 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6423 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6424 if test -z "$perl_embed_ldflags" ; then
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6428 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6430 echo "$as_me: error: could not determine flags for linking embedded Perl.
6431 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6433 { (exit 1); exit 1; }; }
6435 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6436 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6441 if test "$with_python" = yes; then
6442 # Extract the first word of "python", so it can be a program name with args.
6443 set dummy python; 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_path_PYTHON+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 PYTHON=$ac_cv_path_PYTHON
6473 if test -n "$PYTHON"; then
6474 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6475 echo "${ECHO_T}$PYTHON" >&6; }
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6482 if test x"$PYTHON" = x""; then
6483 { { echo "$as_me:$LINENO: error: Python not found" >&5
6484 echo "$as_me: error: Python not found" >&2;}
6485 { (exit 1); exit 1; }; }
6489 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6490 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6491 if "${PYTHON}" 2>&- -c 'import distutils'
6493 { echo "$as_me:$LINENO: result: yes" >&5
6494 echo "${ECHO_T}yes" >&6; }
6496 { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6498 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6499 echo "$as_me: error: distutils module not found" >&2;}
6500 { (exit 1); exit 1; }; }
6502 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6503 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6504 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6505 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')"`
6506 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6508 # This should be enough of a message.
6509 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6510 echo "${ECHO_T}$python_configdir" >&6; }
6513 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6514 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6516 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6517 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6518 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6519 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6521 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6523 # New way: use the official shared library
6524 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6525 python_libspec="-L${python_libdir} -l${ldlibrary}"
6527 # Old way: use libpython from python_configdir
6528 python_libdir="${python_configdir}"
6529 python_libspec="-L${python_libdir} -lpython${python_version}"
6532 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6534 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6535 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6538 # threaded python is not supported on bsd's
6539 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6540 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6541 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6542 if test "$pythreads" = "1"; then
6543 { echo "$as_me:$LINENO: result: yes" >&5
6544 echo "${ECHO_T}yes" >&6; }
6547 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6548 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6549 { (exit 1); exit 1; }; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6560 # Supply a numeric version string for use by 3rd party add-ons
6561 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6562 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
6564 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6566 cat >>confdefs.h <<_ACEOF
6567 #define PG_VERSION_NUM $PG_VERSION_NUM
6574 ## Most libraries are included only if they demonstrably provide a function
6575 ## we need, but libm is an exception: always include it, because there are
6576 ## too many compilers that play cute optimization games that will break
6577 ## probes for standard functions such as pow().
6581 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6582 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6583 if test "${ac_cv_lib_m_main+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 ac_check_lib_save_LIBS=$LIBS
6588 cat >conftest.$ac_ext <<_ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6604 rm -f conftest.$ac_objext conftest$ac_exeext
6605 if { (ac_try="$ac_link"
6607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6608 *) ac_try_echo
=$ac_try;;
6610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611 (eval "$ac_link") 2>conftest.er1
6613 grep -v '^ *+' conftest.er1
>conftest.err
6615 cat conftest.err
>&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && {
6618 test -z "$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6620 } && test -s conftest
$ac_exeext &&
6621 $as_test_x conftest
$ac_exeext; then
6622 ac_cv_lib_m_main
=yes
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.
$ac_ext >&5
6630 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6631 conftest
$ac_exeext conftest.
$ac_ext
6632 LIBS
=$ac_check_lib_save_LIBS
6634 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6635 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6636 if test $ac_cv_lib_m_main = yes; then
6637 cat >>confdefs.h
<<_ACEOF
6645 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6646 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6647 if test "${ac_cv_search_setproctitle+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 ac_func_search_save_LIBS
=$LIBS
6651 cat >conftest.
$ac_ext <<_ACEOF
6654 cat confdefs.h
>>conftest.
$ac_ext
6655 cat >>conftest.
$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 /* Override any GCC internal prototype to avoid an error.
6659 Use char because int might match the return type of a GCC
6660 builtin and then its argument prototype would still apply. */
6664 char setproctitle ();
6668 return setproctitle ();
6673 for ac_lib
in '' util
; do
6674 if test -z "$ac_lib"; then
6675 ac_res
="none required"
6678 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6680 rm -f conftest.
$ac_objext conftest
$ac_exeext
6681 if { (ac_try
="$ac_link"
6683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_link") 2>conftest.er1
6689 grep -v '^ *+' conftest.er1 >conftest.err
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest$ac_exeext &&
6697 $as_test_x conftest$ac_exeext; then
6698 ac_cv_search_setproctitle=$ac_res
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6708 if test "${ac_cv_search_setproctitle+set}" = set; then
6712 if test "${ac_cv_search_setproctitle+set}" = set; then
6715 ac_cv_search_setproctitle=no
6718 LIBS=$ac_func_search_save_LIBS
6720 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6721 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6722 ac_res=$ac_cv_search_setproctitle
6723 if test "$ac_res" != no; then
6724 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6728 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6729 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6730 if test "${ac_cv_search_dlopen+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 ac_func_search_save_LIBS=$LIBS
6734 cat >conftest.$ac_ext <<_ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6741 /* Override any GCC internal prototype to avoid an error.
6742 Use char because int might match the return type of a GCC
6743 builtin and then its argument prototype would still apply. */
6756 for ac_lib in '' dl; do
6757 if test -z "$ac_lib"; then
6758 ac_res="none required"
6761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6763 rm -f conftest.$ac_objext conftest$ac_exeext
6764 if { (ac_try="$ac_link"
6766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6767 *) ac_try_echo
=$ac_try;;
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770 (eval "$ac_link") 2>conftest.er1
6772 grep -v '^ *+' conftest.er1
>conftest.err
6774 cat conftest.err
>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest
$ac_exeext &&
6780 $as_test_x conftest
$ac_exeext; then
6781 ac_cv_search_dlopen
=$ac_res
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.
$ac_ext >&5
6789 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6791 if test "${ac_cv_search_dlopen+set}" = set; then
6795 if test "${ac_cv_search_dlopen+set}" = set; then
6798 ac_cv_search_dlopen
=no
6801 LIBS
=$ac_func_search_save_LIBS
6803 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6804 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6805 ac_res
=$ac_cv_search_dlopen
6806 if test "$ac_res" != no
; then
6807 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6811 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6812 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6813 if test "${ac_cv_search_socket+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 ac_func_search_save_LIBS
=$LIBS
6817 cat >conftest.
$ac_ext <<_ACEOF
6820 cat confdefs.h
>>conftest.
$ac_ext
6821 cat >>conftest.
$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6824 /* Override any GCC internal prototype to avoid an error.
6825 Use char because int might match the return type of a GCC
6826 builtin and then its argument prototype would still apply. */
6839 for ac_lib
in '' socket wsock32
; do
6840 if test -z "$ac_lib"; then
6841 ac_res
="none required"
6844 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6846 rm -f conftest.
$ac_objext conftest
$ac_exeext
6847 if { (ac_try
="$ac_link"
6849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_link") 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest$ac_exeext &&
6863 $as_test_x conftest$ac_exeext; then
6864 ac_cv_search_socket=$ac_res
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6874 if test "${ac_cv_search_socket+set}" = set; then
6878 if test "${ac_cv_search_socket+set}" = set; then
6881 ac_cv_search_socket=no
6884 LIBS=$ac_func_search_save_LIBS
6886 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6887 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6888 ac_res=$ac_cv_search_socket
6889 if test "$ac_res" != no; then
6890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6894 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6895 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6896 if test "${ac_cv_search_shl_load+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 ac_func_search_save_LIBS=$LIBS
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6907 /* Override any GCC internal prototype to avoid an error.
6908 Use char because int might match the return type of a GCC
6909 builtin and then its argument prototype would still apply. */
6922 for ac_lib in '' dld; do
6923 if test -z "$ac_lib"; then
6924 ac_res="none required"
6927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6933 *) ac_try_echo
=$ac_try;;
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
6938 grep -v '^ *+' conftest.er1
>conftest.err
6940 cat conftest.err
>&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest
$ac_exeext &&
6946 $as_test_x conftest
$ac_exeext; then
6947 ac_cv_search_shl_load
=$ac_res
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.
$ac_ext >&5
6955 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6957 if test "${ac_cv_search_shl_load+set}" = set; then
6961 if test "${ac_cv_search_shl_load+set}" = set; then
6964 ac_cv_search_shl_load
=no
6967 LIBS
=$ac_func_search_save_LIBS
6969 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6970 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6971 ac_res
=$ac_cv_search_shl_load
6972 if test "$ac_res" != no
; then
6973 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6977 # We only use libld in port/dynloader/aix.c
6980 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6981 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6982 if test "${ac_cv_search_ldopen+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 ac_func_search_save_LIBS
=$LIBS
6986 cat >conftest.
$ac_ext <<_ACEOF
6989 cat confdefs.h
>>conftest.
$ac_ext
6990 cat >>conftest.
$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6993 /* Override any GCC internal prototype to avoid an error.
6994 Use char because int might match the return type of a GCC
6995 builtin and then its argument prototype would still apply. */
7008 for ac_lib
in '' ld
; do
7009 if test -z "$ac_lib"; then
7010 ac_res
="none required"
7013 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7015 rm -f conftest.
$ac_objext conftest
$ac_exeext
7016 if { (ac_try
="$ac_link"
7018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_link") 2>conftest.er1
7024 grep -v '^ *+' conftest.er1 >conftest.err
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest$ac_exeext &&
7032 $as_test_x conftest$ac_exeext; then
7033 ac_cv_search_ldopen=$ac_res
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7043 if test "${ac_cv_search_ldopen+set}" = set; then
7047 if test "${ac_cv_search_ldopen+set}" = set; then
7050 ac_cv_search_ldopen=no
7053 LIBS=$ac_func_search_save_LIBS
7055 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7056 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7057 ac_res=$ac_cv_search_ldopen
7058 if test "$ac_res" != no; then
7059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7065 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7066 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7067 if test "${ac_cv_search_getopt_long+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 ac_func_search_save_LIBS=$LIBS
7071 cat >conftest.$ac_ext <<_ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7078 /* Override any GCC internal prototype to avoid an error.
7079 Use char because int might match the return type of a GCC
7080 builtin and then its argument prototype would still apply. */
7084 char getopt_long ();
7088 return getopt_long ();
7093 for ac_lib in '' getopt gnugetopt; do
7094 if test -z "$ac_lib"; then
7095 ac_res="none required"
7098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (ac_try="$ac_link"
7103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7104 *) ac_try_echo
=$ac_try;;
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_link") 2>conftest.er1
7109 grep -v '^ *+' conftest.er1
>conftest.err
7111 cat conftest.err
>&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest
$ac_exeext &&
7117 $as_test_x conftest
$ac_exeext; then
7118 ac_cv_search_getopt_long
=$ac_res
7120 echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.
$ac_ext >&5
7126 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7128 if test "${ac_cv_search_getopt_long+set}" = set; then
7132 if test "${ac_cv_search_getopt_long+set}" = set; then
7135 ac_cv_search_getopt_long
=no
7138 LIBS
=$ac_func_search_save_LIBS
7140 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7141 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7142 ac_res
=$ac_cv_search_getopt_long
7143 if test "$ac_res" != no
; then
7144 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7148 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7149 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7150 if test "${ac_cv_search_crypt+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_func_search_save_LIBS
=$LIBS
7154 cat >conftest.
$ac_ext <<_ACEOF
7157 cat confdefs.h
>>conftest.
$ac_ext
7158 cat >>conftest.
$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7161 /* Override any GCC internal prototype to avoid an error.
7162 Use char because int might match the return type of a GCC
7163 builtin and then its argument prototype would still apply. */
7176 for ac_lib
in '' crypt; do
7177 if test -z "$ac_lib"; then
7178 ac_res
="none required"
7181 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7183 rm -f conftest.
$ac_objext conftest
$ac_exeext
7184 if { (ac_try
="$ac_link"
7186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_link") 2>conftest.er1
7192 grep -v '^ *+' conftest.er1 >conftest.err
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest$ac_exeext &&
7200 $as_test_x conftest$ac_exeext; then
7201 ac_cv_search_crypt=$ac_res
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7211 if test "${ac_cv_search_crypt+set}" = set; then
7215 if test "${ac_cv_search_crypt+set}" = set; then
7218 ac_cv_search_crypt=no
7221 LIBS=$ac_func_search_save_LIBS
7223 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7224 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7225 ac_res=$ac_cv_search_crypt
7226 if test "$ac_res" != no; then
7227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7232 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7233 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7234 if test "${ac_cv_search_fdatasync+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 ac_func_search_save_LIBS=$LIBS
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7245 /* Override any GCC internal prototype to avoid an error.
7246 Use char because int might match the return type of a GCC
7247 builtin and then its argument prototype would still apply. */
7255 return fdatasync ();
7260 for ac_lib in '' rt posix4; do
7261 if test -z "$ac_lib"; then
7262 ac_res="none required"
7265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7267 rm -f conftest.$ac_objext conftest$ac_exeext
7268 if { (ac_try="$ac_link"
7270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7271 *) ac_try_echo
=$ac_try;;
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_link") 2>conftest.er1
7276 grep -v '^ *+' conftest.er1
>conftest.err
7278 cat conftest.err
>&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && {
7281 test -z "$ac_c_werror_flag" ||
7282 test ! -s conftest.err
7283 } && test -s conftest
$ac_exeext &&
7284 $as_test_x conftest
$ac_exeext; then
7285 ac_cv_search_fdatasync
=$ac_res
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.
$ac_ext >&5
7293 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7295 if test "${ac_cv_search_fdatasync+set}" = set; then
7299 if test "${ac_cv_search_fdatasync+set}" = set; then
7302 ac_cv_search_fdatasync
=no
7305 LIBS
=$ac_func_search_save_LIBS
7307 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7308 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7309 ac_res
=$ac_cv_search_fdatasync
7310 if test "$ac_res" != no
; then
7311 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7316 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7317 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7318 if test "${ac_cv_search_shmget+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 ac_func_search_save_LIBS
=$LIBS
7322 cat >conftest.
$ac_ext <<_ACEOF
7325 cat confdefs.h
>>conftest.
$ac_ext
7326 cat >>conftest.
$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7329 /* Override any GCC internal prototype to avoid an error.
7330 Use char because int might match the return type of a GCC
7331 builtin and then its argument prototype would still apply. */
7344 for ac_lib
in '' cygipc
; do
7345 if test -z "$ac_lib"; then
7346 ac_res
="none required"
7349 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7351 rm -f conftest.
$ac_objext conftest
$ac_exeext
7352 if { (ac_try
="$ac_link"
7354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_link") 2>conftest.er1
7360 grep -v '^ *+' conftest.er1 >conftest.err
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest$ac_exeext &&
7368 $as_test_x conftest$ac_exeext; then
7369 ac_cv_search_shmget=$ac_res
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7379 if test "${ac_cv_search_shmget+set}" = set; then
7383 if test "${ac_cv_search_shmget+set}" = set; then
7386 ac_cv_search_shmget=no
7389 LIBS=$ac_func_search_save_LIBS
7391 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7392 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7393 ac_res=$ac_cv_search_shmget
7394 if test "$ac_res" != no; then
7395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7400 if test "$with_readline" = yes; then
7403 if test "${pgac_cv_check_readline+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 pgac_cv_check_readline=no
7407 pgac_save_LIBS=$LIBS
7408 if test x"$with_libedit_preferred" != x"yes"
7409 then READLINE_ORDER="-lreadline -ledit"
7410 else READLINE_ORDER="-ledit -lreadline"
7412 for pgac_rllib in $READLINE_ORDER ; do
7413 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7414 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7415 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7416 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_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 rm -f conftest.$ac_objext conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7443 *) ac_try_echo
=$ac_try;;
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_link") 2>conftest.er1
7448 grep -v '^ *+' conftest.er1
>conftest.err
7450 cat conftest.err
>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && {
7453 test -z "$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7455 } && test -s conftest
$ac_exeext &&
7456 $as_test_x conftest
$ac_exeext; then
7458 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7459 # recognize dependent libraries; assume curses is needed if we didn't
7460 # find any dependency.
7462 netbsd
* | openbsd
* | irix
*)
7463 if test x
"$pgac_lib" = x
"" ; then
7464 pgac_lib
=" -lcurses"
7468 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.
$ac_ext >&5
7478 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7479 conftest
$ac_exeext conftest.
$ac_ext
7481 if test "$pgac_cv_check_readline" != no
; then
7482 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7483 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7490 LIBS
=$pgac_save_LIBS
7494 if test "$pgac_cv_check_readline" != no
; then
7495 LIBS
="$pgac_cv_check_readline $LIBS"
7497 cat >>confdefs.h
<<\_ACEOF
7498 #define HAVE_LIBREADLINE 1
7504 if test x
"$pgac_cv_check_readline" = x
"no"; then
7505 { { echo "$as_me:$LINENO: error: readline library not found
7506 If you have readline already installed, see config.log for details on the
7507 failure. It is possible the compiler isn't looking in the proper directory.
7508 Use --without-readline to disable readline support." >&5
7509 echo "$as_me: error: readline library not found
7510 If you have readline already installed, see config.log for details on the
7511 failure. It is possible the compiler isn't looking in the proper directory.
7512 Use --without-readline to disable readline support." >&2;}
7513 { (exit 1); exit 1; }; }
7517 if test "$with_zlib" = yes; then
7519 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7520 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7521 if test "${ac_cv_lib_z_inflate+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 ac_check_lib_save_LIBS
=$LIBS
7526 cat >conftest.
$ac_ext <<_ACEOF
7529 cat confdefs.h
>>conftest.
$ac_ext
7530 cat >>conftest.
$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7533 /* Override any GCC internal prototype to avoid an error.
7534 Use char because int might match the return type of a GCC
7535 builtin and then its argument prototype would still apply. */
7548 rm -f conftest.
$ac_objext conftest
$ac_exeext
7549 if { (ac_try
="$ac_link"
7551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_link") 2>conftest.er1
7557 grep -v '^ *+' conftest.er1 >conftest.err
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest$ac_exeext &&
7565 $as_test_x conftest$ac_exeext; then
7566 ac_cv_lib_z_inflate=yes
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_lib_z_inflate=no
7574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7575 conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS
7578 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7579 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7580 if test $ac_cv_lib_z_inflate = yes; then
7581 cat >>confdefs.h <<_ACEOF
7588 { { echo "$as_me:$LINENO: error: zlib library not found
7589 If you have zlib already installed, see config.log for details on the
7590 failure. It is possible the compiler isn't looking in the proper directory.
7591 Use --without-zlib to disable zlib support." >&5
7592 echo "$as_me: error: zlib library not found
7593 If you have zlib already installed, see config.log for details on the
7594 failure. It is possible the compiler isn't looking in the proper directory.
7595 Use --without-zlib to disable zlib support." >&2;}
7596 { (exit 1); exit 1; }; }
7601 if test "$enable_spinlocks" = yes; then
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_SPINLOCKS 1
7608 { echo "$as_me:$LINENO: WARNING:
7609 *** Not using spinlocks will cause poor performance." >&5
7610 echo "$as_me: WARNING:
7611 *** Not using spinlocks will cause poor performance." >&2;}
7614 if test "$with_gssapi" = yes ; then
7615 if test "$PORTNAME" != "win32"; then
7616 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7617 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7618 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 ac_func_search_save_LIBS=$LIBS
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7629 /* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7635 char gss_init_sec_context ();
7639 return gss_init_sec_context ();
7644 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7645 if test -z "$ac_lib"; then
7646 ac_res="none required"
7649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7651 rm -f conftest.$ac_objext conftest$ac_exeext
7652 if { (ac_try="$ac_link"
7654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7655 *) ac_try_echo
=$ac_try;;
7657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7658 (eval "$ac_link") 2>conftest.er1
7660 grep -v '^ *+' conftest.er1
>conftest.err
7662 cat conftest.err
>&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } && {
7665 test -z "$ac_c_werror_flag" ||
7666 test ! -s conftest.err
7667 } && test -s conftest
$ac_exeext &&
7668 $as_test_x conftest
$ac_exeext; then
7669 ac_cv_search_gss_init_sec_context
=$ac_res
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.
$ac_ext >&5
7677 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7679 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7683 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7686 ac_cv_search_gss_init_sec_context
=no
7689 LIBS
=$ac_func_search_save_LIBS
7691 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7692 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7693 ac_res
=$ac_cv_search_gss_init_sec_context
7694 if test "$ac_res" != no
; then
7695 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7698 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7699 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7700 { (exit 1); exit 1; }; }
7704 LIBS
="$LIBS -lgssapi32"
7708 if test "$with_krb5" = yes ; then
7709 if test "$PORTNAME" != "win32"; then
7710 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7711 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7712 if test "${ac_cv_search_com_err+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 ac_func_search_save_LIBS
=$LIBS
7716 cat >conftest.
$ac_ext <<_ACEOF
7719 cat confdefs.h
>>conftest.
$ac_ext
7720 cat >>conftest.
$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7723 /* Override any GCC internal prototype to avoid an error.
7724 Use char because int might match the return type of a GCC
7725 builtin and then its argument prototype would still apply. */
7738 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken' com_err
; do
7739 if test -z "$ac_lib"; then
7740 ac_res
="none required"
7743 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7745 rm -f conftest.
$ac_objext conftest
$ac_exeext
7746 if { (ac_try
="$ac_link"
7748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_link") 2>conftest.er1
7754 grep -v '^ *+' conftest.er1 >conftest.err
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } && {
7759 test -z "$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 } && test -s conftest$ac_exeext &&
7762 $as_test_x conftest$ac_exeext; then
7763 ac_cv_search_com_err=$ac_res
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7773 if test "${ac_cv_search_com_err+set}" = set; then
7777 if test "${ac_cv_search_com_err+set}" = set; then
7780 ac_cv_search_com_err=no
7783 LIBS=$ac_func_search_save_LIBS
7785 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7786 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7787 ac_res=$ac_cv_search_com_err
7788 if test "$ac_res" != no; then
7789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7792 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7793 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7794 { (exit 1); exit 1; }; }
7797 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7798 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7799 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 ac_func_search_save_LIBS=$LIBS
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7810 /* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7816 char krb5_sendauth ();
7820 return krb5_sendauth ();
7825 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7826 if test -z "$ac_lib"; then
7827 ac_res="none required"
7830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (ac_try="$ac_link"
7835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7836 *) ac_try_echo
=$ac_try;;
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_link") 2>conftest.er1
7841 grep -v '^ *+' conftest.er1
>conftest.err
7843 cat conftest.err
>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } && {
7846 test -z "$ac_c_werror_flag" ||
7847 test ! -s conftest.err
7848 } && test -s conftest
$ac_exeext &&
7849 $as_test_x conftest
$ac_exeext; then
7850 ac_cv_search_krb5_sendauth
=$ac_res
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.
$ac_ext >&5
7858 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7860 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7864 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7867 ac_cv_search_krb5_sendauth
=no
7870 LIBS
=$ac_func_search_save_LIBS
7872 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7873 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7874 ac_res
=$ac_cv_search_krb5_sendauth
7875 if test "$ac_res" != no
; then
7876 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7879 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7880 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7881 { (exit 1); exit 1; }; }
7885 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7886 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7887 if test "${ac_cv_search_com_err+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 ac_func_search_save_LIBS
=$LIBS
7891 cat >conftest.
$ac_ext <<_ACEOF
7894 cat confdefs.h
>>conftest.
$ac_ext
7895 cat >>conftest.
$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7898 /* Override any GCC internal prototype to avoid an error.
7899 Use char because int might match the return type of a GCC
7900 builtin and then its argument prototype would still apply. */
7913 for ac_lib
in '' 'comerr32 -lkrb5_32'; do
7914 if test -z "$ac_lib"; then
7915 ac_res
="none required"
7918 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7920 rm -f conftest.
$ac_objext conftest
$ac_exeext
7921 if { (ac_try
="$ac_link"
7923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_link") 2>conftest.er1
7929 grep -v '^ *+' conftest.er1 >conftest.err
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest$ac_exeext &&
7937 $as_test_x conftest$ac_exeext; then
7938 ac_cv_search_com_err=$ac_res
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7948 if test "${ac_cv_search_com_err+set}" = set; then
7952 if test "${ac_cv_search_com_err+set}" = set; then
7955 ac_cv_search_com_err=no
7958 LIBS=$ac_func_search_save_LIBS
7960 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7961 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7962 ac_res=$ac_cv_search_com_err
7963 if test "$ac_res" != no; then
7964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7967 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7968 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7969 { (exit 1); exit 1; }; }
7975 if test "$with_openssl" = yes ; then
7976 if test "$PORTNAME" != "win32"; then
7978 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7979 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7980 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-lcrypto $LIBS"
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7992 /* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7998 char CRYPTO_new_ex_data ();
8002 return CRYPTO_new_ex_data ();
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (ac_try="$ac_link"
8010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8011 *) ac_try_echo
=$ac_try;;
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_link") 2>conftest.er1
8016 grep -v '^ *+' conftest.er1
>conftest.err
8018 cat conftest.err
>&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && {
8021 test -z "$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8023 } && test -s conftest
$ac_exeext &&
8024 $as_test_x conftest
$ac_exeext; then
8025 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.
$ac_ext >&5
8030 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
8033 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8034 conftest
$ac_exeext conftest.
$ac_ext
8035 LIBS
=$ac_check_lib_save_LIBS
8037 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8038 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8039 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8040 cat >>confdefs.h
<<_ACEOF
8041 #define HAVE_LIBCRYPTO 1
8044 LIBS
="-lcrypto $LIBS"
8047 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8048 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8049 { (exit 1); exit 1; }; }
8053 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8054 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8055 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_check_lib_save_LIBS
=$LIBS
8060 cat >conftest.
$ac_ext <<_ACEOF
8063 cat confdefs.h
>>conftest.
$ac_ext
8064 cat >>conftest.
$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8067 /* Override any GCC internal prototype to avoid an error.
8068 Use char because int might match the return type of a GCC
8069 builtin and then its argument prototype would still apply. */
8073 char SSL_library_init ();
8077 return SSL_library_init ();
8082 rm -f conftest.
$ac_objext conftest
$ac_exeext
8083 if { (ac_try
="$ac_link"
8085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_link") 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest$ac_exeext &&
8099 $as_test_x conftest$ac_exeext; then
8100 ac_cv_lib_ssl_SSL_library_init=yes
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_cv_lib_ssl_SSL_library_init=no
8108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8109 conftest$ac_exeext conftest.$ac_ext
8110 LIBS=$ac_check_lib_save_LIBS
8112 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8113 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8114 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8115 cat >>confdefs.h <<_ACEOF
8116 #define HAVE_LIBSSL 1
8122 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8123 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8124 { (exit 1); exit 1; }; }
8129 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8130 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8131 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_check_lib_save_LIBS=$LIBS
8135 LIBS="-leay32 $LIBS"
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8143 /* Override any GCC internal prototype to avoid an error.
8144 Use char because int might match the return type of a GCC
8145 builtin and then its argument prototype would still apply. */
8149 char CRYPTO_new_ex_data ();
8153 return CRYPTO_new_ex_data ();
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (ac_try="$ac_link"
8161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8162 *) ac_try_echo
=$ac_try;;
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_link") 2>conftest.er1
8167 grep -v '^ *+' conftest.er1
>conftest.err
8169 cat conftest.err
>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest
$ac_exeext &&
8175 $as_test_x conftest
$ac_exeext; then
8176 ac_cv_lib_eay32_CRYPTO_new_ex_data
=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.
$ac_ext >&5
8181 ac_cv_lib_eay32_CRYPTO_new_ex_data
=no
8184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8185 conftest
$ac_exeext conftest.
$ac_ext
8186 LIBS
=$ac_check_lib_save_LIBS
8188 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8189 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8190 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8191 cat >>confdefs.h
<<_ACEOF
8192 #define HAVE_LIBEAY32 1
8195 LIBS
="-leay32 $LIBS"
8198 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8199 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8200 { (exit 1); exit 1; }; }
8204 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8205 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8206 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 ac_check_lib_save_LIBS
=$LIBS
8210 LIBS
="-lssleay32 $LIBS"
8211 cat >conftest.
$ac_ext <<_ACEOF
8214 cat confdefs.h
>>conftest.
$ac_ext
8215 cat >>conftest.
$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8224 char SSL_library_init ();
8228 return SSL_library_init ();
8233 rm -f conftest.
$ac_objext conftest
$ac_exeext
8234 if { (ac_try
="$ac_link"
8236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_link") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest$ac_exeext &&
8250 $as_test_x conftest$ac_exeext; then
8251 ac_cv_lib_ssleay32_SSL_library_init=yes
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8256 ac_cv_lib_ssleay32_SSL_library_init=no
8259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LIBS=$ac_check_lib_save_LIBS
8263 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8264 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8265 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8266 cat >>confdefs.h <<_ACEOF
8267 #define HAVE_LIBSSLEAY32 1
8270 LIBS="-lssleay32 $LIBS"
8273 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8274 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8275 { (exit 1); exit 1; }; }
8281 if test "$with_pam" = yes ; then
8283 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8284 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8285 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 ac_check_lib_save_LIBS=$LIBS
8290 cat >conftest.$ac_ext <<_ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8297 /* Override any GCC internal prototype to avoid an error.
8298 Use char because int might match the return type of a GCC
8299 builtin and then its argument prototype would still apply. */
8307 return pam_start ();
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (ac_try="$ac_link"
8315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8316 *) ac_try_echo
=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_link") 2>conftest.er1
8321 grep -v '^ *+' conftest.er1
>conftest.err
8323 cat conftest.err
>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest
$ac_exeext &&
8329 $as_test_x conftest
$ac_exeext; then
8330 ac_cv_lib_pam_pam_start
=yes
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.
$ac_ext >&5
8335 ac_cv_lib_pam_pam_start
=no
8338 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8339 conftest
$ac_exeext conftest.
$ac_ext
8340 LIBS
=$ac_check_lib_save_LIBS
8342 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8343 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8344 if test $ac_cv_lib_pam_pam_start = yes; then
8345 cat >>confdefs.h
<<_ACEOF
8346 #define HAVE_LIBPAM 1
8352 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8353 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8354 { (exit 1); exit 1; }; }
8359 if test "$with_libxml" = yes ; then
8361 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8362 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8363 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 ac_check_lib_save_LIBS
=$LIBS
8368 cat >conftest.
$ac_ext <<_ACEOF
8371 cat confdefs.h
>>conftest.
$ac_ext
8372 cat >>conftest.
$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8375 /* Override any GCC internal prototype to avoid an error.
8376 Use char because int might match the return type of a GCC
8377 builtin and then its argument prototype would still apply. */
8381 char xmlSaveToBuffer ();
8385 return xmlSaveToBuffer ();
8390 rm -f conftest.
$ac_objext conftest
$ac_exeext
8391 if { (ac_try
="$ac_link"
8393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_link") 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest$ac_exeext &&
8407 $as_test_x conftest$ac_exeext; then
8408 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_lib_xml2_xmlSaveToBuffer=no
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417 conftest$ac_exeext conftest.$ac_ext
8418 LIBS=$ac_check_lib_save_LIBS
8420 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8421 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8422 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_LIBXML2 1
8430 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8431 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8432 { (exit 1); exit 1; }; }
8437 if test "$with_libxslt" = yes ; then
8439 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8440 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8441 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 ac_check_lib_save_LIBS=$LIBS
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8453 /* Override any GCC internal prototype to avoid an error.
8454 Use char because int might match the return type of a GCC
8455 builtin and then its argument prototype would still apply. */
8459 char xsltCleanupGlobals ();
8463 return xsltCleanupGlobals ();
8468 rm -f conftest.$ac_objext conftest$ac_exeext
8469 if { (ac_try="$ac_link"
8471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8472 *) ac_try_echo
=$ac_try;;
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_link") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1
>conftest.err
8479 cat conftest.err
>&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest
$ac_exeext &&
8485 $as_test_x conftest
$ac_exeext; then
8486 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.
$ac_ext >&5
8491 ac_cv_lib_xslt_xsltCleanupGlobals
=no
8494 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8495 conftest
$ac_exeext conftest.
$ac_ext
8496 LIBS
=$ac_check_lib_save_LIBS
8498 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8499 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8500 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8501 cat >>confdefs.h
<<_ACEOF
8502 #define HAVE_LIBXSLT 1
8508 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8509 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8510 { (exit 1); exit 1; }; }
8515 # for contrib/uuid-ossp
8516 if test "$with_ossp_uuid" = yes ; then
8517 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8518 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8519 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 ac_check_lib_save_LIBS
=$LIBS
8523 LIBS
="-lossp-uuid $LIBS"
8524 cat >conftest.
$ac_ext <<_ACEOF
8527 cat confdefs.h
>>conftest.
$ac_ext
8528 cat >>conftest.
$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8531 /* Override any GCC internal prototype to avoid an error.
8532 Use char because int might match the return type of a GCC
8533 builtin and then its argument prototype would still apply. */
8537 char uuid_export ();
8541 return uuid_export ();
8546 rm -f conftest.
$ac_objext conftest
$ac_exeext
8547 if { (ac_try
="$ac_link"
8549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest$ac_exeext &&
8563 $as_test_x conftest$ac_exeext; then
8564 ac_cv_lib_ossp_uuid_uuid_export=yes
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 ac_cv_lib_ossp_uuid_uuid_export=no
8572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8576 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8577 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8578 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8579 OSSP_UUID_LIBS="-lossp-uuid"
8581 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8582 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8583 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 ac_check_lib_save_LIBS=$LIBS
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8595 /* Override any GCC internal prototype to avoid an error.
8596 Use char because int might match the return type of a GCC
8597 builtin and then its argument prototype would still apply. */
8601 char uuid_export ();
8605 return uuid_export ();
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (ac_try="$ac_link"
8613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8614 *) ac_try_echo
=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_link") 2>conftest.er1
8619 grep -v '^ *+' conftest.er1
>conftest.err
8621 cat conftest.err
>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest
$ac_exeext &&
8627 $as_test_x conftest
$ac_exeext; then
8628 ac_cv_lib_uuid_uuid_export
=yes
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.
$ac_ext >&5
8633 ac_cv_lib_uuid_uuid_export
=no
8636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8637 conftest
$ac_exeext conftest.
$ac_ext
8638 LIBS
=$ac_check_lib_save_LIBS
8640 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8641 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8642 if test $ac_cv_lib_uuid_uuid_export = yes; then
8643 OSSP_UUID_LIBS
="-luuid"
8645 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8646 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8647 { (exit 1); exit 1; }; }
8660 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8661 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8662 if test "${ac_cv_header_stdc+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 cat >conftest.
$ac_ext <<_ACEOF
8668 cat confdefs.h
>>conftest.
$ac_ext
8669 cat >>conftest.
$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8684 rm -f conftest.
$ac_objext
8685 if { (ac_try
="$ac_compile"
8687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && {
8698 test -z "$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8700 } && test -s conftest.$ac_objext; then
8701 ac_cv_header_stdc=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 ac_cv_header_stdc=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 if test $ac_cv_header_stdc = yes; then
8712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8713 cat >conftest.$ac_ext <<_ACEOF
8716 cat confdefs.h >>conftest.$ac_ext
8717 cat >>conftest.$ac_ext <<_ACEOF
8718 /* end confdefs.h. */
8722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8723 $EGREP "memchr" >/dev/null 2>&1; then
8726 ac_cv_header_stdc=no
8732 if test $ac_cv_header_stdc = yes; then
8733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8734 cat >conftest.$ac_ext <<_ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8744 $EGREP "free" >/dev/null 2>&1; then
8747 ac_cv_header_stdc=no
8753 if test $ac_cv_header_stdc = yes; then
8754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8755 if test "$cross_compiling" = yes; then
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8766 #if ((' ' & 0x0FF) == 0x020)
8767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8770 # define ISLOWER(c) \
8771 (('a' <= (c) && (c) <= 'i') \
8772 || ('j' <= (c) && (c) <= 'r') \
8773 || ('s' <= (c) && (c) <= 'z'))
8774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8782 for (i = 0; i < 256; i++)
8783 if (XOR (islower (i), ISLOWER (i))
8784 || toupper (i) != TOUPPER (i))
8789 rm -f conftest$ac_exeext
8790 if { (ac_try="$ac_link"
8792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8793 *) ac_try_echo
=$ac_try;;
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_link") 2>&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8800 { (case "(($ac_try" in
8801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_try") 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8811 echo "$as_me: program exited with status $ac_status" >&5
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8816 ac_cv_header_stdc=no
8818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8824 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8825 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8826 if test $ac_cv_header_stdc = yes; then
8828 cat >>confdefs.h <<\_ACEOF
8829 #define STDC_HEADERS 1
8834 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8844 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8845 inttypes.h stdint.h unistd.h
8847 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8861 #include <$ac_header>
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8867 *) ac_try_echo
=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1
>conftest.err
8874 cat conftest.err
>&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.
$ac_objext; then
8880 eval "$as_ac_Header=yes"
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.
$ac_ext >&5
8885 eval "$as_ac_Header=no"
8888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8890 ac_res
=`eval echo '${'$as_ac_Header'}'`
8891 { echo "$as_me:$LINENO: result: $ac_res" >&5
8892 echo "${ECHO_T}$ac_res" >&6; }
8893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8894 cat >>confdefs.h
<<_ACEOF
8895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930 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
8932 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8936 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 ac_res
=`eval echo '${'$as_ac_Header'}'`
8940 { echo "$as_me:$LINENO: result: $ac_res" >&5
8941 echo "${ECHO_T}$ac_res" >&6; }
8943 # Is the header compilable?
8944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8946 cat >conftest.
$ac_ext <<_ACEOF
8949 cat confdefs.h
>>conftest.
$ac_ext
8950 cat >>conftest.
$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8953 #include <$ac_header>
8955 rm -f conftest.
$ac_objext
8956 if { (ac_try
="$ac_compile"
8958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 ac_header_compiler=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_header_compiler=no
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982 echo "${ECHO_T}$ac_header_compiler" >&6; }
8984 # Is the header present?
8985 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8987 cat >conftest.$ac_ext <<_ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 #include <$ac_header>
8995 if { (ac_try="$ac_cpp conftest.$ac_ext"
8997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8998 *) ac_try_echo
=$ac_try;;
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9003 grep -v '^ *+' conftest.er1
>conftest.err
9005 cat conftest.err
>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev
/null
&& {
9008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9011 ac_header_preproc
=yes
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.
$ac_ext >&5
9016 ac_header_preproc
=no
9019 rm -f conftest.err conftest.
$ac_ext
9020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9021 echo "${ECHO_T}$ac_header_preproc" >&6; }
9023 # So? What about this header?
9024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9030 ac_header_preproc
=yes
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9046 ## ---------------------------------------- ##
9047 ## Report this to pgsql-bugs@postgresql.org ##
9048 ## ---------------------------------------- ##
9050 ) |
sed "s/^/$as_me: WARNING: /" >&2
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 eval "$as_ac_Header=\$ac_header_preproc"
9060 ac_res
=`eval echo '${'$as_ac_Header'}'`
9061 { echo "$as_me:$LINENO: result: $ac_res" >&5
9062 echo "${ECHO_T}$ac_res" >&6; }
9065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9066 cat >>confdefs.h
<<_ACEOF
9067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9075 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9076 # netinet/in.h is included first.
9078 for ac_header
in netinet
/in.h
9080 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9084 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 ac_res
=`eval echo '${'$as_ac_Header'}'`
9088 { echo "$as_me:$LINENO: result: $ac_res" >&5
9089 echo "${ECHO_T}$ac_res" >&6; }
9091 # Is the header compilable?
9092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9094 cat >conftest.
$ac_ext <<_ACEOF
9097 cat confdefs.h
>>conftest.
$ac_ext
9098 cat >>conftest.
$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 $ac_includes_default
9101 #include <$ac_header>
9103 rm -f conftest.
$ac_objext
9104 if { (ac_try
="$ac_compile"
9106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_compile") 2>conftest.er1
9112 grep -v '^ *+' conftest.er1 >conftest.err
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && {
9117 test -z "$ac_c_werror_flag" ||
9118 test ! -s conftest.err
9119 } && test -s conftest.$ac_objext; then
9120 ac_header_compiler=yes
9122 echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9125 ac_header_compiler=no
9128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6; }
9132 # Is the header present?
9133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9135 cat >conftest.$ac_ext <<_ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 #include <$ac_header>
9143 if { (ac_try="$ac_cpp conftest.$ac_ext"
9145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9146 *) ac_try_echo
=$ac_try;;
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9151 grep -v '^ *+' conftest.er1
>conftest.err
9153 cat conftest.err
>&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } >/dev
/null
&& {
9156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9157 test ! -s conftest.err
9159 ac_header_preproc
=yes
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.
$ac_ext >&5
9164 ac_header_preproc
=no
9167 rm -f conftest.err conftest.
$ac_ext
9168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9169 echo "${ECHO_T}$ac_header_preproc" >&6; }
9171 # So? What about this header?
9172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9178 ac_header_preproc
=yes
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9194 ## ---------------------------------------- ##
9195 ## Report this to pgsql-bugs@postgresql.org ##
9196 ## ---------------------------------------- ##
9198 ) |
sed "s/^/$as_me: WARNING: /" >&2
9201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9203 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 eval "$as_ac_Header=\$ac_header_preproc"
9208 ac_res
=`eval echo '${'$as_ac_Header'}'`
9209 { echo "$as_me:$LINENO: result: $ac_res" >&5
9210 echo "${ECHO_T}$ac_res" >&6; }
9213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9214 cat >>confdefs.h
<<_ACEOF
9215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9223 for ac_header
in netinet
/tcp.h
9225 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9228 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 cat >conftest.
$ac_ext <<_ACEOF
9234 cat confdefs.h
>>conftest.
$ac_ext
9235 cat >>conftest.
$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 $ac_includes_default
9238 #ifdef HAVE_NETINET_IN_H
9239 #include <netinet/in.h>
9243 #include <$ac_header>
9245 rm -f conftest.
$ac_objext
9246 if { (ac_try
="$ac_compile"
9248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_c_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9262 eval "$as_ac_Header=yes"
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 eval "$as_ac_Header=no"
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 ac_res=`eval echo '${'$as_ac_Header'}'`
9273 { echo "$as_me:$LINENO: result: $ac_res" >&5
9274 echo "${ECHO_T}$ac_res" >&6; }
9275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9276 cat >>confdefs.h <<_ACEOF
9277 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9285 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9287 for ac_header in readline/readline.h
9289 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 ac_res=`eval echo '${'$as_ac_Header'}'`
9297 { echo "$as_me:$LINENO: result: $ac_res" >&5
9298 echo "${ECHO_T}$ac_res" >&6; }
9300 # Is the header compilable?
9301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9303 cat >conftest.$ac_ext <<_ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 #include <$ac_header>
9312 rm -f conftest.$ac_objext
9313 if { (ac_try="$ac_compile"
9315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9316 *) ac_try_echo
=$ac_try;;
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319 (eval "$ac_compile") 2>conftest.er1
9321 grep -v '^ *+' conftest.er1
>conftest.err
9323 cat conftest.err
>&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } && {
9326 test -z "$ac_c_werror_flag" ||
9327 test ! -s conftest.err
9328 } && test -s conftest.
$ac_objext; then
9329 ac_header_compiler
=yes
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.
$ac_ext >&5
9334 ac_header_compiler
=no
9337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9339 echo "${ECHO_T}$ac_header_compiler" >&6; }
9341 # Is the header present?
9342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9344 cat >conftest.
$ac_ext <<_ACEOF
9347 cat confdefs.h
>>conftest.
$ac_ext
9348 cat >>conftest.
$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 #include <$ac_header>
9352 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9360 grep -v '^ *+' conftest.er1 >conftest.err
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } >/dev/null && {
9365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9368 ac_header_preproc=yes
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_header_preproc=no
9376 rm -f conftest.err conftest.$ac_ext
9377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9378 echo "${ECHO_T}$ac_header_preproc" >&6; }
9380 # So? What about this header?
9381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9387 ac_header_preproc=yes
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9403 ## ---------------------------------------- ##
9404 ## Report this to pgsql-bugs@postgresql.org ##
9405 ## ---------------------------------------- ##
9407 ) | sed "s/^/$as_me: WARNING: /" >&2
9410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 eval "$as_ac_Header=\$ac_header_preproc"
9417 ac_res=`eval echo '${'$as_ac_Header'}'`
9418 { echo "$as_me:$LINENO: result: $ac_res" >&5
9419 echo "${ECHO_T}$ac_res" >&6; }
9422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9423 cat >>confdefs.h <<_ACEOF
9424 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9429 for ac_header in readline.h
9431 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 ac_res=`eval echo '${'$as_ac_Header'}'`
9439 { echo "$as_me:$LINENO: result: $ac_res" >&5
9440 echo "${ECHO_T}$ac_res" >&6; }
9442 # Is the header compilable?
9443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 $ac_includes_default
9452 #include <$ac_header>
9454 rm -f conftest.$ac_objext
9455 if { (ac_try="$ac_compile"
9457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9458 *) ac_try_echo
=$ac_try;;
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_compile") 2>conftest.er1
9463 grep -v '^ *+' conftest.er1
>conftest.err
9465 cat conftest.err
>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest.
$ac_objext; then
9471 ac_header_compiler
=yes
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.
$ac_ext >&5
9476 ac_header_compiler
=no
9479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9481 echo "${ECHO_T}$ac_header_compiler" >&6; }
9483 # Is the header present?
9484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9486 cat >conftest.
$ac_ext <<_ACEOF
9489 cat confdefs.h
>>conftest.
$ac_ext
9490 cat >>conftest.
$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 #include <$ac_header>
9494 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9502 grep -v '^ *+' conftest.er1 >conftest.err
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } >/dev/null && {
9507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9508 test ! -s conftest.err
9510 ac_header_preproc=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_header_preproc=no
9518 rm -f conftest.err conftest.$ac_ext
9519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520 echo "${ECHO_T}$ac_header_preproc" >&6; }
9522 # So? What about this header?
9523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9529 ac_header_preproc=yes
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9545 ## ---------------------------------------- ##
9546 ## Report this to pgsql-bugs@postgresql.org ##
9547 ## ---------------------------------------- ##
9549 ) | sed "s/^/$as_me: WARNING: /" >&2
9552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 eval "$as_ac_Header=\$ac_header_preproc"
9559 ac_res=`eval echo '${'$as_ac_Header'}'`
9560 { echo "$as_me:$LINENO: result: $ac_res" >&5
9561 echo "${ECHO_T}$ac_res" >&6; }
9564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9565 cat >>confdefs.h <<_ACEOF
9566 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9570 { { echo "$as_me:$LINENO: error: readline header not found
9571 If you have readline already installed, see config.log for details on the
9572 failure. It is possible the compiler isn't looking in the proper directory.
9573 Use --without-readline to disable readline support." >&5
9574 echo "$as_me: error: readline header not found
9575 If you have readline already installed, see config.log for details on the
9576 failure. It is possible the compiler isn't looking in the proper directory.
9577 Use --without-readline to disable readline support." >&2;}
9578 { (exit 1); exit 1; }; }
9588 for ac_header in readline/history.h
9590 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 ac_res=`eval echo '${'$as_ac_Header'}'`
9598 { echo "$as_me:$LINENO: result: $ac_res" >&5
9599 echo "${ECHO_T}$ac_res" >&6; }
9601 # Is the header compilable?
9602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9604 cat >conftest.$ac_ext <<_ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610 $ac_includes_default
9611 #include <$ac_header>
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9617 *) ac_try_echo
=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9622 grep -v '^ *+' conftest.er1
>conftest.err
9624 cat conftest.err
>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.
$ac_objext; then
9630 ac_header_compiler
=yes
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.
$ac_ext >&5
9635 ac_header_compiler
=no
9638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6; }
9642 # Is the header present?
9643 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9645 cat >conftest.
$ac_ext <<_ACEOF
9648 cat confdefs.h
>>conftest.
$ac_ext
9649 cat >>conftest.
$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <$ac_header>
9653 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9661 grep -v '^ *+' conftest.er1 >conftest.err
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } >/dev/null && {
9666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9669 ac_header_preproc=yes
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_header_preproc=no
9677 rm -f conftest.err conftest.$ac_ext
9678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9679 echo "${ECHO_T}$ac_header_preproc" >&6; }
9681 # So? What about this header?
9682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9688 ac_header_preproc=yes
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9704 ## ---------------------------------------- ##
9705 ## Report this to pgsql-bugs@postgresql.org ##
9706 ## ---------------------------------------- ##
9708 ) | sed "s/^/$as_me: WARNING: /" >&2
9711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 eval "$as_ac_Header=\$ac_header_preproc"
9718 ac_res=`eval echo '${'$as_ac_Header'}'`
9719 { echo "$as_me:$LINENO: result: $ac_res" >&5
9720 echo "${ECHO_T}$ac_res" >&6; }
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724 cat >>confdefs.h <<_ACEOF
9725 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9730 for ac_header in history.h
9732 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 ac_res=`eval echo '${'$as_ac_Header'}'`
9740 { echo "$as_me:$LINENO: result: $ac_res" >&5
9741 echo "${ECHO_T}$ac_res" >&6; }
9743 # Is the header compilable?
9744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 $ac_includes_default
9753 #include <$ac_header>
9755 rm -f conftest.$ac_objext
9756 if { (ac_try="$ac_compile"
9758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9759 *) ac_try_echo
=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_compile") 2>conftest.er1
9764 grep -v '^ *+' conftest.er1
>conftest.err
9766 cat conftest.err
>&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && {
9769 test -z "$ac_c_werror_flag" ||
9770 test ! -s conftest.err
9771 } && test -s conftest.
$ac_objext; then
9772 ac_header_compiler
=yes
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.
$ac_ext >&5
9777 ac_header_compiler
=no
9780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9782 echo "${ECHO_T}$ac_header_compiler" >&6; }
9784 # Is the header present?
9785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9787 cat >conftest.
$ac_ext <<_ACEOF
9790 cat confdefs.h
>>conftest.
$ac_ext
9791 cat >>conftest.
$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 #include <$ac_header>
9795 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } >/dev/null && {
9808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9811 ac_header_preproc=yes
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_header_preproc=no
9819 rm -f conftest.err conftest.$ac_ext
9820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821 echo "${ECHO_T}$ac_header_preproc" >&6; }
9823 # So? What about this header?
9824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830 ac_header_preproc=yes
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9846 ## ---------------------------------------- ##
9847 ## Report this to pgsql-bugs@postgresql.org ##
9848 ## ---------------------------------------- ##
9850 ) | sed "s/^/$as_me: WARNING: /" >&2
9853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 eval "$as_ac_Header=\$ac_header_preproc"
9860 ac_res=`eval echo '${'$as_ac_Header'}'`
9861 { echo "$as_me:$LINENO: result: $ac_res" >&5
9862 echo "${ECHO_T}$ac_res" >&6; }
9865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9871 { { echo "$as_me:$LINENO: error: history header not found
9872 If you have readline already installed, see config.log for details on the
9873 failure. It is possible the compiler isn't looking in the proper directory.
9874 Use --without-readline to disable readline support." >&5
9875 echo "$as_me: error: history header not found
9876 If you have readline already installed, see config.log for details on the
9877 failure. It is possible the compiler isn't looking in the proper directory.
9878 Use --without-readline to disable readline support." >&2;}
9879 { (exit 1); exit 1; }; }
9890 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9891 # Some installations of libedit usurp /usr/include/readline/, which seems
9892 # bad practice, since in combined installations readline will have its headers
9893 # there. We might have to resort to AC_EGREP checks to make sure we found
9894 # the proper header...
9896 for ac_header in editline/readline.h
9898 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 ac_res=`eval echo '${'$as_ac_Header'}'`
9906 { echo "$as_me:$LINENO: result: $ac_res" >&5
9907 echo "${ECHO_T}$ac_res" >&6; }
9909 # Is the header compilable?
9910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9912 cat >conftest.$ac_ext <<_ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 $ac_includes_default
9919 #include <$ac_header>
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9925 *) ac_try_echo
=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1
>conftest.err
9932 cat conftest.err
>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.
$ac_objext; then
9938 ac_header_compiler
=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.
$ac_ext >&5
9943 ac_header_compiler
=no
9946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9948 echo "${ECHO_T}$ac_header_compiler" >&6; }
9950 # Is the header present?
9951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9953 cat >conftest.
$ac_ext <<_ACEOF
9956 cat confdefs.h
>>conftest.
$ac_ext
9957 cat >>conftest.
$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #include <$ac_header>
9961 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9969 grep -v '^ *+' conftest.er1 >conftest.err
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } >/dev/null && {
9974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9975 test ! -s conftest.err
9977 ac_header_preproc=yes
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 ac_header_preproc=no
9985 rm -f conftest.err conftest.$ac_ext
9986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9987 echo "${ECHO_T}$ac_header_preproc" >&6; }
9989 # So? What about this header?
9990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9996 ac_header_preproc=yes
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10012 ## ---------------------------------------- ##
10013 ## Report this to pgsql-bugs@postgresql.org ##
10014 ## ---------------------------------------- ##
10016 ) | sed "s/^/$as_me: WARNING: /" >&2
10019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 eval "$as_ac_Header=\$ac_header_preproc"
10026 ac_res=`eval echo '${'$as_ac_Header'}'`
10027 { echo "$as_me:$LINENO: result: $ac_res" >&5
10028 echo "${ECHO_T}$ac_res" >&6; }
10031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10032 cat >>confdefs.h <<_ACEOF
10033 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10038 for ac_header in readline.h
10040 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 ac_res=`eval echo '${'$as_ac_Header'}'`
10048 { echo "$as_me:$LINENO: result: $ac_res" >&5
10049 echo "${ECHO_T}$ac_res" >&6; }
10051 # Is the header compilable?
10052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10054 cat >conftest.$ac_ext <<_ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10061 #include <$ac_header>
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10067 *) ac_try_echo
=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1
>conftest.err
10074 cat conftest.err
>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.
$ac_objext; then
10080 ac_header_compiler
=yes
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.
$ac_ext >&5
10085 ac_header_compiler
=no
10088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10090 echo "${ECHO_T}$ac_header_compiler" >&6; }
10092 # Is the header present?
10093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10095 cat >conftest.
$ac_ext <<_ACEOF
10098 cat confdefs.h
>>conftest.
$ac_ext
10099 cat >>conftest.
$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10101 #include <$ac_header>
10103 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10104 case "(($ac_try" in
10105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10111 grep -v '^ *+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } >/dev/null && {
10116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10117 test ! -s conftest.err
10119 ac_header_preproc=yes
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_header_preproc=no
10127 rm -f conftest.err conftest.$ac_ext
10128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10129 echo "${ECHO_T}$ac_header_preproc" >&6; }
10131 # So? What about this header?
10132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10138 ac_header_preproc=yes
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10154 ## ---------------------------------------- ##
10155 ## Report this to pgsql-bugs@postgresql.org ##
10156 ## ---------------------------------------- ##
10158 ) | sed "s/^/$as_me: WARNING: /" >&2
10161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 eval "$as_ac_Header=\$ac_header_preproc"
10168 ac_res=`eval echo '${'$as_ac_Header'}'`
10169 { echo "$as_me:$LINENO: result: $ac_res" >&5
10170 echo "${ECHO_T}$ac_res" >&6; }
10173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10174 cat >>confdefs.h <<_ACEOF
10175 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10180 for ac_header in readline/readline.h
10182 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 ac_res=`eval echo '${'$as_ac_Header'}'`
10190 { echo "$as_me:$LINENO: result: $ac_res" >&5
10191 echo "${ECHO_T}$ac_res" >&6; }
10193 # Is the header compilable?
10194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10196 cat >conftest.$ac_ext <<_ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 $ac_includes_default
10203 #include <$ac_header>
10205 rm -f conftest.$ac_objext
10206 if { (ac_try="$ac_compile"
10207 case "(($ac_try" in
10208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10209 *) ac_try_echo
=$ac_try;;
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_compile") 2>conftest.er1
10214 grep -v '^ *+' conftest.er1
>conftest.err
10216 cat conftest.err
>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest.
$ac_objext; then
10222 ac_header_compiler
=yes
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.
$ac_ext >&5
10227 ac_header_compiler
=no
10230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10232 echo "${ECHO_T}$ac_header_compiler" >&6; }
10234 # Is the header present?
10235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10237 cat >conftest.
$ac_ext <<_ACEOF
10240 cat confdefs.h
>>conftest.
$ac_ext
10241 cat >>conftest.
$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 #include <$ac_header>
10245 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10246 case "(($ac_try" in
10247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10253 grep -v '^ *+' conftest.er1 >conftest.err
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } >/dev/null && {
10258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10259 test ! -s conftest.err
10261 ac_header_preproc=yes
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10266 ac_header_preproc=no
10269 rm -f conftest.err conftest.$ac_ext
10270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271 echo "${ECHO_T}$ac_header_preproc" >&6; }
10273 # So? What about this header?
10274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280 ac_header_preproc=yes
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10296 ## ---------------------------------------- ##
10297 ## Report this to pgsql-bugs@postgresql.org ##
10298 ## ---------------------------------------- ##
10300 ) | sed "s/^/$as_me: WARNING: /" >&2
10303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 eval "$as_ac_Header=\$ac_header_preproc"
10310 ac_res=`eval echo '${'$as_ac_Header'}'`
10311 { echo "$as_me:$LINENO: result: $ac_res" >&5
10312 echo "${ECHO_T}$ac_res" >&6; }
10315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10316 cat >>confdefs.h <<_ACEOF
10317 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10321 { { echo "$as_me:$LINENO: error: readline header not found
10322 If you have libedit already installed, see config.log for details on the
10323 failure. It is possible the compiler isn't looking in the proper directory.
10324 Use --without-readline to disable libedit support." >&5
10325 echo "$as_me: error: readline header not found
10326 If you have libedit already installed, see config.log for details on the
10327 failure. It is possible the compiler isn't looking in the proper directory.
10328 Use --without-readline to disable libedit support." >&2;}
10329 { (exit 1); exit 1; }; }
10342 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10343 # not be there at all. Hence, don't complain if not found. We must check
10344 # though, since in yet other versions it is an independent header.
10346 for ac_header in editline/history.h
10348 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 ac_res=`eval echo '${'$as_ac_Header'}'`
10356 { echo "$as_me:$LINENO: result: $ac_res" >&5
10357 echo "${ECHO_T}$ac_res" >&6; }
10359 # Is the header compilable?
10360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10362 cat >conftest.$ac_ext <<_ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 $ac_includes_default
10369 #include <$ac_header>
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10375 *) ac_try_echo
=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_compile") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1
>conftest.err
10382 cat conftest.err
>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && {
10385 test -z "$ac_c_werror_flag" ||
10386 test ! -s conftest.err
10387 } && test -s conftest.
$ac_objext; then
10388 ac_header_compiler
=yes
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.
$ac_ext >&5
10393 ac_header_compiler
=no
10396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10398 echo "${ECHO_T}$ac_header_compiler" >&6; }
10400 # Is the header present?
10401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10403 cat >conftest.
$ac_ext <<_ACEOF
10406 cat confdefs.h
>>conftest.
$ac_ext
10407 cat >>conftest.
$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10409 #include <$ac_header>
10411 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10412 case "(($ac_try" in
10413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } >/dev/null && {
10424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10427 ac_header_preproc=yes
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 ac_header_preproc=no
10435 rm -f conftest.err conftest.$ac_ext
10436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 echo "${ECHO_T}$ac_header_preproc" >&6; }
10439 # So? What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446 ac_header_preproc=yes
10449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10462 ## ---------------------------------------- ##
10463 ## Report this to pgsql-bugs@postgresql.org ##
10464 ## ---------------------------------------- ##
10466 ) | sed "s/^/$as_me: WARNING: /" >&2
10469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 eval "$as_ac_Header=\$ac_header_preproc"
10476 ac_res=`eval echo '${'$as_ac_Header'}'`
10477 { echo "$as_me:$LINENO: result: $ac_res" >&5
10478 echo "${ECHO_T}$ac_res" >&6; }
10481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10482 cat >>confdefs.h <<_ACEOF
10483 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10488 for ac_header in history.h
10490 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 ac_res=`eval echo '${'$as_ac_Header'}'`
10498 { echo "$as_me:$LINENO: result: $ac_res" >&5
10499 echo "${ECHO_T}$ac_res" >&6; }
10501 # Is the header compilable?
10502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10511 #include <$ac_header>
10513 rm -f conftest.$ac_objext
10514 if { (ac_try="$ac_compile"
10515 case "(($ac_try" in
10516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10517 *) ac_try_echo
=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_compile") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1
>conftest.err
10524 cat conftest.err
>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest.
$ac_objext; then
10530 ac_header_compiler
=yes
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.
$ac_ext >&5
10535 ac_header_compiler
=no
10538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10540 echo "${ECHO_T}$ac_header_compiler" >&6; }
10542 # Is the header present?
10543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10545 cat >conftest.
$ac_ext <<_ACEOF
10548 cat confdefs.h
>>conftest.
$ac_ext
10549 cat >>conftest.
$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <$ac_header>
10553 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10554 case "(($ac_try" in
10555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10561 grep -v '^ *+' conftest.er1 >conftest.err
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } >/dev/null && {
10566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10569 ac_header_preproc=yes
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ac_header_preproc=no
10577 rm -f conftest.err conftest.$ac_ext
10578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10579 echo "${ECHO_T}$ac_header_preproc" >&6; }
10581 # So? What about this header?
10582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10588 ac_header_preproc=yes
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10604 ## ---------------------------------------- ##
10605 ## Report this to pgsql-bugs@postgresql.org ##
10606 ## ---------------------------------------- ##
10608 ) | sed "s/^/$as_me: WARNING: /" >&2
10611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 eval "$as_ac_Header=\$ac_header_preproc"
10618 ac_res=`eval echo '${'$as_ac_Header'}'`
10619 { echo "$as_me:$LINENO: result: $ac_res" >&5
10620 echo "${ECHO_T}$ac_res" >&6; }
10623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10624 cat >>confdefs.h <<_ACEOF
10625 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10630 for ac_header in readline/history.h
10632 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 ac_res=`eval echo '${'$as_ac_Header'}'`
10640 { echo "$as_me:$LINENO: result: $ac_res" >&5
10641 echo "${ECHO_T}$ac_res" >&6; }
10643 # Is the header compilable?
10644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 $ac_includes_default
10653 #include <$ac_header>
10655 rm -f conftest.$ac_objext
10656 if { (ac_try="$ac_compile"
10657 case "(($ac_try" in
10658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10659 *) ac_try_echo
=$ac_try;;
10661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_compile") 2>conftest.er1
10664 grep -v '^ *+' conftest.er1
>conftest.err
10666 cat conftest.err
>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } && {
10669 test -z "$ac_c_werror_flag" ||
10670 test ! -s conftest.err
10671 } && test -s conftest.
$ac_objext; then
10672 ac_header_compiler
=yes
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.
$ac_ext >&5
10677 ac_header_compiler
=no
10680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10682 echo "${ECHO_T}$ac_header_compiler" >&6; }
10684 # Is the header present?
10685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10687 cat >conftest.
$ac_ext <<_ACEOF
10690 cat confdefs.h
>>conftest.
$ac_ext
10691 cat >>conftest.
$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 #include <$ac_header>
10695 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10696 case "(($ac_try" in
10697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } >/dev/null && {
10708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10711 ac_header_preproc=yes
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_header_preproc=no
10719 rm -f conftest.err conftest.$ac_ext
10720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10721 echo "${ECHO_T}$ac_header_preproc" >&6; }
10723 # So? What about this header?
10724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10730 ac_header_preproc=yes
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10746 ## ---------------------------------------- ##
10747 ## Report this to pgsql-bugs@postgresql.org ##
10748 ## ---------------------------------------- ##
10750 ) | sed "s/^/$as_me: WARNING: /" >&2
10753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 eval "$as_ac_Header=\$ac_header_preproc"
10760 ac_res=`eval echo '${'$as_ac_Header'}'`
10761 { echo "$as_me:$LINENO: result: $ac_res" >&5
10762 echo "${ECHO_T}$ac_res" >&6; }
10765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10766 cat >>confdefs.h <<_ACEOF
10767 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10784 if test "$with_zlib" = yes; then
10785 if test "${ac_cv_header_zlib_h+set}" = set; then
10786 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10787 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10788 if test "${ac_cv_header_zlib_h+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10792 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10794 # Is the header compilable?
10795 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10796 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10806 rm -f conftest.$ac_objext
10807 if { (ac_try="$ac_compile"
10808 case "(($ac_try" in
10809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10810 *) ac_try_echo
=$ac_try;;
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_compile") 2>conftest.er1
10815 grep -v '^ *+' conftest.er1
>conftest.err
10817 cat conftest.err
>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && {
10820 test -z "$ac_c_werror_flag" ||
10821 test ! -s conftest.err
10822 } && test -s conftest.
$ac_objext; then
10823 ac_header_compiler
=yes
10825 echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.
$ac_ext >&5
10828 ac_header_compiler
=no
10831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833 echo "${ECHO_T}$ac_header_compiler" >&6; }
10835 # Is the header present?
10836 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10837 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10838 cat >conftest.
$ac_ext <<_ACEOF
10841 cat confdefs.h
>>conftest.
$ac_ext
10842 cat >>conftest.
$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10846 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10847 case "(($ac_try" in
10848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10854 grep -v '^ *+' conftest.er1 >conftest.err
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } >/dev/null && {
10859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10862 ac_header_preproc=yes
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_header_preproc=no
10870 rm -f conftest.err conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10872 echo "${ECHO_T}$ac_header_preproc" >&6; }
10874 # So? What about this header?
10875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10877 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10878 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10880 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10881 ac_header_preproc=yes
10884 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10885 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10887 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10889 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10891 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10893 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10895 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10897 ## ---------------------------------------- ##
10898 ## Report this to pgsql-bugs@postgresql.org ##
10899 ## ---------------------------------------- ##
10901 ) | sed "s/^/$as_me: WARNING: /" >&2
10904 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10905 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10906 if test "${ac_cv_header_zlib_h+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 ac_cv_header_zlib_h=$ac_header_preproc
10911 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10912 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10915 if test $ac_cv_header_zlib_h = yes; then
10918 { { echo "$as_me:$LINENO: error: zlib header not found
10919 If you have zlib already installed, see config.log for details on the
10920 failure. It is possible the compiler isn't looking in the proper directory.
10921 Use --without-zlib to disable zlib support." >&5
10922 echo "$as_me: error: zlib header not found
10923 If you have zlib already installed, see config.log for details on the
10924 failure. It is possible the compiler isn't looking in the proper directory.
10925 Use --without-zlib to disable zlib support." >&2;}
10926 { (exit 1); exit 1; }; }
10932 if test "$with_gssapi" = yes ; then
10934 for ac_header in gssapi/gssapi.h
10936 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 ac_res=`eval echo '${'$as_ac_Header'}'`
10944 { echo "$as_me:$LINENO: result: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10947 # Is the header compilable?
10948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10950 cat >conftest.$ac_ext <<_ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 $ac_includes_default
10957 #include <$ac_header>
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10963 *) ac_try_echo
=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10968 grep -v '^ *+' conftest.er1
>conftest.err
10970 cat conftest.err
>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.
$ac_objext; then
10976 ac_header_compiler
=yes
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.
$ac_ext >&5
10981 ac_header_compiler
=no
10984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10986 echo "${ECHO_T}$ac_header_compiler" >&6; }
10988 # Is the header present?
10989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10991 cat >conftest.
$ac_ext <<_ACEOF
10994 cat confdefs.h
>>conftest.
$ac_ext
10995 cat >>conftest.
$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 #include <$ac_header>
10999 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11000 case "(($ac_try" in
11001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } >/dev/null && {
11012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11015 ac_header_preproc=yes
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 ac_header_preproc=no
11023 rm -f conftest.err conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11025 echo "${ECHO_T}$ac_header_preproc" >&6; }
11027 # So? What about this header?
11028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11034 ac_header_preproc=yes
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11050 ## ---------------------------------------- ##
11051 ## Report this to pgsql-bugs@postgresql.org ##
11052 ## ---------------------------------------- ##
11054 ) | sed "s/^/$as_me: WARNING: /" >&2
11057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 eval "$as_ac_Header=\$ac_header_preproc"
11064 ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066 echo "${ECHO_T}$ac_res" >&6; }
11069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11070 cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11076 for ac_header in gssapi.h
11078 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 ac_res=`eval echo '${'$as_ac_Header'}'`
11086 { echo "$as_me:$LINENO: result: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11089 # Is the header compilable?
11090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11098 $ac_includes_default
11099 #include <$ac_header>
11101 rm -f conftest.$ac_objext
11102 if { (ac_try="$ac_compile"
11103 case "(($ac_try" in
11104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11105 *) ac_try_echo
=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_compile") 2>conftest.er1
11110 grep -v '^ *+' conftest.er1
>conftest.err
11112 cat conftest.err
>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest.
$ac_objext; then
11118 ac_header_compiler
=yes
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.
$ac_ext >&5
11123 ac_header_compiler
=no
11126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11128 echo "${ECHO_T}$ac_header_compiler" >&6; }
11130 # Is the header present?
11131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11133 cat >conftest.
$ac_ext <<_ACEOF
11136 cat confdefs.h
>>conftest.
$ac_ext
11137 cat >>conftest.
$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 #include <$ac_header>
11141 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11142 case "(($ac_try" in
11143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } >/dev/null && {
11154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11157 ac_header_preproc=yes
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 ac_header_preproc=no
11165 rm -f conftest.err conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167 echo "${ECHO_T}$ac_header_preproc" >&6; }
11169 # So? What about this header?
11170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176 ac_header_preproc=yes
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11192 ## ---------------------------------------- ##
11193 ## Report this to pgsql-bugs@postgresql.org ##
11194 ## ---------------------------------------- ##
11196 ) | sed "s/^/$as_me: WARNING: /" >&2
11199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 eval "$as_ac_Header=\$ac_header_preproc"
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207 { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11212 cat >>confdefs.h <<_ACEOF
11213 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11217 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11218 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11219 { (exit 1); exit 1; }; }
11230 if test "$with_krb5" = yes ; then
11231 if test "${ac_cv_header_krb5_h+set}" = set; then
11232 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11233 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11234 if test "${ac_cv_header_krb5_h+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11238 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11240 # Is the header compilable?
11241 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11242 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11256 *) ac_try_echo
=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1
>conftest.err
11263 cat conftest.err
>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.
$ac_objext; then
11269 ac_header_compiler
=yes
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.
$ac_ext >&5
11274 ac_header_compiler
=no
11277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 echo "${ECHO_T}$ac_header_compiler" >&6; }
11281 # Is the header present?
11282 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11283 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11284 cat >conftest.
$ac_ext <<_ACEOF
11287 cat confdefs.h
>>conftest.
$ac_ext
11288 cat >>conftest.
$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11292 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11293 case "(($ac_try" in
11294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11300 grep -v '^ *+' conftest.er1 >conftest.err
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } >/dev/null && {
11305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11306 test ! -s conftest.err
11308 ac_header_preproc=yes
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 ac_header_preproc=no
11316 rm -f conftest.err conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11318 echo "${ECHO_T}$ac_header_preproc" >&6; }
11320 # So? What about this header?
11321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11324 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11326 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11327 ac_header_preproc=yes
11330 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11331 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11333 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11335 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11337 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11339 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11341 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11343 ## ---------------------------------------- ##
11344 ## Report this to pgsql-bugs@postgresql.org ##
11345 ## ---------------------------------------- ##
11347 ) | sed "s/^/$as_me: WARNING: /" >&2
11350 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11351 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11352 if test "${ac_cv_header_krb5_h+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 ac_cv_header_krb5_h=$ac_header_preproc
11357 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11358 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11361 if test $ac_cv_header_krb5_h = yes; then
11364 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11365 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11366 { (exit 1); exit 1; }; }
11372 if test "$with_openssl" = yes ; then
11373 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11374 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11375 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11376 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11380 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11382 # Is the header compilable?
11383 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11384 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 $ac_includes_default
11392 #include <openssl/ssl.h>
11394 rm -f conftest.$ac_objext
11395 if { (ac_try="$ac_compile"
11396 case "(($ac_try" in
11397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11398 *) ac_try_echo
=$ac_try;;
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_compile") 2>conftest.er1
11403 grep -v '^ *+' conftest.er1
>conftest.err
11405 cat conftest.err
>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } && {
11408 test -z "$ac_c_werror_flag" ||
11409 test ! -s conftest.err
11410 } && test -s conftest.
$ac_objext; then
11411 ac_header_compiler
=yes
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.
$ac_ext >&5
11416 ac_header_compiler
=no
11419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11421 echo "${ECHO_T}$ac_header_compiler" >&6; }
11423 # Is the header present?
11424 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11425 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11426 cat >conftest.
$ac_ext <<_ACEOF
11429 cat confdefs.h
>>conftest.
$ac_ext
11430 cat >>conftest.
$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 #include <openssl/ssl.h>
11434 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11435 case "(($ac_try" in
11436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11442 grep -v '^ *+' conftest.er1 >conftest.err
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } >/dev/null && {
11447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11450 ac_header_preproc=yes
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_preproc=no
11458 rm -f conftest.err conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6; }
11462 # So? What about this header?
11463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11465 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11472 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11485 ## ---------------------------------------- ##
11486 ## Report this to pgsql-bugs@postgresql.org ##
11487 ## ---------------------------------------- ##
11489 ) | sed "s/^/$as_me: WARNING: /" >&2
11492 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11493 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11494 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11499 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11500 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11503 if test $ac_cv_header_openssl_ssl_h = yes; then
11506 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11507 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11508 { (exit 1); exit 1; }; }
11512 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11513 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11514 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11515 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11519 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11521 # Is the header compilable?
11522 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11523 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11524 cat >conftest.$ac_ext <<_ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 $ac_includes_default
11531 #include <openssl/err.h>
11533 rm -f conftest.$ac_objext
11534 if { (ac_try="$ac_compile"
11535 case "(($ac_try" in
11536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11537 *) ac_try_echo
=$ac_try;;
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_compile") 2>conftest.er1
11542 grep -v '^ *+' conftest.er1
>conftest.err
11544 cat conftest.err
>&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest.
$ac_objext; then
11550 ac_header_compiler
=yes
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.
$ac_ext >&5
11555 ac_header_compiler
=no
11558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11560 echo "${ECHO_T}$ac_header_compiler" >&6; }
11562 # Is the header present?
11563 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11564 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11565 cat >conftest.
$ac_ext <<_ACEOF
11568 cat confdefs.h
>>conftest.
$ac_ext
11569 cat >>conftest.
$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 #include <openssl/err.h>
11573 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11574 case "(($ac_try" in
11575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11576 *) ac_try_echo=$ac_try;;
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11581 grep -v '^ *+' conftest.er1 >conftest.err
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } >/dev/null && {
11586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11587 test ! -s conftest.err
11589 ac_header_preproc=yes
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 ac_header_preproc=no
11597 rm -f conftest.err conftest.$ac_ext
11598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11599 echo "${ECHO_T}$ac_header_preproc" >&6; }
11601 # So? What about this header?
11602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11604 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11605 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11607 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11608 ac_header_preproc=yes
11611 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11612 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11614 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11616 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11618 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11620 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11622 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11624 ## ---------------------------------------- ##
11625 ## Report this to pgsql-bugs@postgresql.org ##
11626 ## ---------------------------------------- ##
11628 ) | sed "s/^/$as_me: WARNING: /" >&2
11631 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11632 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11633 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 ac_cv_header_openssl_err_h=$ac_header_preproc
11638 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11639 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11642 if test $ac_cv_header_openssl_err_h = yes; then
11645 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11646 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11647 { (exit 1); exit 1; }; }
11652 for ac_func in ERR_set_mark
11654 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11668 #define $ac_func innocuous_$ac_func
11670 /* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char $ac_func (); below.
11672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673 <limits.h> exists even on freestanding compilers. */
11676 # include <limits.h>
11678 # include <assert.h>
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11690 /* The GNU C library defines this for functions which it implements
11691 to always fail with ENOSYS. Some functions are actually named
11692 something starting with __ and the normal name is an alias. */
11693 #if defined __stub_$ac_func || defined __stub___$ac_func
11700 return $ac_func ();
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (ac_try="$ac_link"
11707 case "(($ac_try" in
11708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11709 *) ac_try_echo
=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_link") 2>conftest.er1
11714 grep -v '^ *+' conftest.er1
>conftest.err
11716 cat conftest.err
>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && {
11719 test -z "$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 } && test -s conftest
$ac_exeext &&
11722 $as_test_x conftest
$ac_exeext; then
11723 eval "$as_ac_var=yes"
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.
$ac_ext >&5
11728 eval "$as_ac_var=no"
11731 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11732 conftest
$ac_exeext conftest.
$ac_ext
11734 ac_res
=`eval echo '${'$as_ac_var'}'`
11735 { echo "$as_me:$LINENO: result: $ac_res" >&5
11736 echo "${ECHO_T}$ac_res" >&6; }
11737 if test `eval echo '${'$as_ac_var'}'` = yes; then
11738 cat >>confdefs.h
<<_ACEOF
11739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11747 if test "$with_pam" = yes ; then
11749 for ac_header
in security
/pam_appl.h
11751 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11752 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11755 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 ac_res
=`eval echo '${'$as_ac_Header'}'`
11759 { echo "$as_me:$LINENO: result: $ac_res" >&5
11760 echo "${ECHO_T}$ac_res" >&6; }
11762 # Is the header compilable?
11763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11765 cat >conftest.
$ac_ext <<_ACEOF
11768 cat confdefs.h
>>conftest.
$ac_ext
11769 cat >>conftest.
$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 $ac_includes_default
11772 #include <$ac_header>
11774 rm -f conftest.
$ac_objext
11775 if { (ac_try
="$ac_compile"
11776 case "(($ac_try" in
11777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_compile") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } && {
11788 test -z "$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest.$ac_objext; then
11791 ac_header_compiler=yes
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_header_compiler=no
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11801 echo "${ECHO_T}$ac_header_compiler" >&6; }
11803 # Is the header present?
11804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11806 cat >conftest.$ac_ext <<_ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 #include <$ac_header>
11814 if { (ac_try="$ac_cpp conftest.$ac_ext"
11815 case "(($ac_try" in
11816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11817 *) ac_try_echo
=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11822 grep -v '^ *+' conftest.er1
>conftest.err
11824 cat conftest.err
>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } >/dev
/null
&& {
11827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11830 ac_header_preproc
=yes
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.
$ac_ext >&5
11835 ac_header_preproc
=no
11838 rm -f conftest.err conftest.
$ac_ext
11839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11840 echo "${ECHO_T}$ac_header_preproc" >&6; }
11842 # So? What about this header?
11843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11849 ac_header_preproc
=yes
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11865 ## ---------------------------------------- ##
11866 ## Report this to pgsql-bugs@postgresql.org ##
11867 ## ---------------------------------------- ##
11869 ) |
sed "s/^/$as_me: WARNING: /" >&2
11872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11874 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 eval "$as_ac_Header=\$ac_header_preproc"
11879 ac_res
=`eval echo '${'$as_ac_Header'}'`
11880 { echo "$as_me:$LINENO: result: $ac_res" >&5
11881 echo "${ECHO_T}$ac_res" >&6; }
11884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11885 cat >>confdefs.h
<<_ACEOF
11886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11891 for ac_header
in pam
/pam_appl.h
11893 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11897 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 ac_res
=`eval echo '${'$as_ac_Header'}'`
11901 { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11904 # Is the header compilable?
11905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11907 cat >conftest.
$ac_ext <<_ACEOF
11910 cat confdefs.h
>>conftest.
$ac_ext
11911 cat >>conftest.
$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 $ac_includes_default
11914 #include <$ac_header>
11916 rm -f conftest.
$ac_objext
11917 if { (ac_try
="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_compile") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1 >conftest.err
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest.$ac_objext; then
11933 ac_header_compiler=yes
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11938 ac_header_compiler=no
11941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11943 echo "${ECHO_T}$ac_header_compiler" >&6; }
11945 # Is the header present?
11946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <$ac_header>
11956 if { (ac_try="$ac_cpp conftest.$ac_ext"
11957 case "(($ac_try" in
11958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11959 *) ac_try_echo
=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11964 grep -v '^ *+' conftest.er1
>conftest.err
11966 cat conftest.err
>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } >/dev
/null
&& {
11969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11970 test ! -s conftest.err
11972 ac_header_preproc
=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.
$ac_ext >&5
11977 ac_header_preproc
=no
11980 rm -f conftest.err conftest.
$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982 echo "${ECHO_T}$ac_header_preproc" >&6; }
11984 # So? What about this header?
11985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991 ac_header_preproc
=yes
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12007 ## ---------------------------------------- ##
12008 ## Report this to pgsql-bugs@postgresql.org ##
12009 ## ---------------------------------------- ##
12011 ) |
sed "s/^/$as_me: WARNING: /" >&2
12014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 eval "$as_ac_Header=\$ac_header_preproc"
12021 ac_res
=`eval echo '${'$as_ac_Header'}'`
12022 { echo "$as_me:$LINENO: result: $ac_res" >&5
12023 echo "${ECHO_T}$ac_res" >&6; }
12026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12027 cat >>confdefs.h
<<_ACEOF
12028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12032 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12033 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12034 { (exit 1); exit 1; }; }
12045 if test "$with_libxml" = yes ; then
12046 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12047 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12048 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12049 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12053 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12055 # Is the header compilable?
12056 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12057 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12058 cat >conftest.
$ac_ext <<_ACEOF
12061 cat confdefs.h
>>conftest.
$ac_ext
12062 cat >>conftest.
$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 $ac_includes_default
12065 #include <libxml/parser.h>
12067 rm -f conftest.
$ac_objext
12068 if { (ac_try
="$ac_compile"
12069 case "(($ac_try" in
12070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_compile") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
12084 ac_header_compiler=yes
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 ac_header_compiler=no
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12094 echo "${ECHO_T}$ac_header_compiler" >&6; }
12096 # Is the header present?
12097 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12098 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12099 cat >conftest.$ac_ext <<_ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12105 #include <libxml/parser.h>
12107 if { (ac_try="$ac_cpp conftest.$ac_ext"
12108 case "(($ac_try" in
12109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12110 *) ac_try_echo
=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1
>conftest.err
12117 cat conftest.err
>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } >/dev
/null
&& {
12120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12123 ac_header_preproc
=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.
$ac_ext >&5
12128 ac_header_preproc
=no
12131 rm -f conftest.err conftest.
$ac_ext
12132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12133 echo "${ECHO_T}$ac_header_preproc" >&6; }
12135 # So? What about this header?
12136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12138 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12139 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12141 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12142 ac_header_preproc
=yes
12145 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12146 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12148 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12150 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12152 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12154 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12156 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12158 ## ---------------------------------------- ##
12159 ## Report this to pgsql-bugs@postgresql.org ##
12160 ## ---------------------------------------- ##
12162 ) |
sed "s/^/$as_me: WARNING: /" >&2
12165 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12166 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12167 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 ac_cv_header_libxml_parser_h
=$ac_header_preproc
12172 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12173 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12176 if test $ac_cv_header_libxml_parser_h = yes; then
12179 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12180 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12181 { (exit 1); exit 1; }; }
12187 if test "$with_libxslt" = yes ; then
12188 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12189 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12190 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12191 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12195 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12197 # Is the header compilable?
12198 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12199 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12200 cat >conftest.
$ac_ext <<_ACEOF
12203 cat confdefs.h
>>conftest.
$ac_ext
12204 cat >>conftest.
$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 #include <libxslt/xslt.h>
12209 rm -f conftest.
$ac_objext
12210 if { (ac_try
="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
12226 ac_header_compiler=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_header_compiler=no
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6; }
12238 # Is the header present?
12239 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12240 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <libxslt/xslt.h>
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12252 *) ac_try_echo
=$ac_try;;
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12257 grep -v '^ *+' conftest.er1
>conftest.err
12259 cat conftest.err
>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } >/dev
/null
&& {
12262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12265 ac_header_preproc
=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.
$ac_ext >&5
12270 ac_header_preproc
=no
12273 rm -f conftest.err conftest.
$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275 echo "${ECHO_T}$ac_header_preproc" >&6; }
12277 # So? What about this header?
12278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12281 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12283 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12284 ac_header_preproc
=yes
12287 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12288 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12290 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12292 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12294 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12298 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12300 ## ---------------------------------------- ##
12301 ## Report this to pgsql-bugs@postgresql.org ##
12302 ## ---------------------------------------- ##
12304 ) |
sed "s/^/$as_me: WARNING: /" >&2
12307 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12308 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12309 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
12314 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12315 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12318 if test $ac_cv_header_libxslt_xslt_h = yes; then
12321 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12322 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12323 { (exit 1); exit 1; }; }
12329 if test "$with_ldap" = yes ; then
12330 if test "$PORTNAME" != "win32"; then
12332 for ac_header
in ldap.h
12334 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12335 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12338 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 ac_res
=`eval echo '${'$as_ac_Header'}'`
12342 { echo "$as_me:$LINENO: result: $ac_res" >&5
12343 echo "${ECHO_T}$ac_res" >&6; }
12345 # Is the header compilable?
12346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12348 cat >conftest.
$ac_ext <<_ACEOF
12351 cat confdefs.h
>>conftest.
$ac_ext
12352 cat >>conftest.
$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 $ac_includes_default
12355 #include <$ac_header>
12357 rm -f conftest.
$ac_objext
12358 if { (ac_try
="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
12374 ac_header_compiler=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_header_compiler=no
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384 echo "${ECHO_T}$ac_header_compiler" >&6; }
12386 # Is the header present?
12387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 #include <$ac_header>
12397 if { (ac_try="$ac_cpp conftest.$ac_ext"
12398 case "(($ac_try" in
12399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12400 *) ac_try_echo
=$ac_try;;
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12405 grep -v '^ *+' conftest.er1
>conftest.err
12407 cat conftest.err
>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } >/dev
/null
&& {
12410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12413 ac_header_preproc
=yes
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.
$ac_ext >&5
12418 ac_header_preproc
=no
12421 rm -f conftest.err conftest.
$ac_ext
12422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423 echo "${ECHO_T}$ac_header_preproc" >&6; }
12425 # So? What about this header?
12426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc
=yes
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12448 ## ---------------------------------------- ##
12449 ## Report this to pgsql-bugs@postgresql.org ##
12450 ## ---------------------------------------- ##
12452 ) |
sed "s/^/$as_me: WARNING: /" >&2
12455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12457 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 eval "$as_ac_Header=\$ac_header_preproc"
12462 ac_res
=`eval echo '${'$as_ac_Header'}'`
12463 { echo "$as_me:$LINENO: result: $ac_res" >&5
12464 echo "${ECHO_T}$ac_res" >&6; }
12467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12468 cat >>confdefs.h
<<_ACEOF
12469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12473 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12474 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12475 { (exit 1); exit 1; }; }
12482 for ac_header
in winldap.h
12484 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12487 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 cat >conftest.
$ac_ext <<_ACEOF
12493 cat confdefs.h
>>conftest.
$ac_ext
12494 cat >>conftest.
$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 $ac_includes_default
12497 #include <windows.h>
12500 #include <$ac_header>
12502 rm -f conftest.
$ac_objext
12503 if { (ac_try
="$ac_compile"
12504 case "(($ac_try" in
12505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_compile") 2>conftest.er1
12511 grep -v '^ *+' conftest.er1 >conftest.err
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest.$ac_objext; then
12519 eval "$as_ac_Header=yes"
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 eval "$as_ac_Header=no"
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529 ac_res=`eval echo '${'$as_ac_Header'}'`
12530 { echo "$as_me:$LINENO: result: $ac_res" >&5
12531 echo "${ECHO_T}$ac_res" >&6; }
12532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12533 cat >>confdefs.h <<_ACEOF
12534 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12538 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12539 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12540 { (exit 1); exit 1; }; }
12548 if test "$with_bonjour" = yes ; then
12549 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12550 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12551 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12552 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12556 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12558 # Is the header compilable?
12559 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12560 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 $ac_includes_default
12568 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12570 rm -f conftest.$ac_objext
12571 if { (ac_try="$ac_compile"
12572 case "(($ac_try" in
12573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12574 *) ac_try_echo
=$ac_try;;
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_compile") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1
>conftest.err
12581 cat conftest.err
>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && {
12584 test -z "$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12586 } && test -s conftest.
$ac_objext; then
12587 ac_header_compiler
=yes
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.
$ac_ext >&5
12592 ac_header_compiler
=no
12595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12597 echo "${ECHO_T}$ac_header_compiler" >&6; }
12599 # Is the header present?
12600 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12601 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12602 cat >conftest.
$ac_ext <<_ACEOF
12605 cat confdefs.h
>>conftest.
$ac_ext
12606 cat >>conftest.
$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12610 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12611 case "(($ac_try" in
12612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } >/dev/null && {
12623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12626 ac_header_preproc=yes
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ac_header_preproc=no
12634 rm -f conftest.err conftest.$ac_ext
12635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12636 echo "${ECHO_T}$ac_header_preproc" >&6; }
12638 # So? What about this header?
12639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12641 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12642 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12643 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12644 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12645 ac_header_preproc=yes
12648 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12649 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12651 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12653 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12655 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12657 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12659 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12661 ## ---------------------------------------- ##
12662 ## Report this to pgsql-bugs@postgresql.org ##
12663 ## ---------------------------------------- ##
12665 ) | sed "s/^/$as_me: WARNING: /" >&2
12668 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12669 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12670 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12675 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12676 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12679 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12682 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12683 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12684 { (exit 1); exit 1; }; }
12690 # for contrib/uuid-ossp
12691 if test "$with_ossp_uuid" = yes ; then
12693 for ac_header in ossp/uuid.h
12695 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 ac_res=`eval echo '${'$as_ac_Header'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12706 # Is the header compilable?
12707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12709 cat >conftest.$ac_ext <<_ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12715 $ac_includes_default
12716 #include <$ac_header>
12718 rm -f conftest.$ac_objext
12719 if { (ac_try="$ac_compile"
12720 case "(($ac_try" in
12721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12722 *) ac_try_echo
=$ac_try;;
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725 (eval "$ac_compile") 2>conftest.er1
12727 grep -v '^ *+' conftest.er1
>conftest.err
12729 cat conftest.err
>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } && {
12732 test -z "$ac_c_werror_flag" ||
12733 test ! -s conftest.err
12734 } && test -s conftest.
$ac_objext; then
12735 ac_header_compiler
=yes
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.
$ac_ext >&5
12740 ac_header_compiler
=no
12743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12745 echo "${ECHO_T}$ac_header_compiler" >&6; }
12747 # Is the header present?
12748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12750 cat >conftest.
$ac_ext <<_ACEOF
12753 cat confdefs.h
>>conftest.
$ac_ext
12754 cat >>conftest.
$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 #include <$ac_header>
12758 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12759 case "(($ac_try" in
12760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12766 grep -v '^ *+' conftest.er1 >conftest.err
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } >/dev/null && {
12771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12772 test ! -s conftest.err
12774 ac_header_preproc=yes
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12779 ac_header_preproc=no
12782 rm -f conftest.err conftest.$ac_ext
12783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12784 echo "${ECHO_T}$ac_header_preproc" >&6; }
12786 # So? What about this header?
12787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12793 ac_header_preproc=yes
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12809 ## ---------------------------------------- ##
12810 ## Report this to pgsql-bugs@postgresql.org ##
12811 ## ---------------------------------------- ##
12813 ) | sed "s/^/$as_me: WARNING: /" >&2
12816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 eval "$as_ac_Header=\$ac_header_preproc"
12823 ac_res=`eval echo '${'$as_ac_Header'}'`
12824 { echo "$as_me:$LINENO: result: $ac_res" >&5
12825 echo "${ECHO_T}$ac_res" >&6; }
12828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12829 cat >>confdefs.h <<_ACEOF
12830 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12836 for ac_header in uuid.h
12838 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 ac_res=`eval echo '${'$as_ac_Header'}'`
12846 { echo "$as_me:$LINENO: result: $ac_res" >&5
12847 echo "${ECHO_T}$ac_res" >&6; }
12849 # Is the header compilable?
12850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12858 $ac_includes_default
12859 #include <$ac_header>
12861 rm -f conftest.$ac_objext
12862 if { (ac_try="$ac_compile"
12863 case "(($ac_try" in
12864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12865 *) ac_try_echo
=$ac_try;;
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_compile") 2>conftest.er1
12870 grep -v '^ *+' conftest.er1
>conftest.err
12872 cat conftest.err
>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } && {
12875 test -z "$ac_c_werror_flag" ||
12876 test ! -s conftest.err
12877 } && test -s conftest.
$ac_objext; then
12878 ac_header_compiler
=yes
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.
$ac_ext >&5
12883 ac_header_compiler
=no
12886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12888 echo "${ECHO_T}$ac_header_compiler" >&6; }
12890 # Is the header present?
12891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12893 cat >conftest.
$ac_ext <<_ACEOF
12896 cat confdefs.h
>>conftest.
$ac_ext
12897 cat >>conftest.
$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 #include <$ac_header>
12901 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12902 case "(($ac_try" in
12903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12909 grep -v '^ *+' conftest.er1 >conftest.err
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } >/dev/null && {
12914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12917 ac_header_preproc=yes
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_header_preproc=no
12925 rm -f conftest.err conftest.$ac_ext
12926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12927 echo "${ECHO_T}$ac_header_preproc" >&6; }
12929 # So? What about this header?
12930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12936 ac_header_preproc=yes
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12952 ## ---------------------------------------- ##
12953 ## Report this to pgsql-bugs@postgresql.org ##
12954 ## ---------------------------------------- ##
12956 ) | sed "s/^/$as_me: WARNING: /" >&2
12959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 eval "$as_ac_Header=\$ac_header_preproc"
12966 ac_res=`eval echo '${'$as_ac_Header'}'`
12967 { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12972 cat >>confdefs.h <<_ACEOF
12973 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12977 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12978 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12979 { (exit 1); exit 1; }; }
12992 ## Types, structures, compiler characteristics
12995 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12996 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12997 if test "${ac_cv_c_bigendian+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 # See if sys/param.h defines the BYTE_ORDER macro.
13001 cat >conftest.$ac_ext <<_ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 #include <sys/types.h>
13008 #include <sys/param.h>
13013 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13014 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13015 bogus endian macros
13022 rm -f conftest.$ac_objext
13023 if { (ac_try="$ac_compile"
13024 case "(($ac_try" in
13025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13026 *) ac_try_echo
=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_compile") 2>conftest.er1
13031 grep -v '^ *+' conftest.er1
>conftest.err
13033 cat conftest.err
>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } && {
13036 test -z "$ac_c_werror_flag" ||
13037 test ! -s conftest.err
13038 } && test -s conftest.
$ac_objext; then
13039 # It does; now see whether it defined to BIG_ENDIAN or not.
13040 cat >conftest.
$ac_ext <<_ACEOF
13043 cat confdefs.h
>>conftest.
$ac_ext
13044 cat >>conftest.
$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 #include <sys/types.h>
13047 #include <sys/param.h>
13052 #if BYTE_ORDER != BIG_ENDIAN
13060 rm -f conftest.
$ac_objext
13061 if { (ac_try
="$ac_compile"
13062 case "(($ac_try" in
13063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_compile") 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } && {
13074 test -z "$ac_c_werror_flag" ||
13075 test ! -s conftest.err
13076 } && test -s conftest.$ac_objext; then
13077 ac_cv_c_bigendian=yes
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_cv_c_bigendian=no
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 # It does not; compile a test program.
13091 if test "$cross_compiling" = yes; then
13092 # try to guess the endianness by grepping values into an object file
13093 ac_cv_c_bigendian=unknown
13094 cat >conftest.$ac_ext <<_ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13101 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13102 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13103 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13104 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13105 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13109 _ascii (); _ebcdic ();
13114 rm -f conftest.$ac_objext
13115 if { (ac_try="$ac_compile"
13116 case "(($ac_try" in
13117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13118 *) ac_try_echo
=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_compile") 2>conftest.er1
13123 grep -v '^ *+' conftest.er1
>conftest.err
13125 cat conftest.err
>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && {
13128 test -z "$ac_c_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest.
$ac_objext; then
13131 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13132 ac_cv_c_bigendian
=yes
13134 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13135 if test "$ac_cv_c_bigendian" = unknown
; then
13136 ac_cv_c_bigendian
=no
13138 # finding both strings is unlikely to happen, but who knows?
13139 ac_cv_c_bigendian
=unknown
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.
$ac_ext >&5
13149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13151 cat >conftest.
$ac_ext <<_ACEOF
13154 cat confdefs.h
>>conftest.
$ac_ext
13155 cat >>conftest.
$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13162 /* Are we little or big endian? From Harbison&Steele. */
13166 char c[sizeof (long int)];
13169 return u.c[sizeof (long int) - 1] == 1;
13175 rm -f conftest
$ac_exeext
13176 if { (ac_try
="$ac_link"
13177 case "(($ac_try" in
13178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_link") 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13188 *) ac_try_echo
=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_cv_c_bigendian
=no
13197 echo "$as_me: program exited with status $ac_status" >&5
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 ( exit $ac_status )
13202 ac_cv_c_bigendian
=yes
13204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13212 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13213 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13214 case $ac_cv_c_bigendian in
13217 cat >>confdefs.h
<<\_ACEOF
13218 #define WORDS_BIGENDIAN 1
13224 { { echo "$as_me:$LINENO: error: unknown endianness
13225 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13226 echo "$as_me: error: unknown endianness
13227 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13228 { (exit 1); exit 1; }; } ;;
13231 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13233 if test "${ac_cv_c_const+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 cat >conftest.
$ac_ext <<_ACEOF
13239 cat confdefs.h
>>conftest.
$ac_ext
13240 cat >>conftest.
$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13246 /* FIXME: Include the comments suggested by Paul. */
13247 #ifndef __cplusplus
13248 /* Ultrix mips cc rejects this. */
13249 typedef int charset[2];
13251 /* SunOS 4.1.1 cc rejects this. */
13252 char const *const *pcpcc;
13254 /* NEC SVR4.0.2 mips cc rejects this. */
13255 struct point {int x, y;};
13256 static struct point const zero = {0,0};
13257 /* AIX XL C 1.02.0.0 rejects this.
13258 It does not let you subtract one const X* pointer from another in
13259 an arm of an if-expression whose if-part is not a constant
13261 const char *g = "string";
13262 pcpcc = &g + (g ? g-g : 0);
13263 /* HPUX 7.0 cc rejects these. */
13265 ppc = (char**) pcpcc;
13266 pcpcc = (char const *const *) ppc;
13267 { /* SCO 3.2v4 cc rejects this. */
13269 char const *s = 0 ? (char *) 0 : (char const *) 0;
13274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13275 int x[] = {25, 17};
13276 const int *foo = &x[0];
13279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13280 typedef const int *iptr;
13284 { /* AIX XL C 1.02.0.0 rejects this saying
13285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13286 struct s { int j; const int *ap[3]; };
13287 struct s *b; b->j = 5;
13289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13290 const int foo = 10;
13291 if (!foo) return 0;
13293 return !cs[0] && !zero.x;
13300 rm -f conftest.
$ac_objext
13301 if { (ac_try
="$ac_compile"
13302 case "(($ac_try" in
13303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_compile") 2>conftest.er1
13309 grep -v '^ *+' conftest.er1 >conftest.err
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest.$ac_objext; then
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13327 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13328 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13329 if test $ac_cv_c_const = no; then
13331 cat >>confdefs.h <<\_ACEOF
13337 { echo "$as_me:$LINENO: checking for inline" >&5
13338 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13339 if test "${ac_cv_c_inline+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 for ac_kw in inline __inline__ __inline; do
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 #ifndef __cplusplus
13352 static $ac_kw foo_t static_foo () {return 0; }
13353 $ac_kw foo_t foo () {return 0; }
13357 rm -f conftest.$ac_objext
13358 if { (ac_try="$ac_compile"
13359 case "(($ac_try" in
13360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13361 *) ac_try_echo
=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_compile") 2>conftest.er1
13366 grep -v '^ *+' conftest.er1
>conftest.err
13368 cat conftest.err
>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } && {
13371 test -z "$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13373 } && test -s conftest.
$ac_objext; then
13374 ac_cv_c_inline
=$ac_kw
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.
$ac_ext >&5
13382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13383 test "$ac_cv_c_inline" != no
&& break
13387 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13388 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13391 case $ac_cv_c_inline in
13394 case $ac_cv_c_inline in
13396 *) ac_val
=$ac_cv_c_inline;;
13398 cat >>confdefs.h
<<_ACEOF
13399 #ifndef __cplusplus
13400 #define inline $ac_val
13406 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13407 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13408 if test "${ac_cv_c_stringize+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 cat >conftest.
$ac_ext <<_ACEOF
13414 cat confdefs.h
>>conftest.
$ac_ext
13415 cat >>conftest.
$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13419 char *s = x(teststring);
13421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13422 $EGREP "#teststring" >/dev
/null
2>&1; then
13423 ac_cv_c_stringize
=no
13425 ac_cv_c_stringize
=yes
13430 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13431 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13432 if test $ac_cv_c_stringize = yes; then
13434 cat >>confdefs.h
<<\_ACEOF
13435 #define HAVE_STRINGIZE 1
13440 { echo "$as_me:$LINENO: checking for signed types" >&5
13441 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13442 if test "${pgac_cv_c_signed+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 cat >conftest.
$ac_ext <<_ACEOF
13448 cat confdefs.h
>>conftest.
$ac_ext
13449 cat >>conftest.
$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13455 signed char c; signed short s; signed int i;
13460 rm -f conftest.
$ac_objext
13461 if { (ac_try
="$ac_compile"
13462 case "(($ac_try" in
13463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_compile") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_c_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest.$ac_objext; then
13477 pgac_cv_c_signed=yes
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 pgac_cv_c_signed=no
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13487 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13488 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13489 if test x"$pgac_cv_c_signed" = xno ; then
13491 cat >>confdefs.h <<\_ACEOF
13496 { echo "$as_me:$LINENO: checking for working volatile" >&5
13497 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13498 if test "${ac_cv_c_volatile+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 cat >conftest.$ac_ext <<_ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13513 int * volatile y = (int *) 0;
13519 rm -f conftest.$ac_objext
13520 if { (ac_try="$ac_compile"
13521 case "(($ac_try" in
13522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13523 *) ac_try_echo
=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_compile") 2>conftest.er1
13528 grep -v '^ *+' conftest.er1
>conftest.err
13530 cat conftest.err
>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } && {
13533 test -z "$ac_c_werror_flag" ||
13534 test ! -s conftest.err
13535 } && test -s conftest.
$ac_objext; then
13536 ac_cv_c_volatile
=yes
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.
$ac_ext >&5
13541 ac_cv_c_volatile
=no
13544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13546 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13547 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13548 if test $ac_cv_c_volatile = no
; then
13550 cat >>confdefs.h
<<\_ACEOF
13556 { echo "$as_me:$LINENO: checking for __func__" >&5
13557 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13558 if test "${pgac_cv_funcname_func_support+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 cat >conftest.
$ac_ext <<_ACEOF
13564 cat confdefs.h
>>conftest.
$ac_ext
13565 cat >>conftest.
$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13571 printf("%s\n", __func__);
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 pgac_cv_funcname_func_support=yes
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 pgac_cv_funcname_func_support=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13604 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13605 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13607 cat >>confdefs.h <<\_ACEOF
13608 #define HAVE_FUNCNAME__FUNC 1
13612 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13613 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13614 if test "${pgac_cv_funcname_function_support+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13627 printf("%s\n", __FUNCTION__);
13632 rm -f conftest.$ac_objext
13633 if { (ac_try="$ac_compile"
13634 case "(($ac_try" in
13635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13636 *) ac_try_echo
=$ac_try;;
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compile") 2>conftest.er1
13641 grep -v '^ *+' conftest.er1
>conftest.err
13643 cat conftest.err
>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && {
13646 test -z "$ac_c_werror_flag" ||
13647 test ! -s conftest.err
13648 } && test -s conftest.
$ac_objext; then
13649 pgac_cv_funcname_function_support
=yes
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.
$ac_ext >&5
13654 pgac_cv_funcname_function_support
=no
13657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13659 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13660 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13661 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
13663 cat >>confdefs.h
<<\_ACEOF
13664 #define HAVE_FUNCNAME__FUNCTION 1
13669 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13670 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13671 if test "${ac_cv_struct_tm+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 cat >conftest.
$ac_ext <<_ACEOF
13677 cat confdefs.h
>>conftest.
$ac_ext
13678 cat >>conftest.
$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 #include <sys/types.h>
13687 int *p = &tm.tm_sec;
13693 rm -f conftest.
$ac_objext
13694 if { (ac_try
="$ac_compile"
13695 case "(($ac_try" in
13696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_compile") 2>conftest.er1
13702 grep -v '^ *+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest.$ac_objext; then
13710 ac_cv_struct_tm=time.h
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ac_cv_struct_tm=sys/time.h
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13721 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13722 if test $ac_cv_struct_tm = sys/time.h; then
13724 cat >>confdefs.h <<\_ACEOF
13725 #define TM_IN_SYS_TIME 1
13730 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13731 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13732 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 cat >conftest.$ac_ext <<_ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13741 #include <sys/types.h>
13742 #include <$ac_cv_struct_tm>
13748 static struct tm ac_aggr;
13749 if (ac_aggr.tm_zone)
13755 rm -f conftest.$ac_objext
13756 if { (ac_try="$ac_compile"
13757 case "(($ac_try" in
13758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13759 *) ac_try_echo
=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_compile") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1
>conftest.err
13766 cat conftest.err
>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest.
$ac_objext; then
13772 ac_cv_member_struct_tm_tm_zone
=yes
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.
$ac_ext >&5
13777 cat >conftest.
$ac_ext <<_ACEOF
13780 cat confdefs.h
>>conftest.
$ac_ext
13781 cat >>conftest.
$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 #include <sys/types.h>
13784 #include <$ac_cv_struct_tm>
13790 static struct tm ac_aggr;
13791 if (sizeof ac_aggr.tm_zone)
13797 rm -f conftest.
$ac_objext
13798 if { (ac_try
="$ac_compile"
13799 case "(($ac_try" in
13800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_compile") 2>conftest.er1
13806 grep -v '^ *+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest.$ac_objext; then
13814 ac_cv_member_struct_tm_tm_zone=yes
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 ac_cv_member_struct_tm_tm_zone=no
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13828 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13829 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_STRUCT_TM_TM_ZONE 1
13838 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_TM_ZONE 1
13845 { echo "$as_me:$LINENO: checking for tzname" >&5
13846 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13847 if test "${ac_cv_var_tzname+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 cat >conftest.$ac_ext <<_ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13857 #ifndef tzname /* For SGI. */
13858 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13873 *) ac_try_echo
=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13878 grep -v '^ *+' conftest.er1
>conftest.err
13880 cat conftest.err
>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest
$ac_exeext &&
13886 $as_test_x conftest
$ac_exeext; then
13887 ac_cv_var_tzname
=yes
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.
$ac_ext >&5
13892 ac_cv_var_tzname
=no
13895 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13896 conftest
$ac_exeext conftest.
$ac_ext
13898 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13899 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13900 if test $ac_cv_var_tzname = yes; then
13902 cat >>confdefs.h
<<\_ACEOF
13903 #define HAVE_TZNAME 1
13908 { echo "$as_me:$LINENO: checking for union semun" >&5
13909 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13910 if test "${ac_cv_type_union_semun+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 cat >conftest.
$ac_ext <<_ACEOF
13916 cat confdefs.h
>>conftest.
$ac_ext
13917 cat >>conftest.
$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 #include <sys/types.h>
13920 #include <sys/ipc.h>
13921 #include <sys/sem.h>
13923 typedef union semun ac__type_new_;
13927 if ((ac__type_new_ *) 0)
13929 if (sizeof (ac__type_new_))
13935 rm -f conftest.
$ac_objext
13936 if { (ac_try
="$ac_compile"
13937 case "(($ac_try" in
13938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_compile") 2>conftest.er1
13944 grep -v '^ *+' conftest.er1 >conftest.err
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest.$ac_objext; then
13952 ac_cv_type_union_semun=yes
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13957 ac_cv_type_union_semun=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13963 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13964 if test $ac_cv_type_union_semun = yes; then
13966 cat >>confdefs.h <<_ACEOF
13967 #define HAVE_UNION_SEMUN 1
13973 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13974 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13975 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <sys/types.h>
13985 #ifdef HAVE_SYS_UN_H
13986 #include <sys/un.h>
13990 typedef struct sockaddr_un ac__type_new_;
13994 if ((ac__type_new_ *) 0)
13996 if (sizeof (ac__type_new_))
14002 rm -f conftest.$ac_objext
14003 if { (ac_try="$ac_compile"
14004 case "(($ac_try" in
14005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14006 *) ac_try_echo
=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_compile") 2>conftest.er1
14011 grep -v '^ *+' conftest.er1
>conftest.err
14013 cat conftest.err
>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } && {
14016 test -z "$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14018 } && test -s conftest.
$ac_objext; then
14019 ac_cv_type_struct_sockaddr_un
=yes
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.
$ac_ext >&5
14024 ac_cv_type_struct_sockaddr_un
=no
14027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14029 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14030 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14031 if test $ac_cv_type_struct_sockaddr_un = yes; then
14033 cat >>confdefs.h
<<_ACEOF
14034 #define HAVE_STRUCT_SOCKADDR_UN 1
14038 cat >>confdefs.h
<<\_ACEOF
14039 #define HAVE_UNIX_SOCKETS 1
14044 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14045 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14046 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 cat >conftest.
$ac_ext <<_ACEOF
14052 cat confdefs.h
>>conftest.
$ac_ext
14053 cat >>conftest.
$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 #include <sys/types.h>
14056 #ifdef HAVE_SYS_SOCKET_H
14057 #include <sys/socket.h>
14061 typedef struct sockaddr_storage ac__type_new_;
14065 if ((ac__type_new_ *) 0)
14067 if (sizeof (ac__type_new_))
14073 rm -f conftest.
$ac_objext
14074 if { (ac_try
="$ac_compile"
14075 case "(($ac_try" in
14076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_compile") 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && {
14087 test -z "$ac_c_werror_flag" ||
14088 test ! -s conftest.err
14089 } && test -s conftest.$ac_objext; then
14090 ac_cv_type_struct_sockaddr_storage=yes
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 ac_cv_type_struct_sockaddr_storage=no
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14101 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14102 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14111 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14112 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14113 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 cat >conftest.$ac_ext <<_ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 #include <sys/types.h>
14123 #ifdef HAVE_SYS_SOCKET_H
14124 #include <sys/socket.h>
14131 static struct sockaddr_storage ac_aggr;
14132 if (ac_aggr.ss_family)
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14142 *) ac_try_echo
=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1
>conftest.err
14149 cat conftest.err
>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest.
$ac_objext; then
14155 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.
$ac_ext >&5
14160 cat >conftest.
$ac_ext <<_ACEOF
14163 cat confdefs.h
>>conftest.
$ac_ext
14164 cat >>conftest.
$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 #include <sys/types.h>
14167 #ifdef HAVE_SYS_SOCKET_H
14168 #include <sys/socket.h>
14175 static struct sockaddr_storage ac_aggr;
14176 if (sizeof ac_aggr.ss_family)
14182 rm -f conftest.
$ac_objext
14183 if { (ac_try
="$ac_compile"
14184 case "(($ac_try" in
14185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14199 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_cv_member_struct_sockaddr_storage_ss_family=no
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14212 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14213 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14214 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14216 cat >>confdefs.h <<_ACEOF
14217 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14222 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14223 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14224 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <sys/types.h>
14234 #ifdef HAVE_SYS_SOCKET_H
14235 #include <sys/socket.h>
14242 static struct sockaddr_storage ac_aggr;
14243 if (ac_aggr.__ss_family)
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14253 *) ac_try_echo
=$ac_try;;
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_compile") 2>conftest.er1
14258 grep -v '^ *+' conftest.er1
>conftest.err
14260 cat conftest.err
>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && {
14263 test -z "$ac_c_werror_flag" ||
14264 test ! -s conftest.err
14265 } && test -s conftest.
$ac_objext; then
14266 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.
$ac_ext >&5
14271 cat >conftest.
$ac_ext <<_ACEOF
14274 cat confdefs.h
>>conftest.
$ac_ext
14275 cat >>conftest.
$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 #include <sys/types.h>
14278 #ifdef HAVE_SYS_SOCKET_H
14279 #include <sys/socket.h>
14286 static struct sockaddr_storage ac_aggr;
14287 if (sizeof ac_aggr.__ss_family)
14293 rm -f conftest.
$ac_objext
14294 if { (ac_try
="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
14310 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_cv_member_struct_sockaddr_storage___ss_family=no
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14324 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14325 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14333 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14334 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14335 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <sys/types.h>
14345 #ifdef HAVE_SYS_SOCKET_H
14346 #include <sys/socket.h>
14353 static struct sockaddr_storage ac_aggr;
14354 if (ac_aggr.ss_len)
14360 rm -f conftest.$ac_objext
14361 if { (ac_try="$ac_compile"
14362 case "(($ac_try" in
14363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14364 *) ac_try_echo
=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_compile") 2>conftest.er1
14369 grep -v '^ *+' conftest.er1
>conftest.err
14371 cat conftest.err
>&5
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && {
14374 test -z "$ac_c_werror_flag" ||
14375 test ! -s conftest.err
14376 } && test -s conftest.
$ac_objext; then
14377 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.
$ac_ext >&5
14382 cat >conftest.
$ac_ext <<_ACEOF
14385 cat confdefs.h
>>conftest.
$ac_ext
14386 cat >>conftest.
$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388 #include <sys/types.h>
14389 #ifdef HAVE_SYS_SOCKET_H
14390 #include <sys/socket.h>
14397 static struct sockaddr_storage ac_aggr;
14398 if (sizeof ac_aggr.ss_len)
14404 rm -f conftest.
$ac_objext
14405 if { (ac_try
="$ac_compile"
14406 case "(($ac_try" in
14407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_compile") 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } && {
14418 test -z "$ac_c_werror_flag" ||
14419 test ! -s conftest.err
14420 } && test -s conftest.$ac_objext; then
14421 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_member_struct_sockaddr_storage_ss_len=no
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14434 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14435 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14436 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14438 cat >>confdefs.h <<_ACEOF
14439 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14444 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14445 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14446 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <sys/types.h>
14456 #ifdef HAVE_SYS_SOCKET_H
14457 #include <sys/socket.h>
14464 static struct sockaddr_storage ac_aggr;
14465 if (ac_aggr.__ss_len)
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14475 *) ac_try_echo
=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14480 grep -v '^ *+' conftest.er1
>conftest.err
14482 cat conftest.err
>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest.
$ac_objext; then
14488 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.
$ac_ext >&5
14493 cat >conftest.
$ac_ext <<_ACEOF
14496 cat confdefs.h
>>conftest.
$ac_ext
14497 cat >>conftest.
$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14499 #include <sys/types.h>
14500 #ifdef HAVE_SYS_SOCKET_H
14501 #include <sys/socket.h>
14508 static struct sockaddr_storage ac_aggr;
14509 if (sizeof ac_aggr.__ss_len)
14515 rm -f conftest.
$ac_objext
14516 if { (ac_try
="$ac_compile"
14517 case "(($ac_try" in
14518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_compile") 2>conftest.er1
14524 grep -v '^ *+' conftest.er1 >conftest.err
14526 cat conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && {
14529 test -z "$ac_c_werror_flag" ||
14530 test ! -s conftest.err
14531 } && test -s conftest.$ac_objext; then
14532 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14534 echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14537 ac_cv_member_struct_sockaddr_storage___ss_len=no
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14545 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14546 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14547 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14555 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14556 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14557 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <sys/types.h>
14567 #ifdef HAVE_SYS_SOCKET_H
14568 #include <sys/socket.h>
14575 static struct sockaddr ac_aggr;
14576 if (ac_aggr.sa_len)
14582 rm -f conftest.$ac_objext
14583 if { (ac_try="$ac_compile"
14584 case "(($ac_try" in
14585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14586 *) ac_try_echo
=$ac_try;;
14588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14589 (eval "$ac_compile") 2>conftest.er1
14591 grep -v '^ *+' conftest.er1
>conftest.err
14593 cat conftest.err
>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && {
14596 test -z "$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 } && test -s conftest.
$ac_objext; then
14599 ac_cv_member_struct_sockaddr_sa_len
=yes
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.
$ac_ext >&5
14604 cat >conftest.
$ac_ext <<_ACEOF
14607 cat confdefs.h
>>conftest.
$ac_ext
14608 cat >>conftest.
$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 #include <sys/types.h>
14611 #ifdef HAVE_SYS_SOCKET_H
14612 #include <sys/socket.h>
14619 static struct sockaddr ac_aggr;
14620 if (sizeof ac_aggr.sa_len)
14626 rm -f conftest.
$ac_objext
14627 if { (ac_try
="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest.$ac_objext; then
14643 ac_cv_member_struct_sockaddr_sa_len=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_cv_member_struct_sockaddr_sa_len=no
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14657 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14658 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14660 cat >>confdefs.h <<_ACEOF
14661 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14667 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14668 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14669 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <sys/types.h>
14679 #include <sys/socket.h>
14683 typedef struct addrinfo ac__type_new_;
14687 if ((ac__type_new_ *) 0)
14689 if (sizeof (ac__type_new_))
14695 rm -f conftest.$ac_objext
14696 if { (ac_try="$ac_compile"
14697 case "(($ac_try" in
14698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14699 *) ac_try_echo
=$ac_try;;
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_compile") 2>conftest.er1
14704 grep -v '^ *+' conftest.er1
>conftest.err
14706 cat conftest.err
>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && {
14709 test -z "$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14711 } && test -s conftest.
$ac_objext; then
14712 ac_cv_type_struct_addrinfo
=yes
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.
$ac_ext >&5
14717 ac_cv_type_struct_addrinfo
=no
14720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14723 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14724 if test $ac_cv_type_struct_addrinfo = yes; then
14726 cat >>confdefs.h
<<_ACEOF
14727 #define HAVE_STRUCT_ADDRINFO 1
14734 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14735 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14736 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 cat >conftest.
$ac_ext <<_ACEOF
14742 cat confdefs.h
>>conftest.
$ac_ext
14743 cat >>conftest.
$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 #include <sys/param.h>
14746 #include <sys/types.h>
14747 #include <sys/socket.h>
14748 #include <sys/ucred.h>
14750 typedef struct cmsgcred ac__type_new_;
14754 if ((ac__type_new_ *) 0)
14756 if (sizeof (ac__type_new_))
14762 rm -f conftest.
$ac_objext
14763 if { (ac_try
="$ac_compile"
14764 case "(($ac_try" in
14765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769 (eval "$ac_compile") 2>conftest.er1
14771 grep -v '^ *+' conftest.er1 >conftest.err
14773 cat conftest.err >&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } && {
14776 test -z "$ac_c_werror_flag" ||
14777 test ! -s conftest.err
14778 } && test -s conftest.$ac_objext; then
14779 ac_cv_type_struct_cmsgcred=yes
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_cv_type_struct_cmsgcred=no
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14789 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14790 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14791 if test $ac_cv_type_struct_cmsgcred = yes; then
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_STRUCT_CMSGCRED 1
14799 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14800 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14801 if test "${ac_cv_type_struct_fcred+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 #include <sys/param.h>
14811 #include <sys/types.h>
14812 #include <sys/socket.h>
14813 #include <sys/ucred.h>
14815 typedef struct fcred ac__type_new_;
14819 if ((ac__type_new_ *) 0)
14821 if (sizeof (ac__type_new_))
14827 rm -f conftest.$ac_objext
14828 if { (ac_try="$ac_compile"
14829 case "(($ac_try" in
14830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14831 *) ac_try_echo
=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_compile") 2>conftest.er1
14836 grep -v '^ *+' conftest.er1
>conftest.err
14838 cat conftest.err
>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } && {
14841 test -z "$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 } && test -s conftest.
$ac_objext; then
14844 ac_cv_type_struct_fcred
=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.
$ac_ext >&5
14849 ac_cv_type_struct_fcred
=no
14852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14855 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14856 if test $ac_cv_type_struct_fcred = yes; then
14858 cat >>confdefs.h
<<_ACEOF
14859 #define HAVE_STRUCT_FCRED 1
14864 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14865 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14866 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14869 cat >conftest.
$ac_ext <<_ACEOF
14872 cat confdefs.h
>>conftest.
$ac_ext
14873 cat >>conftest.
$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 #include <sys/param.h>
14876 #include <sys/types.h>
14877 #include <sys/socket.h>
14878 #include <sys/ucred.h>
14880 typedef struct sockcred ac__type_new_;
14884 if ((ac__type_new_ *) 0)
14886 if (sizeof (ac__type_new_))
14892 rm -f conftest.
$ac_objext
14893 if { (ac_try
="$ac_compile"
14894 case "(($ac_try" in
14895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_compile") 2>conftest.er1
14901 grep -v '^ *+' conftest.er1 >conftest.err
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest.$ac_objext; then
14909 ac_cv_type_struct_sockcred=yes
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_cv_type_struct_sockcred=no
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14920 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14921 if test $ac_cv_type_struct_sockcred = yes; then
14923 cat >>confdefs.h <<_ACEOF
14924 #define HAVE_STRUCT_SOCKCRED 1
14931 { echo "$as_me:$LINENO: checking for struct option" >&5
14932 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14933 if test "${ac_cv_type_struct_option+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 #ifdef HAVE_GETOPT_H
14943 #include <getopt.h>
14946 typedef struct option ac__type_new_;
14950 if ((ac__type_new_ *) 0)
14952 if (sizeof (ac__type_new_))
14958 rm -f conftest.$ac_objext
14959 if { (ac_try="$ac_compile"
14960 case "(($ac_try" in
14961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14962 *) ac_try_echo
=$ac_try;;
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14967 grep -v '^ *+' conftest.er1
>conftest.err
14969 cat conftest.err
>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest.
$ac_objext; then
14975 ac_cv_type_struct_option
=yes
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.
$ac_ext >&5
14980 ac_cv_type_struct_option
=no
14983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14985 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14986 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14987 if test $ac_cv_type_struct_option = yes; then
14989 cat >>confdefs.h
<<_ACEOF
14990 #define HAVE_STRUCT_OPTION 1
14997 if test "$with_zlib" = yes; then
14998 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14999 # did not). While we could work around the lack of z_streamp, it
15000 # seems unwise to encourage people to use such old zlib versions...
15001 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15002 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15003 if test "${ac_cv_type_z_streamp+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 cat >conftest.
$ac_ext <<_ACEOF
15009 cat confdefs.h
>>conftest.
$ac_ext
15010 cat >>conftest.
$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15014 typedef z_streamp ac__type_new_;
15018 if ((ac__type_new_ *) 0)
15020 if (sizeof (ac__type_new_))
15026 rm -f conftest.
$ac_objext
15027 if { (ac_try
="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.$ac_objext; then
15043 ac_cv_type_z_streamp=yes
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ac_cv_type_z_streamp=no
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15054 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15055 if test $ac_cv_type_z_streamp = yes; then
15058 { { echo "$as_me:$LINENO: error: zlib version is too old
15059 Use --without-zlib to disable zlib support." >&5
15060 echo "$as_me: error: zlib version is too old
15061 Use --without-zlib to disable zlib support." >&2;}
15062 { (exit 1); exit 1; }; }
15067 if test "$with_krb5" = yes; then
15068 # Check for differences between MIT and Heimdal (KTH) releases
15069 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15070 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15071 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 cat >conftest.$ac_ext <<_ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15085 static krb5_ticket ac_aggr;
15086 if (ac_aggr.enc_part2)
15092 rm -f conftest.$ac_objext
15093 if { (ac_try="$ac_compile"
15094 case "(($ac_try" in
15095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15096 *) ac_try_echo
=$ac_try;;
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099 (eval "$ac_compile") 2>conftest.er1
15101 grep -v '^ *+' conftest.er1
>conftest.err
15103 cat conftest.err
>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } && {
15106 test -z "$ac_c_werror_flag" ||
15107 test ! -s conftest.err
15108 } && test -s conftest.
$ac_objext; then
15109 ac_cv_member_krb5_ticket_enc_part2
=yes
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.
$ac_ext >&5
15114 cat >conftest.
$ac_ext <<_ACEOF
15117 cat confdefs.h
>>conftest.
$ac_ext
15118 cat >>conftest.
$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15125 static krb5_ticket ac_aggr;
15126 if (sizeof ac_aggr.enc_part2)
15132 rm -f conftest.
$ac_objext
15133 if { (ac_try
="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 ac_cv_member_krb5_ticket_enc_part2=yes
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_cv_member_krb5_ticket_enc_part2=no
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15163 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15164 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15166 cat >>confdefs.h <<_ACEOF
15167 #define HAVE_KRB5_TICKET_ENC_PART2 1
15172 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15173 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15174 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15188 static krb5_ticket ac_aggr;
15189 if (ac_aggr.client)
15195 rm -f conftest.$ac_objext
15196 if { (ac_try="$ac_compile"
15197 case "(($ac_try" in
15198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15199 *) ac_try_echo
=$ac_try;;
15201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_compile") 2>conftest.er1
15204 grep -v '^ *+' conftest.er1
>conftest.err
15206 cat conftest.err
>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } && {
15209 test -z "$ac_c_werror_flag" ||
15210 test ! -s conftest.err
15211 } && test -s conftest.
$ac_objext; then
15212 ac_cv_member_krb5_ticket_client
=yes
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.
$ac_ext >&5
15217 cat >conftest.
$ac_ext <<_ACEOF
15220 cat confdefs.h
>>conftest.
$ac_ext
15221 cat >>conftest.
$ac_ext <<_ACEOF
15222 /* end confdefs.h. */
15228 static krb5_ticket ac_aggr;
15229 if (sizeof ac_aggr.client)
15235 rm -f conftest.
$ac_objext
15236 if { (ac_try
="$ac_compile"
15237 case "(($ac_try" in
15238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_compile") 2>conftest.er1
15244 grep -v '^ *+' conftest.er1 >conftest.err
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } && {
15249 test -z "$ac_c_werror_flag" ||
15250 test ! -s conftest.err
15251 } && test -s conftest.$ac_objext; then
15252 ac_cv_member_krb5_ticket_client=yes
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 ac_cv_member_krb5_ticket_client=no
15260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15266 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15267 if test $ac_cv_member_krb5_ticket_client = yes; then
15269 cat >>confdefs.h <<_ACEOF
15270 #define HAVE_KRB5_TICKET_CLIENT 1
15275 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15276 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15277 { (exit 1); exit 1; }; }
15282 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15283 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15284 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15298 static krb5_error ac_aggr;
15299 if (ac_aggr.text.data)
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15309 *) ac_try_echo
=$ac_try;;
15311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15312 (eval "$ac_compile") 2>conftest.er1
15314 grep -v '^ *+' conftest.er1
>conftest.err
15316 cat conftest.err
>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } && {
15319 test -z "$ac_c_werror_flag" ||
15320 test ! -s conftest.err
15321 } && test -s conftest.
$ac_objext; then
15322 ac_cv_member_krb5_error_text_data
=yes
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.
$ac_ext >&5
15327 cat >conftest.
$ac_ext <<_ACEOF
15330 cat confdefs.h
>>conftest.
$ac_ext
15331 cat >>conftest.
$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15338 static krb5_error ac_aggr;
15339 if (sizeof ac_aggr.text.data)
15345 rm -f conftest.
$ac_objext
15346 if { (ac_try
="$ac_compile"
15347 case "(($ac_try" in
15348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_compile") 2>conftest.er1
15354 grep -v '^ *+' conftest.er1 >conftest.err
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } && {
15359 test -z "$ac_c_werror_flag" ||
15360 test ! -s conftest.err
15361 } && test -s conftest.$ac_objext; then
15362 ac_cv_member_krb5_error_text_data=yes
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_cv_member_krb5_error_text_data=no
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15376 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15377 if test $ac_cv_member_krb5_error_text_data = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15385 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15386 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15387 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15401 static krb5_error ac_aggr;
15402 if (ac_aggr.e_data)
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_member_krb5_error_e_data
=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.
$ac_ext >&5
15430 cat >conftest.
$ac_ext <<_ACEOF
15433 cat confdefs.h
>>conftest.
$ac_ext
15434 cat >>conftest.
$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15441 static krb5_error ac_aggr;
15442 if (sizeof ac_aggr.e_data)
15448 rm -f conftest.
$ac_objext
15449 if { (ac_try
="$ac_compile"
15450 case "(($ac_try" in
15451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_compile") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } && {
15462 test -z "$ac_c_werror_flag" ||
15463 test ! -s conftest.err
15464 } && test -s conftest.$ac_objext; then
15465 ac_cv_member_krb5_error_e_data=yes
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_cv_member_krb5_error_e_data=no
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15478 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15479 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15480 if test $ac_cv_member_krb5_error_e_data = yes; then
15482 cat >>confdefs.h <<_ACEOF
15483 #define HAVE_KRB5_ERROR_E_DATA 1
15488 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15489 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15490 { (exit 1); exit 1; }; }
15496 # Win32 requires headers to be loaded for __stdcall, so can't use
15497 # AC_CHECK_FUNCS here.
15498 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15499 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15500 cat >conftest.$ac_ext <<_ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15510 krb5_free_unparsed_name(NULL,NULL);
15515 rm -f conftest.$ac_objext conftest$ac_exeext
15516 if { (ac_try="$ac_link"
15517 case "(($ac_try" in
15518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15519 *) ac_try_echo
=$ac_try;;
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_link") 2>conftest.er1
15524 grep -v '^ *+' conftest.er1
>conftest.err
15526 cat conftest.err
>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } && {
15529 test -z "$ac_c_werror_flag" ||
15530 test ! -s conftest.err
15531 } && test -s conftest
$ac_exeext &&
15532 $as_test_x conftest
$ac_exeext; then
15534 cat >>confdefs.h
<<\_ACEOF
15535 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15538 { echo "$as_me:$LINENO: result: yes" >&5
15539 echo "${ECHO_T}yes" >&6; }
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.
$ac_ext >&5
15544 { echo "$as_me:$LINENO: result: no" >&5
15545 echo "${ECHO_T}no" >&6; }
15548 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15549 conftest
$ac_exeext conftest.
$ac_ext
15554 ## Functions, global variables
15557 { echo "$as_me:$LINENO: checking for int timezone" >&5
15558 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15559 if test "${pgac_cv_var_int_timezone+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 cat >conftest.
$ac_ext <<_ACEOF
15565 cat confdefs.h
>>conftest.
$ac_ext
15566 cat >>conftest.
$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15574 res = timezone / 60;
15576 res = _timezone / 60;
15582 rm -f conftest.
$ac_objext conftest
$ac_exeext
15583 if { (ac_try
="$ac_link"
15584 case "(($ac_try" in
15585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_link") 2>conftest.er1
15591 grep -v '^ *+' conftest.er1 >conftest.err
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } && {
15596 test -z "$ac_c_werror_flag" ||
15597 test ! -s conftest.err
15598 } && test -s conftest$ac_exeext &&
15599 $as_test_x conftest$ac_exeext; then
15600 pgac_cv_var_int_timezone=yes
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15605 pgac_cv_var_int_timezone=no
15608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15609 conftest$ac_exeext conftest.$ac_ext
15611 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15612 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15613 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15615 cat >>confdefs.h <<\_ACEOF
15616 #define HAVE_INT_TIMEZONE
15620 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15621 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15622 if test "${ac_cv_func_accept_return+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 if test "${ac_cv_func_accept_arg1+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 if test "${ac_cv_func_accept_arg2+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 if test "${ac_cv_func_accept_arg3+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15635 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15636 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15637 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #ifdef HAVE_SYS_TYPES_H
15645 #include <sys/types.h>
15647 #ifdef HAVE_SYS_SOCKET_H
15648 #include <sys/socket.h>
15650 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15659 rm -f conftest.$ac_objext
15660 if { (ac_try="$ac_compile"
15661 case "(($ac_try" in
15662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15663 *) ac_try_echo
=$ac_try;;
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_compile") 2>conftest.er1
15668 grep -v '^ *+' conftest.er1
>conftest.err
15670 cat conftest.err
>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest.
$ac_objext; then
15676 ac_not_found
=no
; break 4
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.
$ac_ext >&5
15684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15689 if test "$ac_not_found" = yes; then
15690 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15691 echo "$as_me: error: could not determine argument types" >&2;}
15692 { (exit 1); exit 1; }; }
15694 if test "$ac_cv_func_accept_arg3" = "void"; then
15695 ac_cv_func_accept_arg3
=int
15705 { 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
15706 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15708 cat >>confdefs.h
<<_ACEOF
15709 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15713 cat >>confdefs.h
<<_ACEOF
15714 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15718 cat >>confdefs.h
<<_ACEOF
15719 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15723 cat >>confdefs.h
<<_ACEOF
15724 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15728 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15729 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15730 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 cat >conftest.
$ac_ext <<_ACEOF
15736 cat confdefs.h
>>conftest.
$ac_ext
15737 cat >>conftest.
$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <sys/time.h>
15743 struct timeval *tp;
15744 struct timezone *tzp;
15745 gettimeofday(tp,tzp);
15750 rm -f conftest.
$ac_objext
15751 if { (ac_try
="$ac_compile"
15752 case "(($ac_try" in
15753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_compile") 2>conftest.er1
15759 grep -v '^ *+' conftest.er1 >conftest.err
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest.$ac_objext; then
15767 pgac_cv_func_gettimeofday_1arg=no
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 pgac_cv_func_gettimeofday_1arg=yes
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15777 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15778 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15779 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15781 cat >>confdefs.h <<\_ACEOF
15782 #define GETTIMEOFDAY_1ARG
15810 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15812 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 cat >conftest.$ac_ext <<_ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826 #define $ac_func innocuous_$ac_func
15828 /* System header to define __stub macros and hopefully few prototypes,
15829 which can conflict with char $ac_func (); below.
15830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831 <limits.h> exists even on freestanding compilers. */
15834 # include <limits.h>
15836 # include <assert.h>
15841 /* Override any GCC internal prototype to avoid an error.
15842 Use char because int might match the return type of a GCC
15843 builtin and then its argument prototype would still apply. */
15848 /* The GNU C library defines this for functions which it implements
15849 to always fail with ENOSYS. Some functions are actually named
15850 something starting with __ and the normal name is an alias. */
15851 #if defined __stub_$ac_func || defined __stub___$ac_func
15858 return $ac_func ();
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (ac_try="$ac_link"
15865 case "(($ac_try" in
15866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15867 *) ac_try_echo
=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_link") 2>conftest.er1
15872 grep -v '^ *+' conftest.er1
>conftest.err
15874 cat conftest.err
>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && {
15877 test -z "$ac_c_werror_flag" ||
15878 test ! -s conftest.err
15879 } && test -s conftest
$ac_exeext &&
15880 $as_test_x conftest
$ac_exeext; then
15881 eval "$as_ac_var=yes"
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.
$ac_ext >&5
15886 eval "$as_ac_var=no"
15889 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15890 conftest
$ac_exeext conftest.
$ac_ext
15892 ac_res
=`eval echo '${'$as_ac_var'}'`
15893 { echo "$as_me:$LINENO: result: $ac_res" >&5
15894 echo "${ECHO_T}$ac_res" >&6; }
15895 if test `eval echo '${'$as_ac_var'}'` = yes; then
15896 cat >>confdefs.h
<<_ACEOF
15897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15904 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15905 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15906 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 cat >conftest.
$ac_ext <<_ACEOF
15912 cat confdefs.h
>>conftest.
$ac_ext
15913 cat >>conftest.
$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 #include <unistd.h>
15928 rm -f conftest.
$ac_objext
15929 if { (ac_try
="$ac_compile"
15930 case "(($ac_try" in
15931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_compile") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest.$ac_objext; then
15945 ac_cv_have_decl_fdatasync=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ac_cv_have_decl_fdatasync=no
15953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15956 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15957 if test $ac_cv_have_decl_fdatasync = yes; then
15959 cat >>confdefs.h <<_ACEOF
15960 #define HAVE_DECL_FDATASYNC 1
15965 cat >>confdefs.h <<_ACEOF
15966 #define HAVE_DECL_FDATASYNC 0
15973 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15974 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15975 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15989 #ifndef posix_fadvise
15990 (void) posix_fadvise;
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16001 *) ac_try_echo
=$ac_try;;
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_compile") 2>conftest.er1
16006 grep -v '^ *+' conftest.er1
>conftest.err
16008 cat conftest.err
>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } && {
16011 test -z "$ac_c_werror_flag" ||
16012 test ! -s conftest.err
16013 } && test -s conftest.
$ac_objext; then
16014 ac_cv_have_decl_posix_fadvise
=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.
$ac_ext >&5
16019 ac_cv_have_decl_posix_fadvise
=no
16022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16024 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16025 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16026 if test $ac_cv_have_decl_posix_fadvise = yes; then
16028 cat >>confdefs.h
<<_ACEOF
16029 #define HAVE_DECL_POSIX_FADVISE 1
16034 cat >>confdefs.h
<<_ACEOF
16035 #define HAVE_DECL_POSIX_FADVISE 0
16042 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16043 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16044 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 cat >conftest.
$ac_ext <<_ACEOF
16050 cat confdefs.h
>>conftest.
$ac_ext
16051 cat >>conftest.
$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16065 rm -f conftest.
$ac_objext
16066 if { (ac_try
="$ac_compile"
16067 case "(($ac_try" in
16068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_compile") 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } && {
16079 test -z "$ac_c_werror_flag" ||
16080 test ! -s conftest.err
16081 } && test -s conftest.$ac_objext; then
16082 ac_cv_have_decl_strlcat=yes
16084 echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16087 ac_cv_have_decl_strlcat=no
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16093 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16094 if test $ac_cv_have_decl_strlcat = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_DECL_STRLCAT 1
16102 cat >>confdefs.h <<_ACEOF
16103 #define HAVE_DECL_STRLCAT 0
16108 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16109 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16110 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16111 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 $ac_includes_default
16131 rm -f conftest.$ac_objext
16132 if { (ac_try="$ac_compile"
16133 case "(($ac_try" in
16134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16135 *) ac_try_echo
=$ac_try;;
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_compile") 2>conftest.er1
16140 grep -v '^ *+' conftest.er1
>conftest.err
16142 cat conftest.err
>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } && {
16145 test -z "$ac_c_werror_flag" ||
16146 test ! -s conftest.err
16147 } && test -s conftest.
$ac_objext; then
16148 ac_cv_have_decl_strlcpy
=yes
16150 echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.
$ac_ext >&5
16153 ac_cv_have_decl_strlcpy
=no
16156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16158 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16159 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16160 if test $ac_cv_have_decl_strlcpy = yes; then
16162 cat >>confdefs.h
<<_ACEOF
16163 #define HAVE_DECL_STRLCPY 1
16168 cat >>confdefs.h
<<_ACEOF
16169 #define HAVE_DECL_STRLCPY 0
16176 # This is probably only present on Darwin, but may as well check always
16177 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16178 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16179 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 cat >conftest.
$ac_ext <<_ACEOF
16185 cat confdefs.h
>>conftest.
$ac_ext
16186 cat >>conftest.
$ac_ext <<_ACEOF
16187 /* end confdefs.h. */
16193 #ifndef F_FULLFSYNC
16194 (void) F_FULLFSYNC;
16201 rm -f conftest.
$ac_objext
16202 if { (ac_try
="$ac_compile"
16203 case "(($ac_try" in
16204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_compile") 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 } && test -s conftest.$ac_objext; then
16218 ac_cv_have_decl_F_FULLFSYNC=yes
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_cv_have_decl_F_FULLFSYNC=no
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16229 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16230 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_DECL_F_FULLFSYNC 1
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_DECL_F_FULLFSYNC 0
16248 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16249 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16250 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 #include <netinet/in.h>
16262 typedef struct sockaddr_in6 ac__type_new_;
16266 if ((ac__type_new_ *) 0)
16268 if (sizeof (ac__type_new_))
16274 rm -f conftest.$ac_objext
16275 if { (ac_try="$ac_compile"
16276 case "(($ac_try" in
16277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16278 *) ac_try_echo
=$ac_try;;
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_compile") 2>conftest.er1
16283 grep -v '^ *+' conftest.er1
>conftest.err
16285 cat conftest.err
>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_c_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest.
$ac_objext; then
16291 ac_cv_type_struct_sockaddr_in6
=yes
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.
$ac_ext >&5
16296 ac_cv_type_struct_sockaddr_in6
=no
16299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16301 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16302 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16303 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16305 cat >>confdefs.h
<<\_ACEOF
16306 #define HAVE_IPV6 1
16314 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16315 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16316 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 cat >conftest.
$ac_ext <<_ACEOF
16322 cat confdefs.h
>>conftest.
$ac_ext
16323 cat >>conftest.
$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <machine/vmparam.h>
16326 #include <sys/exec.h>
16331 PS_STRINGS->ps_nargvstr = 1;
16332 PS_STRINGS->ps_argvstr = "foo";
16337 rm -f conftest.
$ac_objext conftest
$ac_exeext
16338 if { (ac_try
="$ac_link"
16339 case "(($ac_try" in
16340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_link") 2>conftest.er1
16346 grep -v '^ *+' conftest.er1 >conftest.err
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } && {
16351 test -z "$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 } && test -s conftest$ac_exeext &&
16354 $as_test_x conftest$ac_exeext; then
16355 pgac_cv_var_PS_STRINGS=yes
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 pgac_cv_var_PS_STRINGS=no
16363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16364 conftest$ac_exeext conftest.$ac_ext
16366 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16367 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16368 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_PS_STRINGS
16377 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16378 # is missing. Yes, there are machines that have only one. We may
16379 # also decide to use snprintf.c if snprintf() is present but does not
16380 # have all the features we need --- see below.
16382 if test "$PORTNAME" = "win32"; then
16383 # Win32 gets snprintf.c built unconditionally.
16385 # To properly translate all NLS languages strings, we must support the
16386 # *printf() %$ format, which allows *printf() arguments to be selected
16387 # by position in the translated string.
16389 # libintl versions < 0.13 use the native *printf() functions, and Win32
16390 # *printf() doesn't understand %$, so we must use our /port versions,
16391 # which do understand %$. libintl versions >= 0.13 include their own
16392 # *printf versions on Win32. The libintl 0.13 release note text is:
16394 # C format strings with positions, as they arise when a translator
16395 # needs to reorder a sentence, are now supported on all platforms.
16396 # On those few platforms (NetBSD and Woe32) for which the native
16397 # printf()/fprintf()/... functions don't support such format
16398 # strings, replacements are provided through <libintl.h>.
16400 # We could use libintl >= 0.13's *printf() if we were sure that we had
16401 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16402 # to guarantee that, it is best to just use our own, so we are sure to
16403 # get %$ support. In include/port.h we disable the *printf() macros
16404 # that might have been defined by libintl.
16406 # We do this unconditionally whether NLS is used or not so we are sure
16407 # that all Win32 libraries and binaries behave the same.
16408 pgac_need_repl_snprintf=yes
16410 pgac_need_repl_snprintf=no
16412 for ac_func in snprintf
16414 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16420 cat >conftest.$ac_ext <<_ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16428 #define $ac_func innocuous_$ac_func
16430 /* System header to define __stub macros and hopefully few prototypes,
16431 which can conflict with char $ac_func (); below.
16432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16433 <limits.h> exists even on freestanding compilers. */
16436 # include <limits.h>
16438 # include <assert.h>
16443 /* Override any GCC internal prototype to avoid an error.
16444 Use char because int might match the return type of a GCC
16445 builtin and then its argument prototype would still apply. */
16450 /* The GNU C library defines this for functions which it implements
16451 to always fail with ENOSYS. Some functions are actually named
16452 something starting with __ and the normal name is an alias. */
16453 #if defined __stub_$ac_func || defined __stub___$ac_func
16460 return $ac_func ();
16465 rm -f conftest.$ac_objext conftest$ac_exeext
16466 if { (ac_try="$ac_link"
16467 case "(($ac_try" in
16468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16469 *) ac_try_echo
=$ac_try;;
16471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16472 (eval "$ac_link") 2>conftest.er1
16474 grep -v '^ *+' conftest.er1
>conftest.err
16476 cat conftest.err
>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && {
16479 test -z "$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 } && test -s conftest
$ac_exeext &&
16482 $as_test_x conftest
$ac_exeext; then
16483 eval "$as_ac_var=yes"
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.
$ac_ext >&5
16488 eval "$as_ac_var=no"
16491 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16492 conftest
$ac_exeext conftest.
$ac_ext
16494 ac_res
=`eval echo '${'$as_ac_var'}'`
16495 { echo "$as_me:$LINENO: result: $ac_res" >&5
16496 echo "${ECHO_T}$ac_res" >&6; }
16497 if test `eval echo '${'$as_ac_var'}'` = yes; then
16498 cat >>confdefs.h
<<_ACEOF
16499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16503 pgac_need_repl_snprintf
=yes
16508 for ac_func
in vsnprintf
16510 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16513 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 cat >conftest.
$ac_ext <<_ACEOF
16519 cat confdefs.h
>>conftest.
$ac_ext
16520 cat >>conftest.
$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16524 #define $ac_func innocuous_$ac_func
16526 /* System header to define __stub macros and hopefully few prototypes,
16527 which can conflict with char $ac_func (); below.
16528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16529 <limits.h> exists even on freestanding compilers. */
16532 # include <limits.h>
16534 # include <assert.h>
16539 /* Override any GCC internal prototype to avoid an error.
16540 Use char because int might match the return type of a GCC
16541 builtin and then its argument prototype would still apply. */
16546 /* The GNU C library defines this for functions which it implements
16547 to always fail with ENOSYS. Some functions are actually named
16548 something starting with __ and the normal name is an alias. */
16549 #if defined __stub_$ac_func || defined __stub___$ac_func
16556 return $ac_func ();
16561 rm -f conftest.
$ac_objext conftest
$ac_exeext
16562 if { (ac_try
="$ac_link"
16563 case "(($ac_try" in
16564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_link") 2>conftest.er1
16570 grep -v '^ *+' conftest.er1 >conftest.err
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && {
16575 test -z "$ac_c_werror_flag" ||
16576 test ! -s conftest.err
16577 } && test -s conftest$ac_exeext &&
16578 $as_test_x conftest$ac_exeext; then
16579 eval "$as_ac_var=yes"
16581 echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16584 eval "$as_ac_var=no"
16587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16588 conftest$ac_exeext conftest.$ac_ext
16590 ac_res=`eval echo '${'$as_ac_var'}'`
16591 { echo "$as_me:$LINENO: result: $ac_res" >&5
16592 echo "${ECHO_T}$ac_res" >&6; }
16593 if test `eval echo '${'$as_ac_var'}'` = yes; then
16594 cat >>confdefs.h <<_ACEOF
16595 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16599 pgac_need_repl_snprintf=yes
16606 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16607 # include/c.h will provide declarations. Note this is a separate test
16608 # from whether the functions exist in the C library --- there are
16609 # systems that have the functions but don't bother to declare them :-(
16611 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16612 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16613 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 $ac_includes_default
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16638 *) ac_try_echo
=$ac_try;;
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16643 grep -v '^ *+' conftest.er1
>conftest.err
16645 cat conftest.err
>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && {
16648 test -z "$ac_c_werror_flag" ||
16649 test ! -s conftest.err
16650 } && test -s conftest.
$ac_objext; then
16651 ac_cv_have_decl_snprintf
=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.
$ac_ext >&5
16656 ac_cv_have_decl_snprintf
=no
16659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16662 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16663 if test $ac_cv_have_decl_snprintf = yes; then
16665 cat >>confdefs.h
<<_ACEOF
16666 #define HAVE_DECL_SNPRINTF 1
16671 cat >>confdefs.h
<<_ACEOF
16672 #define HAVE_DECL_SNPRINTF 0
16677 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16678 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16679 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 cat >conftest.
$ac_ext <<_ACEOF
16685 cat confdefs.h
>>conftest.
$ac_ext
16686 cat >>conftest.
$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 $ac_includes_default
16700 rm -f conftest.
$ac_objext
16701 if { (ac_try
="$ac_compile"
16702 case "(($ac_try" in
16703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16704 *) ac_try_echo=$ac_try;;
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707 (eval "$ac_compile") 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } && {
16714 test -z "$ac_c_werror_flag" ||
16715 test ! -s conftest.err
16716 } && test -s conftest.$ac_objext; then
16717 ac_cv_have_decl_vsnprintf=yes
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ac_cv_have_decl_vsnprintf=no
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16728 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16729 if test $ac_cv_have_decl_vsnprintf = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732 #define HAVE_DECL_VSNPRINTF 1
16737 cat >>confdefs.h <<_ACEOF
16738 #define HAVE_DECL_VSNPRINTF 0
16747 { echo "$as_me:$LINENO: checking for isinf" >&5
16748 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16749 if test "${ac_cv_func_isinf+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16760 double glob_double;
16765 return isinf(glob_double) ? 0 : 1;
16770 rm -f conftest.$ac_objext conftest$ac_exeext
16771 if { (ac_try="$ac_link"
16772 case "(($ac_try" in
16773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16774 *) ac_try_echo
=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_link") 2>conftest.er1
16779 grep -v '^ *+' conftest.er1
>conftest.err
16781 cat conftest.err
>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && {
16784 test -z "$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16786 } && test -s conftest
$ac_exeext &&
16787 $as_test_x conftest
$ac_exeext; then
16788 ac_cv_func_isinf
=yes
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.
$ac_ext >&5
16793 ac_cv_func_isinf
=no
16796 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16797 conftest
$ac_exeext conftest.
$ac_ext
16799 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16800 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16802 if test $ac_cv_func_isinf = yes ; then
16804 cat >>confdefs.h
<<\_ACEOF
16805 #define HAVE_ISINF 1
16809 case " $LIBOBJS " in
16810 *" isinf.$ac_objext "* ) ;;
16811 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
16815 # Look for a way to implement a substitute for isinf()
16820 for ac_func
in fpclass fp_class fp_class_d class
16822 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16825 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 cat >conftest.
$ac_ext <<_ACEOF
16831 cat confdefs.h
>>conftest.
$ac_ext
16832 cat >>conftest.
$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16836 #define $ac_func innocuous_$ac_func
16838 /* System header to define __stub macros and hopefully few prototypes,
16839 which can conflict with char $ac_func (); below.
16840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16841 <limits.h> exists even on freestanding compilers. */
16844 # include <limits.h>
16846 # include <assert.h>
16851 /* Override any GCC internal prototype to avoid an error.
16852 Use char because int might match the return type of a GCC
16853 builtin and then its argument prototype would still apply. */
16858 /* The GNU C library defines this for functions which it implements
16859 to always fail with ENOSYS. Some functions are actually named
16860 something starting with __ and the normal name is an alias. */
16861 #if defined __stub_$ac_func || defined __stub___$ac_func
16868 return $ac_func ();
16873 rm -f conftest.
$ac_objext conftest
$ac_exeext
16874 if { (ac_try
="$ac_link"
16875 case "(($ac_try" in
16876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>conftest.er1
16882 grep -v '^ *+' conftest.er1 >conftest.err
16884 cat conftest.err >&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } && {
16887 test -z "$ac_c_werror_flag" ||
16888 test ! -s conftest.err
16889 } && test -s conftest$ac_exeext &&
16890 $as_test_x conftest$ac_exeext; then
16891 eval "$as_ac_var=yes"
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16896 eval "$as_ac_var=no"
16899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16900 conftest$ac_exeext conftest.$ac_ext
16902 ac_res=`eval echo '${'$as_ac_var'}'`
16903 { echo "$as_me:$LINENO: result: $ac_res" >&5
16904 echo "${ECHO_T}$ac_res" >&6; }
16905 if test `eval echo '${'$as_ac_var'}'` = yes; then
16906 cat >>confdefs.h <<_ACEOF
16907 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16915 # Some versions of libedit contain strlcpy(); so disregard that library while
16916 # checking for these standard libc functions.
16917 pgac_save_LIBS="$LIBS"
16918 LIBS=`echo "$LIBS" |
sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16934 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16936 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16950 #define $ac_func innocuous_$ac_func
16952 /* System header to define __stub macros and hopefully few prototypes,
16953 which can conflict with char $ac_func (); below.
16954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16955 <limits.h> exists even on freestanding compilers. */
16958 # include <limits.h>
16960 # include <assert.h>
16965 /* Override any GCC internal prototype to avoid an error.
16966 Use char because int might match the return type of a GCC
16967 builtin and then its argument prototype would still apply. */
16972 /* The GNU C library defines this for functions which it implements
16973 to always fail with ENOSYS. Some functions are actually named
16974 something starting with __ and the normal name is an alias. */
16975 #if defined __stub_$ac_func || defined __stub___$ac_func
16982 return $ac_func ();
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (ac_try="$ac_link"
16989 case "(($ac_try" in
16990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16991 *) ac_try_echo
=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_link") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1
>conftest.err
16998 cat conftest.err
>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && {
17001 test -z "$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 } && test -s conftest
$ac_exeext &&
17004 $as_test_x conftest
$ac_exeext; then
17005 eval "$as_ac_var=yes"
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.
$ac_ext >&5
17010 eval "$as_ac_var=no"
17013 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17014 conftest
$ac_exeext conftest.
$ac_ext
17016 ac_res
=`eval echo '${'$as_ac_var'}'`
17017 { echo "$as_me:$LINENO: result: $ac_res" >&5
17018 echo "${ECHO_T}$ac_res" >&6; }
17019 if test `eval echo '${'$as_ac_var'}'` = yes; then
17020 cat >>confdefs.h
<<_ACEOF
17021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17025 case " $LIBOBJS " in
17026 *" $ac_func.$ac_objext "* ) ;;
17027 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17036 LIBS
="$pgac_save_LIBS"
17038 # System's version of getaddrinfo(), if any, may be used only if we found
17039 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17040 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17041 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17042 # because we want to use our own getaddrinfo.c on Windows anyway.)
17043 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
17045 for ac_func
in getaddrinfo
17047 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17050 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 cat >conftest.
$ac_ext <<_ACEOF
17056 cat confdefs.h
>>conftest.
$ac_ext
17057 cat >>conftest.
$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17061 #define $ac_func innocuous_$ac_func
17063 /* System header to define __stub macros and hopefully few prototypes,
17064 which can conflict with char $ac_func (); below.
17065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17066 <limits.h> exists even on freestanding compilers. */
17069 # include <limits.h>
17071 # include <assert.h>
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17083 /* The GNU C library defines this for functions which it implements
17084 to always fail with ENOSYS. Some functions are actually named
17085 something starting with __ and the normal name is an alias. */
17086 #if defined __stub_$ac_func || defined __stub___$ac_func
17093 return $ac_func ();
17098 rm -f conftest.
$ac_objext conftest
$ac_exeext
17099 if { (ac_try
="$ac_link"
17100 case "(($ac_try" in
17101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_link") 2>conftest.er1
17107 grep -v '^ *+' conftest.er1 >conftest.err
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext &&
17115 $as_test_x conftest$ac_exeext; then
17116 eval "$as_ac_var=yes"
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 eval "$as_ac_var=no"
17124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17125 conftest$ac_exeext conftest.$ac_ext
17127 ac_res=`eval echo '${'$as_ac_var'}'`
17128 { echo "$as_me:$LINENO: result: $ac_res" >&5
17129 echo "${ECHO_T}$ac_res" >&6; }
17130 if test `eval echo '${'$as_ac_var'}'` = yes; then
17131 cat >>confdefs.h <<_ACEOF
17132 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17136 case " $LIBOBJS " in
17137 *" $ac_func.$ac_objext "* ) ;;
17138 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17147 case " $LIBOBJS " in
17148 *" getaddrinfo.$ac_objext "* ) ;;
17149 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17155 # Similarly, use system's getopt_long() only if system provides struct option.
17156 # Solaris' getopt() doesn't do what we want for long options, so always use
17157 # our versions on that platform.
17158 if test "$PORTNAME" = "solaris"; then
17159 case " $LIBOBJS " in
17160 *" getopt.$ac_objext "* ) ;;
17161 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17165 case " $LIBOBJS " in
17166 *" getopt_long.$ac_objext "* ) ;;
17167 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17171 elif test x"$ac_cv_type_struct_option" = xyes ; then
17173 for ac_func in getopt_long
17175 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17189 #define $ac_func innocuous_$ac_func
17191 /* System header to define __stub macros and hopefully few prototypes,
17192 which can conflict with char $ac_func (); below.
17193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17194 <limits.h> exists even on freestanding compilers. */
17197 # include <limits.h>
17199 # include <assert.h>
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17211 /* The GNU C library defines this for functions which it implements
17212 to always fail with ENOSYS. Some functions are actually named
17213 something starting with __ and the normal name is an alias. */
17214 #if defined __stub_$ac_func || defined __stub___$ac_func
17221 return $ac_func ();
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (ac_try="$ac_link"
17228 case "(($ac_try" in
17229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17230 *) ac_try_echo
=$ac_try;;
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_link") 2>conftest.er1
17235 grep -v '^ *+' conftest.er1
>conftest.err
17237 cat conftest.err
>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest
$ac_exeext &&
17243 $as_test_x conftest
$ac_exeext; then
17244 eval "$as_ac_var=yes"
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.
$ac_ext >&5
17249 eval "$as_ac_var=no"
17252 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17253 conftest
$ac_exeext conftest.
$ac_ext
17255 ac_res
=`eval echo '${'$as_ac_var'}'`
17256 { echo "$as_me:$LINENO: result: $ac_res" >&5
17257 echo "${ECHO_T}$ac_res" >&6; }
17258 if test `eval echo '${'$as_ac_var'}'` = yes; then
17259 cat >>confdefs.h
<<_ACEOF
17260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17264 case " $LIBOBJS " in
17265 *" $ac_func.$ac_objext "* ) ;;
17266 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17275 case " $LIBOBJS " in
17276 *" getopt_long.$ac_objext "* ) ;;
17277 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
17284 if test "$PORTNAME" = "win32"; then
17286 for ac_func
in gettimeofday
17288 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17291 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 cat >conftest.
$ac_ext <<_ACEOF
17297 cat confdefs.h
>>conftest.
$ac_ext
17298 cat >>conftest.
$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17302 #define $ac_func innocuous_$ac_func
17304 /* System header to define __stub macros and hopefully few prototypes,
17305 which can conflict with char $ac_func (); below.
17306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307 <limits.h> exists even on freestanding compilers. */
17310 # include <limits.h>
17312 # include <assert.h>
17317 /* Override any GCC internal prototype to avoid an error.
17318 Use char because int might match the return type of a GCC
17319 builtin and then its argument prototype would still apply. */
17324 /* The GNU C library defines this for functions which it implements
17325 to always fail with ENOSYS. Some functions are actually named
17326 something starting with __ and the normal name is an alias. */
17327 #if defined __stub_$ac_func || defined __stub___$ac_func
17334 return $ac_func ();
17339 rm -f conftest.
$ac_objext conftest
$ac_exeext
17340 if { (ac_try
="$ac_link"
17341 case "(($ac_try" in
17342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17348 grep -v '^ *+' conftest.er1 >conftest.err
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } && {
17353 test -z "$ac_c_werror_flag" ||
17354 test ! -s conftest.err
17355 } && test -s conftest$ac_exeext &&
17356 $as_test_x conftest$ac_exeext; then
17357 eval "$as_ac_var=yes"
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 eval "$as_ac_var=no"
17365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17366 conftest$ac_exeext conftest.$ac_ext
17368 ac_res=`eval echo '${'$as_ac_var'}'`
17369 { echo "$as_me:$LINENO: result: $ac_res" >&5
17370 echo "${ECHO_T}$ac_res" >&6; }
17371 if test `eval echo '${'$as_ac_var'}'` = yes; then
17372 cat >>confdefs.h <<_ACEOF
17373 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17377 case " $LIBOBJS " in
17378 *" $ac_func.$ac_objext "* ) ;;
17379 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17387 case " $LIBOBJS " in
17388 *" kill.$ac_objext "* ) ;;
17389 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17393 case " $LIBOBJS " in
17394 *" open.$ac_objext "* ) ;;
17395 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17399 case " $LIBOBJS " in
17400 *" rand.$ac_objext "* ) ;;
17401 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17405 case " $LIBOBJS " in
17406 *" win32error.$ac_objext "* ) ;;
17407 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17412 cat >>confdefs.h <<\_ACEOF
17413 #define HAVE_SYMLINK 1
17418 if test "$with_readline" = yes; then
17419 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17420 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17421 cat >conftest.$ac_ext <<_ACEOF
17424 cat confdefs.h >>conftest.$ac_ext
17425 cat >>conftest.$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17428 #ifdef HAVE_READLINE_READLINE_H
17429 # include <readline/readline.h>
17430 #elif defined(HAVE_READLINE_H)
17431 # include <readline.h>
17437 rl_completion_append_character = 'x';
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17446 *) ac_try_echo
=$ac_try;;
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17451 grep -v '^ *+' conftest.er1
>conftest.err
17453 cat conftest.err
>&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } && {
17456 test -z "$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17458 } && test -s conftest
$ac_exeext &&
17459 $as_test_x conftest
$ac_exeext; then
17460 { echo "$as_me:$LINENO: result: yes" >&5
17461 echo "${ECHO_T}yes" >&6; }
17463 cat >>confdefs.h
<<\_ACEOF
17464 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.
$ac_ext >&5
17471 { echo "$as_me:$LINENO: result: no" >&5
17472 echo "${ECHO_T}no" >&6; }
17475 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17476 conftest
$ac_exeext conftest.
$ac_ext
17479 for ac_func
in rl_completion_matches rl_filename_completion_function
17481 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17484 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17485 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 cat >conftest.
$ac_ext <<_ACEOF
17490 cat confdefs.h
>>conftest.
$ac_ext
17491 cat >>conftest.
$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17495 #define $ac_func innocuous_$ac_func
17497 /* System header to define __stub macros and hopefully few prototypes,
17498 which can conflict with char $ac_func (); below.
17499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 <limits.h> exists even on freestanding compilers. */
17503 # include <limits.h>
17505 # include <assert.h>
17510 /* Override any GCC internal prototype to avoid an error.
17511 Use char because int might match the return type of a GCC
17512 builtin and then its argument prototype would still apply. */
17517 /* The GNU C library defines this for functions which it implements
17518 to always fail with ENOSYS. Some functions are actually named
17519 something starting with __ and the normal name is an alias. */
17520 #if defined __stub_$ac_func || defined __stub___$ac_func
17527 return $ac_func ();
17532 rm -f conftest.
$ac_objext conftest
$ac_exeext
17533 if { (ac_try
="$ac_link"
17534 case "(($ac_try" in
17535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest$ac_exeext &&
17549 $as_test_x conftest$ac_exeext; then
17550 eval "$as_ac_var=yes"
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 eval "$as_ac_var=no"
17558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17559 conftest$ac_exeext conftest.$ac_ext
17561 ac_res=`eval echo '${'$as_ac_var'}'`
17562 { echo "$as_me:$LINENO: result: $ac_res" >&5
17563 echo "${ECHO_T}$ac_res" >&6; }
17564 if test `eval echo '${'$as_ac_var'}'` = yes; then
17565 cat >>confdefs.h <<_ACEOF
17566 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17573 for ac_func in replace_history_entry
17575 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17581 cat >conftest.$ac_ext <<_ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17589 #define $ac_func innocuous_$ac_func
17591 /* System header to define __stub macros and hopefully few prototypes,
17592 which can conflict with char $ac_func (); below.
17593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17594 <limits.h> exists even on freestanding compilers. */
17597 # include <limits.h>
17599 # include <assert.h>
17604 /* Override any GCC internal prototype to avoid an error.
17605 Use char because int might match the return type of a GCC
17606 builtin and then its argument prototype would still apply. */
17611 /* The GNU C library defines this for functions which it implements
17612 to always fail with ENOSYS. Some functions are actually named
17613 something starting with __ and the normal name is an alias. */
17614 #if defined __stub_$ac_func || defined __stub___$ac_func
17621 return $ac_func ();
17626 rm -f conftest.$ac_objext conftest$ac_exeext
17627 if { (ac_try="$ac_link"
17628 case "(($ac_try" in
17629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17630 *) ac_try_echo
=$ac_try;;
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>conftest.er1
17635 grep -v '^ *+' conftest.er1
>conftest.err
17637 cat conftest.err
>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest
$ac_exeext &&
17643 $as_test_x conftest
$ac_exeext; then
17644 eval "$as_ac_var=yes"
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.
$ac_ext >&5
17649 eval "$as_ac_var=no"
17652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17653 conftest
$ac_exeext conftest.
$ac_ext
17655 ac_res
=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h
<<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17669 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17670 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17671 cat >conftest.
$ac_ext <<_ACEOF
17674 cat confdefs.h
>>conftest.
$ac_ext
17675 cat >>conftest.
$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 #include <setjmp.h>
17681 sigjmp_buf x; sigsetjmp(x, 1);
17686 rm -f conftest.
$ac_objext conftest
$ac_exeext
17687 if { (ac_try
="$ac_link"
17688 case "(($ac_try" in
17689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_link") 2>conftest.er1
17695 grep -v '^ *+' conftest.er1 >conftest.err
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } && {
17700 test -z "$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 } && test -s conftest$ac_exeext &&
17703 $as_test_x conftest$ac_exeext; then
17705 cat >>confdefs.h <<\_ACEOF
17706 #define HAVE_SIGSETJMP 1
17709 { echo "$as_me:$LINENO: result: yes" >&5
17710 echo "${ECHO_T}yes" >&6; }
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 { echo "$as_me:$LINENO: result: no" >&5
17716 echo "${ECHO_T}no" >&6; }
17719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17720 conftest$ac_exeext conftest.$ac_ext
17722 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17723 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17724 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 #include <signal.h>
17734 /* NetBSD declares sys_siglist in unistd.h. */
17735 #ifdef HAVE_UNISTD_H
17736 # include <unistd.h>
17743 #ifndef sys_siglist
17744 (void) sys_siglist;
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17755 *) ac_try_echo
=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17760 grep -v '^ *+' conftest.er1
>conftest.err
17762 cat conftest.err
>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest.
$ac_objext; then
17768 ac_cv_have_decl_sys_siglist
=yes
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.
$ac_ext >&5
17773 ac_cv_have_decl_sys_siglist
=no
17776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17778 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17779 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17780 if test $ac_cv_have_decl_sys_siglist = yes; then
17782 cat >>confdefs.h
<<_ACEOF
17783 #define HAVE_DECL_SYS_SIGLIST 1
17788 cat >>confdefs.h
<<_ACEOF
17789 #define HAVE_DECL_SYS_SIGLIST 0
17798 { echo "$as_me:$LINENO: checking for syslog" >&5
17799 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17800 if test "${ac_cv_func_syslog+set}" = set; then
17801 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 cat >conftest.
$ac_ext <<_ACEOF
17806 cat confdefs.h
>>conftest.
$ac_ext
17807 cat >>conftest.
$ac_ext <<_ACEOF
17808 /* end confdefs.h. */
17809 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17811 #define syslog innocuous_syslog
17813 /* System header to define __stub macros and hopefully few prototypes,
17814 which can conflict with char syslog (); below.
17815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17816 <limits.h> exists even on freestanding compilers. */
17819 # include <limits.h>
17821 # include <assert.h>
17826 /* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17833 /* The GNU C library defines this for functions which it implements
17834 to always fail with ENOSYS. Some functions are actually named
17835 something starting with __ and the normal name is an alias. */
17836 #if defined __stub_syslog || defined __stub___syslog
17848 rm -f conftest.
$ac_objext conftest
$ac_exeext
17849 if { (ac_try
="$ac_link"
17850 case "(($ac_try" in
17851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_link") 2>conftest.er1
17857 grep -v '^ *+' conftest.er1 >conftest.err
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } && {
17862 test -z "$ac_c_werror_flag" ||
17863 test ! -s conftest.err
17864 } && test -s conftest$ac_exeext &&
17865 $as_test_x conftest$ac_exeext; then
17866 ac_cv_func_syslog=yes
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 ac_cv_func_syslog=no
17874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17875 conftest$ac_exeext conftest.$ac_ext
17877 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17878 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17879 if test $ac_cv_func_syslog = yes; then
17880 if test "${ac_cv_header_syslog_h+set}" = set; then
17881 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17882 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17883 if test "${ac_cv_header_syslog_h+set}" = set; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17887 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17889 # Is the header compilable?
17890 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17891 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17892 cat >conftest.$ac_ext <<_ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 $ac_includes_default
17899 #include <syslog.h>
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17905 *) ac_try_echo
=$ac_try;;
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17910 grep -v '^ *+' conftest.er1
>conftest.err
17912 cat conftest.err
>&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } && {
17915 test -z "$ac_c_werror_flag" ||
17916 test ! -s conftest.err
17917 } && test -s conftest.
$ac_objext; then
17918 ac_header_compiler
=yes
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.
$ac_ext >&5
17923 ac_header_compiler
=no
17926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17928 echo "${ECHO_T}$ac_header_compiler" >&6; }
17930 # Is the header present?
17931 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17932 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17933 cat >conftest.
$ac_ext <<_ACEOF
17936 cat confdefs.h
>>conftest.
$ac_ext
17937 cat >>conftest.
$ac_ext <<_ACEOF
17938 /* end confdefs.h. */
17939 #include <syslog.h>
17941 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17942 case "(($ac_try" in
17943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17949 grep -v '^ *+' conftest.er1 >conftest.err
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } >/dev/null && {
17954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17955 test ! -s conftest.err
17957 ac_header_preproc=yes
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_header_preproc=no
17965 rm -f conftest.err conftest.$ac_ext
17966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17967 echo "${ECHO_T}$ac_header_preproc" >&6; }
17969 # So? What about this header?
17970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17972 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17973 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17975 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17976 ac_header_preproc=yes
17979 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17980 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17981 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17982 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17984 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17986 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17988 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17990 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17992 ## ---------------------------------------- ##
17993 ## Report this to pgsql-bugs@postgresql.org ##
17994 ## ---------------------------------------- ##
17996 ) | sed "s/^/$as_me: WARNING: /" >&2
17999 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18000 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18001 if test "${ac_cv_header_syslog_h+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 ac_cv_header_syslog_h=$ac_header_preproc
18006 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18007 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18010 if test $ac_cv_header_syslog_h = yes; then
18012 cat >>confdefs.h <<\_ACEOF
18013 #define HAVE_SYSLOG 1
18022 { echo "$as_me:$LINENO: checking for optreset" >&5
18023 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18024 if test "${pgac_cv_var_int_optreset+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 cat >conftest.$ac_ext <<_ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 #include <unistd.h>
18037 extern int optreset; optreset = 1;
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18046 *) ac_try_echo
=$ac_try;;
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_link") 2>conftest.er1
18051 grep -v '^ *+' conftest.er1
>conftest.err
18053 cat conftest.err
>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } && {
18056 test -z "$ac_c_werror_flag" ||
18057 test ! -s conftest.err
18058 } && test -s conftest
$ac_exeext &&
18059 $as_test_x conftest
$ac_exeext; then
18060 pgac_cv_var_int_optreset
=yes
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.
$ac_ext >&5
18065 pgac_cv_var_int_optreset
=no
18068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18069 conftest
$ac_exeext conftest.
$ac_ext
18071 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18072 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18073 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
18075 cat >>confdefs.h
<<\_ACEOF
18076 #define HAVE_INT_OPTRESET 1
18083 for ac_func
in strtoll strtoq
18085 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18088 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 cat >conftest.
$ac_ext <<_ACEOF
18094 cat confdefs.h
>>conftest.
$ac_ext
18095 cat >>conftest.
$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18099 #define $ac_func innocuous_$ac_func
18101 /* System header to define __stub macros and hopefully few prototypes,
18102 which can conflict with char $ac_func (); below.
18103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18104 <limits.h> exists even on freestanding compilers. */
18107 # include <limits.h>
18109 # include <assert.h>
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18121 /* The GNU C library defines this for functions which it implements
18122 to always fail with ENOSYS. Some functions are actually named
18123 something starting with __ and the normal name is an alias. */
18124 #if defined __stub_$ac_func || defined __stub___$ac_func
18131 return $ac_func ();
18136 rm -f conftest.
$ac_objext conftest
$ac_exeext
18137 if { (ac_try
="$ac_link"
18138 case "(($ac_try" in
18139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest$ac_exeext &&
18153 $as_test_x conftest$ac_exeext; then
18154 eval "$as_ac_var=yes"
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 eval "$as_ac_var=no"
18162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18163 conftest$ac_exeext conftest.$ac_ext
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166 { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18178 for ac_func in strtoull strtouq
18180 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 cat >conftest.$ac_ext <<_ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18194 #define $ac_func innocuous_$ac_func
18196 /* System header to define __stub macros and hopefully few prototypes,
18197 which can conflict with char $ac_func (); below.
18198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18199 <limits.h> exists even on freestanding compilers. */
18202 # include <limits.h>
18204 # include <assert.h>
18209 /* Override any GCC internal prototype to avoid an error.
18210 Use char because int might match the return type of a GCC
18211 builtin and then its argument prototype would still apply. */
18216 /* The GNU C library defines this for functions which it implements
18217 to always fail with ENOSYS. Some functions are actually named
18218 something starting with __ and the normal name is an alias. */
18219 #if defined __stub_$ac_func || defined __stub___$ac_func
18226 return $ac_func ();
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18235 *) ac_try_echo
=$ac_try;;
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18240 grep -v '^ *+' conftest.er1
>conftest.err
18242 cat conftest.err
>&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } && {
18245 test -z "$ac_c_werror_flag" ||
18246 test ! -s conftest.err
18247 } && test -s conftest
$ac_exeext &&
18248 $as_test_x conftest
$ac_exeext; then
18249 eval "$as_ac_var=yes"
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.
$ac_ext >&5
18254 eval "$as_ac_var=no"
18257 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18258 conftest
$ac_exeext conftest.
$ac_ext
18260 ac_res
=`eval echo '${'$as_ac_var'}'`
18261 { echo "$as_me:$LINENO: result: $ac_res" >&5
18262 echo "${ECHO_T}$ac_res" >&6; }
18263 if test `eval echo '${'$as_ac_var'}'` = yes; then
18264 cat >>confdefs.h
<<_ACEOF
18265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18272 # Check for one of atexit() or on_exit()
18274 for ac_func
in atexit
18276 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 cat >conftest.
$ac_ext <<_ACEOF
18285 cat confdefs.h
>>conftest.
$ac_ext
18286 cat >>conftest.
$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18290 #define $ac_func innocuous_$ac_func
18292 /* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func (); below.
18294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 <limits.h> exists even on freestanding compilers. */
18298 # include <limits.h>
18300 # include <assert.h>
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18312 /* The GNU C library defines this for functions which it implements
18313 to always fail with ENOSYS. Some functions are actually named
18314 something starting with __ and the normal name is an alias. */
18315 #if defined __stub_$ac_func || defined __stub___$ac_func
18322 return $ac_func ();
18327 rm -f conftest.
$ac_objext conftest
$ac_exeext
18328 if { (ac_try
="$ac_link"
18329 case "(($ac_try" in
18330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_link") 2>conftest.er1
18336 grep -v '^ *+' conftest.er1 >conftest.err
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } && {
18341 test -z "$ac_c_werror_flag" ||
18342 test ! -s conftest.err
18343 } && test -s conftest$ac_exeext &&
18344 $as_test_x conftest$ac_exeext; then
18345 eval "$as_ac_var=yes"
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 eval "$as_ac_var=no"
18353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18354 conftest$ac_exeext conftest.$ac_ext
18356 ac_res=`eval echo '${'$as_ac_var'}'`
18357 { echo "$as_me:$LINENO: result: $ac_res" >&5
18358 echo "${ECHO_T}$ac_res" >&6; }
18359 if test `eval echo '${'$as_ac_var'}'` = yes; then
18360 cat >>confdefs.h <<_ACEOF
18361 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18366 for ac_func in on_exit
18368 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18382 #define $ac_func innocuous_$ac_func
18384 /* System header to define __stub macros and hopefully few prototypes,
18385 which can conflict with char $ac_func (); below.
18386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18387 <limits.h> exists even on freestanding compilers. */
18390 # include <limits.h>
18392 # include <assert.h>
18397 /* Override any GCC internal prototype to avoid an error.
18398 Use char because int might match the return type of a GCC
18399 builtin and then its argument prototype would still apply. */
18404 /* The GNU C library defines this for functions which it implements
18405 to always fail with ENOSYS. Some functions are actually named
18406 something starting with __ and the normal name is an alias. */
18407 #if defined __stub_$ac_func || defined __stub___$ac_func
18414 return $ac_func ();
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18423 *) ac_try_echo
=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_link") 2>conftest.er1
18428 grep -v '^ *+' conftest.er1
>conftest.err
18430 cat conftest.err
>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } && {
18433 test -z "$ac_c_werror_flag" ||
18434 test ! -s conftest.err
18435 } && test -s conftest
$ac_exeext &&
18436 $as_test_x conftest
$ac_exeext; then
18437 eval "$as_ac_var=yes"
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.
$ac_ext >&5
18442 eval "$as_ac_var=no"
18445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18446 conftest
$ac_exeext conftest.
$ac_ext
18448 ac_res
=`eval echo '${'$as_ac_var'}'`
18449 { echo "$as_me:$LINENO: result: $ac_res" >&5
18450 echo "${ECHO_T}$ac_res" >&6; }
18451 if test `eval echo '${'$as_ac_var'}'` = yes; then
18452 cat >>confdefs.h
<<_ACEOF
18453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18458 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18459 { (exit 1); exit 1; }; }
18468 for ac_func
in fseeko
18470 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18473 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 cat >conftest.
$ac_ext <<_ACEOF
18479 cat confdefs.h
>>conftest.
$ac_ext
18480 cat >>conftest.
$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18484 #define $ac_func innocuous_$ac_func
18486 /* System header to define __stub macros and hopefully few prototypes,
18487 which can conflict with char $ac_func (); below.
18488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18489 <limits.h> exists even on freestanding compilers. */
18492 # include <limits.h>
18494 # include <assert.h>
18499 /* Override any GCC internal prototype to avoid an error.
18500 Use char because int might match the return type of a GCC
18501 builtin and then its argument prototype would still apply. */
18506 /* The GNU C library defines this for functions which it implements
18507 to always fail with ENOSYS. Some functions are actually named
18508 something starting with __ and the normal name is an alias. */
18509 #if defined __stub_$ac_func || defined __stub___$ac_func
18516 return $ac_func ();
18521 rm -f conftest.
$ac_objext conftest
$ac_exeext
18522 if { (ac_try
="$ac_link"
18523 case "(($ac_try" in
18524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_link") 2>conftest.er1
18530 grep -v '^ *+' conftest.er1 >conftest.err
18532 cat conftest.err >&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } && {
18535 test -z "$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18537 } && test -s conftest$ac_exeext &&
18538 $as_test_x conftest$ac_exeext; then
18539 eval "$as_ac_var=yes"
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 eval "$as_ac_var=no"
18547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18548 conftest$ac_exeext conftest.$ac_ext
18550 ac_res=`eval echo '${'$as_ac_var'}'`
18551 { echo "$as_me:$LINENO: result: $ac_res" >&5
18552 echo "${ECHO_T}$ac_res" >&6; }
18553 if test `eval echo '${'$as_ac_var'}'` = yes; then
18554 cat >>confdefs.h <<_ACEOF
18555 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18559 case " $LIBOBJS " in
18560 *" $ac_func.$ac_objext "* ) ;;
18561 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18570 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE_FSEEKO 1
18577 ac_cv_func_fseeko=yes;;
18579 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18580 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18581 if test "${ac_cv_sys_largefile_source+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 #include <sys/types.h> /* for off_t */
18596 int (*fp) (FILE *, off_t, int) = fseeko;
18597 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18602 rm -f conftest.$ac_objext conftest$ac_exeext
18603 if { (ac_try="$ac_link"
18604 case "(($ac_try" in
18605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18606 *) ac_try_echo
=$ac_try;;
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_link") 2>conftest.er1
18611 grep -v '^ *+' conftest.er1
>conftest.err
18613 cat conftest.err
>&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } && {
18616 test -z "$ac_c_werror_flag" ||
18617 test ! -s conftest.err
18618 } && test -s conftest
$ac_exeext &&
18619 $as_test_x conftest
$ac_exeext; then
18620 ac_cv_sys_largefile_source
=no
; break
18622 echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.
$ac_ext >&5
18628 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18629 conftest
$ac_exeext conftest.
$ac_ext
18630 cat >conftest.
$ac_ext <<_ACEOF
18633 cat confdefs.h
>>conftest.
$ac_ext
18634 cat >>conftest.
$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 #define _LARGEFILE_SOURCE 1
18637 #include <sys/types.h> /* for off_t */
18642 int (*fp) (FILE *, off_t, int) = fseeko;
18643 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18648 rm -f conftest.
$ac_objext conftest
$ac_exeext
18649 if { (ac_try
="$ac_link"
18650 case "(($ac_try" in
18651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18657 grep -v '^ *+' conftest.er1 >conftest.err
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest$ac_exeext &&
18665 $as_test_x conftest$ac_exeext; then
18666 ac_cv_sys_largefile_source=1; break
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675 conftest$ac_exeext conftest.$ac_ext
18676 ac_cv_sys_largefile_source=unknown
18680 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18681 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18682 case $ac_cv_sys_largefile_source in #(
18685 cat >>confdefs.h <<_ACEOF
18686 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18692 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18693 # in glibc 2.1.3, but that breaks too many other things.
18694 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18695 if test $ac_cv_sys_largefile_source != unknown; then
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE_FSEEKO 1
18709 # For each platform, we need to know about any special compile and link
18710 # libraries, and whether the normal C function names are thread-safe.
18711 # See the comment at the top of src/port/thread.c for more information.
18712 # WIN32 doesn't need the pthread tests; it always uses threads
18713 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18718 ac_cpp='$CPP $CPPFLAGS'
18719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18725 # We used to check for pthread.h first, but this fails if pthread.h
18726 # requires special compiler flags (e.g. on True64 or Sequent).
18727 # It gets checked for in the link test anyway.
18729 # First of all, check if the user has set any of the PTHREAD_LIBS,
18730 # etcetera environment variables, and if threads linking works using
18732 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18733 save_CFLAGS="$CFLAGS"
18734 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18736 LIBS="$PTHREAD_LIBS $LIBS"
18737 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18738 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18752 char pthread_join ();
18756 return pthread_join ();
18761 rm -f conftest.$ac_objext conftest$ac_exeext
18762 if { (ac_try="$ac_link"
18763 case "(($ac_try" in
18764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18765 *) ac_try_echo
=$ac_try;;
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_link") 2>conftest.er1
18770 grep -v '^ *+' conftest.er1
>conftest.err
18772 cat conftest.err
>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } && {
18775 test -z "$ac_c_werror_flag" ||
18776 test ! -s conftest.err
18777 } && test -s conftest
$ac_exeext &&
18778 $as_test_x conftest
$ac_exeext; then
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.
$ac_ext >&5
18787 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18788 conftest
$ac_exeext conftest.
$ac_ext
18789 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18790 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18791 if test x
"$acx_pthread_ok" = xno
; then
18796 CFLAGS
="$save_CFLAGS"
18799 # We must check for the threads library under a number of different
18800 # names; the ordering is very important because some systems
18801 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18802 # libraries is broken (non-POSIX).
18804 # Create a list of thread flags to try. Items starting with a "-" are
18805 # C compiler flags, and other items are library names, except for "none"
18806 # which indicates that we try without any flags at all, and "pthread-config"
18807 # which is a program returning the flags for the Pth emulation library.
18809 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18811 # The ordering *is* (sometimes) important. Some notes on the
18812 # individual items follow:
18814 # pthreads: AIX (must check this before -lpthread)
18815 # none: in case threads are in libc; should be tried before -Kthread and
18816 # other compiler flags to prevent continual compiler warnings
18817 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18818 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18819 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18820 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18821 # -pthreads: Solaris/gcc
18822 # -mthreads: Mingw32/gcc, Lynx/gcc
18823 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18824 # doesn't hurt to check since this sometimes defines pthreads too;
18825 # also defines -D_REENTRANT)
18826 # pthread: Linux, etcetera
18827 # --thread-safe: KAI C++
18828 # pthread-config: use pthread-config program (for GNU Pth library)
18830 case "${host_cpu}-${host_os}" in
18833 # On Solaris (at least, for some versions), libc contains stubbed
18834 # (non-functional) versions of the pthreads routines, so link-based
18835 # tests will erroneously succeed. (We need to link with -pthread or
18836 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18837 # a function called by this macro, so we could check for that, but
18838 # who knows whether they'll stub that too in a future libc.) So,
18839 # we'll just look for -pthreads and -lpthread first:
18841 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
18845 if test x
"$acx_pthread_ok" = xno
; then
18846 for flag
in $acx_pthread_flags; do
18848 tryPTHREAD_CFLAGS
=""
18852 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18853 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18857 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18858 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18859 tryPTHREAD_CFLAGS
="$flag"
18863 # skip this if we already have flags defined, for PostgreSQL
18864 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
18865 # Extract the first word of "pthread-config", so it can be a program name with args.
18866 set dummy pthread-config
; ac_word
=$2
18867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18869 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 if test -n "$acx_pthread_config"; then
18873 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
18875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18876 for as_dir
in $PATH
18879 test -z "$as_dir" && as_dir
=.
18880 for ac_exec_ext
in '' $ac_executable_extensions; do
18881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18882 ac_cv_prog_acx_pthread_config
="yes"
18883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18890 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
18893 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
18894 if test -n "$acx_pthread_config"; then
18895 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18896 echo "${ECHO_T}$acx_pthread_config" >&6; }
18898 { echo "$as_me:$LINENO: result: no" >&5
18899 echo "${ECHO_T}no" >&6; }
18903 if test x
"$acx_pthread_config" = xno
; then continue; fi
18904 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
18905 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
18909 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18910 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18911 tryPTHREAD_LIBS
="-l$flag"
18916 save_CFLAGS
="$CFLAGS"
18917 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18918 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18920 # Check for various functions. We must include pthread.h,
18921 # since some functions may be macros. (On the Sequent, we
18922 # need a special flag -Kthread to make this header compile.)
18923 # We check for pthread_join because it is in -lpthread on IRIX
18924 # while pthread_create is in libc. We check for pthread_attr_init
18925 # due to DEC craziness with -lpthreads. We check for
18926 # pthread_cleanup_push because it is one of the few pthread
18927 # functions on Solaris that doesn't have a non-functional libc stub.
18928 # We try pthread_create on general principles.
18929 cat >conftest.
$ac_ext <<_ACEOF
18932 cat confdefs.h
>>conftest.
$ac_ext
18933 cat >>conftest.
$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 #include <pthread.h>
18939 pthread_t th; pthread_join(th, 0);
18940 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18941 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18946 rm -f conftest.
$ac_objext conftest
$ac_exeext
18947 if { (ac_try
="$ac_link"
18948 case "(($ac_try" in
18949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_link") 2>conftest.er1
18955 grep -v '^ *+' conftest.er1 >conftest.err
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } && {
18960 test -z "$ac_c_werror_flag" ||
18961 test ! -s conftest.err
18962 } && test -s conftest$ac_exeext &&
18963 $as_test_x conftest$ac_exeext; then
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18973 conftest$ac_exeext conftest.$ac_ext
18975 if test "x$acx_pthread_ok" = xyes; then
18976 # Don't use options that are ignored by the compiler.
18977 # We find them by checking stderror.
18978 cat >conftest.$ac_ext <<_ACEOF
18980 main (int argc, char **argv)
18987 rm -f conftest.$ac_objext conftest$ac_exeext
18988 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18989 # we continue with more flags because Linux needs -lpthread
18990 # for libpq builds on PostgreSQL. The test above only
18991 # tests for building binaries, not shared libraries.
18992 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18993 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18994 else acx_pthread_ok=no
18999 CFLAGS="$save_CFLAGS"
19001 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19002 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19006 # Various other checks:
19007 if test "x$acx_pthread_ok" = xyes; then
19009 LIBS="$PTHREAD_LIBS $LIBS"
19010 save_CFLAGS="$CFLAGS"
19011 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19013 # Detect AIX lossage: threads are created detached by default
19014 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19015 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19016 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <pthread.h>
19027 int attr=PTHREAD_CREATE_JOINABLE;
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (ac_try="$ac_link"
19034 case "(($ac_try" in
19035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19036 *) ac_try_echo
=$ac_try;;
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_link") 2>conftest.er1
19041 grep -v '^ *+' conftest.er1
>conftest.err
19043 cat conftest.err
>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } && {
19046 test -z "$ac_c_werror_flag" ||
19047 test ! -s conftest.err
19048 } && test -s conftest
$ac_exeext &&
19049 $as_test_x conftest
$ac_exeext; then
19050 ok
=PTHREAD_CREATE_JOINABLE
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.
$ac_ext >&5
19058 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19059 conftest
$ac_exeext conftest.
$ac_ext
19060 if test x
"$ok" = xunknown
; then
19061 cat >conftest.
$ac_ext <<_ACEOF
19064 cat confdefs.h
>>conftest.
$ac_ext
19065 cat >>conftest.
$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 #include <pthread.h>
19071 int attr=PTHREAD_CREATE_UNDETACHED;
19076 rm -f conftest.
$ac_objext conftest
$ac_exeext
19077 if { (ac_try
="$ac_link"
19078 case "(($ac_try" in
19079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_link") 2>conftest.er1
19085 grep -v '^ *+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } && {
19090 test -z "$ac_c_werror_flag" ||
19091 test ! -s conftest.err
19092 } && test -s conftest$ac_exeext &&
19093 $as_test_x conftest$ac_exeext; then
19094 ok=PTHREAD_CREATE_UNDETACHED
19096 echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19103 conftest$ac_exeext conftest.$ac_ext
19105 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19107 cat >>confdefs.h <<\_ACEOF
19108 #define PTHREAD_CREATE_JOINABLE $ok
19112 { echo "$as_me:$LINENO: result: ${ok}" >&5
19113 echo "${ECHO_T}${ok}" >&6; }
19114 if test x"$ok" = xunknown; then
19115 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19116 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19119 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19120 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19122 # We always add these in PostgreSQL
19123 # case "${host_cpu}-${host_os}" in
19124 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19125 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19127 { echo "$as_me:$LINENO: result: ${flag}" >&5
19128 echo "${ECHO_T}${flag}" >&6; }
19129 if test "x$flag" != xno; then
19130 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19134 CFLAGS="$save_CFLAGS"
19136 # Supporting cc_r would require a special CC in all places that
19137 # use libpq, and that is ugly, so we don't do it. Users can still
19138 # define their compiler as cc_r to do thread builds of everything.
19139 # More AIX lossage: must compile with cc_r
19140 # Extract the first word of "cc_r", so it can be a program name with args.
19141 set dummy cc_r; ac_word=$2
19142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19144 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 if test -n "$PTHREAD_CC"; then
19148 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19151 for as_dir in $PATH
19154 test -z "$as_dir" && as_dir=.
19155 for ac_exec_ext in '' $ac_executable_extensions; do
19156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19157 ac_cv_prog_PTHREAD_CC="cc_r"
19158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19165 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19168 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19169 if test -n "$PTHREAD_CC"; then
19170 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19171 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19173 { echo "$as_me:$LINENO: result: no" >&5
19174 echo "${ECHO_T}no" >&6; }
19186 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19187 if test x"$acx_pthread_ok" = xyes; then
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_PTHREAD 1
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19206 # Some platforms use these, so just define them. They can't hurt if they
19207 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19208 # enables 5-arg getpwuid_r, among other things.
19209 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19212 # At this point, we don't want to muck with the compiler name for threading.
19213 # Let's see who fails, perhaps AIX. 2004-04-23
19214 if test "$PTHREAD_CC" != "$CC"; then
19215 { { echo "$as_me:$LINENO: error:
19216 PostgreSQL does not support platforms that require a special compiler
19217 for thread safety." >&5
19218 echo "$as_me: error:
19219 PostgreSQL does not support platforms that require a special compiler
19220 for thread safety." >&2;}
19221 { (exit 1); exit 1; }; }
19224 if test "$THREAD_SUPPORT" = no; then
19225 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19226 This platform is known to not support thread-safe programs. For details,
19227 compile and run src/bin/pg_thread_test." >&5
19228 echo "$as_me: error: cannot enable threads on this platform
19229 This platform is known to not support thread-safe programs. For details,
19230 compile and run src/bin/pg_thread_test." >&2;}
19231 { (exit 1); exit 1; }; }
19234 # Check for *_r functions
19237 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19238 LIBS="$LIBS $PTHREAD_LIBS"
19240 if test "$PORTNAME" != "win32"; then
19241 if test "${ac_cv_header_pthread_h+set}" = set; then
19242 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19243 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19244 if test "${ac_cv_header_pthread_h+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19248 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19250 # Is the header compilable?
19251 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19252 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19253 cat >conftest.$ac_ext <<_ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 $ac_includes_default
19260 #include <pthread.h>
19262 rm -f conftest.$ac_objext
19263 if { (ac_try="$ac_compile"
19264 case "(($ac_try" in
19265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19266 *) ac_try_echo
=$ac_try;;
19268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_compile") 2>conftest.er1
19271 grep -v '^ *+' conftest.er1
>conftest.err
19273 cat conftest.err
>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } && {
19276 test -z "$ac_c_werror_flag" ||
19277 test ! -s conftest.err
19278 } && test -s conftest.
$ac_objext; then
19279 ac_header_compiler
=yes
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.
$ac_ext >&5
19284 ac_header_compiler
=no
19287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19289 echo "${ECHO_T}$ac_header_compiler" >&6; }
19291 # Is the header present?
19292 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19293 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19294 cat >conftest.
$ac_ext <<_ACEOF
19297 cat confdefs.h
>>conftest.
$ac_ext
19298 cat >>conftest.
$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #include <pthread.h>
19302 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19303 case "(($ac_try" in
19304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19310 grep -v '^ *+' conftest.er1 >conftest.err
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } >/dev/null && {
19315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19316 test ! -s conftest.err
19318 ac_header_preproc=yes
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 ac_header_preproc=no
19326 rm -f conftest.err conftest.$ac_ext
19327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19328 echo "${ECHO_T}$ac_header_preproc" >&6; }
19330 # So? What about this header?
19331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19333 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19334 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19335 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19336 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19337 ac_header_preproc=yes
19340 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19341 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19342 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19343 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19345 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19346 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19347 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19348 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19349 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19350 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19351 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19353 ## ---------------------------------------- ##
19354 ## Report this to pgsql-bugs@postgresql.org ##
19355 ## ---------------------------------------- ##
19357 ) | sed "s/^/$as_me: WARNING: /" >&2
19360 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19361 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19362 if test "${ac_cv_header_pthread_h+set}" = set; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 ac_cv_header_pthread_h=$ac_header_preproc
19367 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19368 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19371 if test $ac_cv_header_pthread_h = yes; then
19374 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19375 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19376 { (exit 1); exit 1; }; }
19385 for ac_func in strerror_r getpwuid_r gethostbyname_r
19387 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19401 #define $ac_func innocuous_$ac_func
19403 /* System header to define __stub macros and hopefully few prototypes,
19404 which can conflict with char $ac_func (); below.
19405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19406 <limits.h> exists even on freestanding compilers. */
19409 # include <limits.h>
19411 # include <assert.h>
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19423 /* The GNU C library defines this for functions which it implements
19424 to always fail with ENOSYS. Some functions are actually named
19425 something starting with __ and the normal name is an alias. */
19426 #if defined __stub_$ac_func || defined __stub___$ac_func
19433 return $ac_func ();
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19442 *) ac_try_echo
=$ac_try;;
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_link") 2>conftest.er1
19447 grep -v '^ *+' conftest.er1
>conftest.err
19449 cat conftest.err
>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } && {
19452 test -z "$ac_c_werror_flag" ||
19453 test ! -s conftest.err
19454 } && test -s conftest
$ac_exeext &&
19455 $as_test_x conftest
$ac_exeext; then
19456 eval "$as_ac_var=yes"
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.
$ac_ext >&5
19461 eval "$as_ac_var=no"
19464 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19465 conftest
$ac_exeext conftest.
$ac_ext
19467 ac_res
=`eval echo '${'$as_ac_var'}'`
19468 { echo "$as_me:$LINENO: result: $ac_res" >&5
19469 echo "${ECHO_T}$ac_res" >&6; }
19470 if test `eval echo '${'$as_ac_var'}'` = yes; then
19471 cat >>confdefs.h
<<_ACEOF
19472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19479 # Do test here with the proper thread flags
19480 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19481 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19482 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19483 echo $ECHO_N "(cached) $ECHO_C" >&6
19485 cat >conftest.
$ac_ext <<_ACEOF
19488 cat confdefs.h
>>conftest.
$ac_ext
19489 cat >>conftest.
$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 #include <sys/types.h>
19497 struct passwd *space;
19500 struct passwd **result;
19501 getpwuid_r(uid, space, buf, bufsize, result);
19506 rm -f conftest.
$ac_objext
19507 if { (ac_try
="$ac_compile"
19508 case "(($ac_try" in
19509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_compile") 2>conftest.er1
19515 grep -v '^ *+' conftest.er1 >conftest.err
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest.$ac_objext; then
19523 pgac_cv_func_getpwuid_r_5arg=yes
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19528 pgac_cv_func_getpwuid_r_5arg=no
19531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19533 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19534 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19535 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19537 cat >>confdefs.h <<\_ACEOF
19538 #define GETPWUID_R_5ARG
19543 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19544 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19545 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 cat >conftest.$ac_ext <<_ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554 #include <string.h>
19559 int strerror_r(int, char *, size_t);
19561 /* Older AIX has 'int' for the third argument so we don't test the args. */
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19572 *) ac_try_echo
=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19577 grep -v '^ *+' conftest.er1
>conftest.err
19579 cat conftest.err
>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } && {
19582 test -z "$ac_c_werror_flag" ||
19583 test ! -s conftest.err
19584 } && test -s conftest.
$ac_objext; then
19585 pgac_cv_func_strerror_r_int
=yes
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.
$ac_ext >&5
19590 pgac_cv_func_strerror_r_int
=no
19593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19595 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19596 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19597 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
19599 cat >>confdefs.h
<<\_ACEOF
19600 #define STRERROR_R_INT
19610 # do not use values from template file
19619 # We can test for libldap_r only after we know PTHREAD_LIBS
19620 if test "$with_ldap" = yes ; then
19622 if test "$PORTNAME" != "win32"; then
19624 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19625 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19626 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 ac_check_lib_save_LIBS
=$LIBS
19630 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
19631 cat >conftest.
$ac_ext <<_ACEOF
19634 cat confdefs.h
>>conftest.
$ac_ext
19635 cat >>conftest.
$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19638 /* Override any GCC internal prototype to avoid an error.
19639 Use char because int might match the return type of a GCC
19640 builtin and then its argument prototype would still apply. */
19648 return ldap_bind ();
19653 rm -f conftest.
$ac_objext conftest
$ac_exeext
19654 if { (ac_try
="$ac_link"
19655 case "(($ac_try" in
19656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_link") 2>conftest.er1
19662 grep -v '^ *+' conftest.er1 >conftest.err
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && {
19667 test -z "$ac_c_werror_flag" ||
19668 test ! -s conftest.err
19669 } && test -s conftest$ac_exeext &&
19670 $as_test_x conftest$ac_exeext; then
19671 ac_cv_lib_ldap_ldap_bind=yes
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 ac_cv_lib_ldap_ldap_bind=no
19679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19680 conftest$ac_exeext conftest.$ac_ext
19681 LIBS=$ac_check_lib_save_LIBS
19683 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19684 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19685 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19686 cat >>confdefs.h <<_ACEOF
19687 #define HAVE_LIBLDAP 1
19690 LIBS="-lldap $LIBS"
19693 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19694 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19695 { (exit 1); exit 1; }; }
19698 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19699 if test "$enable_thread_safety" = yes; then
19700 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19702 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19703 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19704 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19722 char ldap_simple_bind ();
19726 return ldap_simple_bind ();
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19735 *) ac_try_echo
=$ac_try;;
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1
>conftest.err
19742 cat conftest.err
>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest
$ac_exeext &&
19748 $as_test_x conftest
$ac_exeext; then
19749 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.
$ac_ext >&5
19754 ac_cv_lib_ldap_r_ldap_simple_bind
=no
19757 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19758 conftest
$ac_exeext conftest.
$ac_ext
19759 LIBS
=$ac_check_lib_save_LIBS
19761 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19762 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19763 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19764 cat >>confdefs.h
<<_ACEOF
19765 #define HAVE_LIBLDAP_R 1
19768 LIBS
="-lldap_r $LIBS"
19771 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19772 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19773 { (exit 1); exit 1; }; }
19776 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
19778 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
19782 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19783 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19784 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 ac_check_lib_save_LIBS
=$LIBS
19788 LIBS
="-lwldap32 $LIBS"
19789 cat >conftest.
$ac_ext <<_ACEOF
19792 cat confdefs.h
>>conftest.
$ac_ext
19793 cat >>conftest.
$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19796 /* Override any GCC internal prototype to avoid an error.
19797 Use char because int might match the return type of a GCC
19798 builtin and then its argument prototype would still apply. */
19806 return ldap_bind ();
19811 rm -f conftest.
$ac_objext conftest
$ac_exeext
19812 if { (ac_try
="$ac_link"
19813 case "(($ac_try" in
19814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_link") 2>conftest.er1
19820 grep -v '^ *+' conftest.er1 >conftest.err
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } && {
19825 test -z "$ac_c_werror_flag" ||
19826 test ! -s conftest.err
19827 } && test -s conftest$ac_exeext &&
19828 $as_test_x conftest$ac_exeext; then
19829 ac_cv_lib_wldap32_ldap_bind=yes
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_lib_wldap32_ldap_bind=no
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838 conftest$ac_exeext conftest.$ac_ext
19839 LIBS=$ac_check_lib_save_LIBS
19841 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19842 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19843 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19844 cat >>confdefs.h <<_ACEOF
19845 #define HAVE_LIBWLDAP32 1
19848 LIBS="-lwldap32 $LIBS"
19851 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19852 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19853 { (exit 1); exit 1; }; }
19856 LDAP_LIBS_FE="-lwldap32"
19857 LDAP_LIBS_BE="-lwldap32"
19865 # This test makes sure that run tests work at all. Sometimes a shared
19866 # library is found by the linker, but the runtime linker can't find it.
19867 # This check should come after all modifications of compiler or linker
19868 # variables, and before any other run tests.
19869 { echo "$as_me:$LINENO: checking test program" >&5
19870 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19871 if test "$cross_compiling" = yes; then
19872 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19873 echo "${ECHO_T}cross-compiling" >&6; }
19875 cat >conftest.$ac_ext <<_ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881 int main() { return 0; }
19883 rm -f conftest$ac_exeext
19884 if { (ac_try="$ac_link"
19885 case "(($ac_try" in
19886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19887 *) ac_try_echo
=$ac_try;;
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_link") 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19894 { (case "(($ac_try" in
19895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 { echo "$as_me:$LINENO: result: ok" >&5
19904 echo "${ECHO_T}ok" >&6; }
19906 echo "$as_me: program exited with status $ac_status" >&5
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ( exit $ac_status )
19911 { echo "$as_me:$LINENO: result: failed" >&5
19912 echo "${ECHO_T}failed" >&6; }
19913 { { echo "$as_me:$LINENO: error:
19914 Could not execute a simple test program. This may be a problem
19915 related to locating shared libraries. Check the file 'config.log'
19916 for the exact reason." >&5
19917 echo "$as_me: error:
19918 Could not execute a simple test program. This may be a problem
19919 related to locating shared libraries. Check the file 'config.log'
19920 for the exact reason." >&2;}
19921 { (exit 1); exit 1; }; }
19923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19928 # --------------------
19929 # Run tests below here
19930 # --------------------
19932 # Force use of our snprintf if system's doesn't do arg control
19933 # See comment above at snprintf test for details.
19934 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19935 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19936 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19937 if test "${pgac_cv_printf_arg_control+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 if test "$cross_compiling" = yes; then
19941 pgac_cv_printf_arg_control=cross
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19950 #include <string.h>
19956 /* can it swap arguments? */
19957 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19958 if (strcmp(buf, "4 3") != 0)
19963 rm -f conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19967 *) ac_try_echo
=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19974 { (case "(($ac_try" in
19975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19979 (eval "$ac_try") 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; }; then
19983 pgac_cv_printf_arg_control=yes
19985 echo "$as_me: program exited with status $ac_status" >&5
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ( exit $ac_status )
19990 pgac_cv_printf_arg_control=no
19992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19998 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19999 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20001 if test $pgac_cv_printf_arg_control != yes ; then
20002 pgac_need_repl_snprintf=yes
20008 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20009 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20010 if test "${pgac_cv_type_long_int_64+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 if test "$cross_compiling" = yes; then
20014 # If cross-compiling, check the size reported by the compiler and
20015 # trust that the arithmetic works.
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20026 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20033 rm -f conftest.$ac_objext
20034 if { (ac_try="$ac_compile"
20035 case "(($ac_try" in
20036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20037 *) ac_try_echo
=$ac_try;;
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_compile") 2>conftest.er1
20042 grep -v '^ *+' conftest.er1
>conftest.err
20044 cat conftest.err
>&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } && {
20047 test -z "$ac_c_werror_flag" ||
20048 test ! -s conftest.err
20049 } && test -s conftest.
$ac_objext; then
20050 pgac_cv_type_long_int_64
=yes
20052 echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.
$ac_ext >&5
20055 pgac_cv_type_long_int_64
=no
20058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20060 cat >conftest.
$ac_ext <<_ACEOF
20063 cat confdefs.h
>>conftest.
$ac_ext
20064 cat >>conftest.
$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 typedef long int ac_int64;
20069 * These are globals to discourage the compiler from folding all the
20070 * arithmetic tests down to compile-time constants.
20072 ac_int64 a = 20000001;
20073 ac_int64 b = 40000005;
20075 int does_int64_work()
20079 if (sizeof(ac_int64) != 8)
20080 return 0; /* definitely not the right size */
20082 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20090 exit(! does_int64_work());
20093 rm -f conftest
$ac_exeext
20094 if { (ac_try
="$ac_link"
20095 case "(($ac_try" in
20096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20104 { (case "(($ac_try" in
20105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20106 *) ac_try_echo
=$ac_try;;
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_try") 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 pgac_cv_type_long_int_64
=yes
20115 echo "$as_me: program exited with status $ac_status" >&5
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.
$ac_ext >&5
20119 ( exit $ac_status )
20120 pgac_cv_type_long_int_64
=no
20122 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20127 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20128 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20130 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
20131 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
20133 cat >>confdefs.h
<<\_ACEOF
20134 #define HAVE_LONG_INT_64 1
20140 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
20141 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20142 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20143 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 if test "$cross_compiling" = yes; then
20147 # If cross-compiling, check the size reported by the compiler and
20148 # trust that the arithmetic works.
20149 cat >conftest.
$ac_ext <<_ACEOF
20152 cat confdefs.h
>>conftest.
$ac_ext
20153 cat >>conftest.
$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20159 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20166 rm -f conftest.
$ac_objext
20167 if { (ac_try
="$ac_compile"
20168 case "(($ac_try" in
20169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_compile") 2>conftest.er1
20175 grep -v '^ *+' conftest.er1 >conftest.err
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest.$ac_objext; then
20183 pgac_cv_type_long_long_int_64=yes
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 pgac_cv_type_long_long_int_64=no
20191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 typedef long long int ac_int64;
20202 * These are globals to discourage the compiler from folding all the
20203 * arithmetic tests down to compile-time constants.
20205 ac_int64 a = 20000001;
20206 ac_int64 b = 40000005;
20208 int does_int64_work()
20212 if (sizeof(ac_int64) != 8)
20213 return 0; /* definitely not the right size */
20215 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20223 exit(! does_int64_work());
20226 rm -f conftest$ac_exeext
20227 if { (ac_try="$ac_link"
20228 case "(($ac_try" in
20229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20230 *) ac_try_echo
=$ac_try;;
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_link") 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20237 { (case "(($ac_try" in
20238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 pgac_cv_type_long_long_int_64=yes
20248 echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ( exit $ac_status )
20253 pgac_cv_type_long_long_int_64=no
20255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20260 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20261 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20263 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20264 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20266 cat >>confdefs.h <<\_ACEOF
20267 #define HAVE_LONG_LONG_INT_64 1
20276 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20277 cat >conftest.$ac_ext <<_ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h. */
20284 #define INT64CONST(x) x##LL
20285 long long int foo = INT64CONST(0x1234567890123456);
20295 rm -f conftest.$ac_objext
20296 if { (ac_try="$ac_compile"
20297 case "(($ac_try" in
20298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20299 *) ac_try_echo
=$ac_try;;
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_compile") 2>conftest.er1
20304 grep -v '^ *+' conftest.er1
>conftest.err
20306 cat conftest.err
>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest.
$ac_objext; then
20313 cat >>confdefs.h
<<\_ACEOF
20314 #define HAVE_LL_CONSTANTS 1
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.
$ac_ext >&5
20324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20328 # If we found "long int" is 64 bits, assume snprintf handles it. If
20329 # we found we need to use "long long int", better check. We cope with
20330 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20331 # work, fall back to our own snprintf emulation (which we know uses %lld).
20333 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20334 if test $pgac_need_repl_snprintf = no
; then
20335 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20336 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20337 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20338 echo $ECHO_N "(cached) $ECHO_C" >&6
20340 for pgac_format
in '%lld' '%qd' '%I64d'; do
20341 if test "$cross_compiling" = yes; then
20342 pgac_cv_snprintf_long_long_int_format
=cross
; break
20344 cat >conftest.
$ac_ext <<_ACEOF
20347 cat confdefs.h
>>conftest.
$ac_ext
20348 cat >>conftest.
$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20351 typedef long long int ac_int64;
20352 #define INT64_FORMAT "$pgac_format"
20354 ac_int64 a = 20000001;
20355 ac_int64 b = 40000005;
20357 int does_int64_snprintf_work()
20362 if (sizeof(ac_int64) != 8)
20363 return 0; /* doesn't look like the right size */
20366 snprintf(buf, 100, INT64_FORMAT, c);
20367 if (strcmp(buf, "800000140000005") != 0)
20368 return 0; /* either multiply or snprintf is busted */
20372 exit(! does_int64_snprintf_work());
20375 rm -f conftest
$ac_exeext
20376 if { (ac_try
="$ac_link"
20377 case "(($ac_try" in
20378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20379 *) ac_try_echo=$ac_try;;
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382 (eval "$ac_link") 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20386 { (case "(($ac_try" in
20387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20388 *) ac_try_echo
=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_try") 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
20397 echo "$as_me: program exited with status $ac_status" >&5
20398 echo "$as_me: failed program was:" >&5
20399 sed 's/^/| /' conftest.
$ac_ext >&5
20402 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20409 LONG_LONG_INT_FORMAT
=''
20411 case $pgac_cv_snprintf_long_long_int_format in
20412 cross
) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20413 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20414 ?
*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20415 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20416 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
20417 *) { echo "$as_me:$LINENO: result: none" >&5
20418 echo "${ECHO_T}none" >&6; };;
20420 if test "$LONG_LONG_INT_FORMAT" = ""; then
20421 # Force usage of our own snprintf, since system snprintf is broken
20422 pgac_need_repl_snprintf
=yes
20423 LONG_LONG_INT_FORMAT
='%lld'
20426 # Here if we previously decided we needed to use our own snprintf
20427 LONG_LONG_INT_FORMAT
='%lld'
20429 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20430 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
20431 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
20433 # Here if we are not using 'long long int' at all
20434 INT64_FORMAT
='"%ld"'
20435 UINT64_FORMAT
='"%lu"'
20439 cat >>confdefs.h
<<_ACEOF
20440 #define INT64_FORMAT $INT64_FORMAT
20445 cat >>confdefs.h
<<_ACEOF
20446 #define UINT64_FORMAT $UINT64_FORMAT
20450 # Now we have checked all the reasons to replace snprintf
20451 if test $pgac_need_repl_snprintf = yes; then
20453 cat >>confdefs.h
<<\_ACEOF
20454 #define USE_REPL_SNPRINTF 1
20457 case " $LIBOBJS " in
20458 *" snprintf.$ac_objext "* ) ;;
20459 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
20465 # Need a #define for the size of Datum (unsigned long)
20466 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20467 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20468 if test "${ac_cv_type_unsigned_long+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 cat >conftest.
$ac_ext <<_ACEOF
20474 cat confdefs.h
>>conftest.
$ac_ext
20475 cat >>conftest.
$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 $ac_includes_default
20478 typedef unsigned long ac__type_new_;
20482 if ((ac__type_new_ *) 0)
20484 if (sizeof (ac__type_new_))
20490 rm -f conftest.
$ac_objext
20491 if { (ac_try
="$ac_compile"
20492 case "(($ac_try" in
20493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_compile") 2>conftest.er1
20499 grep -v '^ *+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest.$ac_objext; then
20507 ac_cv_type_unsigned_long=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_type_unsigned_long=no
20515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20518 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20520 # The cast to long int works around a bug in the HP C Compiler
20521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20522 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20523 # This bug is HP SR number 8606223364.
20524 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20525 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20526 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 if test "$cross_compiling" = yes; then
20530 # Depending upon the size, compute the lo and hi bounds.
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 $ac_includes_default
20538 typedef unsigned long ac__type_sizeof_;
20542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20549 rm -f conftest.$ac_objext
20550 if { (ac_try="$ac_compile"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_compile") 2>conftest.er1
20558 grep -v '^
*+' conftest.er1 >conftest.err
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && {
20563 test -z "$ac_c_werror_flag" ||
20564 test ! -s conftest.err
20565 } && test -s conftest.$ac_objext; then
20568 cat >conftest.$ac_ext <<_ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 $ac_includes_default
20575 typedef unsigned long ac__type_sizeof_;
20579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20586 rm -f conftest.$ac_objext
20587 if { (ac_try="$ac_compile"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_compile") 2>conftest.er1
20595 grep -v '^
*+' conftest.er1 >conftest.err
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest.$ac_objext; then
20603 ac_hi=$ac_mid; break
20605 echo "$as_me: failed program was:" >&5
20606 sed 's
/^
/|
/' conftest.$ac_ext >&5
20608 ac_lo=`expr $ac_mid + 1`
20609 if test $ac_lo -le $ac_mid; then
20613 ac_mid=`expr 2 '*' $ac_mid + 1`
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619 echo "$as_me: failed program was:" >&5
20620 sed 's
/^
/|
/' conftest.$ac_ext >&5
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 $ac_includes_default
20629 typedef unsigned long ac__type_sizeof_;
20633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_compile") 2>conftest.er1
20649 grep -v '^
*+' conftest.er1 >conftest.err
20651 cat conftest.err >&5
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); } && {
20654 test -z "$ac_c_werror_flag" ||
20655 test ! -s conftest.err
20656 } && test -s conftest.$ac_objext; then
20659 cat >conftest.$ac_ext <<_ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20665 $ac_includes_default
20666 typedef unsigned long ac__type_sizeof_;
20670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20677 rm -f conftest.$ac_objext
20678 if { (ac_try="$ac_compile"
20679 case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_compile") 2>conftest.er1
20686 grep -v '^
*+' conftest.er1 >conftest.err
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest.$ac_objext; then
20694 ac_lo=$ac_mid; break
20696 echo "$as_me: failed program was:" >&5
20697 sed 's
/^
/|
/' conftest.$ac_ext >&5
20699 ac_hi=`expr '(' $ac_mid ')' - 1`
20700 if test $ac_mid -le $ac_hi; then
20704 ac_mid=`expr 2 '*' $ac_mid`
20707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20710 echo "$as_me: failed program was:" >&5
20711 sed 's
/^
/|
/' conftest.$ac_ext >&5
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 # Binary search between lo and hi bounds.
20721 while test "x$ac_lo" != "x$ac_hi"; do
20722 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 $ac_includes_default
20730 typedef unsigned long ac__type_sizeof_;
20734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20741 rm -f conftest.$ac_objext
20742 if { (ac_try="$ac_compile"
20743 case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_compile") 2>conftest.er1
20750 grep -v '^
*+' conftest.er1 >conftest.err
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } && {
20755 test -z "$ac_c_werror_flag" ||
20756 test ! -s conftest.err
20757 } && test -s conftest.$ac_objext; then
20760 echo "$as_me: failed program was:" >&5
20761 sed 's
/^
/|
/' conftest.$ac_ext >&5
20763 ac_lo=`expr '(' $ac_mid ')' + 1`
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20769 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20770 '') if test "$ac_cv_type_unsigned_long" = yes; then
20771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20772 See \`config.log' for more details.
" >&5
20773 echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
20774 See \
`config.log' for more details." >&2;}
20775 { (exit 77); exit 77; }; }
20777 ac_cv_sizeof_unsigned_long=0
20781 cat >conftest.$ac_ext <<_ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 $ac_includes_default
20788 typedef unsigned long ac__type_sizeof_;
20789 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20790 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20792 #include <stdlib.h>
20797 FILE *f = fopen ("conftest.val", "w");
20800 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20802 long int i = longval ();
20803 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20805 fprintf (f, "%ld\n", i);
20809 unsigned long int i = ulongval ();
20810 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20812 fprintf (f, "%lu\n", i);
20814 return ferror (f) || fclose (f) != 0;
20820 rm -f conftest$ac_exeext
20821 if { (ac_try="$ac_link"
20822 case "(($ac_try" in
20823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20824 *) ac_try_echo
=$ac_try;;
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_link") 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20831 { (case "(($ac_try" in
20832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_try") 2>&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840 ac_cv_sizeof_unsigned_long=`cat conftest.val
`
20842 echo "$as_me: program exited with status $ac_status" >&5
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ( exit $ac_status )
20847 if test "$ac_cv_type_unsigned_long" = yes; then
20848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20849 See \`config.log
' for more details." >&5
20850 echo "$as_me: error: cannot compute sizeof (unsigned long)
20851 See \`config.log' for more details.
" >&2;}
20852 { (exit 77); exit 77; }; }
20854 ac_cv_sizeof_unsigned_long=0
20857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20861 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_unsigned_long" >&5
20862 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20866 cat >>confdefs.h <<_ACEOF
20867 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20872 # And one for the size of size_t (enables tweaks for > 32bit address space)
20873 { echo "$as_me:$LINENO: checking
for size_t
" >&5
20874 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
20875 if test "${ac_cv_type_size_t+set}" = set; then
20876 echo $ECHO_N "(cached
) $ECHO_C" >&6
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 $ac_includes_default
20885 typedef size_t ac__type_new_;
20889 if ((ac__type_new_ *) 0)
20891 if (sizeof (ac__type_new_))
20897 rm -f conftest.$ac_objext
20898 if { (ac_try="$ac_compile"
20899 case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_compile") 2>conftest.er1
20906 grep -v '^ *+' conftest.er1 >conftest.err
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20910 (exit $ac_status); } && {
20911 test -z "$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20913 } && test -s conftest.$ac_objext; then
20914 ac_cv_type_size_t=yes
20916 echo "$as_me: failed program was
:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_cv_type_size_t=no
20922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
20925 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20927 # The cast to long int works around a bug in the HP C Compiler
20928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20930 # This bug is HP SR number 8606223364.
20931 { echo "$as_me:$LINENO: checking size of size_t
" >&5
20932 echo $ECHO_N "checking size of size_t...
$ECHO_C" >&6; }
20933 if test "${ac_cv_sizeof_size_t+set}" = set; then
20934 echo $ECHO_N "(cached
) $ECHO_C" >&6
20936 if test "$cross_compiling" = yes; then
20937 # Depending upon the size, compute the lo and hi bounds.
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 $ac_includes_default
20945 typedef size_t ac__type_sizeof_;
20949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20956 rm -f conftest.$ac_objext
20957 if { (ac_try="$ac_compile"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_compile") 2>conftest.er1
20965 grep -v '^ *+' conftest.er1 >conftest.err
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20969 (exit $ac_status); } && {
20970 test -z "$ac_c_werror_flag" ||
20971 test ! -s conftest.err
20972 } && test -s conftest.$ac_objext; then
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 $ac_includes_default
20982 typedef size_t ac__type_sizeof_;
20986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_compile") 2>conftest.er1
21002 grep -v '^ *+' conftest.er1 >conftest.err
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21006 (exit $ac_status); } && {
21007 test -z "$ac_c_werror_flag" ||
21008 test ! -s conftest.err
21009 } && test -s conftest.$ac_objext; then
21010 ac_hi=$ac_mid; break
21012 echo "$as_me: failed program was
:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_lo=`expr $ac_mid + 1`
21016 if test $ac_lo -le $ac_mid; then
21020 ac_mid=`expr 2 '*' $ac_mid + 1`
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 echo "$as_me: failed program was
:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 cat >conftest.$ac_ext <<_ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 $ac_includes_default
21036 typedef size_t ac__type_sizeof_;
21040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_compile") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest.$ac_objext; then
21066 cat >conftest.$ac_ext <<_ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21072 $ac_includes_default
21073 typedef size_t ac__type_sizeof_;
21077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_compile") 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21097 (exit $ac_status); } && {
21098 test -z "$ac_c_werror_flag" ||
21099 test ! -s conftest.err
21100 } && test -s conftest.$ac_objext; then
21101 ac_lo=$ac_mid; break
21103 echo "$as_me: failed program was
:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_hi=`expr '(' $ac_mid ')' - 1`
21107 if test $ac_mid -le $ac_hi; then
21111 ac_mid=`expr 2 '*' $ac_mid`
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 echo "$as_me: failed program was
:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 # Binary search between lo and hi bounds.
21128 while test "x
$ac_lo" != "x
$ac_hi"; do
21129 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21130 cat >conftest.$ac_ext <<_ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21136 $ac_includes_default
21137 typedef size_t ac__type_sizeof_;
21141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21159 cat conftest.err >&5
21160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21161 (exit $ac_status); } && {
21162 test -z "$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21164 } && test -s conftest.$ac_objext; then
21167 echo "$as_me: failed program was
:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_lo=`expr '(' $ac_mid ')' + 1`
21173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21177 '') if test "$ac_cv_type_size_t" = yes; then
21178 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
21179 See \
`config.log' for more details." >&5
21180 echo "$as_me: error: cannot compute sizeof (size_t)
21181 See \`config.log
' for more details." >&2;}
21182 { (exit 77); exit 77; }; }
21184 ac_cv_sizeof_size_t=0
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 $ac_includes_default
21195 typedef size_t ac__type_sizeof_;
21196 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21197 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21199 #include <stdlib.h>
21204 FILE *f = fopen ("conftest.val", "w");
21207 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21209 long int i = longval ();
21210 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21212 fprintf (f, "%ld\n", i);
21216 unsigned long int i = ulongval ();
21217 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21219 fprintf (f, "%lu\n", i);
21221 return ferror (f) || fclose (f) != 0;
21227 rm -f conftest$ac_exeext
21228 if { (ac_try="$ac_link"
21229 case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_link") 2>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 ac_cv_sizeof_size_t=`cat conftest.val`
21249 echo "$as_me: program exited with status $ac_status" >&5
21250 echo "$as_me: failed program was:" >&5
21251 sed 's
/^
/|
/' conftest.$ac_ext >&5
21253 ( exit $ac_status )
21254 if test "$ac_cv_type_size_t" = yes; then
21255 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21256 See \`config.log' for more details.
" >&5
21257 echo "$as_me: error
: cannot compute sizeof
(size_t
)
21258 See \
`config.log' for more details." >&2;}
21259 { (exit 77); exit 77; }; }
21261 ac_cv_sizeof_size_t=0
21264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21268 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21269 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21273 cat >>confdefs.h <<_ACEOF
21274 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21279 # Decide whether float4 is passed by value: user-selectable, enabled by default
21280 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21281 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21283 pgac_args="$pgac_args enable_float4_byval"
21285 # Check whether --enable-float4-byval was given.
21286 if test "${enable_float4_byval+set}" = set; then
21287 enableval=$enable_float4_byval;
21291 cat >>confdefs.h <<\_ACEOF
21292 #define USE_FLOAT4_BYVAL 1
21295 float4passbyval=true
21298 float4passbyval=false
21301 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21302 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21303 { (exit 1); exit 1; }; }
21308 enable_float4_byval=yes
21310 cat >>confdefs.h <<\_ACEOF
21311 #define USE_FLOAT4_BYVAL 1
21314 float4passbyval=true
21318 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21319 echo "${ECHO_T}$enable_float4_byval" >&6; }
21321 cat >>confdefs.h <<_ACEOF
21322 #define FLOAT4PASSBYVAL $float4passbyval
21326 # Decide whether float8 is passed by value.
21327 # Note: this setting also controls int8 and related types such as timestamp.
21328 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21329 # If not, trying to select it is an error.
21330 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21331 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21332 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21334 pgac_args="$pgac_args enable_float8_byval"
21336 # Check whether --enable-float8-byval was given.
21337 if test "${enable_float8_byval+set}" = set; then
21338 enableval=$enable_float8_byval;
21347 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21348 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21349 { (exit 1); exit 1; }; }
21354 enable_float8_byval=yes
21361 pgac_args="$pgac_args enable_float8_byval"
21363 # Check whether --enable-float8-byval was given.
21364 if test "${enable_float8_byval+set}" = set; then
21365 enableval=$enable_float8_byval;
21374 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21375 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21376 { (exit 1); exit 1; }; }
21381 enable_float8_byval=no
21386 if test "$enable_float8_byval" = yes ; then
21387 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21388 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21389 { (exit 1); exit 1; }; }
21392 if test "$enable_float8_byval" = yes ; then
21394 cat >>confdefs.h <<\_ACEOF
21395 #define USE_FLOAT8_BYVAL 1
21398 float8passbyval=true
21400 float8passbyval=false
21402 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21403 echo "${ECHO_T}$enable_float8_byval" >&6; }
21405 cat >>confdefs.h <<_ACEOF
21406 #define FLOAT8PASSBYVAL $float8passbyval
21410 # Determine memory alignment requirements for the basic C data types.
21412 { echo "$as_me:$LINENO: checking for short" >&5
21413 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21414 if test "${ac_cv_type_short+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21424 typedef short ac__type_new_;
21428 if ((ac__type_new_ *) 0)
21430 if (sizeof (ac__type_new_))
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21440 *) ac_try_echo
=$ac_try;;
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21445 grep -v '^ *+' conftest.er1
>conftest.err
21447 cat conftest.err
>&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.
$ac_objext; then
21453 ac_cv_type_short
=yes
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.
$ac_ext >&5
21458 ac_cv_type_short
=no
21461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21463 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21464 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21466 # The cast to long int works around a bug in the HP C Compiler,
21467 # see AC_CHECK_SIZEOF for more information.
21468 { echo "$as_me:$LINENO: checking alignment of short" >&5
21469 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21470 if test "${ac_cv_alignof_short+set}" = set; then
21471 echo $ECHO_N "(cached) $ECHO_C" >&6
21473 if test "$cross_compiling" = yes; then
21474 # Depending upon the size, compute the lo and hi bounds.
21475 cat >conftest.
$ac_ext <<_ACEOF
21478 cat confdefs.h
>>conftest.
$ac_ext
21479 cat >>conftest.
$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 $ac_includes_default
21483 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21485 typedef struct { char x; short y; } ac__type_alignof_;
21489 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21496 rm -f conftest.
$ac_objext
21497 if { (ac_try
="$ac_compile"
21498 case "(($ac_try" in
21499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21500 *) ac_try_echo=$ac_try;;
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503 (eval "$ac_compile") 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && {
21510 test -z "$ac_c_werror_flag" ||
21511 test ! -s conftest.err
21512 } && test -s conftest.$ac_objext; then
21515 cat >conftest.$ac_ext <<_ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 $ac_includes_default
21523 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21525 typedef struct { char x; short y; } ac__type_alignof_;
21529 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21540 *) ac_try_echo
=$ac_try;;
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_compile") 2>conftest.er1
21545 grep -v '^ *+' conftest.er1
>conftest.err
21547 cat conftest.err
>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest.
$ac_objext; then
21553 ac_hi
=$ac_mid; break
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.
$ac_ext >&5
21558 ac_lo
=`expr $ac_mid + 1`
21559 if test $ac_lo -le $ac_mid; then
21563 ac_mid
=`expr 2 '*' $ac_mid + 1`
21566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.
$ac_ext >&5
21572 cat >conftest.
$ac_ext <<_ACEOF
21575 cat confdefs.h
>>conftest.
$ac_ext
21576 cat >>conftest.
$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 $ac_includes_default
21580 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21582 typedef struct { char x; short y; } ac__type_alignof_;
21586 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21593 rm -f conftest.
$ac_objext
21594 if { (ac_try
="$ac_compile"
21595 case "(($ac_try" in
21596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_compile") 2>conftest.er1
21602 grep -v '^ *+' conftest.er1 >conftest.err
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && {
21607 test -z "$ac_c_werror_flag" ||
21608 test ! -s conftest.err
21609 } && test -s conftest.$ac_objext; then
21612 cat >conftest.$ac_ext <<_ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 $ac_includes_default
21620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21622 typedef struct { char x; short y; } ac__type_alignof_;
21626 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21633 rm -f conftest.$ac_objext
21634 if { (ac_try="$ac_compile"
21635 case "(($ac_try" in
21636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21637 *) ac_try_echo
=$ac_try;;
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
21642 grep -v '^ *+' conftest.er1
>conftest.err
21644 cat conftest.err
>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } && {
21647 test -z "$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 } && test -s conftest.
$ac_objext; then
21650 ac_lo
=$ac_mid; break
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.
$ac_ext >&5
21655 ac_hi
=`expr '(' $ac_mid ')' - 1`
21656 if test $ac_mid -le $ac_hi; then
21660 ac_mid
=`expr 2 '*' $ac_mid`
21663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.
$ac_ext >&5
21672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21676 # Binary search between lo and hi bounds.
21677 while test "x$ac_lo" != "x$ac_hi"; do
21678 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21679 cat >conftest.
$ac_ext <<_ACEOF
21682 cat confdefs.h
>>conftest.
$ac_ext
21683 cat >>conftest.
$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 $ac_includes_default
21687 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21689 typedef struct { char x; short y; } ac__type_alignof_;
21693 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21700 rm -f conftest.
$ac_objext
21701 if { (ac_try
="$ac_compile"
21702 case "(($ac_try" in
21703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21709 grep -v '^ *+' conftest.er1 >conftest.err
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.$ac_objext; then
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_lo=`expr '(' $ac_mid ')' + 1`
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21728 ?*) ac_cv_alignof_short=$ac_lo;;
21729 '') if test "$ac_cv_type_short" = yes; then
21730 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21731 See \`config.log
' for more details." >&5
21732 echo "$as_me: error: cannot compute alignment of short
21733 See \`config.log' for more details.
" >&2;}
21734 { (exit 77); exit 77; }; }
21736 ac_cv_alignof_short=0
21740 cat >conftest.$ac_ext <<_ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 $ac_includes_default
21748 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21750 typedef struct { char x; short y; } ac__type_alignof_;
21751 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21752 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21754 #include <stdlib.h>
21759 FILE *f = fopen ("conftest.val
", "w
");
21762 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21764 long int i = longval ();
21765 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21767 fprintf (f, "%ld
\n", i);
21771 unsigned long int i = ulongval ();
21772 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21774 fprintf (f, "%lu
\n", i);
21776 return ferror (f) || fclose (f) != 0;
21782 rm -f conftest$ac_exeext
21783 if { (ac_try="$ac_link"
21784 case "(($ac_try" in
21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21789 (eval "$ac_link") 2>&5
21791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21793 { (case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_try") 2>&5
21800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21801 (exit $ac_status); }; }; then
21802 ac_cv_alignof_short=`cat conftest.val`
21804 echo "$as_me: program exited with status
$ac_status" >&5
21805 echo "$as_me: failed program was
:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 ( exit $ac_status )
21809 if test "$ac_cv_type_short" = yes; then
21810 { { echo "$as_me:$LINENO: error
: cannot compute alignment of short
21811 See \
`config.log' for more details." >&5
21812 echo "$as_me: error: cannot compute alignment of short
21813 See \`config.log
' for more details." >&2;}
21814 { (exit 77); exit 77; }; }
21816 ac_cv_alignof_short=0
21819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21823 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21824 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21828 cat >>confdefs.h <<_ACEOF
21829 #define ALIGNOF_SHORT $ac_cv_alignof_short
21833 { echo "$as_me:$LINENO: checking for int" >&5
21834 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21835 if test "${ac_cv_type_int+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 cat >conftest.$ac_ext <<_ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 $ac_includes_default
21845 typedef int ac__type_new_;
21849 if ((ac__type_new_ *) 0)
21851 if (sizeof (ac__type_new_))
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21866 grep -v '^
*+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21876 echo "$as_me: failed program was:" >&5
21877 sed 's
/^
/|
/' conftest.$ac_ext >&5
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21884 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21885 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21887 # The cast to long int works around a bug in the HP C Compiler,
21888 # see AC_CHECK_SIZEOF for more information.
21889 { echo "$as_me:$LINENO: checking alignment of int" >&5
21890 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21891 if test "${ac_cv_alignof_int+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21894 if test "$cross_compiling" = yes; then
21895 # Depending upon the size, compute the lo and hi bounds.
21896 cat >conftest.$ac_ext <<_ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21902 $ac_includes_default
21904 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21906 typedef struct { char x; int y; } ac__type_alignof_;
21910 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21926 grep -v '^
*+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21936 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21944 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21946 typedef struct { char x; int y; } ac__type_alignof_;
21950 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21957 rm -f conftest.$ac_objext
21958 if { (ac_try="$ac_compile"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_compile") 2>conftest.er1
21966 grep -v '^
*+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } && {
21971 test -z "$ac_c_werror_flag" ||
21972 test ! -s conftest.err
21973 } && test -s conftest.$ac_objext; then
21974 ac_hi=$ac_mid; break
21976 echo "$as_me: failed program was:" >&5
21977 sed 's
/^
/|
/' conftest.$ac_ext >&5
21979 ac_lo=`expr $ac_mid + 1`
21980 if test $ac_lo -le $ac_mid; then
21984 ac_mid=`expr 2 '*' $ac_mid + 1`
21987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 echo "$as_me: failed program was:" >&5
21991 sed 's
/^
/|
/' conftest.$ac_ext >&5
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22001 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22003 typedef struct { char x; int y; } ac__type_alignof_;
22007 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_compile") 2>conftest.er1
22023 grep -v '^
*+' conftest.er1 >conftest.err
22025 cat conftest.err >&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } && {
22028 test -z "$ac_c_werror_flag" ||
22029 test ! -s conftest.err
22030 } && test -s conftest.$ac_objext; then
22033 cat >conftest.$ac_ext <<_ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 $ac_includes_default
22041 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22043 typedef struct { char x; int y; } ac__type_alignof_;
22047 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22063 grep -v '^
*+' conftest.er1 >conftest.err
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 ac_lo=$ac_mid; break
22073 echo "$as_me: failed program was:" >&5
22074 sed 's
/^
/|
/' conftest.$ac_ext >&5
22076 ac_hi=`expr '(' $ac_mid ')' - 1`
22077 if test $ac_mid -le $ac_hi; then
22081 ac_mid=`expr 2 '*' $ac_mid`
22084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22087 echo "$as_me: failed program was:" >&5
22088 sed 's
/^
/|
/' conftest.$ac_ext >&5
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 # Binary search between lo and hi bounds.
22098 while test "x$ac_lo" != "x$ac_hi"; do
22099 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22100 cat >conftest.$ac_ext <<_ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22106 $ac_includes_default
22108 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22110 typedef struct { char x; int y; } ac__type_alignof_;
22114 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_compile") 2>conftest.er1
22130 grep -v '^
*+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); } && {
22135 test -z "$ac_c_werror_flag" ||
22136 test ! -s conftest.err
22137 } && test -s conftest.$ac_objext; then
22140 echo "$as_me: failed program was:" >&5
22141 sed 's
/^
/|
/' conftest.$ac_ext >&5
22143 ac_lo=`expr '(' $ac_mid ')' + 1`
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149 ?*) ac_cv_alignof_int=$ac_lo;;
22150 '') if test "$ac_cv_type_int" = yes; then
22151 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22152 See \`config.log' for more details.
" >&5
22153 echo "$as_me: error
: cannot compute alignment of int
22154 See \
`config.log' for more details." >&2;}
22155 { (exit 77); exit 77; }; }
22157 ac_cv_alignof_int=0
22161 cat >conftest.$ac_ext <<_ACEOF
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h. */
22167 $ac_includes_default
22169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22171 typedef struct { char x; int y; } ac__type_alignof_;
22172 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22173 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22175 #include <stdlib.h>
22180 FILE *f = fopen ("conftest.val", "w");
22183 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22185 long int i = longval ();
22186 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22188 fprintf (f, "%ld\n", i);
22192 unsigned long int i = ulongval ();
22193 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22195 fprintf (f, "%lu\n", i);
22197 return ferror (f) || fclose (f) != 0;
22203 rm -f conftest$ac_exeext
22204 if { (ac_try="$ac_link"
22205 case "(($ac_try" in
22206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22207 *) ac_try_echo
=$ac_try;;
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210 (eval "$ac_link") 2>&5
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22214 { (case "(($ac_try" in
22215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_try") 2>&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; }; then
22223 ac_cv_alignof_int=`cat conftest.val
`
22225 echo "$as_me: program exited with status $ac_status" >&5
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ( exit $ac_status )
22230 if test "$ac_cv_type_int" = yes; then
22231 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22232 See \`config.log
' for more details." >&5
22233 echo "$as_me: error: cannot compute alignment of int
22234 See \`config.log' for more details.
" >&2;}
22235 { (exit 77); exit 77; }; }
22237 ac_cv_alignof_int=0
22240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22244 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_int" >&5
22245 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22249 cat >>confdefs.h <<_ACEOF
22250 #define ALIGNOF_INT $ac_cv_alignof_int
22254 { echo "$as_me:$LINENO: checking
for long
" >&5
22255 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
22256 if test "${ac_cv_type_long+set}" = set; then
22257 echo $ECHO_N "(cached
) $ECHO_C" >&6
22259 cat >conftest.$ac_ext <<_ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22265 $ac_includes_default
22266 typedef long ac__type_new_;
22270 if ((ac__type_new_ *) 0)
22272 if (sizeof (ac__type_new_))
22278 rm -f conftest.$ac_objext
22279 if { (ac_try="$ac_compile"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_compile") 2>conftest.er1
22287 grep -v '^ *+' conftest.er1 >conftest.err
22289 cat conftest.err >&5
22290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22291 (exit $ac_status); } && {
22292 test -z "$ac_c_werror_flag" ||
22293 test ! -s conftest.err
22294 } && test -s conftest.$ac_objext; then
22295 ac_cv_type_long=yes
22297 echo "$as_me: failed program was
:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
22306 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22308 # The cast to long int works around a bug in the HP C Compiler,
22309 # see AC_CHECK_SIZEOF for more information.
22310 { echo "$as_me:$LINENO: checking alignment of long
" >&5
22311 echo $ECHO_N "checking alignment of long...
$ECHO_C" >&6; }
22312 if test "${ac_cv_alignof_long+set}" = set; then
22313 echo $ECHO_N "(cached
) $ECHO_C" >&6
22315 if test "$cross_compiling" = yes; then
22316 # Depending upon the size, compute the lo and hi bounds.
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22323 $ac_includes_default
22325 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22327 typedef struct { char x; long y; } ac__type_alignof_;
22331 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22338 rm -f conftest.$ac_objext
22339 if { (ac_try="$ac_compile"
22340 case "(($ac_try" in
22341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342 *) ac_try_echo=$ac_try;;
22344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22345 (eval "$ac_compile") 2>conftest.er1
22347 grep -v '^ *+' conftest.er1 >conftest.err
22349 cat conftest.err >&5
22350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22351 (exit $ac_status); } && {
22352 test -z "$ac_c_werror_flag" ||
22353 test ! -s conftest.err
22354 } && test -s conftest.$ac_objext; then
22357 cat >conftest.$ac_ext <<_ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22363 $ac_includes_default
22365 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22367 typedef struct { char x; long y; } ac__type_alignof_;
22371 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22378 rm -f conftest.$ac_objext
22379 if { (ac_try="$ac_compile"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_compile") 2>conftest.er1
22387 grep -v '^ *+' conftest.er1 >conftest.err
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22391 (exit $ac_status); } && {
22392 test -z "$ac_c_werror_flag" ||
22393 test ! -s conftest.err
22394 } && test -s conftest.$ac_objext; then
22395 ac_hi=$ac_mid; break
22397 echo "$as_me: failed program was
:" >&5
22398 sed 's/^/| /' conftest.$ac_ext >&5
22400 ac_lo=`expr $ac_mid + 1`
22401 if test $ac_lo -le $ac_mid; then
22405 ac_mid=`expr 2 '*' $ac_mid + 1`
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 echo "$as_me: failed program was
:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 cat >conftest.$ac_ext <<_ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h. */
22420 $ac_includes_default
22422 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22424 typedef struct { char x; long y; } ac__type_alignof_;
22428 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_compile") 2>conftest.er1
22444 grep -v '^ *+' conftest.er1 >conftest.err
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22448 (exit $ac_status); } && {
22449 test -z "$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 } && test -s conftest.$ac_objext; then
22454 cat >conftest.$ac_ext <<_ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 $ac_includes_default
22462 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22464 typedef struct { char x; long y; } ac__type_alignof_;
22468 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22482 (eval "$ac_compile") 2>conftest.er1
22484 grep -v '^ *+' conftest.er1 >conftest.err
22486 cat conftest.err >&5
22487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22488 (exit $ac_status); } && {
22489 test -z "$ac_c_werror_flag" ||
22490 test ! -s conftest.err
22491 } && test -s conftest.$ac_objext; then
22492 ac_lo=$ac_mid; break
22494 echo "$as_me: failed program was
:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22497 ac_hi=`expr '(' $ac_mid ')' - 1`
22498 if test $ac_mid -le $ac_hi; then
22502 ac_mid=`expr 2 '*' $ac_mid`
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 echo "$as_me: failed program was
:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 # Binary search between lo and hi bounds.
22519 while test "x
$ac_lo" != "x
$ac_hi"; do
22520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22521 cat >conftest.$ac_ext <<_ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h. */
22527 $ac_includes_default
22529 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22531 typedef struct { char x; long y; } ac__type_alignof_;
22535 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22549 (eval "$ac_compile") 2>conftest.er1
22551 grep -v '^ *+' conftest.er1 >conftest.err
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22555 (exit $ac_status); } && {
22556 test -z "$ac_c_werror_flag" ||
22557 test ! -s conftest.err
22558 } && test -s conftest.$ac_objext; then
22561 echo "$as_me: failed program was
:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 ac_lo=`expr '(' $ac_mid ')' + 1`
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 ?*) ac_cv_alignof_long=$ac_lo;;
22571 '') if test "$ac_cv_type_long" = yes; then
22572 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
22573 See \
`config.log' for more details." >&5
22574 echo "$as_me: error: cannot compute alignment of long
22575 See \`config.log
' for more details." >&2;}
22576 { (exit 77); exit 77; }; }
22578 ac_cv_alignof_long=0
22582 cat >conftest.$ac_ext <<_ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 $ac_includes_default
22590 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22592 typedef struct { char x; long y; } ac__type_alignof_;
22593 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22594 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22596 #include <stdlib.h>
22601 FILE *f = fopen ("conftest.val", "w");
22604 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22606 long int i = longval ();
22607 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22609 fprintf (f, "%ld\n", i);
22613 unsigned long int i = ulongval ();
22614 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22616 fprintf (f, "%lu\n", i);
22618 return ferror (f) || fclose (f) != 0;
22624 rm -f conftest$ac_exeext
22625 if { (ac_try="$ac_link"
22626 case "(($ac_try" in
22627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628 *) ac_try_echo=$ac_try;;
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631 (eval "$ac_link") 2>&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22635 { (case "(($ac_try" in
22636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637 *) ac_try_echo=$ac_try;;
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640 (eval "$ac_try") 2>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 ac_cv_alignof_long=`cat conftest.val`
22646 echo "$as_me: program exited with status $ac_status" >&5
22647 echo "$as_me: failed program was:" >&5
22648 sed 's
/^
/|
/' conftest.$ac_ext >&5
22650 ( exit $ac_status )
22651 if test "$ac_cv_type_long" = yes; then
22652 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22653 See \`config.log' for more details.
" >&5
22654 echo "$as_me: error
: cannot compute alignment of long
22655 See \
`config.log' for more details." >&2;}
22656 { (exit 77); exit 77; }; }
22658 ac_cv_alignof_long=0
22661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22665 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22666 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22670 cat >>confdefs.h <<_ACEOF
22671 #define ALIGNOF_LONG $ac_cv_alignof_long
22675 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22676 { echo "$as_me:$LINENO: checking for long long int" >&5
22677 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22678 if test "${ac_cv_type_long_long_int+set}" = set; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 $ac_includes_default
22688 typedef long long int ac__type_new_;
22692 if ((ac__type_new_ *) 0)
22694 if (sizeof (ac__type_new_))
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22704 *) ac_try_echo
=$ac_try;;
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22709 grep -v '^ *+' conftest.er1
>conftest.err
22711 cat conftest.err
>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest.
$ac_objext; then
22717 ac_cv_type_long_long_int
=yes
22719 echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.
$ac_ext >&5
22722 ac_cv_type_long_long_int
=no
22725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22727 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22728 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22730 # The cast to long int works around a bug in the HP C Compiler,
22731 # see AC_CHECK_SIZEOF for more information.
22732 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22733 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22734 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22737 if test "$cross_compiling" = yes; then
22738 # Depending upon the size, compute the lo and hi bounds.
22739 cat >conftest.
$ac_ext <<_ACEOF
22742 cat confdefs.h
>>conftest.
$ac_ext
22743 cat >>conftest.
$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 $ac_includes_default
22747 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22749 typedef struct { char x; long long int y; } ac__type_alignof_;
22753 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22760 rm -f conftest.
$ac_objext
22761 if { (ac_try
="$ac_compile"
22762 case "(($ac_try" in
22763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22764 *) ac_try_echo=$ac_try;;
22766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767 (eval "$ac_compile") 2>conftest.er1
22769 grep -v '^ *+' conftest.er1 >conftest.err
22771 cat conftest.err >&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } && {
22774 test -z "$ac_c_werror_flag" ||
22775 test ! -s conftest.err
22776 } && test -s conftest.$ac_objext; then
22779 cat >conftest.$ac_ext <<_ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22785 $ac_includes_default
22787 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22789 typedef struct { char x; long long int y; } ac__type_alignof_;
22793 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22804 *) ac_try_echo
=$ac_try;;
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_compile") 2>conftest.er1
22809 grep -v '^ *+' conftest.er1
>conftest.err
22811 cat conftest.err
>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); } && {
22814 test -z "$ac_c_werror_flag" ||
22815 test ! -s conftest.err
22816 } && test -s conftest.
$ac_objext; then
22817 ac_hi
=$ac_mid; break
22819 echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.
$ac_ext >&5
22822 ac_lo
=`expr $ac_mid + 1`
22823 if test $ac_lo -le $ac_mid; then
22827 ac_mid
=`expr 2 '*' $ac_mid + 1`
22830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.
$ac_ext >&5
22836 cat >conftest.
$ac_ext <<_ACEOF
22839 cat confdefs.h
>>conftest.
$ac_ext
22840 cat >>conftest.
$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842 $ac_includes_default
22844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22846 typedef struct { char x; long long int y; } ac__type_alignof_;
22850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22857 rm -f conftest.
$ac_objext
22858 if { (ac_try
="$ac_compile"
22859 case "(($ac_try" in
22860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22861 *) ac_try_echo=$ac_try;;
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864 (eval "$ac_compile") 2>conftest.er1
22866 grep -v '^ *+' conftest.er1 >conftest.err
22868 cat conftest.err >&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); } && {
22871 test -z "$ac_c_werror_flag" ||
22872 test ! -s conftest.err
22873 } && test -s conftest.$ac_objext; then
22876 cat >conftest.$ac_ext <<_ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h. */
22882 $ac_includes_default
22884 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22886 typedef struct { char x; long long int y; } ac__type_alignof_;
22890 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22897 rm -f conftest.$ac_objext
22898 if { (ac_try="$ac_compile"
22899 case "(($ac_try" in
22900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22901 *) ac_try_echo
=$ac_try;;
22903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22904 (eval "$ac_compile") 2>conftest.er1
22906 grep -v '^ *+' conftest.er1
>conftest.err
22908 cat conftest.err
>&5
22909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910 (exit $ac_status); } && {
22911 test -z "$ac_c_werror_flag" ||
22912 test ! -s conftest.err
22913 } && test -s conftest.
$ac_objext; then
22914 ac_lo
=$ac_mid; break
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.
$ac_ext >&5
22919 ac_hi
=`expr '(' $ac_mid ')' - 1`
22920 if test $ac_mid -le $ac_hi; then
22924 ac_mid
=`expr 2 '*' $ac_mid`
22927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.
$ac_ext >&5
22936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22940 # Binary search between lo and hi bounds.
22941 while test "x$ac_lo" != "x$ac_hi"; do
22942 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22943 cat >conftest.
$ac_ext <<_ACEOF
22946 cat confdefs.h
>>conftest.
$ac_ext
22947 cat >>conftest.
$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 $ac_includes_default
22951 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22953 typedef struct { char x; long long int y; } ac__type_alignof_;
22957 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22964 rm -f conftest.
$ac_objext
22965 if { (ac_try
="$ac_compile"
22966 case "(($ac_try" in
22967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22983 echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_lo=`expr '(' $ac_mid ')' + 1`
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22993 '') if test "$ac_cv_type_long_long_int" = yes; then
22994 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22995 See \`config.log
' for more details." >&5
22996 echo "$as_me: error: cannot compute alignment of long long int
22997 See \`config.log' for more details.
" >&2;}
22998 { (exit 77); exit 77; }; }
23000 ac_cv_alignof_long_long_int=0
23004 cat >conftest.$ac_ext <<_ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h. */
23010 $ac_includes_default
23012 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23014 typedef struct { char x; long long int y; } ac__type_alignof_;
23015 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23016 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23018 #include <stdlib.h>
23023 FILE *f = fopen ("conftest.val
", "w
");
23026 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23028 long int i = longval ();
23029 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23031 fprintf (f, "%ld
\n", i);
23035 unsigned long int i = ulongval ();
23036 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23038 fprintf (f, "%lu
\n", i);
23040 return ferror (f) || fclose (f) != 0;
23046 rm -f conftest$ac_exeext
23047 if { (ac_try="$ac_link"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_link") 2>&5
23055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23057 { (case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_try") 2>&5
23064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23065 (exit $ac_status); }; }; then
23066 ac_cv_alignof_long_long_int=`cat conftest.val`
23068 echo "$as_me: program exited with status
$ac_status" >&5
23069 echo "$as_me: failed program was
:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ( exit $ac_status )
23073 if test "$ac_cv_type_long_long_int" = yes; then
23074 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long long int
23075 See \
`config.log' for more details." >&5
23076 echo "$as_me: error: cannot compute alignment of long long int
23077 See \`config.log
' for more details." >&2;}
23078 { (exit 77); exit 77; }; }
23080 ac_cv_alignof_long_long_int=0
23083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23087 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23088 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23092 cat >>confdefs.h <<_ACEOF
23093 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23098 { echo "$as_me:$LINENO: checking for double" >&5
23099 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23100 if test "${ac_cv_type_double+set}" = set; then
23101 echo $ECHO_N "(cached) $ECHO_C" >&6
23103 cat >conftest.$ac_ext <<_ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h. */
23109 $ac_includes_default
23110 typedef double ac__type_new_;
23114 if ((ac__type_new_ *) 0)
23116 if (sizeof (ac__type_new_))
23122 rm -f conftest.$ac_objext
23123 if { (ac_try="$ac_compile"
23124 case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23131 grep -v '^
*+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest.$ac_objext; then
23139 ac_cv_type_double=yes
23141 echo "$as_me: failed program was:" >&5
23142 sed 's
/^
/|
/' conftest.$ac_ext >&5
23144 ac_cv_type_double=no
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23150 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23152 # The cast to long int works around a bug in the HP C Compiler,
23153 # see AC_CHECK_SIZEOF for more information.
23154 { echo "$as_me:$LINENO: checking alignment of double" >&5
23155 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23156 if test "${ac_cv_alignof_double+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 if test "$cross_compiling" = yes; then
23160 # Depending upon the size, compute the lo and hi bounds.
23161 cat >conftest.$ac_ext <<_ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h. */
23167 $ac_includes_default
23169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23171 typedef struct { char x; double y; } ac__type_alignof_;
23175 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23191 grep -v '^
*+' conftest.er1 >conftest.err
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23201 cat >conftest.$ac_ext <<_ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23209 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23211 typedef struct { char x; double y; } ac__type_alignof_;
23215 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23231 grep -v '^
*+' conftest.er1 >conftest.err
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 ac_hi=$ac_mid; break
23241 echo "$as_me: failed program was:" >&5
23242 sed 's
/^
/|
/' conftest.$ac_ext >&5
23244 ac_lo=`expr $ac_mid + 1`
23245 if test $ac_lo -le $ac_mid; then
23249 ac_mid=`expr 2 '*' $ac_mid + 1`
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23255 echo "$as_me: failed program was:" >&5
23256 sed 's
/^
/|
/' conftest.$ac_ext >&5
23258 cat >conftest.$ac_ext <<_ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23264 $ac_includes_default
23266 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23268 typedef struct { char x; double y; } ac__type_alignof_;
23272 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23279 rm -f conftest.$ac_objext
23280 if { (ac_try="$ac_compile"
23281 case "(($ac_try" in
23282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283 *) ac_try_echo=$ac_try;;
23285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23286 (eval "$ac_compile") 2>conftest.er1
23288 grep -v '^
*+' conftest.er1 >conftest.err
23290 cat conftest.err >&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } && {
23293 test -z "$ac_c_werror_flag" ||
23294 test ! -s conftest.err
23295 } && test -s conftest.$ac_objext; then
23298 cat >conftest.$ac_ext <<_ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 $ac_includes_default
23306 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23308 typedef struct { char x; double y; } ac__type_alignof_;
23312 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_compile") 2>conftest.er1
23328 grep -v '^
*+' conftest.er1 >conftest.err
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest.$ac_objext; then
23336 ac_lo=$ac_mid; break
23338 echo "$as_me: failed program was:" >&5
23339 sed 's
/^
/|
/' conftest.$ac_ext >&5
23341 ac_hi=`expr '(' $ac_mid ')' - 1`
23342 if test $ac_mid -le $ac_hi; then
23346 ac_mid=`expr 2 '*' $ac_mid`
23349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352 echo "$as_me: failed program was:" >&5
23353 sed 's
/^
/|
/' conftest.$ac_ext >&5
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 # Binary search between lo and hi bounds.
23363 while test "x$ac_lo" != "x$ac_hi"; do
23364 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23365 cat >conftest.$ac_ext <<_ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h. */
23371 $ac_includes_default
23373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23375 typedef struct { char x; double y; } ac__type_alignof_;
23379 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_compile") 2>conftest.er1
23395 grep -v '^
*+' conftest.er1 >conftest.err
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && {
23400 test -z "$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 } && test -s conftest.$ac_objext; then
23405 echo "$as_me: failed program was:" >&5
23406 sed 's
/^
/|
/' conftest.$ac_ext >&5
23408 ac_lo=`expr '(' $ac_mid ')' + 1`
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 ?*) ac_cv_alignof_double=$ac_lo;;
23415 '') if test "$ac_cv_type_double" = yes; then
23416 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23417 See \`config.log' for more details.
" >&5
23418 echo "$as_me: error
: cannot compute alignment of double
23419 See \
`config.log' for more details." >&2;}
23420 { (exit 77); exit 77; }; }
23422 ac_cv_alignof_double=0
23426 cat >conftest.$ac_ext <<_ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23432 $ac_includes_default
23434 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23436 typedef struct { char x; double y; } ac__type_alignof_;
23437 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23438 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23440 #include <stdlib.h>
23445 FILE *f = fopen ("conftest.val", "w");
23448 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23450 long int i = longval ();
23451 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23453 fprintf (f, "%ld\n", i);
23457 unsigned long int i = ulongval ();
23458 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23460 fprintf (f, "%lu\n", i);
23462 return ferror (f) || fclose (f) != 0;
23468 rm -f conftest$ac_exeext
23469 if { (ac_try="$ac_link"
23470 case "(($ac_try" in
23471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23472 *) ac_try_echo
=$ac_try;;
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475 (eval "$ac_link") 2>&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23479 { (case "(($ac_try" in
23480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23481 *) ac_try_echo=$ac_try;;
23483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484 (eval "$ac_try") 2>&5
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; }; then
23488 ac_cv_alignof_double=`cat conftest.val
`
23490 echo "$as_me: program exited with status $ac_status" >&5
23491 echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23494 ( exit $ac_status )
23495 if test "$ac_cv_type_double" = yes; then
23496 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23497 See \`config.log
' for more details." >&5
23498 echo "$as_me: error: cannot compute alignment of double
23499 See \`config.log' for more details.
" >&2;}
23500 { (exit 77); exit 77; }; }
23502 ac_cv_alignof_double=0
23505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23509 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_double" >&5
23510 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23514 cat >>confdefs.h <<_ACEOF
23515 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23520 # Compute maximum alignment of any basic type.
23521 # We assume long's alignment is at least as strong as char, short, or int;
23522 # but we must check long long (if it exists) and double.
23524 MAX_ALIGNOF=$ac_cv_alignof_long
23525 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23526 MAX_ALIGNOF=$ac_cv_alignof_double
23528 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23529 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23532 cat >>confdefs.h <<_ACEOF
23533 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23538 # Some platforms predefine the types int8, int16, etc. Only check
23539 # a (hopefully) representative subset.
23540 { echo "$as_me:$LINENO: checking
for int8
" >&5
23541 echo $ECHO_N "checking
for int8...
$ECHO_C" >&6; }
23542 if test "${ac_cv_type_int8+set}" = set; then
23543 echo $ECHO_N "(cached
) $ECHO_C" >&6
23545 cat >conftest.$ac_ext <<_ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h. */
23552 #ifdef HAVE_SUPPORTDEFS_H
23553 #include <SupportDefs.h>
23556 typedef int8 ac__type_new_;
23560 if ((ac__type_new_ *) 0)
23562 if (sizeof (ac__type_new_))
23568 rm -f conftest.$ac_objext
23569 if { (ac_try="$ac_compile"
23570 case "(($ac_try" in
23571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23572 *) ac_try_echo=$ac_try;;
23574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23575 (eval "$ac_compile") 2>conftest.er1
23577 grep -v '^ *+' conftest.er1 >conftest.err
23579 cat conftest.err >&5
23580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23581 (exit $ac_status); } && {
23582 test -z "$ac_c_werror_flag" ||
23583 test ! -s conftest.err
23584 } && test -s conftest.$ac_objext; then
23585 ac_cv_type_int8=yes
23587 echo "$as_me: failed program was
:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23595 { echo "$as_me:$LINENO: result
: $ac_cv_type_int8" >&5
23596 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23597 if test $ac_cv_type_int8 = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define HAVE_INT8 1
23605 { echo "$as_me:$LINENO: checking
for uint8
" >&5
23606 echo $ECHO_N "checking
for uint8...
$ECHO_C" >&6; }
23607 if test "${ac_cv_type_uint8+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. */
23617 #ifdef HAVE_SUPPORTDEFS_H
23618 #include <SupportDefs.h>
23621 typedef uint8 ac__type_new_;
23625 if ((ac__type_new_ *) 0)
23627 if (sizeof (ac__type_new_))
23633 rm -f conftest.$ac_objext
23634 if { (ac_try="$ac_compile"
23635 case "(($ac_try" in
23636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637 *) ac_try_echo=$ac_try;;
23639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23640 (eval "$ac_compile") 2>conftest.er1
23642 grep -v '^ *+' conftest.er1 >conftest.err
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23646 (exit $ac_status); } && {
23647 test -z "$ac_c_werror_flag" ||
23648 test ! -s conftest.err
23649 } && test -s conftest.$ac_objext; then
23650 ac_cv_type_uint8=yes
23652 echo "$as_me: failed program was
:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23655 ac_cv_type_uint8=no
23658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint8" >&5
23661 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23662 if test $ac_cv_type_uint8 = yes; then
23664 cat >>confdefs.h <<_ACEOF
23665 #define HAVE_UINT8 1
23670 { echo "$as_me:$LINENO: checking
for int64
" >&5
23671 echo $ECHO_N "checking
for int64...
$ECHO_C" >&6; }
23672 if test "${ac_cv_type_int64+set}" = set; then
23673 echo $ECHO_N "(cached
) $ECHO_C" >&6
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23682 #ifdef HAVE_SUPPORTDEFS_H
23683 #include <SupportDefs.h>
23686 typedef int64 ac__type_new_;
23690 if ((ac__type_new_ *) 0)
23692 if (sizeof (ac__type_new_))
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23705 (eval "$ac_compile") 2>conftest.er1
23707 grep -v '^ *+' conftest.er1 >conftest.err
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest.$ac_objext; then
23715 ac_cv_type_int64=yes
23717 echo "$as_me: failed program was
:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_type_int64=no
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64" >&5
23726 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23727 if test $ac_cv_type_int64 = yes; then
23729 cat >>confdefs.h <<_ACEOF
23730 #define HAVE_INT64 1
23735 { echo "$as_me:$LINENO: checking
for uint64
" >&5
23736 echo $ECHO_N "checking
for uint64...
$ECHO_C" >&6; }
23737 if test "${ac_cv_type_uint64+set}" = set; then
23738 echo $ECHO_N "(cached
) $ECHO_C" >&6
23740 cat >conftest.$ac_ext <<_ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23747 #ifdef HAVE_SUPPORTDEFS_H
23748 #include <SupportDefs.h>
23751 typedef uint64 ac__type_new_;
23755 if ((ac__type_new_ *) 0)
23757 if (sizeof (ac__type_new_))
23763 rm -f conftest.$ac_objext
23764 if { (ac_try="$ac_compile"
23765 case "(($ac_try" in
23766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767 *) ac_try_echo=$ac_try;;
23769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23770 (eval "$ac_compile") 2>conftest.er1
23772 grep -v '^ *+' conftest.er1 >conftest.err
23774 cat conftest.err >&5
23775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23776 (exit $ac_status); } && {
23777 test -z "$ac_c_werror_flag" ||
23778 test ! -s conftest.err
23779 } && test -s conftest.$ac_objext; then
23780 ac_cv_type_uint64=yes
23782 echo "$as_me: failed program was
:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23785 ac_cv_type_uint64=no
23788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64" >&5
23791 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23792 if test $ac_cv_type_uint64 = yes; then
23794 cat >>confdefs.h <<_ACEOF
23795 #define HAVE_UINT64 1
23802 # We also check for sig_atomic_t, which *should* be defined per ANSI
23803 # C, but is missing on some old platforms.
23804 { echo "$as_me:$LINENO: checking
for sig_atomic_t
" >&5
23805 echo $ECHO_N "checking
for sig_atomic_t...
$ECHO_C" >&6; }
23806 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23807 echo $ECHO_N "(cached
) $ECHO_C" >&6
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 #include <signal.h>
23817 typedef sig_atomic_t ac__type_new_;
23821 if ((ac__type_new_ *) 0)
23823 if (sizeof (ac__type_new_))
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_compile") 2>conftest.er1
23838 grep -v '^ *+' conftest.er1 >conftest.err
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest.$ac_objext; then
23846 ac_cv_type_sig_atomic_t=yes
23848 echo "$as_me: failed program was
:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23851 ac_cv_type_sig_atomic_t=no
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23856 { echo "$as_me:$LINENO: result
: $ac_cv_type_sig_atomic_t" >&5
23857 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23858 if test $ac_cv_type_sig_atomic_t = yes; then
23860 cat >>confdefs.h <<_ACEOF
23861 #define HAVE_SIG_ATOMIC_T 1
23869 # If the user did not disable integer datetimes, check that
23870 # there is a working 64-bit integral type to use.
23871 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23872 test x"$HAVE_LONG_INT_64" = x"no
" &&
23873 test x"$HAVE_LONG_LONG_INT_64" = x"no
" &&
23874 test x"$HAVE_INT64" = x"no
" ; then
23875 { { echo "$as_me:$LINENO: error
:
23876 Integer-based datetime support requires a
64-bit integer
type,
23877 but no such
type could be found. The
--disable-integer-datetimes
23878 configure option can be used to disable integer-based storage
23879 of datetime values.
" >&5
23880 echo "$as_me: error
:
23881 Integer-based datetime support requires a
64-bit integer
type,
23882 but no such
type could be found. The
--disable-integer-datetimes
23883 configure option can be used to disable integer-based storage
23884 of datetime values.
" >&2;}
23885 { (exit 1); exit 1; }; }
23889 if test "$PORTNAME" != "win32
"
23891 { echo "$as_me:$LINENO: checking
for POSIX signal interface
" >&5
23892 echo $ECHO_N "checking
for POSIX signal interface...
$ECHO_C" >&6; }
23893 if test "${pgac_cv_func_posix_signals+set}" = set; then
23894 echo $ECHO_N "(cached
) $ECHO_C" >&6
23896 cat >conftest.$ac_ext <<_ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h. */
23902 #include <signal.h>
23907 struct sigaction act, oact;
23908 sigemptyset(&act.sa_mask);
23909 act.sa_flags = SA_RESTART;
23910 sigaction(0, &act, &oact);
23915 rm -f conftest.$ac_objext conftest$ac_exeext
23916 if { (ac_try="$ac_link"
23917 case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_link") 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest$ac_exeext &&
23932 $as_test_x conftest$ac_exeext; then
23933 pgac_cv_func_posix_signals=yes
23935 echo "$as_me: failed program was
:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 pgac_cv_func_posix_signals=no
23941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23942 conftest$ac_exeext conftest.$ac_ext
23944 { echo "$as_me:$LINENO: result
: $pgac_cv_func_posix_signals" >&5
23945 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23946 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23948 cat >>confdefs.h <<\_ACEOF
23949 #define HAVE_POSIX_SIGNALS
23953 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23955 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23956 { { echo "$as_me:$LINENO: error
:
23957 Thread-safety requires POSIX signals
, which are not supported by this
23958 operating system.
" >&5
23959 echo "$as_me: error
:
23960 Thread-safety requires POSIX signals
, which are not supported by this
23961 operating system.
" >&2;}
23962 { (exit 1); exit 1; }; }
23966 if test $ac_cv_func_fseeko = yes; then
23967 # Check whether --enable-largefile was given.
23968 if test "${enable_largefile+set}" = set; then
23969 enableval=$enable_largefile;
23972 if test "$enable_largefile" != no; then
23974 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
23975 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
23976 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23977 echo $ECHO_N "(cached
) $ECHO_C" >&6
23979 ac_cv_sys_largefile_CC=no
23980 if test "$GCC" != yes; then
23983 # IRIX 6.2 and later do not support large files by default,
23984 # so use the C compiler's -n32 option if that helps.
23985 cat >conftest.$ac_ext <<_ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h. */
23991 #include <sys/types.h>
23992 /* Check that off_t can represent 2**63 - 1 correctly.
23993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23994 since some C++ compilers masquerading as C compilers
23995 incorrectly reject 9223372036854775807. */
23996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23998 && LARGE_OFF_T % 2147483647 == 1)
24008 rm -f conftest.$ac_objext
24009 if { (ac_try="$ac_compile"
24010 case "(($ac_try" in
24011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012 *) ac_try_echo=$ac_try;;
24014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24015 (eval "$ac_compile") 2>conftest.er1
24017 grep -v '^ *+' conftest.er1 >conftest.err
24019 cat conftest.err >&5
24020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24021 (exit $ac_status); } && {
24022 test -z "$ac_c_werror_flag" ||
24023 test ! -s conftest.err
24024 } && test -s conftest.$ac_objext; then
24027 echo "$as_me: failed program was
:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24033 rm -f core conftest.err conftest.$ac_objext
24035 rm -f conftest.$ac_objext
24036 if { (ac_try="$ac_compile"
24037 case "(($ac_try" in
24038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039 *) ac_try_echo=$ac_try;;
24041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24042 (eval "$ac_compile") 2>conftest.er1
24044 grep -v '^ *+' conftest.er1 >conftest.err
24046 cat conftest.err >&5
24047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24048 (exit $ac_status); } && {
24049 test -z "$ac_c_werror_flag" ||
24050 test ! -s conftest.err
24051 } && test -s conftest.$ac_objext; then
24052 ac_cv_sys_largefile_CC=' -n32'; break
24054 echo "$as_me: failed program was
:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24060 rm -f core conftest.err conftest.$ac_objext
24064 rm -f conftest.$ac_ext
24067 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
24068 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24069 if test "$ac_cv_sys_largefile_CC" != no; then
24070 CC=$CC$ac_cv_sys_largefile_CC
24073 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
24074 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
24075 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24076 echo $ECHO_N "(cached
) $ECHO_C" >&6
24079 cat >conftest.$ac_ext <<_ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h. */
24085 #include <sys/types.h>
24086 /* Check that off_t can represent 2**63 - 1 correctly.
24087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24088 since some C++ compilers masquerading as C compilers
24089 incorrectly reject 9223372036854775807. */
24090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24092 && LARGE_OFF_T % 2147483647 == 1)
24102 rm -f conftest.$ac_objext
24103 if { (ac_try="$ac_compile"
24104 case "(($ac_try" in
24105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106 *) ac_try_echo=$ac_try;;
24108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24109 (eval "$ac_compile") 2>conftest.er1
24111 grep -v '^ *+' conftest.er1 >conftest.err
24113 cat conftest.err >&5
24114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24115 (exit $ac_status); } && {
24116 test -z "$ac_c_werror_flag" ||
24117 test ! -s conftest.err
24118 } && test -s conftest.$ac_objext; then
24119 ac_cv_sys_file_offset_bits=no; break
24121 echo "$as_me: failed program was
:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 cat >conftest.$ac_ext <<_ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 #define _FILE_OFFSET_BITS 64
24135 #include <sys/types.h>
24136 /* Check that off_t can represent 2**63 - 1 correctly.
24137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24138 since some C++ compilers masquerading as C compilers
24139 incorrectly reject 9223372036854775807. */
24140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24142 && LARGE_OFF_T % 2147483647 == 1)
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156 *) ac_try_echo=$ac_try;;
24158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24159 (eval "$ac_compile") 2>conftest.er1
24161 grep -v '^ *+' conftest.er1 >conftest.err
24163 cat conftest.err >&5
24164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24165 (exit $ac_status); } && {
24166 test -z "$ac_c_werror_flag" ||
24167 test ! -s conftest.err
24168 } && test -s conftest.$ac_objext; then
24169 ac_cv_sys_file_offset_bits=64; break
24171 echo "$as_me: failed program was
:" >&5
24172 sed 's/^/| /' conftest.$ac_ext >&5
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 ac_cv_sys_file_offset_bits=unknown
24182 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
24183 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24184 case $ac_cv_sys_file_offset_bits in #(
24187 cat >>confdefs.h <<_ACEOF
24188 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24193 if test $ac_cv_sys_file_offset_bits = unknown; then
24194 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
24195 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
24196 if test "${ac_cv_sys_large_files+set}" = set; then
24197 echo $ECHO_N "(cached
) $ECHO_C" >&6
24200 cat >conftest.$ac_ext <<_ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24206 #include <sys/types.h>
24207 /* Check that off_t can represent 2**63 - 1 correctly.
24208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24209 since some C++ compilers masquerading as C compilers
24210 incorrectly reject 9223372036854775807. */
24211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24213 && LARGE_OFF_T % 2147483647 == 1)
24223 rm -f conftest.$ac_objext
24224 if { (ac_try="$ac_compile"
24225 case "(($ac_try" in
24226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227 *) ac_try_echo=$ac_try;;
24229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24230 (eval "$ac_compile") 2>conftest.er1
24232 grep -v '^ *+' conftest.er1 >conftest.err
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24236 (exit $ac_status); } && {
24237 test -z "$ac_c_werror_flag" ||
24238 test ! -s conftest.err
24239 } && test -s conftest.$ac_objext; then
24240 ac_cv_sys_large_files=no; break
24242 echo "$as_me: failed program was
:" >&5
24243 sed 's/^/| /' conftest.$ac_ext >&5
24248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24249 cat >conftest.$ac_ext <<_ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24255 #define _LARGE_FILES 1
24256 #include <sys/types.h>
24257 /* Check that off_t can represent 2**63 - 1 correctly.
24258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24259 since some C++ compilers masquerading as C compilers
24260 incorrectly reject 9223372036854775807. */
24261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24263 && LARGE_OFF_T % 2147483647 == 1)
24273 rm -f conftest.$ac_objext
24274 if { (ac_try="$ac_compile"
24275 case "(($ac_try" in
24276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277 *) ac_try_echo=$ac_try;;
24279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24280 (eval "$ac_compile") 2>conftest.er1
24282 grep -v '^ *+' conftest.er1 >conftest.err
24284 cat conftest.err >&5
24285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24286 (exit $ac_status); } && {
24287 test -z "$ac_c_werror_flag" ||
24288 test ! -s conftest.err
24289 } && test -s conftest.$ac_objext; then
24290 ac_cv_sys_large_files=1; break
24292 echo "$as_me: failed program was
:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24299 ac_cv_sys_large_files=unknown
24303 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
24304 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24305 case $ac_cv_sys_large_files in #(
24308 cat >>confdefs.h <<_ACEOF
24309 #define _LARGE_FILES $ac_cv_sys_large_files
24319 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24320 { echo "$as_me:$LINENO: checking
for off_t
" >&5
24321 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
24322 if test "${ac_cv_type_off_t+set}" = set; then
24323 echo $ECHO_N "(cached
) $ECHO_C" >&6
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 $ac_includes_default
24332 typedef off_t ac__type_new_;
24336 if ((ac__type_new_ *) 0)
24338 if (sizeof (ac__type_new_))
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24351 (eval "$ac_compile") 2>conftest.er1
24353 grep -v '^ *+' conftest.er1 >conftest.err
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24357 (exit $ac_status); } && {
24358 test -z "$ac_c_werror_flag" ||
24359 test ! -s conftest.err
24360 } && test -s conftest.$ac_objext; then
24361 ac_cv_type_off_t=yes
24363 echo "$as_me: failed program was
:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_cv_type_off_t=no
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
24372 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24374 # The cast to long int works around a bug in the HP C Compiler
24375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24377 # This bug is HP SR number 8606223364.
24378 { echo "$as_me:$LINENO: checking size of off_t
" >&5
24379 echo $ECHO_N "checking size of off_t...
$ECHO_C" >&6; }
24380 if test "${ac_cv_sizeof_off_t+set}" = set; then
24381 echo $ECHO_N "(cached
) $ECHO_C" >&6
24383 if test "$cross_compiling" = yes; then
24384 # Depending upon the size, compute the lo and hi bounds.
24385 cat >conftest.$ac_ext <<_ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 $ac_includes_default
24392 typedef off_t ac__type_sizeof_;
24396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24403 rm -f conftest.$ac_objext
24404 if { (ac_try="$ac_compile"
24405 case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_compile") 2>conftest.er1
24412 grep -v '^ *+' conftest.er1 >conftest.err
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest.$ac_objext; then
24422 cat >conftest.$ac_ext <<_ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24429 typedef off_t ac__type_sizeof_;
24433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24447 (eval "$ac_compile") 2>conftest.er1
24449 grep -v '^ *+' conftest.er1 >conftest.err
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest.$ac_objext; then
24457 ac_hi=$ac_mid; break
24459 echo "$as_me: failed program was
:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24462 ac_lo=`expr $ac_mid + 1`
24463 if test $ac_lo -le $ac_mid; then
24467 ac_mid=`expr 2 '*' $ac_mid + 1`
24470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24473 echo "$as_me: failed program was
:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476 cat >conftest.$ac_ext <<_ACEOF
24479 cat confdefs.h >>conftest.$ac_ext
24480 cat >>conftest.$ac_ext <<_ACEOF
24481 /* end confdefs.h. */
24482 $ac_includes_default
24483 typedef off_t ac__type_sizeof_;
24487 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24494 rm -f conftest.$ac_objext
24495 if { (ac_try="$ac_compile"
24496 case "(($ac_try" in
24497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498 *) ac_try_echo=$ac_try;;
24500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24501 (eval "$ac_compile") 2>conftest.er1
24503 grep -v '^ *+' conftest.er1 >conftest.err
24505 cat conftest.err >&5
24506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24507 (exit $ac_status); } && {
24508 test -z "$ac_c_werror_flag" ||
24509 test ! -s conftest.err
24510 } && test -s conftest.$ac_objext; then
24513 cat >conftest.$ac_ext <<_ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h. */
24519 $ac_includes_default
24520 typedef off_t ac__type_sizeof_;
24524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24531 rm -f conftest.$ac_objext
24532 if { (ac_try="$ac_compile"
24533 case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24538 (eval "$ac_compile") 2>conftest.er1
24540 grep -v '^ *+' conftest.er1 >conftest.err
24542 cat conftest.err >&5
24543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24544 (exit $ac_status); } && {
24545 test -z "$ac_c_werror_flag" ||
24546 test ! -s conftest.err
24547 } && test -s conftest.$ac_objext; then
24548 ac_lo=$ac_mid; break
24550 echo "$as_me: failed program was
:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24553 ac_hi=`expr '(' $ac_mid ')' - 1`
24554 if test $ac_mid -le $ac_hi; then
24558 ac_mid=`expr 2 '*' $ac_mid`
24561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24564 echo "$as_me: failed program was
:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 # Binary search between lo and hi bounds.
24575 while test "x
$ac_lo" != "x
$ac_hi"; do
24576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 $ac_includes_default
24584 typedef off_t ac__type_sizeof_;
24588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24595 rm -f conftest.$ac_objext
24596 if { (ac_try="$ac_compile"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_compile") 2>conftest.er1
24604 grep -v '^ *+' conftest.er1 >conftest.err
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24608 (exit $ac_status); } && {
24609 test -z "$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest.$ac_objext; then
24614 echo "$as_me: failed program was
:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ac_lo=`expr '(' $ac_mid ')' + 1`
24620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24623 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24624 '') if test "$ac_cv_type_off_t" = yes; then
24625 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
24626 See \
`config.log' for more details." >&5
24627 echo "$as_me: error: cannot compute sizeof (off_t)
24628 See \`config.log
' for more details." >&2;}
24629 { (exit 77); exit 77; }; }
24631 ac_cv_sizeof_off_t=0
24635 cat >conftest.$ac_ext <<_ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24641 $ac_includes_default
24642 typedef off_t ac__type_sizeof_;
24643 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24644 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24646 #include <stdlib.h>
24651 FILE *f = fopen ("conftest.val", "w");
24654 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24656 long int i = longval ();
24657 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24659 fprintf (f, "%ld\n", i);
24663 unsigned long int i = ulongval ();
24664 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24666 fprintf (f, "%lu\n", i);
24668 return ferror (f) || fclose (f) != 0;
24674 rm -f conftest$ac_exeext
24675 if { (ac_try="$ac_link"
24676 case "(($ac_try" in
24677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24678 *) ac_try_echo=$ac_try;;
24680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24681 (eval "$ac_link") 2>&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24685 { (case "(($ac_try" in
24686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24687 *) ac_try_echo=$ac_try;;
24689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24690 (eval "$ac_try") 2>&5
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); }; }; then
24694 ac_cv_sizeof_off_t=`cat conftest.val`
24696 echo "$as_me: program exited with status $ac_status" >&5
24697 echo "$as_me: failed program was:" >&5
24698 sed 's
/^
/|
/' conftest.$ac_ext >&5
24700 ( exit $ac_status )
24701 if test "$ac_cv_type_off_t" = yes; then
24702 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24703 See \`config.log' for more details.
" >&5
24704 echo "$as_me: error
: cannot compute sizeof
(off_t
)
24705 See \
`config.log' for more details." >&2;}
24706 { (exit 77); exit 77; }; }
24708 ac_cv_sizeof_off_t=0
24711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24715 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24716 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24720 cat >>confdefs.h <<_ACEOF
24721 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24726 # If we don't have largefile support, can't handle segsize >= 2GB.
24727 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24728 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24729 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24730 { (exit 1); exit 1; }; }
24733 # SunOS doesn't handle negative byte comparisons properly with +/- return
24734 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24735 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24736 if test "${ac_cv_func_memcmp_working+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24739 if test "$cross_compiling" = yes; then
24740 ac_cv_func_memcmp_working=no
24742 cat >conftest.$ac_ext <<_ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h. */
24748 $ac_includes_default
24753 /* Some versions of memcmp are not 8-bit clean. */
24754 char c0 = '\100', c1 = '\200', c2 = '\201';
24755 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24758 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24759 or more and with at least one buffer not starting on a 4-byte boundary.
24760 William Lewis provided this test program. */
24765 for (i = 0; i < 4; i++)
24769 strcpy (a, "--------01111111");
24770 strcpy (b, "--------10000000");
24771 if (memcmp (a, b, 16) >= 0)
24781 rm -f conftest$ac_exeext
24782 if { (ac_try="$ac_link"
24783 case "(($ac_try" in
24784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24785 *) ac_try_echo
=$ac_try;;
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788 (eval "$ac_link") 2>&5
24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24792 { (case "(($ac_try" in
24793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797 (eval "$ac_try") 2>&5
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_func_memcmp_working=yes
24803 echo "$as_me: program exited with status $ac_status" >&5
24804 echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24807 ( exit $ac_status )
24808 ac_cv_func_memcmp_working=no
24810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24815 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24816 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24817 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24818 *" memcmp.$ac_objext "* ) ;;
24819 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24825 # Check for fnmatch()
24826 { echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
24827 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6; }
24828 if test "${ac_cv_func_fnmatch_works+set}" = set; then
24829 echo $ECHO_N "(cached) $ECHO_C" >&6
24831 # Some versions of Solaris, SCO, and the GNU C Library
24832 # have a broken or incompatible fnmatch.
24833 # So we run a test program. If we are cross-compiling, take no chance.
24834 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
24835 if test "$cross_compiling" = yes; then
24836 ac_cv_func_fnmatch_works=cross
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 #include <fnmatch.h>
24845 # define y(a, b, c) (fnmatch (a, b, c) == 0)
24846 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
24852 (!(y ("a*", "abc", 0)
24853 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
24854 && y ("a\\\\bc", "abc", 0)
24855 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
24856 && y ("*x", ".x", 0)
24857 && n ("*x", ".x", FNM_PERIOD)
24863 rm -f conftest$ac_exeext
24864 if { (ac_try="$ac_link"
24865 case "(($ac_try" in
24866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24867 *) ac_try_echo
=$ac_try;;
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870 (eval "$ac_link") 2>&5
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24874 { (case "(($ac_try" in
24875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24876 *) ac_try_echo=$ac_try;;
24878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879 (eval "$ac_try") 2>&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; }; then
24883 ac_cv_func_fnmatch_works=yes
24885 echo "$as_me: program exited with status $ac_status" >&5
24886 echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24889 ( exit $ac_status )
24890 ac_cv_func_fnmatch_works=no
24892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24897 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
24898 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6; }
24899 if test $ac_cv_func_fnmatch_works = yes; then
24901 cat >>confdefs.h <<\_ACEOF
24902 #define HAVE_FNMATCH 1
24909 if test x"$ac_cv_func_fnmatch_works" != x"yes"; then
24910 case " $LIBOBJS " in
24911 *" fnmatch.$ac_objext "* ) ;;
24912 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
24918 # Select semaphore implementation type.
24919 if test "$PORTNAME" != "win32"; then
24920 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24922 cat >>confdefs.h <<\_ACEOF
24923 #define USE_NAMED_POSIX_SEMAPHORES 1
24926 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24928 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24930 cat >>confdefs.h <<\_ACEOF
24931 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24934 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24937 cat >>confdefs.h <<\_ACEOF
24938 #define USE_SYSV_SEMAPHORES 1
24941 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24946 cat >>confdefs.h <<\_ACEOF
24947 #define USE_WIN32_SEMAPHORES 1
24950 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24954 # Select shared-memory implementation type.
24955 if test "$PORTNAME" != "win32"; then
24957 cat >>confdefs.h <<\_ACEOF
24958 #define USE_SYSV_SHARED_MEMORY 1
24961 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24964 cat >>confdefs.h <<\_ACEOF
24965 #define USE_WIN32_SHARED_MEMORY 1
24968 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24971 # If not set in template file, set bytes to use libc memset()
24972 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24973 MEMSET_LOOP_LIMIT=1024
24976 cat >>confdefs.h <<_ACEOF
24977 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24982 if test "$enable_nls" = yes ; then
24984 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24985 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24986 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24987 echo $ECHO_N "(cached) $ECHO_C" >&6
24989 ac_func_search_save_LIBS=$LIBS
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24997 /* Override any GCC internal prototype to avoid an error.
24998 Use char because int might match the return type of a GCC
24999 builtin and then its argument prototype would still apply. */
25003 char bind_textdomain_codeset ();
25007 return bind_textdomain_codeset ();
25012 for ac_lib in '' intl; do
25013 if test -z "$ac_lib"; then
25014 ac_res="none required"
25017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25019 rm -f conftest.$ac_objext conftest$ac_exeext
25020 if { (ac_try="$ac_link"
25021 case "(($ac_try" in
25022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25023 *) ac_try_echo
=$ac_try;;
25025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25026 (eval "$ac_link") 2>conftest.er1
25028 grep -v '^ *+' conftest.er1
>conftest.err
25030 cat conftest.err
>&5
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); } && {
25033 test -z "$ac_c_werror_flag" ||
25034 test ! -s conftest.err
25035 } && test -s conftest
$ac_exeext &&
25036 $as_test_x conftest
$ac_exeext; then
25037 ac_cv_search_bind_textdomain_codeset
=$ac_res
25039 echo "$as_me: failed program was:" >&5
25040 sed 's/^/| /' conftest.
$ac_ext >&5
25045 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25047 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25051 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25054 ac_cv_search_bind_textdomain_codeset
=no
25056 rm conftest.
$ac_ext
25057 LIBS
=$ac_func_search_save_LIBS
25059 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25060 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25061 ac_res
=$ac_cv_search_bind_textdomain_codeset
25062 if test "$ac_res" != no
; then
25063 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25066 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25067 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25068 { (exit 1); exit 1; }; }
25071 if test "${ac_cv_header_libintl_h+set}" = set; then
25072 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25073 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25074 if test "${ac_cv_header_libintl_h+set}" = set; then
25075 echo $ECHO_N "(cached) $ECHO_C" >&6
25077 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25078 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25080 # Is the header compilable?
25081 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25082 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25083 cat >conftest.
$ac_ext <<_ACEOF
25086 cat confdefs.h
>>conftest.
$ac_ext
25087 cat >>conftest.
$ac_ext <<_ACEOF
25088 /* end confdefs.h. */
25089 $ac_includes_default
25090 #include <libintl.h>
25092 rm -f conftest.
$ac_objext
25093 if { (ac_try
="$ac_compile"
25094 case "(($ac_try" in
25095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_compile") 2>conftest.er1
25101 grep -v '^ *+' conftest.er1 >conftest.err
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } && {
25106 test -z "$ac_c_werror_flag" ||
25107 test ! -s conftest.err
25108 } && test -s conftest.$ac_objext; then
25109 ac_header_compiler=yes
25111 echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25114 ac_header_compiler=no
25117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25119 echo "${ECHO_T}$ac_header_compiler" >&6; }
25121 # Is the header present?
25122 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25123 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25124 cat >conftest.$ac_ext <<_ACEOF
25127 cat confdefs.h >>conftest.$ac_ext
25128 cat >>conftest.$ac_ext <<_ACEOF
25129 /* end confdefs.h. */
25130 #include <libintl.h>
25132 if { (ac_try="$ac_cpp conftest.$ac_ext"
25133 case "(($ac_try" in
25134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25135 *) ac_try_echo
=$ac_try;;
25137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25140 grep -v '^ *+' conftest.er1
>conftest.err
25142 cat conftest.err
>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } >/dev
/null
&& {
25145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25146 test ! -s conftest.err
25148 ac_header_preproc
=yes
25150 echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.
$ac_ext >&5
25153 ac_header_preproc
=no
25156 rm -f conftest.err conftest.
$ac_ext
25157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25158 echo "${ECHO_T}$ac_header_preproc" >&6; }
25160 # So? What about this header?
25161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25163 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25164 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25165 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25166 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25167 ac_header_preproc
=yes
25170 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25171 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25172 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25173 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25174 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25175 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25176 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25177 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25178 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25179 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25180 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25181 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25183 ## ---------------------------------------- ##
25184 ## Report this to pgsql-bugs@postgresql.org ##
25185 ## ---------------------------------------- ##
25187 ) |
sed "s/^/$as_me: WARNING: /" >&2
25190 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25191 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25192 if test "${ac_cv_header_libintl_h+set}" = set; then
25193 echo $ECHO_N "(cached) $ECHO_C" >&6
25195 ac_cv_header_libintl_h
=$ac_header_preproc
25197 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25198 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25201 if test $ac_cv_header_libintl_h = yes; then
25204 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25205 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25206 { (exit 1); exit 1; }; }
25210 for ac_prog
in msgfmt
25212 # Extract the first word of "$ac_prog", so it can be a program name with args.
25213 set dummy
$ac_prog; ac_word
=$2
25214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25216 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25217 echo $ECHO_N "(cached) $ECHO_C" >&6
25219 if test -n "$MSGFMT"; then
25220 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
25222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25223 for as_dir
in $PATH
25226 test -z "$as_dir" && as_dir
=.
25227 for ac_exec_ext
in '' $ac_executable_extensions; do
25228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25229 ac_cv_prog_MSGFMT
="$ac_prog"
25230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25239 MSGFMT
=$ac_cv_prog_MSGFMT
25240 if test -n "$MSGFMT"; then
25241 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25242 echo "${ECHO_T}$MSGFMT" >&6; }
25244 { echo "$as_me:$LINENO: result: no" >&5
25245 echo "${ECHO_T}no" >&6; }
25249 test -n "$MSGFMT" && break
25252 if test -z "$MSGFMT"; then
25253 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25254 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25255 { (exit 1); exit 1; }; }
25257 for ac_prog
in msgmerge
25259 # Extract the first word of "$ac_prog", so it can be a program name with args.
25260 set dummy
$ac_prog; ac_word
=$2
25261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25263 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25264 echo $ECHO_N "(cached) $ECHO_C" >&6
25266 if test -n "$MSGMERGE"; then
25267 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
25269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25270 for as_dir
in $PATH
25273 test -z "$as_dir" && as_dir
=.
25274 for ac_exec_ext
in '' $ac_executable_extensions; do
25275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25276 ac_cv_prog_MSGMERGE
="$ac_prog"
25277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25286 MSGMERGE
=$ac_cv_prog_MSGMERGE
25287 if test -n "$MSGMERGE"; then
25288 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25289 echo "${ECHO_T}$MSGMERGE" >&6; }
25291 { echo "$as_me:$LINENO: result: no" >&5
25292 echo "${ECHO_T}no" >&6; }
25296 test -n "$MSGMERGE" && break
25299 for ac_prog
in xgettext
25301 # Extract the first word of "$ac_prog", so it can be a program name with args.
25302 set dummy
$ac_prog; ac_word
=$2
25303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25305 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25308 if test -n "$XGETTEXT"; then
25309 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
25311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25312 for as_dir
in $PATH
25315 test -z "$as_dir" && as_dir
=.
25316 for ac_exec_ext
in '' $ac_executable_extensions; do
25317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25318 ac_cv_prog_XGETTEXT
="$ac_prog"
25319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25328 XGETTEXT
=$ac_cv_prog_XGETTEXT
25329 if test -n "$XGETTEXT"; then
25330 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25331 echo "${ECHO_T}$XGETTEXT" >&6; }
25333 { echo "$as_me:$LINENO: result: no" >&5
25334 echo "${ECHO_T}no" >&6; }
25338 test -n "$XGETTEXT" && break
25344 # Check for Tcl configuration script tclConfig.sh
25345 if test "$with_tcl" = yes; then
25346 for ac_prog
in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25348 # Extract the first word of "$ac_prog", so it can be a program name with args.
25349 set dummy
$ac_prog; ac_word
=$2
25350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25352 if test "${ac_cv_path_TCLSH+set}" = set; then
25353 echo $ECHO_N "(cached) $ECHO_C" >&6
25357 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
25360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25361 for as_dir
in $PATH
25364 test -z "$as_dir" && as_dir
=.
25365 for ac_exec_ext
in '' $ac_executable_extensions; do
25366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25367 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
25368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25378 TCLSH
=$ac_cv_path_TCLSH
25379 if test -n "$TCLSH"; then
25380 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25381 echo "${ECHO_T}$TCLSH" >&6; }
25383 { echo "$as_me:$LINENO: result: no" >&5
25384 echo "${ECHO_T}no" >&6; }
25388 test -n "$TCLSH" && break
25391 if test x
"$TCLSH" = x
""; then
25392 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25393 echo "$as_me: error: Tcl shell not found" >&2;}
25394 { (exit 1); exit 1; }; }
25397 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25398 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25399 # Let user override test
25400 if test -z "$TCL_CONFIG_SH"; then
25401 pgac_test_dirs
="$with_tclconfig"
25403 set X
$pgac_test_dirs; shift
25404 if test $# -eq 0; then
25405 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25406 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25407 { (exit 1); exit 1; }; }
25408 set X
`echo 'puts $auto_path' | $TCLSH`; shift
25412 if test -r "$pgac_dir/tclConfig.sh"; then
25413 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
25419 if test -z "$TCL_CONFIG_SH"; then
25420 { echo "$as_me:$LINENO: result: no" >&5
25421 echo "${ECHO_T}no" >&6; }
25422 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25423 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25424 { (exit 1); exit 1; }; }
25426 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25427 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25433 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
25434 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
25435 eval TCL_LIBS
=\"$TCL_LIBS\"
25436 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
25437 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
25439 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25440 ac_save_CPPFLAGS
=$CPPFLAGS
25441 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
25442 if test "${ac_cv_header_tcl_h+set}" = set; then
25443 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25444 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25445 if test "${ac_cv_header_tcl_h+set}" = set; then
25446 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25449 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25451 # Is the header compilable?
25452 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25453 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25454 cat >conftest.
$ac_ext <<_ACEOF
25457 cat confdefs.h
>>conftest.
$ac_ext
25458 cat >>conftest.
$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25460 $ac_includes_default
25463 rm -f conftest.
$ac_objext
25464 if { (ac_try
="$ac_compile"
25465 case "(($ac_try" in
25466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25470 (eval "$ac_compile") 2>conftest.er1
25472 grep -v '^ *+' conftest.er1 >conftest.err
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && {
25477 test -z "$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25479 } && test -s conftest.$ac_objext; then
25480 ac_header_compiler=yes
25482 echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25485 ac_header_compiler=no
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25490 echo "${ECHO_T}$ac_header_compiler" >&6; }
25492 # Is the header present?
25493 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25494 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25495 cat >conftest.$ac_ext <<_ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h. */
25503 if { (ac_try="$ac_cpp conftest.$ac_ext"
25504 case "(($ac_try" in
25505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25506 *) ac_try_echo
=$ac_try;;
25508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25511 grep -v '^ *+' conftest.er1
>conftest.err
25513 cat conftest.err
>&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } >/dev
/null
&& {
25516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25517 test ! -s conftest.err
25519 ac_header_preproc
=yes
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.
$ac_ext >&5
25524 ac_header_preproc
=no
25527 rm -f conftest.err conftest.
$ac_ext
25528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25529 echo "${ECHO_T}$ac_header_preproc" >&6; }
25531 # So? What about this header?
25532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25534 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25535 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25536 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25537 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25538 ac_header_preproc
=yes
25541 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25542 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25543 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25544 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25545 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25546 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25547 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25548 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25549 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25550 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25551 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25552 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25554 ## ---------------------------------------- ##
25555 ## Report this to pgsql-bugs@postgresql.org ##
25556 ## ---------------------------------------- ##
25558 ) |
sed "s/^/$as_me: WARNING: /" >&2
25561 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25562 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25563 if test "${ac_cv_header_tcl_h+set}" = set; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25566 ac_cv_header_tcl_h
=$ac_header_preproc
25568 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25569 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25572 if test $ac_cv_header_tcl_h = yes; then
25575 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25576 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25577 { (exit 1); exit 1; }; }
25581 CPPFLAGS
=$ac_save_CPPFLAGS
25585 # Check for DocBook and tools
25587 for ac_prog
in onsgmls nsgmls
25589 # Extract the first word of "$ac_prog", so it can be a program name with args.
25590 set dummy
$ac_prog; ac_word
=$2
25591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25593 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25594 echo $ECHO_N "(cached) $ECHO_C" >&6
25596 if test -n "$NSGMLS"; then
25597 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
25599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25600 for as_dir
in $PATH
25603 test -z "$as_dir" && as_dir
=.
25604 for ac_exec_ext
in '' $ac_executable_extensions; do
25605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25606 ac_cv_prog_NSGMLS
="$ac_prog"
25607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25616 NSGMLS
=$ac_cv_prog_NSGMLS
25617 if test -n "$NSGMLS"; then
25618 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25619 echo "${ECHO_T}$NSGMLS" >&6; }
25621 { echo "$as_me:$LINENO: result: no" >&5
25622 echo "${ECHO_T}no" >&6; }
25626 test -n "$NSGMLS" && break
25629 for ac_prog
in openjade jade
25631 # Extract the first word of "$ac_prog", so it can be a program name with args.
25632 set dummy
$ac_prog; ac_word
=$2
25633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25635 if test "${ac_cv_prog_JADE+set}" = set; then
25636 echo $ECHO_N "(cached) $ECHO_C" >&6
25638 if test -n "$JADE"; then
25639 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
25641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25642 for as_dir
in $PATH
25645 test -z "$as_dir" && as_dir
=.
25646 for ac_exec_ext
in '' $ac_executable_extensions; do
25647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25648 ac_cv_prog_JADE
="$ac_prog"
25649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25658 JADE
=$ac_cv_prog_JADE
25659 if test -n "$JADE"; then
25660 { echo "$as_me:$LINENO: result: $JADE" >&5
25661 echo "${ECHO_T}$JADE" >&6; }
25663 { echo "$as_me:$LINENO: result: no" >&5
25664 echo "${ECHO_T}no" >&6; }
25668 test -n "$JADE" && break
25672 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25673 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25674 if test "${pgac_cv_check_docbook+set}" = set; then
25675 echo $ECHO_N "(cached) $ECHO_C" >&6
25677 cat >conftest.sgml
<<EOF
25678 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25680 <title>test</title>
25682 <title>random</title>
25684 <title>testsect</title>
25691 pgac_cv_check_docbook
=no
25693 if test -n "$NSGMLS"; then
25694 $NSGMLS -s conftest.sgml
1>&5 2>&1
25695 if test $?
-eq 0; then
25696 pgac_cv_check_docbook
=yes
25699 rm -f conftest.sgml
25701 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25702 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25704 have_docbook
=$pgac_cv_check_docbook
25707 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25708 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25709 if test "${pgac_cv_path_stylesheets+set}" = set; then
25710 echo $ECHO_N "(cached) $ECHO_C" >&6
25712 if test -n "$DOCBOOKSTYLE"; then
25713 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
25715 for pgac_prefix
in /usr
/usr
/local /opt
/sw
; do
25716 for pgac_infix
in share lib
; do
25717 for pgac_postfix
in \
25718 sgml
/stylesheets
/nwalsh-modular \
25719 sgml
/stylesheets
/docbook \
25720 sgml
/stylesheets
/dsssl
/docbook \
25721 sgml
/docbook-dsssl \
25722 sgml
/docbook
/dsssl
/modular \
25723 sgml
/docbook
/stylesheet
/dsssl
/modular \
25724 sgml
/docbook
/dsssl-stylesheets \
25725 sgml
/dsssl
/docbook-dsssl-nwalsh
25727 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
25728 if test -r "$pgac_candidate/html/docbook.dsl" \
25729 && test -r "$pgac_candidate/print/docbook.dsl"
25731 pgac_cv_path_stylesheets
=$pgac_candidate
25740 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
25742 if test -n "$DOCBOOKSTYLE"; then
25743 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25744 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25746 { echo "$as_me:$LINENO: result: no" >&5
25747 echo "${ECHO_T}no" >&6; }
25749 if test -n "$DOCBOOKSTYLE"; then
25750 for ac_prog
in collateindex.pl
25752 # Extract the first word of "$ac_prog", so it can be a program name with args.
25753 set dummy
$ac_prog; ac_word
=$2
25754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25756 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25759 case $COLLATEINDEX in
25761 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25765 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
25768 test -z "$as_dir" && as_dir
=.
25769 for ac_exec_ext
in '' $ac_executable_extensions; do
25770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25771 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25782 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25783 if test -n "$COLLATEINDEX"; then
25784 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25785 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25787 { echo "$as_me:$LINENO: result: no" >&5
25788 echo "${ECHO_T}no" >&6; }
25792 test -n "$COLLATEINDEX" && break
25796 for ac_prog
in collateindex.pl
25798 # Extract the first word of "$ac_prog", so it can be a program name with args.
25799 set dummy
$ac_prog; ac_word
=$2
25800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25802 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25803 echo $ECHO_N "(cached) $ECHO_C" >&6
25805 case $COLLATEINDEX in
25807 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25811 for as_dir
in $PATH
25814 test -z "$as_dir" && as_dir
=.
25815 for ac_exec_ext
in '' $ac_executable_extensions; do
25816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25817 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25828 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25829 if test -n "$COLLATEINDEX"; then
25830 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25831 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25833 { echo "$as_me:$LINENO: result: no" >&5
25834 echo "${ECHO_T}no" >&6; }
25838 test -n "$COLLATEINDEX" && break
25842 for ac_prog
in sgmlspl
25844 # Extract the first word of "$ac_prog", so it can be a program name with args.
25845 set dummy
$ac_prog; ac_word
=$2
25846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25848 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25849 echo $ECHO_N "(cached) $ECHO_C" >&6
25851 if test -n "$SGMLSPL"; then
25852 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
25854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25855 for as_dir
in $PATH
25858 test -z "$as_dir" && as_dir
=.
25859 for ac_exec_ext
in '' $ac_executable_extensions; do
25860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25861 ac_cv_prog_SGMLSPL
="$ac_prog"
25862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25871 SGMLSPL
=$ac_cv_prog_SGMLSPL
25872 if test -n "$SGMLSPL"; then
25873 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25874 echo "${ECHO_T}$SGMLSPL" >&6; }
25876 { echo "$as_me:$LINENO: result: no" >&5
25877 echo "${ECHO_T}no" >&6; }
25881 test -n "$SGMLSPL" && break
25884 { echo "$as_me:$LINENO: checking for docbook2man" >&5
25885 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
25886 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 if test -z "$DOCBOOK2MAN"; then
25890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25891 for as_dir
in $PATH
25894 test -z "$as_dir" && as_dir
=.
25895 for ac_prog
in docbook2x-man db2x_docbook2man docbook2man
; do
25896 ac_path
="$as_dir/$ac_prog"
25897 { test -f "$ac_path" && $as_test_x "$ac_path"; } ||
continue
25898 if "$ac_path" --version 2>/dev
/null |
$GREP docbook2x
>/dev
/null
2>&1; then
25899 ac_cv_path_DOCBOOK2MAN
=$ac_path
25907 ac_cv_path_DOCBOOK2MAN
=$DOCBOOK2MAN
25910 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
25911 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
25912 DOCBOOK2MAN
=$ac_cv_path_DOCBOOK2MAN
25918 # We have to run the thread test near the end so we have all our symbols
25919 # defined. Cross compiling throws a warning.
25921 if test "$enable_thread_safety_force" = yes; then
25922 if test "$PORTNAME" != "win32"
25924 { echo "$as_me:$LINENO: WARNING:
25925 *** Skipping thread test program. --enable-thread-safety-force was used.
25926 *** Run the program in src/test/thread on the your machine and add proper
25927 *** locking function calls to your applications to guarantee thread safety.
25929 echo "$as_me: WARNING:
25930 *** Skipping thread test program. --enable-thread-safety-force was used.
25931 *** Run the program in src/test/thread on the your machine and add proper
25932 *** locking function calls to your applications to guarantee thread safety.
25935 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25936 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25938 elif test "$enable_thread_safety" = yes; then
25939 if test "$PORTNAME" != "win32"
25941 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25942 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25946 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25947 LIBS
="$LIBS $PTHREAD_LIBS"
25948 if test "$cross_compiling" = yes; then
25949 { echo "$as_me:$LINENO: result: maybe" >&5
25950 echo "${ECHO_T}maybe" >&6; }
25951 { echo "$as_me:$LINENO: WARNING:
25952 *** Skipping thread test program because of cross-compile build.
25953 *** Run the program in src/test/thread on the target machine.
25955 echo "$as_me: WARNING:
25956 *** Skipping thread test program because of cross-compile build.
25957 *** Run the program in src/test/thread on the target machine.
25960 cat >conftest.
$ac_ext <<_ACEOF
25963 cat confdefs.h
>>conftest.
$ac_ext
25964 cat >>conftest.
$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 #include "$srcdir/src/test/thread/thread_test.c"
25968 rm -f conftest
$ac_exeext
25969 if { (ac_try
="$ac_link"
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_link") 2>&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25979 { (case "(($ac_try" in
25980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25981 *) ac_try_echo
=$ac_try;;
25983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984 (eval "$ac_try") 2>&5
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); }; }; then
25988 { echo "$as_me:$LINENO: result: yes" >&5
25989 echo "${ECHO_T}yes" >&6; }
25991 echo "$as_me: program exited with status $ac_status" >&5
25992 echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.
$ac_ext >&5
25995 ( exit $ac_status )
25996 { echo "$as_me:$LINENO: result: no" >&5
25997 echo "${ECHO_T}no" >&6; }
25998 { { echo "$as_me:$LINENO: error: thread test program failed
25999 This platform is not thread-safe. Check the file 'config.log' for the
26002 You can use the configure option --enable-thread-safety-force to force
26003 threads to be enabled. But you must then run the program in
26004 src/test/thread and add locking function calls to your applications to
26005 guarantee thread safety." >&5
26006 echo "$as_me: error: thread test program failed
26007 This platform is not thread-safe. Check the file 'config.log' for the
26010 You can use the configure option --enable-thread-safety-force to force
26011 threads to be enabled. But you must then run the program in
26012 src/test/thread and add locking function calls to your applications to
26013 guarantee thread safety." >&2;}
26014 { (exit 1); exit 1; }; }
26016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26023 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26024 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26028 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26029 # This is much easier than trying to filter LIBS to the minimum for each
26030 # executable. (Note that shared library links won't use this switch, though.)
26031 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26032 # libreadline; therefore we postpone testing it until we know what library
26033 # dependencies readline has. The test code will try to link with $LIBS.
26034 if test "$with_readline" = yes; then
26035 link_test_func
=readline
26037 link_test_func
=exit
26039 if test "$PORTNAME" != "darwin"; then
26040 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26041 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26042 pgac_save_LDFLAGS
=$LDFLAGS
26043 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
26044 if test "$cross_compiling" = yes; then
26045 LDFLAGS
="$pgac_save_LDFLAGS"
26046 { echo "$as_me:$LINENO: result: assuming no" >&5
26047 echo "${ECHO_T}assuming no" >&6; }
26049 cat >conftest.
$ac_ext <<_ACEOF
26052 cat confdefs.h
>>conftest.
$ac_ext
26053 cat >>conftest.
$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26055 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26064 rm -f conftest
$ac_exeext
26065 if { (ac_try
="$ac_link"
26066 case "(($ac_try" in
26067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26068 *) ac_try_echo=$ac_try;;
26070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26071 (eval "$ac_link") 2>&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26075 { (case "(($ac_try" in
26076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26077 *) ac_try_echo
=$ac_try;;
26079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26080 (eval "$ac_try") 2>&5
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); }; }; then
26084 { echo "$as_me:$LINENO: result: yes" >&5
26085 echo "${ECHO_T}yes" >&6; }
26087 echo "$as_me: program exited with status $ac_status" >&5
26088 echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.
$ac_ext >&5
26091 ( exit $ac_status )
26092 LDFLAGS
="$pgac_save_LDFLAGS"
26093 { echo "$as_me:$LINENO: result: no" >&5
26094 echo "${ECHO_T}no" >&6; }
26096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26102 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26103 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26104 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26105 pgac_save_LDFLAGS
=$LDFLAGS
26106 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26107 if test "$cross_compiling" = yes; then
26108 LDFLAGS
="$pgac_save_LDFLAGS"
26109 { echo "$as_me:$LINENO: result: assuming no" >&5
26110 echo "${ECHO_T}assuming no" >&6; }
26112 cat >conftest.
$ac_ext <<_ACEOF
26115 cat confdefs.h
>>conftest.
$ac_ext
26116 cat >>conftest.
$ac_ext <<_ACEOF
26117 /* end confdefs.h. */
26118 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26127 rm -f conftest
$ac_exeext
26128 if { (ac_try
="$ac_link"
26129 case "(($ac_try" in
26130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26131 *) ac_try_echo=$ac_try;;
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134 (eval "$ac_link") 2>&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26138 { (case "(($ac_try" in
26139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26140 *) ac_try_echo
=$ac_try;;
26142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26143 (eval "$ac_try") 2>&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); }; }; then
26147 { echo "$as_me:$LINENO: result: yes" >&5
26148 echo "${ECHO_T}yes" >&6; }
26150 echo "$as_me: program exited with status $ac_status" >&5
26151 echo "$as_me: failed program was:" >&5
26152 sed 's/^/| /' conftest.
$ac_ext >&5
26154 ( exit $ac_status )
26155 LDFLAGS
="$pgac_save_LDFLAGS"
26156 { echo "$as_me:$LINENO: result: no" >&5
26157 echo "${ECHO_T}no" >&6; }
26159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26167 # Begin output steps
26169 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26170 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26171 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26172 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26173 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26174 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26176 # prepare build tree if outside source tree
26177 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26178 # Note 2: /bin/pwd might be better than shell's built-in at getting
26179 # a symlink-free name.
26180 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26184 if test "$no_create" != yes; then
26185 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26186 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
26187 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26188 ||
{ { echo "$as_me:$LINENO: error: failed" >&5
26189 echo "$as_me: error: failed" >&2;}
26190 { (exit 1); exit 1; }; }
26191 { echo "$as_me:$LINENO: result: done" >&5
26192 echo "${ECHO_T}done" >&6; }
26198 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
26201 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}"
26204 if test "$PORTNAME" = "win32"; then
26205 ac_config_commands
="$ac_config_commands check_win32_symlinks"
26209 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
26212 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26215 cat >confcache
<<\_ACEOF
26216 # This file is a shell script that caches the results of configure
26217 # tests run on this system so they can be shared between configure
26218 # scripts and configure runs, see configure's option --config-cache.
26219 # It is not useful on other systems. If it contains results you don't
26220 # want to keep, you may remove or edit it.
26222 # config.status only pays attention to the cache file if you give it
26223 # the --recheck option to rerun configure.
26225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26227 # following values.
26231 # The following way of writing the cache mishandles newlines in values,
26232 # but we know of no workaround that is simple, portable, and efficient.
26233 # So, we kill variables containing newlines.
26234 # Ultrix sh set writes to stderr and can't be redirected directly,
26235 # and sets the high bit in the cache file unless we assign to the vars.
26237 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26238 eval ac_val
=\$
$ac_var
26242 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26243 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26246 _ | IFS | as_nl
) ;; #(
26247 *) $as_unset $ac_var ;;
26253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26254 *${as_nl}ac_space
=\
*)
26255 # `set' does not quote correctly, so add quotes (double-quote
26256 # substitution turns \\\\ into \\, and sed turns \\ into \).
26259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26262 # `set' quotes correctly as required by POSIX, so do not add quotes.
26263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26276 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26277 if test -w "$cache_file"; then
26278 test "x$cache_file" != "x/dev/null" &&
26279 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26280 echo "$as_me: updating cache $cache_file" >&6;}
26281 cat confcache
>$cache_file
26283 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26284 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26289 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26290 # Let make expand exec_prefix.
26291 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26293 DEFS
=-DHAVE_CONFIG_H
26297 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26298 # 1. Remove the extension, and $U if already installed.
26299 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26300 ac_i
=`echo "$ac_i" | sed "$ac_script"`
26301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26302 # will be set to the directory where LIBOBJS objects are built.
26303 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26304 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26306 LIBOBJS
=$ac_libobjs
26308 LTLIBOBJS
=$ac_ltlibobjs
26312 : ${CONFIG_STATUS=./config.status}
26313 ac_clean_files_save
=$ac_clean_files
26314 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26317 cat >$CONFIG_STATUS <<_ACEOF
26319 # Generated by $as_me.
26320 # Run this file to recreate the current configuration.
26321 # Compiler output produced by configure, useful for debugging
26322 # configure, is in config.log if it exists.
26325 ac_cs_recheck=false
26327 SHELL=\${CONFIG_SHELL-$SHELL}
26330 cat >>$CONFIG_STATUS <<\_ACEOF
26331 ## --------------------- ##
26332 ## M4sh Initialization. ##
26333 ## --------------------- ##
26335 # Be more Bourne compatible
26336 DUALCASE
=1; export DUALCASE
# for MKS sh
26337 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26340 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26341 # is contrary to our usage. Disable this feature.
26342 alias -g '${1+"$@"}'='"$@"'
26343 setopt NO_GLOB_SUBST
26345 case `(set -o) 2>/dev/null` in
26346 *posix
*) set -o posix
;;
26355 # Avoid depending upon Character Ranges.
26356 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26357 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26358 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26359 as_cr_digits
='0123456789'
26360 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26362 # The user is always right.
26363 if test "${PATH_SEPARATOR+set}" != set; then
26364 echo "#! /bin/sh" >conf$$.sh
26365 echo "exit 0" >>conf$$.sh
26367 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26375 # Support unset when possible.
26376 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26384 # We need space, tab and new line, in precisely that order. Quoting is
26385 # there to prevent editors from complaining about space-tab.
26386 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26387 # splitting by setting IFS to empty value.)
26392 # Find who we are. Look in the path if we contain no directory separator.
26394 *[\\/]* ) as_myself
=$0 ;;
26395 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26396 for as_dir
in $PATH
26399 test -z "$as_dir" && as_dir
=.
26400 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26406 # We did not find ourselves, most probably we were run as `sh COMMAND'
26407 # in which case we are not to be found in the path.
26408 if test "x$as_myself" = x
; then
26411 if test ! -f "$as_myself"; then
26412 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26413 { (exit 1); exit 1; }
26416 # Work around bugs in pre-3.0 UWIN ksh.
26417 for as_var
in ENV MAIL MAILPATH
26418 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26426 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26427 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26428 LC_TELEPHONE LC_TIME
26430 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26431 eval $as_var=C
; export $as_var
26433 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26437 # Required to use basename.
26438 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26439 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26445 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26446 as_basename
=basename
26452 # Name of the executable.
26453 as_me
=`$as_basename -- "$0" ||
26454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26455 X"$0" : 'X\(//\)$' \| \
26456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26458 sed '/^.*\/\([^/][^/]*\)\/*$/{
26477 as_lineno_1
=$LINENO
26478 as_lineno_2
=$LINENO
26479 test "x$as_lineno_1" != "x$as_lineno_2" &&
26480 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26482 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26483 # uniformly replaced by the line number. The first 'sed' inserts a
26484 # line-number line after each line using $LINENO; the second 'sed'
26485 # does the real work. The second script uses 'N' to pair each
26486 # line-number line with the line containing $LINENO, and appends
26487 # trailing '-' during substitution so that $LINENO is not a special
26488 # case at line end.
26489 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26490 # scripts with optimization help from Paolo Bonzini. Blame Lee
26491 # E. McMahon (1931-1989) for sed's syntax. :-)
26503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26506 ' >$as_me.lineno
&&
26507 chmod +x
"$as_me.lineno" ||
26508 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26509 { (exit 1); exit 1; }; }
26511 # Don't try to exec as it changes $[0], causing all sort of problems
26512 # (the dirname of $[0] is not the place where we might find the
26513 # original and so on. Autoconf is especially sensitive to this).
26514 .
"./$as_me.lineno"
26515 # Exit status is that of the last command.
26520 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26526 ECHO_C
= ECHO_N
= ECHO_T
=
26527 case `echo -n x` in
26529 case `echo 'x\c'` in
26530 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26537 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26538 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26544 rm -f conf$$ conf$$.exe conf$$.
file
26545 if test -d conf$$.dir
; then
26546 rm -f conf$$.dir
/conf$$.
file
26552 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26554 # ... but there are two gotchas:
26555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26557 # In both cases, we have to default to `cp -p'.
26558 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26560 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26565 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26566 rmdir conf$$.dir
2>/dev
/null
26568 if mkdir
-p .
2>/dev
/null
; then
26571 test -d .
/-p && rmdir .
/-p
26575 if test -x / >/dev
/null
2>&1; then
26576 as_test_x
='test -x'
26578 if ls -dL / >/dev
/null
2>&1; then
26585 if test -d "$1"; then
26591 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26592 ???[sx]*):;;*)false;;esac;fi
26596 as_executable_p
=$as_test_x
26598 # Sed expression to map a string onto a valid CPP name.
26599 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26601 # Sed expression to map a string onto a valid variable name.
26602 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26607 # Save the log message, to keep $[0] and so on meaningful, and to
26608 # report actual input values of CONFIG_FILES etc. instead of their
26609 # values after options handling.
26611 This file was extended by PostgreSQL $as_me 8.4devel, which was
26612 generated by GNU Autoconf 2.61. Invocation command line was
26614 CONFIG_FILES = $CONFIG_FILES
26615 CONFIG_HEADERS = $CONFIG_HEADERS
26616 CONFIG_LINKS = $CONFIG_LINKS
26617 CONFIG_COMMANDS = $CONFIG_COMMANDS
26620 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26625 cat >>$CONFIG_STATUS <<_ACEOF
26626 # Files that config.status was made for.
26627 config_files="$ac_config_files"
26628 config_headers="$ac_config_headers"
26629 config_links="$ac_config_links"
26630 config_commands="$ac_config_commands"
26634 cat >>$CONFIG_STATUS <<\_ACEOF
26636 \`$as_me' instantiates files from templates according to the
26637 current configuration.
26639 Usage: $0 [OPTIONS] [FILE]...
26641 -h, --help print this help, then exit
26642 -V, --version print version number and configuration settings, then exit
26643 -q, --quiet do not print progress messages
26644 -d, --debug don't remove temporary files
26645 --recheck update $as_me by reconfiguring in the same conditions
26646 --file=FILE[:TEMPLATE]
26647 instantiate the configuration file FILE
26648 --header=FILE[:TEMPLATE]
26649 instantiate the configuration header FILE
26651 Configuration files:
26654 Configuration headers:
26657 Configuration links:
26660 Configuration commands:
26663 Report bugs to <bug-autoconf@gnu.org>."
26666 cat >>$CONFIG_STATUS <<_ACEOF
26668 PostgreSQL config.status 8.4devel
26669 configured by $0, generated by GNU Autoconf 2.61,
26670 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26672 Copyright (C) 2006 Free Software Foundation, Inc.
26673 This config.status script is free software; the Free Software Foundation
26674 gives unlimited permission to copy, distribute and modify it."
26680 cat >>$CONFIG_STATUS <<\_ACEOF
26681 # If no file are specified by the user, then we need to provide default
26682 # value. By we need to know if files were specified by the user.
26688 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26689 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26700 # Handling of the options.
26701 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26703 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26704 echo "$ac_cs_version"; exit ;;
26705 --debug |
--debu |
--deb |
--de |
--d |
-d )
26707 --file |
--fil |
--fi |
--f )
26709 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26710 ac_need_defaults
=false
;;
26711 --header |
--heade |
--head |
--hea )
26713 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26714 ac_need_defaults
=false
;;
26716 # Conflict between --help and --header
26717 { echo "$as_me: error: ambiguous option: $1
26718 Try \`$0 --help' for more information." >&2
26719 { (exit 1); exit 1; }; };;
26720 --help |
--hel |
-h )
26721 echo "$ac_cs_usage"; exit ;;
26722 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26723 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26726 # This is an error.
26727 -*) { echo "$as_me: error: unrecognized option: $1
26728 Try \`$0 --help' for more information." >&2
26729 { (exit 1); exit 1; }; } ;;
26731 *) ac_config_targets
="$ac_config_targets $1"
26732 ac_need_defaults
=false
;;
26738 ac_configure_extra_args
=
26740 if $ac_cs_silent; then
26742 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26746 cat >>$CONFIG_STATUS <<_ACEOF
26747 if \$ac_cs_recheck; then
26748 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26749 CONFIG_SHELL=$SHELL
26750 export CONFIG_SHELL
26751 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26755 cat >>$CONFIG_STATUS <<\_ACEOF
26759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26760 ## Running $as_me. ##
26766 cat >>$CONFIG_STATUS <<_ACEOF
26769 cat >>$CONFIG_STATUS <<\_ACEOF
26771 # Handling of arguments.
26772 for ac_config_target
in $ac_config_targets
26774 case $ac_config_target in
26775 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26776 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
26777 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
26778 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26779 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26780 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26781 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26782 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26783 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26784 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
26785 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
26786 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26789 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26790 { (exit 1); exit 1; }; };;
26795 # If the user did not use the arguments to specify the items to instantiate,
26796 # then the envvar interface is used. Set only those that are not.
26797 # We use the long form for the default assignment because of an extremely
26798 # bizarre bug on SunOS 4.1.3.
26799 if $ac_need_defaults; then
26800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26802 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
26803 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26806 # Have a temporary directory for convenience. Make it in the build tree
26807 # simply because there is no reason against having it here, and in addition,
26808 # creating and moving files from /tmp can sometimes cause problems.
26809 # Hook for its removal unless debugging.
26810 # Note that there is a small window in which the directory will not be cleaned:
26811 # after its creation but before its name has been assigned to `$tmp'.
26815 trap 'exit_status=$?
26816 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26818 trap '{ (exit 1); exit 1; }' 1 2 13 15
26820 # Create a (secure) tmp directory for tmp files.
26823 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26824 test -n "$tmp" && test -d "$tmp"
26827 tmp
=.
/conf$$
-$RANDOM
26828 (umask 077 && mkdir
"$tmp")
26831 echo "$me: cannot create a temporary directory in ." >&2
26832 { (exit 1); exit 1; }
26836 # Set up the sed scripts for CONFIG_FILES section.
26839 # No need to generate the scripts if there are no CONFIG_FILES.
26840 # This happens for instance when ./config.status config.h
26841 if test -n "$CONFIG_FILES"; then
26848 for ac_last_try
in false false false false false
:; do
26849 cat >conf$
$subs.
sed <<_ACEOF
26850 SHELL!$SHELL$ac_delim
26851 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26852 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26853 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26854 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26855 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26856 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26857 exec_prefix!$exec_prefix$ac_delim
26858 prefix!$prefix$ac_delim
26859 program_transform_name!$program_transform_name$ac_delim
26860 bindir!$bindir$ac_delim
26861 sbindir!$sbindir$ac_delim
26862 libexecdir!$libexecdir$ac_delim
26863 datarootdir!$datarootdir$ac_delim
26864 datadir!$datadir$ac_delim
26865 sysconfdir!$sysconfdir$ac_delim
26866 sharedstatedir!$sharedstatedir$ac_delim
26867 localstatedir!$localstatedir$ac_delim
26868 includedir!$includedir$ac_delim
26869 oldincludedir!$oldincludedir$ac_delim
26870 docdir!$docdir$ac_delim
26871 infodir!$infodir$ac_delim
26872 htmldir!$htmldir$ac_delim
26873 dvidir!$dvidir$ac_delim
26874 pdfdir!$pdfdir$ac_delim
26875 psdir!$psdir$ac_delim
26876 libdir!$libdir$ac_delim
26877 localedir!$localedir$ac_delim
26878 mandir!$mandir$ac_delim
26879 DEFS!$DEFS$ac_delim
26880 ECHO_C!$ECHO_C$ac_delim
26881 ECHO_N!$ECHO_N$ac_delim
26882 ECHO_T!$ECHO_T$ac_delim
26883 LIBS!$LIBS$ac_delim
26884 build_alias!$build_alias$ac_delim
26885 host_alias!$host_alias$ac_delim
26886 target_alias!$target_alias$ac_delim
26887 configure_args!$configure_args$ac_delim
26888 build!$build$ac_delim
26889 build_cpu!$build_cpu$ac_delim
26890 build_vendor!$build_vendor$ac_delim
26891 build_os!$build_os$ac_delim
26892 host!$host$ac_delim
26893 host_cpu!$host_cpu$ac_delim
26894 host_vendor!$host_vendor$ac_delim
26895 host_os!$host_os$ac_delim
26896 PORTNAME!$PORTNAME$ac_delim
26897 enable_nls!$enable_nls$ac_delim
26898 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26899 default_port!$default_port$ac_delim
26900 enable_shared!$enable_shared$ac_delim
26901 enable_rpath!$enable_rpath$ac_delim
26902 enable_debug!$enable_debug$ac_delim
26903 enable_profiling!$enable_profiling$ac_delim
26904 GCOV!$GCOV$ac_delim
26905 LCOV!$LCOV$ac_delim
26906 GENHTML!$GENHTML$ac_delim
26907 enable_coverage!$enable_coverage$ac_delim
26908 DTRACE!$DTRACE$ac_delim
26909 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26910 enable_dtrace!$enable_dtrace$ac_delim
26912 CFLAGS!$CFLAGS$ac_delim
26913 LDFLAGS!$LDFLAGS$ac_delim
26914 CPPFLAGS!$CPPFLAGS$ac_delim
26915 ac_ct_CC!$ac_ct_CC$ac_delim
26916 EXEEXT!$EXEEXT$ac_delim
26917 OBJEXT!$OBJEXT$ac_delim
26918 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26922 autodepend!$autodepend$ac_delim
26923 INCLUDES!$INCLUDES$ac_delim
26924 enable_thread_safety!$enable_thread_safety$ac_delim
26925 with_tcl!$with_tcl$ac_delim
26926 with_perl!$with_perl$ac_delim
26927 with_python!$with_python$ac_delim
26928 with_gssapi!$with_gssapi$ac_delim
26929 with_krb5!$with_krb5$ac_delim
26930 krb_srvtab!$krb_srvtab$ac_delim
26931 with_pam!$with_pam$ac_delim
26932 with_ldap!$with_ldap$ac_delim
26933 with_bonjour!$with_bonjour$ac_delim
26934 with_openssl!$with_openssl$ac_delim
26935 with_ossp_uuid!$with_ossp_uuid$ac_delim
26936 XML2_CONFIG!$XML2_CONFIG$ac_delim
26937 with_libxml!$with_libxml$ac_delim
26938 with_libxslt!$with_libxslt$ac_delim
26939 with_system_tzdata!$with_system_tzdata$ac_delim
26940 with_zlib!$with_zlib$ac_delim
26941 GREP!$GREP$ac_delim
26942 EGREP!$EGREP$ac_delim
26943 ELF_SYS!$ELF_SYS$ac_delim
26944 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26946 with_gnu_ld!$with_gnu_ld$ac_delim
26949 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26951 elif $ac_last_try; then
26952 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26953 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26954 { (exit 1); exit 1; }; }
26956 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26960 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26961 if test -n "$ac_eof"; then
26962 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26963 ac_eof
=`expr $ac_eof + 1`
26966 cat >>$CONFIG_STATUS <<_ACEOF
26967 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26972 s/^/s,@/; s/!/@,|#_!!_#|/
26975 s/'"$ac_delim"'$/,g/; t
26977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26978 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26979 rm -f conf$
$subs.
sed
26980 cat >>$CONFIG_STATUS <<_ACEOF
26986 for ac_last_try
in false false false false false
:; do
26987 cat >conf$
$subs.
sed <<_ACEOF
26988 ld_R_works!$ld_R_works$ac_delim
26989 RANLIB!$RANLIB$ac_delim
26990 STRIP!$STRIP$ac_delim
26991 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26992 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26994 LN_S!$LN_S$ac_delim
26996 BISON!$BISON$ac_delim
26997 BISONFLAGS!$BISONFLAGS$ac_delim
26998 FLEX!$FLEX$ac_delim
26999 FLEXFLAGS!$FLEXFLAGS$ac_delim
27000 PERL!$PERL$ac_delim
27001 perl_archlibexp!$perl_archlibexp$ac_delim
27002 perl_privlibexp!$perl_privlibexp$ac_delim
27003 perl_useshrplib!$perl_useshrplib$ac_delim
27004 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27005 PYTHON!$PYTHON$ac_delim
27006 python_version!$python_version$ac_delim
27007 python_configdir!$python_configdir$ac_delim
27008 python_includespec!$python_includespec$ac_delim
27009 python_libdir!$python_libdir$ac_delim
27010 python_libspec!$python_libspec$ac_delim
27011 python_additional_libs!$python_additional_libs$ac_delim
27012 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27013 HAVE_IPV6!$HAVE_IPV6$ac_delim
27014 LIBOBJS!$LIBOBJS$ac_delim
27015 acx_pthread_config!$acx_pthread_config$ac_delim
27016 PTHREAD_CC!$PTHREAD_CC$ac_delim
27017 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27018 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27019 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27020 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27021 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27022 MSGFMT!$MSGFMT$ac_delim
27023 MSGMERGE!$MSGMERGE$ac_delim
27024 XGETTEXT!$XGETTEXT$ac_delim
27025 TCLSH!$TCLSH$ac_delim
27026 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27027 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27028 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27029 TCL_LIBS!$TCL_LIBS$ac_delim
27030 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27031 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27032 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27033 NSGMLS!$NSGMLS$ac_delim
27034 JADE!$JADE$ac_delim
27035 have_docbook!$have_docbook$ac_delim
27036 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27037 COLLATEINDEX!$COLLATEINDEX$ac_delim
27038 SGMLSPL!$SGMLSPL$ac_delim
27039 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27040 vpath_build!$vpath_build$ac_delim
27041 LTLIBOBJS!$LTLIBOBJS$ac_delim
27044 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
27046 elif $ac_last_try; then
27047 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27048 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27049 { (exit 1); exit 1; }; }
27051 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27055 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27056 if test -n "$ac_eof"; then
27057 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27058 ac_eof
=`expr $ac_eof + 1`
27061 cat >>$CONFIG_STATUS <<_ACEOF
27062 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27066 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27067 s/^/s,@/; s/!/@,|#_!!_#|/
27070 s/'"$ac_delim"'$/,g/; t
27072 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27073 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27074 rm -f conf$
$subs.
sed
27075 cat >>$CONFIG_STATUS <<_ACEOF
27082 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27083 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27084 # trailing colons and then remove the whole line if VPATH becomes empty
27085 # (actually we leave an empty line to preserve line numbers).
27086 if test "x$srcdir" = x.
; then
27087 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27088 s/:*\$(srcdir):*/:/
27089 s/:*\${srcdir}:*/:/
27091 s/^\([^=]*=[ ]*\):*/\1/
27097 cat >>$CONFIG_STATUS <<\_ACEOF
27098 fi # test -n "$CONFIG_FILES"
27101 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
27104 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27106 case $ac_mode$ac_tag in
27108 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27109 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27110 { (exit 1); exit 1; }; };;
27111 :[FH
]-) ac_tag
=-:-;;
27112 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27129 -) ac_f
="$tmp/stdin";;
27130 *) # Look for the file first in the build tree, then in the source tree
27131 # (if the path is not absolute). The absolute path cannot be DOS-style,
27132 # because $ac_f cannot contain `:'.
27136 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27138 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27139 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27140 { (exit 1); exit 1; }; };;
27142 ac_file_inputs
="$ac_file_inputs $ac_f"
27145 # Let's still pretend it is `configure' which instantiates (i.e., don't
27146 # use $as_me), people would be surprised to read:
27147 # /* config.h. Generated by config.status. */
27148 configure_input
="Generated from "`IFS=:
27149 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27150 if test x
"$ac_file" != x-
; then
27151 configure_input
="$ac_file. $configure_input"
27152 { echo "$as_me:$LINENO: creating $ac_file" >&5
27153 echo "$as_me: creating $ac_file" >&6;}
27157 *:-:* |
*:-) cat >"$tmp/stdin";;
27162 ac_dir
=`$as_dirname -- "$ac_file" ||
27163 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27164 X"$ac_file" : 'X\(//\)[^/]' \| \
27165 X"$ac_file" : 'X\(//\)$' \| \
27166 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27172 /^X\(\/\/\)[^/].*/{
27187 -*) as_dir
=.
/$as_dir;;
27189 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27193 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27194 *) as_qdir
=$as_dir;;
27196 as_dirs
="'$as_qdir' $as_dirs"
27197 as_dir
=`$as_dirname -- "$as_dir" ||
27198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27199 X"$as_dir" : 'X\(//\)[^/]' \| \
27200 X"$as_dir" : 'X\(//\)$' \| \
27201 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27207 /^X\(\/\/\)[^/].*/{
27220 test -d "$as_dir" && break
27222 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27223 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27224 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27225 { (exit 1); exit 1; }; }; }
27229 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27231 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27232 # A ".." for each directory in $ac_dir_suffix.
27233 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27234 case $ac_top_builddir_sub in
27235 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27236 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27239 ac_abs_top_builddir
=$ac_pwd
27240 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27241 # for backward compatibility:
27242 ac_top_builddir
=$ac_top_build_prefix
27245 .
) # We are building in place.
27247 ac_top_srcdir
=$ac_top_builddir_sub
27248 ac_abs_top_srcdir
=$ac_pwd ;;
27249 [\\/]* | ?
:[\\/]* ) # Absolute name.
27250 ac_srcdir
=$srcdir$ac_dir_suffix;
27251 ac_top_srcdir
=$srcdir
27252 ac_abs_top_srcdir
=$srcdir ;;
27253 *) # Relative name.
27254 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27255 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27256 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27258 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27269 cat >>$CONFIG_STATUS <<\_ACEOF
27270 # If the template does not know about datarootdir, expand it.
27271 # FIXME: This hack should be removed a few years after 2.60.
27272 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27274 case `sed -n '/datarootdir/ {
27283 ' $ac_file_inputs` in
27284 *datarootdir
*) ac_datarootdir_seen
=yes;;
27285 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27286 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27287 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27289 cat >>$CONFIG_STATUS <<_ACEOF
27290 ac_datarootdir_hack='
27291 s&@datadir@&$datadir&g
27292 s&@docdir@&$docdir&g
27293 s&@infodir@&$infodir&g
27294 s&@localedir@&$localedir&g
27295 s&@mandir@&$mandir&g
27296 s&\\\${datarootdir}&$datarootdir&g' ;;
27300 # Neutralize VPATH when `$srcdir' = `.'.
27301 # Shell code in configure.ac might set extrasub.
27302 # FIXME: do we really want to maintain this feature?
27303 cat >>$CONFIG_STATUS <<_ACEOF
27307 cat >>$CONFIG_STATUS <<\_ACEOF
27309 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27310 s
&@configure_input@
&$configure_input&;t t
27311 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27312 s
&@srcdir@
&$ac_srcdir&;t t
27313 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27314 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27315 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27316 s
&@builddir@
&$ac_builddir&;t t
27317 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27318 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27319 $ac_datarootdir_hack
27320 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27322 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27323 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27324 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27325 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27326 which seems to be undefined. Please make sure it is defined." >&5
27327 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27328 which seems to be undefined. Please make sure it is defined." >&2;}
27332 -) cat "$tmp/out"; rm -f "$tmp/out";;
27333 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27342 # Transform confdefs.h into a sed script `conftest.defines', that
27343 # substitutes the proper values into config.h.in to produce config.h.
27344 rm -f conftest.defines conftest.
tail
27345 # First, append a space to every undef/define line, to ease matching.
27346 echo 's/$/ /' >conftest.defines
27347 # Then, protect against being on the right side of a sed subst, or in
27348 # an unquoted here document, in config.status. If some macros were
27349 # called several times there might be several #defines for the same
27350 # symbol, which is useless. But do not sort them, since the last
27351 # AC_DEFINE must be honored.
27352 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27353 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27354 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27355 # PARAMS is the parameter list in the macro definition--in most cases, it's
27356 # just an empty string.
27357 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27358 ac_dB
='\\)[ (].*,\\1define\\2'
27366 s/^[ ]*#[ ]*define[ ][ ]*//
27371 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27372 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27373 ' >>conftest.defines
27375 # Remove the space that was appended to ease matching.
27376 # Then replace #undef with comments. This is necessary, for
27377 # example, in the case of _POSIX_SOURCE, which is predefined and required
27378 # on some systems where configure will not decide to define it.
27379 # (The regexp can be short, since the line contains either #define or #undef.)
27381 s,^[ #]*u.*,/* & */,' >>conftest.defines
27383 # Break up conftest.defines:
27384 ac_max_sed_lines
=50
27386 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27387 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27388 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27390 ac_in
='$ac_file_inputs'
27391 ac_out
='"$tmp/out1"'
27392 ac_nxt
='"$tmp/out2"'
27396 # Write a here document:
27397 cat >>$CONFIG_STATUS <<_ACEOF
27398 # First, check the format of the line:
27399 cat >"\$tmp/defines.sed" <<\\CEOF
27400 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27401 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27405 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27407 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27408 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27409 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27410 grep . conftest.
tail >/dev
/null ||
break
27411 rm -f conftest.defines
27412 mv conftest.
tail conftest.defines
27414 rm -f conftest.defines conftest.
tail
27416 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27417 cat >>$CONFIG_STATUS <<\_ACEOF
27418 if test x
"$ac_file" != x-
; then
27419 echo "/* $configure_input */" >"$tmp/config.h"
27420 cat "$ac_result" >>"$tmp/config.h"
27421 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27422 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27423 echo "$as_me: $ac_file is unchanged" >&6;}
27426 mv "$tmp/config.h" $ac_file
27429 echo "/* $configure_input */"
27439 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27440 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27442 if test ! -r "$srcdir/$ac_source"; then
27443 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27444 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27445 { (exit 1); exit 1; }; }
27449 # Try a relative symlink, then a hard link, then a copy.
27451 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
27452 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
27454 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
27455 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
27456 cp -p "$srcdir/$ac_source" "$ac_file" ||
27457 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27458 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27459 { (exit 1); exit 1; }; }
27461 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27462 echo "$as_me: executing $ac_file commands" >&6;}
27467 case $ac_file$ac_mode in
27468 "check_win32_symlinks":C
)
27469 # Links sometimes fail undetected on Mingw -
27470 # so here we detect it and warn the user
27471 for FILE
in $CONFIG_LINKS
27473 # test -e works for symlinks in the MinGW console
27474 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27475 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27478 "src/include/pg_config.h":H
)
27479 # Update timestamp for pg_config.h (see Makefile.global)
27480 echo >src
/include
/stamp-h
27487 { (exit 0); exit 0; }
27489 chmod +x
$CONFIG_STATUS
27490 ac_clean_files
=$ac_clean_files_save
27493 # configure is writing to config.log, and then calls config.status.
27494 # config.status does its own redirection, appending to config.log.
27495 # Unfortunately, on DOS this fails, as config.log is still kept open
27496 # by configure, so config.status won't be able to write to it; its
27497 # output is simply discarded. So we exec the FD to /dev/null,
27498 # effectively closing config.log, so it can be properly (re)opened and
27499 # appended to by config.status. When coming back to configure, we
27500 # need to make the FD available again.
27501 if test "$no_create" != yes; then
27503 ac_config_status_args
=
27504 test "$silent" = yes &&
27505 ac_config_status_args
="$ac_config_status_args --quiet"
27507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27510 # would make configure fail if this is the last instruction.
27511 $ac_cs_success ||
{ (exit 1); exit 1; }
27515 # Warn about unknown options
27516 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27517 for pgac_arg
in $pgac_args with_gnu_ld
; do
27518 if test "$pgac_var" = "$pgac_arg"; then
27522 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
27523 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27524 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}