2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4beta2.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix
*) set -o posix
;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits
='0123456789'
42 as_cr_alnum
=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
57 # Support unset when possible.
58 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself
=$0 ;;
77 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir
=.
82 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x
; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var
in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C
; export $as_var
115 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me
=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x
; then
159 if (eval ":") 2>/dev
/null
; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev
/null
; then
225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
226 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir
=.
232 for as_base
in sh bash ksh sh5
; do
233 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
240 for as_shell
in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix
*) set -o posix
;;
262 CONFIG_SHELL
=$as_shell
264 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix
*) set -o posix
;;
290 as_func_ret_success
() {
293 as_func_ret_failure
() {
298 if as_func_success
; then
302 echo as_func_success failed.
305 if as_func_failure
; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success
; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure
; then
319 echo as_func_ret_failure succeeded.
322 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) ||
{ (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x
; then
347 for as_var
in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no
; then
356 echo This
script requires a shell
more modern than all the
357 echo shells that I found on your system. Please
install a
358 echo modern shell
, or manually run the
script under such a
359 echo shell
if you
do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") ||
{
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system
,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
476 ECHO_C
= ECHO_N
= ECHO_T
=
480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
487 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
494 rm -f conf$$ conf$$.exe conf$$.
file
495 if test -d conf$$.dir
; then
496 rm -f conf$$.dir
/conf$$.
file
502 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
515 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
516 rmdir conf$$.dir
2>/dev
/null
518 if mkdir
-p .
2>/dev
/null
; then
521 test -d .
/-p && rmdir .
/-p
525 if test -x / >/dev
/null
2>&1; then
528 if ls -dL / >/dev
/null
2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p
=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev
/null
6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix
=/usr
/local
568 ac_config_libobj_dir
=.
574 SHELL
=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME
='PostgreSQL'
578 PACKAGE_TARNAME
='postgresql'
579 PACKAGE_VERSION
='8.4beta2'
580 PACKAGE_STRING
='PostgreSQL 8.4beta2'
581 PACKAGE_BUGREPORT
='pgsql-bugs@postgresql.org'
583 ac_unique_file
="src/backend/access/common/heaptuple.c"
584 ac_default_prefix
=/usr
/local
/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
746 python_additional_libs
779 ac_precious_vars
='build_alias
792 # Initialize some variables set by options.
794 ac_init_version
=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name
=s
,x
,x
,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir
='${exec_prefix}/bin'
819 sbindir
='${exec_prefix}/sbin'
820 libexecdir
='${exec_prefix}/libexec'
821 datarootdir
='${prefix}/share'
822 datadir
='${datarootdir}'
823 sysconfdir
='${prefix}/etc'
824 sharedstatedir
='${prefix}/com'
825 localstatedir
='${prefix}/var'
826 includedir
='${prefix}/include'
827 oldincludedir
='/usr/include'
828 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir
='${datarootdir}/info'
834 libdir
='${exec_prefix}/lib'
835 localedir
='${datarootdir}/locale'
836 mandir
='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\
$ac_option
850 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
862 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
865 -build |
--build |
--buil |
--bui |
--bu)
866 ac_prev
=build_alias
;;
867 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
868 build_alias
=$ac_optarg ;;
870 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
871 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
872 ac_prev
=cache_file
;;
873 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
874 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
875 cache_file
=$ac_optarg ;;
878 cache_file
=config.cache
;;
880 -datadir |
--datadir |
--datadi |
--datad)
882 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
883 datadir
=$ac_optarg ;;
885 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
886 |
--dataroo |
--dataro |
--datar)
887 ac_prev
=datarootdir
;;
888 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
889 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
890 datarootdir
=$ac_optarg ;;
892 -disable-* |
--disable-*)
893 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
898 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
899 eval enable_
$ac_feature=no
;;
901 -docdir |
--docdir |
--docdi |
--doc |
--do)
903 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
906 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
908 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
911 -enable-* |
--enable-*)
912 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
918 eval enable_
$ac_feature=\
$ac_optarg ;;
920 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
921 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
922 |
--exec |
--exe |
--ex)
923 ac_prev
=exec_prefix
;;
924 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
925 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
926 |
--exec=* |
--exe=* |
--ex=*)
927 exec_prefix
=$ac_optarg ;;
929 -gas |
--gas |
--ga |
--g)
930 # Obsolete; use --with-gas.
933 -help |
--help |
--hel |
--he |
-h)
935 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
936 ac_init_help
=recursive
;;
937 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
938 ac_init_help
=short
;;
940 -host |
--host |
--hos |
--ho)
941 ac_prev
=host_alias
;;
942 -host=* |
--host=* |
--hos=* |
--ho=*)
943 host_alias
=$ac_optarg ;;
945 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
947 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
949 htmldir
=$ac_optarg ;;
951 -includedir |
--includedir |
--includedi |
--included |
--include \
952 |
--includ |
--inclu |
--incl |
--inc)
953 ac_prev
=includedir
;;
954 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
955 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
956 includedir
=$ac_optarg ;;
958 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
960 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
961 infodir
=$ac_optarg ;;
963 -libdir |
--libdir |
--libdi |
--libd)
965 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
968 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
969 |
--libexe |
--libex |
--libe)
970 ac_prev
=libexecdir
;;
971 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
972 |
--libexe=* |
--libex=* |
--libe=*)
973 libexecdir
=$ac_optarg ;;
975 -localedir |
--localedir |
--localedi |
--localed |
--locale)
977 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
978 localedir
=$ac_optarg ;;
980 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
981 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
982 ac_prev
=localstatedir
;;
983 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
984 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
985 localstatedir
=$ac_optarg ;;
987 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
989 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
993 # Obsolete; use --without-fp.
996 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
997 |
--no-cr |
--no-c |
-n)
1000 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1001 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1004 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1005 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1006 |
--oldin |
--oldi |
--old |
--ol |
--o)
1007 ac_prev
=oldincludedir
;;
1008 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1009 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1010 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1011 oldincludedir
=$ac_optarg ;;
1013 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1015 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1016 prefix
=$ac_optarg ;;
1018 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1019 |
--program-pre |
--program-pr |
--program-p)
1020 ac_prev
=program_prefix
;;
1021 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1022 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1023 program_prefix
=$ac_optarg ;;
1025 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1026 |
--program-suf |
--program-su |
--program-s)
1027 ac_prev
=program_suffix
;;
1028 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1029 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1030 program_suffix
=$ac_optarg ;;
1032 -program-transform-name |
--program-transform-name \
1033 |
--program-transform-nam |
--program-transform-na \
1034 |
--program-transform-n |
--program-transform- \
1035 |
--program-transform |
--program-transfor \
1036 |
--program-transfo |
--program-transf \
1037 |
--program-trans |
--program-tran \
1038 |
--progr-tra |
--program-tr |
--program-t)
1039 ac_prev
=program_transform_name
;;
1040 -program-transform-name=* |
--program-transform-name=* \
1041 |
--program-transform-nam=* |
--program-transform-na=* \
1042 |
--program-transform-n=* |
--program-transform-=* \
1043 |
--program-transform=* |
--program-transfor=* \
1044 |
--program-transfo=* |
--program-transf=* \
1045 |
--program-trans=* |
--program-tran=* \
1046 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1047 program_transform_name
=$ac_optarg ;;
1049 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1051 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1052 pdfdir
=$ac_optarg ;;
1054 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1056 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1059 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1060 |
-silent |
--silent |
--silen |
--sile |
--sil)
1063 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1065 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1067 sbindir
=$ac_optarg ;;
1069 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1070 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1071 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1073 ac_prev
=sharedstatedir
;;
1074 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1075 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1076 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1078 sharedstatedir
=$ac_optarg ;;
1080 -site |
--site |
--sit)
1082 -site=* |
--site=* |
--sit=*)
1085 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1087 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1088 srcdir
=$ac_optarg ;;
1090 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1091 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1092 ac_prev
=sysconfdir
;;
1093 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1094 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1095 sysconfdir
=$ac_optarg ;;
1097 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1098 ac_prev
=target_alias
;;
1099 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1100 target_alias
=$ac_optarg ;;
1102 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1105 -version |
--version |
--versio |
--versi |
--vers |
-V)
1106 ac_init_version
=: ;;
1109 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_
$ac_package=\
$ac_optarg ;;
1117 -without-* |
--without-*)
1118 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_
$ac_package=no
;;
1127 # Obsolete; use --with-x.
1130 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1131 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1132 ac_prev
=x_includes
;;
1133 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1134 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1135 x_includes
=$ac_optarg ;;
1137 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1138 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1139 ac_prev
=x_libraries
;;
1140 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1141 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1142 x_libraries
=$ac_optarg ;;
1144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
1150 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
1155 eval $ac_envvar=\
$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 if test -n "$ac_prev"; then
1170 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
1175 # Be sure to have absolute directory names.
1176 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val
=\$
$ac_var
1183 [\\/$
]* | ?
:[\\/]* ) continue;;
1184 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1195 target
=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x
; then
1199 if test "x$build_alias" = x
; then
1200 cross_compiling
=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1211 test "$silent" = yes && exec 6>/dev
/null
1214 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di
=`ls -di .` &&
1216 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted
=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir
=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
1232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1256 ac_srcdir_defaulted
=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261 { (exit 1); exit 1; }; }
1263 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266 { (exit 1); exit 1; }; }
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1276 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 for ac_var
in $ac_precious_vars; do
1279 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1281 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1292 \`configure' configures PostgreSQL 8.4beta2 to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1350 --build=BUILD configure
for building on BUILD
[guessed
]
1351 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive
) echo "Configuration of PostgreSQL 8.4beta2:";;
1362 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1363 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1364 --disable-integer-datetimes
1365 disable
64-bit integer date
/time support
1366 --enable-nls[=LANGUAGES
]
1367 enable Native Language Support
1368 --disable-shared do not build shared libraries
1369 --disable-rpath do not embed shared library search path
in
1371 --disable-spinlocks do not use spinlocks
1372 --enable-debug build with debugging symbols
(-g)
1373 --enable-profiling build with profiling enabled
1374 --enable-coverage build with coverage testing instrumentation
1375 --enable-dtrace build with DTrace support
1376 --enable-depend turn on automatic dependency tracking
1377 --enable-cassert enable assertion checks
(for debugging
)
1378 --enable-thread-safety make client libraries thread-safe
1379 --enable-thread-safety-force
1380 force thread-safety despite thread
test failure
1381 --disable-float4-byval disable float4 passed by value
1382 --disable-float8-byval disable float8 passed by value
1383 --disable-largefile omit support
for large files
1386 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1387 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1388 --with-template=NAME override operating system template
1389 --with-includes=DIRS
look for additional header files
in DIRS
1390 --with-libraries=DIRS
look for additional libraries
in DIRS
1391 --with-libs=DIRS alternative spelling of
--with-libraries
1392 --with-pgport=PORTNUM
set default port number
[5432]
1393 --with-blocksize=BLOCKSIZE
1394 set table block size
in kB
[8]
1395 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1396 --with-wal-blocksize=BLOCKSIZE
1397 set WAL block size
in kB
[8]
1398 --with-wal-segsize=SEGSIZE
1399 set WAL segment size
in MB
[16]
1400 --with-CC=CMD
set compiler
(deprecated
)
1401 --with-tcl build Tcl modules
(PL
/Tcl
)
1402 --with-tclconfig=DIR tclConfig.sh is
in DIR
1403 --with-perl build Perl modules
(PL
/Perl
)
1404 --with-python build Python modules
(PL
/Python
)
1405 --with-gssapi build with GSSAPI support
1406 --with-krb5 build with Kerberos
5 support
1407 --with-krb-srvnam=NAME default service principal name
in Kerberos
1409 --with-pam build with PAM support
1410 --with-ldap build with LDAP support
1411 --with-bonjour build with Bonjour support
1412 --with-openssl build with OpenSSL support
1413 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1414 --with-libedit-preferred
1415 prefer BSD Libedit over GNU Readline
1416 --with-ossp-uuid use OSSP UUID library when building
1418 --with-libxml build with XML support
1419 --with-libxslt use XSLT support when building contrib
/xml2
1420 --with-system-tzdata=DIR
1421 use system
time zone data
in DIR
1422 --without-zlib do not use Zlib
1423 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1425 Some influential environment variables
:
1426 CC C compiler
command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1429 nonstandard directory
<lib dir
>
1430 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1431 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1432 you have headers
in a nonstandard directory
<include dir
>
1434 LDFLAGS_SL linker flags
for shared library linking
1436 location of DocBook stylesheets
1438 Use these variables to override the choices made by
`configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <pgsql-bugs@postgresql.org>.
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" || continue
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1469 .) # We are building in place.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1493 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1502 PostgreSQL configure 8.4beta2
1503 generated by GNU Autoconf 2.61
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1510 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1518 It was created by PostgreSQL $as_me 8.4beta2, which was
1519 generated by GNU Autoconf 2.61. Invocation command line was
1531 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1532 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1533 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1534 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1535 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1537 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1538 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1540 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1541 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1542 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1543 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1544 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1545 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1546 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1579 ac_must_keep_next=false
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1590 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1608 -* ) ac_must_keep_next=true ;;
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1630 ## ---------------- ##
1631 ## Cache variables. ##
1632 ## ---------------- ##
1635 # The following way of writing the cache mishandles newlines in values,
1637 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1638 eval ac_val=\$$ac_var
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1652 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1667 ## ----------------- ##
1668 ## Output variables. ##
1669 ## ----------------- ##
1672 for ac_var in $ac_subst_vars
1674 eval ac_val=\$$ac_var
1676 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1678 echo "$ac_var='\''$ac_val'\''"
1682 if test -n "$ac_subst_files"; then
1684 ## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##
1689 for ac_var in $ac_subst_files
1691 eval ac_val=\$$ac_var
1693 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 echo "$ac_var='\''$ac_val'\''"
1700 if test -s confdefs.h; then
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1726 # Predefined preprocessor variables.
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_NAME "$PACKAGE_NAME"
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_STRING "$PACKAGE_STRING"
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1791 # Check that the precious variables saved in the cache have kept the same
1793 ac_cache_corrupted=false
1794 for ac_var in $ac_precious_vars; do
1795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1796 eval ac_new_set=\$ac_env_${ac_var}_set
1797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798 eval ac_new_val=\$ac_env_${ac_var}_value
1799 case $ac_old_set,$ac_new_set in
1801 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1802 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1803 ac_cache_corrupted=: ;;
1805 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1806 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1807 ac_cache_corrupted=: ;;
1810 if test "x$ac_old_val" != "x$ac_new_val"; then
1811 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1812 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1813 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1814 echo "$as_me: former value
: $ac_old_val" >&2;}
1815 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1816 echo "$as_me: current value
: $ac_new_val" >&2;}
1817 ac_cache_corrupted=:
1820 # Pass precious variables to config.status.
1821 if test "$ac_new_set" = set; then
1823 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1824 *) ac_arg=$ac_var=$ac_new_val ;;
1826 case " $ac_configure_args " in
1827 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1828 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1832 if $ac_cache_corrupted; then
1833 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1834 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1835 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1836 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1837 { (exit 1); exit 1; }; }
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 for ac_dir in config "$srcdir"/config; do
1877 if test -f "$ac_dir/install-sh"; then
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 elif test -f "$ac_dir/install.sh"; then
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 elif test -f "$ac_dir/shtool"; then
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 configure_args=$ac_configure_args
1911 cat >>confdefs.h <<_ACEOF
1912 #define PG_VERSION "$PACKAGE_VERSION"
1915 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1918 cat >>confdefs.h <<_ACEOF
1919 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1956 ac_save_IFS=$IFS; IFS='-'
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1966 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1993 ac_save_IFS=$IFS; IFS='-'
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2003 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking which template to use" >&5
2009 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2012 pgac_args="$pgac_args with_template"
2015 # Check whether --with-template was given.
2016 if test "${with_template+set}" = set; then
2017 withval=$with_template;
2020 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2021 echo "$as_me: error: argument required for --with-template option" >&2;}
2022 { (exit 1); exit 1; }; }
2025 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2026 echo "$as_me: error: argument required for --with-template option" >&2;}
2027 { (exit 1); exit 1; }; }
2032 list) echo; ls "$srcdir/src/template"; exit;;
2033 *) if test -f "$srcdir/src/template/$with_template" ; then
2036 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2037 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2038 { (exit 1); exit 1; }; }
2047 # --with-template not given
2050 aix*) template=aix ;;
2051 bsdi*) template=bsdi ;;
2052 cygwin*) template=cygwin ;;
2053 darwin*) template=darwin ;;
2054 dgux*) template=dgux ;;
2055 freebsd*) template=freebsd ;;
2056 hpux*) template=hpux ;;
2057 irix*) template=irix ;;
2058 linux*|gnu*|k*bsd*-gnu)
2060 mingw*) template=win32 ;;
2061 netbsd*) template=netbsd ;;
2062 nextstep*) template=nextstep ;;
2063 openbsd*) template=openbsd ;;
2064 osf*) template=osf ;;
2065 sco*) template=sco ;;
2066 solaris*) template=solaris ;;
2067 sunos*) template=sunos4 ;;
2069 case $host_vendor in
2070 univel) template=univel ;;
2072 sysv4*) template=svr4 ;;
2073 sysv5*) template=unixware ;;
2074 ultrix*) template=ultrix4 ;;
2077 if test x"$template" = x"" ; then
2078 { { echo "$as_me:$LINENO: error:
2079 *******************************************************************
2080 PostgreSQL has apparently not been ported to your platform yet.
2081 To try a manual configuration, look into the src/template directory
2082 for a similar platform and use the '--with-template=' option.
2084 Please also contact <pgsql-bugs@postgresql.org> to see about
2085 rectifying this. Include the above 'checking host system type...'
2087 *******************************************************************
2089 echo "$as_me: error:
2090 *******************************************************************
2091 PostgreSQL has apparently not been ported to your platform yet.
2092 To try a manual configuration, look into the src/template directory
2093 for a similar platform and use the '--with-template=' option.
2095 Please also contact <pgsql-bugs@postgresql.org> to see about
2096 rectifying this. Include the above 'checking host system type...'
2098 *******************************************************************
2100 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: $template" >&5
2109 echo "${ECHO_T}$template" >&6; }
2114 # Initialize default assumption that we do not need separate assembly code
2115 # for TAS (test-and-set). This can be overridden by the template file
2116 # when it's executed.
2123 ## Command line options
2127 # Add non-standard directories to the include path
2130 pgac_args="$pgac_args with_includes"
2133 # Check whether --with-includes was given.
2134 if test "${with_includes+set}" = set; then
2135 withval=$with_includes;
2138 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2139 echo "$as_me: error: argument required for --with-includes option" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2144 echo "$as_me: error: argument required for --with-includes option" >&2;}
2145 { (exit 1); exit 1; }; }
2158 # Add non-standard directories to the library search path
2161 pgac_args="$pgac_args with_libraries"
2164 # Check whether --with-libraries was given.
2165 if test "${with_libraries+set}" = set; then
2166 withval=$with_libraries;
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2170 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2175 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2176 { (exit 1); exit 1; }; }
2179 LIBRARY_DIRS=$withval
2188 pgac_args="$pgac_args with_libs"
2191 # Check whether --with-libs was given.
2192 if test "${with_libs+set}" = set; then
2196 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2197 echo "$as_me: error: argument required for --with-libs option" >&2;}
2198 { (exit 1); exit 1; }; }
2201 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2202 echo "$as_me: error: argument required for --with-libs option" >&2;}
2203 { (exit 1); exit 1; }; }
2206 LIBRARY_DIRS=$withval
2216 # 64-bit integer date/time storage: enabled by default.
2218 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2219 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2221 pgac_args="$pgac_args enable_integer_datetimes"
2223 # Check whether --enable-integer-datetimes was given.
2224 if test "${enable_integer_datetimes+set}" = set; then
2225 enableval=$enable_integer_datetimes;
2229 cat >>confdefs.h <<\_ACEOF
2230 #define USE_INTEGER_DATETIMES 1
2238 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2239 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2240 { (exit 1); exit 1; }; }
2245 enable_integer_datetimes=yes
2247 cat >>confdefs.h <<\_ACEOF
2248 #define USE_INTEGER_DATETIMES 1
2254 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2255 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2261 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2262 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2264 pgac_args="$pgac_args enable_nls"
2266 # Check whether --enable-nls was given.
2267 if test "${enable_nls+set}" = set; then
2268 enableval=$enable_nls;
2278 WANTED_LANGUAGES=$enableval
2288 if test "$enable_nls" = yes; then
2290 cat >>confdefs.h <<\_ACEOF
2291 #define ENABLE_NLS 1
2296 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2297 echo "${ECHO_T}$enable_nls" >&6; }
2302 # Default port number (--with-pgport), default 5432
2304 { echo "$as_me:$LINENO: checking for default port number" >&5
2305 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2307 pgac_args="$pgac_args with_pgport"
2310 # Check whether --with-pgport was given.
2311 if test "${with_pgport+set}" = set; then
2312 withval=$with_pgport;
2315 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2316 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2321 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2322 { (exit 1); exit 1; }; }
2325 default_port=$withval
2334 { echo "$as_me:$LINENO: result: $default_port" >&5
2335 echo "${ECHO_T}$default_port" >&6; }
2336 # Need both of these because some places want an integer and some a string
2338 cat >>confdefs.h <<_ACEOF
2339 #define DEF_PGPORT ${default_port}
2343 cat >>confdefs.h <<_ACEOF
2344 #define DEF_PGPORT_STR "${default_port}"
2350 # Option to disable shared libraries
2353 pgac_args="$pgac_args enable_shared"
2355 # Check whether --enable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357 enableval=$enable_shared;
2366 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2367 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2368 { (exit 1); exit 1; }; }
2381 # '-rpath'-like feature can be disabled
2384 pgac_args="$pgac_args enable_rpath"
2386 # Check whether --enable-rpath was given.
2387 if test "${enable_rpath+set}" = set; then
2388 enableval=$enable_rpath;
2397 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2398 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2399 { (exit 1); exit 1; }; }
2415 pgac_args="$pgac_args enable_spinlocks"
2417 # Check whether --enable-spinlocks was given.
2418 if test "${enable_spinlocks+set}" = set; then
2419 enableval=$enable_spinlocks;
2428 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2429 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2430 { (exit 1); exit 1; }; }
2435 enable_spinlocks=yes
2442 # --enable-debug adds -g to compiler flags
2445 pgac_args="$pgac_args enable_debug"
2447 # Check whether --enable-debug was given.
2448 if test "${enable_debug+set}" = set; then
2449 enableval=$enable_debug;
2458 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2459 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2460 { (exit 1); exit 1; }; }
2473 # --enable-profiling enables gcc profiling
2476 pgac_args="$pgac_args enable_profiling"
2478 # Check whether --enable-profiling was given.
2479 if test "${enable_profiling+set}" = set; then
2480 enableval=$enable_profiling;
2489 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2490 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2491 { (exit 1); exit 1; }; }
2504 # --enable-coverage enables generation of code coverage metrics with gcov
2507 pgac_args="$pgac_args enable_coverage"
2509 # Check whether --enable-coverage was given.
2510 if test "${enable_coverage+set}" = set; then
2511 enableval=$enable_coverage;
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_GCOV+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$GCOV"; then
2524 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_GCOV="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 GCOV=$ac_cv_prog_GCOV
2544 if test -n "$GCOV"; then
2545 { echo "$as_me:$LINENO: result: $GCOV" >&5
2546 echo "${ECHO_T}$GCOV" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$GCOV" && break
2556 if test -z "$GCOV"; then
2557 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2558 echo "$as_me: error: gcov not found" >&2;}
2559 { (exit 1); exit 1; }; }
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_LCOV+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$LCOV"; then
2571 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_LCOV="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 LCOV=$ac_cv_prog_LCOV
2591 if test -n "$LCOV"; then
2592 { echo "$as_me:$LINENO: result: $LCOV" >&5
2593 echo "${ECHO_T}$LCOV" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$LCOV" && break
2603 if test -z "$LCOV"; then
2604 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2605 echo "$as_me: error: lcov not found" >&2;}
2606 { (exit 1); exit 1; }; }
2608 for ac_prog in genhtml
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_GENHTML+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$GENHTML"; then
2618 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_GENHTML="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 GENHTML=$ac_cv_prog_GENHTML
2638 if test -n "$GENHTML"; then
2639 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2640 echo "${ECHO_T}$GENHTML" >&6; }
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$GENHTML" && break
2650 if test -z "$GENHTML"; then
2651 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2652 echo "$as_me: error: genhtml not found" >&2;}
2653 { (exit 1); exit 1; }; }
2660 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2661 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2662 { (exit 1); exit 1; }; }
2678 pgac_args="$pgac_args enable_dtrace"
2680 # Check whether --enable-dtrace was given.
2681 if test "${enable_dtrace+set}" = set; then
2682 enableval=$enable_dtrace;
2686 cat >>confdefs.h <<\_ACEOF
2687 #define ENABLE_DTRACE 1
2690 for ac_prog in dtrace
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_DTRACE+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$DTRACE"; then
2700 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_DTRACE="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 DTRACE=$ac_cv_prog_DTRACE
2720 if test -n "$DTRACE"; then
2721 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2722 echo "${ECHO_T}$DTRACE" >&6; }
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$DTRACE" && break
2732 if test -z "$DTRACE"; then
2733 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2734 echo "$as_me: error: dtrace not found" >&2;}
2735 { (exit 1); exit 1; }; }
2743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2744 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2745 { (exit 1); exit 1; }; }
2760 { echo "$as_me:$LINENO: checking for block size" >&5
2761 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2763 pgac_args="$pgac_args with_blocksize"
2766 # Check whether --with-blocksize was given.
2767 if test "${with_blocksize+set}" = set; then
2768 withval=$with_blocksize;
2771 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2772 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2773 { (exit 1); exit 1; }; }
2776 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2777 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2778 { (exit 1); exit 1; }; }
2790 case ${blocksize} in
2797 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2798 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2799 { (exit 1); exit 1; }; }
2801 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2802 echo "${ECHO_T}${blocksize}kB" >&6; }
2805 cat >>confdefs.h <<_ACEOF
2806 #define BLCKSZ ${BLCKSZ}
2811 # Relation segment size
2813 { echo "$as_me:$LINENO: checking for segment size" >&5
2814 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2816 pgac_args="$pgac_args with_segsize"
2819 # Check whether --with-segsize was given.
2820 if test "${with_segsize+set}" = set; then
2821 withval=$with_segsize;
2824 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2825 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2826 { (exit 1); exit 1; }; }
2829 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2830 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2831 { (exit 1); exit 1; }; }
2843 # this expression is set up to avoid unnecessary integer overflow
2844 # blocksize is already guaranteed to be a factor of 1024
2845 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2846 test $? -eq 0 || exit 1
2847 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2848 echo "${ECHO_T}${segsize}GB" >&6; }
2851 cat >>confdefs.h <<_ACEOF
2852 #define RELSEG_SIZE ${RELSEG_SIZE}
2859 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2860 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2862 pgac_args="$pgac_args with_wal_blocksize"
2865 # Check whether --with-wal-blocksize was given.
2866 if test "${with_wal_blocksize+set}" = set; then
2867 withval=$with_wal_blocksize;
2870 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2871 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2872 { (exit 1); exit 1; }; }
2875 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2876 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2877 { (exit 1); exit 1; }; }
2880 wal_blocksize=$withval
2889 case ${wal_blocksize} in
2890 1) XLOG_BLCKSZ=1024;;
2891 2) XLOG_BLCKSZ=2048;;
2892 4) XLOG_BLCKSZ=4096;;
2893 8) XLOG_BLCKSZ=8192;;
2894 16) XLOG_BLCKSZ=16384;;
2895 32) XLOG_BLCKSZ=32768;;
2896 64) XLOG_BLCKSZ=65536;;
2897 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2898 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2899 { (exit 1); exit 1; }; }
2901 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2902 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2905 cat >>confdefs.h <<_ACEOF
2906 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2913 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2914 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2916 pgac_args="$pgac_args with_wal_segsize"
2919 # Check whether --with-wal-segsize was given.
2920 if test "${with_wal_segsize+set}" = set; then
2921 withval=$with_wal_segsize;
2924 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2925 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2926 { (exit 1); exit 1; }; }
2929 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2930 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2931 { (exit 1); exit 1; }; }
2934 wal_segsize=$withval
2943 case ${wal_segsize} in
2951 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2952 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2953 { (exit 1); exit 1; }; }
2955 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2956 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2959 cat >>confdefs.h <<_ACEOF
2960 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2968 # For historical reasons you can also use --with-CC to specify the C compiler
2969 # to use, although the standard way to do this is to set the CC environment
2972 pgac_args="$pgac_args with_CC"
2975 # Check whether --with-CC was given.
2976 if test "${with_CC+set}" = set; then
2980 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2981 echo "$as_me: error: argument required for --with-CC option" >&2;}
2982 { (exit 1); exit 1; }; }
2985 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2986 echo "$as_me: error: argument required for --with-CC option" >&2;}
2987 { (exit 1); exit 1; }; }
2999 aix) pgac_cc_list="gcc xlc";;
3000 irix) pgac_cc_list="cc";; # no gcc
3001 *) pgac_cc_list="gcc cc";;
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 for ac_prog in $pgac_cc_list
3012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 if test -n "$CC"; then
3041 { echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6; }
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 test -n "$CC" && break
3052 if test -z "$CC"; then
3054 for ac_prog in $pgac_cc_list
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_CC="$ac_prog"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086 echo "${ECHO_T}$ac_ct_CC" >&6; }
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3093 test -n "$ac_ct_CC" && break
3096 if test "x$ac_ct_CC" = x; then
3099 case $cross_compiling:$ac_tool_warned in
3101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet. If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&5
3104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3107 ac_tool_warned=yes ;;
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log
' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details.
" >&2;}
3118 { (exit 1); exit 1; }; }
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (ac_try="$ac_compiler --version >&5"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compiler --version >&5") 2>&5
3131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3132 (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compiler -v >&5") 2>&5
3141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3142 (exit $ac_status); }
3143 { (ac_try="$ac_compiler -V >&5"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compiler -V >&5") 2>&5
3151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3152 (exit $ac_status); }
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3174 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3175 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # List of possible output files, starting from the most likely.
3179 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3180 # only as a last resort. b.out is created by i960 compilers.
3181 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3183 # The IRIX 6 linker writes into existing files which may not be
3184 # executable, retaining their permissions. Remove them first so a
3185 # subsequent execution test works.
3187 for ac_file in $ac_files
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 if { (ac_try="$ac_link_default"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_link_default") 2>&5
3204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3205 (exit $ac_status); }; then
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3211 for ac_file in $ac_files ''
3213 test -f "$ac_file" || continue
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3218 # We found the default executable, but exeext='' is most
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3243 echo "${ECHO_T}$ac_file" >&6; }
3244 if test -z "$ac_file"; then
3245 echo "$as_me: failed program was
:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3249 See \
`config.log' for more details." >&5
3250 echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log
' for more details." >&2;}
3252 { (exit 77); exit 77; }; }
3255 ac_exeext=$ac_cv_exeext
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264 if { ac_try='.
/$ac_file'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3276 if test "$cross_compiling" = maybe; then
3279 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \
`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details.
" >&2;}
3285 { (exit 1); exit 1; }; }
3289 { echo "$as_me:$LINENO: result
: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3297 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3298 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6; }
3301 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3302 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3303 if { (ac_try="$ac_link"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_link") 2>&5
3311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3312 (exit $ac_status); }; then
3313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3317 for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3328 See \
`config.log' for more details." >&5
3329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log
' for more details." >&2;}
3331 { (exit 1); exit 1; }; }
3334 rm -f conftest$ac_cv_exeext
3335 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3336 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3341 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3343 if test "${ac_cv_objext+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3361 rm -f conftest.o conftest.obj
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3381 echo "$as_me: failed program was:" >&5
3382 sed 's
/^
/|
/' conftest.$ac_ext >&5
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details.
" >&5
3386 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3387 See \
`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3391 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3394 echo "${ECHO_T}$ac_cv_objext" >&6; }
3395 OBJEXT=$ac_cv_objext
3397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3424 *) ac_try_echo
=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1
>conftest.err
3431 cat conftest.err
>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } && {
3434 test -z "$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 } && test -s conftest.
$ac_objext; then
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.
$ac_ext >&5
3445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3446 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3451 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS
=${CFLAGS+set}
3453 ac_save_CFLAGS
=$CFLAGS
3454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 ac_save_c_werror_flag
=$ac_c_werror_flag
3460 ac_c_werror_flag
=yes
3463 cat >conftest.
$ac_ext <<_ACEOF
3466 cat confdefs.h
>>conftest.
$ac_ext
3467 cat >>conftest.
$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3478 rm -f conftest.
$ac_objext
3479 if { (ac_try
="$ac_compile"
3481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3520 *) ac_try_echo
=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.
$ac_objext; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3538 ac_c_werror_flag
=$ac_save_c_werror_flag
3540 cat >conftest.
$ac_ext <<_ACEOF
3543 cat confdefs.h
>>conftest.
$ac_ext
3544 cat >>conftest.
$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3555 rm -f conftest.
$ac_objext
3556 if { (ac_try
="$ac_compile"
3558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3600 if test "$GCC" = yes; then
3606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_cv_prog_cc_c89=no
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3637 s = g (p, va_arg (v,int));
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3678 *) ac_try_echo
=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1
>conftest.err
3685 cat conftest.err
>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.
$ac_objext; then
3691 ac_cv_prog_cc_c89
=$ac_arg
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.
$ac_ext >&5
3699 rm -f core conftest.err conftest.
$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 rm -f conftest.
$ac_ext
3707 case "x$ac_cv_prog_cc_c89" in
3709 { echo "$as_me:$LINENO: result: none needed" >&5
3710 echo "${ECHO_T}none needed" >&6; } ;;
3712 { echo "$as_me:$LINENO: result: unsupported" >&5
3713 echo "${ECHO_T}unsupported" >&6; } ;;
3715 CC
="$CC $ac_cv_prog_cc_c89"
3716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3722 ac_cpp
='$CPP $CPPFLAGS'
3723 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3728 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3729 # but has idiosyncrasies of its own. We assume icc will define
3730 # __INTEL_COMPILER regardless of CFLAGS.
3732 cat >conftest.
$ac_ext <<_ACEOF
3735 cat confdefs.h
>>conftest.
$ac_ext
3736 cat >>conftest.
$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3742 #ifndef __INTEL_COMPILER
3749 rm -f conftest.
$ac_objext
3750 if { (ac_try
="$ac_compile"
3752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3758 grep -v '^ *+' conftest.er1 >conftest.err
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 # Check if it's Sun Studio compiler. We assume that
3777 # __SUNPRO_C will be defined for Sun Studio compilers
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3799 *) ac_try_echo
=$ac_try;;
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3804 grep -v '^ *+' conftest.er1
>conftest.err
3806 cat conftest.err
>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.
$ac_objext; then
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.
$ac_ext >&5
3820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3829 .
"$srcdir/src/template/$template" ||
exit
3831 # CFLAGS are selected so:
3832 # If the user specifies something in the environment, that is used.
3833 # else: If the template file set something, that is used.
3834 # else: If coverage was enabled, don't set anything.
3835 # else: If the compiler is GCC, then we use -O2.
3836 # else: If the compiler is something else, then we use -O, unless debugging.
3838 if test "$ac_env_CFLAGS_set" = set; then
3839 CFLAGS
=$ac_env_CFLAGS_value
3840 elif test "${CFLAGS+set}" = set; then
3841 : # (keep what template set)
3842 elif test "$enable_coverage" = yes; then
3843 : # no optimization by default
3844 elif test "$GCC" = yes; then
3847 # if the user selected debug mode, don't use -O
3848 if test "$enable_debug" != yes; then
3853 # Some versions of GCC support some additional useful warning flags.
3854 # Check whether they are supported, and add them to CFLAGS if so.
3855 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3856 # but has its own. Also check other compiler-specific flags here.
3858 if test "$GCC" = yes -a "$ICC" = no
; then
3859 CFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3860 # These work in some but not all gcc versions
3861 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3862 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3863 pgac_save_CFLAGS
=$CFLAGS
3864 CFLAGS
="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3865 cat >conftest.
$ac_ext <<_ACEOF
3868 cat confdefs.h
>>conftest.
$ac_ext
3869 cat >>conftest.
$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3880 rm -f conftest.
$ac_objext
3881 if { (ac_try
="$ac_compile"
3883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3889 grep -v '^ *+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_c_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3897 { echo "$as_me:$LINENO: result: yes" >&5
3898 echo "${ECHO_T}yes" >&6; }
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 CFLAGS="$pgac_save_CFLAGS"
3904 { echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6; }
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3911 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3912 pgac_save_CFLAGS=$CFLAGS
3913 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3929 rm -f conftest.$ac_objext
3930 if { (ac_try="$ac_compile"
3932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3933 *) ac_try_echo
=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_compile") 2>conftest.er1
3938 grep -v '^ *+' conftest.er1
>conftest.err
3940 cat conftest.err
>&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest.
$ac_objext; then
3946 { echo "$as_me:$LINENO: result: yes" >&5
3947 echo "${ECHO_T}yes" >&6; }
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.
$ac_ext >&5
3952 CFLAGS
="$pgac_save_CFLAGS"
3953 { echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6; }
3957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3959 # Disable strict-aliasing rules; needed for gcc 3.3+
3960 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3961 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3962 pgac_save_CFLAGS
=$CFLAGS
3963 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3964 cat >conftest.
$ac_ext <<_ACEOF
3967 cat confdefs.h
>>conftest.
$ac_ext
3968 cat >>conftest.
$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3979 rm -f conftest.
$ac_objext
3980 if { (ac_try
="$ac_compile"
3982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_compile") 2>conftest.er1
3988 grep -v '^ *+' conftest.er1 >conftest.err
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } && {
3993 test -z "$ac_c_werror_flag" ||
3994 test ! -s conftest.err
3995 } && test -s conftest.$ac_objext; then
3996 { echo "$as_me:$LINENO: result: yes" >&5
3997 echo "${ECHO_T}yes" >&6; }
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 CFLAGS="$pgac_save_CFLAGS"
4003 { echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6; }
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4010 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4011 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4012 pgac_save_CFLAGS=$CFLAGS
4013 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4014 cat >conftest.$ac_ext <<_ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4033 *) ac_try_echo
=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1
>conftest.err
4040 cat conftest.err
>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest.
$ac_objext; then
4046 { echo "$as_me:$LINENO: result: yes" >&5
4047 echo "${ECHO_T}yes" >&6; }
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.
$ac_ext >&5
4052 CFLAGS
="$pgac_save_CFLAGS"
4053 { echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6; }
4057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4059 elif test "$ICC" = yes; then
4060 # Intel's compiler has a bug/misoptimization in checking for
4061 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4062 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4063 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4064 pgac_save_CFLAGS
=$CFLAGS
4065 CFLAGS
="$pgac_save_CFLAGS -mp1"
4066 cat >conftest.
$ac_ext <<_ACEOF
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4081 rm -f conftest.
$ac_objext
4082 if { (ac_try
="$ac_compile"
4084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && {
4095 test -z "$ac_c_werror_flag" ||
4096 test ! -s conftest.err
4097 } && test -s conftest.$ac_objext; then
4098 { echo "$as_me:$LINENO: result: yes" >&5
4099 echo "${ECHO_T}yes" >&6; }
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 CFLAGS="$pgac_save_CFLAGS"
4105 { echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6; }
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 # Make sure strict aliasing is off (though this is said to be the default)
4112 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4113 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4114 pgac_save_CFLAGS=$CFLAGS
4115 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4135 *) ac_try_echo
=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1
>conftest.err
4142 cat conftest.err
>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.
$ac_objext; then
4148 { echo "$as_me:$LINENO: result: yes" >&5
4149 echo "${ECHO_T}yes" >&6; }
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.
$ac_ext >&5
4154 CFLAGS
="$pgac_save_CFLAGS"
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4161 elif test "$PORTNAME" = "aix"; then
4162 # AIX's xlc has to have strict aliasing turned off too
4163 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4164 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4165 pgac_save_CFLAGS
=$CFLAGS
4166 CFLAGS
="$pgac_save_CFLAGS -qnoansialias"
4167 cat >conftest.
$ac_ext <<_ACEOF
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4182 rm -f conftest.
$ac_objext
4183 if { (ac_try
="$ac_compile"
4185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_compile") 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && {
4196 test -z "$ac_c_werror_flag" ||
4197 test ! -s conftest.err
4198 } && test -s conftest.$ac_objext; then
4199 { echo "$as_me:$LINENO: result: yes" >&5
4200 echo "${ECHO_T}yes" >&6; }
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 CFLAGS="$pgac_save_CFLAGS"
4206 { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 # supply -g if --enable-debug
4215 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4219 # enable code coverage if --enable-coverage
4220 if test "$enable_coverage" = yes; then
4221 if test "$GCC" = yes; then
4222 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4224 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4225 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4226 { (exit 1); exit 1; }; }
4230 # enable profiling if --enable-profiling
4231 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4232 if test "$GCC" = yes; then
4234 cat >>confdefs.h <<\_ACEOF
4235 #define PROFILE_PID_DIR 1
4238 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4240 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4241 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4242 { (exit 1); exit 1; }; }
4246 # We already have this in Makefile.win32, but configure needs it too
4247 if test "$PORTNAME" = "win32"; then
4248 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4251 # Check if the compiler still works with the template settings
4252 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4253 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4254 cat >conftest.$ac_ext <<_ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4269 rm -f conftest.$ac_objext conftest$ac_exeext
4270 if { (ac_try="$ac_link"
4272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4273 *) ac_try_echo
=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_link") 2>conftest.er1
4278 grep -v '^ *+' conftest.er1
>conftest.err
4280 cat conftest.err
>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest
$ac_exeext &&
4286 $as_test_x conftest
$ac_exeext; then
4287 { echo "$as_me:$LINENO: result: yes" >&5
4288 echo "${ECHO_T}yes" >&6; }
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.
$ac_ext >&5
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4295 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4296 echo "$as_me: error: cannot proceed" >&2;}
4297 { (exit 1); exit 1; }; }
4300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4301 conftest
$ac_exeext conftest.
$ac_ext
4303 # Defend against gcc -ffast-math
4304 if test "$GCC" = yes; then
4305 cat >conftest.
$ac_ext <<_ACEOF
4308 cat confdefs.h
>>conftest.
$ac_ext
4309 cat >>conftest.
$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4315 #ifdef __FAST_MATH__
4322 rm -f conftest.
$ac_objext
4323 if { (ac_try
="$ac_compile"
4325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4331 grep -v '^ *+' conftest.er1 >conftest.err
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4345 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4346 { (exit 1); exit 1; }; }
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4359 # On Suns, sometimes $CPP names a directory.
4360 if test -n "$CPP" && test -d "$CPP"; then
4363 if test -z "$CPP"; then
4364 if test "${ac_cv_prog_CPP+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 # Double quotes because CPP needs to be expanded
4368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4371 for ac_c_preproc_warn_flag in '' yes
4373 # Use a header file that comes with gcc, so configuring glibc
4374 # with a fresh cross-compiler works.
4375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376 # <limits.h> exists even on freestanding compilers.
4377 # On the NeXT, cc -E runs the code through the compiler's parser,
4378 # not just through cpp. "Syntax error" is here to catch this case.
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4386 # include <limits.h>
4388 # include <assert.h>
4392 if { (ac_try="$ac_cpp conftest.$ac_ext"
4394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4395 *) ac_try_echo
=$ac_try;;
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4400 grep -v '^ *+' conftest.er1
>conftest.err
4402 cat conftest.err
>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } >/dev
/null
&& {
4405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.
$ac_ext >&5
4413 # Broken: fails on valid input.
4417 rm -f conftest.err conftest.
$ac_ext
4419 # OK, works on sane cases. Now check whether nonexistent headers
4420 # can be detected and how.
4421 cat >conftest.
$ac_ext <<_ACEOF
4424 cat confdefs.h
>>conftest.
$ac_ext
4425 cat >>conftest.
$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <ac_nonexistent.h>
4429 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4437 grep -v '^ *+' conftest.er1 >conftest.err
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } >/dev/null && {
4442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4443 test ! -s conftest.err
4445 # Broken: success on invalid input.
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 # Passes both tests.
4456 rm -f conftest.err conftest.$ac_ext
4459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460 rm -f conftest.err conftest.
$ac_ext
4461 if $ac_preproc_ok; then
4473 { echo "$as_me:$LINENO: result: $CPP" >&5
4474 echo "${ECHO_T}$CPP" >&6; }
4476 for ac_c_preproc_warn_flag
in '' yes
4478 # Use a header file that comes with gcc, so configuring glibc
4479 # with a fresh cross-compiler works.
4480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481 # <limits.h> exists even on freestanding compilers.
4482 # On the NeXT, cc -E runs the code through the compiler's parser,
4483 # not just through cpp. "Syntax error" is here to catch this case.
4484 cat >conftest.
$ac_ext <<_ACEOF
4487 cat confdefs.h
>>conftest.
$ac_ext
4488 cat >>conftest.
$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4491 # include <limits.h>
4493 # include <assert.h>
4497 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4505 grep -v '^ *+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } >/dev/null && {
4510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4511 test ! -s conftest.err
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 # Broken: fails on valid input.
4522 rm -f conftest.err conftest.$ac_ext
4524 # OK, works on sane cases. Now check whether nonexistent headers
4525 # can be detected and how.
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #include <ac_nonexistent.h>
4534 if { (ac_try="$ac_cpp conftest.$ac_ext"
4536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4537 *) ac_try_echo
=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4542 grep -v '^ *+' conftest.er1
>conftest.err
4544 cat conftest.err
>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev
/null
&& {
4547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4550 # Broken: success on invalid input.
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.
$ac_ext >&5
4556 # Passes both tests.
4561 rm -f conftest.err conftest.
$ac_ext
4564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4565 rm -f conftest.err conftest.
$ac_ext
4566 if $ac_preproc_ok; then
4569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4572 See \`config.log' for more details." >&2;}
4573 { (exit 1); exit 1; }; }
4577 ac_cpp
='$CPP $CPPFLAGS'
4578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4586 # Set up TAS assembly code if needed; the template file has now had its
4587 # chance to request this.
4589 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4592 if test "$need_tas" = yes ; then
4601 # Automatic dependency tracking
4604 pgac_args
="$pgac_args enable_depend"
4606 # Check whether --enable-depend was given.
4607 if test "${enable_depend+set}" = set; then
4608 enableval
=$enable_depend;
4617 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4618 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4619 { (exit 1); exit 1; }; }
4633 # Enable assert checks
4636 pgac_args
="$pgac_args enable_cassert"
4638 # Check whether --enable-cassert was given.
4639 if test "${enable_cassert+set}" = set; then
4640 enableval
=$enable_cassert;
4644 cat >>confdefs.h
<<\_ACEOF
4645 #define USE_ASSERT_CHECKING 1
4653 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4654 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4655 { (exit 1); exit 1; }; }
4668 # Include directories
4671 IFS
="${IFS}${PATH_SEPARATOR}"
4672 # SRCH_INC comes from the template file
4673 for dir
in $with_includes $SRCH_INC; do
4674 if test -d "$dir"; then
4675 INCLUDES
="$INCLUDES -I$dir"
4677 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4678 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4686 # Library directories
4689 IFS
="${IFS}${PATH_SEPARATOR}"
4690 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4691 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4692 if test -d "$dir"; then
4693 LIBDIRS
="$LIBDIRS -L$dir"
4695 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4696 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4702 # Enable thread-safe client libraries
4704 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4705 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4706 if test "$PORTNAME" != "win32"; then
4708 pgac_args
="$pgac_args enable_thread_safety"
4710 # Check whether --enable-thread-safety was given.
4711 if test "${enable_thread_safety+set}" = set; then
4712 enableval
=$enable_thread_safety;
4721 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4722 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4723 { (exit 1); exit 1; }; }
4728 enable_thread_safety
=no
4734 # Win32 should always use threads
4736 pgac_args
="$pgac_args enable_thread_safety"
4738 # Check whether --enable-thread-safety was given.
4739 if test "${enable_thread_safety+set}" = set; then
4740 enableval
=$enable_thread_safety;
4749 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4750 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4751 { (exit 1); exit 1; }; }
4756 enable_thread_safety
=yes
4764 pgac_args
="$pgac_args enable_thread_safety_force"
4766 # Check whether --enable-thread-safety-force was given.
4767 if test "${enable_thread_safety_force+set}" = set; then
4768 enableval
=$enable_thread_safety_force;
4777 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4778 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4779 { (exit 1); exit 1; }; }
4784 enable_thread_safety_force
=no
4789 if test "$enable_thread_safety" = yes -o \
4790 "$enable_thread_safety_force" = yes; then
4791 enable_thread_safety
="yes" # for 'force'
4793 cat >>confdefs.h
<<\_ACEOF
4794 #define ENABLE_THREAD_SAFETY 1
4798 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4799 echo "${ECHO_T}$enable_thread_safety" >&6; }
4803 # Optionally build Tcl modules (PL/Tcl)
4805 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4806 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4808 pgac_args
="$pgac_args with_tcl"
4811 # Check whether --with-tcl was given.
4812 if test "${with_tcl+set}" = set; then
4822 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4823 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4824 { (exit 1); exit 1; }; }
4834 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4835 echo "${ECHO_T}$with_tcl" >&6; }
4838 # We see if the path to the Tcl/Tk configuration scripts is specified.
4839 # This will override the use of tclsh to find the paths to search.
4842 pgac_args
="$pgac_args with_tclconfig"
4845 # Check whether --with-tclconfig was given.
4846 if test "${with_tclconfig+set}" = set; then
4847 withval
=$with_tclconfig;
4850 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4851 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4852 { (exit 1); exit 1; }; }
4855 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4856 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4857 { (exit 1); exit 1; }; }
4869 # Optionally build Perl modules (PL/Perl)
4871 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4872 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4874 pgac_args
="$pgac_args with_perl"
4877 # Check whether --with-perl was given.
4878 if test "${with_perl+set}" = set; then
4888 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4889 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4890 { (exit 1); exit 1; }; }
4900 { echo "$as_me:$LINENO: result: $with_perl" >&5
4901 echo "${ECHO_T}$with_perl" >&6; }
4905 # Optionally build Python modules (PL/Python)
4907 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4908 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4910 pgac_args
="$pgac_args with_python"
4913 # Check whether --with-python was given.
4914 if test "${with_python+set}" = set; then
4915 withval
=$with_python;
4924 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4925 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4926 { (exit 1); exit 1; }; }
4936 { echo "$as_me:$LINENO: result: $with_python" >&5
4937 echo "${ECHO_T}$with_python" >&6; }
4943 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4944 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4946 pgac_args
="$pgac_args with_gssapi"
4949 # Check whether --with-gssapi was given.
4950 if test "${with_gssapi+set}" = set; then
4951 withval
=$with_gssapi;
4956 cat >>confdefs.h
<<\_ACEOF
4957 #define ENABLE_GSS 1
4960 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4967 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4968 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4969 { (exit 1); exit 1; }; }
4979 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4980 echo "${ECHO_T}$with_gssapi" >&6; }
4986 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4987 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4989 pgac_args
="$pgac_args with_krb5"
4992 # Check whether --with-krb5 was given.
4993 if test "${with_krb5+set}" = set; then
4999 cat >>confdefs.h
<<\_ACEOF
5003 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5010 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5011 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5012 { (exit 1); exit 1; }; }
5022 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5023 echo "${ECHO_T}$with_krb5" >&6; }
5031 # Kerberos configuration parameters
5034 pgac_args
="$pgac_args with_krb_srvnam"
5037 # Check whether --with-krb-srvnam was given.
5038 if test "${with_krb_srvnam+set}" = set; then
5039 withval
=$with_krb_srvnam;
5042 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5043 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5044 { (exit 1); exit 1; }; }
5047 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5048 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5049 { (exit 1); exit 1; }; }
5057 with_krb_srvnam
="postgres"
5062 cat >>confdefs.h
<<_ACEOF
5063 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5071 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5072 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5074 pgac_args
="$pgac_args with_pam"
5077 # Check whether --with-pam was given.
5078 if test "${with_pam+set}" = set; then
5083 cat >>confdefs.h
<<\_ACEOF
5092 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5093 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5094 { (exit 1); exit 1; }; }
5104 { echo "$as_me:$LINENO: result: $with_pam" >&5
5105 echo "${ECHO_T}$with_pam" >&6; }
5112 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5113 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5115 pgac_args
="$pgac_args with_ldap"
5118 # Check whether --with-ldap was given.
5119 if test "${with_ldap+set}" = set; then
5124 cat >>confdefs.h
<<\_ACEOF
5133 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5134 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5135 { (exit 1); exit 1; }; }
5145 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5146 echo "${ECHO_T}$with_ldap" >&6; }
5153 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5154 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5156 pgac_args
="$pgac_args with_bonjour"
5159 # Check whether --with-bonjour was given.
5160 if test "${with_bonjour+set}" = set; then
5161 withval
=$with_bonjour;
5165 cat >>confdefs.h
<<\_ACEOF
5166 #define USE_BONJOUR 1
5174 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5175 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5176 { (exit 1); exit 1; }; }
5186 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5187 echo "${ECHO_T}$with_bonjour" >&6; }
5194 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5195 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5197 pgac_args
="$pgac_args with_openssl"
5200 # Check whether --with-openssl was given.
5201 if test "${with_openssl+set}" = set; then
5202 withval
=$with_openssl;
5206 cat >>confdefs.h
<<\_ACEOF
5215 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5216 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5217 { (exit 1); exit 1; }; }
5227 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5228 echo "${ECHO_T}$with_openssl" >&6; }
5236 pgac_args
="$pgac_args with_readline"
5239 # Check whether --with-readline was given.
5240 if test "${with_readline+set}" = set; then
5241 withval
=$with_readline;
5250 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5251 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5252 { (exit 1); exit 1; }; }
5262 # readline on MinGW has problems with backslashes in psql and other bugs.
5263 # This is particularly a problem with non-US code pages.
5264 # Therefore disable its use until we understand the cause. 2004-07-20
5265 if test "$PORTNAME" = "win32"; then
5266 if test "$with_readline" = yes; then
5267 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5268 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5278 pgac_args
="$pgac_args with_libedit_preferred"
5281 # Check whether --with-libedit-preferred was given.
5282 if test "${with_libedit_preferred+set}" = set; then
5283 withval
=$with_libedit_preferred;
5292 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5293 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5294 { (exit 1); exit 1; }; }
5299 with_libedit_preferred
=no
5310 pgac_args
="$pgac_args with_ossp_uuid"
5313 # Check whether --with-ossp-uuid was given.
5314 if test "${with_ossp_uuid+set}" = set; then
5315 withval
=$with_ossp_uuid;
5324 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5325 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5326 { (exit 1); exit 1; }; }
5343 pgac_args
="$pgac_args with_libxml"
5346 # Check whether --with-libxml was given.
5347 if test "${with_libxml+set}" = set; then
5348 withval
=$with_libxml;
5352 cat >>confdefs.h
<<\_ACEOF
5353 #define USE_LIBXML 1
5361 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5362 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5363 { (exit 1); exit 1; }; }
5374 if test "$with_libxml" = yes ; then
5375 for ac_prog
in xml2-config
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy
$ac_prog; ac_word
=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 if test -n "$XML2_CONFIG"; then
5385 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir
=.
5392 for ac_exec_ext
in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5405 if test -n "$XML2_CONFIG"; then
5406 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5407 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5409 { echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6; }
5414 test -n "$XML2_CONFIG" && break
5417 if test -n "$XML2_CONFIG"; then
5418 for pgac_option
in `$XML2_CONFIG --cflags`; do
5419 case $pgac_option in
5420 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5423 for pgac_option
in `$XML2_CONFIG --libs`; do
5424 case $pgac_option in
5425 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5437 pgac_args
="$pgac_args with_libxslt"
5440 # Check whether --with-libxslt was given.
5441 if test "${with_libxslt+set}" = set; then
5442 withval
=$with_libxslt;
5446 cat >>confdefs.h
<<\_ACEOF
5447 #define USE_LIBXSLT 1
5455 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5456 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5457 { (exit 1); exit 1; }; }
5475 pgac_args
="$pgac_args with_system_tzdata"
5478 # Check whether --with-system-tzdata was given.
5479 if test "${with_system_tzdata+set}" = set; then
5480 withval
=$with_system_tzdata;
5483 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5484 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5485 { (exit 1); exit 1; }; }
5488 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5489 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5490 { (exit 1); exit 1; }; }
5506 pgac_args
="$pgac_args with_zlib"
5509 # Check whether --with-zlib was given.
5510 if test "${with_zlib+set}" = set; then
5520 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5521 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5522 { (exit 1); exit 1; }; }
5538 # Assume system is ELF if it predefines __ELF__ as 1,
5539 # otherwise believe host_os based default.
5541 freebsd1
*|freebsd2
*) elf
=no
;;
5542 freebsd3
*|freebsd4
*) elf
=yes;;
5546 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5547 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5548 if test "${ac_cv_path_GREP+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 # Extract the first word of "grep ggrep" to use in msg output
5552 if test -z "$GREP"; then
5553 set dummy
grep ggrep
; ac_prog_name
=$2
5554 if test "${ac_cv_path_GREP+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 ac_path_GREP_found
=false
5558 # Loop through the user's path and test for each of PROGNAME-LIST
5559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5560 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5563 test -z "$as_dir" && as_dir
=.
5564 for ac_prog
in grep ggrep
; do
5565 for ac_exec_ext
in '' $ac_executable_extensions; do
5566 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5567 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5568 # Check for GNU ac_path_GREP and select it if it is found.
5569 # Check for GNU $ac_path_GREP
5570 case `"$ac_path_GREP" --version 2>&1` in
5572 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5575 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5578 cat "conftest.in" "conftest.in" >"conftest.tmp"
5579 mv "conftest.tmp" "conftest.in"
5580 cp "conftest.in" "conftest.nl"
5581 echo 'GREP' >> "conftest.nl"
5582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5583 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5584 ac_count
=`expr $ac_count + 1`
5585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5586 # Best one so far, save it but keep looking for a better one
5587 ac_cv_path_GREP
="$ac_path_GREP"
5588 ac_path_GREP_max
=$ac_count
5590 # 10*(2^10) chars as input seems more than enough
5591 test $ac_count -gt 10 && break
5593 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5597 $ac_path_GREP_found && break 3
5607 GREP
="$ac_cv_path_GREP"
5608 if test -z "$GREP"; then
5609 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5611 { (exit 1); exit 1; }; }
5615 ac_cv_path_GREP
=$GREP
5620 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5621 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5622 GREP
="$ac_cv_path_GREP"
5625 { echo "$as_me:$LINENO: checking for egrep" >&5
5626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5627 if test "${ac_cv_path_EGREP+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5631 then ac_cv_path_EGREP
="$GREP -E"
5633 # Extract the first word of "egrep" to use in msg output
5634 if test -z "$EGREP"; then
5635 set dummy
egrep; ac_prog_name
=$2
5636 if test "${ac_cv_path_EGREP+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 ac_path_EGREP_found
=false
5640 # Loop through the user's path and test for each of PROGNAME-LIST
5641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5642 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5645 test -z "$as_dir" && as_dir
=.
5646 for ac_prog
in egrep; do
5647 for ac_exec_ext
in '' $ac_executable_extensions; do
5648 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5649 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5650 # Check for GNU ac_path_EGREP and select it if it is found.
5651 # Check for GNU $ac_path_EGREP
5652 case `"$ac_path_EGREP" --version 2>&1` in
5654 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5660 cat "conftest.in" "conftest.in" >"conftest.tmp"
5661 mv "conftest.tmp" "conftest.in"
5662 cp "conftest.in" "conftest.nl"
5663 echo 'EGREP' >> "conftest.nl"
5664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5665 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5666 ac_count
=`expr $ac_count + 1`
5667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5668 # Best one so far, save it but keep looking for a better one
5669 ac_cv_path_EGREP
="$ac_path_EGREP"
5670 ac_path_EGREP_max
=$ac_count
5672 # 10*(2^10) chars as input seems more than enough
5673 test $ac_count -gt 10 && break
5675 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5679 $ac_path_EGREP_found && break 3
5689 EGREP
="$ac_cv_path_EGREP"
5690 if test -z "$EGREP"; then
5691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5692 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5693 { (exit 1); exit 1; }; }
5697 ac_cv_path_EGREP
=$EGREP
5703 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5704 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5705 EGREP
="$ac_cv_path_EGREP"
5708 cat >conftest.
$ac_ext <<_ACEOF
5711 cat confdefs.h
>>conftest.
$ac_ext
5712 cat >>conftest.
$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5720 $EGREP "yes" >/dev
/null
2>&1; then
5723 if test "X$elf" = "Xyes" ; then
5737 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5738 LDFLAGS
="$LDFLAGS $LIBDIRS"
5743 # Check whether --with-gnu-ld was given.
5744 if test "${with_gnu_ld+set}" = set; then
5745 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5751 if test "$GCC" = yes; then
5752 # Check if gcc -print-prog-name=ld gives a path.
5753 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5757 # gcc leaves a trailing carriage return which upsets mingw
5758 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5760 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5763 # Accept absolute paths.
5764 [\\/]* |
[A-Za-z
]:[\\/]*)
5765 re_direlt
='/[^/][^/]*/\.\./'
5766 # Canonicalize the path of ld
5767 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5768 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5769 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5771 test -z "$LD" && LD
="$ac_prog"
5774 # If it fails, then pretend we aren't using GCC.
5778 # If it is relative, then search for the first ld in PATH.
5782 elif test "$with_gnu_ld" = yes; then
5783 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5786 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5789 if test "${ac_cv_path_LD+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 if test -z "$LD"; then
5793 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5794 for ac_dir
in $PATH; do
5795 test -z "$ac_dir" && ac_dir
=.
5796 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5797 ac_cv_path_LD
="$ac_dir/$ac_prog"
5798 # Check to see if the program is GNU ld. I'd rather use --version,
5799 # but apparently some GNU ld's only accept -v.
5800 # Break only if it was the GNU/non-GNU ld that we prefer.
5801 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5802 test "$with_gnu_ld" != no
&& break
5804 test "$with_gnu_ld" != yes && break
5810 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5815 if test -n "$LD"; then
5816 { echo "$as_me:$LINENO: result: $LD" >&5
5817 echo "${ECHO_T}$LD" >&6; }
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5824 { (exit 1); exit 1; }; }
5825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5827 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5831 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5832 ac_cv_prog_gnu_ld
=yes
5834 ac_cv_prog_gnu_ld
=no
5837 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5838 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5839 with_gnu_ld
=$ac_cv_prog_gnu_ld
5844 case $host_os in sysv5
*)
5845 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5846 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5847 if test "${pgac_cv_prog_ld_R+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5852 cat >conftest.
$ac_ext <<_ACEOF
5855 cat confdefs.h
>>conftest.
$ac_ext
5856 cat >>conftest.
$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5867 rm -f conftest.
$ac_objext conftest
$ac_exeext
5868 if { (ac_try
="$ac_link"
5870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_link") 2>conftest.er1
5876 grep -v '^ *+' conftest.er1 >conftest.err
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest$ac_exeext &&
5884 $as_test_x conftest$ac_exeext; then
5885 pgac_cv_prog_ld_R=yes
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 pgac_cv_prog_ld_R=no
5893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5894 conftest$ac_exeext conftest.$ac_ext
5895 LDFLAGS=$pgac_save_LDFLAGS
5898 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5899 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5900 ld_R_works=$pgac_cv_prog_ld_R
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_prog_RANLIB+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 if test -n "$RANLIB"; then
5912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 RANLIB=$ac_cv_prog_RANLIB
5932 if test -n "$RANLIB"; then
5933 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5934 echo "${ECHO_T}$RANLIB" >&6; }
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5942 if test -z "$ac_cv_prog_RANLIB"; then
5943 ac_ct_RANLIB=$RANLIB
5944 # Extract the first word of "ranlib", so it can be a program name with args.
5945 set dummy ranlib; ac_word=$2
5946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 if test -n "$ac_ct_RANLIB"; then
5952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_ac_ct_RANLIB="ranlib"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5972 if test -n "$ac_ct_RANLIB"; then
5973 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5974 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5980 if test "x$ac_ct_RANLIB" = x; then
5983 case $cross_compiling:$ac_tool_warned in
5985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&5
5988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989 whose name does not start with the host triplet. If you think this
5990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991 ac_tool_warned=yes ;;
5993 RANLIB=$ac_ct_RANLIB
5996 RANLIB="$ac_cv_prog_RANLIB"
6000 if test -n "$ac_tool_prefix"; then
6001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6002 set dummy ${ac_tool_prefix}strip; ac_word=$2
6003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6005 if test "${ac_cv_prog_STRIP+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 if test -n "$STRIP"; then
6009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 STRIP=$ac_cv_prog_STRIP
6029 if test -n "$STRIP"; then
6030 { echo "$as_me:$LINENO: result: $STRIP" >&5
6031 echo "${ECHO_T}$STRIP" >&6; }
6033 { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6039 if test -z "$ac_cv_prog_STRIP"; then
6041 # Extract the first word of "strip", so it can be a program name with args.
6042 set dummy strip; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 if test -n "$ac_ct_STRIP"; then
6049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_STRIP="strip"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6069 if test -n "$ac_ct_STRIP"; then
6070 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6071 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6077 if test "x$ac_ct_STRIP" = x; then
6080 case $cross_compiling:$ac_tool_warned in
6082 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&5
6085 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6086 whose name does not start with the host triplet. If you think this
6087 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6088 ac_tool_warned=yes ;;
6093 STRIP="$ac_cv_prog_STRIP"
6097 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6098 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6099 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6100 STRIP_STATIC_LIB="$STRIP -x"
6101 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6102 { echo "$as_me:$LINENO: result: yes" >&5
6103 echo "${ECHO_T}yes" >&6; }
6107 { echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6; }
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ar; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_AR+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 if test -n "$AR"; then
6122 ac_cv_prog_AR="$AR" # Let the user override the test.
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_prog_AR="${ac_tool_prefix}ar"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 if test -n "$AR"; then
6143 { echo "$as_me:$LINENO: result: $AR" >&5
6144 echo "${ECHO_T}$AR" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6152 if test -z "$ac_cv_prog_AR"; then
6154 # Extract the first word of "ar", so it can be a program name with args.
6155 set dummy ar; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 if test -n "$ac_ct_AR"; then
6162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_AR="ar"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6182 if test -n "$ac_ct_AR"; then
6183 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6184 echo "${ECHO_T}$ac_ct_AR" >&6; }
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 if test "x$ac_ct_AR" = x; then
6193 case $cross_compiling:$ac_tool_warned in
6195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet. If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet. If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6209 if test "$PORTNAME" = "win32"; then
6210 if test -n "$ac_tool_prefix"; then
6211 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6212 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 if test -n "$DLLTOOL"; then
6219 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 DLLTOOL=$ac_cv_prog_DLLTOOL
6239 if test -n "$DLLTOOL"; then
6240 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6241 echo "${ECHO_T}$DLLTOOL" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6249 if test -z "$ac_cv_prog_DLLTOOL"; then
6250 ac_ct_DLLTOOL=$DLLTOOL
6251 # Extract the first word of "dlltool", so it can be a program name with args.
6252 set dummy dlltool; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 if test -n "$ac_ct_DLLTOOL"; then
6259 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6279 if test -n "$ac_ct_DLLTOOL"; then
6280 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6281 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6287 if test "x$ac_ct_DLLTOOL" = x; then
6290 case $cross_compiling:$ac_tool_warned in
6292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet. If you think this
6294 configuration is useful to you, please write to autoconf@gnu.org." >&5
6295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet. If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6298 ac_tool_warned=yes ;;
6300 DLLTOOL=$ac_ct_DLLTOOL
6303 DLLTOOL="$ac_cv_prog_DLLTOOL"
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 if test -n "$DLLWRAP"; then
6315 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 DLLWRAP=$ac_cv_prog_DLLWRAP
6335 if test -n "$DLLWRAP"; then
6336 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6337 echo "${ECHO_T}$DLLWRAP" >&6; }
6339 { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6345 if test -z "$ac_cv_prog_DLLWRAP"; then
6346 ac_ct_DLLWRAP=$DLLWRAP
6347 # Extract the first word of "dllwrap", so it can be a program name with args.
6348 set dummy dllwrap; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 if test -n "$ac_ct_DLLWRAP"; then
6355 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6375 if test -n "$ac_ct_DLLWRAP"; then
6376 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6377 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6383 if test "x$ac_ct_DLLWRAP" = x; then
6386 case $cross_compiling:$ac_tool_warned in
6388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet. If you think this
6390 configuration is useful to you, please write to autoconf@gnu.org." >&5
6391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6392 whose name does not start with the host triplet. If you think this
6393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6394 ac_tool_warned=yes ;;
6396 DLLWRAP=$ac_ct_DLLWRAP
6399 DLLWRAP="$ac_cv_prog_DLLWRAP"
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}windres; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_prog_WINDRES+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 if test -n "$WINDRES"; then
6411 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 WINDRES=$ac_cv_prog_WINDRES
6431 if test -n "$WINDRES"; then
6432 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6433 echo "${ECHO_T}$WINDRES" >&6; }
6435 { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6441 if test -z "$ac_cv_prog_WINDRES"; then
6442 ac_ct_WINDRES=$WINDRES
6443 # Extract the first word of "windres", so it can be a program name with args.
6444 set dummy windres; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 if test -n "$ac_ct_WINDRES"; then
6451 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_WINDRES="windres"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6471 if test -n "$ac_ct_WINDRES"; then
6472 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6473 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6475 { echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6; }
6479 if test "x$ac_ct_WINDRES" = x; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6485 whose name does not start with the host triplet. If you think this
6486 configuration is useful to you, please write to autoconf@gnu.org." >&5
6487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6488 whose name does not start with the host triplet. If you think this
6489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6490 ac_tool_warned=yes ;;
6492 WINDRES=$ac_ct_WINDRES
6495 WINDRES="$ac_cv_prog_WINDRES"
6500 # Extract the first word of "tar", so it can be a program name with args.
6501 set dummy tar; ac_word=$2
6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504 if test "${ac_cv_path_TAR+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 if test -n "$TAR"; then
6532 { echo "$as_me:$LINENO: result: $TAR" >&5
6533 echo "${ECHO_T}$TAR" >&6; }
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6540 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6541 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6543 if test "$LN_S" = "ln -s"; then
6544 { echo "$as_me:$LINENO: result: yes" >&5
6545 echo "${ECHO_T}yes" >&6; }
6547 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6548 echo "${ECHO_T}no, using $LN_S" >&6; }
6551 for ac_prog in gawk mawk nawk awk
6553 # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_AWK+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 if test -n "$AWK"; then
6561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_AWK="$ac_prog"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 if test -n "$AWK"; then
6582 { echo "$as_me:$LINENO: result: $AWK" >&5
6583 echo "${ECHO_T}$AWK" >&6; }
6585 { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6590 test -n "$AWK" && break
6594 # Let the user override the search
6595 if test -z "$BISON"; then
6596 for ac_prog in bison
6598 # Extract the first word of "$ac_prog", so it can be a program name with args.
6599 set dummy $ac_prog; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_prog_BISON+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 if test -n "$BISON"; then
6606 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_BISON="$ac_prog"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 BISON=$ac_cv_prog_BISON
6626 if test -n "$BISON"; then
6627 { echo "$as_me:$LINENO: result: $BISON" >&5
6628 echo "${ECHO_T}$BISON" >&6; }
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6635 test -n "$BISON" && break
6640 if test "$BISON"; then
6641 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6642 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6643 echo "$as_me: using $pgac_bison_version" >&6;}
6644 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6646 { echo "$as_me:$LINENO: WARNING:
6647 *** The installed version of Bison is too old to use with PostgreSQL.
6648 *** Bison version 1.875 or later is required." >&5
6649 echo "$as_me: WARNING:
6650 *** The installed version of Bison is too old to use with PostgreSQL.
6651 *** Bison version 1.875 or later is required." >&2;}
6656 if test -z "$BISON"; then
6657 { echo "$as_me:$LINENO: WARNING:
6658 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6659 *** change any of the parser definition files. You can obtain Bison from
6660 *** a GNU mirror site. (If you are using the official distribution of
6661 *** PostgreSQL then you do not need to worry about this, because the Bison
6662 *** output is pre-generated.)" >&5
6663 echo "$as_me: WARNING:
6664 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6665 *** change any of the parser definition files. You can obtain Bison from
6666 *** a GNU mirror site. (If you are using the official distribution of
6667 *** PostgreSQL then you do not need to worry about this, because the Bison
6668 *** output is pre-generated.)" >&2;}
6670 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6673 { echo "$as_me:$LINENO: checking for flex" >&5
6674 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6675 if test "${pgac_cv_path_flex+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 # Let the user override the test
6679 if test -n "$FLEX"; then
6680 pgac_cv_path_flex=$FLEX
6684 for pgac_dir in $PATH; do
6686 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6689 for pgac_prog in flex lex; do
6690 pgac_candidate="$pgac_dir/$pgac_prog"
6691 if test -f "$pgac_candidate" \
6692 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6694 echo '%%' > conftest.l
6695 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6696 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6697 pgac_broken_flex=$pgac_candidate
6701 pgac_cv_path_flex=$pgac_candidate
6707 rm -f conftest.l lex.yy.c
6708 : ${pgac_cv_path_flex=no}
6712 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6713 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6714 if test x"$pgac_cv_path_flex" = x"no"; then
6715 if test -n "$pgac_broken_flex"; then
6716 { echo "$as_me:$LINENO: WARNING:
6717 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6718 *** should get version 2.5.4 or later." >&5
6719 echo "$as_me: WARNING:
6720 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6721 *** should get version 2.5.4 or later." >&2;}
6724 { echo "$as_me:$LINENO: WARNING:
6725 *** Without Flex you will not be able to build PostgreSQL from CVS or
6726 *** change any of the scanner definition files. You can obtain Flex from
6727 *** a GNU mirror site. (If you are using the official distribution of
6728 *** PostgreSQL then you do not need to worry about this because the Flex
6729 *** output is pre-generated.)" >&5
6730 echo "$as_me: WARNING:
6731 *** Without Flex you will not be able to build PostgreSQL from CVS or
6732 *** change any of the scanner definition files. You can obtain Flex from
6733 *** a GNU mirror site. (If you are using the official distribution of
6734 *** PostgreSQL then you do not need to worry about this because the Flex
6735 *** output is pre-generated.)" >&2;}
6739 FLEX=$pgac_cv_path_flex
6740 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6741 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6742 echo "$as_me: using $pgac_flex_version" >&6;}
6749 # Extract the first word of "perl", so it can be a program name with args.
6750 set dummy perl; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_PERL+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 PERL=$ac_cv_path_PERL
6780 if test -n "$PERL"; then
6781 { echo "$as_me:$LINENO: result: $PERL" >&5
6782 echo "${ECHO_T}$PERL" >&6; }
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6789 if test "$with_perl" = yes; then
6791 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6792 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6793 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6794 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6795 echo "${ECHO_T}$perl_archlibexp" >&6; }
6796 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6797 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6798 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6799 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6800 echo "${ECHO_T}$perl_privlibexp" >&6; }
6801 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6802 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6803 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6804 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6805 echo "${ECHO_T}$perl_useshrplib" >&6; }
6807 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6808 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6809 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6810 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6811 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6812 if test -z "$perl_embed_ldflags" ; then
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6815 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6816 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6818 echo "$as_me: error: could not determine flags for linking embedded Perl.
6819 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6821 { (exit 1); exit 1; }; }
6823 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6824 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6829 if test "$with_python" = yes; then
6830 # Extract the first word of "python", so it can be a program name with args.
6831 set dummy python; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_PYTHON+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 PYTHON=$ac_cv_path_PYTHON
6861 if test -n "$PYTHON"; then
6862 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6863 echo "${ECHO_T}$PYTHON" >&6; }
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 if test x"$PYTHON" = x""; then
6871 { { echo "$as_me:$LINENO: error: Python not found" >&5
6872 echo "$as_me: error: Python not found" >&2;}
6873 { (exit 1); exit 1; }; }
6877 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6878 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6879 if "${PYTHON}" 2>&- -c 'import distutils'
6881 { echo "$as_me:$LINENO: result: yes" >&5
6882 echo "${ECHO_T}yes" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6887 echo "$as_me: error: distutils module not found" >&2;}
6888 { (exit 1); exit 1; }; }
6890 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6891 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6892 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6893 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'))"`
6894 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6896 # This should be enough of a message.
6897 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6898 echo "${ECHO_T}$python_configdir" >&6; }
6901 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6902 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6904 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6905 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6906 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6907 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6909 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6911 # New way: use the official shared library
6912 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6913 python_libspec="-L${python_libdir} -l${ldlibrary}"
6915 # Old way: use libpython from python_configdir
6916 python_libdir="${python_configdir}"
6917 python_libspec="-L${python_libdir} -lpython${python_version}"
6920 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6922 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6923 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6926 # threaded python is not supported on bsd's
6927 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6928 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6929 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
6930 if test "$pythreads" = "1"; then
6931 { echo "$as_me:$LINENO: result: yes" >&5
6932 echo "${ECHO_T}yes" >&6; }
6935 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6936 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6937 { (exit 1); exit 1; }; }
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6948 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
6949 # Extract the first word of "zic", so it can be a program name with args.
6950 set dummy zic; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_ZIC+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6958 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 if test -n "$ZIC"; then
6981 { echo "$as_me:$LINENO: result: $ZIC" >&5
6982 echo "${ECHO_T}$ZIC" >&6; }
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6989 if test -z "$ZIC"; then
6990 { { echo "$as_me:$LINENO: error:
6991 When cross-compiling, either use the option --with-system-tzdata to use
6992 existing time-zone data, or set the environment variable ZIC to a zic
6993 program to use during the build." >&5
6994 echo "$as_me: error:
6995 When cross-compiling, either use the option --with-system-tzdata to use
6996 existing time-zone data, or set the environment variable ZIC to a zic
6997 program to use during the build." >&2;}
6998 { (exit 1); exit 1; }; }
7006 ## Most libraries are included only if they demonstrably provide a function
7007 ## we need, but libm is an exception: always include it, because there are
7008 ## too many compilers that play cute optimization games that will break
7009 ## probes for standard functions such as pow().
7013 { echo "$as_me:$LINENO: checking for main in -lm" >&5
7014 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
7015 if test "${ac_cv_lib_m_main+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 ac_check_lib_save_LIBS=$LIBS
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7036 rm -f conftest.$ac_objext conftest$ac_exeext
7037 if { (ac_try="$ac_link"
7039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7040 *) ac_try_echo
=$ac_try;;
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043 (eval "$ac_link") 2>conftest.er1
7045 grep -v '^ *+' conftest.er1
>conftest.err
7047 cat conftest.err
>&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && {
7050 test -z "$ac_c_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest
$ac_exeext &&
7053 $as_test_x conftest
$ac_exeext; then
7054 ac_cv_lib_m_main
=yes
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.
$ac_ext >&5
7062 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7063 conftest
$ac_exeext conftest.
$ac_ext
7064 LIBS
=$ac_check_lib_save_LIBS
7066 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7067 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7068 if test $ac_cv_lib_m_main = yes; then
7069 cat >>confdefs.h
<<_ACEOF
7077 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7078 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7079 if test "${ac_cv_search_setproctitle+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 ac_func_search_save_LIBS
=$LIBS
7083 cat >conftest.
$ac_ext <<_ACEOF
7086 cat confdefs.h
>>conftest.
$ac_ext
7087 cat >>conftest.
$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
7096 char setproctitle ();
7100 return setproctitle ();
7105 for ac_lib
in '' util
; do
7106 if test -z "$ac_lib"; then
7107 ac_res
="none required"
7110 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7112 rm -f conftest.
$ac_objext conftest
$ac_exeext
7113 if { (ac_try
="$ac_link"
7115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7119 (eval "$ac_link") 2>conftest.er1
7121 grep -v '^ *+' conftest.er1 >conftest.err
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && {
7126 test -z "$ac_c_werror_flag" ||
7127 test ! -s conftest.err
7128 } && test -s conftest$ac_exeext &&
7129 $as_test_x conftest$ac_exeext; then
7130 ac_cv_search_setproctitle=$ac_res
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7140 if test "${ac_cv_search_setproctitle+set}" = set; then
7144 if test "${ac_cv_search_setproctitle+set}" = set; then
7147 ac_cv_search_setproctitle=no
7150 LIBS=$ac_func_search_save_LIBS
7152 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7153 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7154 ac_res=$ac_cv_search_setproctitle
7155 if test "$ac_res" != no; then
7156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7160 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7161 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7162 if test "${ac_cv_search_dlopen+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 ac_func_search_save_LIBS=$LIBS
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7173 /* Override any GCC internal prototype to avoid an error.
7174 Use char because int might match the return type of a GCC
7175 builtin and then its argument prototype would still apply. */
7188 for ac_lib in '' dl; do
7189 if test -z "$ac_lib"; then
7190 ac_res="none required"
7193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (ac_try="$ac_link"
7198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7199 *) ac_try_echo
=$ac_try;;
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_link") 2>conftest.er1
7204 grep -v '^ *+' conftest.er1
>conftest.err
7206 cat conftest.err
>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest
$ac_exeext &&
7212 $as_test_x conftest
$ac_exeext; then
7213 ac_cv_search_dlopen
=$ac_res
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.
$ac_ext >&5
7221 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7223 if test "${ac_cv_search_dlopen+set}" = set; then
7227 if test "${ac_cv_search_dlopen+set}" = set; then
7230 ac_cv_search_dlopen
=no
7233 LIBS
=$ac_func_search_save_LIBS
7235 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7236 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7237 ac_res
=$ac_cv_search_dlopen
7238 if test "$ac_res" != no
; then
7239 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7243 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7244 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7245 if test "${ac_cv_search_socket+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 ac_func_search_save_LIBS
=$LIBS
7249 cat >conftest.
$ac_ext <<_ACEOF
7252 cat confdefs.h
>>conftest.
$ac_ext
7253 cat >>conftest.
$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7256 /* Override any GCC internal prototype to avoid an error.
7257 Use char because int might match the return type of a GCC
7258 builtin and then its argument prototype would still apply. */
7271 for ac_lib
in '' socket wsock32
; do
7272 if test -z "$ac_lib"; then
7273 ac_res
="none required"
7276 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7278 rm -f conftest.
$ac_objext conftest
$ac_exeext
7279 if { (ac_try
="$ac_link"
7281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest$ac_exeext &&
7295 $as_test_x conftest$ac_exeext; then
7296 ac_cv_search_socket=$ac_res
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7306 if test "${ac_cv_search_socket+set}" = set; then
7310 if test "${ac_cv_search_socket+set}" = set; then
7313 ac_cv_search_socket=no
7316 LIBS=$ac_func_search_save_LIBS
7318 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7319 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7320 ac_res=$ac_cv_search_socket
7321 if test "$ac_res" != no; then
7322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7326 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7327 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7328 if test "${ac_cv_search_shl_load+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 ac_func_search_save_LIBS=$LIBS
7332 cat >conftest.$ac_ext <<_ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7339 /* Override any GCC internal prototype to avoid an error.
7340 Use char because int might match the return type of a GCC
7341 builtin and then its argument prototype would still apply. */
7354 for ac_lib in '' dld; do
7355 if test -z "$ac_lib"; then
7356 ac_res="none required"
7359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (ac_try="$ac_link"
7364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7365 *) ac_try_echo
=$ac_try;;
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_link") 2>conftest.er1
7370 grep -v '^ *+' conftest.er1
>conftest.err
7372 cat conftest.err
>&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest
$ac_exeext &&
7378 $as_test_x conftest
$ac_exeext; then
7379 ac_cv_search_shl_load
=$ac_res
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.
$ac_ext >&5
7387 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7389 if test "${ac_cv_search_shl_load+set}" = set; then
7393 if test "${ac_cv_search_shl_load+set}" = set; then
7396 ac_cv_search_shl_load
=no
7399 LIBS
=$ac_func_search_save_LIBS
7401 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7402 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7403 ac_res
=$ac_cv_search_shl_load
7404 if test "$ac_res" != no
; then
7405 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7409 # We only use libld in port/dynloader/aix.c
7412 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7413 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7414 if test "${ac_cv_search_ldopen+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 ac_func_search_save_LIBS
=$LIBS
7418 cat >conftest.
$ac_ext <<_ACEOF
7421 cat confdefs.h
>>conftest.
$ac_ext
7422 cat >>conftest.
$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7425 /* Override any GCC internal prototype to avoid an error.
7426 Use char because int might match the return type of a GCC
7427 builtin and then its argument prototype would still apply. */
7440 for ac_lib
in '' ld
; do
7441 if test -z "$ac_lib"; then
7442 ac_res
="none required"
7445 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7447 rm -f conftest.
$ac_objext conftest
$ac_exeext
7448 if { (ac_try
="$ac_link"
7450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_link") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest$ac_exeext &&
7464 $as_test_x conftest$ac_exeext; then
7465 ac_cv_search_ldopen=$ac_res
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7475 if test "${ac_cv_search_ldopen+set}" = set; then
7479 if test "${ac_cv_search_ldopen+set}" = set; then
7482 ac_cv_search_ldopen=no
7485 LIBS=$ac_func_search_save_LIBS
7487 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7488 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7489 ac_res=$ac_cv_search_ldopen
7490 if test "$ac_res" != no; then
7491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7497 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7498 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7499 if test "${ac_cv_search_getopt_long+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 ac_func_search_save_LIBS=$LIBS
7503 cat >conftest.$ac_ext <<_ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7510 /* Override any GCC internal prototype to avoid an error.
7511 Use char because int might match the return type of a GCC
7512 builtin and then its argument prototype would still apply. */
7516 char getopt_long ();
7520 return getopt_long ();
7525 for ac_lib in '' getopt gnugetopt; do
7526 if test -z "$ac_lib"; then
7527 ac_res="none required"
7530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7532 rm -f conftest.$ac_objext conftest$ac_exeext
7533 if { (ac_try="$ac_link"
7535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7536 *) ac_try_echo
=$ac_try;;
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_link") 2>conftest.er1
7541 grep -v '^ *+' conftest.er1
>conftest.err
7543 cat conftest.err
>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest
$ac_exeext &&
7549 $as_test_x conftest
$ac_exeext; then
7550 ac_cv_search_getopt_long
=$ac_res
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.
$ac_ext >&5
7558 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7560 if test "${ac_cv_search_getopt_long+set}" = set; then
7564 if test "${ac_cv_search_getopt_long+set}" = set; then
7567 ac_cv_search_getopt_long
=no
7570 LIBS
=$ac_func_search_save_LIBS
7572 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7573 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7574 ac_res
=$ac_cv_search_getopt_long
7575 if test "$ac_res" != no
; then
7576 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7580 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7581 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7582 if test "${ac_cv_search_crypt+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 ac_func_search_save_LIBS
=$LIBS
7586 cat >conftest.
$ac_ext <<_ACEOF
7589 cat confdefs.h
>>conftest.
$ac_ext
7590 cat >>conftest.
$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7593 /* Override any GCC internal prototype to avoid an error.
7594 Use char because int might match the return type of a GCC
7595 builtin and then its argument prototype would still apply. */
7608 for ac_lib
in '' crypt; do
7609 if test -z "$ac_lib"; then
7610 ac_res
="none required"
7613 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7615 rm -f conftest.
$ac_objext conftest
$ac_exeext
7616 if { (ac_try
="$ac_link"
7618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_link") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest$ac_exeext &&
7632 $as_test_x conftest$ac_exeext; then
7633 ac_cv_search_crypt=$ac_res
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7643 if test "${ac_cv_search_crypt+set}" = set; then
7647 if test "${ac_cv_search_crypt+set}" = set; then
7650 ac_cv_search_crypt=no
7653 LIBS=$ac_func_search_save_LIBS
7655 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7656 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7657 ac_res=$ac_cv_search_crypt
7658 if test "$ac_res" != no; then
7659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7664 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7665 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7666 if test "${ac_cv_search_fdatasync+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_func_search_save_LIBS=$LIBS
7670 cat >conftest.$ac_ext <<_ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7677 /* Override any GCC internal prototype to avoid an error.
7678 Use char because int might match the return type of a GCC
7679 builtin and then its argument prototype would still apply. */
7687 return fdatasync ();
7692 for ac_lib in '' rt posix4; do
7693 if test -z "$ac_lib"; then
7694 ac_res="none required"
7697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700 if { (ac_try="$ac_link"
7702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7703 *) ac_try_echo
=$ac_try;;
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_link") 2>conftest.er1
7708 grep -v '^ *+' conftest.er1
>conftest.err
7710 cat conftest.err
>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest
$ac_exeext &&
7716 $as_test_x conftest
$ac_exeext; then
7717 ac_cv_search_fdatasync
=$ac_res
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.
$ac_ext >&5
7725 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7727 if test "${ac_cv_search_fdatasync+set}" = set; then
7731 if test "${ac_cv_search_fdatasync+set}" = set; then
7734 ac_cv_search_fdatasync
=no
7737 LIBS
=$ac_func_search_save_LIBS
7739 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7740 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7741 ac_res
=$ac_cv_search_fdatasync
7742 if test "$ac_res" != no
; then
7743 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7747 # Required for thread_test.c on Solaris 2.5:
7748 # Other ports use it too (HP-UX) so test unconditionally
7749 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7750 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
7751 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 ac_func_search_save_LIBS
=$LIBS
7755 cat >conftest.
$ac_ext <<_ACEOF
7758 cat confdefs.h
>>conftest.
$ac_ext
7759 cat >>conftest.
$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any GCC internal prototype to avoid an error.
7763 Use char because int might match the return type of a GCC
7764 builtin and then its argument prototype would still apply. */
7768 char gethostbyname_r ();
7772 return gethostbyname_r ();
7777 for ac_lib
in '' nsl
; do
7778 if test -z "$ac_lib"; then
7779 ac_res
="none required"
7782 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7784 rm -f conftest.
$ac_objext conftest
$ac_exeext
7785 if { (ac_try
="$ac_link"
7787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_link") 2>conftest.er1
7793 grep -v '^ *+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest$ac_exeext &&
7801 $as_test_x conftest$ac_exeext; then
7802 ac_cv_search_gethostbyname_r=$ac_res
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7812 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7816 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7819 ac_cv_search_gethostbyname_r=no
7822 LIBS=$ac_func_search_save_LIBS
7824 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7825 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
7826 ac_res=$ac_cv_search_gethostbyname_r
7827 if test "$ac_res" != no; then
7828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7833 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7834 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7835 if test "${ac_cv_search_shmget+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 ac_func_search_save_LIBS=$LIBS
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7861 for ac_lib in '' cygipc; do
7862 if test -z "$ac_lib"; then
7863 ac_res="none required"
7866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7872 *) ac_try_echo
=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1
>conftest.err
7879 cat conftest.err
>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest
$ac_exeext &&
7885 $as_test_x conftest
$ac_exeext; then
7886 ac_cv_search_shmget
=$ac_res
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.
$ac_ext >&5
7894 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7896 if test "${ac_cv_search_shmget+set}" = set; then
7900 if test "${ac_cv_search_shmget+set}" = set; then
7903 ac_cv_search_shmget
=no
7906 LIBS
=$ac_func_search_save_LIBS
7908 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7909 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7910 ac_res
=$ac_cv_search_shmget
7911 if test "$ac_res" != no
; then
7912 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7917 if test "$with_readline" = yes; then
7920 if test "${pgac_cv_check_readline+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 pgac_cv_check_readline
=no
7924 pgac_save_LIBS
=$LIBS
7925 if test x
"$with_libedit_preferred" != x
"yes"
7926 then READLINE_ORDER
="-lreadline -ledit"
7927 else READLINE_ORDER
="-ledit -lreadline"
7929 for pgac_rllib
in $READLINE_ORDER ; do
7930 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7931 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7932 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7933 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7934 cat >conftest.
$ac_ext <<_ACEOF
7937 cat confdefs.h
>>conftest.
$ac_ext
7938 cat >>conftest.
$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7941 /* Override any GCC internal prototype to avoid an error.
7942 Use char because int might match the return type of a GCC
7943 builtin and then its argument prototype would still apply. */
7956 rm -f conftest.
$ac_objext conftest
$ac_exeext
7957 if { (ac_try
="$ac_link"
7959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_link") 2>conftest.er1
7965 grep -v '^ *+' conftest.er1 >conftest.err
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest$ac_exeext &&
7973 $as_test_x conftest$ac_exeext; then
7975 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7976 # recognize dependent libraries; assume curses is needed if we didn't
7977 # find any dependency.
7979 netbsd* | openbsd* | irix*)
7980 if test x"$pgac_lib" = x"" ; then
7981 pgac_lib=" -lcurses"
7985 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7996 conftest$ac_exeext conftest.$ac_ext
7998 if test "$pgac_cv_check_readline" != no ; then
7999 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8000 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8007 LIBS=$pgac_save_LIBS
8011 if test "$pgac_cv_check_readline" != no ; then
8012 LIBS="$pgac_cv_check_readline $LIBS"
8014 cat >>confdefs.h <<\_ACEOF
8015 #define HAVE_LIBREADLINE 1
8021 if test x"$pgac_cv_check_readline" = x"no"; then
8022 { { echo "$as_me:$LINENO: error: readline library not found
8023 If you have readline already installed, see config.log for details on the
8024 failure. It is possible the compiler isn't looking in the proper directory.
8025 Use --without-readline to disable readline support." >&5
8026 echo "$as_me: error: readline library not found
8027 If you have readline already installed, see config.log for details on the
8028 failure. It is possible the compiler isn't looking in the proper directory.
8029 Use --without-readline to disable readline support." >&2;}
8030 { (exit 1); exit 1; }; }
8034 if test "$with_zlib" = yes; then
8036 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8037 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
8038 if test "${ac_cv_lib_z_inflate+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 ac_check_lib_save_LIBS=$LIBS
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8050 /* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (ac_try="$ac_link"
8068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8069 *) ac_try_echo
=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_link") 2>conftest.er1
8074 grep -v '^ *+' conftest.er1
>conftest.err
8076 cat conftest.err
>&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest
$ac_exeext &&
8082 $as_test_x conftest
$ac_exeext; then
8083 ac_cv_lib_z_inflate
=yes
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.
$ac_ext >&5
8088 ac_cv_lib_z_inflate
=no
8091 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8092 conftest
$ac_exeext conftest.
$ac_ext
8093 LIBS
=$ac_check_lib_save_LIBS
8095 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8096 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8097 if test $ac_cv_lib_z_inflate = yes; then
8098 cat >>confdefs.h
<<_ACEOF
8105 { { echo "$as_me:$LINENO: error: zlib library not found
8106 If you have zlib already installed, see config.log for details on the
8107 failure. It is possible the compiler isn't looking in the proper directory.
8108 Use --without-zlib to disable zlib support." >&5
8109 echo "$as_me: error: zlib library not found
8110 If you have zlib already installed, see config.log for details on the
8111 failure. It is possible the compiler isn't looking in the proper directory.
8112 Use --without-zlib to disable zlib support." >&2;}
8113 { (exit 1); exit 1; }; }
8118 if test "$enable_spinlocks" = yes; then
8120 cat >>confdefs.h
<<\_ACEOF
8121 #define HAVE_SPINLOCKS 1
8125 { echo "$as_me:$LINENO: WARNING:
8126 *** Not using spinlocks will cause poor performance." >&5
8127 echo "$as_me: WARNING:
8128 *** Not using spinlocks will cause poor performance." >&2;}
8131 if test "$with_gssapi" = yes ; then
8132 if test "$PORTNAME" != "win32"; then
8133 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8134 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8135 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 ac_func_search_save_LIBS
=$LIBS
8139 cat >conftest.
$ac_ext <<_ACEOF
8142 cat confdefs.h
>>conftest.
$ac_ext
8143 cat >>conftest.
$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8152 char gss_init_sec_context ();
8156 return gss_init_sec_context ();
8161 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
8162 if test -z "$ac_lib"; then
8163 ac_res
="none required"
8166 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8168 rm -f conftest.
$ac_objext conftest
$ac_exeext
8169 if { (ac_try
="$ac_link"
8171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_link") 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest$ac_exeext &&
8185 $as_test_x conftest$ac_exeext; then
8186 ac_cv_search_gss_init_sec_context=$ac_res
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8196 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8200 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8203 ac_cv_search_gss_init_sec_context=no
8206 LIBS=$ac_func_search_save_LIBS
8208 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8209 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8210 ac_res=$ac_cv_search_gss_init_sec_context
8211 if test "$ac_res" != no; then
8212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8215 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8216 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8217 { (exit 1); exit 1; }; }
8221 LIBS="$LIBS -lgssapi32"
8225 if test "$with_krb5" = yes ; then
8226 if test "$PORTNAME" != "win32"; then
8227 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8228 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8229 if test "${ac_cv_search_com_err+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 ac_func_search_save_LIBS=$LIBS
8233 cat >conftest.$ac_ext <<_ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8240 /* Override any GCC internal prototype to avoid an error.
8241 Use char because int might match the return type of a GCC
8242 builtin and then its argument prototype would still apply. */
8255 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'
8256 com_err 'com_err -lssl -lcrypto'; do
8257 if test -z "$ac_lib"; then
8258 ac_res="none required"
8261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (ac_try="$ac_link"
8266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8267 *) ac_try_echo
=$ac_try;;
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_link") 2>conftest.er1
8272 grep -v '^ *+' conftest.er1
>conftest.err
8274 cat conftest.err
>&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest
$ac_exeext &&
8280 $as_test_x conftest
$ac_exeext; then
8281 ac_cv_search_com_err
=$ac_res
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.
$ac_ext >&5
8289 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8291 if test "${ac_cv_search_com_err+set}" = set; then
8295 if test "${ac_cv_search_com_err+set}" = set; then
8298 ac_cv_search_com_err
=no
8301 LIBS
=$ac_func_search_save_LIBS
8303 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8304 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8305 ac_res
=$ac_cv_search_com_err
8306 if test "$ac_res" != no
; then
8307 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8310 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8311 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8312 { (exit 1); exit 1; }; }
8315 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8316 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8317 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 ac_func_search_save_LIBS
=$LIBS
8321 cat >conftest.
$ac_ext <<_ACEOF
8324 cat confdefs.h
>>conftest.
$ac_ext
8325 cat >>conftest.
$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8328 /* Override any GCC internal prototype to avoid an error.
8329 Use char because int might match the return type of a GCC
8330 builtin and then its argument prototype would still apply. */
8334 char krb5_sendauth ();
8338 return krb5_sendauth ();
8343 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8344 if test -z "$ac_lib"; then
8345 ac_res
="none required"
8348 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8350 rm -f conftest.
$ac_objext conftest
$ac_exeext
8351 if { (ac_try
="$ac_link"
8353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_link") 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest$ac_exeext &&
8367 $as_test_x conftest$ac_exeext; then
8368 ac_cv_search_krb5_sendauth=$ac_res
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8378 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8382 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8385 ac_cv_search_krb5_sendauth=no
8388 LIBS=$ac_func_search_save_LIBS
8390 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8391 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8392 ac_res=$ac_cv_search_krb5_sendauth
8393 if test "$ac_res" != no; then
8394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8397 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8398 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8399 { (exit 1); exit 1; }; }
8403 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8404 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8405 if test "${ac_cv_search_com_err+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 /* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8431 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8432 if test -z "$ac_lib"; then
8433 ac_res="none required"
8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8442 *) ac_try_echo
=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1
>conftest.err
8449 cat conftest.err
>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest
$ac_exeext &&
8455 $as_test_x conftest
$ac_exeext; then
8456 ac_cv_search_com_err
=$ac_res
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.
$ac_ext >&5
8464 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8466 if test "${ac_cv_search_com_err+set}" = set; then
8470 if test "${ac_cv_search_com_err+set}" = set; then
8473 ac_cv_search_com_err
=no
8476 LIBS
=$ac_func_search_save_LIBS
8478 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8479 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8480 ac_res
=$ac_cv_search_com_err
8481 if test "$ac_res" != no
; then
8482 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8485 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8486 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8487 { (exit 1); exit 1; }; }
8493 if test "$with_openssl" = yes ; then
8494 if test "$PORTNAME" != "win32"; then
8496 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8497 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8498 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 ac_check_lib_save_LIBS
=$LIBS
8502 LIBS
="-lcrypto $LIBS"
8503 cat >conftest.
$ac_ext <<_ACEOF
8506 cat confdefs.h
>>conftest.
$ac_ext
8507 cat >>conftest.
$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8510 /* Override any GCC internal prototype to avoid an error.
8511 Use char because int might match the return type of a GCC
8512 builtin and then its argument prototype would still apply. */
8516 char CRYPTO_new_ex_data ();
8520 return CRYPTO_new_ex_data ();
8525 rm -f conftest.
$ac_objext conftest
$ac_exeext
8526 if { (ac_try
="$ac_link"
8528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_link") 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && {
8539 test -z "$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8541 } && test -s conftest$ac_exeext &&
8542 $as_test_x conftest$ac_exeext; then
8543 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8552 conftest$ac_exeext conftest.$ac_ext
8553 LIBS=$ac_check_lib_save_LIBS
8555 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8556 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8557 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8558 cat >>confdefs.h <<_ACEOF
8559 #define HAVE_LIBCRYPTO 1
8562 LIBS="-lcrypto $LIBS"
8565 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8566 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8567 { (exit 1); exit 1; }; }
8571 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8572 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8573 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 ac_check_lib_save_LIBS=$LIBS
8578 cat >conftest.$ac_ext <<_ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8585 /* Override any GCC internal prototype to avoid an error.
8586 Use char because int might match the return type of a GCC
8587 builtin and then its argument prototype would still apply. */
8591 char SSL_library_init ();
8595 return SSL_library_init ();
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (ac_try="$ac_link"
8603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8604 *) ac_try_echo
=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_link") 2>conftest.er1
8609 grep -v '^ *+' conftest.er1
>conftest.err
8611 cat conftest.err
>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } && {
8614 test -z "$ac_c_werror_flag" ||
8615 test ! -s conftest.err
8616 } && test -s conftest
$ac_exeext &&
8617 $as_test_x conftest
$ac_exeext; then
8618 ac_cv_lib_ssl_SSL_library_init
=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.
$ac_ext >&5
8623 ac_cv_lib_ssl_SSL_library_init
=no
8626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8627 conftest
$ac_exeext conftest.
$ac_ext
8628 LIBS
=$ac_check_lib_save_LIBS
8630 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8631 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8632 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8633 cat >>confdefs.h
<<_ACEOF
8634 #define HAVE_LIBSSL 1
8640 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8641 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8642 { (exit 1); exit 1; }; }
8647 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8648 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8649 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 ac_check_lib_save_LIBS
=$LIBS
8653 LIBS
="-leay32 $LIBS"
8654 cat >conftest.
$ac_ext <<_ACEOF
8657 cat confdefs.h
>>conftest.
$ac_ext
8658 cat >>conftest.
$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 /* Override any GCC internal prototype to avoid an error.
8662 Use char because int might match the return type of a GCC
8663 builtin and then its argument prototype would still apply. */
8667 char CRYPTO_new_ex_data ();
8671 return CRYPTO_new_ex_data ();
8676 rm -f conftest.
$ac_objext conftest
$ac_exeext
8677 if { (ac_try
="$ac_link"
8679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_link") 2>conftest.er1
8685 grep -v '^ *+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest$ac_exeext &&
8693 $as_test_x conftest$ac_exeext; then
8694 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LIBS=$ac_check_lib_save_LIBS
8706 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8707 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8708 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8709 cat >>confdefs.h <<_ACEOF
8710 #define HAVE_LIBEAY32 1
8713 LIBS="-leay32 $LIBS"
8716 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8717 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8718 { (exit 1); exit 1; }; }
8722 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8723 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8724 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 ac_check_lib_save_LIBS=$LIBS
8728 LIBS="-lssleay32 $LIBS"
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8736 /* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply. */
8742 char SSL_library_init ();
8746 return SSL_library_init ();
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8755 *) ac_try_echo
=$ac_try;;
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1
>conftest.err
8762 cat conftest.err
>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest
$ac_exeext &&
8768 $as_test_x conftest
$ac_exeext; then
8769 ac_cv_lib_ssleay32_SSL_library_init
=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.
$ac_ext >&5
8774 ac_cv_lib_ssleay32_SSL_library_init
=no
8777 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8778 conftest
$ac_exeext conftest.
$ac_ext
8779 LIBS
=$ac_check_lib_save_LIBS
8781 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8782 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8783 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8784 cat >>confdefs.h
<<_ACEOF
8785 #define HAVE_LIBSSLEAY32 1
8788 LIBS
="-lssleay32 $LIBS"
8791 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8792 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8793 { (exit 1); exit 1; }; }
8799 if test "$with_pam" = yes ; then
8801 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8802 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8803 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 ac_check_lib_save_LIBS
=$LIBS
8808 cat >conftest.
$ac_ext <<_ACEOF
8811 cat confdefs.h
>>conftest.
$ac_ext
8812 cat >>conftest.
$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8815 /* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8825 return pam_start ();
8830 rm -f conftest.
$ac_objext conftest
$ac_exeext
8831 if { (ac_try
="$ac_link"
8833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_link") 2>conftest.er1
8839 grep -v '^ *+' conftest.er1 >conftest.err
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext &&
8847 $as_test_x conftest$ac_exeext; then
8848 ac_cv_lib_pam_pam_start=yes
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 ac_cv_lib_pam_pam_start=no
8856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8857 conftest$ac_exeext conftest.$ac_ext
8858 LIBS=$ac_check_lib_save_LIBS
8860 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8861 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8862 if test $ac_cv_lib_pam_pam_start = yes; then
8863 cat >>confdefs.h <<_ACEOF
8864 #define HAVE_LIBPAM 1
8870 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8871 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8872 { (exit 1); exit 1; }; }
8877 if test "$with_libxml" = yes ; then
8879 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8880 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8881 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 ac_check_lib_save_LIBS=$LIBS
8886 cat >conftest.$ac_ext <<_ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8899 char xmlSaveToBuffer ();
8903 return xmlSaveToBuffer ();
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8912 *) ac_try_echo
=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_link") 2>conftest.er1
8917 grep -v '^ *+' conftest.er1
>conftest.err
8919 cat conftest.err
>&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest
$ac_exeext &&
8925 $as_test_x conftest
$ac_exeext; then
8926 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.
$ac_ext >&5
8931 ac_cv_lib_xml2_xmlSaveToBuffer
=no
8934 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8935 conftest
$ac_exeext conftest.
$ac_ext
8936 LIBS
=$ac_check_lib_save_LIBS
8938 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8939 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8940 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8941 cat >>confdefs.h
<<_ACEOF
8942 #define HAVE_LIBXML2 1
8948 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8949 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8950 { (exit 1); exit 1; }; }
8955 if test "$with_libxslt" = yes ; then
8957 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8958 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8959 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 ac_check_lib_save_LIBS
=$LIBS
8964 cat >conftest.
$ac_ext <<_ACEOF
8967 cat confdefs.h
>>conftest.
$ac_ext
8968 cat >>conftest.
$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8971 /* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8977 char xsltCleanupGlobals ();
8981 return xsltCleanupGlobals ();
8986 rm -f conftest.
$ac_objext conftest
$ac_exeext
8987 if { (ac_try
="$ac_link"
8989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8990 *) ac_try_echo=$ac_try;;
8992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8993 (eval "$ac_link") 2>conftest.er1
8995 grep -v '^ *+' conftest.er1 >conftest.err
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } && {
9000 test -z "$ac_c_werror_flag" ||
9001 test ! -s conftest.err
9002 } && test -s conftest$ac_exeext &&
9003 $as_test_x conftest$ac_exeext; then
9004 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_cv_lib_xslt_xsltCleanupGlobals=no
9012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9016 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9017 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9018 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
9019 cat >>confdefs.h <<_ACEOF
9020 #define HAVE_LIBXSLT 1
9026 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9027 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9028 { (exit 1); exit 1; }; }
9033 # for contrib/uuid-ossp
9034 if test "$with_ossp_uuid" = yes ; then
9035 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9036 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
9037 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 ac_check_lib_save_LIBS=$LIBS
9041 LIBS="-lossp-uuid $LIBS"
9042 cat >conftest.$ac_ext <<_ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9049 /* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9055 char uuid_export ();
9059 return uuid_export ();
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9068 *) ac_try_echo
=$ac_try;;
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_link") 2>conftest.er1
9073 grep -v '^ *+' conftest.er1
>conftest.err
9075 cat conftest.err
>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && {
9078 test -z "$ac_c_werror_flag" ||
9079 test ! -s conftest.err
9080 } && test -s conftest
$ac_exeext &&
9081 $as_test_x conftest
$ac_exeext; then
9082 ac_cv_lib_ossp_uuid_uuid_export
=yes
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.
$ac_ext >&5
9087 ac_cv_lib_ossp_uuid_uuid_export
=no
9090 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9091 conftest
$ac_exeext conftest.
$ac_ext
9092 LIBS
=$ac_check_lib_save_LIBS
9094 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9095 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9096 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9097 OSSP_UUID_LIBS
="-lossp-uuid"
9099 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9100 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9101 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 ac_check_lib_save_LIBS
=$LIBS
9106 cat >conftest.
$ac_ext <<_ACEOF
9109 cat confdefs.h
>>conftest.
$ac_ext
9110 cat >>conftest.
$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9113 /* Override any GCC internal prototype to avoid an error.
9114 Use char because int might match the return type of a GCC
9115 builtin and then its argument prototype would still apply. */
9119 char uuid_export ();
9123 return uuid_export ();
9128 rm -f conftest.
$ac_objext conftest
$ac_exeext
9129 if { (ac_try
="$ac_link"
9131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_link") 2>conftest.er1
9137 grep -v '^ *+' conftest.er1 >conftest.err
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest$ac_exeext &&
9145 $as_test_x conftest$ac_exeext; then
9146 ac_cv_lib_uuid_uuid_export=yes
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_cv_lib_uuid_uuid_export=no
9154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9158 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9159 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9160 if test $ac_cv_lib_uuid_uuid_export = yes; then
9161 OSSP_UUID_LIBS="-luuid"
9163 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9164 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9165 { (exit 1); exit 1; }; }
9178 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9180 if test "${ac_cv_header_stdc+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9206 *) ac_try_echo
=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9211 grep -v '^ *+' conftest.er1
>conftest.err
9213 cat conftest.err
>&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.
$ac_objext; then
9219 ac_cv_header_stdc
=yes
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.
$ac_ext >&5
9224 ac_cv_header_stdc
=no
9227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9229 if test $ac_cv_header_stdc = yes; then
9230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9231 cat >conftest.
$ac_ext <<_ACEOF
9234 cat confdefs.h
>>conftest.
$ac_ext
9235 cat >>conftest.
$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241 $EGREP "memchr" >/dev
/null
2>&1; then
9244 ac_cv_header_stdc
=no
9250 if test $ac_cv_header_stdc = yes; then
9251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9252 cat >conftest.
$ac_ext <<_ACEOF
9255 cat confdefs.h
>>conftest.
$ac_ext
9256 cat >>conftest.
$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9262 $EGREP "free" >/dev
/null
2>&1; then
9265 ac_cv_header_stdc
=no
9271 if test $ac_cv_header_stdc = yes; then
9272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9273 if test "$cross_compiling" = yes; then
9276 cat >conftest.
$ac_ext <<_ACEOF
9279 cat confdefs.h
>>conftest.
$ac_ext
9280 cat >>conftest.
$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9284 #if ((' ' & 0x0FF) == 0x020)
9285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9288 # define ISLOWER(c) \
9289 (('a' <= (c) && (c) <= 'i') \
9290 || ('j' <= (c) && (c) <= 'r') \
9291 || ('s' <= (c) && (c) <= 'z'))
9292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9300 for (i = 0; i < 256; i++)
9301 if (XOR (islower (i), ISLOWER (i))
9302 || toupper (i) != TOUPPER (i))
9307 rm -f conftest
$ac_exeext
9308 if { (ac_try
="$ac_link"
9310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_link") 2>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9318 { (case "(($ac_try" in
9319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9320 *) ac_try_echo
=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_try") 2>&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9329 echo "$as_me: program exited with status $ac_status" >&5
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.
$ac_ext >&5
9334 ac_cv_header_stdc
=no
9336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9343 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9344 if test $ac_cv_header_stdc = yes; then
9346 cat >>confdefs.h
<<\_ACEOF
9347 #define STDC_HEADERS 1
9352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9362 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
9363 inttypes.h stdint.h unistd.h
9365 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9368 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 cat >conftest.
$ac_ext <<_ACEOF
9374 cat confdefs.h
>>conftest.
$ac_ext
9375 cat >>conftest.
$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 $ac_includes_default
9379 #include <$ac_header>
9381 rm -f conftest.
$ac_objext
9382 if { (ac_try
="$ac_compile"
9384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
9390 grep -v '^ *+' conftest.er1 >conftest.err
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
9398 eval "$as_ac_Header=yes"
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 eval "$as_ac_Header=no"
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 ac_res=`eval echo '${'$as_ac_Header'}'`
9409 { echo "$as_me:$LINENO: result: $ac_res" >&5
9410 echo "${ECHO_T}$ac_res" >&6; }
9411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9412 cat >>confdefs.h <<_ACEOF
9413 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9448 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
9450 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 ac_res=`eval echo '${'$as_ac_Header'}'`
9458 { echo "$as_me:$LINENO: result: $ac_res" >&5
9459 echo "${ECHO_T}$ac_res" >&6; }
9461 # Is the header compilable?
9462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9464 cat >conftest.$ac_ext <<_ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 #include <$ac_header>
9473 rm -f conftest.$ac_objext
9474 if { (ac_try="$ac_compile"
9476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9477 *) ac_try_echo
=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_compile") 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest.
$ac_objext; then
9490 ac_header_compiler
=yes
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.
$ac_ext >&5
9495 ac_header_compiler
=no
9498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9500 echo "${ECHO_T}$ac_header_compiler" >&6; }
9502 # Is the header present?
9503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9505 cat >conftest.
$ac_ext <<_ACEOF
9508 cat confdefs.h
>>conftest.
$ac_ext
9509 cat >>conftest.
$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 #include <$ac_header>
9513 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9521 grep -v '^ *+' conftest.er1 >conftest.err
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } >/dev/null && {
9526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9529 ac_header_preproc=yes
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_header_preproc=no
9537 rm -f conftest.err conftest.$ac_ext
9538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9539 echo "${ECHO_T}$ac_header_preproc" >&6; }
9541 # So? What about this header?
9542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9548 ac_header_preproc=yes
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9564 ## ---------------------------------------- ##
9565 ## Report this to pgsql-bugs@postgresql.org ##
9566 ## ---------------------------------------- ##
9568 ) | sed "s/^/$as_me: WARNING: /" >&2
9571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 eval "$as_ac_Header=\$ac_header_preproc"
9578 ac_res=`eval echo '${'$as_ac_Header'}'`
9579 { echo "$as_me:$LINENO: result: $ac_res" >&5
9580 echo "${ECHO_T}$ac_res" >&6; }
9583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9584 cat >>confdefs.h <<_ACEOF
9585 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9593 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9594 # netinet/in.h is included first.
9596 for ac_header in netinet/in.h
9598 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 ac_res=`eval echo '${'$as_ac_Header'}'`
9606 { echo "$as_me:$LINENO: result: $ac_res" >&5
9607 echo "${ECHO_T}$ac_res" >&6; }
9609 # Is the header compilable?
9610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9612 cat >conftest.$ac_ext <<_ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 $ac_includes_default
9619 #include <$ac_header>
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9625 *) ac_try_echo
=$ac_try;;
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_compile") 2>conftest.er1
9630 grep -v '^ *+' conftest.er1
>conftest.err
9632 cat conftest.err
>&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest.
$ac_objext; then
9638 ac_header_compiler
=yes
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.
$ac_ext >&5
9643 ac_header_compiler
=no
9646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9648 echo "${ECHO_T}$ac_header_compiler" >&6; }
9650 # Is the header present?
9651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9653 cat >conftest.
$ac_ext <<_ACEOF
9656 cat confdefs.h
>>conftest.
$ac_ext
9657 cat >>conftest.
$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 #include <$ac_header>
9661 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9669 grep -v '^ *+' conftest.er1 >conftest.err
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } >/dev/null && {
9674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9677 ac_header_preproc=yes
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_header_preproc=no
9685 rm -f conftest.err conftest.$ac_ext
9686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9687 echo "${ECHO_T}$ac_header_preproc" >&6; }
9689 # So? What about this header?
9690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9696 ac_header_preproc=yes
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9712 ## ---------------------------------------- ##
9713 ## Report this to pgsql-bugs@postgresql.org ##
9714 ## ---------------------------------------- ##
9716 ) | sed "s/^/$as_me: WARNING: /" >&2
9719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 eval "$as_ac_Header=\$ac_header_preproc"
9726 ac_res=`eval echo '${'$as_ac_Header'}'`
9727 { echo "$as_me:$LINENO: result: $ac_res" >&5
9728 echo "${ECHO_T}$ac_res" >&6; }
9731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9732 cat >>confdefs.h <<_ACEOF
9733 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9741 for ac_header in netinet/tcp.h
9743 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 #ifdef HAVE_NETINET_IN_H
9757 #include <netinet/in.h>
9761 #include <$ac_header>
9763 rm -f conftest.$ac_objext
9764 if { (ac_try="$ac_compile"
9766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9767 *) ac_try_echo
=$ac_try;;
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_compile") 2>conftest.er1
9772 grep -v '^ *+' conftest.er1
>conftest.err
9774 cat conftest.err
>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && {
9777 test -z "$ac_c_werror_flag" ||
9778 test ! -s conftest.err
9779 } && test -s conftest.
$ac_objext; then
9780 eval "$as_ac_Header=yes"
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.
$ac_ext >&5
9785 eval "$as_ac_Header=no"
9788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9790 ac_res
=`eval echo '${'$as_ac_Header'}'`
9791 { echo "$as_me:$LINENO: result: $ac_res" >&5
9792 echo "${ECHO_T}$ac_res" >&6; }
9793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9794 cat >>confdefs.h
<<_ACEOF
9795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9803 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
9805 for ac_header
in readline
/readline.h
9807 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 ac_res
=`eval echo '${'$as_ac_Header'}'`
9815 { echo "$as_me:$LINENO: result: $ac_res" >&5
9816 echo "${ECHO_T}$ac_res" >&6; }
9818 # Is the header compilable?
9819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9821 cat >conftest.
$ac_ext <<_ACEOF
9824 cat confdefs.h
>>conftest.
$ac_ext
9825 cat >>conftest.
$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9828 #include <$ac_header>
9830 rm -f conftest.
$ac_objext
9831 if { (ac_try
="$ac_compile"
9833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 ac_header_compiler=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_header_compiler=no
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857 echo "${ECHO_T}$ac_header_compiler" >&6; }
9859 # Is the header present?
9860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <$ac_header>
9870 if { (ac_try="$ac_cpp conftest.$ac_ext"
9872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9873 *) ac_try_echo
=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1
>conftest.err
9880 cat conftest.err
>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev
/null
&& {
9883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9886 ac_header_preproc
=yes
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.
$ac_ext >&5
9891 ac_header_preproc
=no
9894 rm -f conftest.err conftest.
$ac_ext
9895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9896 echo "${ECHO_T}$ac_header_preproc" >&6; }
9898 # So? What about this header?
9899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9905 ac_header_preproc
=yes
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9921 ## ---------------------------------------- ##
9922 ## Report this to pgsql-bugs@postgresql.org ##
9923 ## ---------------------------------------- ##
9925 ) |
sed "s/^/$as_me: WARNING: /" >&2
9928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9930 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 eval "$as_ac_Header=\$ac_header_preproc"
9935 ac_res
=`eval echo '${'$as_ac_Header'}'`
9936 { echo "$as_me:$LINENO: result: $ac_res" >&5
9937 echo "${ECHO_T}$ac_res" >&6; }
9940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9941 cat >>confdefs.h
<<_ACEOF
9942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9947 for ac_header
in readline.h
9949 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9950 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9953 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 ac_res
=`eval echo '${'$as_ac_Header'}'`
9957 { echo "$as_me:$LINENO: result: $ac_res" >&5
9958 echo "${ECHO_T}$ac_res" >&6; }
9960 # Is the header compilable?
9961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9963 cat >conftest.
$ac_ext <<_ACEOF
9966 cat confdefs.h
>>conftest.
$ac_ext
9967 cat >>conftest.
$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 #include <$ac_header>
9972 rm -f conftest.
$ac_objext
9973 if { (ac_try
="$ac_compile"
9975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_compile") 2>conftest.er1
9981 grep -v '^ *+' conftest.er1 >conftest.err
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } && {
9986 test -z "$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9988 } && test -s conftest.$ac_objext; then
9989 ac_header_compiler=yes
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_header_compiler=no
9997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9999 echo "${ECHO_T}$ac_header_compiler" >&6; }
10001 # Is the header present?
10002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10004 cat >conftest.$ac_ext <<_ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <$ac_header>
10012 if { (ac_try="$ac_cpp conftest.$ac_ext"
10013 case "(($ac_try" in
10014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10015 *) ac_try_echo
=$ac_try;;
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10020 grep -v '^ *+' conftest.er1
>conftest.err
10022 cat conftest.err
>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } >/dev
/null
&& {
10025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10028 ac_header_preproc
=yes
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.
$ac_ext >&5
10033 ac_header_preproc
=no
10036 rm -f conftest.err conftest.
$ac_ext
10037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10038 echo "${ECHO_T}$ac_header_preproc" >&6; }
10040 # So? What about this header?
10041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10047 ac_header_preproc
=yes
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10063 ## ---------------------------------------- ##
10064 ## Report this to pgsql-bugs@postgresql.org ##
10065 ## ---------------------------------------- ##
10067 ) |
sed "s/^/$as_me: WARNING: /" >&2
10070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10072 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 eval "$as_ac_Header=\$ac_header_preproc"
10077 ac_res
=`eval echo '${'$as_ac_Header'}'`
10078 { echo "$as_me:$LINENO: result: $ac_res" >&5
10079 echo "${ECHO_T}$ac_res" >&6; }
10082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10083 cat >>confdefs.h
<<_ACEOF
10084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10088 { { echo "$as_me:$LINENO: error: readline header not found
10089 If you have readline already installed, see config.log for details on the
10090 failure. It is possible the compiler isn't looking in the proper directory.
10091 Use --without-readline to disable readline support." >&5
10092 echo "$as_me: error: readline header not found
10093 If you have readline already installed, see config.log for details on the
10094 failure. It is possible the compiler isn't looking in the proper directory.
10095 Use --without-readline to disable readline support." >&2;}
10096 { (exit 1); exit 1; }; }
10106 for ac_header
in readline
/history.h
10108 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10109 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10112 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 ac_res
=`eval echo '${'$as_ac_Header'}'`
10116 { echo "$as_me:$LINENO: result: $ac_res" >&5
10117 echo "${ECHO_T}$ac_res" >&6; }
10119 # Is the header compilable?
10120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10122 cat >conftest.
$ac_ext <<_ACEOF
10125 cat confdefs.h
>>conftest.
$ac_ext
10126 cat >>conftest.
$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10129 #include <$ac_header>
10131 rm -f conftest.
$ac_objext
10132 if { (ac_try
="$ac_compile"
10133 case "(($ac_try" in
10134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
10148 ac_header_compiler=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_header_compiler=no
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10158 echo "${ECHO_T}$ac_header_compiler" >&6; }
10160 # Is the header present?
10161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10163 cat >conftest.$ac_ext <<_ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10169 #include <$ac_header>
10171 if { (ac_try="$ac_cpp conftest.$ac_ext"
10172 case "(($ac_try" in
10173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10174 *) ac_try_echo
=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1
>conftest.err
10181 cat conftest.err
>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } >/dev
/null
&& {
10184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10187 ac_header_preproc
=yes
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.
$ac_ext >&5
10192 ac_header_preproc
=no
10195 rm -f conftest.err conftest.
$ac_ext
10196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10197 echo "${ECHO_T}$ac_header_preproc" >&6; }
10199 # So? What about this header?
10200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10206 ac_header_preproc
=yes
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10222 ## ---------------------------------------- ##
10223 ## Report this to pgsql-bugs@postgresql.org ##
10224 ## ---------------------------------------- ##
10226 ) |
sed "s/^/$as_me: WARNING: /" >&2
10229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10231 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 eval "$as_ac_Header=\$ac_header_preproc"
10236 ac_res
=`eval echo '${'$as_ac_Header'}'`
10237 { echo "$as_me:$LINENO: result: $ac_res" >&5
10238 echo "${ECHO_T}$ac_res" >&6; }
10241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10242 cat >>confdefs.h
<<_ACEOF
10243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10248 for ac_header
in history.h
10250 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10251 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10254 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_res
=`eval echo '${'$as_ac_Header'}'`
10258 { echo "$as_me:$LINENO: result: $ac_res" >&5
10259 echo "${ECHO_T}$ac_res" >&6; }
10261 # Is the header compilable?
10262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10264 cat >conftest.
$ac_ext <<_ACEOF
10267 cat confdefs.h
>>conftest.
$ac_ext
10268 cat >>conftest.
$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 $ac_includes_default
10271 #include <$ac_header>
10273 rm -f conftest.
$ac_objext
10274 if { (ac_try
="$ac_compile"
10275 case "(($ac_try" in
10276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_compile") 2>conftest.er1
10282 grep -v '^ *+' conftest.er1 >conftest.err
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } && {
10287 test -z "$ac_c_werror_flag" ||
10288 test ! -s conftest.err
10289 } && test -s conftest.$ac_objext; then
10290 ac_header_compiler=yes
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_header_compiler=no
10298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10300 echo "${ECHO_T}$ac_header_compiler" >&6; }
10302 # Is the header present?
10303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10305 cat >conftest.$ac_ext <<_ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <$ac_header>
10313 if { (ac_try="$ac_cpp conftest.$ac_ext"
10314 case "(($ac_try" in
10315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10316 *) ac_try_echo
=$ac_try;;
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10321 grep -v '^ *+' conftest.er1
>conftest.err
10323 cat conftest.err
>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } >/dev
/null
&& {
10326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10327 test ! -s conftest.err
10329 ac_header_preproc
=yes
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.
$ac_ext >&5
10334 ac_header_preproc
=no
10337 rm -f conftest.err conftest.
$ac_ext
10338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10339 echo "${ECHO_T}$ac_header_preproc" >&6; }
10341 # So? What about this header?
10342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10348 ac_header_preproc
=yes
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10364 ## ---------------------------------------- ##
10365 ## Report this to pgsql-bugs@postgresql.org ##
10366 ## ---------------------------------------- ##
10368 ) |
sed "s/^/$as_me: WARNING: /" >&2
10371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10373 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 eval "$as_ac_Header=\$ac_header_preproc"
10378 ac_res
=`eval echo '${'$as_ac_Header'}'`
10379 { echo "$as_me:$LINENO: result: $ac_res" >&5
10380 echo "${ECHO_T}$ac_res" >&6; }
10383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10384 cat >>confdefs.h
<<_ACEOF
10385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10389 { { echo "$as_me:$LINENO: error: history header not found
10390 If you have readline already installed, see config.log for details on the
10391 failure. It is possible the compiler isn't looking in the proper directory.
10392 Use --without-readline to disable readline support." >&5
10393 echo "$as_me: error: history header not found
10394 If you have readline already installed, see config.log for details on the
10395 failure. It is possible the compiler isn't looking in the proper directory.
10396 Use --without-readline to disable readline support." >&2;}
10397 { (exit 1); exit 1; }; }
10408 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
10409 # Some installations of libedit usurp /usr/include/readline/, which seems
10410 # bad practice, since in combined installations readline will have its headers
10411 # there. We might have to resort to AC_EGREP checks to make sure we found
10412 # the proper header...
10414 for ac_header
in editline
/readline.h
10416 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10417 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10420 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 ac_res
=`eval echo '${'$as_ac_Header'}'`
10424 { echo "$as_me:$LINENO: result: $ac_res" >&5
10425 echo "${ECHO_T}$ac_res" >&6; }
10427 # Is the header compilable?
10428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10430 cat >conftest.
$ac_ext <<_ACEOF
10433 cat confdefs.h
>>conftest.
$ac_ext
10434 cat >>conftest.
$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 $ac_includes_default
10437 #include <$ac_header>
10439 rm -f conftest.
$ac_objext
10440 if { (ac_try
="$ac_compile"
10441 case "(($ac_try" in
10442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_compile") 2>conftest.er1
10448 grep -v '^ *+' conftest.er1 >conftest.err
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && {
10453 test -z "$ac_c_werror_flag" ||
10454 test ! -s conftest.err
10455 } && test -s conftest.$ac_objext; then
10456 ac_header_compiler=yes
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_header_compiler=no
10464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10466 echo "${ECHO_T}$ac_header_compiler" >&6; }
10468 # Is the header present?
10469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 #include <$ac_header>
10479 if { (ac_try="$ac_cpp conftest.$ac_ext"
10480 case "(($ac_try" in
10481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10482 *) ac_try_echo
=$ac_try;;
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10487 grep -v '^ *+' conftest.er1
>conftest.err
10489 cat conftest.err
>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } >/dev
/null
&& {
10492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10495 ac_header_preproc
=yes
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.
$ac_ext >&5
10500 ac_header_preproc
=no
10503 rm -f conftest.err conftest.
$ac_ext
10504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10505 echo "${ECHO_T}$ac_header_preproc" >&6; }
10507 # So? What about this header?
10508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10514 ac_header_preproc
=yes
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10530 ## ---------------------------------------- ##
10531 ## Report this to pgsql-bugs@postgresql.org ##
10532 ## ---------------------------------------- ##
10534 ) |
sed "s/^/$as_me: WARNING: /" >&2
10537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10539 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 eval "$as_ac_Header=\$ac_header_preproc"
10544 ac_res
=`eval echo '${'$as_ac_Header'}'`
10545 { echo "$as_me:$LINENO: result: $ac_res" >&5
10546 echo "${ECHO_T}$ac_res" >&6; }
10549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10550 cat >>confdefs.h
<<_ACEOF
10551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556 for ac_header
in readline.h
10558 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10559 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10562 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 ac_res
=`eval echo '${'$as_ac_Header'}'`
10566 { echo "$as_me:$LINENO: result: $ac_res" >&5
10567 echo "${ECHO_T}$ac_res" >&6; }
10569 # Is the header compilable?
10570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10572 cat >conftest.
$ac_ext <<_ACEOF
10575 cat confdefs.h
>>conftest.
$ac_ext
10576 cat >>conftest.
$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10579 #include <$ac_header>
10581 rm -f conftest.
$ac_objext
10582 if { (ac_try
="$ac_compile"
10583 case "(($ac_try" in
10584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10590 grep -v '^ *+' conftest.er1 >conftest.err
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
10598 ac_header_compiler=yes
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_header_compiler=no
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 echo "${ECHO_T}$ac_header_compiler" >&6; }
10610 # Is the header present?
10611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <$ac_header>
10621 if { (ac_try="$ac_cpp conftest.$ac_ext"
10622 case "(($ac_try" in
10623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10624 *) ac_try_echo
=$ac_try;;
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10629 grep -v '^ *+' conftest.er1
>conftest.err
10631 cat conftest.err
>&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } >/dev
/null
&& {
10634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10635 test ! -s conftest.err
10637 ac_header_preproc
=yes
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.
$ac_ext >&5
10642 ac_header_preproc
=no
10645 rm -f conftest.err conftest.
$ac_ext
10646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647 echo "${ECHO_T}$ac_header_preproc" >&6; }
10649 # So? What about this header?
10650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10656 ac_header_preproc
=yes
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10672 ## ---------------------------------------- ##
10673 ## Report this to pgsql-bugs@postgresql.org ##
10674 ## ---------------------------------------- ##
10676 ) |
sed "s/^/$as_me: WARNING: /" >&2
10679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10681 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 eval "$as_ac_Header=\$ac_header_preproc"
10686 ac_res
=`eval echo '${'$as_ac_Header'}'`
10687 { echo "$as_me:$LINENO: result: $ac_res" >&5
10688 echo "${ECHO_T}$ac_res" >&6; }
10691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10692 cat >>confdefs.h
<<_ACEOF
10693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10698 for ac_header
in readline
/readline.h
10700 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10704 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 ac_res
=`eval echo '${'$as_ac_Header'}'`
10708 { echo "$as_me:$LINENO: result: $ac_res" >&5
10709 echo "${ECHO_T}$ac_res" >&6; }
10711 # Is the header compilable?
10712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10714 cat >conftest.
$ac_ext <<_ACEOF
10717 cat confdefs.h
>>conftest.
$ac_ext
10718 cat >>conftest.
$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 $ac_includes_default
10721 #include <$ac_header>
10723 rm -f conftest.
$ac_objext
10724 if { (ac_try
="$ac_compile"
10725 case "(($ac_try" in
10726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_compile") 2>conftest.er1
10732 grep -v '^ *+' conftest.er1 >conftest.err
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } && {
10737 test -z "$ac_c_werror_flag" ||
10738 test ! -s conftest.err
10739 } && test -s conftest.$ac_objext; then
10740 ac_header_compiler=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_header_compiler=no
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10766 *) ac_try_echo
=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1
>conftest.err
10773 cat conftest.err
>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } >/dev
/null
&& {
10776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10779 ac_header_preproc
=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.
$ac_ext >&5
10784 ac_header_preproc
=no
10787 rm -f conftest.err conftest.
$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6; }
10791 # So? What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc
=yes
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10814 ## ---------------------------------------- ##
10815 ## Report this to pgsql-bugs@postgresql.org ##
10816 ## ---------------------------------------- ##
10818 ) |
sed "s/^/$as_me: WARNING: /" >&2
10821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10823 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 eval "$as_ac_Header=\$ac_header_preproc"
10828 ac_res
=`eval echo '${'$as_ac_Header'}'`
10829 { echo "$as_me:$LINENO: result: $ac_res" >&5
10830 echo "${ECHO_T}$ac_res" >&6; }
10833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10834 cat >>confdefs.h
<<_ACEOF
10835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10839 { { echo "$as_me:$LINENO: error: readline header not found
10840 If you have libedit already installed, see config.log for details on the
10841 failure. It is possible the compiler isn't looking in the proper directory.
10842 Use --without-readline to disable libedit support." >&5
10843 echo "$as_me: error: readline header not found
10844 If you have libedit already installed, see config.log for details on the
10845 failure. It is possible the compiler isn't looking in the proper directory.
10846 Use --without-readline to disable libedit support." >&2;}
10847 { (exit 1); exit 1; }; }
10860 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10861 # not be there at all. Hence, don't complain if not found. We must check
10862 # though, since in yet other versions it is an independent header.
10864 for ac_header
in editline
/history.h
10866 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10867 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10870 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 ac_res
=`eval echo '${'$as_ac_Header'}'`
10874 { echo "$as_me:$LINENO: result: $ac_res" >&5
10875 echo "${ECHO_T}$ac_res" >&6; }
10877 # Is the header compilable?
10878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10880 cat >conftest.
$ac_ext <<_ACEOF
10883 cat confdefs.h
>>conftest.
$ac_ext
10884 cat >>conftest.
$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 $ac_includes_default
10887 #include <$ac_header>
10889 rm -f conftest.
$ac_objext
10890 if { (ac_try
="$ac_compile"
10891 case "(($ac_try" in
10892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_compile") 2>conftest.er1
10898 grep -v '^ *+' conftest.er1 >conftest.err
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest.$ac_objext; then
10906 ac_header_compiler=yes
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_header_compiler=no
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10916 echo "${ECHO_T}$ac_header_compiler" >&6; }
10918 # Is the header present?
10919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10921 cat >conftest.$ac_ext <<_ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <$ac_header>
10929 if { (ac_try="$ac_cpp conftest.$ac_ext"
10930 case "(($ac_try" in
10931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10932 *) ac_try_echo
=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10937 grep -v '^ *+' conftest.er1
>conftest.err
10939 cat conftest.err
>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } >/dev
/null
&& {
10942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10945 ac_header_preproc
=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.
$ac_ext >&5
10950 ac_header_preproc
=no
10953 rm -f conftest.err conftest.
$ac_ext
10954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10955 echo "${ECHO_T}$ac_header_preproc" >&6; }
10957 # So? What about this header?
10958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10964 ac_header_preproc
=yes
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10980 ## ---------------------------------------- ##
10981 ## Report this to pgsql-bugs@postgresql.org ##
10982 ## ---------------------------------------- ##
10984 ) |
sed "s/^/$as_me: WARNING: /" >&2
10987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10989 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 eval "$as_ac_Header=\$ac_header_preproc"
10994 ac_res
=`eval echo '${'$as_ac_Header'}'`
10995 { echo "$as_me:$LINENO: result: $ac_res" >&5
10996 echo "${ECHO_T}$ac_res" >&6; }
10999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11000 cat >>confdefs.h
<<_ACEOF
11001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11006 for ac_header
in history.h
11008 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11009 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11012 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 ac_res
=`eval echo '${'$as_ac_Header'}'`
11016 { echo "$as_me:$LINENO: result: $ac_res" >&5
11017 echo "${ECHO_T}$ac_res" >&6; }
11019 # Is the header compilable?
11020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11022 cat >conftest.
$ac_ext <<_ACEOF
11025 cat confdefs.h
>>conftest.
$ac_ext
11026 cat >>conftest.
$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 $ac_includes_default
11029 #include <$ac_header>
11031 rm -f conftest.
$ac_objext
11032 if { (ac_try
="$ac_compile"
11033 case "(($ac_try" in
11034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_compile") 2>conftest.er1
11040 grep -v '^ *+' conftest.er1 >conftest.err
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && {
11045 test -z "$ac_c_werror_flag" ||
11046 test ! -s conftest.err
11047 } && test -s conftest.$ac_objext; then
11048 ac_header_compiler=yes
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_header_compiler=no
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11058 echo "${ECHO_T}$ac_header_compiler" >&6; }
11060 # Is the header present?
11061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <$ac_header>
11071 if { (ac_try="$ac_cpp conftest.$ac_ext"
11072 case "(($ac_try" in
11073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11074 *) ac_try_echo
=$ac_try;;
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1
>conftest.err
11081 cat conftest.err
>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } >/dev
/null
&& {
11084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11087 ac_header_preproc
=yes
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.
$ac_ext >&5
11092 ac_header_preproc
=no
11095 rm -f conftest.err conftest.
$ac_ext
11096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11097 echo "${ECHO_T}$ac_header_preproc" >&6; }
11099 # So? What about this header?
11100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11106 ac_header_preproc
=yes
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11122 ## ---------------------------------------- ##
11123 ## Report this to pgsql-bugs@postgresql.org ##
11124 ## ---------------------------------------- ##
11126 ) |
sed "s/^/$as_me: WARNING: /" >&2
11129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11131 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 eval "$as_ac_Header=\$ac_header_preproc"
11136 ac_res
=`eval echo '${'$as_ac_Header'}'`
11137 { echo "$as_me:$LINENO: result: $ac_res" >&5
11138 echo "${ECHO_T}$ac_res" >&6; }
11141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11142 cat >>confdefs.h
<<_ACEOF
11143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11148 for ac_header
in readline
/history.h
11150 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11151 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11154 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 ac_res
=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11161 # Is the header compilable?
11162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11164 cat >conftest.
$ac_ext <<_ACEOF
11167 cat confdefs.h
>>conftest.
$ac_ext
11168 cat >>conftest.
$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 $ac_includes_default
11171 #include <$ac_header>
11173 rm -f conftest.
$ac_objext
11174 if { (ac_try
="$ac_compile"
11175 case "(($ac_try" in
11176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_compile") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest.$ac_objext; then
11190 ac_header_compiler=yes
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ac_header_compiler=no
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 echo "${ECHO_T}$ac_header_compiler" >&6; }
11202 # Is the header present?
11203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11213 if { (ac_try="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11216 *) ac_try_echo
=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221 grep -v '^ *+' conftest.er1
>conftest.err
11223 cat conftest.err
>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev
/null
&& {
11226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11229 ac_header_preproc
=yes
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.
$ac_ext >&5
11234 ac_header_preproc
=no
11237 rm -f conftest.err conftest.
$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 echo "${ECHO_T}$ac_header_preproc" >&6; }
11241 # So? What about this header?
11242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11248 ac_header_preproc
=yes
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11264 ## ---------------------------------------- ##
11265 ## Report this to pgsql-bugs@postgresql.org ##
11266 ## ---------------------------------------- ##
11268 ) |
sed "s/^/$as_me: WARNING: /" >&2
11271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11273 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 eval "$as_ac_Header=\$ac_header_preproc"
11278 ac_res
=`eval echo '${'$as_ac_Header'}'`
11279 { echo "$as_me:$LINENO: result: $ac_res" >&5
11280 echo "${ECHO_T}$ac_res" >&6; }
11283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11284 cat >>confdefs.h
<<_ACEOF
11285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 if test "$with_zlib" = yes; then
11303 if test "${ac_cv_header_zlib_h+set}" = set; then
11304 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11305 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11306 if test "${ac_cv_header_zlib_h+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11310 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11312 # Is the header compilable?
11313 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11314 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11315 cat >conftest.
$ac_ext <<_ACEOF
11318 cat confdefs.h
>>conftest.
$ac_ext
11319 cat >>conftest.
$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11324 rm -f conftest.
$ac_objext
11325 if { (ac_try
="$ac_compile"
11326 case "(($ac_try" in
11327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_compile") 2>conftest.er1
11333 grep -v '^ *+' conftest.er1 >conftest.err
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest.$ac_objext; then
11341 ac_header_compiler=yes
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 ac_header_compiler=no
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11351 echo "${ECHO_T}$ac_header_compiler" >&6; }
11353 # Is the header present?
11354 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11355 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11356 cat >conftest.$ac_ext <<_ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11364 if { (ac_try="$ac_cpp conftest.$ac_ext"
11365 case "(($ac_try" in
11366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11367 *) ac_try_echo
=$ac_try;;
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11372 grep -v '^ *+' conftest.er1
>conftest.err
11374 cat conftest.err
>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } >/dev
/null
&& {
11377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11380 ac_header_preproc
=yes
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.
$ac_ext >&5
11385 ac_header_preproc
=no
11388 rm -f conftest.err conftest.
$ac_ext
11389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11390 echo "${ECHO_T}$ac_header_preproc" >&6; }
11392 # So? What about this header?
11393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11396 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11398 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11399 ac_header_preproc
=yes
11402 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11403 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11405 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11407 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11409 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11411 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11413 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11415 ## ---------------------------------------- ##
11416 ## Report this to pgsql-bugs@postgresql.org ##
11417 ## ---------------------------------------- ##
11419 ) |
sed "s/^/$as_me: WARNING: /" >&2
11422 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11423 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11424 if test "${ac_cv_header_zlib_h+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 ac_cv_header_zlib_h
=$ac_header_preproc
11429 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11430 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11433 if test $ac_cv_header_zlib_h = yes; then
11436 { { echo "$as_me:$LINENO: error: zlib header not found
11437 If you have zlib already installed, see config.log for details on the
11438 failure. It is possible the compiler isn't looking in the proper directory.
11439 Use --without-zlib to disable zlib support." >&5
11440 echo "$as_me: error: zlib header not found
11441 If you have zlib already installed, see config.log for details on the
11442 failure. It is possible the compiler isn't looking in the proper directory.
11443 Use --without-zlib to disable zlib support." >&2;}
11444 { (exit 1); exit 1; }; }
11450 if test "$with_gssapi" = yes ; then
11452 for ac_header
in gssapi
/gssapi.h
11454 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11458 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 ac_res
=`eval echo '${'$as_ac_Header'}'`
11462 { echo "$as_me:$LINENO: result: $ac_res" >&5
11463 echo "${ECHO_T}$ac_res" >&6; }
11465 # Is the header compilable?
11466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 #include <$ac_header>
11477 rm -f conftest.
$ac_objext
11478 if { (ac_try
="$ac_compile"
11479 case "(($ac_try" in
11480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_compile") 2>conftest.er1
11486 grep -v '^ *+' conftest.er1 >conftest.err
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest.$ac_objext; then
11494 ac_header_compiler=yes
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_header_compiler=no
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504 echo "${ECHO_T}$ac_header_compiler" >&6; }
11506 # Is the header present?
11507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 #include <$ac_header>
11517 if { (ac_try="$ac_cpp conftest.$ac_ext"
11518 case "(($ac_try" in
11519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11520 *) ac_try_echo
=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1
>conftest.err
11527 cat conftest.err
>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev
/null
&& {
11530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11533 ac_header_preproc
=yes
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.
$ac_ext >&5
11538 ac_header_preproc
=no
11541 rm -f conftest.err conftest.
$ac_ext
11542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11543 echo "${ECHO_T}$ac_header_preproc" >&6; }
11545 # So? What about this header?
11546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11552 ac_header_preproc
=yes
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11568 ## ---------------------------------------- ##
11569 ## Report this to pgsql-bugs@postgresql.org ##
11570 ## ---------------------------------------- ##
11572 ) |
sed "s/^/$as_me: WARNING: /" >&2
11575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11577 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 eval "$as_ac_Header=\$ac_header_preproc"
11582 ac_res
=`eval echo '${'$as_ac_Header'}'`
11583 { echo "$as_me:$LINENO: result: $ac_res" >&5
11584 echo "${ECHO_T}$ac_res" >&6; }
11587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11588 cat >>confdefs.h
<<_ACEOF
11589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11594 for ac_header
in gssapi.h
11596 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11597 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11600 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 ac_res
=`eval echo '${'$as_ac_Header'}'`
11604 { echo "$as_me:$LINENO: result: $ac_res" >&5
11605 echo "${ECHO_T}$ac_res" >&6; }
11607 # Is the header compilable?
11608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11610 cat >conftest.
$ac_ext <<_ACEOF
11613 cat confdefs.h
>>conftest.
$ac_ext
11614 cat >>conftest.
$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 $ac_includes_default
11617 #include <$ac_header>
11619 rm -f conftest.
$ac_objext
11620 if { (ac_try
="$ac_compile"
11621 case "(($ac_try" in
11622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_compile") 2>conftest.er1
11628 grep -v '^ *+' conftest.er1 >conftest.err
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest.$ac_objext; then
11636 ac_header_compiler=yes
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_header_compiler=no
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646 echo "${ECHO_T}$ac_header_compiler" >&6; }
11648 # Is the header present?
11649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 #include <$ac_header>
11659 if { (ac_try="$ac_cpp conftest.$ac_ext"
11660 case "(($ac_try" in
11661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11662 *) ac_try_echo
=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11667 grep -v '^ *+' conftest.er1
>conftest.err
11669 cat conftest.err
>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } >/dev
/null
&& {
11672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11673 test ! -s conftest.err
11675 ac_header_preproc
=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.
$ac_ext >&5
11680 ac_header_preproc
=no
11683 rm -f conftest.err conftest.
$ac_ext
11684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11685 echo "${ECHO_T}$ac_header_preproc" >&6; }
11687 # So? What about this header?
11688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11694 ac_header_preproc
=yes
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11710 ## ---------------------------------------- ##
11711 ## Report this to pgsql-bugs@postgresql.org ##
11712 ## ---------------------------------------- ##
11714 ) |
sed "s/^/$as_me: WARNING: /" >&2
11717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 eval "$as_ac_Header=\$ac_header_preproc"
11724 ac_res
=`eval echo '${'$as_ac_Header'}'`
11725 { echo "$as_me:$LINENO: result: $ac_res" >&5
11726 echo "${ECHO_T}$ac_res" >&6; }
11729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11730 cat >>confdefs.h
<<_ACEOF
11731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11735 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11736 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11737 { (exit 1); exit 1; }; }
11748 if test "$with_krb5" = yes ; then
11749 if test "${ac_cv_header_krb5_h+set}" = set; then
11750 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11751 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11752 if test "${ac_cv_header_krb5_h+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11756 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11758 # Is the header compilable?
11759 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11760 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11761 cat >conftest.
$ac_ext <<_ACEOF
11764 cat confdefs.h
>>conftest.
$ac_ext
11765 cat >>conftest.
$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11770 rm -f conftest.
$ac_objext
11771 if { (ac_try
="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_header_compiler=yes
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_header_compiler=no
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797 echo "${ECHO_T}$ac_header_compiler" >&6; }
11799 # Is the header present?
11800 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11801 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11810 if { (ac_try="$ac_cpp conftest.$ac_ext"
11811 case "(($ac_try" in
11812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11813 *) ac_try_echo
=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1
>conftest.err
11820 cat conftest.err
>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } >/dev
/null
&& {
11823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11826 ac_header_preproc
=yes
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.
$ac_ext >&5
11831 ac_header_preproc
=no
11834 rm -f conftest.err conftest.
$ac_ext
11835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11836 echo "${ECHO_T}$ac_header_preproc" >&6; }
11838 # So? What about this header?
11839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11841 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11842 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11844 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11845 ac_header_preproc
=yes
11848 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11849 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11851 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11853 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11855 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11857 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11859 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11861 ## ---------------------------------------- ##
11862 ## Report this to pgsql-bugs@postgresql.org ##
11863 ## ---------------------------------------- ##
11865 ) |
sed "s/^/$as_me: WARNING: /" >&2
11868 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11869 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11870 if test "${ac_cv_header_krb5_h+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 ac_cv_header_krb5_h
=$ac_header_preproc
11875 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11876 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11879 if test $ac_cv_header_krb5_h = yes; then
11882 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11883 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11884 { (exit 1); exit 1; }; }
11890 if test "$with_openssl" = yes ; then
11891 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11892 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11893 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11894 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11900 # Is the header compilable?
11901 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11902 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11903 cat >conftest.
$ac_ext <<_ACEOF
11906 cat confdefs.h
>>conftest.
$ac_ext
11907 cat >>conftest.
$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 $ac_includes_default
11910 #include <openssl/ssl.h>
11912 rm -f conftest.
$ac_objext
11913 if { (ac_try
="$ac_compile"
11914 case "(($ac_try" in
11915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_compile") 2>conftest.er1
11921 grep -v '^ *+' conftest.er1 >conftest.err
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest.$ac_objext; then
11929 ac_header_compiler=yes
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 ac_header_compiler=no
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11939 echo "${ECHO_T}$ac_header_compiler" >&6; }
11941 # Is the header present?
11942 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11943 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11944 cat >conftest.$ac_ext <<_ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 #include <openssl/ssl.h>
11952 if { (ac_try="$ac_cpp conftest.$ac_ext"
11953 case "(($ac_try" in
11954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11955 *) ac_try_echo
=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1
>conftest.err
11962 cat conftest.err
>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } >/dev
/null
&& {
11965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11968 ac_header_preproc
=yes
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.
$ac_ext >&5
11973 ac_header_preproc
=no
11976 rm -f conftest.err conftest.
$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11978 echo "${ECHO_T}$ac_header_preproc" >&6; }
11980 # So? What about this header?
11981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11983 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11984 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11986 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11987 ac_header_preproc
=yes
11990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11991 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11993 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11995 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11997 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11999 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12001 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12003 ## ---------------------------------------- ##
12004 ## Report this to pgsql-bugs@postgresql.org ##
12005 ## ---------------------------------------- ##
12007 ) |
sed "s/^/$as_me: WARNING: /" >&2
12010 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12011 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12012 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
12017 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12018 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12021 if test $ac_cv_header_openssl_ssl_h = yes; then
12024 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12025 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12026 { (exit 1); exit 1; }; }
12030 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12031 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12032 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12033 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12037 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12039 # Is the header compilable?
12040 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12041 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
12042 cat >conftest.
$ac_ext <<_ACEOF
12045 cat confdefs.h
>>conftest.
$ac_ext
12046 cat >>conftest.
$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 $ac_includes_default
12049 #include <openssl/err.h>
12051 rm -f conftest.
$ac_objext
12052 if { (ac_try
="$ac_compile"
12053 case "(($ac_try" in
12054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_compile") 2>conftest.er1
12060 grep -v '^ *+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest.$ac_objext; then
12068 ac_header_compiler=yes
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 ac_header_compiler=no
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12078 echo "${ECHO_T}$ac_header_compiler" >&6; }
12080 # Is the header present?
12081 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12082 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
12083 cat >conftest.$ac_ext <<_ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 #include <openssl/err.h>
12091 if { (ac_try="$ac_cpp conftest.$ac_ext"
12092 case "(($ac_try" in
12093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12094 *) ac_try_echo
=$ac_try;;
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12099 grep -v '^ *+' conftest.er1
>conftest.err
12101 cat conftest.err
>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } >/dev
/null
&& {
12104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12107 ac_header_preproc
=yes
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.
$ac_ext >&5
12112 ac_header_preproc
=no
12115 rm -f conftest.err conftest.
$ac_ext
12116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12117 echo "${ECHO_T}$ac_header_preproc" >&6; }
12119 # So? What about this header?
12120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12122 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12123 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12125 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12126 ac_header_preproc
=yes
12129 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12130 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12132 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12134 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12136 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12138 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12140 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12142 ## ---------------------------------------- ##
12143 ## Report this to pgsql-bugs@postgresql.org ##
12144 ## ---------------------------------------- ##
12146 ) |
sed "s/^/$as_me: WARNING: /" >&2
12149 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12150 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12151 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_cv_header_openssl_err_h
=$ac_header_preproc
12156 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12157 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12160 if test $ac_cv_header_openssl_err_h = yes; then
12163 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12164 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12165 { (exit 1); exit 1; }; }
12170 for ac_func
in ERR_set_mark
12172 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12175 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.
$ac_ext <<_ACEOF
12181 cat confdefs.h
>>conftest.
$ac_ext
12182 cat >>conftest.
$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12186 #define $ac_func innocuous_$ac_func
12188 /* System header to define __stub macros and hopefully few prototypes,
12189 which can conflict with char $ac_func (); below.
12190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191 <limits.h> exists even on freestanding compilers. */
12194 # include <limits.h>
12196 # include <assert.h>
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12208 /* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211 #if defined __stub_$ac_func || defined __stub___$ac_func
12218 return $ac_func ();
12223 rm -f conftest.
$ac_objext conftest
$ac_exeext
12224 if { (ac_try
="$ac_link"
12225 case "(($ac_try" in
12226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
12232 grep -v '^ *+' conftest.er1 >conftest.err
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } && {
12237 test -z "$ac_c_werror_flag" ||
12238 test ! -s conftest.err
12239 } && test -s conftest$ac_exeext &&
12240 $as_test_x conftest$ac_exeext; then
12241 eval "$as_ac_var=yes"
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 eval "$as_ac_var=no"
12249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12250 conftest$ac_exeext conftest.$ac_ext
12252 ac_res=`eval echo '${'$as_ac_var'}'`
12253 { echo "$as_me:$LINENO: result: $ac_res" >&5
12254 echo "${ECHO_T}$ac_res" >&6; }
12255 if test `eval echo '${'$as_ac_var'}'` = yes; then
12256 cat >>confdefs.h <<_ACEOF
12257 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12265 if test "$with_pam" = yes ; then
12267 for ac_header in security/pam_appl.h
12269 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_res=`eval echo '${'$as_ac_Header'}'`
12277 { echo "$as_me:$LINENO: result: $ac_res" >&5
12278 echo "${ECHO_T}$ac_res" >&6; }
12280 # Is the header compilable?
12281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 $ac_includes_default
12290 #include <$ac_header>
12292 rm -f conftest.$ac_objext
12293 if { (ac_try="$ac_compile"
12294 case "(($ac_try" in
12295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12296 *) ac_try_echo
=$ac_try;;
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_compile") 2>conftest.er1
12301 grep -v '^ *+' conftest.er1
>conftest.err
12303 cat conftest.err
>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && {
12306 test -z "$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12308 } && test -s conftest.
$ac_objext; then
12309 ac_header_compiler
=yes
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12314 ac_header_compiler
=no
12317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12319 echo "${ECHO_T}$ac_header_compiler" >&6; }
12321 # Is the header present?
12322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12324 cat >conftest.
$ac_ext <<_ACEOF
12327 cat confdefs.h
>>conftest.
$ac_ext
12328 cat >>conftest.
$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 #include <$ac_header>
12332 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12333 case "(($ac_try" in
12334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12340 grep -v '^ *+' conftest.er1 >conftest.err
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } >/dev/null && {
12345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12348 ac_header_preproc=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_header_preproc=no
12356 rm -f conftest.err conftest.$ac_ext
12357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12358 echo "${ECHO_T}$ac_header_preproc" >&6; }
12360 # So? What about this header?
12361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12367 ac_header_preproc=yes
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12383 ## ---------------------------------------- ##
12384 ## Report this to pgsql-bugs@postgresql.org ##
12385 ## ---------------------------------------- ##
12387 ) | sed "s/^/$as_me: WARNING: /" >&2
12390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 eval "$as_ac_Header=\$ac_header_preproc"
12397 ac_res=`eval echo '${'$as_ac_Header'}'`
12398 { echo "$as_me:$LINENO: result: $ac_res" >&5
12399 echo "${ECHO_T}$ac_res" >&6; }
12402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12409 for ac_header in pam/pam_appl.h
12411 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 ac_res=`eval echo '${'$as_ac_Header'}'`
12419 { echo "$as_me:$LINENO: result: $ac_res" >&5
12420 echo "${ECHO_T}$ac_res" >&6; }
12422 # Is the header compilable?
12423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12425 cat >conftest.$ac_ext <<_ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 $ac_includes_default
12432 #include <$ac_header>
12434 rm -f conftest.$ac_objext
12435 if { (ac_try="$ac_compile"
12436 case "(($ac_try" in
12437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12438 *) ac_try_echo
=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_compile") 2>conftest.er1
12443 grep -v '^ *+' conftest.er1
>conftest.err
12445 cat conftest.err
>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && {
12448 test -z "$ac_c_werror_flag" ||
12449 test ! -s conftest.err
12450 } && test -s conftest.
$ac_objext; then
12451 ac_header_compiler
=yes
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.
$ac_ext >&5
12456 ac_header_compiler
=no
12459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12461 echo "${ECHO_T}$ac_header_compiler" >&6; }
12463 # Is the header present?
12464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12466 cat >conftest.
$ac_ext <<_ACEOF
12469 cat confdefs.h
>>conftest.
$ac_ext
12470 cat >>conftest.
$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 #include <$ac_header>
12474 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12475 case "(($ac_try" in
12476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } >/dev/null && {
12487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12488 test ! -s conftest.err
12490 ac_header_preproc=yes
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12495 ac_header_preproc=no
12498 rm -f conftest.err conftest.$ac_ext
12499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12500 echo "${ECHO_T}$ac_header_preproc" >&6; }
12502 # So? What about this header?
12503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12509 ac_header_preproc=yes
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12525 ## ---------------------------------------- ##
12526 ## Report this to pgsql-bugs@postgresql.org ##
12527 ## ---------------------------------------- ##
12529 ) | sed "s/^/$as_me: WARNING: /" >&2
12532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 eval "$as_ac_Header=\$ac_header_preproc"
12539 ac_res=`eval echo '${'$as_ac_Header'}'`
12540 { echo "$as_me:$LINENO: result: $ac_res" >&5
12541 echo "${ECHO_T}$ac_res" >&6; }
12544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12545 cat >>confdefs.h <<_ACEOF
12546 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12550 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12551 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12552 { (exit 1); exit 1; }; }
12563 if test "$with_libxml" = yes ; then
12564 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12565 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12566 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12567 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12571 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12573 # Is the header compilable?
12574 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12575 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12576 cat >conftest.$ac_ext <<_ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 $ac_includes_default
12583 #include <libxml/parser.h>
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12589 *) ac_try_echo
=$ac_try;;
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_compile") 2>conftest.er1
12594 grep -v '^ *+' conftest.er1
>conftest.err
12596 cat conftest.err
>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && {
12599 test -z "$ac_c_werror_flag" ||
12600 test ! -s conftest.err
12601 } && test -s conftest.
$ac_objext; then
12602 ac_header_compiler
=yes
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.
$ac_ext >&5
12607 ac_header_compiler
=no
12610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12612 echo "${ECHO_T}$ac_header_compiler" >&6; }
12614 # Is the header present?
12615 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12616 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12617 cat >conftest.
$ac_ext <<_ACEOF
12620 cat confdefs.h
>>conftest.
$ac_ext
12621 cat >>conftest.
$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 #include <libxml/parser.h>
12625 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12626 case "(($ac_try" in
12627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } >/dev/null && {
12638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12641 ac_header_preproc=yes
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_header_preproc=no
12649 rm -f conftest.err conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12651 echo "${ECHO_T}$ac_header_preproc" >&6; }
12653 # So? What about this header?
12654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12656 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12657 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12659 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12660 ac_header_preproc=yes
12663 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12664 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12666 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12668 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12670 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12672 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12674 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12676 ## ---------------------------------------- ##
12677 ## Report this to pgsql-bugs@postgresql.org ##
12678 ## ---------------------------------------- ##
12680 ) | sed "s/^/$as_me: WARNING: /" >&2
12683 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12684 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12685 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_cv_header_libxml_parser_h=$ac_header_preproc
12690 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12691 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12694 if test $ac_cv_header_libxml_parser_h = yes; then
12697 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12698 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12699 { (exit 1); exit 1; }; }
12705 if test "$with_libxslt" = yes ; then
12706 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12707 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12708 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12709 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12713 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12715 # Is the header compilable?
12716 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12717 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12718 cat >conftest.$ac_ext <<_ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 #include <libxslt/xslt.h>
12727 rm -f conftest.$ac_objext
12728 if { (ac_try="$ac_compile"
12729 case "(($ac_try" in
12730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12731 *) ac_try_echo
=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_compile") 2>conftest.er1
12736 grep -v '^ *+' conftest.er1
>conftest.err
12738 cat conftest.err
>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && {
12741 test -z "$ac_c_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest.
$ac_objext; then
12744 ac_header_compiler
=yes
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.
$ac_ext >&5
12749 ac_header_compiler
=no
12752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12754 echo "${ECHO_T}$ac_header_compiler" >&6; }
12756 # Is the header present?
12757 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12758 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12759 cat >conftest.
$ac_ext <<_ACEOF
12762 cat confdefs.h
>>conftest.
$ac_ext
12763 cat >>conftest.
$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 #include <libxslt/xslt.h>
12767 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12768 case "(($ac_try" in
12769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12775 grep -v '^ *+' conftest.er1 >conftest.err
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } >/dev/null && {
12780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12783 ac_header_preproc=yes
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_header_preproc=no
12791 rm -f conftest.err conftest.$ac_ext
12792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12793 echo "${ECHO_T}$ac_header_preproc" >&6; }
12795 # So? What about this header?
12796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12798 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12799 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12801 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12802 ac_header_preproc=yes
12805 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12806 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12808 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12810 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12812 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12814 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12816 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12818 ## ---------------------------------------- ##
12819 ## Report this to pgsql-bugs@postgresql.org ##
12820 ## ---------------------------------------- ##
12822 ) | sed "s/^/$as_me: WARNING: /" >&2
12825 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12826 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12827 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12832 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12833 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12836 if test $ac_cv_header_libxslt_xslt_h = yes; then
12839 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12840 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12841 { (exit 1); exit 1; }; }
12847 if test "$with_ldap" = yes ; then
12848 if test "$PORTNAME" != "win32"; then
12850 for ac_header in ldap.h
12852 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 ac_res=`eval echo '${'$as_ac_Header'}'`
12860 { echo "$as_me:$LINENO: result: $ac_res" >&5
12861 echo "${ECHO_T}$ac_res" >&6; }
12863 # Is the header compilable?
12864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12866 cat >conftest.$ac_ext <<_ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 $ac_includes_default
12873 #include <$ac_header>
12875 rm -f conftest.$ac_objext
12876 if { (ac_try="$ac_compile"
12877 case "(($ac_try" in
12878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12879 *) ac_try_echo
=$ac_try;;
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_compile") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1
>conftest.err
12886 cat conftest.err
>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } && {
12889 test -z "$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12891 } && test -s conftest.
$ac_objext; then
12892 ac_header_compiler
=yes
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.
$ac_ext >&5
12897 ac_header_compiler
=no
12900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12902 echo "${ECHO_T}$ac_header_compiler" >&6; }
12904 # Is the header present?
12905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12907 cat >conftest.
$ac_ext <<_ACEOF
12910 cat confdefs.h
>>conftest.
$ac_ext
12911 cat >>conftest.
$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 #include <$ac_header>
12915 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12916 case "(($ac_try" in
12917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12923 grep -v '^ *+' conftest.er1 >conftest.err
12925 cat conftest.err >&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } >/dev/null && {
12928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12929 test ! -s conftest.err
12931 ac_header_preproc=yes
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_header_preproc=no
12939 rm -f conftest.err conftest.$ac_ext
12940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12941 echo "${ECHO_T}$ac_header_preproc" >&6; }
12943 # So? What about this header?
12944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12950 ac_header_preproc=yes
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12966 ## ---------------------------------------- ##
12967 ## Report this to pgsql-bugs@postgresql.org ##
12968 ## ---------------------------------------- ##
12970 ) | sed "s/^/$as_me: WARNING: /" >&2
12973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 eval "$as_ac_Header=\$ac_header_preproc"
12980 ac_res=`eval echo '${'$as_ac_Header'}'`
12981 { echo "$as_me:$LINENO: result: $ac_res" >&5
12982 echo "${ECHO_T}$ac_res" >&6; }
12985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12986 cat >>confdefs.h <<_ACEOF
12987 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12991 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12992 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12993 { (exit 1); exit 1; }; }
13000 for ac_header in winldap.h
13002 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 $ac_includes_default
13015 #include <windows.h>
13018 #include <$ac_header>
13020 rm -f conftest.$ac_objext
13021 if { (ac_try="$ac_compile"
13022 case "(($ac_try" in
13023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13024 *) ac_try_echo
=$ac_try;;
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_compile") 2>conftest.er1
13029 grep -v '^ *+' conftest.er1
>conftest.err
13031 cat conftest.err
>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } && {
13034 test -z "$ac_c_werror_flag" ||
13035 test ! -s conftest.err
13036 } && test -s conftest.
$ac_objext; then
13037 eval "$as_ac_Header=yes"
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.
$ac_ext >&5
13042 eval "$as_ac_Header=no"
13045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13047 ac_res
=`eval echo '${'$as_ac_Header'}'`
13048 { echo "$as_me:$LINENO: result: $ac_res" >&5
13049 echo "${ECHO_T}$ac_res" >&6; }
13050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13051 cat >>confdefs.h
<<_ACEOF
13052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13056 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13057 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13058 { (exit 1); exit 1; }; }
13066 if test "$with_bonjour" = yes ; then
13067 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13068 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13069 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13070 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13074 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13076 # Is the header compilable?
13077 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13078 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
13079 cat >conftest.
$ac_ext <<_ACEOF
13082 cat confdefs.h
>>conftest.
$ac_ext
13083 cat >>conftest.
$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 $ac_includes_default
13086 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13088 rm -f conftest.
$ac_objext
13089 if { (ac_try
="$ac_compile"
13090 case "(($ac_try" in
13091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_compile") 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } && {
13102 test -z "$ac_c_werror_flag" ||
13103 test ! -s conftest.err
13104 } && test -s conftest.$ac_objext; then
13105 ac_header_compiler=yes
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 ac_header_compiler=no
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13115 echo "${ECHO_T}$ac_header_compiler" >&6; }
13117 # Is the header present?
13118 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13119 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13120 cat >conftest.$ac_ext <<_ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13128 if { (ac_try="$ac_cpp conftest.$ac_ext"
13129 case "(($ac_try" in
13130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13131 *) ac_try_echo
=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1
>conftest.err
13138 cat conftest.err
>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } >/dev
/null
&& {
13141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13142 test ! -s conftest.err
13144 ac_header_preproc
=yes
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.
$ac_ext >&5
13149 ac_header_preproc
=no
13152 rm -f conftest.err conftest.
$ac_ext
13153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13154 echo "${ECHO_T}$ac_header_preproc" >&6; }
13156 # So? What about this header?
13157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13159 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13160 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13161 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13162 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13163 ac_header_preproc
=yes
13166 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13169 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13171 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13173 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13175 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13177 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13179 ## ---------------------------------------- ##
13180 ## Report this to pgsql-bugs@postgresql.org ##
13181 ## ---------------------------------------- ##
13183 ) |
sed "s/^/$as_me: WARNING: /" >&2
13186 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13187 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13188 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h
=$ac_header_preproc
13193 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13194 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13197 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13200 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13201 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13202 { (exit 1); exit 1; }; }
13208 # for contrib/uuid-ossp
13209 if test "$with_ossp_uuid" = yes ; then
13211 for ac_header
in ossp
/uuid.h
13213 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13214 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13217 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_res
=`eval echo '${'$as_ac_Header'}'`
13221 { echo "$as_me:$LINENO: result: $ac_res" >&5
13222 echo "${ECHO_T}$ac_res" >&6; }
13224 # Is the header compilable?
13225 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13227 cat >conftest.
$ac_ext <<_ACEOF
13230 cat confdefs.h
>>conftest.
$ac_ext
13231 cat >>conftest.
$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 $ac_includes_default
13234 #include <$ac_header>
13236 rm -f conftest.
$ac_objext
13237 if { (ac_try
="$ac_compile"
13238 case "(($ac_try" in
13239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_compile") 2>conftest.er1
13245 grep -v '^ *+' conftest.er1 >conftest.err
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } && {
13250 test -z "$ac_c_werror_flag" ||
13251 test ! -s conftest.err
13252 } && test -s conftest.$ac_objext; then
13253 ac_header_compiler=yes
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13258 ac_header_compiler=no
13261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13263 echo "${ECHO_T}$ac_header_compiler" >&6; }
13265 # Is the header present?
13266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13268 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <$ac_header>
13276 if { (ac_try="$ac_cpp conftest.$ac_ext"
13277 case "(($ac_try" in
13278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13279 *) ac_try_echo
=$ac_try;;
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13284 grep -v '^ *+' conftest.er1
>conftest.err
13286 cat conftest.err
>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } >/dev
/null
&& {
13289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13290 test ! -s conftest.err
13292 ac_header_preproc
=yes
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.
$ac_ext >&5
13297 ac_header_preproc
=no
13300 rm -f conftest.err conftest.
$ac_ext
13301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13302 echo "${ECHO_T}$ac_header_preproc" >&6; }
13304 # So? What about this header?
13305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13311 ac_header_preproc
=yes
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13327 ## ---------------------------------------- ##
13328 ## Report this to pgsql-bugs@postgresql.org ##
13329 ## ---------------------------------------- ##
13331 ) |
sed "s/^/$as_me: WARNING: /" >&2
13334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13336 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 eval "$as_ac_Header=\$ac_header_preproc"
13341 ac_res
=`eval echo '${'$as_ac_Header'}'`
13342 { echo "$as_me:$LINENO: result: $ac_res" >&5
13343 echo "${ECHO_T}$ac_res" >&6; }
13346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13347 cat >>confdefs.h
<<_ACEOF
13348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13354 for ac_header
in uuid.h
13356 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13357 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13360 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_res
=`eval echo '${'$as_ac_Header'}'`
13364 { echo "$as_me:$LINENO: result: $ac_res" >&5
13365 echo "${ECHO_T}$ac_res" >&6; }
13367 # Is the header compilable?
13368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13370 cat >conftest.
$ac_ext <<_ACEOF
13373 cat confdefs.h
>>conftest.
$ac_ext
13374 cat >>conftest.
$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 $ac_includes_default
13377 #include <$ac_header>
13379 rm -f conftest.
$ac_objext
13380 if { (ac_try
="$ac_compile"
13381 case "(($ac_try" in
13382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_compile") 2>conftest.er1
13388 grep -v '^ *+' conftest.er1 >conftest.err
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && {
13393 test -z "$ac_c_werror_flag" ||
13394 test ! -s conftest.err
13395 } && test -s conftest.$ac_objext; then
13396 ac_header_compiler=yes
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_header_compiler=no
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13406 echo "${ECHO_T}$ac_header_compiler" >&6; }
13408 # Is the header present?
13409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13410 echo $ECHO_N "checking $ac_header presence... $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. */
13417 #include <$ac_header>
13419 if { (ac_try="$ac_cpp conftest.$ac_ext"
13420 case "(($ac_try" in
13421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13422 *) ac_try_echo
=$ac_try;;
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13427 grep -v '^ *+' conftest.er1
>conftest.err
13429 cat conftest.err
>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } >/dev
/null
&& {
13432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13433 test ! -s conftest.err
13435 ac_header_preproc
=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.
$ac_ext >&5
13440 ac_header_preproc
=no
13443 rm -f conftest.err conftest.
$ac_ext
13444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13445 echo "${ECHO_T}$ac_header_preproc" >&6; }
13447 # So? What about this header?
13448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13454 ac_header_preproc
=yes
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13470 ## ---------------------------------------- ##
13471 ## Report this to pgsql-bugs@postgresql.org ##
13472 ## ---------------------------------------- ##
13474 ) |
sed "s/^/$as_me: WARNING: /" >&2
13477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13479 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 eval "$as_ac_Header=\$ac_header_preproc"
13484 ac_res
=`eval echo '${'$as_ac_Header'}'`
13485 { echo "$as_me:$LINENO: result: $ac_res" >&5
13486 echo "${ECHO_T}$ac_res" >&6; }
13489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13490 cat >>confdefs.h
<<_ACEOF
13491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13495 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13496 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13497 { (exit 1); exit 1; }; }
13510 ## Types, structures, compiler characteristics
13513 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13514 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13515 if test "${ac_cv_c_bigendian+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 # See if sys/param.h defines the BYTE_ORDER macro.
13519 cat >conftest.
$ac_ext <<_ACEOF
13522 cat confdefs.h
>>conftest.
$ac_ext
13523 cat >>conftest.
$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 #include <sys/types.h>
13526 #include <sys/param.h>
13531 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13532 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13533 bogus endian macros
13540 rm -f conftest.
$ac_objext
13541 if { (ac_try
="$ac_compile"
13542 case "(($ac_try" in
13543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_compile") 2>conftest.er1
13549 grep -v '^ *+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest.$ac_objext; then
13557 # It does; now see whether it defined to BIG_ENDIAN or not.
13558 cat >conftest.$ac_ext <<_ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 #include <sys/types.h>
13565 #include <sys/param.h>
13570 #if BYTE_ORDER != BIG_ENDIAN
13578 rm -f conftest.$ac_objext
13579 if { (ac_try="$ac_compile"
13580 case "(($ac_try" in
13581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13582 *) ac_try_echo
=$ac_try;;
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_compile") 2>conftest.er1
13587 grep -v '^ *+' conftest.er1
>conftest.err
13589 cat conftest.err
>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } && {
13592 test -z "$ac_c_werror_flag" ||
13593 test ! -s conftest.err
13594 } && test -s conftest.
$ac_objext; then
13595 ac_cv_c_bigendian
=yes
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.
$ac_ext >&5
13600 ac_cv_c_bigendian
=no
13603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.
$ac_ext >&5
13608 # It does not; compile a test program.
13609 if test "$cross_compiling" = yes; then
13610 # try to guess the endianness by grepping values into an object file
13611 ac_cv_c_bigendian
=unknown
13612 cat >conftest.
$ac_ext <<_ACEOF
13615 cat confdefs.h
>>conftest.
$ac_ext
13616 cat >>conftest.
$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13619 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13620 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13621 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13622 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13623 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13627 _ascii (); _ebcdic ();
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 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13650 ac_cv_c_bigendian=yes
13652 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13653 if test "$ac_cv_c_bigendian" = unknown; then
13654 ac_cv_c_bigendian=no
13656 # finding both strings is unlikely to happen, but who knows?
13657 ac_cv_c_bigendian=unknown
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 $ac_includes_default
13680 /* Are we little or big endian? From Harbison&Steele. */
13684 char c[sizeof (long int)];
13687 return u.c[sizeof (long int) - 1] == 1;
13693 rm -f conftest$ac_exeext
13694 if { (ac_try="$ac_link"
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_link") 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13704 { (case "(($ac_try" in
13705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_cv_c_bigendian=no
13715 echo "$as_me: program exited with status $ac_status" >&5
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ( exit $ac_status )
13720 ac_cv_c_bigendian=yes
13722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13731 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13732 case $ac_cv_c_bigendian in
13735 cat >>confdefs.h <<\_ACEOF
13736 #define WORDS_BIGENDIAN 1
13742 { { echo "$as_me:$LINENO: error: unknown endianness
13743 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13744 echo "$as_me: error: unknown endianness
13745 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13746 { (exit 1); exit 1; }; } ;;
13749 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13750 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13751 if test "${ac_cv_c_const+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13764 /* FIXME: Include the comments suggested by Paul. */
13765 #ifndef __cplusplus
13766 /* Ultrix mips cc rejects this. */
13767 typedef int charset[2];
13769 /* SunOS 4.1.1 cc rejects this. */
13770 char const *const *pcpcc;
13772 /* NEC SVR4.0.2 mips cc rejects this. */
13773 struct point {int x, y;};
13774 static struct point const zero = {0,0};
13775 /* AIX XL C 1.02.0.0 rejects this.
13776 It does not let you subtract one const X* pointer from another in
13777 an arm of an if-expression whose if-part is not a constant
13779 const char *g = "string";
13780 pcpcc = &g + (g ? g-g : 0);
13781 /* HPUX 7.0 cc rejects these. */
13783 ppc = (char**) pcpcc;
13784 pcpcc = (char const *const *) ppc;
13785 { /* SCO 3.2v4 cc rejects this. */
13787 char const *s = 0 ? (char *) 0 : (char const *) 0;
13792 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13793 int x[] = {25, 17};
13794 const int *foo = &x[0];
13797 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13798 typedef const int *iptr;
13802 { /* AIX XL C 1.02.0.0 rejects this saying
13803 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13804 struct s { int j; const int *ap[3]; };
13805 struct s *b; b->j = 5;
13807 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13808 const int foo = 10;
13809 if (!foo) return 0;
13811 return !cs[0] && !zero.x;
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13822 *) ac_try_echo
=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_compile") 2>conftest.er1
13827 grep -v '^ *+' conftest.er1
>conftest.err
13829 cat conftest.err
>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest.
$ac_objext; then
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.
$ac_ext >&5
13843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13845 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13846 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13847 if test $ac_cv_c_const = no
; then
13849 cat >>confdefs.h
<<\_ACEOF
13855 { echo "$as_me:$LINENO: checking for inline" >&5
13856 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13857 if test "${ac_cv_c_inline+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13861 for ac_kw
in inline __inline__ __inline
; do
13862 cat >conftest.
$ac_ext <<_ACEOF
13865 cat confdefs.h
>>conftest.
$ac_ext
13866 cat >>conftest.
$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 #ifndef __cplusplus
13870 static $ac_kw foo_t static_foo () {return 0; }
13871 $ac_kw foo_t foo () {return 0; }
13875 rm -f conftest.
$ac_objext
13876 if { (ac_try
="$ac_compile"
13877 case "(($ac_try" in
13878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13892 ac_cv_c_inline=$ac_kw
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901 test "$ac_cv_c_inline" != no && break
13905 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13906 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13909 case $ac_cv_c_inline in
13912 case $ac_cv_c_inline in
13914 *) ac_val=$ac_cv_c_inline;;
13916 cat >>confdefs.h <<_ACEOF
13917 #ifndef __cplusplus
13918 #define inline $ac_val
13924 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13925 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13926 if test "${ac_cv_c_stringize+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13937 char *s = x(teststring);
13939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13940 $EGREP "#teststring" >/dev/null 2>&1; then
13941 ac_cv_c_stringize=no
13943 ac_cv_c_stringize=yes
13948 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13949 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13950 if test $ac_cv_c_stringize = yes; then
13952 cat >>confdefs.h <<\_ACEOF
13953 #define HAVE_STRINGIZE 1
13958 { echo "$as_me:$LINENO: checking for signed types" >&5
13959 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13960 if test "${pgac_cv_c_signed+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13963 cat >conftest.$ac_ext <<_ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13973 signed char c; signed short s; signed int i;
13978 rm -f conftest.$ac_objext
13979 if { (ac_try="$ac_compile"
13980 case "(($ac_try" in
13981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13982 *) ac_try_echo
=$ac_try;;
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_compile") 2>conftest.er1
13987 grep -v '^ *+' conftest.er1
>conftest.err
13989 cat conftest.err
>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } && {
13992 test -z "$ac_c_werror_flag" ||
13993 test ! -s conftest.err
13994 } && test -s conftest.
$ac_objext; then
13995 pgac_cv_c_signed
=yes
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.
$ac_ext >&5
14000 pgac_cv_c_signed
=no
14003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14005 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14006 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
14007 if test x
"$pgac_cv_c_signed" = xno
; then
14009 cat >>confdefs.h
<<\_ACEOF
14014 { echo "$as_me:$LINENO: checking for working volatile" >&5
14015 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14016 if test "${ac_cv_c_volatile+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 cat >conftest.
$ac_ext <<_ACEOF
14022 cat confdefs.h
>>conftest.
$ac_ext
14023 cat >>conftest.
$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14031 int * volatile y = (int *) 0;
14037 rm -f conftest.
$ac_objext
14038 if { (ac_try
="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14046 grep -v '^ *+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 ac_cv_c_volatile=yes
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 ac_cv_c_volatile=no
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14065 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
14066 if test $ac_cv_c_volatile = no; then
14068 cat >>confdefs.h <<\_ACEOF
14074 { echo "$as_me:$LINENO: checking for __func__" >&5
14075 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
14076 if test "${pgac_cv_funcname_func_support+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 cat >conftest.$ac_ext <<_ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14089 printf("%s\n", __func__);
14094 rm -f conftest.$ac_objext
14095 if { (ac_try="$ac_compile"
14096 case "(($ac_try" in
14097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14098 *) ac_try_echo
=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_compile") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1
>conftest.err
14105 cat conftest.err
>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest.
$ac_objext; then
14111 pgac_cv_funcname_func_support
=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.
$ac_ext >&5
14116 pgac_cv_funcname_func_support
=no
14119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14121 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14122 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14123 if test x
"$pgac_cv_funcname_func_support" = xyes
; then
14125 cat >>confdefs.h
<<\_ACEOF
14126 #define HAVE_FUNCNAME__FUNC 1
14130 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14131 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14132 if test "${pgac_cv_funcname_function_support+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 cat >conftest.
$ac_ext <<_ACEOF
14138 cat confdefs.h
>>conftest.
$ac_ext
14139 cat >>conftest.
$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14145 printf("%s\n", __FUNCTION__);
14150 rm -f conftest.
$ac_objext
14151 if { (ac_try
="$ac_compile"
14152 case "(($ac_try" in
14153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_compile") 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } && {
14164 test -z "$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14166 } && test -s conftest.$ac_objext; then
14167 pgac_cv_funcname_function_support=yes
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 pgac_cv_funcname_function_support=no
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14178 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14179 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_FUNCNAME__FUNCTION 1
14187 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14188 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14189 if test "${ac_cv_struct_tm+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14192 cat >conftest.$ac_ext <<_ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 #include <sys/types.h>
14205 int *p = &tm.tm_sec;
14211 rm -f conftest.$ac_objext
14212 if { (ac_try="$ac_compile"
14213 case "(($ac_try" in
14214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14215 *) ac_try_echo
=$ac_try;;
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_compile") 2>conftest.er1
14220 grep -v '^ *+' conftest.er1
>conftest.err
14222 cat conftest.err
>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } && {
14225 test -z "$ac_c_werror_flag" ||
14226 test ! -s conftest.err
14227 } && test -s conftest.
$ac_objext; then
14228 ac_cv_struct_tm
=time.h
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.
$ac_ext >&5
14233 ac_cv_struct_tm
=sys
/time.h
14236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14238 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14239 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14240 if test $ac_cv_struct_tm = sys
/time.h
; then
14242 cat >>confdefs.h
<<\_ACEOF
14243 #define TM_IN_SYS_TIME 1
14248 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14249 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14250 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 cat >conftest.
$ac_ext <<_ACEOF
14256 cat confdefs.h
>>conftest.
$ac_ext
14257 cat >>conftest.
$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 #include <sys/types.h>
14260 #include <$ac_cv_struct_tm>
14266 static struct tm ac_aggr;
14267 if (ac_aggr.tm_zone)
14273 rm -f conftest.
$ac_objext
14274 if { (ac_try
="$ac_compile"
14275 case "(($ac_try" in
14276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_compile") 2>conftest.er1
14282 grep -v '^ *+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } && {
14287 test -z "$ac_c_werror_flag" ||
14288 test ! -s conftest.err
14289 } && test -s conftest.$ac_objext; then
14290 ac_cv_member_struct_tm_tm_zone=yes
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 #include <sys/types.h>
14302 #include <$ac_cv_struct_tm>
14308 static struct tm ac_aggr;
14309 if (sizeof ac_aggr.tm_zone)
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14319 *) ac_try_echo
=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_compile") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1
>conftest.err
14326 cat conftest.err
>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest.
$ac_objext; then
14332 ac_cv_member_struct_tm_tm_zone
=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.
$ac_ext >&5
14337 ac_cv_member_struct_tm_tm_zone
=no
14340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14345 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14346 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14347 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14349 cat >>confdefs.h
<<_ACEOF
14350 #define HAVE_STRUCT_TM_TM_ZONE 1
14356 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14358 cat >>confdefs.h
<<\_ACEOF
14359 #define HAVE_TM_ZONE 1
14363 { echo "$as_me:$LINENO: checking for tzname" >&5
14364 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14365 if test "${ac_cv_var_tzname+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 cat >conftest.
$ac_ext <<_ACEOF
14371 cat confdefs.h
>>conftest.
$ac_ext
14372 cat >>conftest.
$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14375 #ifndef tzname /* For SGI. */
14376 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14387 rm -f conftest.
$ac_objext conftest
$ac_exeext
14388 if { (ac_try
="$ac_link"
14389 case "(($ac_try" in
14390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_link") 2>conftest.er1
14396 grep -v '^ *+' conftest.er1 >conftest.err
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } && {
14401 test -z "$ac_c_werror_flag" ||
14402 test ! -s conftest.err
14403 } && test -s conftest$ac_exeext &&
14404 $as_test_x conftest$ac_exeext; then
14405 ac_cv_var_tzname=yes
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_cv_var_tzname=no
14413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14414 conftest$ac_exeext conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14417 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14418 if test $ac_cv_var_tzname = yes; then
14420 cat >>confdefs.h <<\_ACEOF
14421 #define HAVE_TZNAME 1
14426 { echo "$as_me:$LINENO: checking for union semun" >&5
14427 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14428 if test "${ac_cv_type_union_semun+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 cat >conftest.$ac_ext <<_ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 #include <sys/types.h>
14438 #include <sys/ipc.h>
14439 #include <sys/sem.h>
14441 typedef union semun ac__type_new_;
14445 if ((ac__type_new_ *) 0)
14447 if (sizeof (ac__type_new_))
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14457 *) ac_try_echo
=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14462 grep -v '^ *+' conftest.er1
>conftest.err
14464 cat conftest.err
>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest.
$ac_objext; then
14470 ac_cv_type_union_semun
=yes
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.
$ac_ext >&5
14475 ac_cv_type_union_semun
=no
14478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14480 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14481 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14482 if test $ac_cv_type_union_semun = yes; then
14484 cat >>confdefs.h
<<_ACEOF
14485 #define HAVE_UNION_SEMUN 1
14491 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14492 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14493 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 cat >conftest.
$ac_ext <<_ACEOF
14499 cat confdefs.h
>>conftest.
$ac_ext
14500 cat >>conftest.
$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 #include <sys/types.h>
14503 #ifdef HAVE_SYS_UN_H
14504 #include <sys/un.h>
14508 typedef struct sockaddr_un ac__type_new_;
14512 if ((ac__type_new_ *) 0)
14514 if (sizeof (ac__type_new_))
14520 rm -f conftest.
$ac_objext
14521 if { (ac_try
="$ac_compile"
14522 case "(($ac_try" in
14523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_compile") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && {
14534 test -z "$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest.$ac_objext; then
14537 ac_cv_type_struct_sockaddr_un=yes
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 ac_cv_type_struct_sockaddr_un=no
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14548 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14549 if test $ac_cv_type_struct_sockaddr_un = yes; then
14551 cat >>confdefs.h <<_ACEOF
14552 #define HAVE_STRUCT_SOCKADDR_UN 1
14556 cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_UNIX_SOCKETS 1
14562 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14563 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14564 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 #include <sys/types.h>
14574 #ifdef HAVE_SYS_SOCKET_H
14575 #include <sys/socket.h>
14579 typedef struct sockaddr_storage ac__type_new_;
14583 if ((ac__type_new_ *) 0)
14585 if (sizeof (ac__type_new_))
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14595 *) ac_try_echo
=$ac_try;;
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_compile") 2>conftest.er1
14600 grep -v '^ *+' conftest.er1
>conftest.err
14602 cat conftest.err
>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } && {
14605 test -z "$ac_c_werror_flag" ||
14606 test ! -s conftest.err
14607 } && test -s conftest.
$ac_objext; then
14608 ac_cv_type_struct_sockaddr_storage
=yes
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.
$ac_ext >&5
14613 ac_cv_type_struct_sockaddr_storage
=no
14616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14618 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14619 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14620 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14622 cat >>confdefs.h
<<_ACEOF
14623 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14629 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14630 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14631 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 cat >conftest.
$ac_ext <<_ACEOF
14637 cat confdefs.h
>>conftest.
$ac_ext
14638 cat >>conftest.
$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14640 #include <sys/types.h>
14641 #ifdef HAVE_SYS_SOCKET_H
14642 #include <sys/socket.h>
14649 static struct sockaddr_storage ac_aggr;
14650 if (ac_aggr.ss_family)
14656 rm -f conftest.
$ac_objext
14657 if { (ac_try
="$ac_compile"
14658 case "(($ac_try" in
14659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_compile") 2>conftest.er1
14665 grep -v '^ *+' conftest.er1 >conftest.err
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
14673 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/types.h>
14685 #ifdef HAVE_SYS_SOCKET_H
14686 #include <sys/socket.h>
14693 static struct sockaddr_storage ac_aggr;
14694 if (sizeof ac_aggr.ss_family)
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14704 *) ac_try_echo
=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_compile") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1
>conftest.err
14711 cat conftest.err
>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest.
$ac_objext; then
14717 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.
$ac_ext >&5
14722 ac_cv_member_struct_sockaddr_storage_ss_family
=no
14725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14731 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14732 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14734 cat >>confdefs.h
<<_ACEOF
14735 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14740 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14741 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14742 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 cat >conftest.
$ac_ext <<_ACEOF
14748 cat confdefs.h
>>conftest.
$ac_ext
14749 cat >>conftest.
$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 #include <sys/types.h>
14752 #ifdef HAVE_SYS_SOCKET_H
14753 #include <sys/socket.h>
14760 static struct sockaddr_storage ac_aggr;
14761 if (ac_aggr.__ss_family)
14767 rm -f conftest.
$ac_objext
14768 if { (ac_try
="$ac_compile"
14769 case "(($ac_try" in
14770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_compile") 2>conftest.er1
14776 grep -v '^ *+' conftest.er1 >conftest.err
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest.$ac_objext; then
14784 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <sys/types.h>
14796 #ifdef HAVE_SYS_SOCKET_H
14797 #include <sys/socket.h>
14804 static struct sockaddr_storage ac_aggr;
14805 if (sizeof ac_aggr.__ss_family)
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14815 *) ac_try_echo
=$ac_try;;
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_compile") 2>conftest.er1
14820 grep -v '^ *+' conftest.er1
>conftest.err
14822 cat conftest.err
>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } && {
14825 test -z "$ac_c_werror_flag" ||
14826 test ! -s conftest.err
14827 } && test -s conftest.
$ac_objext; then
14828 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.
$ac_ext >&5
14833 ac_cv_member_struct_sockaddr_storage___ss_family
=no
14836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14841 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14842 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14843 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14845 cat >>confdefs.h
<<_ACEOF
14846 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14851 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14852 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14853 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 cat >conftest.
$ac_ext <<_ACEOF
14859 cat confdefs.h
>>conftest.
$ac_ext
14860 cat >>conftest.
$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 #include <sys/types.h>
14863 #ifdef HAVE_SYS_SOCKET_H
14864 #include <sys/socket.h>
14871 static struct sockaddr_storage ac_aggr;
14872 if (ac_aggr.ss_len)
14878 rm -f conftest.
$ac_objext
14879 if { (ac_try
="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest.$ac_objext; then
14895 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <sys/types.h>
14907 #ifdef HAVE_SYS_SOCKET_H
14908 #include <sys/socket.h>
14915 static struct sockaddr_storage ac_aggr;
14916 if (sizeof ac_aggr.ss_len)
14922 rm -f conftest.$ac_objext
14923 if { (ac_try="$ac_compile"
14924 case "(($ac_try" in
14925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14926 *) ac_try_echo
=$ac_try;;
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_compile") 2>conftest.er1
14931 grep -v '^ *+' conftest.er1
>conftest.err
14933 cat conftest.err
>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } && {
14936 test -z "$ac_c_werror_flag" ||
14937 test ! -s conftest.err
14938 } && test -s conftest.
$ac_objext; then
14939 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.
$ac_ext >&5
14944 ac_cv_member_struct_sockaddr_storage_ss_len
=no
14947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14952 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14953 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14954 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14956 cat >>confdefs.h
<<_ACEOF
14957 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14962 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14963 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14964 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 cat >conftest.
$ac_ext <<_ACEOF
14970 cat confdefs.h
>>conftest.
$ac_ext
14971 cat >>conftest.
$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <sys/types.h>
14974 #ifdef HAVE_SYS_SOCKET_H
14975 #include <sys/socket.h>
14982 static struct sockaddr_storage ac_aggr;
14983 if (ac_aggr.__ss_len)
14989 rm -f conftest.
$ac_objext
14990 if { (ac_try
="$ac_compile"
14991 case "(($ac_try" in
14992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_compile") 2>conftest.er1
14998 grep -v '^ *+' conftest.er1 >conftest.err
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } && {
15003 test -z "$ac_c_werror_flag" ||
15004 test ! -s conftest.err
15005 } && test -s conftest.$ac_objext; then
15006 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 cat >conftest.$ac_ext <<_ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 #include <sys/types.h>
15018 #ifdef HAVE_SYS_SOCKET_H
15019 #include <sys/socket.h>
15026 static struct sockaddr_storage ac_aggr;
15027 if (sizeof ac_aggr.__ss_len)
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15037 *) ac_try_echo
=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15042 grep -v '^ *+' conftest.er1
>conftest.err
15044 cat conftest.err
>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } && {
15047 test -z "$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 } && test -s conftest.
$ac_objext; then
15050 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.
$ac_ext >&5
15055 ac_cv_member_struct_sockaddr_storage___ss_len
=no
15058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15063 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15064 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15065 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
15067 cat >>confdefs.h
<<_ACEOF
15068 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15073 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15074 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
15075 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 cat >conftest.
$ac_ext <<_ACEOF
15081 cat confdefs.h
>>conftest.
$ac_ext
15082 cat >>conftest.
$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15084 #include <sys/types.h>
15085 #ifdef HAVE_SYS_SOCKET_H
15086 #include <sys/socket.h>
15093 static struct sockaddr ac_aggr;
15094 if (ac_aggr.sa_len)
15100 rm -f conftest.
$ac_objext
15101 if { (ac_try
="$ac_compile"
15102 case "(($ac_try" in
15103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_compile") 2>conftest.er1
15109 grep -v '^ *+' conftest.er1 >conftest.err
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } && {
15114 test -z "$ac_c_werror_flag" ||
15115 test ! -s conftest.err
15116 } && test -s conftest.$ac_objext; then
15117 ac_cv_member_struct_sockaddr_sa_len=yes
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 #include <sys/types.h>
15129 #ifdef HAVE_SYS_SOCKET_H
15130 #include <sys/socket.h>
15137 static struct sockaddr ac_aggr;
15138 if (sizeof ac_aggr.sa_len)
15144 rm -f conftest.$ac_objext
15145 if { (ac_try="$ac_compile"
15146 case "(($ac_try" in
15147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15148 *) ac_try_echo
=$ac_try;;
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_compile") 2>conftest.er1
15153 grep -v '^ *+' conftest.er1
>conftest.err
15155 cat conftest.err
>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } && {
15158 test -z "$ac_c_werror_flag" ||
15159 test ! -s conftest.err
15160 } && test -s conftest.
$ac_objext; then
15161 ac_cv_member_struct_sockaddr_sa_len
=yes
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.
$ac_ext >&5
15166 ac_cv_member_struct_sockaddr_sa_len
=no
15169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15175 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15176 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15178 cat >>confdefs.h
<<_ACEOF
15179 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15185 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15186 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15187 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 cat >conftest.
$ac_ext <<_ACEOF
15193 cat confdefs.h
>>conftest.
$ac_ext
15194 cat >>conftest.
$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 #include <sys/types.h>
15197 #include <sys/socket.h>
15201 typedef struct addrinfo ac__type_new_;
15205 if ((ac__type_new_ *) 0)
15207 if (sizeof (ac__type_new_))
15213 rm -f conftest.
$ac_objext
15214 if { (ac_try
="$ac_compile"
15215 case "(($ac_try" in
15216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_compile") 2>conftest.er1
15222 grep -v '^ *+' conftest.er1 >conftest.err
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } && {
15227 test -z "$ac_c_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest.$ac_objext; then
15230 ac_cv_type_struct_addrinfo=yes
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_cv_type_struct_addrinfo=no
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15241 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15242 if test $ac_cv_type_struct_addrinfo = yes; then
15244 cat >>confdefs.h <<_ACEOF
15245 #define HAVE_STRUCT_ADDRINFO 1
15252 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15253 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15254 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 cat >conftest.$ac_ext <<_ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15263 #include <sys/param.h>
15264 #include <sys/types.h>
15265 #include <sys/socket.h>
15266 #include <sys/ucred.h>
15268 typedef struct cmsgcred ac__type_new_;
15272 if ((ac__type_new_ *) 0)
15274 if (sizeof (ac__type_new_))
15280 rm -f conftest.$ac_objext
15281 if { (ac_try="$ac_compile"
15282 case "(($ac_try" in
15283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15284 *) ac_try_echo
=$ac_try;;
15286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287 (eval "$ac_compile") 2>conftest.er1
15289 grep -v '^ *+' conftest.er1
>conftest.err
15291 cat conftest.err
>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } && {
15294 test -z "$ac_c_werror_flag" ||
15295 test ! -s conftest.err
15296 } && test -s conftest.
$ac_objext; then
15297 ac_cv_type_struct_cmsgcred
=yes
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.
$ac_ext >&5
15302 ac_cv_type_struct_cmsgcred
=no
15305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15307 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15308 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15309 if test $ac_cv_type_struct_cmsgcred = yes; then
15311 cat >>confdefs.h
<<_ACEOF
15312 #define HAVE_STRUCT_CMSGCRED 1
15317 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15318 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15319 if test "${ac_cv_type_struct_fcred+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 cat >conftest.
$ac_ext <<_ACEOF
15325 cat confdefs.h
>>conftest.
$ac_ext
15326 cat >>conftest.
$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 #include <sys/param.h>
15329 #include <sys/types.h>
15330 #include <sys/socket.h>
15331 #include <sys/ucred.h>
15333 typedef struct fcred ac__type_new_;
15337 if ((ac__type_new_ *) 0)
15339 if (sizeof (ac__type_new_))
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_type_struct_fcred=yes
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_cv_type_struct_fcred=no
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15373 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15374 if test $ac_cv_type_struct_fcred = yes; then
15376 cat >>confdefs.h <<_ACEOF
15377 #define HAVE_STRUCT_FCRED 1
15382 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15383 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15384 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 #include <sys/param.h>
15394 #include <sys/types.h>
15395 #include <sys/socket.h>
15396 #include <sys/ucred.h>
15398 typedef struct sockcred ac__type_new_;
15402 if ((ac__type_new_ *) 0)
15404 if (sizeof (ac__type_new_))
15410 rm -f conftest.$ac_objext
15411 if { (ac_try="$ac_compile"
15412 case "(($ac_try" in
15413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15414 *) ac_try_echo
=$ac_try;;
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417 (eval "$ac_compile") 2>conftest.er1
15419 grep -v '^ *+' conftest.er1
>conftest.err
15421 cat conftest.err
>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest.
$ac_objext; then
15427 ac_cv_type_struct_sockcred
=yes
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.
$ac_ext >&5
15432 ac_cv_type_struct_sockcred
=no
15435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15437 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15438 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15439 if test $ac_cv_type_struct_sockcred = yes; then
15441 cat >>confdefs.h
<<_ACEOF
15442 #define HAVE_STRUCT_SOCKCRED 1
15449 { echo "$as_me:$LINENO: checking for struct option" >&5
15450 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15451 if test "${ac_cv_type_struct_option+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 cat >conftest.
$ac_ext <<_ACEOF
15457 cat confdefs.h
>>conftest.
$ac_ext
15458 cat >>conftest.
$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #ifdef HAVE_GETOPT_H
15461 #include <getopt.h>
15464 typedef struct option ac__type_new_;
15468 if ((ac__type_new_ *) 0)
15470 if (sizeof (ac__type_new_))
15476 rm -f conftest.
$ac_objext
15477 if { (ac_try
="$ac_compile"
15478 case "(($ac_try" in
15479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_compile") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } && {
15490 test -z "$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15492 } && test -s conftest.$ac_objext; then
15493 ac_cv_type_struct_option=yes
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_cv_type_struct_option=no
15501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15504 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15505 if test $ac_cv_type_struct_option = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define HAVE_STRUCT_OPTION 1
15515 if test "$with_zlib" = yes; then
15516 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15517 # did not). While we could work around the lack of z_streamp, it
15518 # seems unwise to encourage people to use such old zlib versions...
15519 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15520 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15521 if test "${ac_cv_type_z_streamp+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 cat >conftest.$ac_ext <<_ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15532 typedef z_streamp ac__type_new_;
15536 if ((ac__type_new_ *) 0)
15538 if (sizeof (ac__type_new_))
15544 rm -f conftest.$ac_objext
15545 if { (ac_try="$ac_compile"
15546 case "(($ac_try" in
15547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15548 *) ac_try_echo
=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_compile") 2>conftest.er1
15553 grep -v '^ *+' conftest.er1
>conftest.err
15555 cat conftest.err
>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } && {
15558 test -z "$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 } && test -s conftest.
$ac_objext; then
15561 ac_cv_type_z_streamp
=yes
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.
$ac_ext >&5
15566 ac_cv_type_z_streamp
=no
15569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15572 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15573 if test $ac_cv_type_z_streamp = yes; then
15576 { { echo "$as_me:$LINENO: error: zlib version is too old
15577 Use --without-zlib to disable zlib support." >&5
15578 echo "$as_me: error: zlib version is too old
15579 Use --without-zlib to disable zlib support." >&2;}
15580 { (exit 1); exit 1; }; }
15585 if test "$with_krb5" = yes; then
15586 # Check for differences between MIT and Heimdal (KTH) releases
15587 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15588 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15589 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 cat >conftest.
$ac_ext <<_ACEOF
15595 cat confdefs.h
>>conftest.
$ac_ext
15596 cat >>conftest.
$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15603 static krb5_ticket ac_aggr;
15604 if (ac_aggr.enc_part2)
15610 rm -f conftest.
$ac_objext
15611 if { (ac_try
="$ac_compile"
15612 case "(($ac_try" in
15613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_compile") 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } && {
15624 test -z "$ac_c_werror_flag" ||
15625 test ! -s conftest.err
15626 } && test -s conftest.$ac_objext; then
15627 ac_cv_member_krb5_ticket_enc_part2=yes
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15643 static krb5_ticket ac_aggr;
15644 if (sizeof ac_aggr.enc_part2)
15650 rm -f conftest.$ac_objext
15651 if { (ac_try="$ac_compile"
15652 case "(($ac_try" in
15653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15654 *) ac_try_echo
=$ac_try;;
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_compile") 2>conftest.er1
15659 grep -v '^ *+' conftest.er1
>conftest.err
15661 cat conftest.err
>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest.
$ac_objext; then
15667 ac_cv_member_krb5_ticket_enc_part2
=yes
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.
$ac_ext >&5
15672 ac_cv_member_krb5_ticket_enc_part2
=no
15675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15680 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15681 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15682 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15684 cat >>confdefs.h
<<_ACEOF
15685 #define HAVE_KRB5_TICKET_ENC_PART2 1
15690 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15691 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15692 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 cat >conftest.
$ac_ext <<_ACEOF
15698 cat confdefs.h
>>conftest.
$ac_ext
15699 cat >>conftest.
$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15706 static krb5_ticket ac_aggr;
15707 if (ac_aggr.client)
15713 rm -f conftest.
$ac_objext
15714 if { (ac_try
="$ac_compile"
15715 case "(($ac_try" in
15716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_compile") 2>conftest.er1
15722 grep -v '^ *+' conftest.er1 >conftest.err
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && {
15727 test -z "$ac_c_werror_flag" ||
15728 test ! -s conftest.err
15729 } && test -s conftest.$ac_objext; then
15730 ac_cv_member_krb5_ticket_client=yes
15732 echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15746 static krb5_ticket ac_aggr;
15747 if (sizeof ac_aggr.client)
15753 rm -f conftest.$ac_objext
15754 if { (ac_try="$ac_compile"
15755 case "(($ac_try" in
15756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15757 *) ac_try_echo
=$ac_try;;
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_compile") 2>conftest.er1
15762 grep -v '^ *+' conftest.er1
>conftest.err
15764 cat conftest.err
>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && {
15767 test -z "$ac_c_werror_flag" ||
15768 test ! -s conftest.err
15769 } && test -s conftest.
$ac_objext; then
15770 ac_cv_member_krb5_ticket_client
=yes
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.
$ac_ext >&5
15775 ac_cv_member_krb5_ticket_client
=no
15778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15783 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15784 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15785 if test $ac_cv_member_krb5_ticket_client = yes; then
15787 cat >>confdefs.h
<<_ACEOF
15788 #define HAVE_KRB5_TICKET_CLIENT 1
15793 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15794 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15795 { (exit 1); exit 1; }; }
15800 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15801 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15802 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 cat >conftest.
$ac_ext <<_ACEOF
15808 cat confdefs.h
>>conftest.
$ac_ext
15809 cat >>conftest.
$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15816 static krb5_error ac_aggr;
15817 if (ac_aggr.text.data)
15823 rm -f conftest.
$ac_objext
15824 if { (ac_try
="$ac_compile"
15825 case "(($ac_try" in
15826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_compile") 2>conftest.er1
15832 grep -v '^ *+' conftest.er1 >conftest.err
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } && {
15837 test -z "$ac_c_werror_flag" ||
15838 test ! -s conftest.err
15839 } && test -s conftest.$ac_objext; then
15840 ac_cv_member_krb5_error_text_data=yes
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 cat >conftest.$ac_ext <<_ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15856 static krb5_error ac_aggr;
15857 if (sizeof ac_aggr.text.data)
15863 rm -f conftest.$ac_objext
15864 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
15880 ac_cv_member_krb5_error_text_data
=yes
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.
$ac_ext >&5
15885 ac_cv_member_krb5_error_text_data
=no
15888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15893 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15894 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15895 if test $ac_cv_member_krb5_error_text_data = yes; then
15897 cat >>confdefs.h
<<_ACEOF
15898 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15903 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15904 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15905 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 cat >conftest.
$ac_ext <<_ACEOF
15911 cat confdefs.h
>>conftest.
$ac_ext
15912 cat >>conftest.
$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15919 static krb5_error ac_aggr;
15920 if (ac_aggr.e_data)
15926 rm -f conftest.
$ac_objext
15927 if { (ac_try
="$ac_compile"
15928 case "(($ac_try" in
15929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_compile") 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest.$ac_objext; then
15943 ac_cv_member_krb5_error_e_data=yes
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15959 static krb5_error ac_aggr;
15960 if (sizeof ac_aggr.e_data)
15966 rm -f conftest.$ac_objext
15967 if { (ac_try="$ac_compile"
15968 case "(($ac_try" in
15969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15970 *) ac_try_echo
=$ac_try;;
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_compile") 2>conftest.er1
15975 grep -v '^ *+' conftest.er1
>conftest.err
15977 cat conftest.err
>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } && {
15980 test -z "$ac_c_werror_flag" ||
15981 test ! -s conftest.err
15982 } && test -s conftest.
$ac_objext; then
15983 ac_cv_member_krb5_error_e_data
=yes
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.
$ac_ext >&5
15988 ac_cv_member_krb5_error_e_data
=no
15991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15996 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15997 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15998 if test $ac_cv_member_krb5_error_e_data = yes; then
16000 cat >>confdefs.h
<<_ACEOF
16001 #define HAVE_KRB5_ERROR_E_DATA 1
16006 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16007 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16008 { (exit 1); exit 1; }; }
16014 # Win32 requires headers to be loaded for __stdcall, so can't use
16015 # AC_CHECK_FUNCS here.
16016 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16017 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
16018 cat >conftest.
$ac_ext <<_ACEOF
16021 cat confdefs.h
>>conftest.
$ac_ext
16022 cat >>conftest.
$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16028 krb5_free_unparsed_name(NULL,NULL);
16033 rm -f conftest.
$ac_objext conftest
$ac_exeext
16034 if { (ac_try
="$ac_link"
16035 case "(($ac_try" in
16036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_link") 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } && {
16047 test -z "$ac_c_werror_flag" ||
16048 test ! -s conftest.err
16049 } && test -s conftest$ac_exeext &&
16050 $as_test_x conftest$ac_exeext; then
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
16056 { echo "$as_me:$LINENO: result: yes" >&5
16057 echo "${ECHO_T}yes" >&6; }
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 { echo "$as_me:$LINENO: result: no" >&5
16063 echo "${ECHO_T}no" >&6; }
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067 conftest$ac_exeext conftest.$ac_ext
16072 ## Functions, global variables
16075 { echo "$as_me:$LINENO: checking for int timezone" >&5
16076 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
16077 if test "${pgac_cv_var_int_timezone+set}" = set; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16092 res = timezone / 60;
16094 res = _timezone / 60;
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16104 *) ac_try_echo
=$ac_try;;
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_link") 2>conftest.er1
16109 grep -v '^ *+' conftest.er1
>conftest.err
16111 cat conftest.err
>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } && {
16114 test -z "$ac_c_werror_flag" ||
16115 test ! -s conftest.err
16116 } && test -s conftest
$ac_exeext &&
16117 $as_test_x conftest
$ac_exeext; then
16118 pgac_cv_var_int_timezone
=yes
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.
$ac_ext >&5
16123 pgac_cv_var_int_timezone
=no
16126 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16127 conftest
$ac_exeext conftest.
$ac_ext
16129 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16130 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16131 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
16133 cat >>confdefs.h
<<\_ACEOF
16134 #define HAVE_INT_TIMEZONE
16138 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16139 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16140 if test "${ac_cv_func_accept_return+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 if test "${ac_cv_func_accept_arg1+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 if test "${ac_cv_func_accept_arg2+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 if test "${ac_cv_func_accept_arg3+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16152 for ac_cv_func_accept_return
in 'int' 'unsigned int PASCAL'; do
16153 for ac_cv_func_accept_arg1
in 'int' 'unsigned int'; do
16154 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16155 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16156 cat >conftest.
$ac_ext <<_ACEOF
16159 cat confdefs.h
>>conftest.
$ac_ext
16160 cat >>conftest.
$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #ifdef HAVE_SYS_TYPES_H
16163 #include <sys/types.h>
16165 #ifdef HAVE_SYS_SOCKET_H
16166 #include <sys/socket.h>
16168 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16177 rm -f conftest.
$ac_objext
16178 if { (ac_try
="$ac_compile"
16179 case "(($ac_try" in
16180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_compile") 2>conftest.er1
16186 grep -v '^ *+' conftest.er1 >conftest.err
16188 cat conftest.err >&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } && {
16191 test -z "$ac_c_werror_flag" ||
16192 test ! -s conftest.err
16193 } && test -s conftest.$ac_objext; then
16194 ac_not_found=no; break 4
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 if test "$ac_not_found" = yes; then
16208 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16209 echo "$as_me: error: could not determine argument types" >&2;}
16210 { (exit 1); exit 1; }; }
16212 if test "$ac_cv_func_accept_arg3" = "void"; then
16213 ac_cv_func_accept_arg3=int
16223 { 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
16224 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16226 cat >>confdefs.h <<_ACEOF
16227 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16231 cat >>confdefs.h <<_ACEOF
16232 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16236 cat >>confdefs.h <<_ACEOF
16237 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16241 cat >>confdefs.h <<_ACEOF
16242 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16246 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16247 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16248 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 #include <sys/time.h>
16261 struct timeval *tp;
16262 struct timezone *tzp;
16263 gettimeofday(tp,tzp);
16268 rm -f conftest.$ac_objext
16269 if { (ac_try="$ac_compile"
16270 case "(($ac_try" in
16271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16272 *) ac_try_echo
=$ac_try;;
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_compile") 2>conftest.er1
16277 grep -v '^ *+' conftest.er1
>conftest.err
16279 cat conftest.err
>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } && {
16282 test -z "$ac_c_werror_flag" ||
16283 test ! -s conftest.err
16284 } && test -s conftest.
$ac_objext; then
16285 pgac_cv_func_gettimeofday_1arg
=no
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.
$ac_ext >&5
16290 pgac_cv_func_gettimeofday_1arg
=yes
16293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16295 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16296 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16297 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
16299 cat >>confdefs.h
<<\_ACEOF
16300 #define GETTIMEOFDAY_1ARG
16328 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
16330 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16333 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 cat >conftest.
$ac_ext <<_ACEOF
16339 cat confdefs.h
>>conftest.
$ac_ext
16340 cat >>conftest.
$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16344 #define $ac_func innocuous_$ac_func
16346 /* System header to define __stub macros and hopefully few prototypes,
16347 which can conflict with char $ac_func (); below.
16348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16349 <limits.h> exists even on freestanding compilers. */
16352 # include <limits.h>
16354 # include <assert.h>
16359 /* Override any GCC internal prototype to avoid an error.
16360 Use char because int might match the return type of a GCC
16361 builtin and then its argument prototype would still apply. */
16366 /* The GNU C library defines this for functions which it implements
16367 to always fail with ENOSYS. Some functions are actually named
16368 something starting with __ and the normal name is an alias. */
16369 #if defined __stub_$ac_func || defined __stub___$ac_func
16376 return $ac_func ();
16381 rm -f conftest.
$ac_objext conftest
$ac_exeext
16382 if { (ac_try
="$ac_link"
16383 case "(($ac_try" in
16384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_link") 2>conftest.er1
16390 grep -v '^ *+' conftest.er1 >conftest.err
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } && {
16395 test -z "$ac_c_werror_flag" ||
16396 test ! -s conftest.err
16397 } && test -s conftest$ac_exeext &&
16398 $as_test_x conftest$ac_exeext; then
16399 eval "$as_ac_var=yes"
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16404 eval "$as_ac_var=no"
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408 conftest$ac_exeext conftest.$ac_ext
16410 ac_res=`eval echo '${'$as_ac_var'}'`
16411 { echo "$as_me:$LINENO: result: $ac_res" >&5
16412 echo "${ECHO_T}$ac_res" >&6; }
16413 if test `eval echo '${'$as_ac_var'}'` = yes; then
16414 cat >>confdefs.h <<_ACEOF
16415 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16422 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
16423 # by calling it, 2009-04-02
16424 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
16425 if test "$PORTNAME" != "solaris"; then
16427 for ac_func in posix_fadvise
16429 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 cat >conftest.$ac_ext <<_ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16443 #define $ac_func innocuous_$ac_func
16445 /* System header to define __stub macros and hopefully few prototypes,
16446 which can conflict with char $ac_func (); below.
16447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16448 <limits.h> exists even on freestanding compilers. */
16451 # include <limits.h>
16453 # include <assert.h>
16458 /* Override any GCC internal prototype to avoid an error.
16459 Use char because int might match the return type of a GCC
16460 builtin and then its argument prototype would still apply. */
16465 /* The GNU C library defines this for functions which it implements
16466 to always fail with ENOSYS. Some functions are actually named
16467 something starting with __ and the normal name is an alias. */
16468 #if defined __stub_$ac_func || defined __stub___$ac_func
16475 return $ac_func ();
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16484 *) ac_try_echo
=$ac_try;;
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>conftest.er1
16489 grep -v '^ *+' conftest.er1
>conftest.err
16491 cat conftest.err
>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } && {
16494 test -z "$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16496 } && test -s conftest
$ac_exeext &&
16497 $as_test_x conftest
$ac_exeext; then
16498 eval "$as_ac_var=yes"
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.
$ac_ext >&5
16503 eval "$as_ac_var=no"
16506 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16507 conftest
$ac_exeext conftest.
$ac_ext
16509 ac_res
=`eval echo '${'$as_ac_var'}'`
16510 { echo "$as_me:$LINENO: result: $ac_res" >&5
16511 echo "${ECHO_T}$ac_res" >&6; }
16512 if test `eval echo '${'$as_ac_var'}'` = yes; then
16513 cat >>confdefs.h
<<_ACEOF
16514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16520 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16521 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16522 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 cat >conftest.
$ac_ext <<_ACEOF
16528 cat confdefs.h
>>conftest.
$ac_ext
16529 cat >>conftest.
$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16536 #ifndef posix_fadvise
16537 (void) posix_fadvise;
16544 rm -f conftest.
$ac_objext
16545 if { (ac_try
="$ac_compile"
16546 case "(($ac_try" in
16547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_compile") 2>conftest.er1
16553 grep -v '^ *+' conftest.er1 >conftest.err
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && {
16558 test -z "$ac_c_werror_flag" ||
16559 test ! -s conftest.err
16560 } && test -s conftest.$ac_objext; then
16561 ac_cv_have_decl_posix_fadvise=yes
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_cv_have_decl_posix_fadvise=no
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16572 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16573 if test $ac_cv_have_decl_posix_fadvise = yes; then
16575 cat >>confdefs.h <<_ACEOF
16576 #define HAVE_DECL_POSIX_FADVISE 1
16581 cat >>confdefs.h <<_ACEOF
16582 #define HAVE_DECL_POSIX_FADVISE 0
16591 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16592 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16593 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16596 cat >conftest.$ac_ext <<_ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include <unistd.h>
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16619 *) ac_try_echo
=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_compile") 2>conftest.er1
16624 grep -v '^ *+' conftest.er1
>conftest.err
16626 cat conftest.err
>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } && {
16629 test -z "$ac_c_werror_flag" ||
16630 test ! -s conftest.err
16631 } && test -s conftest.
$ac_objext; then
16632 ac_cv_have_decl_fdatasync
=yes
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.
$ac_ext >&5
16637 ac_cv_have_decl_fdatasync
=no
16640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16643 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16644 if test $ac_cv_have_decl_fdatasync = yes; then
16646 cat >>confdefs.h
<<_ACEOF
16647 #define HAVE_DECL_FDATASYNC 1
16652 cat >>confdefs.h
<<_ACEOF
16653 #define HAVE_DECL_FDATASYNC 0
16660 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16661 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16662 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 cat >conftest.
$ac_ext <<_ACEOF
16668 cat confdefs.h
>>conftest.
$ac_ext
16669 cat >>conftest.
$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 $ac_includes_default
16683 rm -f conftest.
$ac_objext
16684 if { (ac_try
="$ac_compile"
16685 case "(($ac_try" in
16686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_compile") 2>conftest.er1
16692 grep -v '^ *+' conftest.er1 >conftest.err
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } && {
16697 test -z "$ac_c_werror_flag" ||
16698 test ! -s conftest.err
16699 } && test -s conftest.$ac_objext; then
16700 ac_cv_have_decl_strlcat=yes
16702 echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 ac_cv_have_decl_strlcat=no
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16711 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16712 if test $ac_cv_have_decl_strlcat = yes; then
16714 cat >>confdefs.h <<_ACEOF
16715 #define HAVE_DECL_STRLCAT 1
16720 cat >>confdefs.h <<_ACEOF
16721 #define HAVE_DECL_STRLCAT 0
16726 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16727 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16728 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 cat >conftest.$ac_ext <<_ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 $ac_includes_default
16749 rm -f conftest.$ac_objext
16750 if { (ac_try="$ac_compile"
16751 case "(($ac_try" in
16752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16753 *) ac_try_echo
=$ac_try;;
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_compile") 2>conftest.er1
16758 grep -v '^ *+' conftest.er1
>conftest.err
16760 cat conftest.err
>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } && {
16763 test -z "$ac_c_werror_flag" ||
16764 test ! -s conftest.err
16765 } && test -s conftest.
$ac_objext; then
16766 ac_cv_have_decl_strlcpy
=yes
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.
$ac_ext >&5
16771 ac_cv_have_decl_strlcpy
=no
16774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16776 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16777 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16778 if test $ac_cv_have_decl_strlcpy = yes; then
16780 cat >>confdefs.h
<<_ACEOF
16781 #define HAVE_DECL_STRLCPY 1
16786 cat >>confdefs.h
<<_ACEOF
16787 #define HAVE_DECL_STRLCPY 0
16794 # This is probably only present on Darwin, but may as well check always
16795 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16796 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16797 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 cat >conftest.
$ac_ext <<_ACEOF
16803 cat confdefs.h
>>conftest.
$ac_ext
16804 cat >>conftest.
$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16811 #ifndef F_FULLFSYNC
16812 (void) F_FULLFSYNC;
16819 rm -f conftest.
$ac_objext
16820 if { (ac_try
="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest.$ac_objext; then
16836 ac_cv_have_decl_F_FULLFSYNC=yes
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 ac_cv_have_decl_F_FULLFSYNC=no
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16847 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16848 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16850 cat >>confdefs.h <<_ACEOF
16851 #define HAVE_DECL_F_FULLFSYNC 1
16856 cat >>confdefs.h <<_ACEOF
16857 #define HAVE_DECL_F_FULLFSYNC 0
16866 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16867 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16868 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 $ac_includes_default
16878 #include <netinet/in.h>
16880 typedef struct sockaddr_in6 ac__type_new_;
16884 if ((ac__type_new_ *) 0)
16886 if (sizeof (ac__type_new_))
16892 rm -f conftest.$ac_objext
16893 if { (ac_try="$ac_compile"
16894 case "(($ac_try" in
16895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16896 *) ac_try_echo
=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_compile") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1
>conftest.err
16903 cat conftest.err
>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest.
$ac_objext; then
16909 ac_cv_type_struct_sockaddr_in6
=yes
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.
$ac_ext >&5
16914 ac_cv_type_struct_sockaddr_in6
=no
16917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16919 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16920 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16921 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16923 cat >>confdefs.h
<<\_ACEOF
16924 #define HAVE_IPV6 1
16932 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16933 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16934 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 cat >conftest.
$ac_ext <<_ACEOF
16940 cat confdefs.h
>>conftest.
$ac_ext
16941 cat >>conftest.
$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 #include <machine/vmparam.h>
16944 #include <sys/exec.h>
16949 PS_STRINGS->ps_nargvstr = 1;
16950 PS_STRINGS->ps_argvstr = "foo";
16955 rm -f conftest.
$ac_objext conftest
$ac_exeext
16956 if { (ac_try
="$ac_link"
16957 case "(($ac_try" in
16958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_link") 2>conftest.er1
16964 grep -v '^ *+' conftest.er1 >conftest.err
16966 cat conftest.err >&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && {
16969 test -z "$ac_c_werror_flag" ||
16970 test ! -s conftest.err
16971 } && test -s conftest$ac_exeext &&
16972 $as_test_x conftest$ac_exeext; then
16973 pgac_cv_var_PS_STRINGS=yes
16975 echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16978 pgac_cv_var_PS_STRINGS=no
16981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16982 conftest$ac_exeext conftest.$ac_ext
16984 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16985 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16986 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16988 cat >>confdefs.h <<\_ACEOF
16989 #define HAVE_PS_STRINGS
16995 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16996 # is missing. Yes, there are machines that have only one. We may
16997 # also decide to use snprintf.c if snprintf() is present but does not
16998 # have all the features we need --- see below.
17000 if test "$PORTNAME" = "win32"; then
17001 # Win32 gets snprintf.c built unconditionally.
17003 # To properly translate all NLS languages strings, we must support the
17004 # *printf() %$ format, which allows *printf() arguments to be selected
17005 # by position in the translated string.
17007 # libintl versions < 0.13 use the native *printf() functions, and Win32
17008 # *printf() doesn't understand %$, so we must use our /port versions,
17009 # which do understand %$. libintl versions >= 0.13 include their own
17010 # *printf versions on Win32. The libintl 0.13 release note text is:
17012 # C format strings with positions, as they arise when a translator
17013 # needs to reorder a sentence, are now supported on all platforms.
17014 # On those few platforms (NetBSD and Woe32) for which the native
17015 # printf()/fprintf()/... functions don't support such format
17016 # strings, replacements are provided through <libintl.h>.
17018 # We could use libintl >= 0.13's *printf() if we were sure that we had
17019 # a litint >= 0.13 at runtime, but seeing that there is no clean way
17020 # to guarantee that, it is best to just use our own, so we are sure to
17021 # get %$ support. In include/port.h we disable the *printf() macros
17022 # that might have been defined by libintl.
17024 # We do this unconditionally whether NLS is used or not so we are sure
17025 # that all Win32 libraries and binaries behave the same.
17026 pgac_need_repl_snprintf=yes
17028 pgac_need_repl_snprintf=no
17030 for ac_func in snprintf
17032 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17038 cat >conftest.$ac_ext <<_ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17046 #define $ac_func innocuous_$ac_func
17048 /* System header to define __stub macros and hopefully few prototypes,
17049 which can conflict with char $ac_func (); below.
17050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17051 <limits.h> exists even on freestanding compilers. */
17054 # include <limits.h>
17056 # include <assert.h>
17061 /* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17068 /* The GNU C library defines this for functions which it implements
17069 to always fail with ENOSYS. Some functions are actually named
17070 something starting with __ and the normal name is an alias. */
17071 #if defined __stub_$ac_func || defined __stub___$ac_func
17078 return $ac_func ();
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (ac_try="$ac_link"
17085 case "(($ac_try" in
17086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17087 *) ac_try_echo
=$ac_try;;
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
17092 grep -v '^ *+' conftest.er1
>conftest.err
17094 cat conftest.err
>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && {
17097 test -z "$ac_c_werror_flag" ||
17098 test ! -s conftest.err
17099 } && test -s conftest
$ac_exeext &&
17100 $as_test_x conftest
$ac_exeext; then
17101 eval "$as_ac_var=yes"
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.
$ac_ext >&5
17106 eval "$as_ac_var=no"
17109 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17110 conftest
$ac_exeext conftest.
$ac_ext
17112 ac_res
=`eval echo '${'$as_ac_var'}'`
17113 { echo "$as_me:$LINENO: result: $ac_res" >&5
17114 echo "${ECHO_T}$ac_res" >&6; }
17115 if test `eval echo '${'$as_ac_var'}'` = yes; then
17116 cat >>confdefs.h
<<_ACEOF
17117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17121 pgac_need_repl_snprintf
=yes
17126 for ac_func
in vsnprintf
17128 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17131 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 cat >conftest.
$ac_ext <<_ACEOF
17137 cat confdefs.h
>>conftest.
$ac_ext
17138 cat >>conftest.
$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17142 #define $ac_func innocuous_$ac_func
17144 /* System header to define __stub macros and hopefully few prototypes,
17145 which can conflict with char $ac_func (); below.
17146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147 <limits.h> exists even on freestanding compilers. */
17150 # include <limits.h>
17152 # include <assert.h>
17157 /* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
17164 /* The GNU C library defines this for functions which it implements
17165 to always fail with ENOSYS. Some functions are actually named
17166 something starting with __ and the normal name is an alias. */
17167 #if defined __stub_$ac_func || defined __stub___$ac_func
17174 return $ac_func ();
17179 rm -f conftest.
$ac_objext conftest
$ac_exeext
17180 if { (ac_try
="$ac_link"
17181 case "(($ac_try" in
17182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_link") 2>conftest.er1
17188 grep -v '^ *+' conftest.er1 >conftest.err
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && {
17193 test -z "$ac_c_werror_flag" ||
17194 test ! -s conftest.err
17195 } && test -s conftest$ac_exeext &&
17196 $as_test_x conftest$ac_exeext; then
17197 eval "$as_ac_var=yes"
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 eval "$as_ac_var=no"
17205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17206 conftest$ac_exeext conftest.$ac_ext
17208 ac_res=`eval echo '${'$as_ac_var'}'`
17209 { echo "$as_me:$LINENO: result: $ac_res" >&5
17210 echo "${ECHO_T}$ac_res" >&6; }
17211 if test `eval echo '${'$as_ac_var'}'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17217 pgac_need_repl_snprintf=yes
17224 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17225 # include/c.h will provide declarations. Note this is a separate test
17226 # from whether the functions exist in the C library --- there are
17227 # systems that have the functions but don't bother to declare them :-(
17229 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17230 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17231 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 cat >conftest.$ac_ext <<_ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 $ac_includes_default
17252 rm -f conftest.$ac_objext
17253 if { (ac_try="$ac_compile"
17254 case "(($ac_try" in
17255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17256 *) ac_try_echo
=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_compile") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1
>conftest.err
17263 cat conftest.err
>&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest.
$ac_objext; then
17269 ac_cv_have_decl_snprintf
=yes
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.
$ac_ext >&5
17274 ac_cv_have_decl_snprintf
=no
17277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17280 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17281 if test $ac_cv_have_decl_snprintf = yes; then
17283 cat >>confdefs.h
<<_ACEOF
17284 #define HAVE_DECL_SNPRINTF 1
17289 cat >>confdefs.h
<<_ACEOF
17290 #define HAVE_DECL_SNPRINTF 0
17295 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17296 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17297 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17300 cat >conftest.
$ac_ext <<_ACEOF
17303 cat confdefs.h
>>conftest.
$ac_ext
17304 cat >>conftest.
$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17306 $ac_includes_default
17318 rm -f conftest.
$ac_objext
17319 if { (ac_try
="$ac_compile"
17320 case "(($ac_try" in
17321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_compile") 2>conftest.er1
17327 grep -v '^ *+' conftest.er1 >conftest.err
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest.$ac_objext; then
17335 ac_cv_have_decl_vsnprintf=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_have_decl_vsnprintf=no
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17346 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17347 if test $ac_cv_have_decl_vsnprintf = yes; then
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_DECL_VSNPRINTF 1
17355 cat >>confdefs.h <<_ACEOF
17356 #define HAVE_DECL_VSNPRINTF 0
17365 { echo "$as_me:$LINENO: checking for isinf" >&5
17366 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17367 if test "${ac_cv_func_isinf+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17378 double glob_double;
17383 return isinf(glob_double) ? 0 : 1;
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17392 *) ac_try_echo
=$ac_try;;
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_link") 2>conftest.er1
17397 grep -v '^ *+' conftest.er1
>conftest.err
17399 cat conftest.err
>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && {
17402 test -z "$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17404 } && test -s conftest
$ac_exeext &&
17405 $as_test_x conftest
$ac_exeext; then
17406 ac_cv_func_isinf
=yes
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.
$ac_ext >&5
17411 ac_cv_func_isinf
=no
17414 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17415 conftest
$ac_exeext conftest.
$ac_ext
17417 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17418 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17420 if test $ac_cv_func_isinf = yes ; then
17422 cat >>confdefs.h
<<\_ACEOF
17423 #define HAVE_ISINF 1
17427 case " $LIBOBJS " in
17428 *" isinf.$ac_objext "* ) ;;
17429 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
17433 # Look for a way to implement a substitute for isinf()
17438 for ac_func
in fpclass fp_class fp_class_d class
17440 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17443 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 cat >conftest.
$ac_ext <<_ACEOF
17449 cat confdefs.h
>>conftest.
$ac_ext
17450 cat >>conftest.
$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17454 #define $ac_func innocuous_$ac_func
17456 /* System header to define __stub macros and hopefully few prototypes,
17457 which can conflict with char $ac_func (); below.
17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459 <limits.h> exists even on freestanding compilers. */
17462 # include <limits.h>
17464 # include <assert.h>
17469 /* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17476 /* The GNU C library defines this for functions which it implements
17477 to always fail with ENOSYS. Some functions are actually named
17478 something starting with __ and the normal name is an alias. */
17479 #if defined __stub_$ac_func || defined __stub___$ac_func
17486 return $ac_func ();
17491 rm -f conftest.
$ac_objext conftest
$ac_exeext
17492 if { (ac_try
="$ac_link"
17493 case "(($ac_try" in
17494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17500 grep -v '^ *+' conftest.er1 >conftest.err
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } && {
17505 test -z "$ac_c_werror_flag" ||
17506 test ! -s conftest.err
17507 } && test -s conftest$ac_exeext &&
17508 $as_test_x conftest$ac_exeext; then
17509 eval "$as_ac_var=yes"
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 eval "$as_ac_var=no"
17517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17518 conftest$ac_exeext conftest.$ac_ext
17520 ac_res=`eval echo '${'$as_ac_var'}'`
17521 { echo "$as_me:$LINENO: result: $ac_res" >&5
17522 echo "${ECHO_T}$ac_res" >&6; }
17523 if test `eval echo '${'$as_ac_var'}'` = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17533 # Some versions of libedit contain strlcpy(); so disregard that library while
17534 # checking for these standard libc functions.
17535 pgac_save_LIBS="$LIBS"
17536 LIBS=`echo "$LIBS" |
sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17551 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
17553 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17567 #define $ac_func innocuous_$ac_func
17569 /* System header to define __stub macros and hopefully few prototypes,
17570 which can conflict with char $ac_func (); below.
17571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572 <limits.h> exists even on freestanding compilers. */
17575 # include <limits.h>
17577 # include <assert.h>
17582 /* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17589 /* The GNU C library defines this for functions which it implements
17590 to always fail with ENOSYS. Some functions are actually named
17591 something starting with __ and the normal name is an alias. */
17592 #if defined __stub_$ac_func || defined __stub___$ac_func
17599 return $ac_func ();
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17608 *) ac_try_echo
=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_link") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1
>conftest.err
17615 cat conftest.err
>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest
$ac_exeext &&
17621 $as_test_x conftest
$ac_exeext; then
17622 eval "$as_ac_var=yes"
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.
$ac_ext >&5
17627 eval "$as_ac_var=no"
17630 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17631 conftest
$ac_exeext conftest.
$ac_ext
17633 ac_res
=`eval echo '${'$as_ac_var'}'`
17634 { echo "$as_me:$LINENO: result: $ac_res" >&5
17635 echo "${ECHO_T}$ac_res" >&6; }
17636 if test `eval echo '${'$as_ac_var'}'` = yes; then
17637 cat >>confdefs.h
<<_ACEOF
17638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17642 case " $LIBOBJS " in
17643 *" $ac_func.$ac_objext "* ) ;;
17644 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17655 # Windows uses a specialised env handler
17658 cat >>confdefs.h
<<\_ACEOF
17659 #define HAVE_UNSETENV 1
17662 ac_cv_func_unsetenv
=yes;;
17665 for ac_func
in unsetenv
17667 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17670 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 cat >conftest.
$ac_ext <<_ACEOF
17676 cat confdefs.h
>>conftest.
$ac_ext
17677 cat >>conftest.
$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17681 #define $ac_func innocuous_$ac_func
17683 /* System header to define __stub macros and hopefully few prototypes,
17684 which can conflict with char $ac_func (); below.
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17689 # include <limits.h>
17691 # include <assert.h>
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17703 /* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined __stub_$ac_func || defined __stub___$ac_func
17713 return $ac_func ();
17718 rm -f conftest.
$ac_objext conftest
$ac_exeext
17719 if { (ac_try
="$ac_link"
17720 case "(($ac_try" in
17721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } && {
17732 test -z "$ac_c_werror_flag" ||
17733 test ! -s conftest.err
17734 } && test -s conftest$ac_exeext &&
17735 $as_test_x conftest$ac_exeext; then
17736 eval "$as_ac_var=yes"
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 eval "$as_ac_var=no"
17744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17745 conftest$ac_exeext conftest.$ac_ext
17747 ac_res=`eval echo '${'$as_ac_var'}'`
17748 { echo "$as_me:$LINENO: result: $ac_res" >&5
17749 echo "${ECHO_T}$ac_res" >&6; }
17750 if test `eval echo '${'$as_ac_var'}'` = yes; then
17751 cat >>confdefs.h <<_ACEOF
17752 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17756 case " $LIBOBJS " in
17757 *" $ac_func.$ac_objext "* ) ;;
17758 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17770 LIBS="$pgac_save_LIBS"
17772 # System's version of getaddrinfo(), if any, may be used only if we found
17773 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17774 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17775 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17776 # because we want to use our own getaddrinfo.c on Windows anyway.)
17777 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17779 for ac_func in getaddrinfo
17781 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define $ac_func innocuous_$ac_func
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char $ac_func (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17803 # include <limits.h>
17805 # include <assert.h>
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17817 /* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820 #if defined __stub_$ac_func || defined __stub___$ac_func
17827 return $ac_func ();
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17836 *) ac_try_echo
=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1
>conftest.err
17843 cat conftest.err
>&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest
$ac_exeext &&
17849 $as_test_x conftest
$ac_exeext; then
17850 eval "$as_ac_var=yes"
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.
$ac_ext >&5
17855 eval "$as_ac_var=no"
17858 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17859 conftest
$ac_exeext conftest.
$ac_ext
17861 ac_res
=`eval echo '${'$as_ac_var'}'`
17862 { echo "$as_me:$LINENO: result: $ac_res" >&5
17863 echo "${ECHO_T}$ac_res" >&6; }
17864 if test `eval echo '${'$as_ac_var'}'` = yes; then
17865 cat >>confdefs.h
<<_ACEOF
17866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17870 case " $LIBOBJS " in
17871 *" $ac_func.$ac_objext "* ) ;;
17872 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17881 case " $LIBOBJS " in
17882 *" getaddrinfo.$ac_objext "* ) ;;
17883 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
17889 # Similarly, use system's getopt_long() only if system provides struct option.
17890 if test x
"$ac_cv_type_struct_option" = xyes
; then
17892 for ac_func
in getopt_long
17894 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17897 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 cat >conftest.
$ac_ext <<_ACEOF
17903 cat confdefs.h
>>conftest.
$ac_ext
17904 cat >>conftest.
$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17908 #define $ac_func innocuous_$ac_func
17910 /* System header to define __stub macros and hopefully few prototypes,
17911 which can conflict with char $ac_func (); below.
17912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913 <limits.h> exists even on freestanding compilers. */
17916 # include <limits.h>
17918 # include <assert.h>
17923 /* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
17930 /* The GNU C library defines this for functions which it implements
17931 to always fail with ENOSYS. Some functions are actually named
17932 something starting with __ and the normal name is an alias. */
17933 #if defined __stub_$ac_func || defined __stub___$ac_func
17940 return $ac_func ();
17945 rm -f conftest.
$ac_objext conftest
$ac_exeext
17946 if { (ac_try
="$ac_link"
17947 case "(($ac_try" in
17948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_link") 2>conftest.er1
17954 grep -v '^ *+' conftest.er1 >conftest.err
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && {
17959 test -z "$ac_c_werror_flag" ||
17960 test ! -s conftest.err
17961 } && test -s conftest$ac_exeext &&
17962 $as_test_x conftest$ac_exeext; then
17963 eval "$as_ac_var=yes"
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 eval "$as_ac_var=no"
17971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17972 conftest$ac_exeext conftest.$ac_ext
17974 ac_res=`eval echo '${'$as_ac_var'}'`
17975 { echo "$as_me:$LINENO: result: $ac_res" >&5
17976 echo "${ECHO_T}$ac_res" >&6; }
17977 if test `eval echo '${'$as_ac_var'}'` = yes; then
17978 cat >>confdefs.h <<_ACEOF
17979 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17983 case " $LIBOBJS " in
17984 *" $ac_func.$ac_objext "* ) ;;
17985 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17994 case " $LIBOBJS " in
17995 *" getopt_long.$ac_objext "* ) ;;
17996 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
18002 # Solaris' getopt() doesn't do what we want for long options, so always use
18003 # our version on that platform.
18004 if test "$PORTNAME" = "solaris"; then
18005 case " $LIBOBJS " in
18006 *" getopt.$ac_objext "* ) ;;
18007 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
18014 if test "$PORTNAME" = "win32"; then
18016 for ac_func in gettimeofday
18018 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18024 cat >conftest.$ac_ext <<_ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032 #define $ac_func innocuous_$ac_func
18034 /* System header to define __stub macros and hopefully few prototypes,
18035 which can conflict with char $ac_func (); below.
18036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037 <limits.h> exists even on freestanding compilers. */
18040 # include <limits.h>
18042 # include <assert.h>
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18054 /* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057 #if defined __stub_$ac_func || defined __stub___$ac_func
18064 return $ac_func ();
18069 rm -f conftest.$ac_objext conftest$ac_exeext
18070 if { (ac_try="$ac_link"
18071 case "(($ac_try" in
18072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18073 *) ac_try_echo
=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_link") 2>conftest.er1
18078 grep -v '^ *+' conftest.er1
>conftest.err
18080 cat conftest.err
>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest
$ac_exeext &&
18086 $as_test_x conftest
$ac_exeext; then
18087 eval "$as_ac_var=yes"
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.
$ac_ext >&5
18092 eval "$as_ac_var=no"
18095 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18096 conftest
$ac_exeext conftest.
$ac_ext
18098 ac_res
=`eval echo '${'$as_ac_var'}'`
18099 { echo "$as_me:$LINENO: result: $ac_res" >&5
18100 echo "${ECHO_T}$ac_res" >&6; }
18101 if test `eval echo '${'$as_ac_var'}'` = yes; then
18102 cat >>confdefs.h
<<_ACEOF
18103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18107 case " $LIBOBJS " in
18108 *" $ac_func.$ac_objext "* ) ;;
18109 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18117 case " $LIBOBJS " in
18118 *" kill.$ac_objext "* ) ;;
18119 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
18123 case " $LIBOBJS " in
18124 *" open.$ac_objext "* ) ;;
18125 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
18129 case " $LIBOBJS " in
18130 *" rand.$ac_objext "* ) ;;
18131 *) LIBOBJS
="$LIBOBJS rand.$ac_objext"
18135 case " $LIBOBJS " in
18136 *" win32env.$ac_objext "* ) ;;
18137 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
18141 case " $LIBOBJS " in
18142 *" win32error.$ac_objext "* ) ;;
18143 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
18148 cat >>confdefs.h
<<\_ACEOF
18149 #define HAVE_SYMLINK 1
18154 if test "$with_readline" = yes; then
18155 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
18156 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
18157 cat >conftest.
$ac_ext <<_ACEOF
18160 cat confdefs.h
>>conftest.
$ac_ext
18161 cat >>conftest.
$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18164 #ifdef HAVE_READLINE_READLINE_H
18165 # include <readline/readline.h>
18166 #elif defined(HAVE_READLINE_H)
18167 # include <readline.h>
18173 rl_completion_append_character = 'x';
18178 rm -f conftest.
$ac_objext conftest
$ac_exeext
18179 if { (ac_try
="$ac_link"
18180 case "(($ac_try" in
18181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_link") 2>conftest.er1
18187 grep -v '^ *+' conftest.er1 >conftest.err
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } && {
18192 test -z "$ac_c_werror_flag" ||
18193 test ! -s conftest.err
18194 } && test -s conftest$ac_exeext &&
18195 $as_test_x conftest$ac_exeext; then
18196 { echo "$as_me:$LINENO: result: yes" >&5
18197 echo "${ECHO_T}yes" >&6; }
18199 cat >>confdefs.h <<\_ACEOF
18200 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18207 { echo "$as_me:$LINENO: result: no" >&5
18208 echo "${ECHO_T}no" >&6; }
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212 conftest$ac_exeext conftest.$ac_ext
18215 for ac_func in rl_completion_matches rl_filename_completion_function
18217 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18231 #define $ac_func innocuous_$ac_func
18233 /* System header to define __stub macros and hopefully few prototypes,
18234 which can conflict with char $ac_func (); below.
18235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236 <limits.h> exists even on freestanding compilers. */
18239 # include <limits.h>
18241 # include <assert.h>
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18253 /* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256 #if defined __stub_$ac_func || defined __stub___$ac_func
18263 return $ac_func ();
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18272 *) ac_try_echo
=$ac_try;;
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1
>conftest.err
18279 cat conftest.err
>&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } && {
18282 test -z "$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18284 } && test -s conftest
$ac_exeext &&
18285 $as_test_x conftest
$ac_exeext; then
18286 eval "$as_ac_var=yes"
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.
$ac_ext >&5
18291 eval "$as_ac_var=no"
18294 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18295 conftest
$ac_exeext conftest.
$ac_ext
18297 ac_res
=`eval echo '${'$as_ac_var'}'`
18298 { echo "$as_me:$LINENO: result: $ac_res" >&5
18299 echo "${ECHO_T}$ac_res" >&6; }
18300 if test `eval echo '${'$as_ac_var'}'` = yes; then
18301 cat >>confdefs.h
<<_ACEOF
18302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18309 for ac_func
in replace_history_entry
18311 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18314 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 cat >conftest.
$ac_ext <<_ACEOF
18320 cat confdefs.h
>>conftest.
$ac_ext
18321 cat >>conftest.
$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18325 #define $ac_func innocuous_$ac_func
18327 /* System header to define __stub macros and hopefully few prototypes,
18328 which can conflict with char $ac_func (); below.
18329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18330 <limits.h> exists even on freestanding compilers. */
18333 # include <limits.h>
18335 # include <assert.h>
18340 /* Override any GCC internal prototype to avoid an error.
18341 Use char because int might match the return type of a GCC
18342 builtin and then its argument prototype would still apply. */
18347 /* The GNU C library defines this for functions which it implements
18348 to always fail with ENOSYS. Some functions are actually named
18349 something starting with __ and the normal name is an alias. */
18350 #if defined __stub_$ac_func || defined __stub___$ac_func
18357 return $ac_func ();
18362 rm -f conftest.
$ac_objext conftest
$ac_exeext
18363 if { (ac_try
="$ac_link"
18364 case "(($ac_try" in
18365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_link") 2>conftest.er1
18371 grep -v '^ *+' conftest.er1 >conftest.err
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } && {
18376 test -z "$ac_c_werror_flag" ||
18377 test ! -s conftest.err
18378 } && test -s conftest$ac_exeext &&
18379 $as_test_x conftest$ac_exeext; then
18380 eval "$as_ac_var=yes"
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 eval "$as_ac_var=no"
18388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18389 conftest$ac_exeext conftest.$ac_ext
18391 ac_res=`eval echo '${'$as_ac_var'}'`
18392 { echo "$as_me:$LINENO: result: $ac_res" >&5
18393 echo "${ECHO_T}$ac_res" >&6; }
18394 if test `eval echo '${'$as_ac_var'}'` = yes; then
18395 cat >>confdefs.h <<_ACEOF
18396 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18405 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18406 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <setjmp.h>
18417 sigjmp_buf x; sigsetjmp(x, 1);
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18426 *) ac_try_echo
=$ac_try;;
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18431 grep -v '^ *+' conftest.er1
>conftest.err
18433 cat conftest.err
>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } && {
18436 test -z "$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18438 } && test -s conftest
$ac_exeext &&
18439 $as_test_x conftest
$ac_exeext; then
18441 cat >>confdefs.h
<<\_ACEOF
18442 #define HAVE_SIGSETJMP 1
18445 { echo "$as_me:$LINENO: result: yes" >&5
18446 echo "${ECHO_T}yes" >&6; }
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.
$ac_ext >&5
18451 { echo "$as_me:$LINENO: result: no" >&5
18452 echo "${ECHO_T}no" >&6; }
18455 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18456 conftest
$ac_exeext conftest.
$ac_ext
18458 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18459 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18460 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 cat >conftest.
$ac_ext <<_ACEOF
18466 cat confdefs.h
>>conftest.
$ac_ext
18467 cat >>conftest.
$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 #include <signal.h>
18470 /* NetBSD declares sys_siglist in unistd.h. */
18471 #ifdef HAVE_UNISTD_H
18472 # include <unistd.h>
18479 #ifndef sys_siglist
18480 (void) sys_siglist;
18487 rm -f conftest.
$ac_objext
18488 if { (ac_try
="$ac_compile"
18489 case "(($ac_try" in
18490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494 (eval "$ac_compile") 2>conftest.er1
18496 grep -v '^ *+' conftest.er1 >conftest.err
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } && {
18501 test -z "$ac_c_werror_flag" ||
18502 test ! -s conftest.err
18503 } && test -s conftest.$ac_objext; then
18504 ac_cv_have_decl_sys_siglist=yes
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 ac_cv_have_decl_sys_siglist=no
18512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18514 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18515 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18516 if test $ac_cv_have_decl_sys_siglist = yes; then
18518 cat >>confdefs.h <<_ACEOF
18519 #define HAVE_DECL_SYS_SIGLIST 1
18524 cat >>confdefs.h <<_ACEOF
18525 #define HAVE_DECL_SYS_SIGLIST 0
18534 { echo "$as_me:$LINENO: checking for syslog" >&5
18535 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18536 if test "${ac_cv_func_syslog+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18539 cat >conftest.$ac_ext <<_ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18547 #define syslog innocuous_syslog
18549 /* System header to define __stub macros and hopefully few prototypes,
18550 which can conflict with char syslog (); below.
18551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552 <limits.h> exists even on freestanding compilers. */
18555 # include <limits.h>
18557 # include <assert.h>
18562 /* Override any GCC internal prototype to avoid an error.
18563 Use char because int might match the return type of a GCC
18564 builtin and then its argument prototype would still apply. */
18569 /* The GNU C library defines this for functions which it implements
18570 to always fail with ENOSYS. Some functions are actually named
18571 something starting with __ and the normal name is an alias. */
18572 #if defined __stub_syslog || defined __stub___syslog
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18588 *) ac_try_echo
=$ac_try;;
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_link") 2>conftest.er1
18593 grep -v '^ *+' conftest.er1
>conftest.err
18595 cat conftest.err
>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } && {
18598 test -z "$ac_c_werror_flag" ||
18599 test ! -s conftest.err
18600 } && test -s conftest
$ac_exeext &&
18601 $as_test_x conftest
$ac_exeext; then
18602 ac_cv_func_syslog
=yes
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.
$ac_ext >&5
18607 ac_cv_func_syslog
=no
18610 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18611 conftest
$ac_exeext conftest.
$ac_ext
18613 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18614 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18615 if test $ac_cv_func_syslog = yes; then
18616 if test "${ac_cv_header_syslog_h+set}" = set; then
18617 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18618 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18619 if test "${ac_cv_header_syslog_h+set}" = set; then
18620 echo $ECHO_N "(cached) $ECHO_C" >&6
18622 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18623 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18625 # Is the header compilable?
18626 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18627 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18628 cat >conftest.
$ac_ext <<_ACEOF
18631 cat confdefs.h
>>conftest.
$ac_ext
18632 cat >>conftest.
$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 $ac_includes_default
18635 #include <syslog.h>
18637 rm -f conftest.
$ac_objext
18638 if { (ac_try
="$ac_compile"
18639 case "(($ac_try" in
18640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_compile") 2>conftest.er1
18646 grep -v '^ *+' conftest.er1 >conftest.err
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } && {
18651 test -z "$ac_c_werror_flag" ||
18652 test ! -s conftest.err
18653 } && test -s conftest.$ac_objext; then
18654 ac_header_compiler=yes
18656 echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18659 ac_header_compiler=no
18662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18664 echo "${ECHO_T}$ac_header_compiler" >&6; }
18666 # Is the header present?
18667 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18668 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18669 cat >conftest.$ac_ext <<_ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 #include <syslog.h>
18677 if { (ac_try="$ac_cpp conftest.$ac_ext"
18678 case "(($ac_try" in
18679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18680 *) ac_try_echo
=$ac_try;;
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18685 grep -v '^ *+' conftest.er1
>conftest.err
18687 cat conftest.err
>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } >/dev
/null
&& {
18690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18691 test ! -s conftest.err
18693 ac_header_preproc
=yes
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.
$ac_ext >&5
18698 ac_header_preproc
=no
18701 rm -f conftest.err conftest.
$ac_ext
18702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18703 echo "${ECHO_T}$ac_header_preproc" >&6; }
18705 # So? What about this header?
18706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18708 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18709 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18710 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18711 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18712 ac_header_preproc
=yes
18715 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18716 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18718 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18720 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18722 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18724 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18725 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18726 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18728 ## ---------------------------------------- ##
18729 ## Report this to pgsql-bugs@postgresql.org ##
18730 ## ---------------------------------------- ##
18732 ) |
sed "s/^/$as_me: WARNING: /" >&2
18735 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18736 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18737 if test "${ac_cv_header_syslog_h+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 ac_cv_header_syslog_h
=$ac_header_preproc
18742 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18743 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18746 if test $ac_cv_header_syslog_h = yes; then
18748 cat >>confdefs.h
<<\_ACEOF
18749 #define HAVE_SYSLOG 1
18758 { echo "$as_me:$LINENO: checking for opterr" >&5
18759 echo $ECHO_N "checking for opterr... $ECHO_C" >&6; }
18760 if test "${pgac_cv_var_int_opterr+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 cat >conftest.
$ac_ext <<_ACEOF
18766 cat confdefs.h
>>conftest.
$ac_ext
18767 cat >>conftest.
$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 #include <unistd.h>
18773 extern int opterr; opterr = 1;
18778 rm -f conftest.
$ac_objext conftest
$ac_exeext
18779 if { (ac_try
="$ac_link"
18780 case "(($ac_try" in
18781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
18787 grep -v '^ *+' conftest.er1 >conftest.err
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } && {
18792 test -z "$ac_c_werror_flag" ||
18793 test ! -s conftest.err
18794 } && test -s conftest$ac_exeext &&
18795 $as_test_x conftest$ac_exeext; then
18796 pgac_cv_var_int_opterr=yes
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18801 pgac_cv_var_int_opterr=no
18804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18805 conftest$ac_exeext conftest.$ac_ext
18807 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
18808 echo "${ECHO_T}$pgac_cv_var_int_opterr" >&6; }
18809 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_INT_OPTERR 1
18817 { echo "$as_me:$LINENO: checking for optreset" >&5
18818 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18819 if test "${pgac_cv_var_int_optreset+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 cat >conftest.$ac_ext <<_ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828 #include <unistd.h>
18832 extern int optreset; optreset = 1;
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (ac_try="$ac_link"
18839 case "(($ac_try" in
18840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18841 *) ac_try_echo
=$ac_try;;
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_link") 2>conftest.er1
18846 grep -v '^ *+' conftest.er1
>conftest.err
18848 cat conftest.err
>&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && {
18851 test -z "$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18853 } && test -s conftest
$ac_exeext &&
18854 $as_test_x conftest
$ac_exeext; then
18855 pgac_cv_var_int_optreset
=yes
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.
$ac_ext >&5
18860 pgac_cv_var_int_optreset
=no
18863 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18864 conftest
$ac_exeext conftest.
$ac_ext
18866 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18867 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18868 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
18870 cat >>confdefs.h
<<\_ACEOF
18871 #define HAVE_INT_OPTRESET 1
18878 for ac_func
in strtoll strtoq
18880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18883 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 cat >conftest.
$ac_ext <<_ACEOF
18889 cat confdefs.h
>>conftest.
$ac_ext
18890 cat >>conftest.
$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18894 #define $ac_func innocuous_$ac_func
18896 /* System header to define __stub macros and hopefully few prototypes,
18897 which can conflict with char $ac_func (); below.
18898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18899 <limits.h> exists even on freestanding compilers. */
18902 # include <limits.h>
18904 # include <assert.h>
18909 /* Override any GCC internal prototype to avoid an error.
18910 Use char because int might match the return type of a GCC
18911 builtin and then its argument prototype would still apply. */
18916 /* The GNU C library defines this for functions which it implements
18917 to always fail with ENOSYS. Some functions are actually named
18918 something starting with __ and the normal name is an alias. */
18919 #if defined __stub_$ac_func || defined __stub___$ac_func
18926 return $ac_func ();
18931 rm -f conftest.
$ac_objext conftest
$ac_exeext
18932 if { (ac_try
="$ac_link"
18933 case "(($ac_try" in
18934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_link") 2>conftest.er1
18940 grep -v '^ *+' conftest.er1 >conftest.err
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } && {
18945 test -z "$ac_c_werror_flag" ||
18946 test ! -s conftest.err
18947 } && test -s conftest$ac_exeext &&
18948 $as_test_x conftest$ac_exeext; then
18949 eval "$as_ac_var=yes"
18951 echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954 eval "$as_ac_var=no"
18957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18958 conftest$ac_exeext conftest.$ac_ext
18960 ac_res=`eval echo '${'$as_ac_var'}'`
18961 { echo "$as_me:$LINENO: result: $ac_res" >&5
18962 echo "${ECHO_T}$ac_res" >&6; }
18963 if test `eval echo '${'$as_ac_var'}'` = yes; then
18964 cat >>confdefs.h <<_ACEOF
18965 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18973 for ac_func in strtoull strtouq
18975 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 cat >conftest.$ac_ext <<_ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18989 #define $ac_func innocuous_$ac_func
18991 /* System header to define __stub macros and hopefully few prototypes,
18992 which can conflict with char $ac_func (); below.
18993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18994 <limits.h> exists even on freestanding compilers. */
18997 # include <limits.h>
18999 # include <assert.h>
19004 /* Override any GCC internal prototype to avoid an error.
19005 Use char because int might match the return type of a GCC
19006 builtin and then its argument prototype would still apply. */
19011 /* The GNU C library defines this for functions which it implements
19012 to always fail with ENOSYS. Some functions are actually named
19013 something starting with __ and the normal name is an alias. */
19014 #if defined __stub_$ac_func || defined __stub___$ac_func
19021 return $ac_func ();
19026 rm -f conftest.$ac_objext conftest$ac_exeext
19027 if { (ac_try="$ac_link"
19028 case "(($ac_try" in
19029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19030 *) ac_try_echo
=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_link") 2>conftest.er1
19035 grep -v '^ *+' conftest.er1
>conftest.err
19037 cat conftest.err
>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && {
19040 test -z "$ac_c_werror_flag" ||
19041 test ! -s conftest.err
19042 } && test -s conftest
$ac_exeext &&
19043 $as_test_x conftest
$ac_exeext; then
19044 eval "$as_ac_var=yes"
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.
$ac_ext >&5
19049 eval "$as_ac_var=no"
19052 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19053 conftest
$ac_exeext conftest.
$ac_ext
19055 ac_res
=`eval echo '${'$as_ac_var'}'`
19056 { echo "$as_me:$LINENO: result: $ac_res" >&5
19057 echo "${ECHO_T}$ac_res" >&6; }
19058 if test `eval echo '${'$as_ac_var'}'` = yes; then
19059 cat >>confdefs.h
<<_ACEOF
19060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19067 # Check for one of atexit() or on_exit()
19069 for ac_func
in atexit
19071 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19074 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 cat >conftest.
$ac_ext <<_ACEOF
19080 cat confdefs.h
>>conftest.
$ac_ext
19081 cat >>conftest.
$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19085 #define $ac_func innocuous_$ac_func
19087 /* System header to define __stub macros and hopefully few prototypes,
19088 which can conflict with char $ac_func (); below.
19089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19090 <limits.h> exists even on freestanding compilers. */
19093 # include <limits.h>
19095 # include <assert.h>
19100 /* Override any GCC internal prototype to avoid an error.
19101 Use char because int might match the return type of a GCC
19102 builtin and then its argument prototype would still apply. */
19107 /* The GNU C library defines this for functions which it implements
19108 to always fail with ENOSYS. Some functions are actually named
19109 something starting with __ and the normal name is an alias. */
19110 #if defined __stub_$ac_func || defined __stub___$ac_func
19117 return $ac_func ();
19122 rm -f conftest.
$ac_objext conftest
$ac_exeext
19123 if { (ac_try
="$ac_link"
19124 case "(($ac_try" in
19125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_link") 2>conftest.er1
19131 grep -v '^ *+' conftest.er1 >conftest.err
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } && {
19136 test -z "$ac_c_werror_flag" ||
19137 test ! -s conftest.err
19138 } && test -s conftest$ac_exeext &&
19139 $as_test_x conftest$ac_exeext; then
19140 eval "$as_ac_var=yes"
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 eval "$as_ac_var=no"
19148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19149 conftest$ac_exeext conftest.$ac_ext
19151 ac_res=`eval echo '${'$as_ac_var'}'`
19152 { echo "$as_me:$LINENO: result: $ac_res" >&5
19153 echo "${ECHO_T}$ac_res" >&6; }
19154 if test `eval echo '${'$as_ac_var'}'` = yes; then
19155 cat >>confdefs.h <<_ACEOF
19156 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19161 for ac_func in on_exit
19163 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19177 #define $ac_func innocuous_$ac_func
19179 /* System header to define __stub macros and hopefully few prototypes,
19180 which can conflict with char $ac_func (); below.
19181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19182 <limits.h> exists even on freestanding compilers. */
19185 # include <limits.h>
19187 # include <assert.h>
19192 /* Override any GCC internal prototype to avoid an error.
19193 Use char because int might match the return type of a GCC
19194 builtin and then its argument prototype would still apply. */
19199 /* The GNU C library defines this for functions which it implements
19200 to always fail with ENOSYS. Some functions are actually named
19201 something starting with __ and the normal name is an alias. */
19202 #if defined __stub_$ac_func || defined __stub___$ac_func
19209 return $ac_func ();
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (ac_try="$ac_link"
19216 case "(($ac_try" in
19217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19218 *) ac_try_echo
=$ac_try;;
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_link") 2>conftest.er1
19223 grep -v '^ *+' conftest.er1
>conftest.err
19225 cat conftest.err
>&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && {
19228 test -z "$ac_c_werror_flag" ||
19229 test ! -s conftest.err
19230 } && test -s conftest
$ac_exeext &&
19231 $as_test_x conftest
$ac_exeext; then
19232 eval "$as_ac_var=yes"
19234 echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.
$ac_ext >&5
19237 eval "$as_ac_var=no"
19240 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19241 conftest
$ac_exeext conftest.
$ac_ext
19243 ac_res
=`eval echo '${'$as_ac_var'}'`
19244 { echo "$as_me:$LINENO: result: $ac_res" >&5
19245 echo "${ECHO_T}$ac_res" >&6; }
19246 if test `eval echo '${'$as_ac_var'}'` = yes; then
19247 cat >>confdefs.h
<<_ACEOF
19248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19252 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
19253 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
19254 { (exit 1); exit 1; }; }
19263 for ac_func
in fseeko
19265 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19268 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 cat >conftest.
$ac_ext <<_ACEOF
19274 cat confdefs.h
>>conftest.
$ac_ext
19275 cat >>conftest.
$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19279 #define $ac_func innocuous_$ac_func
19281 /* System header to define __stub macros and hopefully few prototypes,
19282 which can conflict with char $ac_func (); below.
19283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19284 <limits.h> exists even on freestanding compilers. */
19287 # include <limits.h>
19289 # include <assert.h>
19294 /* Override any GCC internal prototype to avoid an error.
19295 Use char because int might match the return type of a GCC
19296 builtin and then its argument prototype would still apply. */
19301 /* The GNU C library defines this for functions which it implements
19302 to always fail with ENOSYS. Some functions are actually named
19303 something starting with __ and the normal name is an alias. */
19304 #if defined __stub_$ac_func || defined __stub___$ac_func
19311 return $ac_func ();
19316 rm -f conftest.
$ac_objext conftest
$ac_exeext
19317 if { (ac_try
="$ac_link"
19318 case "(($ac_try" in
19319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_link") 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } && {
19330 test -z "$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 } && test -s conftest$ac_exeext &&
19333 $as_test_x conftest$ac_exeext; then
19334 eval "$as_ac_var=yes"
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 eval "$as_ac_var=no"
19342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19343 conftest$ac_exeext conftest.$ac_ext
19345 ac_res=`eval echo '${'$as_ac_var'}'`
19346 { echo "$as_me:$LINENO: result: $ac_res" >&5
19347 echo "${ECHO_T}$ac_res" >&6; }
19348 if test `eval echo '${'$as_ac_var'}'` = yes; then
19349 cat >>confdefs.h <<_ACEOF
19350 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19354 case " $LIBOBJS " in
19355 *" $ac_func.$ac_objext "* ) ;;
19356 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19365 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19366 # Mingw uses macros to access Win32 API calls
19367 bsdi*|netbsd*|mingw*)
19369 cat >>confdefs.h <<\_ACEOF
19370 #define HAVE_FSEEKO 1
19373 ac_cv_func_fseeko=yes;;
19375 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19376 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19377 if test "${ac_cv_sys_largefile_source+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 #include <sys/types.h> /* for off_t */
19392 int (*fp) (FILE *, off_t, int) = fseeko;
19393 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (ac_try="$ac_link"
19400 case "(($ac_try" in
19401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19402 *) ac_try_echo
=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_link") 2>conftest.er1
19407 grep -v '^ *+' conftest.er1
>conftest.err
19409 cat conftest.err
>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && {
19412 test -z "$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 } && test -s conftest
$ac_exeext &&
19415 $as_test_x conftest
$ac_exeext; then
19416 ac_cv_sys_largefile_source
=no
; break
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.
$ac_ext >&5
19424 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19425 conftest
$ac_exeext conftest.
$ac_ext
19426 cat >conftest.
$ac_ext <<_ACEOF
19429 cat confdefs.h
>>conftest.
$ac_ext
19430 cat >>conftest.
$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 #define _LARGEFILE_SOURCE 1
19433 #include <sys/types.h> /* for off_t */
19438 int (*fp) (FILE *, off_t, int) = fseeko;
19439 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19444 rm -f conftest.
$ac_objext conftest
$ac_exeext
19445 if { (ac_try
="$ac_link"
19446 case "(($ac_try" in
19447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_link") 2>conftest.er1
19453 grep -v '^ *+' conftest.er1 >conftest.err
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && {
19458 test -z "$ac_c_werror_flag" ||
19459 test ! -s conftest.err
19460 } && test -s conftest$ac_exeext &&
19461 $as_test_x conftest$ac_exeext; then
19462 ac_cv_sys_largefile_source=1; break
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19471 conftest$ac_exeext conftest.$ac_ext
19472 ac_cv_sys_largefile_source=unknown
19476 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19477 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19478 case $ac_cv_sys_largefile_source in #(
19481 cat >>confdefs.h <<_ACEOF
19482 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19488 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19489 # in glibc 2.1.3, but that breaks too many other things.
19490 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19491 if test $ac_cv_sys_largefile_source != unknown; then
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_FSEEKO 1
19505 # For each platform, we need to know about any special compile and link
19506 # libraries, and whether the normal C function names are thread-safe.
19507 # See the comment at the top of src/port/thread.c for more information.
19508 # WIN32 doesn't need the pthread tests; it always uses threads
19509 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19514 ac_cpp='$CPP $CPPFLAGS'
19515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19521 # We used to check for pthread.h first, but this fails if pthread.h
19522 # requires special compiler flags (e.g. on True64 or Sequent).
19523 # It gets checked for in the link test anyway.
19525 # First of all, check if the user has set any of the PTHREAD_LIBS,
19526 # etcetera environment variables, and if threads linking works using
19528 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19529 save_CFLAGS="$CFLAGS"
19530 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19532 LIBS="$PTHREAD_LIBS $LIBS"
19533 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19534 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19542 /* Override any GCC internal prototype to avoid an error.
19543 Use char because int might match the return type of a GCC
19544 builtin and then its argument prototype would still apply. */
19548 char pthread_join ();
19552 return pthread_join ();
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19561 *) ac_try_echo
=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_link") 2>conftest.er1
19566 grep -v '^ *+' conftest.er1
>conftest.err
19568 cat conftest.err
>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } && {
19571 test -z "$ac_c_werror_flag" ||
19572 test ! -s conftest.err
19573 } && test -s conftest
$ac_exeext &&
19574 $as_test_x conftest
$ac_exeext; then
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.
$ac_ext >&5
19583 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19584 conftest
$ac_exeext conftest.
$ac_ext
19585 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19586 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19587 if test x
"$acx_pthread_ok" = xno
; then
19592 CFLAGS
="$save_CFLAGS"
19595 # We must check for the threads library under a number of different
19596 # names; the ordering is very important because some systems
19597 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19598 # libraries is broken (non-POSIX).
19600 # Create a list of thread flags to try. Items starting with a "-" are
19601 # C compiler flags, and other items are library names, except for "none"
19602 # which indicates that we try without any flags at all, and "pthread-config"
19603 # which is a program returning the flags for the Pth emulation library.
19605 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19607 # The ordering *is* (sometimes) important. Some notes on the
19608 # individual items follow:
19610 # pthreads: AIX (must check this before -lpthread)
19611 # none: in case threads are in libc; should be tried before -Kthread and
19612 # other compiler flags to prevent continual compiler warnings
19613 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19614 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19615 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19616 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19617 # -pthreads: Solaris/gcc
19618 # -mthreads: Mingw32/gcc, Lynx/gcc
19619 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19620 # doesn't hurt to check since this sometimes defines pthreads too;
19621 # also defines -D_REENTRANT)
19622 # pthread: Linux, etcetera
19623 # --thread-safe: KAI C++
19624 # pthread-config: use pthread-config program (for GNU Pth library)
19626 case "${host_cpu}-${host_os}" in
19629 # On Solaris (at least, for some versions), libc contains stubbed
19630 # (non-functional) versions of the pthreads routines, so link-based
19631 # tests will erroneously succeed. (We need to link with -pthread or
19632 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19633 # a function called by this macro, so we could check for that, but
19634 # who knows whether they'll stub that too in a future libc.) So,
19635 # we'll just look for -pthreads and -lpthread first:
19637 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
19641 if test x
"$acx_pthread_ok" = xno
; then
19642 for flag
in $acx_pthread_flags; do
19644 tryPTHREAD_CFLAGS
=""
19648 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19649 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19653 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19654 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19655 tryPTHREAD_CFLAGS
="$flag"
19659 # skip this if we already have flags defined, for PostgreSQL
19660 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
19661 # Extract the first word of "pthread-config", so it can be a program name with args.
19662 set dummy pthread-config
; ac_word
=$2
19663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19665 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 if test -n "$acx_pthread_config"; then
19669 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
19671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19672 for as_dir
in $PATH
19675 test -z "$as_dir" && as_dir
=.
19676 for ac_exec_ext
in '' $ac_executable_extensions; do
19677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19678 ac_cv_prog_acx_pthread_config
="yes"
19679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19686 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
19689 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
19690 if test -n "$acx_pthread_config"; then
19691 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19692 echo "${ECHO_T}$acx_pthread_config" >&6; }
19694 { echo "$as_me:$LINENO: result: no" >&5
19695 echo "${ECHO_T}no" >&6; }
19699 if test x
"$acx_pthread_config" = xno
; then continue; fi
19700 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
19701 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
19705 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19706 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19707 tryPTHREAD_LIBS
="-l$flag"
19712 save_CFLAGS
="$CFLAGS"
19713 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19714 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19716 # Check for various functions. We must include pthread.h,
19717 # since some functions may be macros. (On the Sequent, we
19718 # need a special flag -Kthread to make this header compile.)
19719 # We check for pthread_join because it is in -lpthread on IRIX
19720 # while pthread_create is in libc. We check for pthread_attr_init
19721 # due to DEC craziness with -lpthreads. We check for
19722 # pthread_cleanup_push because it is one of the few pthread
19723 # functions on Solaris that doesn't have a non-functional libc stub.
19724 # We try pthread_create on general principles.
19725 cat >conftest.
$ac_ext <<_ACEOF
19728 cat confdefs.h
>>conftest.
$ac_ext
19729 cat >>conftest.
$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <pthread.h>
19735 pthread_t th; pthread_join(th, 0);
19736 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19737 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19742 rm -f conftest.
$ac_objext conftest
$ac_exeext
19743 if { (ac_try
="$ac_link"
19744 case "(($ac_try" in
19745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_link") 2>conftest.er1
19751 grep -v '^ *+' conftest.er1 >conftest.err
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && {
19756 test -z "$ac_c_werror_flag" ||
19757 test ! -s conftest.err
19758 } && test -s conftest$ac_exeext &&
19759 $as_test_x conftest$ac_exeext; then
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19769 conftest$ac_exeext conftest.$ac_ext
19771 if test "x$acx_pthread_ok" = xyes; then
19772 # Don't use options that are ignored by the compiler.
19773 # We find them by checking stderror.
19774 cat >conftest.$ac_ext <<_ACEOF
19776 main (int argc, char **argv)
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19785 # we continue with more flags because Linux needs -lpthread
19786 # for libpq builds on PostgreSQL. The test above only
19787 # tests for building binaries, not shared libraries.
19788 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19789 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19790 else acx_pthread_ok=no
19795 CFLAGS="$save_CFLAGS"
19797 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19798 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19802 # Various other checks:
19803 if test "x$acx_pthread_ok" = xyes; then
19805 LIBS="$PTHREAD_LIBS $LIBS"
19806 save_CFLAGS="$CFLAGS"
19807 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19809 # Detect AIX lossage: threads are created detached by default
19810 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19811 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19812 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 #include <pthread.h>
19823 int attr=PTHREAD_CREATE_JOINABLE;
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19832 *) ac_try_echo
=$ac_try;;
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19837 grep -v '^ *+' conftest.er1
>conftest.err
19839 cat conftest.err
>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest
$ac_exeext &&
19845 $as_test_x conftest
$ac_exeext; then
19846 ok
=PTHREAD_CREATE_JOINABLE
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.
$ac_ext >&5
19854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19855 conftest
$ac_exeext conftest.
$ac_ext
19856 if test x
"$ok" = xunknown
; then
19857 cat >conftest.
$ac_ext <<_ACEOF
19860 cat confdefs.h
>>conftest.
$ac_ext
19861 cat >>conftest.
$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19863 #include <pthread.h>
19867 int attr=PTHREAD_CREATE_UNDETACHED;
19872 rm -f conftest.
$ac_objext conftest
$ac_exeext
19873 if { (ac_try
="$ac_link"
19874 case "(($ac_try" in
19875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_link") 2>conftest.er1
19881 grep -v '^ *+' conftest.er1 >conftest.err
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } && {
19886 test -z "$ac_c_werror_flag" ||
19887 test ! -s conftest.err
19888 } && test -s conftest$ac_exeext &&
19889 $as_test_x conftest$ac_exeext; then
19890 ok=PTHREAD_CREATE_UNDETACHED
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19899 conftest$ac_exeext conftest.$ac_ext
19901 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define PTHREAD_CREATE_JOINABLE $ok
19908 { echo "$as_me:$LINENO: result: ${ok}" >&5
19909 echo "${ECHO_T}${ok}" >&6; }
19910 if test x"$ok" = xunknown; then
19911 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19912 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19915 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19916 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19918 # We always add these in PostgreSQL
19919 # case "${host_cpu}-${host_os}" in
19920 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19921 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19923 { echo "$as_me:$LINENO: result: ${flag}" >&5
19924 echo "${ECHO_T}${flag}" >&6; }
19925 if test "x$flag" != xno; then
19926 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19930 CFLAGS="$save_CFLAGS"
19932 # Supporting cc_r would require a special CC in all places that
19933 # use libpq, and that is ugly, so we don't do it. Users can still
19934 # define their compiler as cc_r to do thread builds of everything.
19935 # More AIX lossage: must compile with cc_r
19936 # Extract the first word of "cc_r", so it can be a program name with args.
19937 set dummy cc_r; ac_word=$2
19938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19940 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 if test -n "$PTHREAD_CC"; then
19944 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19947 for as_dir in $PATH
19950 test -z "$as_dir" && as_dir=.
19951 for ac_exec_ext in '' $ac_executable_extensions; do
19952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19953 ac_cv_prog_PTHREAD_CC="cc_r"
19954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19961 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19964 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19965 if test -n "$PTHREAD_CC"; then
19966 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19967 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19969 { echo "$as_me:$LINENO: result: no" >&5
19970 echo "${ECHO_T}no" >&6; }
19982 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19983 if test x"$acx_pthread_ok" = xyes; then
19985 cat >>confdefs.h <<\_ACEOF
19986 #define HAVE_PTHREAD 1
19995 ac_cpp='$CPP $CPPFLAGS'
19996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20002 # Some platforms use these, so just define them. They can't hurt if they
20003 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
20004 # enables 5-arg getpwuid_r, among other things.
20005 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
20008 # At this point, we don't want to muck with the compiler name for threading.
20009 # Let's see who fails, perhaps AIX. 2004-04-23
20010 if test "$PTHREAD_CC" != "$CC"; then
20011 { { echo "$as_me:$LINENO: error:
20012 PostgreSQL does not support platforms that require a special compiler
20013 for thread safety." >&5
20014 echo "$as_me: error:
20015 PostgreSQL does not support platforms that require a special compiler
20016 for thread safety." >&2;}
20017 { (exit 1); exit 1; }; }
20020 if test "$THREAD_SUPPORT" = no; then
20021 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
20022 This platform is known to not support thread-safe programs. For details,
20023 compile and run src/bin/pg_thread_test." >&5
20024 echo "$as_me: error: cannot enable threads on this platform
20025 This platform is known to not support thread-safe programs. For details,
20026 compile and run src/bin/pg_thread_test." >&2;}
20027 { (exit 1); exit 1; }; }
20030 # Check for *_r functions
20033 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20034 LIBS="$LIBS $PTHREAD_LIBS"
20036 if test "$PORTNAME" != "win32"; then
20037 if test "${ac_cv_header_pthread_h+set}" = set; then
20038 { echo "$as_me:$LINENO: checking for pthread.h" >&5
20039 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20040 if test "${ac_cv_header_pthread_h+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20044 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20046 # Is the header compilable?
20047 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
20048 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
20049 cat >conftest.$ac_ext <<_ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 $ac_includes_default
20056 #include <pthread.h>
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20062 *) ac_try_echo
=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1
>conftest.err
20069 cat conftest.err
>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && {
20072 test -z "$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 } && test -s conftest.
$ac_objext; then
20075 ac_header_compiler
=yes
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.
$ac_ext >&5
20080 ac_header_compiler
=no
20083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20085 echo "${ECHO_T}$ac_header_compiler" >&6; }
20087 # Is the header present?
20088 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
20089 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
20090 cat >conftest.
$ac_ext <<_ACEOF
20093 cat confdefs.h
>>conftest.
$ac_ext
20094 cat >>conftest.
$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096 #include <pthread.h>
20098 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20099 case "(($ac_try" in
20100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } >/dev/null && {
20111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20114 ac_header_preproc=yes
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ac_header_preproc=no
20122 rm -f conftest.err conftest.$ac_ext
20123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20124 echo "${ECHO_T}$ac_header_preproc" >&6; }
20126 # So? What about this header?
20127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20129 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
20130 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
20132 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
20133 ac_header_preproc=yes
20136 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
20137 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
20138 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
20139 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
20140 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
20141 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
20142 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
20143 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
20144 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
20145 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
20146 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
20147 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
20149 ## ---------------------------------------- ##
20150 ## Report this to pgsql-bugs@postgresql.org ##
20151 ## ---------------------------------------- ##
20153 ) | sed "s/^/$as_me: WARNING: /" >&2
20156 { echo "$as_me:$LINENO: checking for pthread.h" >&5
20157 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20158 if test "${ac_cv_header_pthread_h+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 ac_cv_header_pthread_h=$ac_header_preproc
20163 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20164 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20167 if test $ac_cv_header_pthread_h = yes; then
20170 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
20171 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
20172 { (exit 1); exit 1; }; }
20181 for ac_func in strerror_r getpwuid_r gethostbyname_r
20183 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20197 #define $ac_func innocuous_$ac_func
20199 /* System header to define __stub macros and hopefully few prototypes,
20200 which can conflict with char $ac_func (); below.
20201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20202 <limits.h> exists even on freestanding compilers. */
20205 # include <limits.h>
20207 # include <assert.h>
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20219 /* The GNU C library defines this for functions which it implements
20220 to always fail with ENOSYS. Some functions are actually named
20221 something starting with __ and the normal name is an alias. */
20222 #if defined __stub_$ac_func || defined __stub___$ac_func
20229 return $ac_func ();
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20238 *) ac_try_echo
=$ac_try;;
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_link") 2>conftest.er1
20243 grep -v '^ *+' conftest.er1
>conftest.err
20245 cat conftest.err
>&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } && {
20248 test -z "$ac_c_werror_flag" ||
20249 test ! -s conftest.err
20250 } && test -s conftest
$ac_exeext &&
20251 $as_test_x conftest
$ac_exeext; then
20252 eval "$as_ac_var=yes"
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.
$ac_ext >&5
20257 eval "$as_ac_var=no"
20260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20261 conftest
$ac_exeext conftest.
$ac_ext
20263 ac_res
=`eval echo '${'$as_ac_var'}'`
20264 { echo "$as_me:$LINENO: result: $ac_res" >&5
20265 echo "${ECHO_T}$ac_res" >&6; }
20266 if test `eval echo '${'$as_ac_var'}'` = yes; then
20267 cat >>confdefs.h
<<_ACEOF
20268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20275 # Do test here with the proper thread flags
20276 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
20277 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20278 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20281 cat >conftest.
$ac_ext <<_ACEOF
20284 cat confdefs.h
>>conftest.
$ac_ext
20285 cat >>conftest.
$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20287 #include <sys/types.h>
20293 struct passwd *space;
20296 struct passwd **result;
20297 getpwuid_r(uid, space, buf, bufsize, result);
20302 rm -f conftest.
$ac_objext
20303 if { (ac_try
="$ac_compile"
20304 case "(($ac_try" in
20305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_compile") 2>conftest.er1
20311 grep -v '^ *+' conftest.er1 >conftest.err
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest.$ac_objext; then
20319 pgac_cv_func_getpwuid_r_5arg=yes
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 pgac_cv_func_getpwuid_r_5arg=no
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20329 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20330 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20331 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
20333 cat >>confdefs.h <<\_ACEOF
20334 #define GETPWUID_R_5ARG
20339 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20340 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20341 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 cat >conftest.$ac_ext <<_ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 #include <string.h>
20355 int strerror_r(int, char *, size_t);
20357 /* Older AIX has 'int' for the third argument so we don't test the args. */
20364 rm -f conftest.$ac_objext
20365 if { (ac_try="$ac_compile"
20366 case "(($ac_try" in
20367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20368 *) ac_try_echo
=$ac_try;;
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371 (eval "$ac_compile") 2>conftest.er1
20373 grep -v '^ *+' conftest.er1
>conftest.err
20375 cat conftest.err
>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } && {
20378 test -z "$ac_c_werror_flag" ||
20379 test ! -s conftest.err
20380 } && test -s conftest.
$ac_objext; then
20381 pgac_cv_func_strerror_r_int
=yes
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.
$ac_ext >&5
20386 pgac_cv_func_strerror_r_int
=no
20389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20391 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20392 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20393 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
20395 cat >>confdefs.h
<<\_ACEOF
20396 #define STRERROR_R_INT
20406 # do not use values from template file
20415 # We can test for libldap_r only after we know PTHREAD_LIBS
20416 if test "$with_ldap" = yes ; then
20418 if test "$PORTNAME" != "win32"; then
20420 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20421 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20422 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20425 ac_check_lib_save_LIBS
=$LIBS
20426 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
20427 cat >conftest.
$ac_ext <<_ACEOF
20430 cat confdefs.h
>>conftest.
$ac_ext
20431 cat >>conftest.
$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20434 /* Override any GCC internal prototype to avoid an error.
20435 Use char because int might match the return type of a GCC
20436 builtin and then its argument prototype would still apply. */
20444 return ldap_bind ();
20449 rm -f conftest.
$ac_objext conftest
$ac_exeext
20450 if { (ac_try
="$ac_link"
20451 case "(($ac_try" in
20452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_link") 2>conftest.er1
20458 grep -v '^ *+' conftest.er1 >conftest.err
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest$ac_exeext &&
20466 $as_test_x conftest$ac_exeext; then
20467 ac_cv_lib_ldap_ldap_bind=yes
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20472 ac_cv_lib_ldap_ldap_bind=no
20475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20476 conftest$ac_exeext conftest.$ac_ext
20477 LIBS=$ac_check_lib_save_LIBS
20479 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20480 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20481 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_LIBLDAP 1
20486 LIBS="-lldap $LIBS"
20489 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20490 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20491 { (exit 1); exit 1; }; }
20494 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20495 if test "$enable_thread_safety" = yes; then
20496 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20498 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20499 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20500 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20503 ac_check_lib_save_LIBS=$LIBS
20504 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20505 cat >conftest.$ac_ext <<_ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20512 /* Override any GCC internal prototype to avoid an error.
20513 Use char because int might match the return type of a GCC
20514 builtin and then its argument prototype would still apply. */
20518 char ldap_simple_bind ();
20522 return ldap_simple_bind ();
20527 rm -f conftest.$ac_objext conftest$ac_exeext
20528 if { (ac_try="$ac_link"
20529 case "(($ac_try" in
20530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20531 *) ac_try_echo
=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_link") 2>conftest.er1
20536 grep -v '^ *+' conftest.er1
>conftest.err
20538 cat conftest.err
>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest
$ac_exeext &&
20544 $as_test_x conftest
$ac_exeext; then
20545 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.
$ac_ext >&5
20550 ac_cv_lib_ldap_r_ldap_simple_bind
=no
20553 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20554 conftest
$ac_exeext conftest.
$ac_ext
20555 LIBS
=$ac_check_lib_save_LIBS
20557 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20558 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20559 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20560 cat >>confdefs.h
<<_ACEOF
20561 #define HAVE_LIBLDAP_R 1
20564 LIBS
="-lldap_r $LIBS"
20567 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20568 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20569 { (exit 1); exit 1; }; }
20572 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
20574 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
20578 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20579 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20580 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 ac_check_lib_save_LIBS
=$LIBS
20584 LIBS
="-lwldap32 $LIBS"
20585 cat >conftest.
$ac_ext <<_ACEOF
20588 cat confdefs.h
>>conftest.
$ac_ext
20589 cat >>conftest.
$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20602 return ldap_bind ();
20607 rm -f conftest.
$ac_objext conftest
$ac_exeext
20608 if { (ac_try
="$ac_link"
20609 case "(($ac_try" in
20610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_link") 2>conftest.er1
20616 grep -v '^ *+' conftest.er1 >conftest.err
20618 cat conftest.err >&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest$ac_exeext &&
20624 $as_test_x conftest$ac_exeext; then
20625 ac_cv_lib_wldap32_ldap_bind=yes
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ac_cv_lib_wldap32_ldap_bind=no
20633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20634 conftest$ac_exeext conftest.$ac_ext
20635 LIBS=$ac_check_lib_save_LIBS
20637 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20638 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20639 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_LIBWLDAP32 1
20644 LIBS="-lwldap32 $LIBS"
20647 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20648 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20649 { (exit 1); exit 1; }; }
20652 LDAP_LIBS_FE="-lwldap32"
20653 LDAP_LIBS_BE="-lwldap32"
20661 # This test makes sure that run tests work at all. Sometimes a shared
20662 # library is found by the linker, but the runtime linker can't find it.
20663 # This check should come after all modifications of compiler or linker
20664 # variables, and before any other run tests.
20665 { echo "$as_me:$LINENO: checking test program" >&5
20666 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20667 if test "$cross_compiling" = yes; then
20668 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20669 echo "${ECHO_T}cross-compiling" >&6; }
20671 cat >conftest.$ac_ext <<_ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 int main() { return 0; }
20679 rm -f conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20683 *) ac_try_echo
=$ac_try;;
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_link") 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20690 { (case "(($ac_try" in
20691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_try") 2>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; }; then
20699 { echo "$as_me:$LINENO: result: ok" >&5
20700 echo "${ECHO_T}ok" >&6; }
20702 echo "$as_me: program exited with status $ac_status" >&5
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ( exit $ac_status )
20707 { echo "$as_me:$LINENO: result: failed" >&5
20708 echo "${ECHO_T}failed" >&6; }
20709 { { echo "$as_me:$LINENO: error:
20710 Could not execute a simple test program. This may be a problem
20711 related to locating shared libraries. Check the file 'config.log'
20712 for the exact reason." >&5
20713 echo "$as_me: error:
20714 Could not execute a simple test program. This may be a problem
20715 related to locating shared libraries. Check the file 'config.log'
20716 for the exact reason." >&2;}
20717 { (exit 1); exit 1; }; }
20719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20724 # --------------------
20725 # Run tests below here
20726 # --------------------
20728 # Force use of our snprintf if system's doesn't do arg control
20729 # See comment above at snprintf test for details.
20730 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20731 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20732 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20733 if test "${pgac_cv_printf_arg_control+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20736 if test "$cross_compiling" = yes; then
20737 pgac_cv_printf_arg_control=cross
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20746 #include <string.h>
20752 /* can it swap arguments? */
20753 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20754 if (strcmp(buf, "4 3") != 0)
20759 rm -f conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20763 *) ac_try_echo
=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_link") 2>&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20770 { (case "(($ac_try" in
20771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_try") 2>&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 pgac_cv_printf_arg_control=yes
20781 echo "$as_me: program exited with status $ac_status" >&5
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 ( exit $ac_status )
20786 pgac_cv_printf_arg_control=no
20788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20794 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20795 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20797 if test $pgac_cv_printf_arg_control != yes ; then
20798 pgac_need_repl_snprintf=yes
20804 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20805 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20806 if test "${pgac_cv_type_long_int_64+set}" = set; then
20807 echo $ECHO_N "(cached) $ECHO_C" >&6
20809 if test "$cross_compiling" = yes; then
20810 # If cross-compiling, check the size reported by the compiler and
20811 # trust that the arithmetic works.
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20822 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20829 rm -f conftest.$ac_objext
20830 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20838 grep -v '^ *+' conftest.er1
>conftest.err
20840 cat conftest.err
>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest.
$ac_objext; then
20846 pgac_cv_type_long_int_64
=yes
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.
$ac_ext >&5
20851 pgac_cv_type_long_int_64
=no
20854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20856 cat >conftest.
$ac_ext <<_ACEOF
20859 cat confdefs.h
>>conftest.
$ac_ext
20860 cat >>conftest.
$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20862 typedef long int ac_int64;
20865 * These are globals to discourage the compiler from folding all the
20866 * arithmetic tests down to compile-time constants.
20868 ac_int64 a = 20000001;
20869 ac_int64 b = 40000005;
20871 int does_int64_work()
20875 if (sizeof(ac_int64) != 8)
20876 return 0; /* definitely not the right size */
20878 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20886 exit(! does_int64_work());
20889 rm -f conftest
$ac_exeext
20890 if { (ac_try
="$ac_link"
20891 case "(($ac_try" in
20892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_link") 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20900 { (case "(($ac_try" in
20901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20902 *) ac_try_echo
=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_try") 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 pgac_cv_type_long_int_64
=yes
20911 echo "$as_me: program exited with status $ac_status" >&5
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.
$ac_ext >&5
20915 ( exit $ac_status )
20916 pgac_cv_type_long_int_64
=no
20918 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20923 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20924 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20926 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
20927 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
20929 cat >>confdefs.h
<<\_ACEOF
20930 #define HAVE_LONG_INT_64 1
20936 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
20937 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20938 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20939 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 if test "$cross_compiling" = yes; then
20943 # If cross-compiling, check the size reported by the compiler and
20944 # trust that the arithmetic works.
20945 cat >conftest.
$ac_ext <<_ACEOF
20948 cat confdefs.h
>>conftest.
$ac_ext
20949 cat >>conftest.
$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20955 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20962 rm -f conftest.
$ac_objext
20963 if { (ac_try
="$ac_compile"
20964 case "(($ac_try" in
20965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_compile") 2>conftest.er1
20971 grep -v '^ *+' conftest.er1 >conftest.err
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } && {
20976 test -z "$ac_c_werror_flag" ||
20977 test ! -s conftest.err
20978 } && test -s conftest.$ac_objext; then
20979 pgac_cv_type_long_long_int_64=yes
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20984 pgac_cv_type_long_long_int_64=no
20987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 typedef long long int ac_int64;
20998 * These are globals to discourage the compiler from folding all the
20999 * arithmetic tests down to compile-time constants.
21001 ac_int64 a = 20000001;
21002 ac_int64 b = 40000005;
21004 int does_int64_work()
21008 if (sizeof(ac_int64) != 8)
21009 return 0; /* definitely not the right size */
21011 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
21019 exit(! does_int64_work());
21022 rm -f conftest$ac_exeext
21023 if { (ac_try="$ac_link"
21024 case "(($ac_try" in
21025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21026 *) ac_try_echo
=$ac_try;;
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_link") 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21033 { (case "(($ac_try" in
21034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_try") 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 pgac_cv_type_long_long_int_64=yes
21044 echo "$as_me: program exited with status $ac_status" >&5
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 ( exit $ac_status )
21049 pgac_cv_type_long_long_int_64=no
21051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21056 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
21057 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
21059 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
21060 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
21062 cat >>confdefs.h <<\_ACEOF
21063 #define HAVE_LONG_LONG_INT_64 1
21072 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21080 #define INT64CONST(x) x##LL
21081 long long int foo = INT64CONST(0x1234567890123456);
21091 rm -f conftest.$ac_objext
21092 if { (ac_try="$ac_compile"
21093 case "(($ac_try" in
21094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21095 *) ac_try_echo
=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_compile") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1
>conftest.err
21102 cat conftest.err
>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest.
$ac_objext; then
21109 cat >>confdefs.h
<<\_ACEOF
21110 #define HAVE_LL_CONSTANTS 1
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.
$ac_ext >&5
21120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21124 # If we found "long int" is 64 bits, assume snprintf handles it. If
21125 # we found we need to use "long long int", better check. We cope with
21126 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
21127 # work, fall back to our own snprintf emulation (which we know uses %lld).
21129 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
21130 if test $pgac_need_repl_snprintf = no
; then
21131 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
21132 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
21133 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 for pgac_format
in '%lld' '%qd' '%I64d'; do
21137 if test "$cross_compiling" = yes; then
21138 pgac_cv_snprintf_long_long_int_format
=cross
; break
21140 cat >conftest.
$ac_ext <<_ACEOF
21143 cat confdefs.h
>>conftest.
$ac_ext
21144 cat >>conftest.
$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21147 typedef long long int ac_int64;
21148 #define INT64_FORMAT "$pgac_format"
21150 ac_int64 a = 20000001;
21151 ac_int64 b = 40000005;
21153 int does_int64_snprintf_work()
21158 if (sizeof(ac_int64) != 8)
21159 return 0; /* doesn't look like the right size */
21162 snprintf(buf, 100, INT64_FORMAT, c);
21163 if (strcmp(buf, "800000140000005") != 0)
21164 return 0; /* either multiply or snprintf is busted */
21168 exit(! does_int64_snprintf_work());
21171 rm -f conftest
$ac_exeext
21172 if { (ac_try
="$ac_link"
21173 case "(($ac_try" in
21174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_link") 2>&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21182 { (case "(($ac_try" in
21183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21184 *) ac_try_echo
=$ac_try;;
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_try") 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
21193 echo "$as_me: program exited with status $ac_status" >&5
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.
$ac_ext >&5
21198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21205 LONG_LONG_INT_FORMAT
=''
21207 case $pgac_cv_snprintf_long_long_int_format in
21208 cross
) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
21209 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
21210 ?
*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
21211 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
21212 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
21213 *) { echo "$as_me:$LINENO: result: none" >&5
21214 echo "${ECHO_T}none" >&6; };;
21216 if test "$LONG_LONG_INT_FORMAT" = ""; then
21217 # Force usage of our own snprintf, since system snprintf is broken
21218 pgac_need_repl_snprintf
=yes
21219 LONG_LONG_INT_FORMAT
='%lld'
21222 # Here if we previously decided we needed to use our own snprintf
21223 LONG_LONG_INT_FORMAT
='%lld'
21225 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
21226 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
21227 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
21229 # Here if we are not using 'long long int' at all
21230 INT64_FORMAT
='"%ld"'
21231 UINT64_FORMAT
='"%lu"'
21235 cat >>confdefs.h
<<_ACEOF
21236 #define INT64_FORMAT $INT64_FORMAT
21241 cat >>confdefs.h
<<_ACEOF
21242 #define UINT64_FORMAT $UINT64_FORMAT
21246 # Now we have checked all the reasons to replace snprintf
21247 if test $pgac_need_repl_snprintf = yes; then
21249 cat >>confdefs.h
<<\_ACEOF
21250 #define USE_REPL_SNPRINTF 1
21253 case " $LIBOBJS " in
21254 *" snprintf.$ac_objext "* ) ;;
21255 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
21261 # Need a #define for the size of Datum (unsigned long)
21262 { echo "$as_me:$LINENO: checking for unsigned long" >&5
21263 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
21264 if test "${ac_cv_type_unsigned_long+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 cat >conftest.
$ac_ext <<_ACEOF
21270 cat confdefs.h
>>conftest.
$ac_ext
21271 cat >>conftest.
$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 $ac_includes_default
21274 typedef unsigned long ac__type_new_;
21278 if ((ac__type_new_ *) 0)
21280 if (sizeof (ac__type_new_))
21286 rm -f conftest.
$ac_objext
21287 if { (ac_try
="$ac_compile"
21288 case "(($ac_try" in
21289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_compile") 2>conftest.er1
21295 grep -v '^ *+' conftest.er1 >conftest.err
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest.$ac_objext; then
21303 ac_cv_type_unsigned_long=yes
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ac_cv_type_unsigned_long=no
21311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21314 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21316 # The cast to long int works around a bug in the HP C Compiler
21317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21318 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
21319 # This bug is HP SR number 8606223364.
21320 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21321 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21322 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 if test "$cross_compiling" = yes; then
21326 # Depending upon the size, compute the lo and hi bounds.
21327 cat >conftest.$ac_ext <<_ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 $ac_includes_default
21334 typedef unsigned long ac__type_sizeof_;
21338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21345 rm -f conftest.$ac_objext
21346 if { (ac_try="$ac_compile"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_compile") 2>conftest.er1
21354 grep -v '^
*+' conftest.er1 >conftest.err
21356 cat conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && {
21359 test -z "$ac_c_werror_flag" ||
21360 test ! -s conftest.err
21361 } && test -s conftest.$ac_objext; then
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 $ac_includes_default
21371 typedef unsigned long ac__type_sizeof_;
21375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21391 grep -v '^
*+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 ac_hi=$ac_mid; break
21401 echo "$as_me: failed program was:" >&5
21402 sed 's
/^
/|
/' conftest.$ac_ext >&5
21404 ac_lo=`expr $ac_mid + 1`
21405 if test $ac_lo -le $ac_mid; then
21409 ac_mid=`expr 2 '*' $ac_mid + 1`
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 echo "$as_me: failed program was:" >&5
21416 sed 's
/^
/|
/' conftest.$ac_ext >&5
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21425 typedef unsigned long ac__type_sizeof_;
21429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 $ac_includes_default
21462 typedef unsigned long ac__type_sizeof_;
21466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21473 rm -f conftest.$ac_objext
21474 if { (ac_try="$ac_compile"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_compile") 2>conftest.er1
21482 grep -v '^
*+' conftest.er1 >conftest.err
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } && {
21487 test -z "$ac_c_werror_flag" ||
21488 test ! -s conftest.err
21489 } && test -s conftest.$ac_objext; then
21490 ac_lo=$ac_mid; break
21492 echo "$as_me: failed program was:" >&5
21493 sed 's
/^
/|
/' conftest.$ac_ext >&5
21495 ac_hi=`expr '(' $ac_mid ')' - 1`
21496 if test $ac_mid -le $ac_hi; then
21500 ac_mid=`expr 2 '*' $ac_mid`
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 echo "$as_me: failed program was:" >&5
21507 sed 's
/^
/|
/' conftest.$ac_ext >&5
21512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 # Binary search between lo and hi bounds.
21517 while test "x$ac_lo" != "x$ac_hi"; do
21518 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21519 cat >conftest.$ac_ext <<_ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21525 $ac_includes_default
21526 typedef unsigned long ac__type_sizeof_;
21530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21537 rm -f conftest.$ac_objext
21538 if { (ac_try="$ac_compile"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_compile") 2>conftest.er1
21546 grep -v '^
*+' conftest.er1 >conftest.err
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest.$ac_objext; then
21556 echo "$as_me: failed program was:" >&5
21557 sed 's
/^
/|
/' conftest.$ac_ext >&5
21559 ac_lo=`expr '(' $ac_mid ')' + 1`
21562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21565 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21566 '') if test "$ac_cv_type_unsigned_long" = yes; then
21567 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21568 See \`config.log' for more details.
" >&5
21569 echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
21570 See \
`config.log' for more details." >&2;}
21571 { (exit 77); exit 77; }; }
21573 ac_cv_sizeof_unsigned_long=0
21577 cat >conftest.$ac_ext <<_ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 typedef unsigned long ac__type_sizeof_;
21585 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21586 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21588 #include <stdlib.h>
21593 FILE *f = fopen ("conftest.val", "w");
21596 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21598 long int i = longval ();
21599 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21601 fprintf (f, "%ld\n", i);
21605 unsigned long int i = ulongval ();
21606 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21608 fprintf (f, "%lu\n", i);
21610 return ferror (f) || fclose (f) != 0;
21616 rm -f conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21620 *) ac_try_echo
=$ac_try;;
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_link") 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21627 { (case "(($ac_try" in
21628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_try") 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 ac_cv_sizeof_unsigned_long=`cat conftest.val
`
21638 echo "$as_me: program exited with status $ac_status" >&5
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 ( exit $ac_status )
21643 if test "$ac_cv_type_unsigned_long" = yes; then
21644 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21645 See \`config.log
' for more details." >&5
21646 echo "$as_me: error: cannot compute sizeof (unsigned long)
21647 See \`config.log' for more details.
" >&2;}
21648 { (exit 77); exit 77; }; }
21650 ac_cv_sizeof_unsigned_long=0
21653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21657 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_unsigned_long" >&5
21658 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21662 cat >>confdefs.h <<_ACEOF
21663 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21668 # And check size of void *, size_t (enables tweaks for > 32bit address space)
21669 { echo "$as_me:$LINENO: checking
for void
*" >&5
21670 echo $ECHO_N "checking
for void
*...
$ECHO_C" >&6; }
21671 if test "${ac_cv_type_void_p+set}" = set; then
21672 echo $ECHO_N "(cached
) $ECHO_C" >&6
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 typedef void * ac__type_new_;
21685 if ((ac__type_new_ *) 0)
21687 if (sizeof (ac__type_new_))
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_compile") 2>conftest.er1
21702 grep -v '^ *+' conftest.er1 >conftest.err
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest.$ac_objext; then
21710 ac_cv_type_void_p=yes
21712 echo "$as_me: failed program was
:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_cv_type_void_p=no
21718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result
: $ac_cv_type_void_p" >&5
21721 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21723 # The cast to long int works around a bug in the HP C Compiler
21724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21726 # This bug is HP SR number 8606223364.
21727 { echo "$as_me:$LINENO: checking size of void
*" >&5
21728 echo $ECHO_N "checking size of void
*...
$ECHO_C" >&6; }
21729 if test "${ac_cv_sizeof_void_p+set}" = set; then
21730 echo $ECHO_N "(cached
) $ECHO_C" >&6
21732 if test "$cross_compiling" = yes; then
21733 # Depending upon the size, compute the lo and hi bounds.
21734 cat >conftest.$ac_ext <<_ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 $ac_includes_default
21741 typedef void * ac__type_sizeof_;
21745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21752 rm -f conftest.$ac_objext
21753 if { (ac_try="$ac_compile"
21754 case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_compile") 2>conftest.er1
21761 grep -v '^ *+' conftest.er1 >conftest.err
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest.$ac_objext; then
21771 cat >conftest.$ac_ext <<_ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 $ac_includes_default
21778 typedef void * ac__type_sizeof_;
21782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21789 rm -f conftest.$ac_objext
21790 if { (ac_try="$ac_compile"
21791 case "(($ac_try" in
21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21796 (eval "$ac_compile") 2>conftest.er1
21798 grep -v '^ *+' conftest.er1 >conftest.err
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest.$ac_objext; then
21806 ac_hi=$ac_mid; break
21808 echo "$as_me: failed program was
:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ac_lo=`expr $ac_mid + 1`
21812 if test $ac_lo -le $ac_mid; then
21816 ac_mid=`expr 2 '*' $ac_mid + 1`
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822 echo "$as_me: failed program was
:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 cat >conftest.$ac_ext <<_ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 $ac_includes_default
21832 typedef void * ac__type_sizeof_;
21836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21843 rm -f conftest.$ac_objext
21844 if { (ac_try="$ac_compile"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_compile") 2>conftest.er1
21852 grep -v '^ *+' conftest.er1 >conftest.err
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21856 (exit $ac_status); } && {
21857 test -z "$ac_c_werror_flag" ||
21858 test ! -s conftest.err
21859 } && test -s conftest.$ac_objext; then
21862 cat >conftest.$ac_ext <<_ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 $ac_includes_default
21869 typedef void * ac__type_sizeof_;
21873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21880 rm -f conftest.$ac_objext
21881 if { (ac_try="$ac_compile"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21887 (eval "$ac_compile") 2>conftest.er1
21889 grep -v '^ *+' conftest.er1 >conftest.err
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest.$ac_objext; then
21897 ac_lo=$ac_mid; break
21899 echo "$as_me: failed program was
:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 ac_hi=`expr '(' $ac_mid ')' - 1`
21903 if test $ac_mid -le $ac_hi; then
21907 ac_mid=`expr 2 '*' $ac_mid`
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21913 echo "$as_me: failed program was
:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 # Binary search between lo and hi bounds.
21924 while test "x
$ac_lo" != "x
$ac_hi"; do
21925 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21926 cat >conftest.$ac_ext <<_ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21932 $ac_includes_default
21933 typedef void * ac__type_sizeof_;
21937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_compile") 2>conftest.er1
21953 grep -v '^ *+' conftest.er1 >conftest.err
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21957 (exit $ac_status); } && {
21958 test -z "$ac_c_werror_flag" ||
21959 test ! -s conftest.err
21960 } && test -s conftest.$ac_objext; then
21963 echo "$as_me: failed program was
:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ac_lo=`expr '(' $ac_mid ')' + 1`
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21972 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21973 '') if test "$ac_cv_type_void_p" = yes; then
21974 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
21975 See \
`config.log' for more details." >&5
21976 echo "$as_me: error: cannot compute sizeof (void *)
21977 See \`config.log
' for more details." >&2;}
21978 { (exit 77); exit 77; }; }
21980 ac_cv_sizeof_void_p=0
21984 cat >conftest.$ac_ext <<_ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 $ac_includes_default
21991 typedef void * ac__type_sizeof_;
21992 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21993 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21995 #include <stdlib.h>
22000 FILE *f = fopen ("conftest.val", "w");
22003 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22005 long int i = longval ();
22006 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22008 fprintf (f, "%ld\n", i);
22012 unsigned long int i = ulongval ();
22013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22015 fprintf (f, "%lu\n", i);
22017 return ferror (f) || fclose (f) != 0;
22023 rm -f conftest$ac_exeext
22024 if { (ac_try="$ac_link"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_link") 2>&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22034 { (case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_try") 2>&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
22043 ac_cv_sizeof_void_p=`cat conftest.val`
22045 echo "$as_me: program exited with status $ac_status" >&5
22046 echo "$as_me: failed program was:" >&5
22047 sed 's
/^
/|
/' conftest.$ac_ext >&5
22049 ( exit $ac_status )
22050 if test "$ac_cv_type_void_p" = yes; then
22051 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22052 See \`config.log' for more details.
" >&5
22053 echo "$as_me: error
: cannot compute sizeof
(void
*)
22054 See \
`config.log' for more details." >&2;}
22055 { (exit 77); exit 77; }; }
22057 ac_cv_sizeof_void_p=0
22060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22064 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22065 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22069 cat >>confdefs.h <<_ACEOF
22070 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22074 { echo "$as_me:$LINENO: checking for size_t" >&5
22075 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22076 if test "${ac_cv_type_size_t+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 cat >conftest.$ac_ext <<_ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 $ac_includes_default
22086 typedef size_t ac__type_new_;
22090 if ((ac__type_new_ *) 0)
22092 if (sizeof (ac__type_new_))
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22102 *) ac_try_echo
=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22107 grep -v '^ *+' conftest.er1
>conftest.err
22109 cat conftest.err
>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_c_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest.
$ac_objext; then
22115 ac_cv_type_size_t
=yes
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.
$ac_ext >&5
22120 ac_cv_type_size_t
=no
22123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22125 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22126 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22128 # The cast to long int works around a bug in the HP C Compiler
22129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22131 # This bug is HP SR number 8606223364.
22132 { echo "$as_me:$LINENO: checking size of size_t" >&5
22133 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22134 if test "${ac_cv_sizeof_size_t+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 if test "$cross_compiling" = yes; then
22138 # Depending upon the size, compute the lo and hi bounds.
22139 cat >conftest.
$ac_ext <<_ACEOF
22142 cat confdefs.h
>>conftest.
$ac_ext
22143 cat >>conftest.
$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 $ac_includes_default
22146 typedef size_t ac__type_sizeof_;
22150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22157 rm -f conftest.
$ac_objext
22158 if { (ac_try
="$ac_compile"
22159 case "(($ac_try" in
22160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_compile") 2>conftest.er1
22166 grep -v '^ *+' conftest.er1 >conftest.err
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest.$ac_objext; then
22176 cat >conftest.$ac_ext <<_ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 $ac_includes_default
22183 typedef size_t ac__type_sizeof_;
22187 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22194 rm -f conftest.$ac_objext
22195 if { (ac_try="$ac_compile"
22196 case "(($ac_try" in
22197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22198 *) ac_try_echo
=$ac_try;;
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_compile") 2>conftest.er1
22203 grep -v '^ *+' conftest.er1
>conftest.err
22205 cat conftest.err
>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } && {
22208 test -z "$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 } && test -s conftest.
$ac_objext; then
22211 ac_hi
=$ac_mid; break
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.
$ac_ext >&5
22216 ac_lo
=`expr $ac_mid + 1`
22217 if test $ac_lo -le $ac_mid; then
22221 ac_mid
=`expr 2 '*' $ac_mid + 1`
22224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.
$ac_ext >&5
22230 cat >conftest.
$ac_ext <<_ACEOF
22233 cat confdefs.h
>>conftest.
$ac_ext
22234 cat >>conftest.
$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 $ac_includes_default
22237 typedef size_t ac__type_sizeof_;
22241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22248 rm -f conftest.
$ac_objext
22249 if { (ac_try
="$ac_compile"
22250 case "(($ac_try" in
22251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_compile") 2>conftest.er1
22257 grep -v '^ *+' conftest.er1 >conftest.err
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest.$ac_objext; then
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 $ac_includes_default
22274 typedef size_t ac__type_sizeof_;
22278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22285 rm -f conftest.$ac_objext
22286 if { (ac_try="$ac_compile"
22287 case "(($ac_try" in
22288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22289 *) ac_try_echo
=$ac_try;;
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_compile") 2>conftest.er1
22294 grep -v '^ *+' conftest.er1
>conftest.err
22296 cat conftest.err
>&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && {
22299 test -z "$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22301 } && test -s conftest.
$ac_objext; then
22302 ac_lo
=$ac_mid; break
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.
$ac_ext >&5
22307 ac_hi
=`expr '(' $ac_mid ')' - 1`
22308 if test $ac_mid -le $ac_hi; then
22312 ac_mid
=`expr 2 '*' $ac_mid`
22315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.
$ac_ext >&5
22324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22328 # Binary search between lo and hi bounds.
22329 while test "x$ac_lo" != "x$ac_hi"; do
22330 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22331 cat >conftest.
$ac_ext <<_ACEOF
22334 cat confdefs.h
>>conftest.
$ac_ext
22335 cat >>conftest.
$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 $ac_includes_default
22338 typedef size_t ac__type_sizeof_;
22342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22349 rm -f conftest.
$ac_objext
22350 if { (ac_try
="$ac_compile"
22351 case "(($ac_try" in
22352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_compile") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest.$ac_objext; then
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 ac_lo=`expr '(' $ac_mid ')' + 1`
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22378 '') if test "$ac_cv_type_size_t" = yes; then
22379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22380 See \`config.log
' for more details." >&5
22381 echo "$as_me: error: cannot compute sizeof (size_t)
22382 See \`config.log' for more details.
" >&2;}
22383 { (exit 77); exit 77; }; }
22385 ac_cv_sizeof_size_t=0
22389 cat >conftest.$ac_ext <<_ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395 $ac_includes_default
22396 typedef size_t ac__type_sizeof_;
22397 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22398 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22400 #include <stdlib.h>
22405 FILE *f = fopen ("conftest.val
", "w
");
22408 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22410 long int i = longval ();
22411 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22413 fprintf (f, "%ld
\n", i);
22417 unsigned long int i = ulongval ();
22418 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22420 fprintf (f, "%lu
\n", i);
22422 return ferror (f) || fclose (f) != 0;
22428 rm -f conftest$ac_exeext
22429 if { (ac_try="$ac_link"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_link") 2>&5
22437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22439 { (case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22444 (eval "$ac_try") 2>&5
22446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 ac_cv_sizeof_size_t=`cat conftest.val`
22450 echo "$as_me: program exited with status
$ac_status" >&5
22451 echo "$as_me: failed program was
:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ( exit $ac_status )
22455 if test "$ac_cv_type_size_t" = yes; then
22456 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
22457 See \
`config.log' for more details." >&5
22458 echo "$as_me: error: cannot compute sizeof (size_t)
22459 See \`config.log
' for more details." >&2;}
22460 { (exit 77); exit 77; }; }
22462 ac_cv_sizeof_size_t=0
22465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22469 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22470 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22474 cat >>confdefs.h <<_ACEOF
22475 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22480 # Decide whether float4 is passed by value: user-selectable, enabled by default
22481 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22482 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22484 pgac_args="$pgac_args enable_float4_byval"
22486 # Check whether --enable-float4-byval was given.
22487 if test "${enable_float4_byval+set}" = set; then
22488 enableval=$enable_float4_byval;
22492 cat >>confdefs.h <<\_ACEOF
22493 #define USE_FLOAT4_BYVAL 1
22496 float4passbyval=true
22499 float4passbyval=false
22502 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22503 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22504 { (exit 1); exit 1; }; }
22509 enable_float4_byval=yes
22511 cat >>confdefs.h <<\_ACEOF
22512 #define USE_FLOAT4_BYVAL 1
22515 float4passbyval=true
22519 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22520 echo "${ECHO_T}$enable_float4_byval" >&6; }
22522 cat >>confdefs.h <<_ACEOF
22523 #define FLOAT4PASSBYVAL $float4passbyval
22527 # Decide whether float8 is passed by value.
22528 # Note: this setting also controls int8 and related types such as timestamp.
22529 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22530 # If not, trying to select it is an error.
22531 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22532 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22533 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22535 pgac_args="$pgac_args enable_float8_byval"
22537 # Check whether --enable-float8-byval was given.
22538 if test "${enable_float8_byval+set}" = set; then
22539 enableval=$enable_float8_byval;
22548 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22549 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22550 { (exit 1); exit 1; }; }
22555 enable_float8_byval=yes
22562 pgac_args="$pgac_args enable_float8_byval"
22564 # Check whether --enable-float8-byval was given.
22565 if test "${enable_float8_byval+set}" = set; then
22566 enableval=$enable_float8_byval;
22575 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22576 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22577 { (exit 1); exit 1; }; }
22582 enable_float8_byval=no
22587 if test "$enable_float8_byval" = yes ; then
22588 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22589 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22590 { (exit 1); exit 1; }; }
22593 if test "$enable_float8_byval" = yes ; then
22595 cat >>confdefs.h <<\_ACEOF
22596 #define USE_FLOAT8_BYVAL 1
22599 float8passbyval=true
22601 float8passbyval=false
22603 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22604 echo "${ECHO_T}$enable_float8_byval" >&6; }
22606 cat >>confdefs.h <<_ACEOF
22607 #define FLOAT8PASSBYVAL $float8passbyval
22611 # Determine memory alignment requirements for the basic C data types.
22613 { echo "$as_me:$LINENO: checking for short" >&5
22614 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22615 if test "${ac_cv_type_short+set}" = set; then
22616 echo $ECHO_N "(cached) $ECHO_C" >&6
22618 cat >conftest.$ac_ext <<_ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 $ac_includes_default
22625 typedef short ac__type_new_;
22629 if ((ac__type_new_ *) 0)
22631 if (sizeof (ac__type_new_))
22637 rm -f conftest.$ac_objext
22638 if { (ac_try="$ac_compile"
22639 case "(($ac_try" in
22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641 *) ac_try_echo=$ac_try;;
22643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_compile") 2>conftest.er1
22646 grep -v '^
*+' conftest.er1 >conftest.err
22648 cat conftest.err >&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest.$ac_objext; then
22654 ac_cv_type_short=yes
22656 echo "$as_me: failed program was:" >&5
22657 sed 's
/^
/|
/' conftest.$ac_ext >&5
22659 ac_cv_type_short=no
22662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22664 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22665 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22667 # The cast to long int works around a bug in the HP C Compiler,
22668 # see AC_CHECK_SIZEOF for more information.
22669 { echo "$as_me:$LINENO: checking alignment of short" >&5
22670 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22671 if test "${ac_cv_alignof_short+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22674 if test "$cross_compiling" = yes; then
22675 # Depending upon the size, compute the lo and hi bounds.
22676 cat >conftest.$ac_ext <<_ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 $ac_includes_default
22684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22686 typedef struct { char x; short y; } ac__type_alignof_;
22690 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22706 grep -v '^
*+' conftest.er1 >conftest.err
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest.$ac_objext; then
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 $ac_includes_default
22724 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22726 typedef struct { char x; short y; } ac__type_alignof_;
22730 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22746 grep -v '^
*+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_hi=$ac_mid; break
22756 echo "$as_me: failed program was:" >&5
22757 sed 's
/^
/|
/' conftest.$ac_ext >&5
22759 ac_lo=`expr $ac_mid + 1`
22760 if test $ac_lo -le $ac_mid; then
22764 ac_mid=`expr 2 '*' $ac_mid + 1`
22767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22770 echo "$as_me: failed program was:" >&5
22771 sed 's
/^
/|
/' conftest.$ac_ext >&5
22773 cat >conftest.$ac_ext <<_ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 $ac_includes_default
22781 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22783 typedef struct { char x; short y; } ac__type_alignof_;
22787 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22794 rm -f conftest.$ac_objext
22795 if { (ac_try="$ac_compile"
22796 case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22801 (eval "$ac_compile") 2>conftest.er1
22803 grep -v '^
*+' conftest.er1 >conftest.err
22805 cat conftest.err >&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } && {
22808 test -z "$ac_c_werror_flag" ||
22809 test ! -s conftest.err
22810 } && test -s conftest.$ac_objext; then
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 $ac_includes_default
22821 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22823 typedef struct { char x; short y; } ac__type_alignof_;
22827 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22834 rm -f conftest.$ac_objext
22835 if { (ac_try="$ac_compile"
22836 case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841 (eval "$ac_compile") 2>conftest.er1
22843 grep -v '^
*+' conftest.er1 >conftest.err
22845 cat conftest.err >&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } && {
22848 test -z "$ac_c_werror_flag" ||
22849 test ! -s conftest.err
22850 } && test -s conftest.$ac_objext; then
22851 ac_lo=$ac_mid; break
22853 echo "$as_me: failed program was:" >&5
22854 sed 's
/^
/|
/' conftest.$ac_ext >&5
22856 ac_hi=`expr '(' $ac_mid ')' - 1`
22857 if test $ac_mid -le $ac_hi; then
22861 ac_mid=`expr 2 '*' $ac_mid`
22864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 echo "$as_me: failed program was:" >&5
22868 sed 's
/^
/|
/' conftest.$ac_ext >&5
22873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 # Binary search between lo and hi bounds.
22878 while test "x$ac_lo" != "x$ac_hi"; do
22879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22880 cat >conftest.$ac_ext <<_ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22888 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22890 typedef struct { char x; short y; } ac__type_alignof_;
22894 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22901 rm -f conftest.$ac_objext
22902 if { (ac_try="$ac_compile"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908 (eval "$ac_compile") 2>conftest.er1
22910 grep -v '^
*+' conftest.er1 >conftest.err
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } && {
22915 test -z "$ac_c_werror_flag" ||
22916 test ! -s conftest.err
22917 } && test -s conftest.$ac_objext; then
22920 echo "$as_me: failed program was:" >&5
22921 sed 's
/^
/|
/' conftest.$ac_ext >&5
22923 ac_lo=`expr '(' $ac_mid ')' + 1`
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929 ?*) ac_cv_alignof_short=$ac_lo;;
22930 '') if test "$ac_cv_type_short" = yes; then
22931 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22932 See \`config.log' for more details.
" >&5
22933 echo "$as_me: error
: cannot compute alignment of short
22934 See \
`config.log' for more details." >&2;}
22935 { (exit 77); exit 77; }; }
22937 ac_cv_alignof_short=0
22941 cat >conftest.$ac_ext <<_ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947 $ac_includes_default
22949 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22951 typedef struct { char x; short y; } ac__type_alignof_;
22952 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22953 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22955 #include <stdlib.h>
22960 FILE *f = fopen ("conftest.val", "w");
22963 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22965 long int i = longval ();
22966 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22968 fprintf (f, "%ld\n", i);
22972 unsigned long int i = ulongval ();
22973 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22975 fprintf (f, "%lu\n", i);
22977 return ferror (f) || fclose (f) != 0;
22983 rm -f conftest$ac_exeext
22984 if { (ac_try="$ac_link"
22985 case "(($ac_try" in
22986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22987 *) ac_try_echo
=$ac_try;;
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_link") 2>&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22994 { (case "(($ac_try" in
22995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_try") 2>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_cv_alignof_short=`cat conftest.val
`
23005 echo "$as_me: program exited with status $ac_status" >&5
23006 echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23009 ( exit $ac_status )
23010 if test "$ac_cv_type_short" = yes; then
23011 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
23012 See \`config.log
' for more details." >&5
23013 echo "$as_me: error: cannot compute alignment of short
23014 See \`config.log' for more details.
" >&2;}
23015 { (exit 77); exit 77; }; }
23017 ac_cv_alignof_short=0
23020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23024 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_short" >&5
23025 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
23029 cat >>confdefs.h <<_ACEOF
23030 #define ALIGNOF_SHORT $ac_cv_alignof_short
23034 { echo "$as_me:$LINENO: checking
for int
" >&5
23035 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
23036 if test "${ac_cv_type_int+set}" = set; then
23037 echo $ECHO_N "(cached
) $ECHO_C" >&6
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 typedef int ac__type_new_;
23050 if ((ac__type_new_ *) 0)
23052 if (sizeof (ac__type_new_))
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_compile") 2>conftest.er1
23067 grep -v '^ *+' conftest.er1 >conftest.err
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest.$ac_objext; then
23077 echo "$as_me: failed program was
:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23085 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
23086 echo "${ECHO_T}$ac_cv_type_int" >&6; }
23088 # The cast to long int works around a bug in the HP C Compiler,
23089 # see AC_CHECK_SIZEOF for more information.
23090 { echo "$as_me:$LINENO: checking alignment of int
" >&5
23091 echo $ECHO_N "checking alignment of int...
$ECHO_C" >&6; }
23092 if test "${ac_cv_alignof_int+set}" = set; then
23093 echo $ECHO_N "(cached
) $ECHO_C" >&6
23095 if test "$cross_compiling" = yes; then
23096 # Depending upon the size, compute the lo and hi bounds.
23097 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 $ac_includes_default
23105 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23107 typedef struct { char x; int y; } ac__type_alignof_;
23111 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23127 grep -v '^ *+' conftest.er1 >conftest.err
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 $ac_includes_default
23145 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23147 typedef struct { char x; int y; } ac__type_alignof_;
23151 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23158 rm -f conftest.$ac_objext
23159 if { (ac_try="$ac_compile"
23160 case "(($ac_try" in
23161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23165 (eval "$ac_compile") 2>conftest.er1
23167 grep -v '^ *+' conftest.er1 >conftest.err
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23171 (exit $ac_status); } && {
23172 test -z "$ac_c_werror_flag" ||
23173 test ! -s conftest.err
23174 } && test -s conftest.$ac_objext; then
23175 ac_hi=$ac_mid; break
23177 echo "$as_me: failed program was
:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_lo=`expr $ac_mid + 1`
23181 if test $ac_lo -le $ac_mid; then
23185 ac_mid=`expr 2 '*' $ac_mid + 1`
23188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191 echo "$as_me: failed program was
:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23194 cat >conftest.$ac_ext <<_ACEOF
23197 cat confdefs.h >>conftest.$ac_ext
23198 cat >>conftest.$ac_ext <<_ACEOF
23199 /* end confdefs.h. */
23200 $ac_includes_default
23202 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23204 typedef struct { char x; int y; } ac__type_alignof_;
23208 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23215 rm -f conftest.$ac_objext
23216 if { (ac_try="$ac_compile"
23217 case "(($ac_try" in
23218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219 *) ac_try_echo=$ac_try;;
23221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23222 (eval "$ac_compile") 2>conftest.er1
23224 grep -v '^ *+' conftest.er1 >conftest.err
23226 cat conftest.err >&5
23227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23228 (exit $ac_status); } && {
23229 test -z "$ac_c_werror_flag" ||
23230 test ! -s conftest.err
23231 } && test -s conftest.$ac_objext; then
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 $ac_includes_default
23242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23244 typedef struct { char x; int y; } ac__type_alignof_;
23248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23255 rm -f conftest.$ac_objext
23256 if { (ac_try="$ac_compile"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23264 grep -v '^ *+' conftest.er1 >conftest.err
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.$ac_objext; then
23272 ac_lo=$ac_mid; break
23274 echo "$as_me: failed program was
:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 ac_hi=`expr '(' $ac_mid ')' - 1`
23278 if test $ac_mid -le $ac_hi; then
23282 ac_mid=`expr 2 '*' $ac_mid`
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288 echo "$as_me: failed program was
:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23298 # Binary search between lo and hi bounds.
23299 while test "x
$ac_lo" != "x
$ac_hi"; do
23300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 $ac_includes_default
23309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23311 typedef struct { char x; int y; } ac__type_alignof_;
23315 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_compile") 2>conftest.er1
23331 grep -v '^ *+' conftest.er1 >conftest.err
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest.$ac_objext; then
23341 echo "$as_me: failed program was
:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23344 ac_lo=`expr '(' $ac_mid ')' + 1`
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 ?*) ac_cv_alignof_int=$ac_lo;;
23351 '') if test "$ac_cv_type_int" = yes; then
23352 { { echo "$as_me:$LINENO: error
: cannot compute alignment of int
23353 See \
`config.log' for more details." >&5
23354 echo "$as_me: error: cannot compute alignment of int
23355 See \`config.log
' for more details." >&2;}
23356 { (exit 77); exit 77; }; }
23358 ac_cv_alignof_int=0
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 $ac_includes_default
23370 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23372 typedef struct { char x; int y; } ac__type_alignof_;
23373 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23374 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23376 #include <stdlib.h>
23381 FILE *f = fopen ("conftest.val", "w");
23384 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23386 long int i = longval ();
23387 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23389 fprintf (f, "%ld\n", i);
23393 unsigned long int i = ulongval ();
23394 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23396 fprintf (f, "%lu\n", i);
23398 return ferror (f) || fclose (f) != 0;
23404 rm -f conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411 (eval "$ac_link") 2>&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23415 { (case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420 (eval "$ac_try") 2>&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; }; then
23424 ac_cv_alignof_int=`cat conftest.val`
23426 echo "$as_me: program exited with status $ac_status" >&5
23427 echo "$as_me: failed program was:" >&5
23428 sed 's
/^
/|
/' conftest.$ac_ext >&5
23430 ( exit $ac_status )
23431 if test "$ac_cv_type_int" = yes; then
23432 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23433 See \`config.log' for more details.
" >&5
23434 echo "$as_me: error
: cannot compute alignment of int
23435 See \
`config.log' for more details." >&2;}
23436 { (exit 77); exit 77; }; }
23438 ac_cv_alignof_int=0
23441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23445 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23446 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23450 cat >>confdefs.h <<_ACEOF
23451 #define ALIGNOF_INT $ac_cv_alignof_int
23455 { echo "$as_me:$LINENO: checking for long" >&5
23456 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23457 if test "${ac_cv_type_long+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23467 typedef long ac__type_new_;
23471 if ((ac__type_new_ *) 0)
23473 if (sizeof (ac__type_new_))
23479 rm -f conftest.$ac_objext
23480 if { (ac_try="$ac_compile"
23481 case "(($ac_try" in
23482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23483 *) ac_try_echo
=$ac_try;;
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_compile") 2>conftest.er1
23488 grep -v '^ *+' conftest.er1
>conftest.err
23490 cat conftest.err
>&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } && {
23493 test -z "$ac_c_werror_flag" ||
23494 test ! -s conftest.err
23495 } && test -s conftest.
$ac_objext; then
23496 ac_cv_type_long
=yes
23498 echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.
$ac_ext >&5
23504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23506 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23507 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23509 # The cast to long int works around a bug in the HP C Compiler,
23510 # see AC_CHECK_SIZEOF for more information.
23511 { echo "$as_me:$LINENO: checking alignment of long" >&5
23512 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23513 if test "${ac_cv_alignof_long+set}" = set; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23516 if test "$cross_compiling" = yes; then
23517 # Depending upon the size, compute the lo and hi bounds.
23518 cat >conftest.
$ac_ext <<_ACEOF
23521 cat confdefs.h
>>conftest.
$ac_ext
23522 cat >>conftest.
$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23526 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23528 typedef struct { char x; long y; } ac__type_alignof_;
23532 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23539 rm -f conftest.
$ac_objext
23540 if { (ac_try
="$ac_compile"
23541 case "(($ac_try" in
23542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23543 *) ac_try_echo=$ac_try;;
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_compile") 2>conftest.er1
23548 grep -v '^ *+' conftest.er1 >conftest.err
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && {
23553 test -z "$ac_c_werror_flag" ||
23554 test ! -s conftest.err
23555 } && test -s conftest.$ac_objext; then
23558 cat >conftest.$ac_ext <<_ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h. */
23564 $ac_includes_default
23566 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23568 typedef struct { char x; long y; } ac__type_alignof_;
23572 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23579 rm -f conftest.$ac_objext
23580 if { (ac_try="$ac_compile"
23581 case "(($ac_try" in
23582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23583 *) ac_try_echo
=$ac_try;;
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_compile") 2>conftest.er1
23588 grep -v '^ *+' conftest.er1
>conftest.err
23590 cat conftest.err
>&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } && {
23593 test -z "$ac_c_werror_flag" ||
23594 test ! -s conftest.err
23595 } && test -s conftest.
$ac_objext; then
23596 ac_hi
=$ac_mid; break
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.
$ac_ext >&5
23601 ac_lo
=`expr $ac_mid + 1`
23602 if test $ac_lo -le $ac_mid; then
23606 ac_mid
=`expr 2 '*' $ac_mid + 1`
23609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.
$ac_ext >&5
23615 cat >conftest.
$ac_ext <<_ACEOF
23618 cat confdefs.h
>>conftest.
$ac_ext
23619 cat >>conftest.
$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 $ac_includes_default
23623 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23625 typedef struct { char x; long y; } ac__type_alignof_;
23629 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23636 rm -f conftest.
$ac_objext
23637 if { (ac_try
="$ac_compile"
23638 case "(($ac_try" in
23639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_compile") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest.$ac_objext; then
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 $ac_includes_default
23663 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23665 typedef struct { char x; long y; } ac__type_alignof_;
23669 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23676 rm -f conftest.$ac_objext
23677 if { (ac_try="$ac_compile"
23678 case "(($ac_try" in
23679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23680 *) ac_try_echo
=$ac_try;;
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_compile") 2>conftest.er1
23685 grep -v '^ *+' conftest.er1
>conftest.err
23687 cat conftest.err
>&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest.
$ac_objext; then
23693 ac_lo
=$ac_mid; break
23695 echo "$as_me: failed program was:" >&5
23696 sed 's/^/| /' conftest.
$ac_ext >&5
23698 ac_hi
=`expr '(' $ac_mid ')' - 1`
23699 if test $ac_mid -le $ac_hi; then
23703 ac_mid
=`expr 2 '*' $ac_mid`
23706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.
$ac_ext >&5
23715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23719 # Binary search between lo and hi bounds.
23720 while test "x$ac_lo" != "x$ac_hi"; do
23721 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23722 cat >conftest.
$ac_ext <<_ACEOF
23725 cat confdefs.h
>>conftest.
$ac_ext
23726 cat >>conftest.
$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23728 $ac_includes_default
23730 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23732 typedef struct { char x; long y; } ac__type_alignof_;
23736 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23743 rm -f conftest.
$ac_objext
23744 if { (ac_try
="$ac_compile"
23745 case "(($ac_try" in
23746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_compile") 2>conftest.er1
23752 grep -v '^ *+' conftest.er1 >conftest.err
23754 cat conftest.err >&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); } && {
23757 test -z "$ac_c_werror_flag" ||
23758 test ! -s conftest.err
23759 } && test -s conftest.$ac_objext; then
23762 echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 ac_lo=`expr '(' $ac_mid ')' + 1`
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771 ?*) ac_cv_alignof_long=$ac_lo;;
23772 '') if test "$ac_cv_type_long" = yes; then
23773 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23774 See \`config.log
' for more details." >&5
23775 echo "$as_me: error: cannot compute alignment of long
23776 See \`config.log' for more details.
" >&2;}
23777 { (exit 77); exit 77; }; }
23779 ac_cv_alignof_long=0
23783 cat >conftest.$ac_ext <<_ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23789 $ac_includes_default
23791 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23793 typedef struct { char x; long y; } ac__type_alignof_;
23794 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23795 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23797 #include <stdlib.h>
23802 FILE *f = fopen ("conftest.val
", "w
");
23805 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23807 long int i = longval ();
23808 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23810 fprintf (f, "%ld
\n", i);
23814 unsigned long int i = ulongval ();
23815 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23817 fprintf (f, "%lu
\n", i);
23819 return ferror (f) || fclose (f) != 0;
23825 rm -f conftest$ac_exeext
23826 if { (ac_try="$ac_link"
23827 case "(($ac_try" in
23828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829 *) ac_try_echo=$ac_try;;
23831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23832 (eval "$ac_link") 2>&5
23834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23836 { (case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_try") 2>&5
23843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23844 (exit $ac_status); }; }; then
23845 ac_cv_alignof_long=`cat conftest.val`
23847 echo "$as_me: program exited with status
$ac_status" >&5
23848 echo "$as_me: failed program was
:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23851 ( exit $ac_status )
23852 if test "$ac_cv_type_long" = yes; then
23853 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
23854 See \
`config.log' for more details." >&5
23855 echo "$as_me: error: cannot compute alignment of long
23856 See \`config.log
' for more details." >&2;}
23857 { (exit 77); exit 77; }; }
23859 ac_cv_alignof_long=0
23862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23866 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23867 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23871 cat >>confdefs.h <<_ACEOF
23872 #define ALIGNOF_LONG $ac_cv_alignof_long
23876 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23877 { echo "$as_me:$LINENO: checking for long long int" >&5
23878 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23879 if test "${ac_cv_type_long_long_int+set}" = set; then
23880 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 $ac_includes_default
23889 typedef long long int ac__type_new_;
23893 if ((ac__type_new_ *) 0)
23895 if (sizeof (ac__type_new_))
23901 rm -f conftest.$ac_objext
23902 if { (ac_try="$ac_compile"
23903 case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908 (eval "$ac_compile") 2>conftest.er1
23910 grep -v '^
*+' conftest.er1 >conftest.err
23912 cat conftest.err >&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest.$ac_objext; then
23918 ac_cv_type_long_long_int=yes
23920 echo "$as_me: failed program was:" >&5
23921 sed 's
/^
/|
/' conftest.$ac_ext >&5
23923 ac_cv_type_long_long_int=no
23926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23928 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23929 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23931 # The cast to long int works around a bug in the HP C Compiler,
23932 # see AC_CHECK_SIZEOF for more information.
23933 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23934 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23935 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23938 if test "$cross_compiling" = yes; then
23939 # Depending upon the size, compute the lo and hi bounds.
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946 $ac_includes_default
23948 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23950 typedef struct { char x; long long int y; } ac__type_alignof_;
23954 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23961 rm -f conftest.$ac_objext
23962 if { (ac_try="$ac_compile"
23963 case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_compile") 2>conftest.er1
23970 grep -v '^
*+' conftest.er1 >conftest.err
23972 cat conftest.err >&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } && {
23975 test -z "$ac_c_werror_flag" ||
23976 test ! -s conftest.err
23977 } && test -s conftest.$ac_objext; then
23980 cat >conftest.$ac_ext <<_ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 $ac_includes_default
23988 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23990 typedef struct { char x; long long int y; } ac__type_alignof_;
23994 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24001 rm -f conftest.$ac_objext
24002 if { (ac_try="$ac_compile"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_compile") 2>conftest.er1
24010 grep -v '^
*+' conftest.er1 >conftest.err
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } && {
24015 test -z "$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 } && test -s conftest.$ac_objext; then
24018 ac_hi=$ac_mid; break
24020 echo "$as_me: failed program was:" >&5
24021 sed 's
/^
/|
/' conftest.$ac_ext >&5
24023 ac_lo=`expr $ac_mid + 1`
24024 if test $ac_lo -le $ac_mid; then
24028 ac_mid=`expr 2 '*' $ac_mid + 1`
24031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034 echo "$as_me: failed program was:" >&5
24035 sed 's
/^
/|
/' conftest.$ac_ext >&5
24037 cat >conftest.$ac_ext <<_ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24043 $ac_includes_default
24045 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24047 typedef struct { char x; long long int y; } ac__type_alignof_;
24051 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24058 rm -f conftest.$ac_objext
24059 if { (ac_try="$ac_compile"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_compile") 2>conftest.er1
24067 grep -v '^
*+' conftest.er1 >conftest.err
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_c_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest.$ac_objext; then
24077 cat >conftest.$ac_ext <<_ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 $ac_includes_default
24085 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24087 typedef struct { char x; long long int y; } ac__type_alignof_;
24091 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24098 rm -f conftest.$ac_objext
24099 if { (ac_try="$ac_compile"
24100 case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_compile") 2>conftest.er1
24107 grep -v '^
*+' conftest.er1 >conftest.err
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest.$ac_objext; then
24115 ac_lo=$ac_mid; break
24117 echo "$as_me: failed program was:" >&5
24118 sed 's
/^
/|
/' conftest.$ac_ext >&5
24120 ac_hi=`expr '(' $ac_mid ')' - 1`
24121 if test $ac_mid -le $ac_hi; then
24125 ac_mid=`expr 2 '*' $ac_mid`
24128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131 echo "$as_me: failed program was:" >&5
24132 sed 's
/^
/|
/' conftest.$ac_ext >&5
24137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141 # Binary search between lo and hi bounds.
24142 while test "x$ac_lo" != "x$ac_hi"; do
24143 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24144 cat >conftest.$ac_ext <<_ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24150 $ac_includes_default
24152 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24154 typedef struct { char x; long long int y; } ac__type_alignof_;
24158 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24165 rm -f conftest.$ac_objext
24166 if { (ac_try="$ac_compile"
24167 case "(($ac_try" in
24168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169 *) ac_try_echo=$ac_try;;
24171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24172 (eval "$ac_compile") 2>conftest.er1
24174 grep -v '^
*+' conftest.er1 >conftest.err
24176 cat conftest.err >&5
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } && {
24179 test -z "$ac_c_werror_flag" ||
24180 test ! -s conftest.err
24181 } && test -s conftest.$ac_objext; then
24184 echo "$as_me: failed program was:" >&5
24185 sed 's
/^
/|
/' conftest.$ac_ext >&5
24187 ac_lo=`expr '(' $ac_mid ')' + 1`
24190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24193 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
24194 '') if test "$ac_cv_type_long_long_int" = yes; then
24195 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
24196 See \`config.log' for more details.
" >&5
24197 echo "$as_me: error
: cannot compute alignment of long long int
24198 See \
`config.log' for more details." >&2;}
24199 { (exit 77); exit 77; }; }
24201 ac_cv_alignof_long_long_int=0
24205 cat >conftest.$ac_ext <<_ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24211 $ac_includes_default
24213 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24215 typedef struct { char x; long long int y; } ac__type_alignof_;
24216 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24217 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24219 #include <stdlib.h>
24224 FILE *f = fopen ("conftest.val", "w");
24227 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24229 long int i = longval ();
24230 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24232 fprintf (f, "%ld\n", i);
24236 unsigned long int i = ulongval ();
24237 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24239 fprintf (f, "%lu\n", i);
24241 return ferror (f) || fclose (f) != 0;
24247 rm -f conftest$ac_exeext
24248 if { (ac_try="$ac_link"
24249 case "(($ac_try" in
24250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24251 *) ac_try_echo
=$ac_try;;
24253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24254 (eval "$ac_link") 2>&5
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24258 { (case "(($ac_try" in
24259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263 (eval "$ac_try") 2>&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 ac_cv_alignof_long_long_int=`cat conftest.val
`
24269 echo "$as_me: program exited with status $ac_status" >&5
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 ( exit $ac_status )
24274 if test "$ac_cv_type_long_long_int" = yes; then
24275 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
24276 See \`config.log
' for more details." >&5
24277 echo "$as_me: error: cannot compute alignment of long long int
24278 See \`config.log' for more details.
" >&2;}
24279 { (exit 77); exit 77; }; }
24281 ac_cv_alignof_long_long_int=0
24284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24288 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_long_long_int" >&5
24289 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
24293 cat >>confdefs.h <<_ACEOF
24294 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
24299 { echo "$as_me:$LINENO: checking
for double
" >&5
24300 echo $ECHO_N "checking
for double...
$ECHO_C" >&6; }
24301 if test "${ac_cv_type_double+set}" = set; then
24302 echo $ECHO_N "(cached
) $ECHO_C" >&6
24304 cat >conftest.$ac_ext <<_ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 $ac_includes_default
24311 typedef double ac__type_new_;
24315 if ((ac__type_new_ *) 0)
24317 if (sizeof (ac__type_new_))
24323 rm -f conftest.$ac_objext
24324 if { (ac_try="$ac_compile"
24325 case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24330 (eval "$ac_compile") 2>conftest.er1
24332 grep -v '^ *+' conftest.er1 >conftest.err
24334 cat conftest.err >&5
24335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24336 (exit $ac_status); } && {
24337 test -z "$ac_c_werror_flag" ||
24338 test ! -s conftest.err
24339 } && test -s conftest.$ac_objext; then
24340 ac_cv_type_double=yes
24342 echo "$as_me: failed program was
:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24345 ac_cv_type_double=no
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350 { echo "$as_me:$LINENO: result
: $ac_cv_type_double" >&5
24351 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24353 # The cast to long int works around a bug in the HP C Compiler,
24354 # see AC_CHECK_SIZEOF for more information.
24355 { echo "$as_me:$LINENO: checking alignment of double
" >&5
24356 echo $ECHO_N "checking alignment of double...
$ECHO_C" >&6; }
24357 if test "${ac_cv_alignof_double+set}" = set; then
24358 echo $ECHO_N "(cached
) $ECHO_C" >&6
24360 if test "$cross_compiling" = yes; then
24361 # Depending upon the size, compute the lo and hi bounds.
24362 cat >conftest.$ac_ext <<_ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h. */
24368 $ac_includes_default
24370 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24372 typedef struct { char x; double y; } ac__type_alignof_;
24376 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24383 rm -f conftest.$ac_objext
24384 if { (ac_try="$ac_compile"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_compile") 2>conftest.er1
24392 grep -v '^ *+' conftest.er1 >conftest.err
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest.$ac_objext; then
24402 cat >conftest.$ac_ext <<_ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h. */
24408 $ac_includes_default
24410 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24412 typedef struct { char x; double y; } ac__type_alignof_;
24416 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24423 rm -f conftest.$ac_objext
24424 if { (ac_try="$ac_compile"
24425 case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24430 (eval "$ac_compile") 2>conftest.er1
24432 grep -v '^ *+' conftest.er1 >conftest.err
24434 cat conftest.err >&5
24435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24436 (exit $ac_status); } && {
24437 test -z "$ac_c_werror_flag" ||
24438 test ! -s conftest.err
24439 } && test -s conftest.$ac_objext; then
24440 ac_hi=$ac_mid; break
24442 echo "$as_me: failed program was
:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ac_lo=`expr $ac_mid + 1`
24446 if test $ac_lo -le $ac_mid; then
24450 ac_mid=`expr 2 '*' $ac_mid + 1`
24453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24456 echo "$as_me: failed program was
:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 cat >conftest.$ac_ext <<_ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h. */
24465 $ac_includes_default
24467 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24469 typedef struct { char x; double y; } ac__type_alignof_;
24473 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24480 rm -f conftest.$ac_objext
24481 if { (ac_try="$ac_compile"
24482 case "(($ac_try" in
24483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484 *) ac_try_echo=$ac_try;;
24486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24487 (eval "$ac_compile") 2>conftest.er1
24489 grep -v '^ *+' conftest.er1 >conftest.err
24491 cat conftest.err >&5
24492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24493 (exit $ac_status); } && {
24494 test -z "$ac_c_werror_flag" ||
24495 test ! -s conftest.err
24496 } && test -s conftest.$ac_objext; then
24499 cat >conftest.$ac_ext <<_ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h. */
24505 $ac_includes_default
24507 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24509 typedef struct { char x; double y; } ac__type_alignof_;
24513 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24520 rm -f conftest.$ac_objext
24521 if { (ac_try="$ac_compile"
24522 case "(($ac_try" in
24523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524 *) ac_try_echo=$ac_try;;
24526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24527 (eval "$ac_compile") 2>conftest.er1
24529 grep -v '^ *+' conftest.er1 >conftest.err
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24533 (exit $ac_status); } && {
24534 test -z "$ac_c_werror_flag" ||
24535 test ! -s conftest.err
24536 } && test -s conftest.$ac_objext; then
24537 ac_lo=$ac_mid; break
24539 echo "$as_me: failed program was
:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542 ac_hi=`expr '(' $ac_mid ')' - 1`
24543 if test $ac_mid -le $ac_hi; then
24547 ac_mid=`expr 2 '*' $ac_mid`
24550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24553 echo "$as_me: failed program was
:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563 # Binary search between lo and hi bounds.
24564 while test "x
$ac_lo" != "x
$ac_hi"; do
24565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24566 cat >conftest.$ac_ext <<_ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h. */
24572 $ac_includes_default
24574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24576 typedef struct { char x; double y; } ac__type_alignof_;
24580 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24587 rm -f conftest.$ac_objext
24588 if { (ac_try="$ac_compile"
24589 case "(($ac_try" in
24590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_compile") 2>conftest.er1
24596 grep -v '^ *+' conftest.er1 >conftest.err
24598 cat conftest.err >&5
24599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24600 (exit $ac_status); } && {
24601 test -z "$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 } && test -s conftest.$ac_objext; then
24606 echo "$as_me: failed program was
:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_lo=`expr '(' $ac_mid ')' + 1`
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24615 ?*) ac_cv_alignof_double=$ac_lo;;
24616 '') if test "$ac_cv_type_double" = yes; then
24617 { { echo "$as_me:$LINENO: error
: cannot compute alignment of double
24618 See \
`config.log' for more details." >&5
24619 echo "$as_me: error: cannot compute alignment of double
24620 See \`config.log
' for more details." >&2;}
24621 { (exit 77); exit 77; }; }
24623 ac_cv_alignof_double=0
24627 cat >conftest.$ac_ext <<_ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 $ac_includes_default
24635 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24637 typedef struct { char x; double y; } ac__type_alignof_;
24638 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24639 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24641 #include <stdlib.h>
24646 FILE *f = fopen ("conftest.val", "w");
24649 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24651 long int i = longval ();
24652 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24654 fprintf (f, "%ld\n", i);
24658 unsigned long int i = ulongval ();
24659 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24661 fprintf (f, "%lu\n", i);
24663 return ferror (f) || fclose (f) != 0;
24669 rm -f conftest$ac_exeext
24670 if { (ac_try="$ac_link"
24671 case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_link") 2>&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24680 { (case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_try") 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24689 ac_cv_alignof_double=`cat conftest.val`
24691 echo "$as_me: program exited with status $ac_status" >&5
24692 echo "$as_me: failed program was:" >&5
24693 sed 's
/^
/|
/' conftest.$ac_ext >&5
24695 ( exit $ac_status )
24696 if test "$ac_cv_type_double" = yes; then
24697 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24698 See \`config.log' for more details.
" >&5
24699 echo "$as_me: error
: cannot compute alignment of double
24700 See \
`config.log' for more details." >&2;}
24701 { (exit 77); exit 77; }; }
24703 ac_cv_alignof_double=0
24706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24710 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24711 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24715 cat >>confdefs.h <<_ACEOF
24716 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24721 # Compute maximum alignment of any basic type.
24722 # We assume long's alignment is at least as strong as char, short, or int;
24723 # but we must check long long (if it exists) and double.
24725 MAX_ALIGNOF=$ac_cv_alignof_long
24726 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24727 MAX_ALIGNOF=$ac_cv_alignof_double
24729 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24730 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24733 cat >>confdefs.h <<_ACEOF
24734 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24739 # Some platforms predefine the types int8, int16, etc. Only check
24740 # a (hopefully) representative subset.
24741 { echo "$as_me:$LINENO: checking for int8" >&5
24742 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24743 if test "${ac_cv_type_int8+set}" = set; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24753 #ifdef HAVE_SUPPORTDEFS_H
24754 #include <SupportDefs.h>
24757 typedef int8 ac__type_new_;
24761 if ((ac__type_new_ *) 0)
24763 if (sizeof (ac__type_new_))
24769 rm -f conftest.$ac_objext
24770 if { (ac_try="$ac_compile"
24771 case "(($ac_try" in
24772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24773 *) ac_try_echo
=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_compile") 2>conftest.er1
24778 grep -v '^ *+' conftest.er1
>conftest.err
24780 cat conftest.err
>&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest.
$ac_objext; then
24786 ac_cv_type_int8
=yes
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.
$ac_ext >&5
24794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24796 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24797 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24798 if test $ac_cv_type_int8 = yes; then
24800 cat >>confdefs.h
<<_ACEOF
24801 #define HAVE_INT8 1
24806 { echo "$as_me:$LINENO: checking for uint8" >&5
24807 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24808 if test "${ac_cv_type_uint8+set}" = set; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24811 cat >conftest.
$ac_ext <<_ACEOF
24814 cat confdefs.h
>>conftest.
$ac_ext
24815 cat >>conftest.
$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24818 #ifdef HAVE_SUPPORTDEFS_H
24819 #include <SupportDefs.h>
24822 typedef uint8 ac__type_new_;
24826 if ((ac__type_new_ *) 0)
24828 if (sizeof (ac__type_new_))
24834 rm -f conftest.
$ac_objext
24835 if { (ac_try
="$ac_compile"
24836 case "(($ac_try" in
24837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841 (eval "$ac_compile") 2>conftest.er1
24843 grep -v '^ *+' conftest.er1 >conftest.err
24845 cat conftest.err >&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); } && {
24848 test -z "$ac_c_werror_flag" ||
24849 test ! -s conftest.err
24850 } && test -s conftest.$ac_objext; then
24851 ac_cv_type_uint8=yes
24853 echo "$as_me: failed program was:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24856 ac_cv_type_uint8=no
24859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24861 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24862 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24863 if test $ac_cv_type_uint8 = yes; then
24865 cat >>confdefs.h <<_ACEOF
24866 #define HAVE_UINT8 1
24871 { echo "$as_me:$LINENO: checking for int64" >&5
24872 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24873 if test "${ac_cv_type_int64+set}" = set; then
24874 echo $ECHO_N "(cached) $ECHO_C" >&6
24876 cat >conftest.$ac_ext <<_ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h. */
24883 #ifdef HAVE_SUPPORTDEFS_H
24884 #include <SupportDefs.h>
24887 typedef int64 ac__type_new_;
24891 if ((ac__type_new_ *) 0)
24893 if (sizeof (ac__type_new_))
24899 rm -f conftest.$ac_objext
24900 if { (ac_try="$ac_compile"
24901 case "(($ac_try" in
24902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24903 *) ac_try_echo
=$ac_try;;
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906 (eval "$ac_compile") 2>conftest.er1
24908 grep -v '^ *+' conftest.er1
>conftest.err
24910 cat conftest.err
>&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } && {
24913 test -z "$ac_c_werror_flag" ||
24914 test ! -s conftest.err
24915 } && test -s conftest.
$ac_objext; then
24916 ac_cv_type_int64
=yes
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.
$ac_ext >&5
24921 ac_cv_type_int64
=no
24924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24926 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24927 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24928 if test $ac_cv_type_int64 = yes; then
24930 cat >>confdefs.h
<<_ACEOF
24931 #define HAVE_INT64 1
24936 { echo "$as_me:$LINENO: checking for uint64" >&5
24937 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24938 if test "${ac_cv_type_uint64+set}" = set; then
24939 echo $ECHO_N "(cached) $ECHO_C" >&6
24941 cat >conftest.
$ac_ext <<_ACEOF
24944 cat confdefs.h
>>conftest.
$ac_ext
24945 cat >>conftest.
$ac_ext <<_ACEOF
24946 /* end confdefs.h. */
24948 #ifdef HAVE_SUPPORTDEFS_H
24949 #include <SupportDefs.h>
24952 typedef uint64 ac__type_new_;
24956 if ((ac__type_new_ *) 0)
24958 if (sizeof (ac__type_new_))
24964 rm -f conftest.
$ac_objext
24965 if { (ac_try
="$ac_compile"
24966 case "(($ac_try" in
24967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_compile") 2>conftest.er1
24973 grep -v '^ *+' conftest.er1 >conftest.err
24975 cat conftest.err >&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } && {
24978 test -z "$ac_c_werror_flag" ||
24979 test ! -s conftest.err
24980 } && test -s conftest.$ac_objext; then
24981 ac_cv_type_uint64=yes
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24986 ac_cv_type_uint64=no
24989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24991 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24992 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24993 if test $ac_cv_type_uint64 = yes; then
24995 cat >>confdefs.h <<_ACEOF
24996 #define HAVE_UINT64 1
25003 # We also check for sig_atomic_t, which *should* be defined per ANSI
25004 # C, but is missing on some old platforms.
25005 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
25006 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
25007 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
25008 echo $ECHO_N "(cached) $ECHO_C" >&6
25010 cat >conftest.$ac_ext <<_ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 #include <signal.h>
25018 typedef sig_atomic_t ac__type_new_;
25022 if ((ac__type_new_ *) 0)
25024 if (sizeof (ac__type_new_))
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25034 *) ac_try_echo
=$ac_try;;
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_compile") 2>conftest.er1
25039 grep -v '^ *+' conftest.er1
>conftest.err
25041 cat conftest.err
>&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } && {
25044 test -z "$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 } && test -s conftest.
$ac_objext; then
25047 ac_cv_type_sig_atomic_t
=yes
25049 echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.
$ac_ext >&5
25052 ac_cv_type_sig_atomic_t
=no
25055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25057 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
25058 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
25059 if test $ac_cv_type_sig_atomic_t = yes; then
25061 cat >>confdefs.h
<<_ACEOF
25062 #define HAVE_SIG_ATOMIC_T 1
25070 # If the user did not disable integer datetimes, check that
25071 # there is a working 64-bit integral type to use.
25072 if test x
"$USE_INTEGER_DATETIMES" = x
"yes" &&
25073 test x
"$HAVE_LONG_INT_64" = x
"no" &&
25074 test x
"$HAVE_LONG_LONG_INT_64" = x
"no" &&
25075 test x
"$HAVE_INT64" = x
"no" ; then
25076 { { echo "$as_me:$LINENO: error:
25077 Integer-based datetime support requires a 64-bit integer type,
25078 but no such type could be found. The --disable-integer-datetimes
25079 configure option can be used to disable integer-based storage
25080 of datetime values." >&5
25081 echo "$as_me: error:
25082 Integer-based datetime support requires a 64-bit integer type,
25083 but no such type could be found. The --disable-integer-datetimes
25084 configure option can be used to disable integer-based storage
25085 of datetime values." >&2;}
25086 { (exit 1); exit 1; }; }
25090 if test "$PORTNAME" != "win32"
25092 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
25093 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
25094 if test "${pgac_cv_func_posix_signals+set}" = set; then
25095 echo $ECHO_N "(cached) $ECHO_C" >&6
25097 cat >conftest.
$ac_ext <<_ACEOF
25100 cat confdefs.h
>>conftest.
$ac_ext
25101 cat >>conftest.
$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25103 #include <signal.h>
25108 struct sigaction act, oact;
25109 sigemptyset(&act.sa_mask);
25110 act.sa_flags = SA_RESTART;
25111 sigaction(0, &act, &oact);
25116 rm -f conftest.
$ac_objext conftest
$ac_exeext
25117 if { (ac_try
="$ac_link"
25118 case "(($ac_try" in
25119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25120 *) ac_try_echo=$ac_try;;
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123 (eval "$ac_link") 2>conftest.er1
25125 grep -v '^ *+' conftest.er1 >conftest.err
25127 cat conftest.err >&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } && {
25130 test -z "$ac_c_werror_flag" ||
25131 test ! -s conftest.err
25132 } && test -s conftest$ac_exeext &&
25133 $as_test_x conftest$ac_exeext; then
25134 pgac_cv_func_posix_signals=yes
25136 echo "$as_me: failed program was:" >&5
25137 sed 's/^/| /' conftest.$ac_ext >&5
25139 pgac_cv_func_posix_signals=no
25142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25143 conftest$ac_exeext conftest.$ac_ext
25145 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
25146 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
25147 if test x"$pgac_cv_func_posix_signals" = xyes ; then
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_POSIX_SIGNALS
25154 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
25156 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
25157 { { echo "$as_me:$LINENO: error:
25158 Thread-safety requires POSIX signals, which are not supported by this
25159 operating system." >&5
25160 echo "$as_me: error:
25161 Thread-safety requires POSIX signals, which are not supported by this
25162 operating system." >&2;}
25163 { (exit 1); exit 1; }; }
25167 if test $ac_cv_func_fseeko = yes; then
25168 # Check whether --enable-largefile was given.
25169 if test "${enable_largefile+set}" = set; then
25170 enableval=$enable_largefile;
25173 if test "$enable_largefile" != no; then
25175 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
25176 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
25177 if test "${ac_cv_sys_largefile_CC+set}" = set; then
25178 echo $ECHO_N "(cached) $ECHO_C" >&6
25180 ac_cv_sys_largefile_CC=no
25181 if test "$GCC" != yes; then
25184 # IRIX 6.2 and later do not support large files by default,
25185 # so use the C compiler's -n32 option if that helps.
25186 cat >conftest.$ac_ext <<_ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 #include <sys/types.h>
25193 /* Check that off_t can represent 2**63 - 1 correctly.
25194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25195 since some C++ compilers masquerading as C compilers
25196 incorrectly reject 9223372036854775807. */
25197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25199 && LARGE_OFF_T % 2147483647 == 1)
25209 rm -f conftest.$ac_objext
25210 if { (ac_try="$ac_compile"
25211 case "(($ac_try" in
25212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25213 *) ac_try_echo
=$ac_try;;
25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216 (eval "$ac_compile") 2>conftest.er1
25218 grep -v '^ *+' conftest.er1
>conftest.err
25220 cat conftest.err
>&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } && {
25223 test -z "$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25225 } && test -s conftest.
$ac_objext; then
25228 echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.
$ac_ext >&5
25234 rm -f core conftest.err conftest.
$ac_objext
25236 rm -f conftest.
$ac_objext
25237 if { (ac_try
="$ac_compile"
25238 case "(($ac_try" in
25239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25240 *) ac_try_echo=$ac_try;;
25242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243 (eval "$ac_compile") 2>conftest.er1
25245 grep -v '^ *+' conftest.er1 >conftest.err
25247 cat conftest.err >&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } && {
25250 test -z "$ac_c_werror_flag" ||
25251 test ! -s conftest.err
25252 } && test -s conftest.$ac_objext; then
25253 ac_cv_sys_largefile_CC=' -n32'; break
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25261 rm -f core conftest.err conftest.$ac_objext
25265 rm -f conftest.$ac_ext
25268 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
25269 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
25270 if test "$ac_cv_sys_largefile_CC" != no; then
25271 CC=$CC$ac_cv_sys_largefile_CC
25274 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25275 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25276 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 #include <sys/types.h>
25287 /* Check that off_t can represent 2**63 - 1 correctly.
25288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25289 since some C++ compilers masquerading as C compilers
25290 incorrectly reject 9223372036854775807. */
25291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25293 && LARGE_OFF_T % 2147483647 == 1)
25303 rm -f conftest.$ac_objext
25304 if { (ac_try="$ac_compile"
25305 case "(($ac_try" in
25306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25307 *) ac_try_echo
=$ac_try;;
25309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25310 (eval "$ac_compile") 2>conftest.er1
25312 grep -v '^ *+' conftest.er1
>conftest.err
25314 cat conftest.err
>&5
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } && {
25317 test -z "$ac_c_werror_flag" ||
25318 test ! -s conftest.err
25319 } && test -s conftest.
$ac_objext; then
25320 ac_cv_sys_file_offset_bits
=no
; break
25322 echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.
$ac_ext >&5
25328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25329 cat >conftest.
$ac_ext <<_ACEOF
25332 cat confdefs.h
>>conftest.
$ac_ext
25333 cat >>conftest.
$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25335 #define _FILE_OFFSET_BITS 64
25336 #include <sys/types.h>
25337 /* Check that off_t can represent 2**63 - 1 correctly.
25338 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25339 since some C++ compilers masquerading as C compilers
25340 incorrectly reject 9223372036854775807. */
25341 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25343 && LARGE_OFF_T % 2147483647 == 1)
25353 rm -f conftest.
$ac_objext
25354 if { (ac_try
="$ac_compile"
25355 case "(($ac_try" in
25356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25357 *) ac_try_echo=$ac_try;;
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360 (eval "$ac_compile") 2>conftest.er1
25362 grep -v '^ *+' conftest.er1 >conftest.err
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } && {
25367 test -z "$ac_c_werror_flag" ||
25368 test ! -s conftest.err
25369 } && test -s conftest.$ac_objext; then
25370 ac_cv_sys_file_offset_bits=64; break
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25379 ac_cv_sys_file_offset_bits=unknown
25383 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25384 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25385 case $ac_cv_sys_file_offset_bits in #(
25388 cat >>confdefs.h <<_ACEOF
25389 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25394 if test $ac_cv_sys_file_offset_bits = unknown; then
25395 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25396 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25397 if test "${ac_cv_sys_large_files+set}" = set; then
25398 echo $ECHO_N "(cached) $ECHO_C" >&6
25401 cat >conftest.$ac_ext <<_ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h. */
25407 #include <sys/types.h>
25408 /* Check that off_t can represent 2**63 - 1 correctly.
25409 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25410 since some C++ compilers masquerading as C compilers
25411 incorrectly reject 9223372036854775807. */
25412 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25413 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25414 && LARGE_OFF_T % 2147483647 == 1)
25424 rm -f conftest.$ac_objext
25425 if { (ac_try="$ac_compile"
25426 case "(($ac_try" in
25427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25428 *) ac_try_echo
=$ac_try;;
25430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25431 (eval "$ac_compile") 2>conftest.er1
25433 grep -v '^ *+' conftest.er1
>conftest.err
25435 cat conftest.err
>&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } && {
25438 test -z "$ac_c_werror_flag" ||
25439 test ! -s conftest.err
25440 } && test -s conftest.
$ac_objext; then
25441 ac_cv_sys_large_files
=no
; break
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.
$ac_ext >&5
25449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25450 cat >conftest.
$ac_ext <<_ACEOF
25453 cat confdefs.h
>>conftest.
$ac_ext
25454 cat >>conftest.
$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 #define _LARGE_FILES 1
25457 #include <sys/types.h>
25458 /* Check that off_t can represent 2**63 - 1 correctly.
25459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25460 since some C++ compilers masquerading as C compilers
25461 incorrectly reject 9223372036854775807. */
25462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25464 && LARGE_OFF_T % 2147483647 == 1)
25474 rm -f conftest.
$ac_objext
25475 if { (ac_try
="$ac_compile"
25476 case "(($ac_try" in
25477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25478 *) ac_try_echo=$ac_try;;
25480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25481 (eval "$ac_compile") 2>conftest.er1
25483 grep -v '^ *+' conftest.er1 >conftest.err
25485 cat conftest.err >&5
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); } && {
25488 test -z "$ac_c_werror_flag" ||
25489 test ! -s conftest.err
25490 } && test -s conftest.$ac_objext; then
25491 ac_cv_sys_large_files=1; break
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25500 ac_cv_sys_large_files=unknown
25504 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25505 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25506 case $ac_cv_sys_large_files in #(
25509 cat >>confdefs.h <<_ACEOF
25510 #define _LARGE_FILES $ac_cv_sys_large_files
25520 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25521 { echo "$as_me:$LINENO: checking for off_t" >&5
25522 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25523 if test "${ac_cv_type_off_t+set}" = set; then
25524 echo $ECHO_N "(cached) $ECHO_C" >&6
25526 cat >conftest.$ac_ext <<_ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h. */
25532 $ac_includes_default
25533 typedef off_t ac__type_new_;
25537 if ((ac__type_new_ *) 0)
25539 if (sizeof (ac__type_new_))
25545 rm -f conftest.$ac_objext
25546 if { (ac_try="$ac_compile"
25547 case "(($ac_try" in
25548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25549 *) ac_try_echo
=$ac_try;;
25551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25552 (eval "$ac_compile") 2>conftest.er1
25554 grep -v '^ *+' conftest.er1
>conftest.err
25556 cat conftest.err
>&5
25557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558 (exit $ac_status); } && {
25559 test -z "$ac_c_werror_flag" ||
25560 test ! -s conftest.err
25561 } && test -s conftest.
$ac_objext; then
25562 ac_cv_type_off_t
=yes
25564 echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.
$ac_ext >&5
25567 ac_cv_type_off_t
=no
25570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25572 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25573 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25575 # The cast to long int works around a bug in the HP C Compiler
25576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25578 # This bug is HP SR number 8606223364.
25579 { echo "$as_me:$LINENO: checking size of off_t" >&5
25580 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25581 if test "${ac_cv_sizeof_off_t+set}" = set; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25584 if test "$cross_compiling" = yes; then
25585 # Depending upon the size, compute the lo and hi bounds.
25586 cat >conftest.
$ac_ext <<_ACEOF
25589 cat confdefs.h
>>conftest.
$ac_ext
25590 cat >>conftest.
$ac_ext <<_ACEOF
25591 /* end confdefs.h. */
25592 $ac_includes_default
25593 typedef off_t ac__type_sizeof_;
25597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25604 rm -f conftest.
$ac_objext
25605 if { (ac_try
="$ac_compile"
25606 case "(($ac_try" in
25607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25608 *) ac_try_echo=$ac_try;;
25610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25611 (eval "$ac_compile") 2>conftest.er1
25613 grep -v '^ *+' conftest.er1 >conftest.err
25615 cat conftest.err >&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } && {
25618 test -z "$ac_c_werror_flag" ||
25619 test ! -s conftest.err
25620 } && test -s conftest.$ac_objext; then
25623 cat >conftest.$ac_ext <<_ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25629 $ac_includes_default
25630 typedef off_t ac__type_sizeof_;
25634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25641 rm -f conftest.$ac_objext
25642 if { (ac_try="$ac_compile"
25643 case "(($ac_try" in
25644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25645 *) ac_try_echo
=$ac_try;;
25647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25648 (eval "$ac_compile") 2>conftest.er1
25650 grep -v '^ *+' conftest.er1
>conftest.err
25652 cat conftest.err
>&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } && {
25655 test -z "$ac_c_werror_flag" ||
25656 test ! -s conftest.err
25657 } && test -s conftest.
$ac_objext; then
25658 ac_hi
=$ac_mid; break
25660 echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.
$ac_ext >&5
25663 ac_lo
=`expr $ac_mid + 1`
25664 if test $ac_lo -le $ac_mid; then
25668 ac_mid
=`expr 2 '*' $ac_mid + 1`
25671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25674 echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.
$ac_ext >&5
25677 cat >conftest.
$ac_ext <<_ACEOF
25680 cat confdefs.h
>>conftest.
$ac_ext
25681 cat >>conftest.
$ac_ext <<_ACEOF
25682 /* end confdefs.h. */
25683 $ac_includes_default
25684 typedef off_t ac__type_sizeof_;
25688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25695 rm -f conftest.
$ac_objext
25696 if { (ac_try
="$ac_compile"
25697 case "(($ac_try" in
25698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25699 *) ac_try_echo=$ac_try;;
25701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25702 (eval "$ac_compile") 2>conftest.er1
25704 grep -v '^ *+' conftest.er1 >conftest.err
25706 cat conftest.err >&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } && {
25709 test -z "$ac_c_werror_flag" ||
25710 test ! -s conftest.err
25711 } && test -s conftest.$ac_objext; then
25714 cat >conftest.$ac_ext <<_ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25720 $ac_includes_default
25721 typedef off_t ac__type_sizeof_;
25725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25732 rm -f conftest.$ac_objext
25733 if { (ac_try="$ac_compile"
25734 case "(($ac_try" in
25735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25736 *) ac_try_echo
=$ac_try;;
25738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25739 (eval "$ac_compile") 2>conftest.er1
25741 grep -v '^ *+' conftest.er1
>conftest.err
25743 cat conftest.err
>&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } && {
25746 test -z "$ac_c_werror_flag" ||
25747 test ! -s conftest.err
25748 } && test -s conftest.
$ac_objext; then
25749 ac_lo
=$ac_mid; break
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.
$ac_ext >&5
25754 ac_hi
=`expr '(' $ac_mid ')' - 1`
25755 if test $ac_mid -le $ac_hi; then
25759 ac_mid
=`expr 2 '*' $ac_mid`
25762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25765 echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.
$ac_ext >&5
25771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25775 # Binary search between lo and hi bounds.
25776 while test "x$ac_lo" != "x$ac_hi"; do
25777 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25778 cat >conftest.
$ac_ext <<_ACEOF
25781 cat confdefs.h
>>conftest.
$ac_ext
25782 cat >>conftest.
$ac_ext <<_ACEOF
25783 /* end confdefs.h. */
25784 $ac_includes_default
25785 typedef off_t ac__type_sizeof_;
25789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25796 rm -f conftest.
$ac_objext
25797 if { (ac_try
="$ac_compile"
25798 case "(($ac_try" in
25799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803 (eval "$ac_compile") 2>conftest.er1
25805 grep -v '^ *+' conftest.er1 >conftest.err
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } && {
25810 test -z "$ac_c_werror_flag" ||
25811 test ! -s conftest.err
25812 } && test -s conftest.$ac_objext; then
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 ac_lo=`expr '(' $ac_mid ')' + 1`
25821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25825 '') if test "$ac_cv_type_off_t" = yes; then
25826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25827 See \`config.log
' for more details." >&5
25828 echo "$as_me: error: cannot compute sizeof (off_t)
25829 See \`config.log' for more details.
" >&2;}
25830 { (exit 77); exit 77; }; }
25832 ac_cv_sizeof_off_t=0
25836 cat >conftest.$ac_ext <<_ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h. */
25842 $ac_includes_default
25843 typedef off_t ac__type_sizeof_;
25844 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25845 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25847 #include <stdlib.h>
25852 FILE *f = fopen ("conftest.val
", "w
");
25855 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25857 long int i = longval ();
25858 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25860 fprintf (f, "%ld
\n", i);
25864 unsigned long int i = ulongval ();
25865 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25867 fprintf (f, "%lu
\n", i);
25869 return ferror (f) || fclose (f) != 0;
25875 rm -f conftest$ac_exeext
25876 if { (ac_try="$ac_link"
25877 case "(($ac_try" in
25878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25879 *) ac_try_echo=$ac_try;;
25881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25882 (eval "$ac_link") 2>&5
25884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25886 { (case "(($ac_try" in
25887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888 *) ac_try_echo=$ac_try;;
25890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25891 (eval "$ac_try") 2>&5
25893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25894 (exit $ac_status); }; }; then
25895 ac_cv_sizeof_off_t=`cat conftest.val`
25897 echo "$as_me: program exited with status
$ac_status" >&5
25898 echo "$as_me: failed program was
:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25901 ( exit $ac_status )
25902 if test "$ac_cv_type_off_t" = yes; then
25903 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
25904 See \
`config.log' for more details." >&5
25905 echo "$as_me: error: cannot compute sizeof (off_t)
25906 See \`config.log
' for more details." >&2;}
25907 { (exit 77); exit 77; }; }
25909 ac_cv_sizeof_off_t=0
25912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25916 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25917 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25921 cat >>confdefs.h <<_ACEOF
25922 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25927 # If we don't have largefile support
, can
't handle segsize >= 2GB.
25928 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25929 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25930 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25931 { (exit 1); exit 1; }; }
25934 # SunOS doesn't handle negative byte comparisons properly with
+/- return
25935 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25936 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25937 if test "${ac_cv_func_memcmp_working+set}" = set; then
25938 echo $ECHO_N "(cached) $ECHO_C" >&6
25940 if test "$cross_compiling" = yes; then
25941 ac_cv_func_memcmp_working
=no
25943 cat >conftest.
$ac_ext <<_ACEOF
25946 cat confdefs.h
>>conftest.
$ac_ext
25947 cat >>conftest.
$ac_ext <<_ACEOF
25948 /* end confdefs.h. */
25949 $ac_includes_default
25954 /* Some versions of memcmp are not 8-bit clean. */
25955 char c0 = '\100', c1 = '\200', c2 = '\201';
25956 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25959 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25960 or more and with at least one buffer not starting on a 4-byte boundary.
25961 William Lewis provided this test program. */
25966 for (i = 0; i < 4; i++)
25970 strcpy (a, "--------01111111");
25971 strcpy (b, "--------10000000");
25972 if (memcmp (a, b, 16) >= 0)
25982 rm -f conftest
$ac_exeext
25983 if { (ac_try
="$ac_link"
25984 case "(($ac_try" in
25985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_link") 2>&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25993 { (case "(($ac_try" in
25994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25995 *) ac_try_echo
=$ac_try;;
25997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25998 (eval "$ac_try") 2>&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; }; then
26002 ac_cv_func_memcmp_working
=yes
26004 echo "$as_me: program exited with status $ac_status" >&5
26005 echo "$as_me: failed program was:" >&5
26006 sed 's/^/| /' conftest.
$ac_ext >&5
26008 ( exit $ac_status )
26009 ac_cv_func_memcmp_working
=no
26011 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26016 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26017 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26018 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
26019 *" memcmp.$ac_objext "* ) ;;
26020 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
26027 # Select semaphore implementation type.
26028 if test "$PORTNAME" != "win32"; then
26029 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
26031 cat >>confdefs.h
<<\_ACEOF
26032 #define USE_NAMED_POSIX_SEMAPHORES 1
26035 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
26037 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
26039 cat >>confdefs.h
<<\_ACEOF
26040 #define USE_UNNAMED_POSIX_SEMAPHORES 1
26043 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
26046 cat >>confdefs.h
<<\_ACEOF
26047 #define USE_SYSV_SEMAPHORES 1
26050 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
26055 cat >>confdefs.h
<<\_ACEOF
26056 #define USE_WIN32_SEMAPHORES 1
26059 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
26063 # Select shared-memory implementation type.
26064 if test "$PORTNAME" != "win32"; then
26066 cat >>confdefs.h
<<\_ACEOF
26067 #define USE_SYSV_SHARED_MEMORY 1
26070 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
26073 cat >>confdefs.h
<<\_ACEOF
26074 #define USE_WIN32_SHARED_MEMORY 1
26077 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
26080 # If not set in template file, set bytes to use libc memset()
26081 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
26082 MEMSET_LOOP_LIMIT
=1024
26085 cat >>confdefs.h
<<_ACEOF
26086 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
26091 if test "$enable_nls" = yes ; then
26093 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
26094 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
26095 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
26096 echo $ECHO_N "(cached) $ECHO_C" >&6
26098 ac_func_search_save_LIBS
=$LIBS
26099 cat >conftest.
$ac_ext <<_ACEOF
26102 cat confdefs.h
>>conftest.
$ac_ext
26103 cat >>conftest.
$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26106 /* Override any GCC internal prototype to avoid an error.
26107 Use char because int might match the return type of a GCC
26108 builtin and then its argument prototype would still apply. */
26112 char bind_textdomain_codeset ();
26116 return bind_textdomain_codeset ();
26121 for ac_lib
in '' intl
; do
26122 if test -z "$ac_lib"; then
26123 ac_res
="none required"
26126 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26128 rm -f conftest.
$ac_objext conftest
$ac_exeext
26129 if { (ac_try
="$ac_link"
26130 case "(($ac_try" in
26131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26132 *) ac_try_echo=$ac_try;;
26134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26135 (eval "$ac_link") 2>conftest.er1
26137 grep -v '^ *+' conftest.er1 >conftest.err
26139 cat conftest.err >&5
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); } && {
26142 test -z "$ac_c_werror_flag" ||
26143 test ! -s conftest.err
26144 } && test -s conftest$ac_exeext &&
26145 $as_test_x conftest$ac_exeext; then
26146 ac_cv_search_bind_textdomain_codeset=$ac_res
26148 echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26156 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
26160 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
26163 ac_cv_search_bind_textdomain_codeset=no
26165 rm conftest.$ac_ext
26166 LIBS=$ac_func_search_save_LIBS
26168 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
26169 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
26170 ac_res=$ac_cv_search_bind_textdomain_codeset
26171 if test "$ac_res" != no; then
26172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26175 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
26176 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
26177 { (exit 1); exit 1; }; }
26180 if test "${ac_cv_header_libintl_h+set}" = set; then
26181 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26182 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26183 if test "${ac_cv_header_libintl_h+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26186 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26187 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26189 # Is the header compilable?
26190 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
26191 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
26192 cat >conftest.$ac_ext <<_ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26198 $ac_includes_default
26199 #include <libintl.h>
26201 rm -f conftest.$ac_objext
26202 if { (ac_try="$ac_compile"
26203 case "(($ac_try" in
26204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26205 *) ac_try_echo
=$ac_try;;
26207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26208 (eval "$ac_compile") 2>conftest.er1
26210 grep -v '^ *+' conftest.er1
>conftest.err
26212 cat conftest.err
>&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } && {
26215 test -z "$ac_c_werror_flag" ||
26216 test ! -s conftest.err
26217 } && test -s conftest.
$ac_objext; then
26218 ac_header_compiler
=yes
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.
$ac_ext >&5
26223 ac_header_compiler
=no
26226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26228 echo "${ECHO_T}$ac_header_compiler" >&6; }
26230 # Is the header present?
26231 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
26232 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
26233 cat >conftest.
$ac_ext <<_ACEOF
26236 cat confdefs.h
>>conftest.
$ac_ext
26237 cat >>conftest.
$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26239 #include <libintl.h>
26241 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26242 case "(($ac_try" in
26243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26244 *) ac_try_echo=$ac_try;;
26246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26249 grep -v '^ *+' conftest.er1 >conftest.err
26251 cat conftest.err >&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } >/dev/null && {
26254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26255 test ! -s conftest.err
26257 ac_header_preproc=yes
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26262 ac_header_preproc=no
26265 rm -f conftest.err conftest.$ac_ext
26266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26267 echo "${ECHO_T}$ac_header_preproc" >&6; }
26269 # So? What about this header?
26270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26272 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26273 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26274 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
26275 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
26276 ac_header_preproc=yes
26279 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
26280 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
26281 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
26282 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
26283 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
26284 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
26285 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
26286 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26287 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
26288 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
26289 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
26290 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
26292 ## ---------------------------------------- ##
26293 ## Report this to pgsql-bugs@postgresql.org ##
26294 ## ---------------------------------------- ##
26296 ) | sed "s/^/$as_me: WARNING: /" >&2
26299 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26300 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26301 if test "${ac_cv_header_libintl_h+set}" = set; then
26302 echo $ECHO_N "(cached) $ECHO_C" >&6
26304 ac_cv_header_libintl_h=$ac_header_preproc
26306 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26307 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26310 if test $ac_cv_header_libintl_h = yes; then
26313 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
26314 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
26315 { (exit 1); exit 1; }; }
26319 for ac_prog in msgfmt
26321 # Extract the first word of "$ac_prog", so it can be a program name with args.
26322 set dummy $ac_prog; ac_word=$2
26323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26325 if test "${ac_cv_prog_MSGFMT+set}" = set; then
26326 echo $ECHO_N "(cached) $ECHO_C" >&6
26328 if test -n "$MSGFMT"; then
26329 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
26331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26332 for as_dir in $PATH
26335 test -z "$as_dir" && as_dir=.
26336 for ac_exec_ext in '' $ac_executable_extensions; do
26337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26338 ac_cv_prog_MSGFMT="$ac_prog"
26339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26348 MSGFMT=$ac_cv_prog_MSGFMT
26349 if test -n "$MSGFMT"; then
26350 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26351 echo "${ECHO_T}$MSGFMT" >&6; }
26353 { echo "$as_me:$LINENO: result: no" >&5
26354 echo "${ECHO_T}no" >&6; }
26358 test -n "$MSGFMT" && break
26361 if test -z "$MSGFMT"; then
26362 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26363 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26364 { (exit 1); exit 1; }; }
26366 for ac_prog in msgmerge
26368 # Extract the first word of "$ac_prog", so it can be a program name with args.
26369 set dummy $ac_prog; ac_word=$2
26370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26372 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26373 echo $ECHO_N "(cached) $ECHO_C" >&6
26375 if test -n "$MSGMERGE"; then
26376 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26379 for as_dir in $PATH
26382 test -z "$as_dir" && as_dir=.
26383 for ac_exec_ext in '' $ac_executable_extensions; do
26384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26385 ac_cv_prog_MSGMERGE="$ac_prog"
26386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26395 MSGMERGE=$ac_cv_prog_MSGMERGE
26396 if test -n "$MSGMERGE"; then
26397 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26398 echo "${ECHO_T}$MSGMERGE" >&6; }
26400 { echo "$as_me:$LINENO: result: no" >&5
26401 echo "${ECHO_T}no" >&6; }
26405 test -n "$MSGMERGE" && break
26408 for ac_prog in xgettext
26410 # Extract the first word of "$ac_prog", so it can be a program name with args.
26411 set dummy $ac_prog; ac_word=$2
26412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26414 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26417 if test -n "$XGETTEXT"; then
26418 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26421 for as_dir in $PATH
26424 test -z "$as_dir" && as_dir=.
26425 for ac_exec_ext in '' $ac_executable_extensions; do
26426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26427 ac_cv_prog_XGETTEXT="$ac_prog"
26428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26437 XGETTEXT=$ac_cv_prog_XGETTEXT
26438 if test -n "$XGETTEXT"; then
26439 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26440 echo "${ECHO_T}$XGETTEXT" >&6; }
26442 { echo "$as_me:$LINENO: result: no" >&5
26443 echo "${ECHO_T}no" >&6; }
26447 test -n "$XGETTEXT" && break
26453 # Check for Tcl configuration script tclConfig.sh
26454 if test "$with_tcl" = yes; then
26455 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
26457 # Extract the first word of "$ac_prog", so it can be a program name with args.
26458 set dummy $ac_prog; ac_word=$2
26459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26461 if test "${ac_cv_path_TCLSH+set}" = set; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26466 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26470 for as_dir in $PATH
26473 test -z "$as_dir" && as_dir=.
26474 for ac_exec_ext in '' $ac_executable_extensions; do
26475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26476 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26487 TCLSH=$ac_cv_path_TCLSH
26488 if test -n "$TCLSH"; then
26489 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26490 echo "${ECHO_T}$TCLSH" >&6; }
26492 { echo "$as_me:$LINENO: result: no" >&5
26493 echo "${ECHO_T}no" >&6; }
26497 test -n "$TCLSH" && break
26500 if test x"$TCLSH" = x""; then
26501 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26502 echo "$as_me: error: Tcl shell not found" >&2;}
26503 { (exit 1); exit 1; }; }
26506 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26507 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26508 # Let user override test
26509 if test -z "$TCL_CONFIG_SH"; then
26510 pgac_test_dirs="$with_tclconfig"
26512 set X $pgac_test_dirs; shift
26513 if test $# -eq 0; then
26514 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26515 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26516 { (exit 1); exit 1; }; }
26517 set X `echo 'puts $auto_path' |
$TCLSH`; shift
26521 if test -r "$pgac_dir/tclConfig.sh"; then
26522 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26528 if test -z "$TCL_CONFIG_SH"; then
26529 { echo "$as_me:$LINENO: result: no" >&5
26530 echo "${ECHO_T}no" >&6; }
26531 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26532 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26533 { (exit 1); exit 1; }; }
26535 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26536 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26542 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26543 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26544 eval TCL_LIBS=\"$TCL_LIBS\"
26545 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26546 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26548 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26549 ac_save_CPPFLAGS=$CPPFLAGS
26550 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26551 if test "${ac_cv_header_tcl_h+set}" = set; then
26552 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26553 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26554 if test "${ac_cv_header_tcl_h+set}" = set; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26558 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26560 # Is the header compilable?
26561 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26562 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26563 cat >conftest.$ac_ext <<_ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26569 $ac_includes_default
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26576 *) ac_try_echo
=$ac_try;;
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_compile") 2>conftest.er1
26581 grep -v '^ *+' conftest.er1
>conftest.err
26583 cat conftest.err
>&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } && {
26586 test -z "$ac_c_werror_flag" ||
26587 test ! -s conftest.err
26588 } && test -s conftest.
$ac_objext; then
26589 ac_header_compiler
=yes
26591 echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.
$ac_ext >&5
26594 ac_header_compiler
=no
26597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26599 echo "${ECHO_T}$ac_header_compiler" >&6; }
26601 # Is the header present?
26602 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26603 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26604 cat >conftest.
$ac_ext <<_ACEOF
26607 cat confdefs.h
>>conftest.
$ac_ext
26608 cat >>conftest.
$ac_ext <<_ACEOF
26609 /* end confdefs.h. */
26612 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26613 case "(($ac_try" in
26614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26615 *) ac_try_echo=$ac_try;;
26617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26620 grep -v '^ *+' conftest.er1 >conftest.err
26622 cat conftest.err >&5
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); } >/dev/null && {
26625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26626 test ! -s conftest.err
26628 ac_header_preproc=yes
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 ac_header_preproc=no
26636 rm -f conftest.err conftest.$ac_ext
26637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26638 echo "${ECHO_T}$ac_header_preproc" >&6; }
26640 # So? What about this header?
26641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26643 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26644 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26646 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26647 ac_header_preproc=yes
26650 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26651 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26652 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26653 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26654 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26655 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26656 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26657 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26658 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26659 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26660 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26661 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26663 ## ---------------------------------------- ##
26664 ## Report this to pgsql-bugs@postgresql.org ##
26665 ## ---------------------------------------- ##
26667 ) | sed "s/^/$as_me: WARNING: /" >&2
26670 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26671 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26672 if test "${ac_cv_header_tcl_h+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26675 ac_cv_header_tcl_h=$ac_header_preproc
26677 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26678 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26681 if test $ac_cv_header_tcl_h = yes; then
26684 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26685 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26686 { (exit 1); exit 1; }; }
26690 CPPFLAGS=$ac_save_CPPFLAGS
26694 # Check for DocBook and tools
26696 for ac_prog in onsgmls nsgmls
26698 # Extract the first word of "$ac_prog", so it can be a program name with args.
26699 set dummy $ac_prog; ac_word=$2
26700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26702 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26705 if test -n "$NSGMLS"; then
26706 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26709 for as_dir in $PATH
26712 test -z "$as_dir" && as_dir=.
26713 for ac_exec_ext in '' $ac_executable_extensions; do
26714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26715 ac_cv_prog_NSGMLS="$ac_prog"
26716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26725 NSGMLS=$ac_cv_prog_NSGMLS
26726 if test -n "$NSGMLS"; then
26727 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26728 echo "${ECHO_T}$NSGMLS" >&6; }
26730 { echo "$as_me:$LINENO: result: no" >&5
26731 echo "${ECHO_T}no" >&6; }
26735 test -n "$NSGMLS" && break
26738 for ac_prog in openjade jade
26740 # Extract the first word of "$ac_prog", so it can be a program name with args.
26741 set dummy $ac_prog; ac_word=$2
26742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26744 if test "${ac_cv_prog_JADE+set}" = set; then
26745 echo $ECHO_N "(cached) $ECHO_C" >&6
26747 if test -n "$JADE"; then
26748 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26751 for as_dir in $PATH
26754 test -z "$as_dir" && as_dir=.
26755 for ac_exec_ext in '' $ac_executable_extensions; do
26756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26757 ac_cv_prog_JADE="$ac_prog"
26758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26767 JADE=$ac_cv_prog_JADE
26768 if test -n "$JADE"; then
26769 { echo "$as_me:$LINENO: result: $JADE" >&5
26770 echo "${ECHO_T}$JADE" >&6; }
26772 { echo "$as_me:$LINENO: result: no" >&5
26773 echo "${ECHO_T}no" >&6; }
26777 test -n "$JADE" && break
26781 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26782 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26783 if test "${pgac_cv_check_docbook+set}" = set; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26786 cat >conftest.sgml <<EOF
26787 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26789 <title>test</title>
26791 <title>random</title>
26793 <title>testsect</title>
26800 pgac_cv_check_docbook=no
26802 if test -n "$NSGMLS"; then
26803 $NSGMLS -s conftest.sgml 1>&5 2>&1
26804 if test $? -eq 0; then
26805 pgac_cv_check_docbook=yes
26808 rm -f conftest.sgml
26810 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26811 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26813 have_docbook=$pgac_cv_check_docbook
26816 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26817 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26818 if test "${pgac_cv_path_stylesheets+set}" = set; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26821 if test -n "$DOCBOOKSTYLE"; then
26822 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26824 for pgac_prefix in /usr /usr/local /opt /sw; do
26825 for pgac_infix in share lib; do
26826 for pgac_postfix in \
26827 sgml/stylesheets/nwalsh-modular \
26828 sgml/stylesheets/docbook \
26829 sgml/stylesheets/dsssl/docbook \
26830 sgml/docbook-dsssl \
26831 sgml/docbook/dsssl/modular \
26832 sgml/docbook/stylesheet/dsssl/modular \
26833 sgml/docbook/dsssl-stylesheets \
26834 sgml/dsssl/docbook-dsssl-nwalsh
26836 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26837 if test -r "$pgac_candidate/html/docbook.dsl" \
26838 && test -r "$pgac_candidate/print/docbook.dsl"
26840 pgac_cv_path_stylesheets=$pgac_candidate
26849 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26851 if test -n "$DOCBOOKSTYLE"; then
26852 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26853 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26855 { echo "$as_me:$LINENO: result: no" >&5
26856 echo "${ECHO_T}no" >&6; }
26858 if test -n "$DOCBOOKSTYLE"; then
26859 for ac_prog in collateindex.pl
26861 # Extract the first word of "$ac_prog", so it can be a program name with args.
26862 set dummy $ac_prog; ac_word=$2
26863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26865 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26868 case $COLLATEINDEX in
26870 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26874 for as_dir in $DOCBOOKSTYLE/bin $PATH
26877 test -z "$as_dir" && as_dir=.
26878 for ac_exec_ext in '' $ac_executable_extensions; do
26879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26880 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26891 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26892 if test -n "$COLLATEINDEX"; then
26893 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26894 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26896 { echo "$as_me:$LINENO: result: no" >&5
26897 echo "${ECHO_T}no" >&6; }
26901 test -n "$COLLATEINDEX" && break
26905 for ac_prog in collateindex.pl
26907 # Extract the first word of "$ac_prog", so it can be a program name with args.
26908 set dummy $ac_prog; ac_word=$2
26909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26911 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26914 case $COLLATEINDEX in
26916 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26920 for as_dir in $PATH
26923 test -z "$as_dir" && as_dir=.
26924 for ac_exec_ext in '' $ac_executable_extensions; do
26925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26926 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26937 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26938 if test -n "$COLLATEINDEX"; then
26939 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26940 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26942 { echo "$as_me:$LINENO: result: no" >&5
26943 echo "${ECHO_T}no" >&6; }
26947 test -n "$COLLATEINDEX" && break
26951 for ac_prog in sgmlspl
26953 # Extract the first word of "$ac_prog", so it can be a program name with args.
26954 set dummy $ac_prog; ac_word=$2
26955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26957 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26960 if test -n "$SGMLSPL"; then
26961 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26964 for as_dir in $PATH
26967 test -z "$as_dir" && as_dir=.
26968 for ac_exec_ext in '' $ac_executable_extensions; do
26969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26970 ac_cv_prog_SGMLSPL="$ac_prog"
26971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26980 SGMLSPL=$ac_cv_prog_SGMLSPL
26981 if test -n "$SGMLSPL"; then
26982 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26983 echo "${ECHO_T}$SGMLSPL" >&6; }
26985 { echo "$as_me:$LINENO: result: no" >&5
26986 echo "${ECHO_T}no" >&6; }
26990 test -n "$SGMLSPL" && break
26993 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26994 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26995 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26998 if test -z "$DOCBOOK2MAN"; then
26999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27000 for as_dir in $PATH
27003 test -z "$as_dir" && as_dir=.
27004 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
27005 ac_path="$as_dir/$ac_prog"
27006 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
27007 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
27008 ac_cv_path_DOCBOOK2MAN=$ac_path
27016 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
27019 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
27020 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
27021 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
27027 # We have to run the thread test near the end so we have all our symbols
27028 # defined. Cross compiling throws a warning.
27030 if test "$enable_thread_safety_force" = yes; then
27031 if test "$PORTNAME" != "win32"
27033 { echo "$as_me:$LINENO: WARNING:
27034 *** Skipping thread test program. --enable-thread-safety-force was used.
27035 *** Run the program in src/test/thread on the your machine and add proper
27036 *** locking function calls to your applications to guarantee thread safety.
27038 echo "$as_me: WARNING:
27039 *** Skipping thread test program. --enable-thread-safety-force was used.
27040 *** Run the program in src/test/thread on the your machine and add proper
27041 *** locking function calls to your applications to guarantee thread safety.
27044 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
27045 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
27047 elif test "$enable_thread_safety" = yes; then
27048 if test "$PORTNAME" != "win32"
27050 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
27051 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
27055 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
27056 LIBS="$LIBS $PTHREAD_LIBS"
27057 if test "$cross_compiling" = yes; then
27058 { echo "$as_me:$LINENO: result: maybe" >&5
27059 echo "${ECHO_T}maybe" >&6; }
27060 { echo "$as_me:$LINENO: WARNING:
27061 *** Skipping thread test program because of cross-compile build.
27062 *** Run the program in src/test/thread on the target machine.
27064 echo "$as_me: WARNING:
27065 *** Skipping thread test program because of cross-compile build.
27066 *** Run the program in src/test/thread on the target machine.
27069 cat >conftest.$ac_ext <<_ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h. */
27075 #include "$srcdir/src/test/thread/thread_test.c"
27077 rm -f conftest$ac_exeext
27078 if { (ac_try="$ac_link"
27079 case "(($ac_try" in
27080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27081 *) ac_try_echo
=$ac_try;;
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_link") 2>&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27088 { (case "(($ac_try" in
27089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27090 *) ac_try_echo=$ac_try;;
27092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093 (eval "$ac_try") 2>&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; }; then
27097 { echo "$as_me:$LINENO: result: yes" >&5
27098 echo "${ECHO_T}yes" >&6; }
27100 echo "$as_me: program exited with status $ac_status" >&5
27101 echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27104 ( exit $ac_status )
27105 { echo "$as_me:$LINENO: result: no" >&5
27106 echo "${ECHO_T}no" >&6; }
27107 { { echo "$as_me:$LINENO: error: thread test program failed
27108 This platform is not thread-safe. Check the file 'config.log' for the
27111 You can use the configure option --enable-thread-safety-force to force
27112 threads to be enabled. But you must then run the program in
27113 src/test/thread and add locking function calls to your applications to
27114 guarantee thread safety." >&5
27115 echo "$as_me: error: thread test program failed
27116 This platform is not thread-safe. Check the file 'config.log' for the
27119 You can use the configure option --enable-thread-safety-force to force
27120 threads to be enabled. But you must then run the program in
27121 src/test/thread and add locking function calls to your applications to
27122 guarantee thread safety." >&2;}
27123 { (exit 1); exit 1; }; }
27125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27132 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
27133 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
27137 # If compiler will take -Wl,--as-needed (or various platform-specific
27138 # spellings thereof) then add that to LDFLAGS. This is much easier than
27139 # trying to filter LIBS to the minimum for each executable.
27140 # (Note that shared library links won't use this switch, though.)
27141 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
27142 # libreadline; therefore we postpone testing it until we know what library
27143 # dependencies readline has. The test code will try to link with $LIBS.
27144 if test "$with_readline" = yes; then
27145 link_test_func=readline
27147 link_test_func=exit
27150 if test "$PORTNAME" = "darwin"; then
27151 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
27152 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
27153 pgac_save_LDFLAGS=$LDFLAGS
27154 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
27155 if test "$cross_compiling" = yes; then
27156 LDFLAGS="$pgac_save_LDFLAGS"
27157 { echo "$as_me:$LINENO: result: assuming no" >&5
27158 echo "${ECHO_T}assuming no" >&6; }
27160 cat >conftest.$ac_ext <<_ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27166 extern void $link_test_func (); void (*fptr) () = $link_test_func;
27175 rm -f conftest$ac_exeext
27176 if { (ac_try="$ac_link"
27177 case "(($ac_try" in
27178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27179 *) ac_try_echo
=$ac_try;;
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_link") 2>&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27186 { (case "(($ac_try" in
27187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_try") 2>&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; }; then
27195 { echo "$as_me:$LINENO: result: yes" >&5
27196 echo "${ECHO_T}yes" >&6; }
27198 echo "$as_me: program exited with status $ac_status" >&5
27199 echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27202 ( exit $ac_status )
27203 LDFLAGS="$pgac_save_LDFLAGS"
27204 { echo "$as_me:$LINENO: result: no" >&5
27205 echo "${ECHO_T}no" >&6; }
27207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27212 elif test "$PORTNAME" = "openbsd"; then
27213 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
27214 echo $ECHO_N "checking if $CC supports -Wl,-Bdynamic... $ECHO_C" >&6; }
27215 pgac_save_LDFLAGS=$LDFLAGS
27216 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
27217 if test "$cross_compiling" = yes; then
27218 LDFLAGS="$pgac_save_LDFLAGS"
27219 { echo "$as_me:$LINENO: result: assuming no" >&5
27220 echo "${ECHO_T}assuming no" >&6; }
27222 cat >conftest.$ac_ext <<_ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h. */
27228 extern void $link_test_func (); void (*fptr) () = $link_test_func;
27237 rm -f conftest$ac_exeext
27238 if { (ac_try="$ac_link"
27239 case "(($ac_try" in
27240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27241 *) ac_try_echo
=$ac_try;;
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_link") 2>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27248 { (case "(($ac_try" in
27249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_try") 2>&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; }; then
27257 { echo "$as_me:$LINENO: result: yes" >&5
27258 echo "${ECHO_T}yes" >&6; }
27260 echo "$as_me: program exited with status $ac_status" >&5
27261 echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27264 ( exit $ac_status )
27265 LDFLAGS="$pgac_save_LDFLAGS"
27266 { echo "$as_me:$LINENO: result: no" >&5
27267 echo "${ECHO_T}no" >&6; }
27269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27275 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
27276 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
27277 pgac_save_LDFLAGS=$LDFLAGS
27278 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
27279 if test "$cross_compiling" = yes; then
27280 LDFLAGS="$pgac_save_LDFLAGS"
27281 { echo "$as_me:$LINENO: result: assuming no" >&5
27282 echo "${ECHO_T}assuming no" >&6; }
27284 cat >conftest.$ac_ext <<_ACEOF
27287 cat confdefs.h >>conftest.$ac_ext
27288 cat >>conftest.$ac_ext <<_ACEOF
27289 /* end confdefs.h. */
27290 extern void $link_test_func (); void (*fptr) () = $link_test_func;
27299 rm -f conftest$ac_exeext
27300 if { (ac_try="$ac_link"
27301 case "(($ac_try" in
27302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27303 *) ac_try_echo
=$ac_try;;
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_link") 2>&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27310 { (case "(($ac_try" in
27311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_try") 2>&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 { echo "$as_me:$LINENO: result: yes" >&5
27320 echo "${ECHO_T}yes" >&6; }
27322 echo "$as_me: program exited with status $ac_status" >&5
27323 echo "$as_me: failed program was:" >&5
27324 sed 's/^/| /' conftest.$ac_ext >&5
27326 ( exit $ac_status )
27327 LDFLAGS="$pgac_save_LDFLAGS"
27328 { echo "$as_me:$LINENO: result: no" >&5
27329 echo "${ECHO_T}no" >&6; }
27331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27339 # Begin output steps
27341 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
27342 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
27343 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
27344 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
27345 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
27346 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
27348 # Create compiler version string
27349 if test x"$GCC" = x"yes" ; then
27350 cc_string="GCC `${CC} --version |
sed q
`"
27351 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
27352 cc_string=`${CC} -V 2>&1 |
sed q
`
27358 cat >>confdefs.h <<_ACEOF
27359 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \
* 8`-bit"
27363 # Supply a numeric version string for use by 3rd party add-ons
27364 # awk -F is a regex on some platforms, and not on others, so make "." a tab
27365 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
27367 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
27369 cat >>confdefs.h <<_ACEOF
27370 #define PG_VERSION_NUM $PG_VERSION_NUM
27375 # prepare build tree if outside source tree
27376 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
27377 # Note 2: /bin/pwd might be better than shell's built-in at getting
27378 # a symlink-free name.
27379 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin
/pwd`" = "`/bin
/pwd`"; then
27383 if test "$no_create" != yes; then
27384 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
27385 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
27386 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
27387 || { { echo "$as_me:$LINENO: error: failed" >&5
27388 echo "$as_me: error: failed" >&2;}
27389 { (exit 1); exit 1; }; }
27390 { echo "$as_me:$LINENO: result: done" >&5
27391 echo "${ECHO_T}done" >&6; }
27397 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
27400 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}"
27403 if test "$PORTNAME" = "win32"; then
27404 ac_config_commands="$ac_config_commands check_win32_symlinks"
27408 ac_config_headers="$ac_config_headers src/include/pg_config.h"
27411 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
27414 cat >confcache <<\_ACEOF
27415 # This file is a shell script that caches the results of configure
27416 # tests run on this system so they can be shared between configure
27417 # scripts and configure runs, see configure's option --config-cache.
27418 # It is not useful on other systems. If it contains results you don't
27419 # want to keep, you may remove or edit it.
27421 # config.status only pays attention to the cache file if you give it
27422 # the --recheck option to rerun configure.
27424 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
27425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27426 # following values.
27430 # The following way of writing the cache mishandles newlines in values,
27431 # but we know of no workaround that is simple, portable, and efficient.
27432 # So, we kill variables containing newlines.
27433 # Ultrix sh set writes to stderr and can't be redirected directly,
27434 # and sets the high bit in the cache file unless we assign to the vars.
27436 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27437 eval ac_val
=\$
$ac_var
27441 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27442 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27445 _ | IFS | as_nl
) ;; #(
27446 *) $as_unset $ac_var ;;
27452 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27453 *${as_nl}ac_space
=\
*)
27454 # `set' does not quote correctly, so add quotes (double-quote
27455 # substitution turns \\\\ into \\, and sed turns \\ into \).
27458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27461 # `set' quotes correctly as required by POSIX, so do not add quotes.
27462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27471 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27473 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27475 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27476 if test -w "$cache_file"; then
27477 test "x$cache_file" != "x/dev/null" &&
27478 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27479 echo "$as_me: updating cache $cache_file" >&6;}
27480 cat confcache
>$cache_file
27482 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27483 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27488 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27489 # Let make expand exec_prefix.
27490 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27492 DEFS
=-DHAVE_CONFIG_H
27496 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27497 # 1. Remove the extension, and $U if already installed.
27498 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27499 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27500 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27501 # will be set to the directory where LIBOBJS objects are built.
27502 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27503 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27505 LIBOBJS
=$ac_libobjs
27507 LTLIBOBJS
=$ac_ltlibobjs
27511 : ${CONFIG_STATUS=./config.status}
27512 ac_clean_files_save
=$ac_clean_files
27513 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27514 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27515 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27516 cat >$CONFIG_STATUS <<_ACEOF
27518 # Generated by $as_me.
27519 # Run this file to recreate the current configuration.
27520 # Compiler output produced by configure, useful for debugging
27521 # configure, is in config.log if it exists.
27524 ac_cs_recheck=false
27526 SHELL=\${CONFIG_SHELL-$SHELL}
27529 cat >>$CONFIG_STATUS <<\_ACEOF
27530 ## --------------------- ##
27531 ## M4sh Initialization. ##
27532 ## --------------------- ##
27534 # Be more Bourne compatible
27535 DUALCASE
=1; export DUALCASE
# for MKS sh
27536 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27539 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27540 # is contrary to our usage. Disable this feature.
27541 alias -g '${1+"$@"}'='"$@"'
27542 setopt NO_GLOB_SUBST
27544 case `(set -o) 2>/dev/null` in
27545 *posix
*) set -o posix
;;
27554 # Avoid depending upon Character Ranges.
27555 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27556 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27557 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27558 as_cr_digits
='0123456789'
27559 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27561 # The user is always right.
27562 if test "${PATH_SEPARATOR+set}" != set; then
27563 echo "#! /bin/sh" >conf$$.sh
27564 echo "exit 0" >>conf$$.sh
27566 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27574 # Support unset when possible.
27575 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27583 # We need space, tab and new line, in precisely that order. Quoting is
27584 # there to prevent editors from complaining about space-tab.
27585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27586 # splitting by setting IFS to empty value.)
27591 # Find who we are. Look in the path if we contain no directory separator.
27593 *[\\/]* ) as_myself
=$0 ;;
27594 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27595 for as_dir
in $PATH
27598 test -z "$as_dir" && as_dir
=.
27599 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27605 # We did not find ourselves, most probably we were run as `sh COMMAND'
27606 # in which case we are not to be found in the path.
27607 if test "x$as_myself" = x
; then
27610 if test ! -f "$as_myself"; then
27611 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27612 { (exit 1); exit 1; }
27615 # Work around bugs in pre-3.0 UWIN ksh.
27616 for as_var
in ENV MAIL MAILPATH
27617 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27625 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27626 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27627 LC_TELEPHONE LC_TIME
27629 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27630 eval $as_var=C
; export $as_var
27632 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27636 # Required to use basename.
27637 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27638 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27644 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27645 as_basename
=basename
27651 # Name of the executable.
27652 as_me
=`$as_basename -- "$0" ||
27653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27654 X"$0" : 'X\(//\)$' \| \
27655 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27657 sed '/^.*\/\([^/][^/]*\)\/*$/{
27676 as_lineno_1
=$LINENO
27677 as_lineno_2
=$LINENO
27678 test "x$as_lineno_1" != "x$as_lineno_2" &&
27679 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27681 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27682 # uniformly replaced by the line number. The first 'sed' inserts a
27683 # line-number line after each line using $LINENO; the second 'sed'
27684 # does the real work. The second script uses 'N' to pair each
27685 # line-number line with the line containing $LINENO, and appends
27686 # trailing '-' during substitution so that $LINENO is not a special
27687 # case at line end.
27688 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27689 # scripts with optimization help from Paolo Bonzini. Blame Lee
27690 # E. McMahon (1931-1989) for sed's syntax. :-)
27702 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27705 ' >$as_me.lineno
&&
27706 chmod +x
"$as_me.lineno" ||
27707 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27708 { (exit 1); exit 1; }; }
27710 # Don't try to exec as it changes $[0], causing all sort of problems
27711 # (the dirname of $[0] is not the place where we might find the
27712 # original and so on. Autoconf is especially sensitive to this).
27713 .
"./$as_me.lineno"
27714 # Exit status is that of the last command.
27719 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27725 ECHO_C
= ECHO_N
= ECHO_T
=
27726 case `echo -n x` in
27728 case `echo 'x\c'` in
27729 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27736 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27737 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27743 rm -f conf$$ conf$$.exe conf$$.
file
27744 if test -d conf$$.dir
; then
27745 rm -f conf$$.dir
/conf$$.
file
27751 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27753 # ... but there are two gotchas:
27754 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27755 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27756 # In both cases, we have to default to `cp -p'.
27757 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27759 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27764 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27765 rmdir conf$$.dir
2>/dev
/null
27767 if mkdir
-p .
2>/dev
/null
; then
27770 test -d .
/-p && rmdir .
/-p
27774 if test -x / >/dev
/null
2>&1; then
27775 as_test_x
='test -x'
27777 if ls -dL / >/dev
/null
2>&1; then
27784 if test -d "$1"; then
27790 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27791 ???[sx]*):;;*)false;;esac;fi
27795 as_executable_p
=$as_test_x
27797 # Sed expression to map a string onto a valid CPP name.
27798 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27800 # Sed expression to map a string onto a valid variable name.
27801 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27806 # Save the log message, to keep $[0] and so on meaningful, and to
27807 # report actual input values of CONFIG_FILES etc. instead of their
27808 # values after options handling.
27810 This file was extended by PostgreSQL $as_me 8.4beta2, which was
27811 generated by GNU Autoconf 2.61. Invocation command line was
27813 CONFIG_FILES = $CONFIG_FILES
27814 CONFIG_HEADERS = $CONFIG_HEADERS
27815 CONFIG_LINKS = $CONFIG_LINKS
27816 CONFIG_COMMANDS = $CONFIG_COMMANDS
27819 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27824 cat >>$CONFIG_STATUS <<_ACEOF
27825 # Files that config.status was made for.
27826 config_files="$ac_config_files"
27827 config_headers="$ac_config_headers"
27828 config_links="$ac_config_links"
27829 config_commands="$ac_config_commands"
27833 cat >>$CONFIG_STATUS <<\_ACEOF
27835 \`$as_me' instantiates files from templates according to the
27836 current configuration.
27838 Usage: $0 [OPTIONS] [FILE]...
27840 -h, --help print this help, then exit
27841 -V, --version print version number and configuration settings, then exit
27842 -q, --quiet do not print progress messages
27843 -d, --debug don't remove temporary files
27844 --recheck update $as_me by reconfiguring in the same conditions
27845 --file=FILE[:TEMPLATE]
27846 instantiate the configuration file FILE
27847 --header=FILE[:TEMPLATE]
27848 instantiate the configuration header FILE
27850 Configuration files:
27853 Configuration headers:
27856 Configuration links:
27859 Configuration commands:
27862 Report bugs to <bug-autoconf@gnu.org>."
27865 cat >>$CONFIG_STATUS <<_ACEOF
27867 PostgreSQL config.status 8.4beta2
27868 configured by $0, generated by GNU Autoconf 2.61,
27869 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27871 Copyright (C) 2006 Free Software Foundation, Inc.
27872 This config.status script is free software; the Free Software Foundation
27873 gives unlimited permission to copy, distribute and modify it."
27879 cat >>$CONFIG_STATUS <<\_ACEOF
27880 # If no file are specified by the user, then we need to provide default
27881 # value. By we need to know if files were specified by the user.
27887 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27888 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27899 # Handling of the options.
27900 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27902 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27903 echo "$ac_cs_version"; exit ;;
27904 --debug |
--debu |
--deb |
--de |
--d |
-d )
27906 --file |
--fil |
--fi |
--f )
27908 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27909 ac_need_defaults
=false
;;
27910 --header |
--heade |
--head |
--hea )
27912 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27913 ac_need_defaults
=false
;;
27915 # Conflict between --help and --header
27916 { echo "$as_me: error: ambiguous option: $1
27917 Try \`$0 --help' for more information." >&2
27918 { (exit 1); exit 1; }; };;
27919 --help |
--hel |
-h )
27920 echo "$ac_cs_usage"; exit ;;
27921 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27922 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27925 # This is an error.
27926 -*) { echo "$as_me: error: unrecognized option: $1
27927 Try \`$0 --help' for more information." >&2
27928 { (exit 1); exit 1; }; } ;;
27930 *) ac_config_targets
="$ac_config_targets $1"
27931 ac_need_defaults
=false
;;
27937 ac_configure_extra_args
=
27939 if $ac_cs_silent; then
27941 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27945 cat >>$CONFIG_STATUS <<_ACEOF
27946 if \$ac_cs_recheck; then
27947 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27948 CONFIG_SHELL=$SHELL
27949 export CONFIG_SHELL
27950 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27954 cat >>$CONFIG_STATUS <<\_ACEOF
27958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27959 ## Running $as_me. ##
27965 cat >>$CONFIG_STATUS <<_ACEOF
27968 cat >>$CONFIG_STATUS <<\_ACEOF
27970 # Handling of arguments.
27971 for ac_config_target
in $ac_config_targets
27973 case $ac_config_target in
27974 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27975 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
27976 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
27977 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27978 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27979 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27980 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27981 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27982 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27983 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
27984 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
27985 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27987 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27988 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27989 { (exit 1); exit 1; }; };;
27994 # If the user did not use the arguments to specify the items to instantiate,
27995 # then the envvar interface is used. Set only those that are not.
27996 # We use the long form for the default assignment because of an extremely
27997 # bizarre bug on SunOS 4.1.3.
27998 if $ac_need_defaults; then
27999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28001 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
28002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28005 # Have a temporary directory for convenience. Make it in the build tree
28006 # simply because there is no reason against having it here, and in addition,
28007 # creating and moving files from /tmp can sometimes cause problems.
28008 # Hook for its removal unless debugging.
28009 # Note that there is a small window in which the directory will not be cleaned:
28010 # after its creation but before its name has been assigned to `$tmp'.
28014 trap 'exit_status=$?
28015 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28017 trap '{ (exit 1); exit 1; }' 1 2 13 15
28019 # Create a (secure) tmp directory for tmp files.
28022 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28023 test -n "$tmp" && test -d "$tmp"
28026 tmp
=.
/conf$$
-$RANDOM
28027 (umask 077 && mkdir
"$tmp")
28030 echo "$me: cannot create a temporary directory in ." >&2
28031 { (exit 1); exit 1; }
28035 # Set up the sed scripts for CONFIG_FILES section.
28038 # No need to generate the scripts if there are no CONFIG_FILES.
28039 # This happens for instance when ./config.status config.h
28040 if test -n "$CONFIG_FILES"; then
28047 for ac_last_try
in false false false false false
:; do
28048 cat >conf$
$subs.
sed <<_ACEOF
28049 SHELL!$SHELL$ac_delim
28050 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28051 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28052 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28053 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28054 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28055 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28056 exec_prefix!$exec_prefix$ac_delim
28057 prefix!$prefix$ac_delim
28058 program_transform_name!$program_transform_name$ac_delim
28059 bindir!$bindir$ac_delim
28060 sbindir!$sbindir$ac_delim
28061 libexecdir!$libexecdir$ac_delim
28062 datarootdir!$datarootdir$ac_delim
28063 datadir!$datadir$ac_delim
28064 sysconfdir!$sysconfdir$ac_delim
28065 sharedstatedir!$sharedstatedir$ac_delim
28066 localstatedir!$localstatedir$ac_delim
28067 includedir!$includedir$ac_delim
28068 oldincludedir!$oldincludedir$ac_delim
28069 docdir!$docdir$ac_delim
28070 infodir!$infodir$ac_delim
28071 htmldir!$htmldir$ac_delim
28072 dvidir!$dvidir$ac_delim
28073 pdfdir!$pdfdir$ac_delim
28074 psdir!$psdir$ac_delim
28075 libdir!$libdir$ac_delim
28076 localedir!$localedir$ac_delim
28077 mandir!$mandir$ac_delim
28078 DEFS!$DEFS$ac_delim
28079 ECHO_C!$ECHO_C$ac_delim
28080 ECHO_N!$ECHO_N$ac_delim
28081 ECHO_T!$ECHO_T$ac_delim
28082 LIBS!$LIBS$ac_delim
28083 build_alias!$build_alias$ac_delim
28084 host_alias!$host_alias$ac_delim
28085 target_alias!$target_alias$ac_delim
28086 configure_args!$configure_args$ac_delim
28087 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
28088 build!$build$ac_delim
28089 build_cpu!$build_cpu$ac_delim
28090 build_vendor!$build_vendor$ac_delim
28091 build_os!$build_os$ac_delim
28092 host!$host$ac_delim
28093 host_cpu!$host_cpu$ac_delim
28094 host_vendor!$host_vendor$ac_delim
28095 host_os!$host_os$ac_delim
28096 PORTNAME!$PORTNAME$ac_delim
28097 enable_nls!$enable_nls$ac_delim
28098 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
28099 default_port!$default_port$ac_delim
28100 enable_shared!$enable_shared$ac_delim
28101 enable_rpath!$enable_rpath$ac_delim
28102 enable_debug!$enable_debug$ac_delim
28103 enable_profiling!$enable_profiling$ac_delim
28104 GCOV!$GCOV$ac_delim
28105 LCOV!$LCOV$ac_delim
28106 GENHTML!$GENHTML$ac_delim
28107 enable_coverage!$enable_coverage$ac_delim
28108 DTRACE!$DTRACE$ac_delim
28109 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
28110 enable_dtrace!$enable_dtrace$ac_delim
28112 CFLAGS!$CFLAGS$ac_delim
28113 LDFLAGS!$LDFLAGS$ac_delim
28114 CPPFLAGS!$CPPFLAGS$ac_delim
28115 ac_ct_CC!$ac_ct_CC$ac_delim
28116 EXEEXT!$EXEEXT$ac_delim
28117 OBJEXT!$OBJEXT$ac_delim
28118 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
28122 autodepend!$autodepend$ac_delim
28123 INCLUDES!$INCLUDES$ac_delim
28124 enable_thread_safety!$enable_thread_safety$ac_delim
28125 with_tcl!$with_tcl$ac_delim
28126 with_perl!$with_perl$ac_delim
28127 with_python!$with_python$ac_delim
28128 with_gssapi!$with_gssapi$ac_delim
28129 with_krb5!$with_krb5$ac_delim
28130 krb_srvtab!$krb_srvtab$ac_delim
28131 with_pam!$with_pam$ac_delim
28132 with_ldap!$with_ldap$ac_delim
28133 with_bonjour!$with_bonjour$ac_delim
28134 with_openssl!$with_openssl$ac_delim
28135 with_ossp_uuid!$with_ossp_uuid$ac_delim
28136 XML2_CONFIG!$XML2_CONFIG$ac_delim
28137 with_libxml!$with_libxml$ac_delim
28138 with_libxslt!$with_libxslt$ac_delim
28139 with_system_tzdata!$with_system_tzdata$ac_delim
28140 with_zlib!$with_zlib$ac_delim
28141 GREP!$GREP$ac_delim
28142 EGREP!$EGREP$ac_delim
28143 ELF_SYS!$ELF_SYS$ac_delim
28144 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
28148 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28150 elif $ac_last_try; then
28151 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28152 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28153 { (exit 1); exit 1; }; }
28155 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28159 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28160 if test -n "$ac_eof"; then
28161 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28162 ac_eof
=`expr $ac_eof + 1`
28165 cat >>$CONFIG_STATUS <<_ACEOF
28166 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28170 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28171 s/^/s,@/; s/!/@,|#_!!_#|/
28174 s/'"$ac_delim"'$/,g/; t
28176 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28177 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28178 rm -f conf$
$subs.
sed
28179 cat >>$CONFIG_STATUS <<_ACEOF
28185 for ac_last_try
in false false false false false
:; do
28186 cat >conf$
$subs.
sed <<_ACEOF
28187 with_gnu_ld!$with_gnu_ld$ac_delim
28188 ld_R_works!$ld_R_works$ac_delim
28189 RANLIB!$RANLIB$ac_delim
28190 STRIP!$STRIP$ac_delim
28191 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
28192 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
28194 DLLTOOL!$DLLTOOL$ac_delim
28195 DLLWRAP!$DLLWRAP$ac_delim
28196 WINDRES!$WINDRES$ac_delim
28198 LN_S!$LN_S$ac_delim
28200 BISON!$BISON$ac_delim
28201 BISONFLAGS!$BISONFLAGS$ac_delim
28202 FLEX!$FLEX$ac_delim
28203 FLEXFLAGS!$FLEXFLAGS$ac_delim
28204 PERL!$PERL$ac_delim
28205 perl_archlibexp!$perl_archlibexp$ac_delim
28206 perl_privlibexp!$perl_privlibexp$ac_delim
28207 perl_useshrplib!$perl_useshrplib$ac_delim
28208 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
28209 PYTHON!$PYTHON$ac_delim
28210 python_version!$python_version$ac_delim
28211 python_configdir!$python_configdir$ac_delim
28212 python_includespec!$python_includespec$ac_delim
28213 python_libdir!$python_libdir$ac_delim
28214 python_libspec!$python_libspec$ac_delim
28215 python_additional_libs!$python_additional_libs$ac_delim
28217 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
28218 HAVE_IPV6!$HAVE_IPV6$ac_delim
28219 LIBOBJS!$LIBOBJS$ac_delim
28220 acx_pthread_config!$acx_pthread_config$ac_delim
28221 PTHREAD_CC!$PTHREAD_CC$ac_delim
28222 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
28223 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
28224 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
28225 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
28226 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
28227 MSGFMT!$MSGFMT$ac_delim
28228 MSGMERGE!$MSGMERGE$ac_delim
28229 XGETTEXT!$XGETTEXT$ac_delim
28230 TCLSH!$TCLSH$ac_delim
28231 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
28232 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
28233 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
28234 TCL_LIBS!$TCL_LIBS$ac_delim
28235 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
28236 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
28237 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
28238 NSGMLS!$NSGMLS$ac_delim
28239 JADE!$JADE$ac_delim
28240 have_docbook!$have_docbook$ac_delim
28241 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
28242 COLLATEINDEX!$COLLATEINDEX$ac_delim
28243 SGMLSPL!$SGMLSPL$ac_delim
28244 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
28245 vpath_build!$vpath_build$ac_delim
28246 LTLIBOBJS!$LTLIBOBJS$ac_delim
28249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
28251 elif $ac_last_try; then
28252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28253 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28254 { (exit 1); exit 1; }; }
28256 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28260 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28261 if test -n "$ac_eof"; then
28262 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28263 ac_eof
=`expr $ac_eof + 1`
28266 cat >>$CONFIG_STATUS <<_ACEOF
28267 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28272 s/^/s,@/; s/!/@,|#_!!_#|/
28275 s/'"$ac_delim"'$/,g/; t
28277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28278 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28279 rm -f conf$
$subs.
sed
28280 cat >>$CONFIG_STATUS <<_ACEOF
28287 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28288 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28289 # trailing colons and then remove the whole line if VPATH becomes empty
28290 # (actually we leave an empty line to preserve line numbers).
28291 if test "x$srcdir" = x.
; then
28292 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
28293 s/:*\$(srcdir):*/:/
28294 s/:*\${srcdir}:*/:/
28296 s/^\([^=]*=[ ]*\):*/\1/
28302 cat >>$CONFIG_STATUS <<\_ACEOF
28303 fi # test -n "$CONFIG_FILES"
28306 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
28309 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28311 case $ac_mode$ac_tag in
28313 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28314 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28315 { (exit 1); exit 1; }; };;
28316 :[FH
]-) ac_tag
=-:-;;
28317 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28334 -) ac_f
="$tmp/stdin";;
28335 *) # Look for the file first in the build tree, then in the source tree
28336 # (if the path is not absolute). The absolute path cannot be DOS-style,
28337 # because $ac_f cannot contain `:'.
28341 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28343 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28344 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28345 { (exit 1); exit 1; }; };;
28347 ac_file_inputs
="$ac_file_inputs $ac_f"
28350 # Let's still pretend it is `configure' which instantiates (i.e., don't
28351 # use $as_me), people would be surprised to read:
28352 # /* config.h. Generated by config.status. */
28353 configure_input
="Generated from "`IFS=:
28354 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28355 if test x
"$ac_file" != x-
; then
28356 configure_input
="$ac_file. $configure_input"
28357 { echo "$as_me:$LINENO: creating $ac_file" >&5
28358 echo "$as_me: creating $ac_file" >&6;}
28362 *:-:* |
*:-) cat >"$tmp/stdin";;
28367 ac_dir
=`$as_dirname -- "$ac_file" ||
28368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28369 X"$ac_file" : 'X\(//\)[^/]' \| \
28370 X"$ac_file" : 'X\(//\)$' \| \
28371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28377 /^X\(\/\/\)[^/].*/{
28392 -*) as_dir
=.
/$as_dir;;
28394 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28398 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28399 *) as_qdir
=$as_dir;;
28401 as_dirs
="'$as_qdir' $as_dirs"
28402 as_dir
=`$as_dirname -- "$as_dir" ||
28403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28404 X"$as_dir" : 'X\(//\)[^/]' \| \
28405 X"$as_dir" : 'X\(//\)$' \| \
28406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28412 /^X\(\/\/\)[^/].*/{
28425 test -d "$as_dir" && break
28427 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28428 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28429 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28430 { (exit 1); exit 1; }; }; }
28434 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28436 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28437 # A ".." for each directory in $ac_dir_suffix.
28438 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28439 case $ac_top_builddir_sub in
28440 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28441 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28444 ac_abs_top_builddir
=$ac_pwd
28445 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28446 # for backward compatibility:
28447 ac_top_builddir
=$ac_top_build_prefix
28450 .
) # We are building in place.
28452 ac_top_srcdir
=$ac_top_builddir_sub
28453 ac_abs_top_srcdir
=$ac_pwd ;;
28454 [\\/]* | ?
:[\\/]* ) # Absolute name.
28455 ac_srcdir
=$srcdir$ac_dir_suffix;
28456 ac_top_srcdir
=$srcdir
28457 ac_abs_top_srcdir
=$srcdir ;;
28458 *) # Relative name.
28459 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28460 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28461 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28463 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28474 cat >>$CONFIG_STATUS <<\_ACEOF
28475 # If the template does not know about datarootdir, expand it.
28476 # FIXME: This hack should be removed a few years after 2.60.
28477 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28479 case `sed -n '/datarootdir/ {
28488 ' $ac_file_inputs` in
28489 *datarootdir
*) ac_datarootdir_seen
=yes;;
28490 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28491 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28492 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28494 cat >>$CONFIG_STATUS <<_ACEOF
28495 ac_datarootdir_hack='
28496 s&@datadir@&$datadir&g
28497 s&@docdir@&$docdir&g
28498 s&@infodir@&$infodir&g
28499 s&@localedir@&$localedir&g
28500 s&@mandir@&$mandir&g
28501 s&\\\${datarootdir}&$datarootdir&g' ;;
28505 # Neutralize VPATH when `$srcdir' = `.'.
28506 # Shell code in configure.ac might set extrasub.
28507 # FIXME: do we really want to maintain this feature?
28508 cat >>$CONFIG_STATUS <<_ACEOF
28512 cat >>$CONFIG_STATUS <<\_ACEOF
28514 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28515 s
&@configure_input@
&$configure_input&;t t
28516 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28517 s
&@srcdir@
&$ac_srcdir&;t t
28518 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28519 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28520 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28521 s
&@builddir@
&$ac_builddir&;t t
28522 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28523 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28524 $ac_datarootdir_hack
28525 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
28527 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28528 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28529 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28530 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28531 which seems to be undefined. Please make sure it is defined." >&5
28532 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28533 which seems to be undefined. Please make sure it is defined." >&2;}
28537 -) cat "$tmp/out"; rm -f "$tmp/out";;
28538 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28547 # Transform confdefs.h into a sed script `conftest.defines', that
28548 # substitutes the proper values into config.h.in to produce config.h.
28549 rm -f conftest.defines conftest.
tail
28550 # First, append a space to every undef/define line, to ease matching.
28551 echo 's/$/ /' >conftest.defines
28552 # Then, protect against being on the right side of a sed subst, or in
28553 # an unquoted here document, in config.status. If some macros were
28554 # called several times there might be several #defines for the same
28555 # symbol, which is useless. But do not sort them, since the last
28556 # AC_DEFINE must be honored.
28557 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28558 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28559 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28560 # PARAMS is the parameter list in the macro definition--in most cases, it's
28561 # just an empty string.
28562 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28563 ac_dB
='\\)[ (].*,\\1define\\2'
28571 s/^[ ]*#[ ]*define[ ][ ]*//
28576 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28577 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28578 ' >>conftest.defines
28580 # Remove the space that was appended to ease matching.
28581 # Then replace #undef with comments. This is necessary, for
28582 # example, in the case of _POSIX_SOURCE, which is predefined and required
28583 # on some systems where configure will not decide to define it.
28584 # (The regexp can be short, since the line contains either #define or #undef.)
28586 s,^[ #]*u.*,/* & */,' >>conftest.defines
28588 # Break up conftest.defines:
28589 ac_max_sed_lines
=50
28591 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28592 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28593 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28595 ac_in
='$ac_file_inputs'
28596 ac_out
='"$tmp/out1"'
28597 ac_nxt
='"$tmp/out2"'
28601 # Write a here document:
28602 cat >>$CONFIG_STATUS <<_ACEOF
28603 # First, check the format of the line:
28604 cat >"\$tmp/defines.sed" <<\\CEOF
28605 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28606 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28610 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28612 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28613 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28614 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28615 grep . conftest.
tail >/dev
/null ||
break
28616 rm -f conftest.defines
28617 mv conftest.
tail conftest.defines
28619 rm -f conftest.defines conftest.
tail
28621 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28622 cat >>$CONFIG_STATUS <<\_ACEOF
28623 if test x
"$ac_file" != x-
; then
28624 echo "/* $configure_input */" >"$tmp/config.h"
28625 cat "$ac_result" >>"$tmp/config.h"
28626 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28627 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28628 echo "$as_me: $ac_file is unchanged" >&6;}
28631 mv "$tmp/config.h" $ac_file
28634 echo "/* $configure_input */"
28644 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28645 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28647 if test ! -r "$srcdir/$ac_source"; then
28648 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28649 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28650 { (exit 1); exit 1; }; }
28654 # Try a relative symlink, then a hard link, then a copy.
28656 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
28657 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
28659 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
28660 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
28661 cp -p "$srcdir/$ac_source" "$ac_file" ||
28662 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28663 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28664 { (exit 1); exit 1; }; }
28666 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28667 echo "$as_me: executing $ac_file commands" >&6;}
28672 case $ac_file$ac_mode in
28673 "check_win32_symlinks":C
)
28674 # Links sometimes fail undetected on Mingw -
28675 # so here we detect it and warn the user
28676 for FILE
in $CONFIG_LINKS
28678 # test -e works for symlinks in the MinGW console
28679 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28680 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28683 "src/include/pg_config.h":H
)
28684 # Update timestamp for pg_config.h (see Makefile.global)
28685 echo >src
/include
/stamp-h
28687 "src/interfaces/ecpg/include/ecpg_config.h":H
) echo >src
/interfaces
/ecpg
/include
/stamp-h
;;
28693 { (exit 0); exit 0; }
28695 chmod +x
$CONFIG_STATUS
28696 ac_clean_files
=$ac_clean_files_save
28699 # configure is writing to config.log, and then calls config.status.
28700 # config.status does its own redirection, appending to config.log.
28701 # Unfortunately, on DOS this fails, as config.log is still kept open
28702 # by configure, so config.status won't be able to write to it; its
28703 # output is simply discarded. So we exec the FD to /dev/null,
28704 # effectively closing config.log, so it can be properly (re)opened and
28705 # appended to by config.status. When coming back to configure, we
28706 # need to make the FD available again.
28707 if test "$no_create" != yes; then
28709 ac_config_status_args
=
28710 test "$silent" = yes &&
28711 ac_config_status_args
="$ac_config_status_args --quiet"
28713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28716 # would make configure fail if this is the last instruction.
28717 $ac_cs_success ||
{ (exit 1); exit 1; }
28721 # Warn about unknown options
28722 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28723 for pgac_arg
in $pgac_args with_gnu_ld
; do
28724 if test "$pgac_var" = "$pgac_arg"; then
28728 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
28729 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28730 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}