2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix
*) set -o posix
;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits
='0123456789'
42 as_cr_alnum
=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
57 # Support unset when possible.
58 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself
=$0 ;;
77 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir
=.
82 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x
; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var
in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C
; export $as_var
115 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me
=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x
; then
159 if (eval ":") 2>/dev
/null
; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev
/null
; then
225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
226 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir
=.
232 for as_base
in sh bash ksh sh5
; do
233 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
240 for as_shell
in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix
*) set -o posix
;;
262 CONFIG_SHELL
=$as_shell
264 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix
*) set -o posix
;;
290 as_func_ret_success
() {
293 as_func_ret_failure
() {
298 if as_func_success
; then
302 echo as_func_success failed.
305 if as_func_failure
; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success
; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure
; then
319 echo as_func_ret_failure succeeded.
322 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) ||
{ (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x
; then
347 for as_var
in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no
; then
356 echo This
script requires a shell
more modern than all the
357 echo shells that I found on your system. Please
install a
358 echo modern shell
, or manually run the
script under such a
359 echo shell
if you
do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") ||
{
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system
,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
476 ECHO_C
= ECHO_N
= ECHO_T
=
480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
487 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
494 rm -f conf$$ conf$$.exe conf$$.
file
495 if test -d conf$$.dir
; then
496 rm -f conf$$.dir
/conf$$.
file
502 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
515 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
516 rmdir conf$$.dir
2>/dev
/null
518 if mkdir
-p .
2>/dev
/null
; then
521 test -d .
/-p && rmdir .
/-p
525 if test -x / >/dev
/null
2>&1; then
528 if ls -dL / >/dev
/null
2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p
=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev
/null
6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix
=/usr
/local
568 ac_config_libobj_dir
=.
574 SHELL
=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME
='PostgreSQL'
578 PACKAGE_TARNAME
='postgresql'
579 PACKAGE_VERSION
='8.4devel'
580 PACKAGE_STRING
='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT
='pgsql-bugs@postgresql.org'
583 ac_unique_file
="src/backend/access/common/heaptuple.c"
584 ac_default_prefix
=/usr
/local
/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
746 python_additional_libs
779 ac_precious_vars
='build_alias
792 # Initialize some variables set by options.
794 ac_init_version
=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name
=s
,x
,x
,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir
='${exec_prefix}/bin'
819 sbindir
='${exec_prefix}/sbin'
820 libexecdir
='${exec_prefix}/libexec'
821 datarootdir
='${prefix}/share'
822 datadir
='${datarootdir}'
823 sysconfdir
='${prefix}/etc'
824 sharedstatedir
='${prefix}/com'
825 localstatedir
='${prefix}/var'
826 includedir
='${prefix}/include'
827 oldincludedir
='/usr/include'
828 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir
='${datarootdir}/info'
834 libdir
='${exec_prefix}/lib'
835 localedir
='${datarootdir}/locale'
836 mandir
='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\
$ac_option
850 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
862 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
865 -build |
--build |
--buil |
--bui |
--bu)
866 ac_prev
=build_alias
;;
867 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
868 build_alias
=$ac_optarg ;;
870 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
871 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
872 ac_prev
=cache_file
;;
873 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
874 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
875 cache_file
=$ac_optarg ;;
878 cache_file
=config.cache
;;
880 -datadir |
--datadir |
--datadi |
--datad)
882 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
883 datadir
=$ac_optarg ;;
885 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
886 |
--dataroo |
--dataro |
--datar)
887 ac_prev
=datarootdir
;;
888 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
889 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
890 datarootdir
=$ac_optarg ;;
892 -disable-* |
--disable-*)
893 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
898 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
899 eval enable_
$ac_feature=no
;;
901 -docdir |
--docdir |
--docdi |
--doc |
--do)
903 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
906 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
908 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
911 -enable-* |
--enable-*)
912 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
918 eval enable_
$ac_feature=\
$ac_optarg ;;
920 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
921 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
922 |
--exec |
--exe |
--ex)
923 ac_prev
=exec_prefix
;;
924 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
925 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
926 |
--exec=* |
--exe=* |
--ex=*)
927 exec_prefix
=$ac_optarg ;;
929 -gas |
--gas |
--ga |
--g)
930 # Obsolete; use --with-gas.
933 -help |
--help |
--hel |
--he |
-h)
935 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
936 ac_init_help
=recursive
;;
937 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
938 ac_init_help
=short
;;
940 -host |
--host |
--hos |
--ho)
941 ac_prev
=host_alias
;;
942 -host=* |
--host=* |
--hos=* |
--ho=*)
943 host_alias
=$ac_optarg ;;
945 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
947 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
949 htmldir
=$ac_optarg ;;
951 -includedir |
--includedir |
--includedi |
--included |
--include \
952 |
--includ |
--inclu |
--incl |
--inc)
953 ac_prev
=includedir
;;
954 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
955 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
956 includedir
=$ac_optarg ;;
958 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
960 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
961 infodir
=$ac_optarg ;;
963 -libdir |
--libdir |
--libdi |
--libd)
965 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
968 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
969 |
--libexe |
--libex |
--libe)
970 ac_prev
=libexecdir
;;
971 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
972 |
--libexe=* |
--libex=* |
--libe=*)
973 libexecdir
=$ac_optarg ;;
975 -localedir |
--localedir |
--localedi |
--localed |
--locale)
977 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
978 localedir
=$ac_optarg ;;
980 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
981 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
982 ac_prev
=localstatedir
;;
983 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
984 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
985 localstatedir
=$ac_optarg ;;
987 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
989 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
993 # Obsolete; use --without-fp.
996 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
997 |
--no-cr |
--no-c |
-n)
1000 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1001 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1004 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1005 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1006 |
--oldin |
--oldi |
--old |
--ol |
--o)
1007 ac_prev
=oldincludedir
;;
1008 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1009 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1010 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1011 oldincludedir
=$ac_optarg ;;
1013 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1015 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1016 prefix
=$ac_optarg ;;
1018 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1019 |
--program-pre |
--program-pr |
--program-p)
1020 ac_prev
=program_prefix
;;
1021 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1022 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1023 program_prefix
=$ac_optarg ;;
1025 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1026 |
--program-suf |
--program-su |
--program-s)
1027 ac_prev
=program_suffix
;;
1028 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1029 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1030 program_suffix
=$ac_optarg ;;
1032 -program-transform-name |
--program-transform-name \
1033 |
--program-transform-nam |
--program-transform-na \
1034 |
--program-transform-n |
--program-transform- \
1035 |
--program-transform |
--program-transfor \
1036 |
--program-transfo |
--program-transf \
1037 |
--program-trans |
--program-tran \
1038 |
--progr-tra |
--program-tr |
--program-t)
1039 ac_prev
=program_transform_name
;;
1040 -program-transform-name=* |
--program-transform-name=* \
1041 |
--program-transform-nam=* |
--program-transform-na=* \
1042 |
--program-transform-n=* |
--program-transform-=* \
1043 |
--program-transform=* |
--program-transfor=* \
1044 |
--program-transfo=* |
--program-transf=* \
1045 |
--program-trans=* |
--program-tran=* \
1046 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1047 program_transform_name
=$ac_optarg ;;
1049 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1051 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1052 pdfdir
=$ac_optarg ;;
1054 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1056 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1059 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1060 |
-silent |
--silent |
--silen |
--sile |
--sil)
1063 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1065 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1067 sbindir
=$ac_optarg ;;
1069 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1070 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1071 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1073 ac_prev
=sharedstatedir
;;
1074 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1075 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1076 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1078 sharedstatedir
=$ac_optarg ;;
1080 -site |
--site |
--sit)
1082 -site=* |
--site=* |
--sit=*)
1085 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1087 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1088 srcdir
=$ac_optarg ;;
1090 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1091 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1092 ac_prev
=sysconfdir
;;
1093 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1094 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1095 sysconfdir
=$ac_optarg ;;
1097 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1098 ac_prev
=target_alias
;;
1099 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1100 target_alias
=$ac_optarg ;;
1102 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1105 -version |
--version |
--versio |
--versi |
--vers |
-V)
1106 ac_init_version
=: ;;
1109 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_
$ac_package=\
$ac_optarg ;;
1117 -without-* |
--without-*)
1118 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_
$ac_package=no
;;
1127 # Obsolete; use --with-x.
1130 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1131 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1132 ac_prev
=x_includes
;;
1133 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1134 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1135 x_includes
=$ac_optarg ;;
1137 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1138 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1139 ac_prev
=x_libraries
;;
1140 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1141 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1142 x_libraries
=$ac_optarg ;;
1144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
1150 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
1155 eval $ac_envvar=\
$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 if test -n "$ac_prev"; then
1170 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
1175 # Be sure to have absolute directory names.
1176 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val
=\$
$ac_var
1183 [\\/$
]* | ?
:[\\/]* ) continue;;
1184 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1195 target
=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x
; then
1199 if test "x$build_alias" = x
; then
1200 cross_compiling
=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1211 test "$silent" = yes && exec 6>/dev
/null
1214 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di
=`ls -di .` &&
1216 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted
=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir
=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
1232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1256 ac_srcdir_defaulted
=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261 { (exit 1); exit 1; }; }
1263 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266 { (exit 1); exit 1; }; }
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1276 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 for ac_var
in $ac_precious_vars; do
1279 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1281 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1292 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1350 --build=BUILD configure
for building on BUILD
[guessed
]
1351 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1362 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1363 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1364 --disable-integer-datetimes
1365 disable
64-bit integer date
/time support
1366 --enable-nls[=LANGUAGES
]
1367 enable Native Language Support
1368 --disable-shared do not build shared libraries
1369 --disable-rpath do not embed shared library search path
in
1371 --disable-spinlocks do not use spinlocks
1372 --enable-debug build with debugging symbols
(-g)
1373 --enable-profiling build with profiling enabled
1374 --enable-coverage build with coverage testing instrumentation
1375 --enable-dtrace build with DTrace support
1376 --enable-depend turn on automatic dependency tracking
1377 --enable-cassert enable assertion checks
(for debugging
)
1378 --enable-thread-safety make client libraries thread-safe
1379 --enable-thread-safety-force
1380 force thread-safety despite thread
test failure
1381 --disable-float4-byval disable float4 passed by value
1382 --disable-float8-byval disable float8 passed by value
1383 --disable-largefile omit support
for large files
1386 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1387 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1388 --with-template=NAME override operating system template
1389 --with-includes=DIRS
look for additional header files
in DIRS
1390 --with-libraries=DIRS
look for additional libraries
in DIRS
1391 --with-libs=DIRS alternative spelling of
--with-libraries
1392 --with-pgport=PORTNUM
set default port number
[5432]
1393 --with-blocksize=BLOCKSIZE
1394 set table block size
in kB
[8]
1395 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1396 --with-wal-blocksize=BLOCKSIZE
1397 set WAL block size
in kB
[8]
1398 --with-wal-segsize=SEGSIZE
1399 set WAL segment size
in MB
[16]
1400 --with-CC=CMD
set compiler
(deprecated
)
1401 --with-tcl build Tcl modules
(PL
/Tcl
)
1402 --with-tclconfig=DIR tclConfig.sh is
in DIR
1403 --with-perl build Perl modules
(PL
/Perl
)
1404 --with-python build Python modules
(PL
/Python
)
1405 --with-gssapi build with GSSAPI support
1406 --with-krb5 build with Kerberos
5 support
1407 --with-krb-srvnam=NAME default service principal name
in Kerberos
1409 --with-pam build with PAM support
1410 --with-ldap build with LDAP support
1411 --with-bonjour build with Bonjour support
1412 --with-openssl build with OpenSSL support
1413 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1414 --with-libedit-preferred
1415 prefer BSD Libedit over GNU Readline
1416 --with-ossp-uuid use OSSP UUID library when building
1418 --with-libxml build with XML support
1419 --with-libxslt use XSLT support when building contrib
/xml2
1420 --with-system-tzdata=DIR
1421 use system
time zone data
in DIR
1422 --without-zlib do not use Zlib
1423 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1425 Some influential environment variables
:
1426 CC C compiler
command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1429 nonstandard directory
<lib dir
>
1430 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1431 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1432 you have headers
in a nonstandard directory
<include dir
>
1436 location of DocBook stylesheets
1438 Use these variables to override the choices made by
`configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <pgsql-bugs@postgresql.org>.
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" || continue
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1469 .) # We are building in place.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1493 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1502 PostgreSQL configure 8.4devel
1503 generated by GNU Autoconf 2.61
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1510 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1518 It was created by PostgreSQL $as_me 8.4devel, which was
1519 generated by GNU Autoconf 2.61. Invocation command line was
1531 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1532 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1533 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1534 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1535 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1537 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1538 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1540 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1541 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1542 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1543 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1544 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1545 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1546 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1579 ac_must_keep_next=false
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1590 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1608 -* ) ac_must_keep_next=true ;;
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1630 ## ---------------- ##
1631 ## Cache variables. ##
1632 ## ---------------- ##
1635 # The following way of writing the cache mishandles newlines in values,
1637 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1638 eval ac_val=\$$ac_var
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1652 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1667 ## ----------------- ##
1668 ## Output variables. ##
1669 ## ----------------- ##
1672 for ac_var in $ac_subst_vars
1674 eval ac_val=\$$ac_var
1676 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1678 echo "$ac_var='\''$ac_val'\''"
1682 if test -n "$ac_subst_files"; then
1684 ## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##
1689 for ac_var in $ac_subst_files
1691 eval ac_val=\$$ac_var
1693 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695 echo "$ac_var='\''$ac_val'\''"
1700 if test -s confdefs.h; then
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1726 # Predefined preprocessor variables.
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_NAME "$PACKAGE_NAME"
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_STRING "$PACKAGE_STRING"
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1791 # Check that the precious variables saved in the cache have kept the same
1793 ac_cache_corrupted=false
1794 for ac_var in $ac_precious_vars; do
1795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1796 eval ac_new_set=\$ac_env_${ac_var}_set
1797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798 eval ac_new_val=\$ac_env_${ac_var}_value
1799 case $ac_old_set,$ac_new_set in
1801 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1802 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1803 ac_cache_corrupted=: ;;
1805 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1806 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1807 ac_cache_corrupted=: ;;
1810 if test "x$ac_old_val" != "x$ac_new_val"; then
1811 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1812 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1813 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1814 echo "$as_me: former value
: $ac_old_val" >&2;}
1815 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1816 echo "$as_me: current value
: $ac_new_val" >&2;}
1817 ac_cache_corrupted=:
1820 # Pass precious variables to config.status.
1821 if test "$ac_new_set" = set; then
1823 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1824 *) ac_arg=$ac_var=$ac_new_val ;;
1826 case " $ac_configure_args " in
1827 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1828 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1832 if $ac_cache_corrupted; then
1833 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1834 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1835 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1836 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1837 { (exit 1); exit 1; }; }
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 for ac_dir in config "$srcdir"/config; do
1877 if test -f "$ac_dir/install-sh"; then
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 elif test -f "$ac_dir/install.sh"; then
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 elif test -f "$ac_dir/shtool"; then
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 configure_args=$ac_configure_args
1911 cat >>confdefs.h <<_ACEOF
1912 #define PG_VERSION "$PACKAGE_VERSION"
1915 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1918 cat >>confdefs.h <<_ACEOF
1919 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1956 ac_save_IFS=$IFS; IFS='-'
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1966 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1993 ac_save_IFS=$IFS; IFS='-'
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2003 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2008 { echo "$as_me:$LINENO: checking which template to use" >&5
2009 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2012 pgac_args="$pgac_args with_template"
2015 # Check whether --with-template was given.
2016 if test "${with_template+set}" = set; then
2017 withval=$with_template;
2020 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2021 echo "$as_me: error: argument required for --with-template option" >&2;}
2022 { (exit 1); exit 1; }; }
2025 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2026 echo "$as_me: error: argument required for --with-template option" >&2;}
2027 { (exit 1); exit 1; }; }
2032 list) echo; ls "$srcdir/src/template"; exit;;
2033 *) if test -f "$srcdir/src/template/$with_template" ; then
2036 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2037 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2038 { (exit 1); exit 1; }; }
2047 # --with-template not given
2050 aix*) template=aix ;;
2051 bsdi*) template=bsdi ;;
2052 cygwin*) template=cygwin ;;
2053 darwin*) template=darwin ;;
2054 dgux*) template=dgux ;;
2055 freebsd*) template=freebsd ;;
2056 hpux*) template=hpux ;;
2057 irix*) template=irix ;;
2058 linux*|gnu*|k*bsd*-gnu)
2060 mingw*) template=win32 ;;
2061 netbsd*) template=netbsd ;;
2062 nextstep*) template=nextstep ;;
2063 openbsd*) template=openbsd ;;
2064 osf*) template=osf ;;
2065 sco*) template=sco ;;
2066 solaris*) template=solaris ;;
2067 sunos*) template=sunos4 ;;
2069 case $host_vendor in
2070 univel) template=univel ;;
2072 sysv4*) template=svr4 ;;
2073 sysv5*) template=unixware ;;
2074 ultrix*) template=ultrix4 ;;
2077 if test x"$template" = x"" ; then
2078 { { echo "$as_me:$LINENO: error:
2079 *******************************************************************
2080 PostgreSQL has apparently not been ported to your platform yet.
2081 To try a manual configuration, look into the src/template directory
2082 for a similar platform and use the '--with-template=' option.
2084 Please also contact <pgsql-ports@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-ports@postgresql.org> to see about
2096 rectifying this. Include the above 'checking host system type...'
2098 *******************************************************************
2100 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: $template" >&5
2109 echo "${ECHO_T}$template" >&6; }
2114 # Initialize default assumption that we do not need separate assembly code
2115 # for TAS (test-and-set). This can be overridden by the template file
2116 # when it's executed.
2123 ## Command line options
2127 # Add non-standard directories to the include path
2130 pgac_args="$pgac_args with_includes"
2133 # Check whether --with-includes was given.
2134 if test "${with_includes+set}" = set; then
2135 withval=$with_includes;
2138 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2139 echo "$as_me: error: argument required for --with-includes option" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2144 echo "$as_me: error: argument required for --with-includes option" >&2;}
2145 { (exit 1); exit 1; }; }
2158 # Add non-standard directories to the library search path
2161 pgac_args="$pgac_args with_libraries"
2164 # Check whether --with-libraries was given.
2165 if test "${with_libraries+set}" = set; then
2166 withval=$with_libraries;
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2170 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2175 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2176 { (exit 1); exit 1; }; }
2179 LIBRARY_DIRS=$withval
2188 pgac_args="$pgac_args with_libs"
2191 # Check whether --with-libs was given.
2192 if test "${with_libs+set}" = set; then
2196 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2197 echo "$as_me: error: argument required for --with-libs option" >&2;}
2198 { (exit 1); exit 1; }; }
2201 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2202 echo "$as_me: error: argument required for --with-libs option" >&2;}
2203 { (exit 1); exit 1; }; }
2206 LIBRARY_DIRS=$withval
2216 # 64-bit integer date/time storage: enabled by default.
2218 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2219 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2221 pgac_args="$pgac_args enable_integer_datetimes"
2223 # Check whether --enable-integer-datetimes was given.
2224 if test "${enable_integer_datetimes+set}" = set; then
2225 enableval=$enable_integer_datetimes;
2229 cat >>confdefs.h <<\_ACEOF
2230 #define USE_INTEGER_DATETIMES 1
2238 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2239 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2240 { (exit 1); exit 1; }; }
2245 enable_integer_datetimes=yes
2247 cat >>confdefs.h <<\_ACEOF
2248 #define USE_INTEGER_DATETIMES 1
2254 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2255 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2261 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2262 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2264 pgac_args="$pgac_args enable_nls"
2266 # Check whether --enable-nls was given.
2267 if test "${enable_nls+set}" = set; then
2268 enableval=$enable_nls;
2278 WANTED_LANGUAGES=$enableval
2288 if test "$enable_nls" = yes; then
2290 cat >>confdefs.h <<\_ACEOF
2291 #define ENABLE_NLS 1
2296 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2297 echo "${ECHO_T}$enable_nls" >&6; }
2302 # Default port number (--with-pgport), default 5432
2304 { echo "$as_me:$LINENO: checking for default port number" >&5
2305 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2307 pgac_args="$pgac_args with_pgport"
2310 # Check whether --with-pgport was given.
2311 if test "${with_pgport+set}" = set; then
2312 withval=$with_pgport;
2315 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2316 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2321 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2322 { (exit 1); exit 1; }; }
2325 default_port=$withval
2334 { echo "$as_me:$LINENO: result: $default_port" >&5
2335 echo "${ECHO_T}$default_port" >&6; }
2336 # Need both of these because some places want an integer and some a string
2338 cat >>confdefs.h <<_ACEOF
2339 #define DEF_PGPORT ${default_port}
2343 cat >>confdefs.h <<_ACEOF
2344 #define DEF_PGPORT_STR "${default_port}"
2350 # Option to disable shared libraries
2353 pgac_args="$pgac_args enable_shared"
2355 # Check whether --enable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357 enableval=$enable_shared;
2366 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2367 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2368 { (exit 1); exit 1; }; }
2381 # '-rpath'-like feature can be disabled
2384 pgac_args="$pgac_args enable_rpath"
2386 # Check whether --enable-rpath was given.
2387 if test "${enable_rpath+set}" = set; then
2388 enableval=$enable_rpath;
2397 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2398 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2399 { (exit 1); exit 1; }; }
2415 pgac_args="$pgac_args enable_spinlocks"
2417 # Check whether --enable-spinlocks was given.
2418 if test "${enable_spinlocks+set}" = set; then
2419 enableval=$enable_spinlocks;
2428 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2429 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2430 { (exit 1); exit 1; }; }
2435 enable_spinlocks=yes
2442 # --enable-debug adds -g to compiler flags
2445 pgac_args="$pgac_args enable_debug"
2447 # Check whether --enable-debug was given.
2448 if test "${enable_debug+set}" = set; then
2449 enableval=$enable_debug;
2458 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2459 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2460 { (exit 1); exit 1; }; }
2473 # --enable-profiling enables gcc profiling
2476 pgac_args="$pgac_args enable_profiling"
2478 # Check whether --enable-profiling was given.
2479 if test "${enable_profiling+set}" = set; then
2480 enableval=$enable_profiling;
2489 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2490 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2491 { (exit 1); exit 1; }; }
2504 # --enable-coverage enables generation of code coverage metrics with gcov
2507 pgac_args="$pgac_args enable_coverage"
2509 # Check whether --enable-coverage was given.
2510 if test "${enable_coverage+set}" = set; then
2511 enableval=$enable_coverage;
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_GCOV+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$GCOV"; then
2524 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_GCOV="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 GCOV=$ac_cv_prog_GCOV
2544 if test -n "$GCOV"; then
2545 { echo "$as_me:$LINENO: result: $GCOV" >&5
2546 echo "${ECHO_T}$GCOV" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$GCOV" && break
2556 if test -z "$GCOV"; then
2557 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2558 echo "$as_me: error: gcov not found" >&2;}
2559 { (exit 1); exit 1; }; }
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_LCOV+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$LCOV"; then
2571 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_LCOV="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 LCOV=$ac_cv_prog_LCOV
2591 if test -n "$LCOV"; then
2592 { echo "$as_me:$LINENO: result: $LCOV" >&5
2593 echo "${ECHO_T}$LCOV" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$LCOV" && break
2603 if test -z "$LCOV"; then
2604 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2605 echo "$as_me: error: lcov not found" >&2;}
2606 { (exit 1); exit 1; }; }
2608 for ac_prog in genhtml
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_GENHTML+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$GENHTML"; then
2618 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_GENHTML="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 GENHTML=$ac_cv_prog_GENHTML
2638 if test -n "$GENHTML"; then
2639 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2640 echo "${ECHO_T}$GENHTML" >&6; }
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$GENHTML" && break
2650 if test -z "$GENHTML"; then
2651 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2652 echo "$as_me: error: genhtml not found" >&2;}
2653 { (exit 1); exit 1; }; }
2660 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2661 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2662 { (exit 1); exit 1; }; }
2678 pgac_args="$pgac_args enable_dtrace"
2680 # Check whether --enable-dtrace was given.
2681 if test "${enable_dtrace+set}" = set; then
2682 enableval=$enable_dtrace;
2686 cat >>confdefs.h <<\_ACEOF
2687 #define ENABLE_DTRACE 1
2690 for ac_prog in dtrace
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_DTRACE+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if test -n "$DTRACE"; then
2700 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_DTRACE="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 DTRACE=$ac_cv_prog_DTRACE
2720 if test -n "$DTRACE"; then
2721 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2722 echo "${ECHO_T}$DTRACE" >&6; }
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$DTRACE" && break
2732 if test -z "$DTRACE"; then
2733 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2734 echo "$as_me: error: dtrace not found" >&2;}
2735 { (exit 1); exit 1; }; }
2743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2744 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2745 { (exit 1); exit 1; }; }
2760 { echo "$as_me:$LINENO: checking for block size" >&5
2761 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2763 pgac_args="$pgac_args with_blocksize"
2766 # Check whether --with-blocksize was given.
2767 if test "${with_blocksize+set}" = set; then
2768 withval=$with_blocksize;
2771 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2772 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2773 { (exit 1); exit 1; }; }
2776 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2777 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2778 { (exit 1); exit 1; }; }
2790 case ${blocksize} in
2797 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2798 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2799 { (exit 1); exit 1; }; }
2801 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2802 echo "${ECHO_T}${blocksize}kB" >&6; }
2805 cat >>confdefs.h <<_ACEOF
2806 #define BLCKSZ ${BLCKSZ}
2811 # Relation segment size
2813 { echo "$as_me:$LINENO: checking for segment size" >&5
2814 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2816 pgac_args="$pgac_args with_segsize"
2819 # Check whether --with-segsize was given.
2820 if test "${with_segsize+set}" = set; then
2821 withval=$with_segsize;
2824 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2825 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2826 { (exit 1); exit 1; }; }
2829 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2830 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2831 { (exit 1); exit 1; }; }
2843 # this expression is set up to avoid unnecessary integer overflow
2844 # blocksize is already guaranteed to be a factor of 1024
2845 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2846 test $? -eq 0 || exit 1
2847 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2848 echo "${ECHO_T}${segsize}GB" >&6; }
2851 cat >>confdefs.h <<_ACEOF
2852 #define RELSEG_SIZE ${RELSEG_SIZE}
2859 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2860 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2862 pgac_args="$pgac_args with_wal_blocksize"
2865 # Check whether --with-wal-blocksize was given.
2866 if test "${with_wal_blocksize+set}" = set; then
2867 withval=$with_wal_blocksize;
2870 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2871 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2872 { (exit 1); exit 1; }; }
2875 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2876 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2877 { (exit 1); exit 1; }; }
2880 wal_blocksize=$withval
2889 case ${wal_blocksize} in
2890 1) XLOG_BLCKSZ=1024;;
2891 2) XLOG_BLCKSZ=2048;;
2892 4) XLOG_BLCKSZ=4096;;
2893 8) XLOG_BLCKSZ=8192;;
2894 16) XLOG_BLCKSZ=16384;;
2895 32) XLOG_BLCKSZ=32768;;
2896 64) XLOG_BLCKSZ=65536;;
2897 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2898 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2899 { (exit 1); exit 1; }; }
2901 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2902 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2905 cat >>confdefs.h <<_ACEOF
2906 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2913 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2914 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2916 pgac_args="$pgac_args with_wal_segsize"
2919 # Check whether --with-wal-segsize was given.
2920 if test "${with_wal_segsize+set}" = set; then
2921 withval=$with_wal_segsize;
2924 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2925 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2926 { (exit 1); exit 1; }; }
2929 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2930 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2931 { (exit 1); exit 1; }; }
2934 wal_segsize=$withval
2943 case ${wal_segsize} in
2951 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2952 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2953 { (exit 1); exit 1; }; }
2955 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2956 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2959 cat >>confdefs.h <<_ACEOF
2960 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2968 # For historical reasons you can also use --with-CC to specify the C compiler
2969 # to use, although the standard way to do this is to set the CC environment
2972 pgac_args="$pgac_args with_CC"
2975 # Check whether --with-CC was given.
2976 if test "${with_CC+set}" = set; then
2980 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2981 echo "$as_me: error: argument required for --with-CC option" >&2;}
2982 { (exit 1); exit 1; }; }
2985 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2986 echo "$as_me: error: argument required for --with-CC option" >&2;}
2987 { (exit 1); exit 1; }; }
2999 aix) pgac_cc_list="gcc xlc";;
3000 irix) pgac_cc_list="cc";; # no gcc
3001 *) pgac_cc_list="gcc cc";;
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 for ac_prog in $pgac_cc_list
3012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 if test -n "$CC"; then
3041 { echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6; }
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 test -n "$CC" && break
3052 if test -z "$CC"; then
3054 for ac_prog in $pgac_cc_list
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_CC="$ac_prog"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086 echo "${ECHO_T}$ac_ct_CC" >&6; }
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3093 test -n "$ac_ct_CC" && break
3096 if test "x$ac_ct_CC" = x; then
3099 case $cross_compiling:$ac_tool_warned in
3101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet. If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&5
3104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3107 ac_tool_warned=yes ;;
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log
' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details.
" >&2;}
3118 { (exit 1); exit 1; }; }
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (ac_try="$ac_compiler --version >&5"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compiler --version >&5") 2>&5
3131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3132 (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compiler -v >&5") 2>&5
3141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3142 (exit $ac_status); }
3143 { (ac_try="$ac_compiler -V >&5"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compiler -V >&5") 2>&5
3151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3152 (exit $ac_status); }
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3174 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3175 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # List of possible output files, starting from the most likely.
3179 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3180 # only as a last resort. b.out is created by i960 compilers.
3181 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3183 # The IRIX 6 linker writes into existing files which may not be
3184 # executable, retaining their permissions. Remove them first so a
3185 # subsequent execution test works.
3187 for ac_file in $ac_files
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 if { (ac_try="$ac_link_default"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_link_default") 2>&5
3204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3205 (exit $ac_status); }; then
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3211 for ac_file in $ac_files ''
3213 test -f "$ac_file" || continue
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3218 # We found the default executable, but exeext='' is most
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3243 echo "${ECHO_T}$ac_file" >&6; }
3244 if test -z "$ac_file"; then
3245 echo "$as_me: failed program was
:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3249 See \
`config.log' for more details." >&5
3250 echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log
' for more details." >&2;}
3252 { (exit 77); exit 77; }; }
3255 ac_exeext=$ac_cv_exeext
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264 if { ac_try='.
/$ac_file'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3276 if test "$cross_compiling" = maybe; then
3279 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \
`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details.
" >&2;}
3285 { (exit 1); exit 1; }; }
3289 { echo "$as_me:$LINENO: result
: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3297 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3298 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6; }
3301 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3302 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3303 if { (ac_try="$ac_link"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_link") 2>&5
3311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3312 (exit $ac_status); }; then
3313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3317 for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3328 See \
`config.log' for more details." >&5
3329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log
' for more details." >&2;}
3331 { (exit 1); exit 1; }; }
3334 rm -f conftest$ac_cv_exeext
3335 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3336 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3341 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3343 if test "${ac_cv_objext+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3361 rm -f conftest.o conftest.obj
3362 if { (ac_try="$ac_compile"
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3381 echo "$as_me: failed program was:" >&5
3382 sed 's
/^
/|
/' conftest.$ac_ext >&5
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details.
" >&5
3386 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3387 See \
`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3391 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3394 echo "${ECHO_T}$ac_cv_objext" >&6; }
3395 OBJEXT=$ac_cv_objext
3397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3424 *) ac_try_echo
=$ac_try;;
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3429 grep -v '^ *+' conftest.er1
>conftest.err
3431 cat conftest.err
>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } && {
3434 test -z "$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 } && test -s conftest.
$ac_objext; then
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.
$ac_ext >&5
3445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3446 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3451 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS
=${CFLAGS+set}
3453 ac_save_CFLAGS
=$CFLAGS
3454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 ac_save_c_werror_flag
=$ac_c_werror_flag
3460 ac_c_werror_flag
=yes
3463 cat >conftest.
$ac_ext <<_ACEOF
3466 cat confdefs.h
>>conftest.
$ac_ext
3467 cat >>conftest.
$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3478 rm -f conftest.
$ac_objext
3479 if { (ac_try
="$ac_compile"
3481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3501 cat >conftest.$ac_ext <<_ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3520 *) ac_try_echo
=$ac_try;;
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.
$ac_objext; then
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3538 ac_c_werror_flag
=$ac_save_c_werror_flag
3540 cat >conftest.
$ac_ext <<_ACEOF
3543 cat confdefs.h
>>conftest.
$ac_ext
3544 cat >>conftest.
$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3555 rm -f conftest.
$ac_objext
3556 if { (ac_try
="$ac_compile"
3558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3600 if test "$GCC" = yes; then
3606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_cv_prog_cc_c89=no
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3637 s = g (p, va_arg (v,int));
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3678 *) ac_try_echo
=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1
>conftest.err
3685 cat conftest.err
>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.
$ac_objext; then
3691 ac_cv_prog_cc_c89
=$ac_arg
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.
$ac_ext >&5
3699 rm -f core conftest.err conftest.
$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 rm -f conftest.
$ac_ext
3707 case "x$ac_cv_prog_cc_c89" in
3709 { echo "$as_me:$LINENO: result: none needed" >&5
3710 echo "${ECHO_T}none needed" >&6; } ;;
3712 { echo "$as_me:$LINENO: result: unsupported" >&5
3713 echo "${ECHO_T}unsupported" >&6; } ;;
3715 CC
="$CC $ac_cv_prog_cc_c89"
3716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3722 ac_cpp
='$CPP $CPPFLAGS'
3723 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3728 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3729 # but has idiosyncrasies of its own. We assume icc will define
3730 # __INTEL_COMPILER regardless of CFLAGS.
3732 cat >conftest.
$ac_ext <<_ACEOF
3735 cat confdefs.h
>>conftest.
$ac_ext
3736 cat >>conftest.
$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3742 #ifndef __INTEL_COMPILER
3749 rm -f conftest.
$ac_objext
3750 if { (ac_try
="$ac_compile"
3752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3758 grep -v '^ *+' conftest.er1 >conftest.err
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 # Check if it's Sun Studio compiler. We assume that
3777 # __SUNPRO_C will be defined for Sun Studio compilers
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3799 *) ac_try_echo
=$ac_try;;
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3804 grep -v '^ *+' conftest.er1
>conftest.err
3806 cat conftest.err
>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.
$ac_objext; then
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.
$ac_ext >&5
3820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3829 .
"$srcdir/src/template/$template" ||
exit
3831 # CFLAGS are selected so:
3832 # If the user specifies something in the environment, that is used.
3833 # else: If the template file set something, that is used.
3834 # else: If coverage was enabled, don't set anything.
3835 # else: If the compiler is GCC, then we use -O2.
3836 # else: If the compiler is something else, then we use -O.
3838 if test "$ac_env_CFLAGS_set" = set; then
3839 CFLAGS
=$ac_env_CFLAGS_value
3840 elif test "${CFLAGS+set}" = set; then
3841 : # (keep what template set)
3842 elif test "$enable_coverage" = yes; then
3843 : # no optimization by default
3844 elif test "$GCC" = yes; then
3847 # if the user selected debug mode, don't use -O
3848 if test "$enable_debug" != yes; then
3853 # Some versions of GCC support some additional useful warning flags.
3854 # Check whether they are supported, and add them to CFLAGS if so.
3855 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3857 if test "$GCC" = yes -a "$ICC" = no
; then
3858 CFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3859 # These work in some but not all gcc versions
3860 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3861 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3862 pgac_save_CFLAGS
=$CFLAGS
3863 CFLAGS
="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3864 cat >conftest.
$ac_ext <<_ACEOF
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3879 rm -f conftest.
$ac_objext
3880 if { (ac_try
="$ac_compile"
3882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3896 { echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6; }
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 CFLAGS="$pgac_save_CFLAGS"
3903 { echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6; }
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3910 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3911 pgac_save_CFLAGS=$CFLAGS
3912 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3932 *) ac_try_echo
=$ac_try;;
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_compile") 2>conftest.er1
3937 grep -v '^ *+' conftest.er1
>conftest.err
3939 cat conftest.err
>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && {
3942 test -z "$ac_c_werror_flag" ||
3943 test ! -s conftest.err
3944 } && test -s conftest.
$ac_objext; then
3945 { echo "$as_me:$LINENO: result: yes" >&5
3946 echo "${ECHO_T}yes" >&6; }
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.
$ac_ext >&5
3951 CFLAGS
="$pgac_save_CFLAGS"
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3958 # Disable strict-aliasing rules; needed for gcc 3.3+
3959 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3960 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3961 pgac_save_CFLAGS
=$CFLAGS
3962 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3963 cat >conftest.
$ac_ext <<_ACEOF
3966 cat confdefs.h
>>conftest.
$ac_ext
3967 cat >>conftest.
$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3978 rm -f conftest.
$ac_objext
3979 if { (ac_try
="$ac_compile"
3981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_compile") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest.$ac_objext; then
3995 { echo "$as_me:$LINENO: result: yes" >&5
3996 echo "${ECHO_T}yes" >&6; }
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4001 CFLAGS="$pgac_save_CFLAGS"
4002 { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4009 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4010 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4011 pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4013 cat >conftest.$ac_ext <<_ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h. */
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4032 *) ac_try_echo
=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4037 grep -v '^ *+' conftest.er1
>conftest.err
4039 cat conftest.err
>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } && {
4042 test -z "$ac_c_werror_flag" ||
4043 test ! -s conftest.err
4044 } && test -s conftest.
$ac_objext; then
4045 { echo "$as_me:$LINENO: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6; }
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.
$ac_ext >&5
4051 CFLAGS
="$pgac_save_CFLAGS"
4052 { echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6; }
4056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4058 elif test "$ICC" = yes; then
4059 # Intel's compiler has a bug/misoptimization in checking for
4060 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4061 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4062 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4063 pgac_save_CFLAGS
=$CFLAGS
4064 CFLAGS
="$pgac_save_CFLAGS -mp1"
4065 cat >conftest.
$ac_ext <<_ACEOF
4068 cat confdefs.h
>>conftest.
$ac_ext
4069 cat >>conftest.
$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4080 rm -f conftest.
$ac_objext
4081 if { (ac_try
="$ac_compile"
4083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4097 { echo "$as_me:$LINENO: result: yes" >&5
4098 echo "${ECHO_T}yes" >&6; }
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4103 CFLAGS="$pgac_save_CFLAGS"
4104 { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 # Make sure strict aliasing is off (though this is said to be the default)
4111 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4112 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4113 pgac_save_CFLAGS=$CFLAGS
4114 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4134 *) ac_try_echo
=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1
>conftest.err
4141 cat conftest.err
>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } && {
4144 test -z "$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest.
$ac_objext; then
4147 { echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6; }
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.
$ac_ext >&5
4153 CFLAGS
="$pgac_save_CFLAGS"
4154 { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4160 elif test x
"${CC}" = x
"xlc"; then
4161 # AIX xlc has to have strict aliasing turned off too
4162 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4163 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4164 pgac_save_CFLAGS
=$CFLAGS
4165 CFLAGS
="$pgac_save_CFLAGS -qnoansialias"
4166 cat >conftest.
$ac_ext <<_ACEOF
4169 cat confdefs.h
>>conftest.
$ac_ext
4170 cat >>conftest.
$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4181 rm -f conftest.
$ac_objext
4182 if { (ac_try
="$ac_compile"
4184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_compile") 2>conftest.er1
4190 grep -v '^ *+' conftest.er1 >conftest.err
4192 cat conftest.err >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
4197 } && test -s conftest.$ac_objext; then
4198 { echo "$as_me:$LINENO: result: yes" >&5
4199 echo "${ECHO_T}yes" >&6; }
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 CFLAGS="$pgac_save_CFLAGS"
4205 { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 # supply -g if --enable-debug
4214 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4218 # enable code coverage if --enable-coverage
4219 if test "$enable_coverage" = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4223 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4224 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4225 { (exit 1); exit 1; }; }
4229 # enable profiling if --enable-profiling
4230 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4231 if test "$GCC" = yes; then
4233 cat >>confdefs.h <<\_ACEOF
4234 #define PROFILE_PID_DIR 1
4237 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4239 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4240 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4241 { (exit 1); exit 1; }; }
4245 # We already have this in Makefile.win32, but configure needs it too
4246 if test "$PORTNAME" = "win32"; then
4247 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4250 # Check if the compiler still works with the template settings
4251 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4252 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (ac_try="$ac_link"
4271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4272 *) ac_try_echo
=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_link") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1
>conftest.err
4279 cat conftest.err
>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } && {
4282 test -z "$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 } && test -s conftest
$ac_exeext &&
4285 $as_test_x conftest
$ac_exeext; then
4286 { echo "$as_me:$LINENO: result: yes" >&5
4287 echo "${ECHO_T}yes" >&6; }
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.
$ac_ext >&5
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4294 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4295 echo "$as_me: error: cannot proceed" >&2;}
4296 { (exit 1); exit 1; }; }
4299 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4300 conftest
$ac_exeext conftest.
$ac_ext
4302 # Defend against gcc -ffast-math
4303 if test "$GCC" = yes; then
4304 cat >conftest.
$ac_ext <<_ACEOF
4307 cat confdefs.h
>>conftest.
$ac_ext
4308 cat >>conftest.
$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4314 #ifdef __FAST_MATH__
4321 rm -f conftest.
$ac_objext
4322 if { (ac_try
="$ac_compile"
4324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4343 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4344 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4345 { (exit 1); exit 1; }; }
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4362 if test -z "$CPP"; then
4363 if test "${ac_cv_prog_CPP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 # Double quotes because CPP needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4385 # include <limits.h>
4387 # include <assert.h>
4391 if { (ac_try="$ac_cpp conftest.$ac_ext"
4393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4394 *) ac_try_echo
=$ac_try;;
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4399 grep -v '^ *+' conftest.er1
>conftest.err
4401 cat conftest.err
>&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } >/dev
/null
&& {
4404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4405 test ! -s conftest.err
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.
$ac_ext >&5
4412 # Broken: fails on valid input.
4416 rm -f conftest.err conftest.
$ac_ext
4418 # OK, works on sane cases. Now check whether nonexistent headers
4419 # can be detected and how.
4420 cat >conftest.
$ac_ext <<_ACEOF
4423 cat confdefs.h
>>conftest.
$ac_ext
4424 cat >>conftest.
$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <ac_nonexistent.h>
4428 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } >/dev/null && {
4441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4444 # Broken: success on invalid input.
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 # Passes both tests.
4455 rm -f conftest.err conftest.$ac_ext
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.err conftest.
$ac_ext
4460 if $ac_preproc_ok; then
4472 { echo "$as_me:$LINENO: result: $CPP" >&5
4473 echo "${ECHO_T}$CPP" >&6; }
4475 for ac_c_preproc_warn_flag
in '' yes
4477 # Use a header file that comes with gcc, so configuring glibc
4478 # with a fresh cross-compiler works.
4479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 # <limits.h> exists even on freestanding compilers.
4481 # On the NeXT, cc -E runs the code through the compiler's parser,
4482 # not just through cpp. "Syntax error" is here to catch this case.
4483 cat >conftest.
$ac_ext <<_ACEOF
4486 cat confdefs.h
>>conftest.
$ac_ext
4487 cat >>conftest.
$ac_ext <<_ACEOF
4488 /* end confdefs.h. */
4490 # include <limits.h>
4492 # include <assert.h>
4496 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504 grep -v '^ *+' conftest.er1 >conftest.err
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null && {
4509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510 test ! -s conftest.err
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # Broken: fails on valid input.
4521 rm -f conftest.err conftest.$ac_ext
4523 # OK, works on sane cases. Now check whether nonexistent headers
4524 # can be detected and how.
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <ac_nonexistent.h>
4533 if { (ac_try="$ac_cpp conftest.$ac_ext"
4535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4536 *) ac_try_echo
=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4541 grep -v '^ *+' conftest.er1
>conftest.err
4543 cat conftest.err
>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev
/null
&& {
4546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4547 test ! -s conftest.err
4549 # Broken: success on invalid input.
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.
$ac_ext >&5
4555 # Passes both tests.
4560 rm -f conftest.err conftest.
$ac_ext
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.err conftest.
$ac_ext
4565 if $ac_preproc_ok; then
4568 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details." >&2;}
4572 { (exit 1); exit 1; }; }
4576 ac_cpp
='$CPP $CPPFLAGS'
4577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4583 # Create compiler version string
4584 if test x
"$GCC" = x
"yes" ; then
4585 cc_string
="GCC `${CC} --version | sed q`"
4590 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4591 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4592 if test "${ac_cv_path_GREP+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 # Extract the first word of "grep ggrep" to use in msg output
4596 if test -z "$GREP"; then
4597 set dummy
grep ggrep
; ac_prog_name
=$2
4598 if test "${ac_cv_path_GREP+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_path_GREP_found
=false
4602 # Loop through the user's path and test for each of PROGNAME-LIST
4603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4604 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4607 test -z "$as_dir" && as_dir
=.
4608 for ac_prog
in grep ggrep
; do
4609 for ac_exec_ext
in '' $ac_executable_extensions; do
4610 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4611 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4612 # Check for GNU ac_path_GREP and select it if it is found.
4613 # Check for GNU $ac_path_GREP
4614 case `"$ac_path_GREP" --version 2>&1` in
4616 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4619 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4622 cat "conftest.in" "conftest.in" >"conftest.tmp"
4623 mv "conftest.tmp" "conftest.in"
4624 cp "conftest.in" "conftest.nl"
4625 echo 'GREP' >> "conftest.nl"
4626 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4627 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4628 ac_count
=`expr $ac_count + 1`
4629 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4630 # Best one so far, save it but keep looking for a better one
4631 ac_cv_path_GREP
="$ac_path_GREP"
4632 ac_path_GREP_max
=$ac_count
4634 # 10*(2^10) chars as input seems more than enough
4635 test $ac_count -gt 10 && break
4637 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4641 $ac_path_GREP_found && break 3
4651 GREP
="$ac_cv_path_GREP"
4652 if test -z "$GREP"; then
4653 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4654 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4655 { (exit 1); exit 1; }; }
4659 ac_cv_path_GREP
=$GREP
4664 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4665 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4666 GREP
="$ac_cv_path_GREP"
4669 { echo "$as_me:$LINENO: checking for egrep" >&5
4670 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4671 if test "${ac_cv_path_EGREP+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4675 then ac_cv_path_EGREP
="$GREP -E"
4677 # Extract the first word of "egrep" to use in msg output
4678 if test -z "$EGREP"; then
4679 set dummy
egrep; ac_prog_name
=$2
4680 if test "${ac_cv_path_EGREP+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 ac_path_EGREP_found
=false
4684 # Loop through the user's path and test for each of PROGNAME-LIST
4685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4686 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4689 test -z "$as_dir" && as_dir
=.
4690 for ac_prog
in egrep; do
4691 for ac_exec_ext
in '' $ac_executable_extensions; do
4692 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4693 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4694 # Check for GNU ac_path_EGREP and select it if it is found.
4695 # Check for GNU $ac_path_EGREP
4696 case `"$ac_path_EGREP" --version 2>&1` in
4698 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4701 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4704 cat "conftest.in" "conftest.in" >"conftest.tmp"
4705 mv "conftest.tmp" "conftest.in"
4706 cp "conftest.in" "conftest.nl"
4707 echo 'EGREP' >> "conftest.nl"
4708 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4709 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4710 ac_count
=`expr $ac_count + 1`
4711 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4712 # Best one so far, save it but keep looking for a better one
4713 ac_cv_path_EGREP
="$ac_path_EGREP"
4714 ac_path_EGREP_max
=$ac_count
4716 # 10*(2^10) chars as input seems more than enough
4717 test $ac_count -gt 10 && break
4719 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4723 $ac_path_EGREP_found && break 3
4733 EGREP
="$ac_cv_path_EGREP"
4734 if test -z "$EGREP"; then
4735 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4736 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4737 { (exit 1); exit 1; }; }
4741 ac_cv_path_EGREP
=$EGREP
4747 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4748 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4749 EGREP
="$ac_cv_path_EGREP"
4752 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4754 if test "${ac_cv_header_stdc+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 cat >conftest.
$ac_ext <<_ACEOF
4760 cat confdefs.h
>>conftest.
$ac_ext
4761 cat >>conftest.
$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4776 rm -f conftest.
$ac_objext
4777 if { (ac_try
="$ac_compile"
4779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_compile") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4793 ac_cv_header_stdc=yes
4795 echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 ac_cv_header_stdc=no
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 if test $ac_cv_header_stdc = yes; then
4804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815 $EGREP "memchr" >/dev/null 2>&1; then
4818 ac_cv_header_stdc=no
4824 if test $ac_cv_header_stdc = yes; then
4825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4836 $EGREP "free" >/dev/null 2>&1; then
4839 ac_cv_header_stdc=no
4845 if test $ac_cv_header_stdc = yes; then
4846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4847 if test "$cross_compiling" = yes; then
4850 cat >conftest.$ac_ext <<_ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4858 #if ((' ' & 0x0FF) == 0x020)
4859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4862 # define ISLOWER(c) \
4863 (('a' <= (c) && (c) <= 'i') \
4864 || ('j' <= (c) && (c) <= 'r') \
4865 || ('s' <= (c) && (c) <= 'z'))
4866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4874 for (i = 0; i < 256; i++)
4875 if (XOR (islower (i), ISLOWER (i))
4876 || toupper (i) != TOUPPER (i))
4881 rm -f conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4885 *) ac_try_echo
=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_link") 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4892 { (case "(($ac_try" in
4893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_try") 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4903 echo "$as_me: program exited with status $ac_status" >&5
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4908 ac_cv_header_stdc=no
4910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4916 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4917 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4918 if test $ac_cv_header_stdc = yes; then
4920 cat >>confdefs.h <<\_ACEOF
4921 #define STDC_HEADERS 1
4926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4937 inttypes.h stdint.h unistd.h
4939 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 $ac_includes_default
4953 #include <$ac_header>
4955 rm -f conftest.$ac_objext
4956 if { (ac_try="$ac_compile"
4958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4959 *) ac_try_echo
=$ac_try;;
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_compile") 2>conftest.er1
4964 grep -v '^ *+' conftest.er1
>conftest.err
4966 cat conftest.err
>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest.
$ac_objext; then
4972 eval "$as_ac_Header=yes"
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.
$ac_ext >&5
4977 eval "$as_ac_Header=no"
4980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4982 ac_res
=`eval echo '${'$as_ac_Header'}'`
4983 { echo "$as_me:$LINENO: result: $ac_res" >&5
4984 echo "${ECHO_T}$ac_res" >&6; }
4985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4986 cat >>confdefs.h
<<_ACEOF
4987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4995 { echo "$as_me:$LINENO: checking for void *" >&5
4996 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4997 if test "${ac_cv_type_void_p+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 cat >conftest.
$ac_ext <<_ACEOF
5003 cat confdefs.h
>>conftest.
$ac_ext
5004 cat >>conftest.
$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5007 typedef void * ac__type_new_;
5011 if ((ac__type_new_ *) 0)
5013 if (sizeof (ac__type_new_))
5019 rm -f conftest.
$ac_objext
5020 if { (ac_try
="$ac_compile"
5022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_compile") 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } && {
5033 test -z "$ac_c_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest.$ac_objext; then
5036 ac_cv_type_void_p=yes
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 ac_cv_type_void_p=no
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5047 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
5049 # The cast to long int works around a bug in the HP C Compiler
5050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5051 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
5052 # This bug is HP SR number 8606223364.
5053 { echo "$as_me:$LINENO: checking size of void *" >&5
5054 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
5055 if test "${ac_cv_sizeof_void_p+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 if test "$cross_compiling" = yes; then
5059 # Depending upon the size, compute the lo and hi bounds.
5060 cat >conftest.$ac_ext <<_ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 $ac_includes_default
5067 typedef void * ac__type_sizeof_;
5071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_compile") 2>conftest.er1
5087 grep -v '^
*+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest.$ac_objext; then
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 $ac_includes_default
5104 typedef void * ac__type_sizeof_;
5108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5115 rm -f conftest.$ac_objext
5116 if { (ac_try="$ac_compile"
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_compile") 2>conftest.er1
5124 grep -v '^
*+' conftest.er1 >conftest.err
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && {
5129 test -z "$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 } && test -s conftest.$ac_objext; then
5132 ac_hi=$ac_mid; break
5134 echo "$as_me: failed program was:" >&5
5135 sed 's
/^
/|
/' conftest.$ac_ext >&5
5137 ac_lo=`expr $ac_mid + 1`
5138 if test $ac_lo -le $ac_mid; then
5142 ac_mid=`expr 2 '*' $ac_mid + 1`
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 echo "$as_me: failed program was:" >&5
5149 sed 's
/^
/|
/' conftest.$ac_ext >&5
5151 cat >conftest.$ac_ext <<_ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5157 $ac_includes_default
5158 typedef void * ac__type_sizeof_;
5162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5169 rm -f conftest.$ac_objext
5170 if { (ac_try="$ac_compile"
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_compile") 2>conftest.er1
5178 grep -v '^
*+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && {
5183 test -z "$ac_c_werror_flag" ||
5184 test ! -s conftest.err
5185 } && test -s conftest.$ac_objext; then
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5194 $ac_includes_default
5195 typedef void * ac__type_sizeof_;
5199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5206 rm -f conftest.$ac_objext
5207 if { (ac_try="$ac_compile"
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_compile") 2>conftest.er1
5215 grep -v '^
*+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } && {
5220 test -z "$ac_c_werror_flag" ||
5221 test ! -s conftest.err
5222 } && test -s conftest.$ac_objext; then
5223 ac_lo=$ac_mid; break
5225 echo "$as_me: failed program was:" >&5
5226 sed 's
/^
/|
/' conftest.$ac_ext >&5
5228 ac_hi=`expr '(' $ac_mid ')' - 1`
5229 if test $ac_mid -le $ac_hi; then
5233 ac_mid=`expr 2 '*' $ac_mid`
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 echo "$as_me: failed program was:" >&5
5240 sed 's
/^
/|
/' conftest.$ac_ext >&5
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 # Binary search between lo and hi bounds.
5250 while test "x$ac_lo" != "x$ac_hi"; do
5251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5252 cat >conftest.$ac_ext <<_ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5258 $ac_includes_default
5259 typedef void * ac__type_sizeof_;
5263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5270 rm -f conftest.$ac_objext
5271 if { (ac_try="$ac_compile"
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5279 grep -v '^
*+' conftest.er1 >conftest.err
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && {
5284 test -z "$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.$ac_objext; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's
/^
/|
/' conftest.$ac_ext >&5
5292 ac_lo=`expr '(' $ac_mid ')' + 1`
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5299 '') if test "$ac_cv_type_void_p" = yes; then
5300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
5301 See \`config.log' for more details.
" >&5
5302 echo "$as_me: error
: cannot compute sizeof
(void
*)
5303 See \
`config.log' for more details." >&2;}
5304 { (exit 77); exit 77; }; }
5306 ac_cv_sizeof_void_p=0
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 $ac_includes_default
5317 typedef void * ac__type_sizeof_;
5318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5326 FILE *f = fopen ("conftest.val", "w");
5329 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5331 long int i = longval ();
5332 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5334 fprintf (f, "%ld\n", i);
5338 unsigned long int i = ulongval ();
5339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5341 fprintf (f, "%lu\n", i);
5343 return ferror (f) || fclose (f) != 0;
5349 rm -f conftest$ac_exeext
5350 if { (ac_try="$ac_link"
5352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5353 *) ac_try_echo
=$ac_try;;
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_link") 2>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5360 { (case "(($ac_try" in
5361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_try") 2>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_cv_sizeof_void_p=`cat conftest.val
`
5371 echo "$as_me: program exited with status $ac_status" >&5
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5376 if test "$ac_cv_type_void_p" = yes; then
5377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
5378 See \`config.log
' for more details." >&5
5379 echo "$as_me: error: cannot compute sizeof (void *)
5380 See \`config.log' for more details.
" >&2;}
5381 { (exit 77); exit 77; }; }
5383 ac_cv_sizeof_void_p=0
5386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5390 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_void_p" >&5
5391 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
5395 cat >>confdefs.h <<_ACEOF
5396 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5402 cat >>confdefs.h <<_ACEOF
5403 #define PG_VERSION_STR "PostgreSQL
$PACKAGE_VERSION on
$host, compiled by
$cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
5409 # Set up TAS assembly code if needed; the template file has now had its
5410 # chance to request this.
5412 ac_config_links="$ac_config_links src
/backend
/port
/tas.s
:src
/backend
/port
/tas
/${tas_file}"
5415 if test "$need_tas" = yes ; then
5424 # Automatic dependency tracking
5427 pgac_args="$pgac_args enable_depend
"
5429 # Check whether --enable-depend was given.
5430 if test "${enable_depend+set}" = set; then
5431 enableval=$enable_depend;
5440 { { echo "$as_me:$LINENO: error
: no argument expected
for --enable-depend option
" >&5
5441 echo "$as_me: error
: no argument expected
for --enable-depend option
" >&2;}
5442 { (exit 1); exit 1; }; }
5456 # Enable assert checks
5459 pgac_args="$pgac_args enable_cassert
"
5461 # Check whether --enable-cassert was given.
5462 if test "${enable_cassert+set}" = set; then
5463 enableval=$enable_cassert;
5467 cat >>confdefs.h <<\_ACEOF
5468 #define USE_ASSERT_CHECKING 1
5476 { { echo "$as_me:$LINENO: error
: no argument expected
for --enable-cassert option
" >&5
5477 echo "$as_me: error
: no argument expected
for --enable-cassert option
" >&2;}
5478 { (exit 1); exit 1; }; }
5491 # Include directories
5494 IFS="${IFS}${PATH_SEPARATOR}"
5495 # SRCH_INC comes from the template file
5496 for dir in $with_includes $SRCH_INC; do
5497 if test -d "$dir"; then
5498 INCLUDES="$INCLUDES -I$dir"
5500 { echo "$as_me:$LINENO: WARNING
: *** Include directory
$dir does not exist.
" >&5
5501 echo "$as_me: WARNING
: *** Include directory
$dir does not exist.
" >&2;}
5509 # Library directories
5512 IFS="${IFS}${PATH_SEPARATOR}"
5513 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5514 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5515 if test -d "$dir"; then
5516 LIBDIRS="$LIBDIRS -L$dir"
5518 { echo "$as_me:$LINENO: WARNING
: *** Library directory
$dir does not exist.
" >&5
5519 echo "$as_me: WARNING
: *** Library directory
$dir does not exist.
" >&2;}
5525 # Enable thread-safe client libraries
5527 { echo "$as_me:$LINENO: checking allow thread-safe client libraries
" >&5
5528 echo $ECHO_N "checking allow thread-safe client libraries...
$ECHO_C" >&6; }
5529 if test "$PORTNAME" != "win32
"; then
5531 pgac_args="$pgac_args enable_thread_safety
"
5533 # Check whether --enable-thread-safety was given.
5534 if test "${enable_thread_safety+set}" = set; then
5535 enableval=$enable_thread_safety;
5544 { { echo "$as_me:$LINENO: error
: no argument expected
for --enable-thread-safety option
" >&5
5545 echo "$as_me: error
: no argument expected
for --enable-thread-safety option
" >&2;}
5546 { (exit 1); exit 1; }; }
5551 enable_thread_safety=no
5557 # Win32 should always use threads
5559 pgac_args="$pgac_args enable_thread_safety
"
5561 # Check whether --enable-thread-safety was given.
5562 if test "${enable_thread_safety+set}" = set; then
5563 enableval=$enable_thread_safety;
5572 { { echo "$as_me:$LINENO: error
: no argument expected
for --enable-thread-safety option
" >&5
5573 echo "$as_me: error
: no argument expected
for --enable-thread-safety option
" >&2;}
5574 { (exit 1); exit 1; }; }
5579 enable_thread_safety=yes
5587 pgac_args="$pgac_args enable_thread_safety_force
"
5589 # Check whether --enable-thread-safety-force was given.
5590 if test "${enable_thread_safety_force+set}" = set; then
5591 enableval=$enable_thread_safety_force;
5600 { { echo "$as_me:$LINENO: error
: no argument expected
for --enable-thread-safety-force option
" >&5
5601 echo "$as_me: error
: no argument expected
for --enable-thread-safety-force option
" >&2;}
5602 { (exit 1); exit 1; }; }
5607 enable_thread_safety_force=no
5612 if test "$enable_thread_safety" = yes -o \
5613 "$enable_thread_safety_force" = yes; then
5614 enable_thread_safety="yes" # for 'force'
5616 cat >>confdefs.h <<\_ACEOF
5617 #define ENABLE_THREAD_SAFETY 1
5621 { echo "$as_me:$LINENO: result
: $enable_thread_safety" >&5
5622 echo "${ECHO_T}$enable_thread_safety" >&6; }
5626 # Optionally build Tcl modules (PL/Tcl)
5628 { echo "$as_me:$LINENO: checking whether to build with Tcl
" >&5
5629 echo $ECHO_N "checking whether to build with Tcl...
$ECHO_C" >&6; }
5631 pgac_args="$pgac_args with_tcl
"
5634 # Check whether --with-tcl was given.
5635 if test "${with_tcl+set}" = set; then
5645 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-tcl option
" >&5
5646 echo "$as_me: error
: no argument expected
for --with-tcl option
" >&2;}
5647 { (exit 1); exit 1; }; }
5657 { echo "$as_me:$LINENO: result
: $with_tcl" >&5
5658 echo "${ECHO_T}$with_tcl" >&6; }
5661 # We see if the path to the Tcl/Tk configuration scripts is specified.
5662 # This will override the use of tclsh to find the paths to search.
5665 pgac_args="$pgac_args with_tclconfig
"
5668 # Check whether --with-tclconfig was given.
5669 if test "${with_tclconfig+set}" = set; then
5670 withval=$with_tclconfig;
5673 { { echo "$as_me:$LINENO: error
: argument required
for --with-tclconfig option
" >&5
5674 echo "$as_me: error
: argument required
for --with-tclconfig option
" >&2;}
5675 { (exit 1); exit 1; }; }
5678 { { echo "$as_me:$LINENO: error
: argument required
for --with-tclconfig option
" >&5
5679 echo "$as_me: error
: argument required
for --with-tclconfig option
" >&2;}
5680 { (exit 1); exit 1; }; }
5692 # Optionally build Perl modules (PL/Perl)
5694 { echo "$as_me:$LINENO: checking whether to build Perl modules
" >&5
5695 echo $ECHO_N "checking whether to build Perl modules...
$ECHO_C" >&6; }
5697 pgac_args="$pgac_args with_perl
"
5700 # Check whether --with-perl was given.
5701 if test "${with_perl+set}" = set; then
5711 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-perl option
" >&5
5712 echo "$as_me: error
: no argument expected
for --with-perl option
" >&2;}
5713 { (exit 1); exit 1; }; }
5723 { echo "$as_me:$LINENO: result
: $with_perl" >&5
5724 echo "${ECHO_T}$with_perl" >&6; }
5728 # Optionally build Python modules (PL/Python)
5730 { echo "$as_me:$LINENO: checking whether to build Python modules
" >&5
5731 echo $ECHO_N "checking whether to build Python modules...
$ECHO_C" >&6; }
5733 pgac_args="$pgac_args with_python
"
5736 # Check whether --with-python was given.
5737 if test "${with_python+set}" = set; then
5738 withval=$with_python;
5747 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-python option
" >&5
5748 echo "$as_me: error
: no argument expected
for --with-python option
" >&2;}
5749 { (exit 1); exit 1; }; }
5759 { echo "$as_me:$LINENO: result
: $with_python" >&5
5760 echo "${ECHO_T}$with_python" >&6; }
5766 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support
" >&5
5767 echo $ECHO_N "checking whether to build with GSSAPI support...
$ECHO_C" >&6; }
5769 pgac_args="$pgac_args with_gssapi
"
5772 # Check whether --with-gssapi was given.
5773 if test "${with_gssapi+set}" = set; then
5774 withval=$with_gssapi;
5779 cat >>confdefs.h <<\_ACEOF
5780 #define ENABLE_GSS 1
5783 krb_srvtab="FILE
:\$
(sysconfdir
)/krb5.keytab
"
5790 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-gssapi option
" >&5
5791 echo "$as_me: error
: no argument expected
for --with-gssapi option
" >&2;}
5792 { (exit 1); exit 1; }; }
5802 { echo "$as_me:$LINENO: result
: $with_gssapi" >&5
5803 echo "${ECHO_T}$with_gssapi" >&6; }
5809 { echo "$as_me:$LINENO: checking whether to build with Kerberos
5 support
" >&5
5810 echo $ECHO_N "checking whether to build with Kerberos
5 support...
$ECHO_C" >&6; }
5812 pgac_args="$pgac_args with_krb5
"
5815 # Check whether --with-krb5 was given.
5816 if test "${with_krb5+set}" = set; then
5822 cat >>confdefs.h <<\_ACEOF
5826 krb_srvtab="FILE
:\$
(sysconfdir
)/krb5.keytab
"
5833 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-krb5 option
" >&5
5834 echo "$as_me: error
: no argument expected
for --with-krb5 option
" >&2;}
5835 { (exit 1); exit 1; }; }
5845 { echo "$as_me:$LINENO: result
: $with_krb5" >&5
5846 echo "${ECHO_T}$with_krb5" >&6; }
5854 # Kerberos configuration parameters
5857 pgac_args="$pgac_args with_krb_srvnam
"
5860 # Check whether --with-krb-srvnam was given.
5861 if test "${with_krb_srvnam+set}" = set; then
5862 withval=$with_krb_srvnam;
5865 { { echo "$as_me:$LINENO: error
: argument required
for --with-krb-srvnam option
" >&5
5866 echo "$as_me: error
: argument required
for --with-krb-srvnam option
" >&2;}
5867 { (exit 1); exit 1; }; }
5870 { { echo "$as_me:$LINENO: error
: argument required
for --with-krb-srvnam option
" >&5
5871 echo "$as_me: error
: argument required
for --with-krb-srvnam option
" >&2;}
5872 { (exit 1); exit 1; }; }
5880 with_krb_srvnam="postgres
"
5885 cat >>confdefs.h <<_ACEOF
5886 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5894 { echo "$as_me:$LINENO: checking whether to build with PAM support
" >&5
5895 echo $ECHO_N "checking whether to build with PAM support...
$ECHO_C" >&6; }
5897 pgac_args="$pgac_args with_pam
"
5900 # Check whether --with-pam was given.
5901 if test "${with_pam+set}" = set; then
5906 cat >>confdefs.h <<\_ACEOF
5915 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-pam option
" >&5
5916 echo "$as_me: error
: no argument expected
for --with-pam option
" >&2;}
5917 { (exit 1); exit 1; }; }
5927 { echo "$as_me:$LINENO: result
: $with_pam" >&5
5928 echo "${ECHO_T}$with_pam" >&6; }
5935 { echo "$as_me:$LINENO: checking whether to build with LDAP support
" >&5
5936 echo $ECHO_N "checking whether to build with LDAP support...
$ECHO_C" >&6; }
5938 pgac_args="$pgac_args with_ldap
"
5941 # Check whether --with-ldap was given.
5942 if test "${with_ldap+set}" = set; then
5947 cat >>confdefs.h <<\_ACEOF
5956 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-ldap option
" >&5
5957 echo "$as_me: error
: no argument expected
for --with-ldap option
" >&2;}
5958 { (exit 1); exit 1; }; }
5968 { echo "$as_me:$LINENO: result
: $with_ldap" >&5
5969 echo "${ECHO_T}$with_ldap" >&6; }
5976 { echo "$as_me:$LINENO: checking whether to build with Bonjour support
" >&5
5977 echo $ECHO_N "checking whether to build with Bonjour support...
$ECHO_C" >&6; }
5979 pgac_args="$pgac_args with_bonjour
"
5982 # Check whether --with-bonjour was given.
5983 if test "${with_bonjour+set}" = set; then
5984 withval=$with_bonjour;
5988 cat >>confdefs.h <<\_ACEOF
5989 #define USE_BONJOUR 1
5997 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-bonjour option
" >&5
5998 echo "$as_me: error
: no argument expected
for --with-bonjour option
" >&2;}
5999 { (exit 1); exit 1; }; }
6009 { echo "$as_me:$LINENO: result
: $with_bonjour" >&5
6010 echo "${ECHO_T}$with_bonjour" >&6; }
6017 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support
" >&5
6018 echo $ECHO_N "checking whether to build with OpenSSL support...
$ECHO_C" >&6; }
6020 pgac_args="$pgac_args with_openssl
"
6023 # Check whether --with-openssl was given.
6024 if test "${with_openssl+set}" = set; then
6025 withval=$with_openssl;
6029 cat >>confdefs.h <<\_ACEOF
6038 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-openssl option
" >&5
6039 echo "$as_me: error
: no argument expected
for --with-openssl option
" >&2;}
6040 { (exit 1); exit 1; }; }
6050 { echo "$as_me:$LINENO: result
: $with_openssl" >&5
6051 echo "${ECHO_T}$with_openssl" >&6; }
6059 pgac_args="$pgac_args with_readline
"
6062 # Check whether --with-readline was given.
6063 if test "${with_readline+set}" = set; then
6064 withval=$with_readline;
6073 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-readline option
" >&5
6074 echo "$as_me: error
: no argument expected
for --with-readline option
" >&2;}
6075 { (exit 1); exit 1; }; }
6085 # readline on MinGW has problems with backslashes in psql and other bugs.
6086 # This is particularly a problem with non-US code pages.
6087 # Therefore disable its use until we understand the cause. 2004-07-20
6088 if test "$PORTNAME" = "win32
"; then
6089 if test "$with_readline" = yes; then
6090 { echo "$as_me:$LINENO: WARNING
: *** Readline does not work on MinGW
--- disabling
" >&5
6091 echo "$as_me: WARNING
: *** Readline does not work on MinGW
--- disabling
" >&2;}
6101 pgac_args="$pgac_args with_libedit_preferred
"
6104 # Check whether --with-libedit-preferred was given.
6105 if test "${with_libedit_preferred+set}" = set; then
6106 withval=$with_libedit_preferred;
6115 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-libedit-preferred option
" >&5
6116 echo "$as_me: error
: no argument expected
for --with-libedit-preferred option
" >&2;}
6117 { (exit 1); exit 1; }; }
6122 with_libedit_preferred=no
6133 pgac_args="$pgac_args with_ossp_uuid
"
6136 # Check whether --with-ossp-uuid was given.
6137 if test "${with_ossp_uuid+set}" = set; then
6138 withval=$with_ossp_uuid;
6147 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-ossp-uuid option
" >&5
6148 echo "$as_me: error
: no argument expected
for --with-ossp-uuid option
" >&2;}
6149 { (exit 1); exit 1; }; }
6166 pgac_args="$pgac_args with_libxml
"
6169 # Check whether --with-libxml was given.
6170 if test "${with_libxml+set}" = set; then
6171 withval=$with_libxml;
6175 cat >>confdefs.h <<\_ACEOF
6176 #define USE_LIBXML 1
6184 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-libxml option
" >&5
6185 echo "$as_me: error
: no argument expected
for --with-libxml option
" >&2;}
6186 { (exit 1); exit 1; }; }
6197 if test "$with_libxml" = yes ; then
6198 for ac_prog in xml2-config
6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
6201 set dummy $ac_prog; ac_word=$2
6202 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6203 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6204 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
6205 echo $ECHO_N "(cached
) $ECHO_C" >&6
6207 if test -n "$XML2_CONFIG"; then
6208 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_XML2_CONFIG="$ac_prog"
6218 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6227 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
6228 if test -n "$XML2_CONFIG"; then
6229 { echo "$as_me:$LINENO: result
: $XML2_CONFIG" >&5
6230 echo "${ECHO_T}$XML2_CONFIG" >&6; }
6232 { echo "$as_me:$LINENO: result
: no
" >&5
6233 echo "${ECHO_T}no
" >&6; }
6237 test -n "$XML2_CONFIG" && break
6240 if test -n "$XML2_CONFIG"; then
6241 for pgac_option in `$XML2_CONFIG --cflags`; do
6242 case $pgac_option in
6243 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
6246 for pgac_option in `$XML2_CONFIG --libs`; do
6247 case $pgac_option in
6248 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
6260 pgac_args="$pgac_args with_libxslt
"
6263 # Check whether --with-libxslt was given.
6264 if test "${with_libxslt+set}" = set; then
6265 withval=$with_libxslt;
6269 cat >>confdefs.h <<\_ACEOF
6270 #define USE_LIBXSLT 1
6278 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-libxslt option
" >&5
6279 echo "$as_me: error
: no argument expected
for --with-libxslt option
" >&2;}
6280 { (exit 1); exit 1; }; }
6298 pgac_args="$pgac_args with_system_tzdata
"
6301 # Check whether --with-system-tzdata was given.
6302 if test "${with_system_tzdata+set}" = set; then
6303 withval=$with_system_tzdata;
6306 { { echo "$as_me:$LINENO: error
: argument required
for --with-system-tzdata option
" >&5
6307 echo "$as_me: error
: argument required
for --with-system-tzdata option
" >&2;}
6308 { (exit 1); exit 1; }; }
6311 { { echo "$as_me:$LINENO: error
: argument required
for --with-system-tzdata option
" >&5
6312 echo "$as_me: error
: argument required
for --with-system-tzdata option
" >&2;}
6313 { (exit 1); exit 1; }; }
6329 pgac_args="$pgac_args with_zlib
"
6332 # Check whether --with-zlib was given.
6333 if test "${with_zlib+set}" = set; then
6343 { { echo "$as_me:$LINENO: error
: no argument expected
for --with-zlib option
" >&5
6344 echo "$as_me: error
: no argument expected
for --with-zlib option
" >&2;}
6345 { (exit 1); exit 1; }; }
6361 # Assume system is ELF if it predefines __ELF__ as 1,
6362 # otherwise believe host_os based default.
6364 freebsd1*|freebsd2*) elf=no;;
6365 freebsd3*|freebsd4*) elf=yes;;
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6379 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6380 $EGREP "yes" >/dev/null 2>&1; then
6383 if test "X
$elf" = "Xyes
" ; then
6397 CPPFLAGS="$CPPFLAGS $INCLUDES"
6398 LDFLAGS="$LDFLAGS $LIBDIRS"
6403 # Check whether --with-gnu-ld was given.
6404 if test "${with_gnu_ld+set}" = set; then
6405 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6411 if test "$GCC" = yes; then
6412 # Check if gcc -print-prog-name=ld gives a path.
6413 { echo "$as_me:$LINENO: checking
for ld used by GCC
" >&5
6414 echo $ECHO_N "checking
for ld used by GCC...
$ECHO_C" >&6; }
6417 # gcc leaves a trailing carriage return which upsets mingw
6418 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6420 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6423 # Accept absolute paths.
6424 [\\/]* | [A-Za-z]:[\\/]*)
6425 re_direlt='/[^/][^/]*/\.\./'
6426 # Canonicalize the path of ld
6427 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6428 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6429 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
6431 test -z "$LD" && LD="$ac_prog"
6434 # If it fails, then pretend we aren't using GCC.
6438 # If it is relative, then search for the first ld in PATH.
6442 elif test "$with_gnu_ld" = yes; then
6443 { echo "$as_me:$LINENO: checking
for GNU ld
" >&5
6444 echo $ECHO_N "checking
for GNU ld...
$ECHO_C" >&6; }
6446 { echo "$as_me:$LINENO: checking
for non-GNU ld
" >&5
6447 echo $ECHO_N "checking
for non-GNU ld...
$ECHO_C" >&6; }
6449 if test "${ac_cv_path_LD+set}" = set; then
6450 echo $ECHO_N "(cached
) $ECHO_C" >&6
6452 if test -z "$LD"; then
6453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6454 for ac_dir in $PATH; do
6455 test -z "$ac_dir" && ac_dir=.
6456 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6457 ac_cv_path_LD="$ac_dir/$ac_prog"
6458 # Check to see if the program is GNU ld. I'd rather use --version,
6459 # but apparently some GNU ld's only accept -v.
6460 # Break only if it was the GNU/non-GNU ld that we prefer.
6461 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6462 test "$with_gnu_ld" != no && break
6464 test "$with_gnu_ld" != yes && break
6470 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6475 if test -n "$LD"; then
6476 { echo "$as_me:$LINENO: result
: $LD" >&5
6477 echo "${ECHO_T}$LD" >&6; }
6479 { echo "$as_me:$LINENO: result
: no
" >&5
6480 echo "${ECHO_T}no
" >&6; }
6482 test -z "$LD" && { { echo "$as_me:$LINENO: error
: no acceptable ld found
in \
$PATH" >&5
6483 echo "$as_me: error
: no acceptable ld found
in \
$PATH" >&2;}
6484 { (exit 1); exit 1; }; }
6485 { echo "$as_me:$LINENO: checking
if the linker
($LD) is GNU ld
" >&5
6486 echo $ECHO_N "checking
if the linker
($LD) is GNU ld...
$ECHO_C" >&6; }
6487 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6488 echo $ECHO_N "(cached
) $ECHO_C" >&6
6490 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6491 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6492 ac_cv_prog_gnu_ld=yes
6494 ac_cv_prog_gnu_ld=no
6497 { echo "$as_me:$LINENO: result
: $ac_cv_prog_gnu_ld" >&5
6498 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
6499 with_gnu_ld=$ac_cv_prog_gnu_ld
6504 case $host_os in sysv5*)
6505 { echo "$as_me:$LINENO: checking whether ld
-R works
" >&5
6506 echo $ECHO_N "checking whether ld
-R works...
$ECHO_C" >&6; }
6507 if test "${pgac_cv_prog_ld_R+set}" = set; then
6508 echo $ECHO_N "(cached
) $ECHO_C" >&6
6511 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr
/lib
"
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6527 rm -f conftest.$ac_objext conftest$ac_exeext
6528 if { (ac_try="$ac_link"
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_link") 2>conftest.er1
6536 grep -v '^ *+' conftest.er1 >conftest.err
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest$ac_exeext &&
6544 $as_test_x conftest$ac_exeext; then
6545 pgac_cv_prog_ld_R=yes
6547 echo "$as_me: failed program was
:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 pgac_cv_prog_ld_R=no
6553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6554 conftest$ac_exeext conftest.$ac_ext
6555 LDFLAGS=$pgac_save_LDFLAGS
6558 { echo "$as_me:$LINENO: result
: $pgac_cv_prog_ld_R" >&5
6559 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
6560 ld_R_works=$pgac_cv_prog_ld_R
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6566 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6567 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6568 if test "${ac_cv_prog_RANLIB+set}" = set; then
6569 echo $ECHO_N "(cached
) $ECHO_C" >&6
6571 if test -n "$RANLIB"; then
6572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6582 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6591 RANLIB=$ac_cv_prog_RANLIB
6592 if test -n "$RANLIB"; then
6593 { echo "$as_me:$LINENO: result
: $RANLIB" >&5
6594 echo "${ECHO_T}$RANLIB" >&6; }
6596 { echo "$as_me:$LINENO: result
: no
" >&5
6597 echo "${ECHO_T}no
" >&6; }
6602 if test -z "$ac_cv_prog_RANLIB"; then
6603 ac_ct_RANLIB=$RANLIB
6604 # Extract the first word of "ranlib
", so it can be a program name with args.
6605 set dummy ranlib; ac_word=$2
6606 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6607 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6608 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6609 echo $ECHO_N "(cached
) $ECHO_C" >&6
6611 if test -n "$ac_ct_RANLIB"; then
6612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6622 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6632 if test -n "$ac_ct_RANLIB"; then
6633 { echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
6634 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6636 { echo "$as_me:$LINENO: result
: no
" >&5
6637 echo "${ECHO_T}no
" >&6; }
6640 if test "x
$ac_ct_RANLIB" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6646 whose name does not start with the
host triplet. If you think this
6647 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6648 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6649 whose name does not start with the
host triplet. If you think this
6650 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6651 ac_tool_warned=yes ;;
6653 RANLIB=$ac_ct_RANLIB
6656 RANLIB="$ac_cv_prog_RANLIB"
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}strip; ac_word=$2
6663 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6664 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6665 if test "${ac_cv_prog_STRIP+set}" = set; then
6666 echo $ECHO_N "(cached
) $ECHO_C" >&6
6668 if test -n "$STRIP"; then
6669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6679 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6688 STRIP=$ac_cv_prog_STRIP
6689 if test -n "$STRIP"; then
6690 { echo "$as_me:$LINENO: result
: $STRIP" >&5
6691 echo "${ECHO_T}$STRIP" >&6; }
6693 { echo "$as_me:$LINENO: result
: no
" >&5
6694 echo "${ECHO_T}no
" >&6; }
6699 if test -z "$ac_cv_prog_STRIP"; then
6701 # Extract the first word of "strip
", so it can be a program name with args.
6702 set dummy strip; ac_word=$2
6703 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6704 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6706 echo $ECHO_N "(cached
) $ECHO_C" >&6
6708 if test -n "$ac_ct_STRIP"; then
6709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_STRIP="strip
"
6719 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6729 if test -n "$ac_ct_STRIP"; then
6730 { echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
6731 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6733 { echo "$as_me:$LINENO: result
: no
" >&5
6734 echo "${ECHO_T}no
" >&6; }
6737 if test "x
$ac_ct_STRIP" = x; then
6740 case $cross_compiling:$ac_tool_warned in
6742 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6743 whose name does not start with the
host triplet. If you think this
6744 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6745 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6746 whose name does not start with the
host triplet. If you think this
6747 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6748 ac_tool_warned=yes ;;
6753 STRIP="$ac_cv_prog_STRIP"
6757 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries
" >&5
6758 echo $ECHO_N "checking whether it is possible to strip libraries...
$ECHO_C" >&6; }
6759 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip
" >/dev/null; then
6760 STRIP_STATIC_LIB="$STRIP -x"
6761 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6762 { echo "$as_me:$LINENO: result
: yes" >&5
6763 echo "${ECHO_T}yes" >&6; }
6767 { echo "$as_me:$LINENO: result
: no
" >&5
6768 echo "${ECHO_T}no
" >&6; }
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}ar; ac_word=$2
6776 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6777 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6778 if test "${ac_cv_prog_AR+set}" = set; then
6779 echo $ECHO_N "(cached
) $ECHO_C" >&6
6781 if test -n "$AR"; then
6782 ac_cv_prog_AR="$AR" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_AR="${ac_tool_prefix}ar"
6792 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6802 if test -n "$AR"; then
6803 { echo "$as_me:$LINENO: result
: $AR" >&5
6804 echo "${ECHO_T}$AR" >&6; }
6806 { echo "$as_me:$LINENO: result
: no
" >&5
6807 echo "${ECHO_T}no
" >&6; }
6812 if test -z "$ac_cv_prog_AR"; then
6814 # Extract the first word of "ar", so it can be a program name with args.
6815 set dummy ar; ac_word=$2
6816 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6817 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6818 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6819 echo $ECHO_N "(cached
) $ECHO_C" >&6
6821 if test -n "$ac_ct_AR"; then
6822 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_AR="ar"
6832 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6841 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6842 if test -n "$ac_ct_AR"; then
6843 { echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
6844 echo "${ECHO_T}$ac_ct_AR" >&6; }
6846 { echo "$as_me:$LINENO: result
: no
" >&5
6847 echo "${ECHO_T}no
" >&6; }
6850 if test "x
$ac_ct_AR" = x; then
6853 case $cross_compiling:$ac_tool_warned in
6855 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6856 whose name does not start with the
host triplet. If you think this
6857 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6858 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6859 whose name does not start with the
host triplet. If you think this
6860 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6861 ac_tool_warned=yes ;;
6869 if test "$PORTNAME" = "win32
"; then
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6873 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6874 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6875 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6876 echo $ECHO_N "(cached
) $ECHO_C" >&6
6878 if test -n "$DLLTOOL"; then
6879 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
6889 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6898 DLLTOOL=$ac_cv_prog_DLLTOOL
6899 if test -n "$DLLTOOL"; then
6900 { echo "$as_me:$LINENO: result
: $DLLTOOL" >&5
6901 echo "${ECHO_T}$DLLTOOL" >&6; }
6903 { echo "$as_me:$LINENO: result
: no
" >&5
6904 echo "${ECHO_T}no
" >&6; }
6909 if test -z "$ac_cv_prog_DLLTOOL"; then
6910 ac_ct_DLLTOOL=$DLLTOOL
6911 # Extract the first word of "dlltool
", so it can be a program name with args.
6912 set dummy dlltool; ac_word=$2
6913 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6914 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6915 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6916 echo $ECHO_N "(cached
) $ECHO_C" >&6
6918 if test -n "$ac_ct_DLLTOOL"; then
6919 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
6929 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6938 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6939 if test -n "$ac_ct_DLLTOOL"; then
6940 { echo "$as_me:$LINENO: result
: $ac_ct_DLLTOOL" >&5
6941 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6943 { echo "$as_me:$LINENO: result
: no
" >&5
6944 echo "${ECHO_T}no
" >&6; }
6947 if test "x
$ac_ct_DLLTOOL" = x; then
6950 case $cross_compiling:$ac_tool_warned in
6952 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
6953 whose name does not start with the
host triplet. If you think this
6954 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
6955 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
6956 whose name does not start with the
host triplet. If you think this
6957 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
6958 ac_tool_warned=yes ;;
6960 DLLTOOL=$ac_ct_DLLTOOL
6963 DLLTOOL="$ac_cv_prog_DLLTOOL"
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}dllwrap
", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6969 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
6970 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
6971 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6972 echo $ECHO_N "(cached
) $ECHO_C" >&6
6974 if test -n "$DLLWRAP"; then
6975 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap
"
6985 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6994 DLLWRAP=$ac_cv_prog_DLLWRAP
6995 if test -n "$DLLWRAP"; then
6996 { echo "$as_me:$LINENO: result
: $DLLWRAP" >&5
6997 echo "${ECHO_T}$DLLWRAP" >&6; }
6999 { echo "$as_me:$LINENO: result
: no
" >&5
7000 echo "${ECHO_T}no
" >&6; }
7005 if test -z "$ac_cv_prog_DLLWRAP"; then
7006 ac_ct_DLLWRAP=$DLLWRAP
7007 # Extract the first word of "dllwrap
", so it can be a program name with args.
7008 set dummy dllwrap; ac_word=$2
7009 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7010 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7011 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
7012 echo $ECHO_N "(cached
) $ECHO_C" >&6
7014 if test -n "$ac_ct_DLLWRAP"; then
7015 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_ac_ct_DLLWRAP="dllwrap
"
7025 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7034 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
7035 if test -n "$ac_ct_DLLWRAP"; then
7036 { echo "$as_me:$LINENO: result
: $ac_ct_DLLWRAP" >&5
7037 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
7039 { echo "$as_me:$LINENO: result
: no
" >&5
7040 echo "${ECHO_T}no
" >&6; }
7043 if test "x
$ac_ct_DLLWRAP" = x; then
7046 case $cross_compiling:$ac_tool_warned in
7048 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
7049 whose name does not start with the
host triplet. If you think this
7050 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
7051 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
7052 whose name does not start with the
host triplet. If you think this
7053 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
7054 ac_tool_warned=yes ;;
7056 DLLWRAP=$ac_ct_DLLWRAP
7059 DLLWRAP="$ac_cv_prog_DLLWRAP"
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}windres
", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}windres; ac_word=$2
7065 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7066 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7067 if test "${ac_cv_prog_WINDRES+set}" = set; then
7068 echo $ECHO_N "(cached
) $ECHO_C" >&6
7070 if test -n "$WINDRES"; then
7071 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_WINDRES="${ac_tool_prefix}windres
"
7081 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7090 WINDRES=$ac_cv_prog_WINDRES
7091 if test -n "$WINDRES"; then
7092 { echo "$as_me:$LINENO: result
: $WINDRES" >&5
7093 echo "${ECHO_T}$WINDRES" >&6; }
7095 { echo "$as_me:$LINENO: result
: no
" >&5
7096 echo "${ECHO_T}no
" >&6; }
7101 if test -z "$ac_cv_prog_WINDRES"; then
7102 ac_ct_WINDRES=$WINDRES
7103 # Extract the first word of "windres
", so it can be a program name with args.
7104 set dummy windres; ac_word=$2
7105 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7106 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7108 echo $ECHO_N "(cached
) $ECHO_C" >&6
7110 if test -n "$ac_ct_WINDRES"; then
7111 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_WINDRES="windres
"
7121 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7130 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7131 if test -n "$ac_ct_WINDRES"; then
7132 { echo "$as_me:$LINENO: result
: $ac_ct_WINDRES" >&5
7133 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
7135 { echo "$as_me:$LINENO: result
: no
" >&5
7136 echo "${ECHO_T}no
" >&6; }
7139 if test "x
$ac_ct_WINDRES" = x; then
7142 case $cross_compiling:$ac_tool_warned in
7144 { echo "$as_me:$LINENO: WARNING
: In the future
, Autoconf will not detect cross-tools
7145 whose name does not start with the
host triplet. If you think this
7146 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&5
7147 echo "$as_me: WARNING
: In the future
, Autoconf will not detect cross-tools
7148 whose name does not start with the
host triplet. If you think this
7149 configuration is useful to you
, please
write to autoconf@gnu.org.
" >&2;}
7150 ac_tool_warned=yes ;;
7152 WINDRES=$ac_ct_WINDRES
7155 WINDRES="$ac_cv_prog_WINDRES"
7160 # Extract the first word of "tar", so it can be a program name with args.
7161 set dummy tar; ac_word=$2
7162 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7163 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7164 if test "${ac_cv_path_TAR+set}" = set; then
7165 echo $ECHO_N "(cached
) $ECHO_C" >&6
7169 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7191 if test -n "$TAR"; then
7192 { echo "$as_me:$LINENO: result
: $TAR" >&5
7193 echo "${ECHO_T}$TAR" >&6; }
7195 { echo "$as_me:$LINENO: result
: no
" >&5
7196 echo "${ECHO_T}no
" >&6; }
7200 { echo "$as_me:$LINENO: checking whether
ln -s works
" >&5
7201 echo $ECHO_N "checking whether
ln -s works...
$ECHO_C" >&6; }
7203 if test "$LN_S" = "ln -s"; then
7204 { echo "$as_me:$LINENO: result
: yes" >&5
7205 echo "${ECHO_T}yes" >&6; }
7207 { echo "$as_me:$LINENO: result
: no
, using
$LN_S" >&5
7208 echo "${ECHO_T}no
, using
$LN_S" >&6; }
7211 for ac_prog in gawk mawk nawk awk
7213 # Extract the first word of "$ac_prog", so it can be a program name with args.
7214 set dummy $ac_prog; ac_word=$2
7215 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7216 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7217 if test "${ac_cv_prog_AWK+set}" = set; then
7218 echo $ECHO_N "(cached
) $ECHO_C" >&6
7220 if test -n "$AWK"; then
7221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_AWK="$ac_prog"
7231 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7241 if test -n "$AWK"; then
7242 { echo "$as_me:$LINENO: result
: $AWK" >&5
7243 echo "${ECHO_T}$AWK" >&6; }
7245 { echo "$as_me:$LINENO: result
: no
" >&5
7246 echo "${ECHO_T}no
" >&6; }
7250 test -n "$AWK" && break
7254 # Let the user override the search
7255 if test -z "$BISON"; then
7256 for ac_prog in bison
7258 # Extract the first word of "$ac_prog", so it can be a program name with args.
7259 set dummy $ac_prog; ac_word=$2
7260 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7261 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7262 if test "${ac_cv_prog_BISON+set}" = set; then
7263 echo $ECHO_N "(cached
) $ECHO_C" >&6
7265 if test -n "$BISON"; then
7266 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_prog_BISON="$ac_prog"
7276 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7285 BISON=$ac_cv_prog_BISON
7286 if test -n "$BISON"; then
7287 { echo "$as_me:$LINENO: result
: $BISON" >&5
7288 echo "${ECHO_T}$BISON" >&6; }
7290 { echo "$as_me:$LINENO: result
: no
" >&5
7291 echo "${ECHO_T}no
" >&6; }
7295 test -n "$BISON" && break
7300 if test "$BISON"; then
7301 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7302 { echo "$as_me:$LINENO: using
$pgac_bison_version" >&5
7303 echo "$as_me: using
$pgac_bison_version" >&6;}
7304 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7306 { echo "$as_me:$LINENO: WARNING
:
7307 *** The installed version of Bison is too old to use with PostgreSQL.
7308 *** Bison version
1.875 or later is required.
" >&5
7309 echo "$as_me: WARNING
:
7310 *** The installed version of Bison is too old to use with PostgreSQL.
7311 *** Bison version
1.875 or later is required.
" >&2;}
7316 if test -z "$BISON"; then
7317 { echo "$as_me:$LINENO: WARNING
:
7318 *** Without Bison you will not be able to build PostgreSQL from CVS nor
7319 *** change any of the parser definition files. You can obtain Bison from
7320 *** a GNU mirror site.
(If you are using the official distribution of
7321 *** PostgreSQL
then you
do not need to worry about this
, because the Bison
7322 *** output is pre-generated.
)" >&5
7323 echo "$as_me: WARNING
:
7324 *** Without Bison you will not be able to build PostgreSQL from CVS nor
7325 *** change any of the parser definition files. You can obtain Bison from
7326 *** a GNU mirror site.
(If you are using the official distribution of
7327 *** PostgreSQL
then you
do not need to worry about this
, because the Bison
7328 *** output is pre-generated.
)" >&2;}
7330 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7333 { echo "$as_me:$LINENO: checking
for flex
" >&5
7334 echo $ECHO_N "checking
for flex...
$ECHO_C" >&6; }
7335 if test "${pgac_cv_path_flex+set}" = set; then
7336 echo $ECHO_N "(cached
) $ECHO_C" >&6
7338 # Let the user override the test
7339 if test -n "$FLEX"; then
7340 pgac_cv_path_flex=$FLEX
7344 for pgac_dir in $PATH; do
7346 if test -z "$pgac_dir" || test x"$pgac_dir" = x".
"; then
7349 for pgac_prog in flex lex; do
7350 pgac_candidate="$pgac_dir/$pgac_prog"
7351 if test -f "$pgac_candidate" \
7352 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7354 echo '%%' > conftest.l
7355 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7356 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
7357 pgac_broken_flex=$pgac_candidate
7361 pgac_cv_path_flex=$pgac_candidate
7367 rm -f conftest.l lex.yy.c
7368 : ${pgac_cv_path_flex=no}
7372 { echo "$as_me:$LINENO: result
: $pgac_cv_path_flex" >&5
7373 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
7374 if test x"$pgac_cv_path_flex" = x"no
"; then
7375 if test -n "$pgac_broken_flex"; then
7376 { echo "$as_me:$LINENO: WARNING
:
7377 *** The Flex version
2.5.3 you have
at $pgac_broken_flex contains a bug. You
7378 *** should get version
2.5.4 or later.
" >&5
7379 echo "$as_me: WARNING
:
7380 *** The Flex version
2.5.3 you have
at $pgac_broken_flex contains a bug. You
7381 *** should get version
2.5.4 or later.
" >&2;}
7384 { echo "$as_me:$LINENO: WARNING
:
7385 *** Without Flex you will not be able to build PostgreSQL from CVS or
7386 *** change any of the scanner definition files. You can obtain Flex from
7387 *** a GNU mirror site.
(If you are using the official distribution of
7388 *** PostgreSQL
then you
do not need to worry about this because the Flex
7389 *** output is pre-generated.
)" >&5
7390 echo "$as_me: WARNING
:
7391 *** Without Flex you will not be able to build PostgreSQL from CVS or
7392 *** change any of the scanner definition files. You can obtain Flex from
7393 *** a GNU mirror site.
(If you are using the official distribution of
7394 *** PostgreSQL
then you
do not need to worry about this because the Flex
7395 *** output is pre-generated.
)" >&2;}
7399 FLEX=$pgac_cv_path_flex
7400 pgac_flex_version=`$FLEX -V 2>/dev/null`
7401 { echo "$as_me:$LINENO: using
$pgac_flex_version" >&5
7402 echo "$as_me: using
$pgac_flex_version" >&6;}
7409 # Extract the first word of "perl
", so it can be a program name with args.
7410 set dummy perl; ac_word=$2
7411 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7412 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7413 if test "${ac_cv_path_PERL+set}" = set; then
7414 echo $ECHO_N "(cached
) $ECHO_C" >&6
7418 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7429 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7439 PERL=$ac_cv_path_PERL
7440 if test -n "$PERL"; then
7441 { echo "$as_me:$LINENO: result
: $PERL" >&5
7442 echo "${ECHO_T}$PERL" >&6; }
7444 { echo "$as_me:$LINENO: result
: no
" >&5
7445 echo "${ECHO_T}no
" >&6; }
7449 if test "$with_perl" = yes; then
7451 { echo "$as_me:$LINENO: checking
for Perl archlibexp
" >&5
7452 echo $ECHO_N "checking
for Perl archlibexp...
$ECHO_C" >&6; }
7453 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7454 { echo "$as_me:$LINENO: result
: $perl_archlibexp" >&5
7455 echo "${ECHO_T}$perl_archlibexp" >&6; }
7456 { echo "$as_me:$LINENO: checking
for Perl privlibexp
" >&5
7457 echo $ECHO_N "checking
for Perl privlibexp...
$ECHO_C" >&6; }
7458 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7459 { echo "$as_me:$LINENO: result
: $perl_privlibexp" >&5
7460 echo "${ECHO_T}$perl_privlibexp" >&6; }
7461 { echo "$as_me:$LINENO: checking
for Perl useshrplib
" >&5
7462 echo $ECHO_N "checking
for Perl useshrplib...
$ECHO_C" >&6; }
7463 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7464 { echo "$as_me:$LINENO: result
: $perl_useshrplib" >&5
7465 echo "${ECHO_T}$perl_useshrplib" >&6; }
7467 { echo "$as_me:$LINENO: checking
for flags to link embedded Perl
" >&5
7468 echo $ECHO_N "checking
for flags to link embedded Perl...
$ECHO_C" >&6; }
7469 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7470 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7471 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s
/^X
//;s
%$pgac_tmp2%%"`
7472 if test -z "$perl_embed_ldflags" ; then
7473 { echo "$as_me:$LINENO: result
: no
" >&5
7474 echo "${ECHO_T}no
" >&6; }
7475 { { echo "$as_me:$LINENO: error
: could not determine flags
for linking embedded Perl.
7476 This probably means that ExtUtils
::Embed or ExtUtils
::MakeMaker is not
7478 echo "$as_me: error
: could not determine flags
for linking embedded Perl.
7479 This probably means that ExtUtils
::Embed or ExtUtils
::MakeMaker is not
7481 { (exit 1); exit 1; }; }
7483 { echo "$as_me:$LINENO: result
: $perl_embed_ldflags" >&5
7484 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
7489 if test "$with_python" = yes; then
7490 # Extract the first word of "python
", so it can be a program name with args.
7491 set dummy python; ac_word=$2
7492 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
7493 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
7494 if test "${ac_cv_path_PYTHON+set}" = set; then
7495 echo $ECHO_N "(cached
) $ECHO_C" >&6
7499 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
7520 PYTHON=$ac_cv_path_PYTHON
7521 if test -n "$PYTHON"; then
7522 { echo "$as_me:$LINENO: result
: $PYTHON" >&5
7523 echo "${ECHO_T}$PYTHON" >&6; }
7525 { echo "$as_me:$LINENO: result
: no
" >&5
7526 echo "${ECHO_T}no
" >&6; }
7530 if test x"$PYTHON" = x""; then
7531 { { echo "$as_me:$LINENO: error
: Python not found
" >&5
7532 echo "$as_me: error
: Python not found
" >&2;}
7533 { (exit 1); exit 1; }; }
7537 { echo "$as_me:$LINENO: checking
for Python distutils module
" >&5
7538 echo $ECHO_N "checking
for Python distutils module...
$ECHO_C" >&6; }
7539 if "${PYTHON}" 2>&- -c 'import distutils'
7541 { echo "$as_me:$LINENO: result
: yes" >&5
7542 echo "${ECHO_T}yes" >&6; }
7544 { echo "$as_me:$LINENO: result
: no
" >&5
7545 echo "${ECHO_T}no
" >&6; }
7546 { { echo "$as_me:$LINENO: error
: distutils module not found
" >&5
7547 echo "$as_me: error
: distutils module not found
" >&2;}
7548 { (exit 1); exit 1; }; }
7550 { echo "$as_me:$LINENO: checking Python configuration directory
" >&5
7551 echo $ECHO_N "checking Python configuration directory...
$ECHO_C" >&6; }
7552 python_version=`${PYTHON} -c "import sys
; print
(sys.version
[:3])"`
7553 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'))"`
7554 python_includespec=`${PYTHON} -c "import distutils.sysconfig
; print
('-I'+distutils.sysconfig.get_python_inc
())"`
7556 # This should be enough of a message.
7557 { echo "$as_me:$LINENO: result
: $python_configdir" >&5
7558 echo "${ECHO_T}$python_configdir" >&6; }
7561 { echo "$as_me:$LINENO: checking how to link an embedded Python application
" >&5
7562 echo $ECHO_N "checking how to link an embedded Python application...
$ECHO_C" >&6; }
7564 python_libdir=`${PYTHON} -c "import distutils.sysconfig
,string
; print
(' '.
join(filter
(None
,distutils.sysconfig.get_config_vars
('LIBDIR'))))"`
7565 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig
,string
; print
(' '.
join(filter
(None
,distutils.sysconfig.get_config_vars
('LDLIBRARY'))))"`
7566 python_so=`${PYTHON} -c "import distutils.sysconfig
,string
; print
(' '.
join(filter
(None
,distutils.sysconfig.get_config_vars
('SO'))))"`
7567 ldlibrary=`echo "${python_ldlibrary}" | sed "s
/${python_so}$
//"`
7569 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7571 # New way: use the official shared library
7572 ldlibrary=`echo "${ldlibrary}" | sed "s
/^lib
//"`
7573 python_libspec="-L${python_libdir} -l${ldlibrary}"
7575 # Old way: use libpython from python_configdir
7576 python_libdir="${python_configdir}"
7577 python_libspec="-L${python_libdir} -lpython${python_version}"
7580 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig
,string
; print
(' '.
join(filter
(None
,distutils.sysconfig.get_config_vars
('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
7582 { echo "$as_me:$LINENO: result
: ${python_libspec} ${python_additional_libs}" >&5
7583 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
7586 # threaded python is not supported on bsd's
7587 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7588 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
7589 pythreads
=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7590 if test "$pythreads" = "1"; then
7591 { echo "$as_me:$LINENO: result: yes" >&5
7592 echo "${ECHO_T}yes" >&6; }
7595 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7596 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7597 { (exit 1); exit 1; }; }
7601 { echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6; }
7608 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7609 # Extract the first word of "zic", so it can be a program name with args.
7610 set dummy zic
; ac_word
=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_ZIC+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 ac_cv_path_ZIC
="$ZIC" # Let the user override the test with a path.
7621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir
=.
7626 for ac_exec_ext
in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_ZIC
="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 if test -n "$ZIC"; then
7641 { echo "$as_me:$LINENO: result: $ZIC" >&5
7642 echo "${ECHO_T}$ZIC" >&6; }
7644 { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7649 if test -z "$ZIC"; then
7650 { { echo "$as_me:$LINENO: error:
7651 When cross-compiling, either use the option --with-system-tzdata to use
7652 existing time-zone data, or set the environment variable ZIC to a zic
7653 program to use during the build." >&5
7654 echo "$as_me: error:
7655 When cross-compiling, either use the option --with-system-tzdata to use
7656 existing time-zone data, or set the environment variable ZIC to a zic
7657 program to use during the build." >&2;}
7658 { (exit 1); exit 1; }; }
7662 # Supply a numeric version string for use by 3rd party add-ons
7663 # awk -F is a regex on some platforms, and not on others, so make "." a tab
7664 PG_VERSION_NUM
="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
7666 $AWK '{printf "%d
%02d
%02d
", $1, $2, (NF >= 3) ? $3 : 0}'`"
7668 cat >>confdefs.h
<<_ACEOF
7669 #define PG_VERSION_NUM $PG_VERSION_NUM
7676 ## Most libraries are included only if they demonstrably provide a function
7677 ## we need, but libm is an exception: always include it, because there are
7678 ## too many compilers that play cute optimization games that will break
7679 ## probes for standard functions such as pow().
7683 { echo "$as_me:$LINENO: checking for main in -lm" >&5
7684 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
7685 if test "${ac_cv_lib_m_main+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 ac_check_lib_save_LIBS
=$LIBS
7690 cat >conftest.
$ac_ext <<_ACEOF
7693 cat confdefs.h
>>conftest.
$ac_ext
7694 cat >>conftest.
$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7706 rm -f conftest.
$ac_objext conftest
$ac_exeext
7707 if { (ac_try
="$ac_link"
7709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713 (eval "$ac_link") 2>conftest.er1
7715 grep -v '^ *+' conftest.er1 >conftest.err
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } && {
7720 test -z "$ac_c_werror_flag" ||
7721 test ! -s conftest.err
7722 } && test -s conftest$ac_exeext &&
7723 $as_test_x conftest$ac_exeext; then
7724 ac_cv_lib_m_main=yes
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7733 conftest$ac_exeext conftest.$ac_ext
7734 LIBS=$ac_check_lib_save_LIBS
7736 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7737 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7738 if test $ac_cv_lib_m_main = yes; then
7739 cat >>confdefs.h <<_ACEOF
7747 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7748 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7749 if test "${ac_cv_search_setproctitle+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 ac_func_search_save_LIBS=$LIBS
7753 cat >conftest.$ac_ext <<_ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7760 /* Override any GCC internal prototype to avoid an error.
7761 Use char because int might match the return type of a GCC
7762 builtin and then its argument prototype would still apply. */
7766 char setproctitle ();
7770 return setproctitle ();
7775 for ac_lib in '' util; do
7776 if test -z "$ac_lib"; then
7777 ac_res="none required"
7780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (ac_try="$ac_link"
7785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7786 *) ac_try_echo
=$ac_try;;
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789 (eval "$ac_link") 2>conftest.er1
7791 grep -v '^ *+' conftest.er1
>conftest.err
7793 cat conftest.err
>&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } && {
7796 test -z "$ac_c_werror_flag" ||
7797 test ! -s conftest.err
7798 } && test -s conftest
$ac_exeext &&
7799 $as_test_x conftest
$ac_exeext; then
7800 ac_cv_search_setproctitle
=$ac_res
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.
$ac_ext >&5
7808 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7810 if test "${ac_cv_search_setproctitle+set}" = set; then
7814 if test "${ac_cv_search_setproctitle+set}" = set; then
7817 ac_cv_search_setproctitle
=no
7820 LIBS
=$ac_func_search_save_LIBS
7822 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7823 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7824 ac_res
=$ac_cv_search_setproctitle
7825 if test "$ac_res" != no
; then
7826 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7830 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7831 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7832 if test "${ac_cv_search_dlopen+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_func_search_save_LIBS
=$LIBS
7836 cat >conftest.
$ac_ext <<_ACEOF
7839 cat confdefs.h
>>conftest.
$ac_ext
7840 cat >>conftest.
$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7843 /* Override any GCC internal prototype to avoid an error.
7844 Use char because int might match the return type of a GCC
7845 builtin and then its argument prototype would still apply. */
7858 for ac_lib
in '' dl
; do
7859 if test -z "$ac_lib"; then
7860 ac_res
="none required"
7863 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7865 rm -f conftest.
$ac_objext conftest
$ac_exeext
7866 if { (ac_try
="$ac_link"
7868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_link") 2>conftest.er1
7874 grep -v '^ *+' conftest.er1 >conftest.err
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && {
7879 test -z "$ac_c_werror_flag" ||
7880 test ! -s conftest.err
7881 } && test -s conftest$ac_exeext &&
7882 $as_test_x conftest$ac_exeext; then
7883 ac_cv_search_dlopen=$ac_res
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7893 if test "${ac_cv_search_dlopen+set}" = set; then
7897 if test "${ac_cv_search_dlopen+set}" = set; then
7900 ac_cv_search_dlopen=no
7903 LIBS=$ac_func_search_save_LIBS
7905 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7906 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7907 ac_res=$ac_cv_search_dlopen
7908 if test "$ac_res" != no; then
7909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7913 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7914 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7915 if test "${ac_cv_search_socket+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 ac_func_search_save_LIBS=$LIBS
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7926 /* Override any GCC internal prototype to avoid an error.
7927 Use char because int might match the return type of a GCC
7928 builtin and then its argument prototype would still apply. */
7941 for ac_lib in '' socket wsock32; do
7942 if test -z "$ac_lib"; then
7943 ac_res="none required"
7946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (ac_try="$ac_link"
7951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7952 *) ac_try_echo
=$ac_try;;
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_link") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1
>conftest.err
7959 cat conftest.err
>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest
$ac_exeext &&
7965 $as_test_x conftest
$ac_exeext; then
7966 ac_cv_search_socket
=$ac_res
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.
$ac_ext >&5
7974 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7976 if test "${ac_cv_search_socket+set}" = set; then
7980 if test "${ac_cv_search_socket+set}" = set; then
7983 ac_cv_search_socket
=no
7986 LIBS
=$ac_func_search_save_LIBS
7988 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7989 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7990 ac_res
=$ac_cv_search_socket
7991 if test "$ac_res" != no
; then
7992 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7996 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7997 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7998 if test "${ac_cv_search_shl_load+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 ac_func_search_save_LIBS
=$LIBS
8002 cat >conftest.
$ac_ext <<_ACEOF
8005 cat confdefs.h
>>conftest.
$ac_ext
8006 cat >>conftest.
$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8009 /* Override any GCC internal prototype to avoid an error.
8010 Use char because int might match the return type of a GCC
8011 builtin and then its argument prototype would still apply. */
8024 for ac_lib
in '' dld
; do
8025 if test -z "$ac_lib"; then
8026 ac_res
="none required"
8029 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8031 rm -f conftest.
$ac_objext conftest
$ac_exeext
8032 if { (ac_try
="$ac_link"
8034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest$ac_exeext &&
8048 $as_test_x conftest$ac_exeext; then
8049 ac_cv_search_shl_load=$ac_res
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059 if test "${ac_cv_search_shl_load+set}" = set; then
8063 if test "${ac_cv_search_shl_load+set}" = set; then
8066 ac_cv_search_shl_load=no
8069 LIBS=$ac_func_search_save_LIBS
8071 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8072 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
8073 ac_res=$ac_cv_search_shl_load
8074 if test "$ac_res" != no; then
8075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8079 # We only use libld in port/dynloader/aix.c
8082 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8083 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
8084 if test "${ac_cv_search_ldopen+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 ac_func_search_save_LIBS=$LIBS
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8095 /* Override any GCC internal prototype to avoid an error.
8096 Use char because int might match the return type of a GCC
8097 builtin and then its argument prototype would still apply. */
8110 for ac_lib in '' ld; do
8111 if test -z "$ac_lib"; then
8112 ac_res="none required"
8115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (ac_try="$ac_link"
8120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8121 *) ac_try_echo
=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_link") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1
>conftest.err
8128 cat conftest.err
>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest
$ac_exeext &&
8134 $as_test_x conftest
$ac_exeext; then
8135 ac_cv_search_ldopen
=$ac_res
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.
$ac_ext >&5
8143 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8145 if test "${ac_cv_search_ldopen+set}" = set; then
8149 if test "${ac_cv_search_ldopen+set}" = set; then
8152 ac_cv_search_ldopen
=no
8155 LIBS
=$ac_func_search_save_LIBS
8157 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8158 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
8159 ac_res
=$ac_cv_search_ldopen
8160 if test "$ac_res" != no
; then
8161 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8167 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8168 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
8169 if test "${ac_cv_search_getopt_long+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 ac_func_search_save_LIBS
=$LIBS
8173 cat >conftest.
$ac_ext <<_ACEOF
8176 cat confdefs.h
>>conftest.
$ac_ext
8177 cat >>conftest.
$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8180 /* Override any GCC internal prototype to avoid an error.
8181 Use char because int might match the return type of a GCC
8182 builtin and then its argument prototype would still apply. */
8186 char getopt_long ();
8190 return getopt_long ();
8195 for ac_lib
in '' getopt gnugetopt
; do
8196 if test -z "$ac_lib"; then
8197 ac_res
="none required"
8200 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8202 rm -f conftest.
$ac_objext conftest
$ac_exeext
8203 if { (ac_try
="$ac_link"
8205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_link") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest$ac_exeext &&
8219 $as_test_x conftest$ac_exeext; then
8220 ac_cv_search_getopt_long=$ac_res
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8230 if test "${ac_cv_search_getopt_long+set}" = set; then
8234 if test "${ac_cv_search_getopt_long+set}" = set; then
8237 ac_cv_search_getopt_long=no
8240 LIBS=$ac_func_search_save_LIBS
8242 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8243 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
8244 ac_res=$ac_cv_search_getopt_long
8245 if test "$ac_res" != no; then
8246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8250 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
8251 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
8252 if test "${ac_cv_search_crypt+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 ac_func_search_save_LIBS=$LIBS
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8263 /* Override any GCC internal prototype to avoid an error.
8264 Use char because int might match the return type of a GCC
8265 builtin and then its argument prototype would still apply. */
8278 for ac_lib in '' crypt; do
8279 if test -z "$ac_lib"; then
8280 ac_res="none required"
8283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (ac_try="$ac_link"
8288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8289 *) ac_try_echo
=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_link") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1
>conftest.err
8296 cat conftest.err
>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest
$ac_exeext &&
8302 $as_test_x conftest
$ac_exeext; then
8303 ac_cv_search_crypt
=$ac_res
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.
$ac_ext >&5
8311 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8313 if test "${ac_cv_search_crypt+set}" = set; then
8317 if test "${ac_cv_search_crypt+set}" = set; then
8320 ac_cv_search_crypt
=no
8323 LIBS
=$ac_func_search_save_LIBS
8325 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8326 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
8327 ac_res
=$ac_cv_search_crypt
8328 if test "$ac_res" != no
; then
8329 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8334 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8335 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
8336 if test "${ac_cv_search_fdatasync+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 ac_func_search_save_LIBS
=$LIBS
8340 cat >conftest.
$ac_ext <<_ACEOF
8343 cat confdefs.h
>>conftest.
$ac_ext
8344 cat >>conftest.
$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8347 /* Override any GCC internal prototype to avoid an error.
8348 Use char because int might match the return type of a GCC
8349 builtin and then its argument prototype would still apply. */
8357 return fdatasync ();
8362 for ac_lib
in '' rt posix4
; do
8363 if test -z "$ac_lib"; then
8364 ac_res
="none required"
8367 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8369 rm -f conftest.
$ac_objext conftest
$ac_exeext
8370 if { (ac_try
="$ac_link"
8372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest$ac_exeext &&
8386 $as_test_x conftest$ac_exeext; then
8387 ac_cv_search_fdatasync=$ac_res
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8397 if test "${ac_cv_search_fdatasync+set}" = set; then
8401 if test "${ac_cv_search_fdatasync+set}" = set; then
8404 ac_cv_search_fdatasync=no
8407 LIBS=$ac_func_search_save_LIBS
8409 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8410 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
8411 ac_res=$ac_cv_search_fdatasync
8412 if test "$ac_res" != no; then
8413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8418 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
8419 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
8420 if test "${ac_cv_search_shmget+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_func_search_save_LIBS=$LIBS
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8431 /* Override any GCC internal prototype to avoid an error.
8432 Use char because int might match the return type of a GCC
8433 builtin and then its argument prototype would still apply. */
8446 for ac_lib in '' cygipc; do
8447 if test -z "$ac_lib"; then
8448 ac_res="none required"
8451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (ac_try="$ac_link"
8456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8457 *) ac_try_echo
=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_link") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1
>conftest.err
8464 cat conftest.err
>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest
$ac_exeext &&
8470 $as_test_x conftest
$ac_exeext; then
8471 ac_cv_search_shmget
=$ac_res
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.
$ac_ext >&5
8479 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8481 if test "${ac_cv_search_shmget+set}" = set; then
8485 if test "${ac_cv_search_shmget+set}" = set; then
8488 ac_cv_search_shmget
=no
8491 LIBS
=$ac_func_search_save_LIBS
8493 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8494 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
8495 ac_res
=$ac_cv_search_shmget
8496 if test "$ac_res" != no
; then
8497 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8502 if test "$with_readline" = yes; then
8505 if test "${pgac_cv_check_readline+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 pgac_cv_check_readline
=no
8509 pgac_save_LIBS
=$LIBS
8510 if test x
"$with_libedit_preferred" != x
"yes"
8511 then READLINE_ORDER
="-lreadline -ledit"
8512 else READLINE_ORDER
="-ledit -lreadline"
8514 for pgac_rllib
in $READLINE_ORDER ; do
8515 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8516 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
8517 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8518 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8519 cat >conftest.
$ac_ext <<_ACEOF
8522 cat confdefs.h
>>conftest.
$ac_ext
8523 cat >>conftest.
$ac_ext <<_ACEOF
8524 /* end confdefs.h. */
8526 /* Override any GCC internal prototype to avoid an error.
8527 Use char because int might match the return type of a GCC
8528 builtin and then its argument prototype would still apply. */
8541 rm -f conftest.
$ac_objext conftest
$ac_exeext
8542 if { (ac_try
="$ac_link"
8544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548 (eval "$ac_link") 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } && {
8555 test -z "$ac_c_werror_flag" ||
8556 test ! -s conftest.err
8557 } && test -s conftest$ac_exeext &&
8558 $as_test_x conftest$ac_exeext; then
8560 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8561 # recognize dependent libraries; assume curses is needed if we didn't
8562 # find any dependency.
8564 netbsd* | openbsd* | irix*)
8565 if test x"$pgac_lib" = x"" ; then
8566 pgac_lib=" -lcurses"
8570 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8581 conftest$ac_exeext conftest.$ac_ext
8583 if test "$pgac_cv_check_readline" != no ; then
8584 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8585 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
8588 { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8592 LIBS=$pgac_save_LIBS
8596 if test "$pgac_cv_check_readline" != no ; then
8597 LIBS="$pgac_cv_check_readline $LIBS"
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_LIBREADLINE 1
8606 if test x"$pgac_cv_check_readline" = x"no"; then
8607 { { echo "$as_me:$LINENO: error: readline library not found
8608 If you have readline already installed, see config.log for details on the
8609 failure. It is possible the compiler isn't looking in the proper directory.
8610 Use --without-readline to disable readline support." >&5
8611 echo "$as_me: error: readline library not found
8612 If you have readline already installed, see config.log for details on the
8613 failure. It is possible the compiler isn't looking in the proper directory.
8614 Use --without-readline to disable readline support." >&2;}
8615 { (exit 1); exit 1; }; }
8619 if test "$with_zlib" = yes; then
8621 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8622 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
8623 if test "${ac_cv_lib_z_inflate+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 ac_check_lib_save_LIBS=$LIBS
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8635 /* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (ac_try="$ac_link"
8653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8654 *) ac_try_echo
=$ac_try;;
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_link") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1
>conftest.err
8661 cat conftest.err
>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest
$ac_exeext &&
8667 $as_test_x conftest
$ac_exeext; then
8668 ac_cv_lib_z_inflate
=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.
$ac_ext >&5
8673 ac_cv_lib_z_inflate
=no
8676 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8677 conftest
$ac_exeext conftest.
$ac_ext
8678 LIBS
=$ac_check_lib_save_LIBS
8680 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8681 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8682 if test $ac_cv_lib_z_inflate = yes; then
8683 cat >>confdefs.h
<<_ACEOF
8690 { { echo "$as_me:$LINENO: error: zlib library not found
8691 If you have zlib already installed, see config.log for details on the
8692 failure. It is possible the compiler isn't looking in the proper directory.
8693 Use --without-zlib to disable zlib support." >&5
8694 echo "$as_me: error: zlib library not found
8695 If you have zlib already installed, see config.log for details on the
8696 failure. It is possible the compiler isn't looking in the proper directory.
8697 Use --without-zlib to disable zlib support." >&2;}
8698 { (exit 1); exit 1; }; }
8703 if test "$enable_spinlocks" = yes; then
8705 cat >>confdefs.h
<<\_ACEOF
8706 #define HAVE_SPINLOCKS 1
8710 { echo "$as_me:$LINENO: WARNING:
8711 *** Not using spinlocks will cause poor performance." >&5
8712 echo "$as_me: WARNING:
8713 *** Not using spinlocks will cause poor performance." >&2;}
8716 if test "$with_gssapi" = yes ; then
8717 if test "$PORTNAME" != "win32"; then
8718 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8719 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8720 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 ac_func_search_save_LIBS
=$LIBS
8724 cat >conftest.
$ac_ext <<_ACEOF
8727 cat confdefs.h
>>conftest.
$ac_ext
8728 cat >>conftest.
$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8731 /* Override any GCC internal prototype to avoid an error.
8732 Use char because int might match the return type of a GCC
8733 builtin and then its argument prototype would still apply. */
8737 char gss_init_sec_context ();
8741 return gss_init_sec_context ();
8746 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
8747 if test -z "$ac_lib"; then
8748 ac_res
="none required"
8751 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8753 rm -f conftest.
$ac_objext conftest
$ac_exeext
8754 if { (ac_try
="$ac_link"
8756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_link") 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest$ac_exeext &&
8770 $as_test_x conftest$ac_exeext; then
8771 ac_cv_search_gss_init_sec_context=$ac_res
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8781 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8785 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8788 ac_cv_search_gss_init_sec_context=no
8791 LIBS=$ac_func_search_save_LIBS
8793 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8794 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8795 ac_res=$ac_cv_search_gss_init_sec_context
8796 if test "$ac_res" != no; then
8797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8800 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8801 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8802 { (exit 1); exit 1; }; }
8806 LIBS="$LIBS -lgssapi32"
8810 if test "$with_krb5" = yes ; then
8811 if test "$PORTNAME" != "win32"; then
8812 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8813 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8814 if test "${ac_cv_search_com_err+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 ac_func_search_save_LIBS=$LIBS
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8825 /* Override any GCC internal prototype to avoid an error.
8826 Use char because int might match the return type of a GCC
8827 builtin and then its argument prototype would still apply. */
8840 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8841 if test -z "$ac_lib"; then
8842 ac_res="none required"
8845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (ac_try="$ac_link"
8850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8851 *) ac_try_echo
=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_link") 2>conftest.er1
8856 grep -v '^ *+' conftest.er1
>conftest.err
8858 cat conftest.err
>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest
$ac_exeext &&
8864 $as_test_x conftest
$ac_exeext; then
8865 ac_cv_search_com_err
=$ac_res
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.
$ac_ext >&5
8873 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8875 if test "${ac_cv_search_com_err+set}" = set; then
8879 if test "${ac_cv_search_com_err+set}" = set; then
8882 ac_cv_search_com_err
=no
8885 LIBS
=$ac_func_search_save_LIBS
8887 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8888 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8889 ac_res
=$ac_cv_search_com_err
8890 if test "$ac_res" != no
; then
8891 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8894 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8895 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8896 { (exit 1); exit 1; }; }
8899 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8900 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8901 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_func_search_save_LIBS
=$LIBS
8905 cat >conftest.
$ac_ext <<_ACEOF
8908 cat confdefs.h
>>conftest.
$ac_ext
8909 cat >>conftest.
$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8912 /* Override any GCC internal prototype to avoid an error.
8913 Use char because int might match the return type of a GCC
8914 builtin and then its argument prototype would still apply. */
8918 char krb5_sendauth ();
8922 return krb5_sendauth ();
8927 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8928 if test -z "$ac_lib"; then
8929 ac_res
="none required"
8932 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8934 rm -f conftest.
$ac_objext conftest
$ac_exeext
8935 if { (ac_try
="$ac_link"
8937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_link") 2>conftest.er1
8943 grep -v '^ *+' conftest.er1 >conftest.err
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest$ac_exeext &&
8951 $as_test_x conftest$ac_exeext; then
8952 ac_cv_search_krb5_sendauth=$ac_res
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8962 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8966 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8969 ac_cv_search_krb5_sendauth=no
8972 LIBS=$ac_func_search_save_LIBS
8974 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8975 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8976 ac_res=$ac_cv_search_krb5_sendauth
8977 if test "$ac_res" != no; then
8978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8981 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8982 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8983 { (exit 1); exit 1; }; }
8987 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8988 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8989 if test "${ac_cv_search_com_err+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 ac_func_search_save_LIBS=$LIBS
8993 cat >conftest.$ac_ext <<_ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 /* Override any GCC internal prototype to avoid an error.
9001 Use char because int might match the return type of a GCC
9002 builtin and then its argument prototype would still apply. */
9015 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9016 if test -z "$ac_lib"; then
9017 ac_res="none required"
9020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (ac_try="$ac_link"
9025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9026 *) ac_try_echo
=$ac_try;;
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_link") 2>conftest.er1
9031 grep -v '^ *+' conftest.er1
>conftest.err
9033 cat conftest.err
>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } && {
9036 test -z "$ac_c_werror_flag" ||
9037 test ! -s conftest.err
9038 } && test -s conftest
$ac_exeext &&
9039 $as_test_x conftest
$ac_exeext; then
9040 ac_cv_search_com_err
=$ac_res
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.
$ac_ext >&5
9048 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9050 if test "${ac_cv_search_com_err+set}" = set; then
9054 if test "${ac_cv_search_com_err+set}" = set; then
9057 ac_cv_search_com_err
=no
9060 LIBS
=$ac_func_search_save_LIBS
9062 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9063 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
9064 ac_res
=$ac_cv_search_com_err
9065 if test "$ac_res" != no
; then
9066 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9069 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9070 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9071 { (exit 1); exit 1; }; }
9077 if test "$with_openssl" = yes ; then
9078 if test "$PORTNAME" != "win32"; then
9080 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9081 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
9082 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 ac_check_lib_save_LIBS
=$LIBS
9086 LIBS
="-lcrypto $LIBS"
9087 cat >conftest.
$ac_ext <<_ACEOF
9090 cat confdefs.h
>>conftest.
$ac_ext
9091 cat >>conftest.
$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9094 /* Override any GCC internal prototype to avoid an error.
9095 Use char because int might match the return type of a GCC
9096 builtin and then its argument prototype would still apply. */
9100 char CRYPTO_new_ex_data ();
9104 return CRYPTO_new_ex_data ();
9109 rm -f conftest.
$ac_objext conftest
$ac_exeext
9110 if { (ac_try
="$ac_link"
9112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_link") 2>conftest.er1
9118 grep -v '^ *+' conftest.er1 >conftest.err
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } && {
9123 test -z "$ac_c_werror_flag" ||
9124 test ! -s conftest.err
9125 } && test -s conftest$ac_exeext &&
9126 $as_test_x conftest$ac_exeext; then
9127 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136 conftest$ac_exeext conftest.$ac_ext
9137 LIBS=$ac_check_lib_save_LIBS
9139 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9140 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9141 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
9142 cat >>confdefs.h <<_ACEOF
9143 #define HAVE_LIBCRYPTO 1
9146 LIBS="-lcrypto $LIBS"
9149 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9150 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9151 { (exit 1); exit 1; }; }
9155 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9156 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
9157 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 ac_check_lib_save_LIBS=$LIBS
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9169 /* Override any GCC internal prototype to avoid an error.
9170 Use char because int might match the return type of a GCC
9171 builtin and then its argument prototype would still apply. */
9175 char SSL_library_init ();
9179 return SSL_library_init ();
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9188 *) ac_try_echo
=$ac_try;;
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_c_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest
$ac_exeext &&
9201 $as_test_x conftest
$ac_exeext; then
9202 ac_cv_lib_ssl_SSL_library_init
=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.
$ac_ext >&5
9207 ac_cv_lib_ssl_SSL_library_init
=no
9210 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9211 conftest
$ac_exeext conftest.
$ac_ext
9212 LIBS
=$ac_check_lib_save_LIBS
9214 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9215 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
9216 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
9217 cat >>confdefs.h
<<_ACEOF
9218 #define HAVE_LIBSSL 1
9224 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9225 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9226 { (exit 1); exit 1; }; }
9231 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9232 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
9233 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 ac_check_lib_save_LIBS
=$LIBS
9237 LIBS
="-leay32 $LIBS"
9238 cat >conftest.
$ac_ext <<_ACEOF
9241 cat confdefs.h
>>conftest.
$ac_ext
9242 cat >>conftest.
$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9251 char CRYPTO_new_ex_data ();
9255 return CRYPTO_new_ex_data ();
9260 rm -f conftest.
$ac_objext conftest
$ac_exeext
9261 if { (ac_try
="$ac_link"
9263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_link") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest$ac_exeext &&
9277 $as_test_x conftest$ac_exeext; then
9278 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287 conftest$ac_exeext conftest.$ac_ext
9288 LIBS=$ac_check_lib_save_LIBS
9290 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9291 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9292 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
9293 cat >>confdefs.h <<_ACEOF
9294 #define HAVE_LIBEAY32 1
9297 LIBS="-leay32 $LIBS"
9300 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9301 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9302 { (exit 1); exit 1; }; }
9306 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9307 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
9308 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9309 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 ac_check_lib_save_LIBS=$LIBS
9312 LIBS="-lssleay32 $LIBS"
9313 cat >conftest.$ac_ext <<_ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9320 /* Override any GCC internal prototype to avoid an error.
9321 Use char because int might match the return type of a GCC
9322 builtin and then its argument prototype would still apply. */
9326 char SSL_library_init ();
9330 return SSL_library_init ();
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9339 *) ac_try_echo
=$ac_try;;
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_link") 2>conftest.er1
9344 grep -v '^ *+' conftest.er1
>conftest.err
9346 cat conftest.err
>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest
$ac_exeext &&
9352 $as_test_x conftest
$ac_exeext; then
9353 ac_cv_lib_ssleay32_SSL_library_init
=yes
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.
$ac_ext >&5
9358 ac_cv_lib_ssleay32_SSL_library_init
=no
9361 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9362 conftest
$ac_exeext conftest.
$ac_ext
9363 LIBS
=$ac_check_lib_save_LIBS
9365 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9366 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9367 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
9368 cat >>confdefs.h
<<_ACEOF
9369 #define HAVE_LIBSSLEAY32 1
9372 LIBS
="-lssleay32 $LIBS"
9375 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9376 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9377 { (exit 1); exit 1; }; }
9383 if test "$with_pam" = yes ; then
9385 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9386 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
9387 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 ac_check_lib_save_LIBS
=$LIBS
9392 cat >conftest.
$ac_ext <<_ACEOF
9395 cat confdefs.h
>>conftest.
$ac_ext
9396 cat >>conftest.
$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9399 /* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
9409 return pam_start ();
9414 rm -f conftest.
$ac_objext conftest
$ac_exeext
9415 if { (ac_try
="$ac_link"
9417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
9432 ac_cv_lib_pam_pam_start=yes
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_cv_lib_pam_pam_start=no
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441 conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9444 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9445 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
9446 if test $ac_cv_lib_pam_pam_start = yes; then
9447 cat >>confdefs.h <<_ACEOF
9448 #define HAVE_LIBPAM 1
9454 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9455 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9456 { (exit 1); exit 1; }; }
9461 if test "$with_libxml" = yes ; then
9463 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9464 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
9465 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 ac_check_lib_save_LIBS=$LIBS
9470 cat >conftest.$ac_ext <<_ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9477 /* Override any GCC internal prototype to avoid an error.
9478 Use char because int might match the return type of a GCC
9479 builtin and then its argument prototype would still apply. */
9483 char xmlSaveToBuffer ();
9487 return xmlSaveToBuffer ();
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9496 *) ac_try_echo
=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_link") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1
>conftest.err
9503 cat conftest.err
>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest
$ac_exeext &&
9509 $as_test_x conftest
$ac_exeext; then
9510 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.
$ac_ext >&5
9515 ac_cv_lib_xml2_xmlSaveToBuffer
=no
9518 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9519 conftest
$ac_exeext conftest.
$ac_ext
9520 LIBS
=$ac_check_lib_save_LIBS
9522 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9523 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9524 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
9525 cat >>confdefs.h
<<_ACEOF
9526 #define HAVE_LIBXML2 1
9532 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9533 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9534 { (exit 1); exit 1; }; }
9539 if test "$with_libxslt" = yes ; then
9541 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9542 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
9543 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 ac_check_lib_save_LIBS
=$LIBS
9548 cat >conftest.
$ac_ext <<_ACEOF
9551 cat confdefs.h
>>conftest.
$ac_ext
9552 cat >>conftest.
$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9561 char xsltCleanupGlobals ();
9565 return xsltCleanupGlobals ();
9570 rm -f conftest.
$ac_objext conftest
$ac_exeext
9571 if { (ac_try
="$ac_link"
9573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_link") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest$ac_exeext &&
9587 $as_test_x conftest$ac_exeext; then
9588 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_lib_xslt_xsltCleanupGlobals=no
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597 conftest$ac_exeext conftest.$ac_ext
9598 LIBS=$ac_check_lib_save_LIBS
9600 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9601 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9602 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604 #define HAVE_LIBXSLT 1
9610 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9611 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9612 { (exit 1); exit 1; }; }
9617 # for contrib/uuid-ossp
9618 if test "$with_ossp_uuid" = yes ; then
9619 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9620 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
9621 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 ac_check_lib_save_LIBS=$LIBS
9625 LIBS="-lossp-uuid $LIBS"
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9639 char uuid_export ();
9643 return uuid_export ();
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9652 *) ac_try_echo
=$ac_try;;
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_link") 2>conftest.er1
9657 grep -v '^ *+' conftest.er1
>conftest.err
9659 cat conftest.err
>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && {
9662 test -z "$ac_c_werror_flag" ||
9663 test ! -s conftest.err
9664 } && test -s conftest
$ac_exeext &&
9665 $as_test_x conftest
$ac_exeext; then
9666 ac_cv_lib_ossp_uuid_uuid_export
=yes
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.
$ac_ext >&5
9671 ac_cv_lib_ossp_uuid_uuid_export
=no
9674 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9675 conftest
$ac_exeext conftest.
$ac_ext
9676 LIBS
=$ac_check_lib_save_LIBS
9678 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9679 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9680 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9681 OSSP_UUID_LIBS
="-lossp-uuid"
9683 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9684 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9685 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 ac_check_lib_save_LIBS
=$LIBS
9690 cat >conftest.
$ac_ext <<_ACEOF
9693 cat confdefs.h
>>conftest.
$ac_ext
9694 cat >>conftest.
$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9697 /* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
9703 char uuid_export ();
9707 return uuid_export ();
9712 rm -f conftest.
$ac_objext conftest
$ac_exeext
9713 if { (ac_try
="$ac_link"
9715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_link") 2>conftest.er1
9721 grep -v '^ *+' conftest.er1 >conftest.err
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } && {
9726 test -z "$ac_c_werror_flag" ||
9727 test ! -s conftest.err
9728 } && test -s conftest$ac_exeext &&
9729 $as_test_x conftest$ac_exeext; then
9730 ac_cv_lib_uuid_uuid_export=yes
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ac_cv_lib_uuid_uuid_export=no
9738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9739 conftest$ac_exeext conftest.$ac_ext
9740 LIBS=$ac_check_lib_save_LIBS
9742 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9743 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9744 if test $ac_cv_lib_uuid_uuid_export = yes; then
9745 OSSP_UUID_LIBS="-luuid"
9747 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9748 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9749 { (exit 1); exit 1; }; }
9789 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
9791 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 ac_res=`eval echo '${'$as_ac_Header'}'`
9799 { echo "$as_me:$LINENO: result: $ac_res" >&5
9800 echo "${ECHO_T}$ac_res" >&6; }
9802 # Is the header compilable?
9803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 $ac_includes_default
9812 #include <$ac_header>
9814 rm -f conftest.$ac_objext
9815 if { (ac_try="$ac_compile"
9817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9818 *) ac_try_echo
=$ac_try;;
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_compile") 2>conftest.er1
9823 grep -v '^ *+' conftest.er1
>conftest.err
9825 cat conftest.err
>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } && {
9828 test -z "$ac_c_werror_flag" ||
9829 test ! -s conftest.err
9830 } && test -s conftest.
$ac_objext; then
9831 ac_header_compiler
=yes
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.
$ac_ext >&5
9836 ac_header_compiler
=no
9839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9841 echo "${ECHO_T}$ac_header_compiler" >&6; }
9843 # Is the header present?
9844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9846 cat >conftest.
$ac_ext <<_ACEOF
9849 cat confdefs.h
>>conftest.
$ac_ext
9850 cat >>conftest.
$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 #include <$ac_header>
9854 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } >/dev/null && {
9867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9870 ac_header_preproc=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_header_preproc=no
9878 rm -f conftest.err conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9880 echo "${ECHO_T}$ac_header_preproc" >&6; }
9882 # So? What about this header?
9883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9889 ac_header_preproc=yes
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9905 ## ---------------------------------------- ##
9906 ## Report this to pgsql-bugs@postgresql.org ##
9907 ## ---------------------------------------- ##
9909 ) | sed "s/^/$as_me: WARNING: /" >&2
9912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 eval "$as_ac_Header=\$ac_header_preproc"
9919 ac_res=`eval echo '${'$as_ac_Header'}'`
9920 { echo "$as_me:$LINENO: result: $ac_res" >&5
9921 echo "${ECHO_T}$ac_res" >&6; }
9924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9925 cat >>confdefs.h <<_ACEOF
9926 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9934 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9935 # netinet/in.h is included first.
9937 for ac_header in netinet/in.h
9939 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 ac_res=`eval echo '${'$as_ac_Header'}'`
9947 { echo "$as_me:$LINENO: result: $ac_res" >&5
9948 echo "${ECHO_T}$ac_res" >&6; }
9950 # Is the header compilable?
9951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9960 #include <$ac_header>
9962 rm -f conftest.$ac_objext
9963 if { (ac_try="$ac_compile"
9965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9966 *) ac_try_echo
=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_compile") 2>conftest.er1
9971 grep -v '^ *+' conftest.er1
>conftest.err
9973 cat conftest.err
>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } && {
9976 test -z "$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9978 } && test -s conftest.
$ac_objext; then
9979 ac_header_compiler
=yes
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.
$ac_ext >&5
9984 ac_header_compiler
=no
9987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6; }
9991 # Is the header present?
9992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9994 cat >conftest.
$ac_ext <<_ACEOF
9997 cat confdefs.h
>>conftest.
$ac_ext
9998 cat >>conftest.
$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 #include <$ac_header>
10002 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10003 case "(($ac_try" in
10004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10010 grep -v '^ *+' conftest.er1 >conftest.err
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } >/dev/null && {
10015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10018 ac_header_preproc=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_header_preproc=no
10026 rm -f conftest.err conftest.$ac_ext
10027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10028 echo "${ECHO_T}$ac_header_preproc" >&6; }
10030 # So? What about this header?
10031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10037 ac_header_preproc=yes
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10053 ## ---------------------------------------- ##
10054 ## Report this to pgsql-bugs@postgresql.org ##
10055 ## ---------------------------------------- ##
10057 ) | sed "s/^/$as_me: WARNING: /" >&2
10060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 eval "$as_ac_Header=\$ac_header_preproc"
10067 ac_res=`eval echo '${'$as_ac_Header'}'`
10068 { echo "$as_me:$LINENO: result: $ac_res" >&5
10069 echo "${ECHO_T}$ac_res" >&6; }
10072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10073 cat >>confdefs.h <<_ACEOF
10074 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10082 for ac_header in netinet/tcp.h
10084 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 $ac_includes_default
10097 #ifdef HAVE_NETINET_IN_H
10098 #include <netinet/in.h>
10102 #include <$ac_header>
10104 rm -f conftest.$ac_objext
10105 if { (ac_try="$ac_compile"
10106 case "(($ac_try" in
10107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10108 *) ac_try_echo
=$ac_try;;
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111 (eval "$ac_compile") 2>conftest.er1
10113 grep -v '^ *+' conftest.er1
>conftest.err
10115 cat conftest.err
>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } && {
10118 test -z "$ac_c_werror_flag" ||
10119 test ! -s conftest.err
10120 } && test -s conftest.
$ac_objext; then
10121 eval "$as_ac_Header=yes"
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.
$ac_ext >&5
10126 eval "$as_ac_Header=no"
10129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10131 ac_res
=`eval echo '${'$as_ac_Header'}'`
10132 { echo "$as_me:$LINENO: result: $ac_res" >&5
10133 echo "${ECHO_T}$ac_res" >&6; }
10134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10135 cat >>confdefs.h
<<_ACEOF
10136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10144 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
10146 for ac_header
in readline
/readline.h
10148 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10149 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10152 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 ac_res
=`eval echo '${'$as_ac_Header'}'`
10156 { echo "$as_me:$LINENO: result: $ac_res" >&5
10157 echo "${ECHO_T}$ac_res" >&6; }
10159 # Is the header compilable?
10160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10162 cat >conftest.
$ac_ext <<_ACEOF
10165 cat confdefs.h
>>conftest.
$ac_ext
10166 cat >>conftest.
$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 $ac_includes_default
10169 #include <$ac_header>
10171 rm -f conftest.
$ac_objext
10172 if { (ac_try
="$ac_compile"
10173 case "(($ac_try" in
10174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_compile") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && {
10185 test -z "$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10187 } && test -s conftest.$ac_objext; then
10188 ac_header_compiler=yes
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 ac_header_compiler=no
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10198 echo "${ECHO_T}$ac_header_compiler" >&6; }
10200 # Is the header present?
10201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10203 cat >conftest.$ac_ext <<_ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 #include <$ac_header>
10211 if { (ac_try="$ac_cpp conftest.$ac_ext"
10212 case "(($ac_try" in
10213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10214 *) ac_try_echo
=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10219 grep -v '^ *+' conftest.er1
>conftest.err
10221 cat conftest.err
>&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } >/dev
/null
&& {
10224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10225 test ! -s conftest.err
10227 ac_header_preproc
=yes
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.
$ac_ext >&5
10232 ac_header_preproc
=no
10235 rm -f conftest.err conftest.
$ac_ext
10236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10237 echo "${ECHO_T}$ac_header_preproc" >&6; }
10239 # So? What about this header?
10240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10246 ac_header_preproc
=yes
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10262 ## ---------------------------------------- ##
10263 ## Report this to pgsql-bugs@postgresql.org ##
10264 ## ---------------------------------------- ##
10266 ) |
sed "s/^/$as_me: WARNING: /" >&2
10269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10271 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 eval "$as_ac_Header=\$ac_header_preproc"
10276 ac_res
=`eval echo '${'$as_ac_Header'}'`
10277 { echo "$as_me:$LINENO: result: $ac_res" >&5
10278 echo "${ECHO_T}$ac_res" >&6; }
10281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10282 cat >>confdefs.h
<<_ACEOF
10283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288 for ac_header
in readline.h
10290 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10291 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10294 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 ac_res
=`eval echo '${'$as_ac_Header'}'`
10298 { echo "$as_me:$LINENO: result: $ac_res" >&5
10299 echo "${ECHO_T}$ac_res" >&6; }
10301 # Is the header compilable?
10302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10304 cat >conftest.
$ac_ext <<_ACEOF
10307 cat confdefs.h
>>conftest.
$ac_ext
10308 cat >>conftest.
$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 $ac_includes_default
10311 #include <$ac_header>
10313 rm -f conftest.
$ac_objext
10314 if { (ac_try
="$ac_compile"
10315 case "(($ac_try" in
10316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_compile") 2>conftest.er1
10322 grep -v '^ *+' conftest.er1 >conftest.err
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } && {
10327 test -z "$ac_c_werror_flag" ||
10328 test ! -s conftest.err
10329 } && test -s conftest.$ac_objext; then
10330 ac_header_compiler=yes
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10335 ac_header_compiler=no
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10340 echo "${ECHO_T}$ac_header_compiler" >&6; }
10342 # Is the header present?
10343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10345 cat >conftest.$ac_ext <<_ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10351 #include <$ac_header>
10353 if { (ac_try="$ac_cpp conftest.$ac_ext"
10354 case "(($ac_try" in
10355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10356 *) ac_try_echo
=$ac_try;;
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10361 grep -v '^ *+' conftest.er1
>conftest.err
10363 cat conftest.err
>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } >/dev
/null
&& {
10366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10369 ac_header_preproc
=yes
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.
$ac_ext >&5
10374 ac_header_preproc
=no
10377 rm -f conftest.err conftest.
$ac_ext
10378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10379 echo "${ECHO_T}$ac_header_preproc" >&6; }
10381 # So? What about this header?
10382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10388 ac_header_preproc
=yes
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10404 ## ---------------------------------------- ##
10405 ## Report this to pgsql-bugs@postgresql.org ##
10406 ## ---------------------------------------- ##
10408 ) |
sed "s/^/$as_me: WARNING: /" >&2
10411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10413 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 eval "$as_ac_Header=\$ac_header_preproc"
10418 ac_res
=`eval echo '${'$as_ac_Header'}'`
10419 { echo "$as_me:$LINENO: result: $ac_res" >&5
10420 echo "${ECHO_T}$ac_res" >&6; }
10423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10424 cat >>confdefs.h
<<_ACEOF
10425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10429 { { echo "$as_me:$LINENO: error: readline header not found
10430 If you have readline already installed, see config.log for details on the
10431 failure. It is possible the compiler isn't looking in the proper directory.
10432 Use --without-readline to disable readline support." >&5
10433 echo "$as_me: error: readline header not found
10434 If you have readline already installed, see config.log for details on the
10435 failure. It is possible the compiler isn't looking in the proper directory.
10436 Use --without-readline to disable readline support." >&2;}
10437 { (exit 1); exit 1; }; }
10447 for ac_header
in readline
/history.h
10449 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10450 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10453 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 ac_res
=`eval echo '${'$as_ac_Header'}'`
10457 { echo "$as_me:$LINENO: result: $ac_res" >&5
10458 echo "${ECHO_T}$ac_res" >&6; }
10460 # Is the header compilable?
10461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10463 cat >conftest.
$ac_ext <<_ACEOF
10466 cat confdefs.h
>>conftest.
$ac_ext
10467 cat >>conftest.
$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 $ac_includes_default
10470 #include <$ac_header>
10472 rm -f conftest.
$ac_objext
10473 if { (ac_try
="$ac_compile"
10474 case "(($ac_try" in
10475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_compile") 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && {
10486 test -z "$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 } && test -s conftest.$ac_objext; then
10489 ac_header_compiler=yes
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10494 ac_header_compiler=no
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10499 echo "${ECHO_T}$ac_header_compiler" >&6; }
10501 # Is the header present?
10502 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 #include <$ac_header>
10512 if { (ac_try="$ac_cpp conftest.$ac_ext"
10513 case "(($ac_try" in
10514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10515 *) ac_try_echo
=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1
>conftest.err
10522 cat conftest.err
>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } >/dev
/null
&& {
10525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10528 ac_header_preproc
=yes
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.
$ac_ext >&5
10533 ac_header_preproc
=no
10536 rm -f conftest.err conftest.
$ac_ext
10537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10538 echo "${ECHO_T}$ac_header_preproc" >&6; }
10540 # So? What about this header?
10541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10547 ac_header_preproc
=yes
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10563 ## ---------------------------------------- ##
10564 ## Report this to pgsql-bugs@postgresql.org ##
10565 ## ---------------------------------------- ##
10567 ) |
sed "s/^/$as_me: WARNING: /" >&2
10570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10572 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 eval "$as_ac_Header=\$ac_header_preproc"
10577 ac_res
=`eval echo '${'$as_ac_Header'}'`
10578 { echo "$as_me:$LINENO: result: $ac_res" >&5
10579 echo "${ECHO_T}$ac_res" >&6; }
10582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10583 cat >>confdefs.h
<<_ACEOF
10584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10589 for ac_header
in history.h
10591 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10595 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 ac_res
=`eval echo '${'$as_ac_Header'}'`
10599 { echo "$as_me:$LINENO: result: $ac_res" >&5
10600 echo "${ECHO_T}$ac_res" >&6; }
10602 # Is the header compilable?
10603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10605 cat >conftest.
$ac_ext <<_ACEOF
10608 cat confdefs.h
>>conftest.
$ac_ext
10609 cat >>conftest.
$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 #include <$ac_header>
10614 rm -f conftest.
$ac_objext
10615 if { (ac_try
="$ac_compile"
10616 case "(($ac_try" in
10617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_compile") 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && {
10628 test -z "$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10630 } && test -s conftest.$ac_objext; then
10631 ac_header_compiler=yes
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10636 ac_header_compiler=no
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10641 echo "${ECHO_T}$ac_header_compiler" >&6; }
10643 # Is the header present?
10644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 #include <$ac_header>
10654 if { (ac_try="$ac_cpp conftest.$ac_ext"
10655 case "(($ac_try" in
10656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10657 *) ac_try_echo
=$ac_try;;
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10662 grep -v '^ *+' conftest.er1
>conftest.err
10664 cat conftest.err
>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } >/dev
/null
&& {
10667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10670 ac_header_preproc
=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.
$ac_ext >&5
10675 ac_header_preproc
=no
10678 rm -f conftest.err conftest.
$ac_ext
10679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10680 echo "${ECHO_T}$ac_header_preproc" >&6; }
10682 # So? What about this header?
10683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10689 ac_header_preproc
=yes
10692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10699 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10705 ## ---------------------------------------- ##
10706 ## Report this to pgsql-bugs@postgresql.org ##
10707 ## ---------------------------------------- ##
10709 ) |
sed "s/^/$as_me: WARNING: /" >&2
10712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 eval "$as_ac_Header=\$ac_header_preproc"
10719 ac_res
=`eval echo '${'$as_ac_Header'}'`
10720 { echo "$as_me:$LINENO: result: $ac_res" >&5
10721 echo "${ECHO_T}$ac_res" >&6; }
10724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10725 cat >>confdefs.h
<<_ACEOF
10726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10730 { { echo "$as_me:$LINENO: error: history header not found
10731 If you have readline already installed, see config.log for details on the
10732 failure. It is possible the compiler isn't looking in the proper directory.
10733 Use --without-readline to disable readline support." >&5
10734 echo "$as_me: error: history header not found
10735 If you have readline already installed, see config.log for details on the
10736 failure. It is possible the compiler isn't looking in the proper directory.
10737 Use --without-readline to disable readline support." >&2;}
10738 { (exit 1); exit 1; }; }
10749 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
10750 # Some installations of libedit usurp /usr/include/readline/, which seems
10751 # bad practice, since in combined installations readline will have its headers
10752 # there. We might have to resort to AC_EGREP checks to make sure we found
10753 # the proper header...
10755 for ac_header
in editline
/readline.h
10757 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10758 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10761 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 ac_res
=`eval echo '${'$as_ac_Header'}'`
10765 { echo "$as_me:$LINENO: result: $ac_res" >&5
10766 echo "${ECHO_T}$ac_res" >&6; }
10768 # Is the header compilable?
10769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10771 cat >conftest.
$ac_ext <<_ACEOF
10774 cat confdefs.h
>>conftest.
$ac_ext
10775 cat >>conftest.
$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 $ac_includes_default
10778 #include <$ac_header>
10780 rm -f conftest.
$ac_objext
10781 if { (ac_try
="$ac_compile"
10782 case "(($ac_try" in
10783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_compile") 2>conftest.er1
10789 grep -v '^ *+' conftest.er1 >conftest.err
10791 cat conftest.err >&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest.$ac_objext; then
10797 ac_header_compiler=yes
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_header_compiler=no
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10807 echo "${ECHO_T}$ac_header_compiler" >&6; }
10809 # Is the header present?
10810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <$ac_header>
10820 if { (ac_try="$ac_cpp conftest.$ac_ext"
10821 case "(($ac_try" in
10822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10823 *) ac_try_echo
=$ac_try;;
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10828 grep -v '^ *+' conftest.er1
>conftest.err
10830 cat conftest.err
>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } >/dev
/null
&& {
10833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10836 ac_header_preproc
=yes
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.
$ac_ext >&5
10841 ac_header_preproc
=no
10844 rm -f conftest.err conftest.
$ac_ext
10845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6; }
10848 # So? What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855 ac_header_preproc
=yes
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10871 ## ---------------------------------------- ##
10872 ## Report this to pgsql-bugs@postgresql.org ##
10873 ## ---------------------------------------- ##
10875 ) |
sed "s/^/$as_me: WARNING: /" >&2
10878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10880 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 eval "$as_ac_Header=\$ac_header_preproc"
10885 ac_res
=`eval echo '${'$as_ac_Header'}'`
10886 { echo "$as_me:$LINENO: result: $ac_res" >&5
10887 echo "${ECHO_T}$ac_res" >&6; }
10890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891 cat >>confdefs.h
<<_ACEOF
10892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10897 for ac_header
in readline.h
10899 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10900 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10903 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 ac_res
=`eval echo '${'$as_ac_Header'}'`
10907 { echo "$as_me:$LINENO: result: $ac_res" >&5
10908 echo "${ECHO_T}$ac_res" >&6; }
10910 # Is the header compilable?
10911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10913 cat >conftest.
$ac_ext <<_ACEOF
10916 cat confdefs.h
>>conftest.
$ac_ext
10917 cat >>conftest.
$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 $ac_includes_default
10920 #include <$ac_header>
10922 rm -f conftest.
$ac_objext
10923 if { (ac_try
="$ac_compile"
10924 case "(($ac_try" in
10925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_compile") 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest.$ac_objext; then
10939 ac_header_compiler=yes
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 ac_header_compiler=no
10947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10949 echo "${ECHO_T}$ac_header_compiler" >&6; }
10951 # Is the header present?
10952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10954 cat >conftest.$ac_ext <<_ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960 #include <$ac_header>
10962 if { (ac_try="$ac_cpp conftest.$ac_ext"
10963 case "(($ac_try" in
10964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10965 *) ac_try_echo
=$ac_try;;
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10970 grep -v '^ *+' conftest.er1
>conftest.err
10972 cat conftest.err
>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } >/dev
/null
&& {
10975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10978 ac_header_preproc
=yes
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.
$ac_ext >&5
10983 ac_header_preproc
=no
10986 rm -f conftest.err conftest.
$ac_ext
10987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988 echo "${ECHO_T}$ac_header_preproc" >&6; }
10990 # So? What about this header?
10991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10997 ac_header_preproc
=yes
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11013 ## ---------------------------------------- ##
11014 ## Report this to pgsql-bugs@postgresql.org ##
11015 ## ---------------------------------------- ##
11017 ) |
sed "s/^/$as_me: WARNING: /" >&2
11020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11022 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 eval "$as_ac_Header=\$ac_header_preproc"
11027 ac_res
=`eval echo '${'$as_ac_Header'}'`
11028 { echo "$as_me:$LINENO: result: $ac_res" >&5
11029 echo "${ECHO_T}$ac_res" >&6; }
11032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11033 cat >>confdefs.h
<<_ACEOF
11034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11039 for ac_header
in readline
/readline.h
11041 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11042 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11045 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 ac_res
=`eval echo '${'$as_ac_Header'}'`
11049 { echo "$as_me:$LINENO: result: $ac_res" >&5
11050 echo "${ECHO_T}$ac_res" >&6; }
11052 # Is the header compilable?
11053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11055 cat >conftest.
$ac_ext <<_ACEOF
11058 cat confdefs.h
>>conftest.
$ac_ext
11059 cat >>conftest.
$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 $ac_includes_default
11062 #include <$ac_header>
11064 rm -f conftest.
$ac_objext
11065 if { (ac_try
="$ac_compile"
11066 case "(($ac_try" in
11067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_compile") 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest.$ac_objext; then
11081 ac_header_compiler=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_header_compiler=no
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11091 echo "${ECHO_T}$ac_header_compiler" >&6; }
11093 # Is the header present?
11094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 #include <$ac_header>
11104 if { (ac_try="$ac_cpp conftest.$ac_ext"
11105 case "(($ac_try" in
11106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11107 *) ac_try_echo
=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11112 grep -v '^ *+' conftest.er1
>conftest.err
11114 cat conftest.err
>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } >/dev
/null
&& {
11117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11118 test ! -s conftest.err
11120 ac_header_preproc
=yes
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.
$ac_ext >&5
11125 ac_header_preproc
=no
11128 rm -f conftest.err conftest.
$ac_ext
11129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11130 echo "${ECHO_T}$ac_header_preproc" >&6; }
11132 # So? What about this header?
11133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11139 ac_header_preproc
=yes
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11155 ## ---------------------------------------- ##
11156 ## Report this to pgsql-bugs@postgresql.org ##
11157 ## ---------------------------------------- ##
11159 ) |
sed "s/^/$as_me: WARNING: /" >&2
11162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11164 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 eval "$as_ac_Header=\$ac_header_preproc"
11169 ac_res
=`eval echo '${'$as_ac_Header'}'`
11170 { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11175 cat >>confdefs.h
<<_ACEOF
11176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11180 { { echo "$as_me:$LINENO: error: readline header not found
11181 If you have libedit already installed, see config.log for details on the
11182 failure. It is possible the compiler isn't looking in the proper directory.
11183 Use --without-readline to disable libedit support." >&5
11184 echo "$as_me: error: readline header not found
11185 If you have libedit already installed, see config.log for details on the
11186 failure. It is possible the compiler isn't looking in the proper directory.
11187 Use --without-readline to disable libedit support." >&2;}
11188 { (exit 1); exit 1; }; }
11201 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11202 # not be there at all. Hence, don't complain if not found. We must check
11203 # though, since in yet other versions it is an independent header.
11205 for ac_header
in editline
/history.h
11207 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11208 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11211 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 ac_res
=`eval echo '${'$as_ac_Header'}'`
11215 { echo "$as_me:$LINENO: result: $ac_res" >&5
11216 echo "${ECHO_T}$ac_res" >&6; }
11218 # Is the header compilable?
11219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11221 cat >conftest.
$ac_ext <<_ACEOF
11224 cat confdefs.h
>>conftest.
$ac_ext
11225 cat >>conftest.
$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 $ac_includes_default
11228 #include <$ac_header>
11230 rm -f conftest.
$ac_objext
11231 if { (ac_try
="$ac_compile"
11232 case "(($ac_try" in
11233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_compile") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } && {
11244 test -z "$ac_c_werror_flag" ||
11245 test ! -s conftest.err
11246 } && test -s conftest.$ac_objext; then
11247 ac_header_compiler=yes
11249 echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11252 ac_header_compiler=no
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257 echo "${ECHO_T}$ac_header_compiler" >&6; }
11259 # Is the header present?
11260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 #include <$ac_header>
11270 if { (ac_try="$ac_cpp conftest.$ac_ext"
11271 case "(($ac_try" in
11272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11273 *) ac_try_echo
=$ac_try;;
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11278 grep -v '^ *+' conftest.er1
>conftest.err
11280 cat conftest.err
>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev
/null
&& {
11283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11286 ac_header_preproc
=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.
$ac_ext >&5
11291 ac_header_preproc
=no
11294 rm -f conftest.err conftest.
$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296 echo "${ECHO_T}$ac_header_preproc" >&6; }
11298 # So? What about this header?
11299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305 ac_header_preproc
=yes
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11315 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11321 ## ---------------------------------------- ##
11322 ## Report this to pgsql-bugs@postgresql.org ##
11323 ## ---------------------------------------- ##
11325 ) |
sed "s/^/$as_me: WARNING: /" >&2
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 eval "$as_ac_Header=\$ac_header_preproc"
11335 ac_res
=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11341 cat >>confdefs.h
<<_ACEOF
11342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11347 for ac_header
in history.h
11349 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11350 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11353 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 ac_res
=`eval echo '${'$as_ac_Header'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11360 # Is the header compilable?
11361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11363 cat >conftest.
$ac_ext <<_ACEOF
11366 cat confdefs.h
>>conftest.
$ac_ext
11367 cat >>conftest.
$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 $ac_includes_default
11370 #include <$ac_header>
11372 rm -f conftest.
$ac_objext
11373 if { (ac_try
="$ac_compile"
11374 case "(($ac_try" in
11375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_compile") 2>conftest.er1
11381 grep -v '^ *+' conftest.er1 >conftest.err
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } && {
11386 test -z "$ac_c_werror_flag" ||
11387 test ! -s conftest.err
11388 } && test -s conftest.$ac_objext; then
11389 ac_header_compiler=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 ac_header_compiler=no
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11399 echo "${ECHO_T}$ac_header_compiler" >&6; }
11401 # Is the header present?
11402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 #include <$ac_header>
11412 if { (ac_try="$ac_cpp conftest.$ac_ext"
11413 case "(($ac_try" in
11414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11415 *) ac_try_echo
=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1
>conftest.err
11422 cat conftest.err
>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } >/dev
/null
&& {
11425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11428 ac_header_preproc
=yes
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.
$ac_ext >&5
11433 ac_header_preproc
=no
11436 rm -f conftest.err conftest.
$ac_ext
11437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 echo "${ECHO_T}$ac_header_preproc" >&6; }
11440 # So? What about this header?
11441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11447 ac_header_preproc
=yes
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11463 ## ---------------------------------------- ##
11464 ## Report this to pgsql-bugs@postgresql.org ##
11465 ## ---------------------------------------- ##
11467 ) |
sed "s/^/$as_me: WARNING: /" >&2
11470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 eval "$as_ac_Header=\$ac_header_preproc"
11477 ac_res
=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11483 cat >>confdefs.h
<<_ACEOF
11484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11489 for ac_header
in readline
/history.h
11491 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 ac_res
=`eval echo '${'$as_ac_Header'}'`
11499 { echo "$as_me:$LINENO: result: $ac_res" >&5
11500 echo "${ECHO_T}$ac_res" >&6; }
11502 # Is the header compilable?
11503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11505 cat >conftest.
$ac_ext <<_ACEOF
11508 cat confdefs.h
>>conftest.
$ac_ext
11509 cat >>conftest.
$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 $ac_includes_default
11512 #include <$ac_header>
11514 rm -f conftest.
$ac_objext
11515 if { (ac_try
="$ac_compile"
11516 case "(($ac_try" in
11517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_compile") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest.$ac_objext; then
11531 ac_header_compiler=yes
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_header_compiler=no
11539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541 echo "${ECHO_T}$ac_header_compiler" >&6; }
11543 # Is the header present?
11544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include <$ac_header>
11554 if { (ac_try="$ac_cpp conftest.$ac_ext"
11555 case "(($ac_try" in
11556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11557 *) ac_try_echo
=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11562 grep -v '^ *+' conftest.er1
>conftest.err
11564 cat conftest.err
>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } >/dev
/null
&& {
11567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11570 ac_header_preproc
=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.
$ac_ext >&5
11575 ac_header_preproc
=no
11578 rm -f conftest.err conftest.
$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11580 echo "${ECHO_T}$ac_header_preproc" >&6; }
11582 # So? What about this header?
11583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11589 ac_header_preproc
=yes
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11605 ## ---------------------------------------- ##
11606 ## Report this to pgsql-bugs@postgresql.org ##
11607 ## ---------------------------------------- ##
11609 ) |
sed "s/^/$as_me: WARNING: /" >&2
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 eval "$as_ac_Header=\$ac_header_preproc"
11619 ac_res
=`eval echo '${'$as_ac_Header'}'`
11620 { echo "$as_me:$LINENO: result: $ac_res" >&5
11621 echo "${ECHO_T}$ac_res" >&6; }
11624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11625 cat >>confdefs.h
<<_ACEOF
11626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 if test "$with_zlib" = yes; then
11644 if test "${ac_cv_header_zlib_h+set}" = set; then
11645 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11646 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11647 if test "${ac_cv_header_zlib_h+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11651 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11653 # Is the header compilable?
11654 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11655 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11656 cat >conftest.
$ac_ext <<_ACEOF
11659 cat confdefs.h
>>conftest.
$ac_ext
11660 cat >>conftest.
$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 $ac_includes_default
11665 rm -f conftest.
$ac_objext
11666 if { (ac_try
="$ac_compile"
11667 case "(($ac_try" in
11668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_compile") 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } && {
11679 test -z "$ac_c_werror_flag" ||
11680 test ! -s conftest.err
11681 } && test -s conftest.$ac_objext; then
11682 ac_header_compiler=yes
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11687 ac_header_compiler=no
11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11692 echo "${ECHO_T}$ac_header_compiler" >&6; }
11694 # Is the header present?
11695 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11696 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11697 cat >conftest.$ac_ext <<_ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11705 if { (ac_try="$ac_cpp conftest.$ac_ext"
11706 case "(($ac_try" in
11707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11708 *) ac_try_echo
=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1
>conftest.err
11715 cat conftest.err
>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } >/dev
/null
&& {
11718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11721 ac_header_preproc
=yes
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.
$ac_ext >&5
11726 ac_header_preproc
=no
11729 rm -f conftest.err conftest.
$ac_ext
11730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11731 echo "${ECHO_T}$ac_header_preproc" >&6; }
11733 # So? What about this header?
11734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11736 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11737 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11739 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11740 ac_header_preproc
=yes
11743 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11744 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11746 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11748 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11750 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11752 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11753 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11754 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11756 ## ---------------------------------------- ##
11757 ## Report this to pgsql-bugs@postgresql.org ##
11758 ## ---------------------------------------- ##
11760 ) |
sed "s/^/$as_me: WARNING: /" >&2
11763 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11764 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11765 if test "${ac_cv_header_zlib_h+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 ac_cv_header_zlib_h
=$ac_header_preproc
11770 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11771 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11774 if test $ac_cv_header_zlib_h = yes; then
11777 { { echo "$as_me:$LINENO: error: zlib header not found
11778 If you have zlib already installed, see config.log for details on the
11779 failure. It is possible the compiler isn't looking in the proper directory.
11780 Use --without-zlib to disable zlib support." >&5
11781 echo "$as_me: error: zlib header not found
11782 If you have zlib already installed, see config.log for details on the
11783 failure. It is possible the compiler isn't looking in the proper directory.
11784 Use --without-zlib to disable zlib support." >&2;}
11785 { (exit 1); exit 1; }; }
11791 if test "$with_gssapi" = yes ; then
11793 for ac_header
in gssapi
/gssapi.h
11795 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 ac_res
=`eval echo '${'$as_ac_Header'}'`
11803 { echo "$as_me:$LINENO: result: $ac_res" >&5
11804 echo "${ECHO_T}$ac_res" >&6; }
11806 # Is the header compilable?
11807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11809 cat >conftest.
$ac_ext <<_ACEOF
11812 cat confdefs.h
>>conftest.
$ac_ext
11813 cat >>conftest.
$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 #include <$ac_header>
11818 rm -f conftest.
$ac_objext
11819 if { (ac_try
="$ac_compile"
11820 case "(($ac_try" in
11821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_compile") 2>conftest.er1
11827 grep -v '^ *+' conftest.er1 >conftest.err
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } && {
11832 test -z "$ac_c_werror_flag" ||
11833 test ! -s conftest.err
11834 } && test -s conftest.$ac_objext; then
11835 ac_header_compiler=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 ac_header_compiler=no
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845 echo "${ECHO_T}$ac_header_compiler" >&6; }
11847 # Is the header present?
11848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 #include <$ac_header>
11858 if { (ac_try="$ac_cpp conftest.$ac_ext"
11859 case "(($ac_try" in
11860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11861 *) ac_try_echo
=$ac_try;;
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11866 grep -v '^ *+' conftest.er1
>conftest.err
11868 cat conftest.err
>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } >/dev
/null
&& {
11871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11874 ac_header_preproc
=yes
11876 echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.
$ac_ext >&5
11879 ac_header_preproc
=no
11882 rm -f conftest.err conftest.
$ac_ext
11883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6; }
11886 # So? What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893 ac_header_preproc
=yes
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11909 ## ---------------------------------------- ##
11910 ## Report this to pgsql-bugs@postgresql.org ##
11911 ## ---------------------------------------- ##
11913 ) |
sed "s/^/$as_me: WARNING: /" >&2
11916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11918 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 eval "$as_ac_Header=\$ac_header_preproc"
11923 ac_res
=`eval echo '${'$as_ac_Header'}'`
11924 { echo "$as_me:$LINENO: result: $ac_res" >&5
11925 echo "${ECHO_T}$ac_res" >&6; }
11928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11929 cat >>confdefs.h
<<_ACEOF
11930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 for ac_header
in gssapi.h
11937 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11938 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11941 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 ac_res
=`eval echo '${'$as_ac_Header'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11948 # Is the header compilable?
11949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11951 cat >conftest.
$ac_ext <<_ACEOF
11954 cat confdefs.h
>>conftest.
$ac_ext
11955 cat >>conftest.
$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11957 $ac_includes_default
11958 #include <$ac_header>
11960 rm -f conftest.
$ac_objext
11961 if { (ac_try
="$ac_compile"
11962 case "(($ac_try" in
11963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_compile") 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && {
11974 test -z "$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11976 } && test -s conftest.$ac_objext; then
11977 ac_header_compiler=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_header_compiler=no
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11987 echo "${ECHO_T}$ac_header_compiler" >&6; }
11989 # Is the header present?
11990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11992 cat >conftest.$ac_ext <<_ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 #include <$ac_header>
12000 if { (ac_try="$ac_cpp conftest.$ac_ext"
12001 case "(($ac_try" in
12002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12003 *) ac_try_echo
=$ac_try;;
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12008 grep -v '^ *+' conftest.er1
>conftest.err
12010 cat conftest.err
>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } >/dev
/null
&& {
12013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12014 test ! -s conftest.err
12016 ac_header_preproc
=yes
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.
$ac_ext >&5
12021 ac_header_preproc
=no
12024 rm -f conftest.err conftest.
$ac_ext
12025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12026 echo "${ECHO_T}$ac_header_preproc" >&6; }
12028 # So? What about this header?
12029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12035 ac_header_preproc
=yes
12038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12051 ## ---------------------------------------- ##
12052 ## Report this to pgsql-bugs@postgresql.org ##
12053 ## ---------------------------------------- ##
12055 ) |
sed "s/^/$as_me: WARNING: /" >&2
12058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12060 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 eval "$as_ac_Header=\$ac_header_preproc"
12065 ac_res
=`eval echo '${'$as_ac_Header'}'`
12066 { echo "$as_me:$LINENO: result: $ac_res" >&5
12067 echo "${ECHO_T}$ac_res" >&6; }
12070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12071 cat >>confdefs.h
<<_ACEOF
12072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12076 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12077 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12078 { (exit 1); exit 1; }; }
12089 if test "$with_krb5" = yes ; then
12090 if test "${ac_cv_header_krb5_h+set}" = set; then
12091 { echo "$as_me:$LINENO: checking for krb5.h" >&5
12092 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
12093 if test "${ac_cv_header_krb5_h+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12097 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
12099 # Is the header compilable?
12100 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
12101 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
12102 cat >conftest.
$ac_ext <<_ACEOF
12105 cat confdefs.h
>>conftest.
$ac_ext
12106 cat >>conftest.
$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 $ac_includes_default
12111 rm -f conftest.
$ac_objext
12112 if { (ac_try
="$ac_compile"
12113 case "(($ac_try" in
12114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest.$ac_objext; then
12128 ac_header_compiler=yes
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 ac_header_compiler=no
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138 echo "${ECHO_T}$ac_header_compiler" >&6; }
12140 # Is the header present?
12141 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
12142 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
12143 cat >conftest.$ac_ext <<_ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12151 if { (ac_try="$ac_cpp conftest.$ac_ext"
12152 case "(($ac_try" in
12153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12154 *) ac_try_echo
=$ac_try;;
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12159 grep -v '^ *+' conftest.er1
>conftest.err
12161 cat conftest.err
>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } >/dev
/null
&& {
12164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12167 ac_header_preproc
=yes
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.
$ac_ext >&5
12172 ac_header_preproc
=no
12175 rm -f conftest.err conftest.
$ac_ext
12176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12177 echo "${ECHO_T}$ac_header_preproc" >&6; }
12179 # So? What about this header?
12180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12182 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12183 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12184 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12185 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12186 ac_header_preproc
=yes
12189 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12190 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12192 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12194 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12196 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12198 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12200 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12202 ## ---------------------------------------- ##
12203 ## Report this to pgsql-bugs@postgresql.org ##
12204 ## ---------------------------------------- ##
12206 ) |
sed "s/^/$as_me: WARNING: /" >&2
12209 { echo "$as_me:$LINENO: checking for krb5.h" >&5
12210 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
12211 if test "${ac_cv_header_krb5_h+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 ac_cv_header_krb5_h
=$ac_header_preproc
12216 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12217 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
12220 if test $ac_cv_header_krb5_h = yes; then
12223 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12224 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12225 { (exit 1); exit 1; }; }
12231 if test "$with_openssl" = yes ; then
12232 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12233 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12234 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12235 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12239 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12241 # Is the header compilable?
12242 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12243 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12244 cat >conftest.
$ac_ext <<_ACEOF
12247 cat confdefs.h
>>conftest.
$ac_ext
12248 cat >>conftest.
$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 $ac_includes_default
12251 #include <openssl/ssl.h>
12253 rm -f conftest.
$ac_objext
12254 if { (ac_try
="$ac_compile"
12255 case "(($ac_try" in
12256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12262 grep -v '^ *+' conftest.er1 >conftest.err
12264 cat conftest.err >&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12270 ac_header_compiler=yes
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_header_compiler=no
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12280 echo "${ECHO_T}$ac_header_compiler" >&6; }
12282 # Is the header present?
12283 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12284 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12285 cat >conftest.$ac_ext <<_ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 #include <openssl/ssl.h>
12293 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
12306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12309 ac_header_preproc
=yes
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12314 ac_header_preproc
=no
12317 rm -f conftest.err conftest.
$ac_ext
12318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12319 echo "${ECHO_T}$ac_header_preproc" >&6; }
12321 # So? What about this header?
12322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12324 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12325 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12326 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12327 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12328 ac_header_preproc
=yes
12331 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12332 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12333 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12334 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12335 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12336 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12337 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12338 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12339 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12340 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12341 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12342 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12344 ## ---------------------------------------- ##
12345 ## Report this to pgsql-bugs@postgresql.org ##
12346 ## ---------------------------------------- ##
12348 ) |
sed "s/^/$as_me: WARNING: /" >&2
12351 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12352 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12353 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
12358 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12359 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12362 if test $ac_cv_header_openssl_ssl_h = yes; then
12365 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12366 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12367 { (exit 1); exit 1; }; }
12371 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12372 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12373 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12374 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12378 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12380 # Is the header compilable?
12381 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12382 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
12383 cat >conftest.
$ac_ext <<_ACEOF
12386 cat confdefs.h
>>conftest.
$ac_ext
12387 cat >>conftest.
$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12389 $ac_includes_default
12390 #include <openssl/err.h>
12392 rm -f conftest.
$ac_objext
12393 if { (ac_try
="$ac_compile"
12394 case "(($ac_try" in
12395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_compile") 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest.$ac_objext; then
12409 ac_header_compiler=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_header_compiler=no
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12419 echo "${ECHO_T}$ac_header_compiler" >&6; }
12421 # Is the header present?
12422 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12423 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 #include <openssl/err.h>
12432 if { (ac_try="$ac_cpp conftest.$ac_ext"
12433 case "(($ac_try" in
12434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12435 *) ac_try_echo
=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12440 grep -v '^ *+' conftest.er1
>conftest.err
12442 cat conftest.err
>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } >/dev
/null
&& {
12445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12446 test ! -s conftest.err
12448 ac_header_preproc
=yes
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.
$ac_ext >&5
12453 ac_header_preproc
=no
12456 rm -f conftest.err conftest.
$ac_ext
12457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12458 echo "${ECHO_T}$ac_header_preproc" >&6; }
12460 # So? What about this header?
12461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12463 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12464 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12466 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12467 ac_header_preproc
=yes
12470 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12471 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12472 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12473 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12474 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12475 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12476 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12477 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12479 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12480 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12481 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12483 ## ---------------------------------------- ##
12484 ## Report this to pgsql-bugs@postgresql.org ##
12485 ## ---------------------------------------- ##
12487 ) |
sed "s/^/$as_me: WARNING: /" >&2
12490 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12491 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12492 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 ac_cv_header_openssl_err_h
=$ac_header_preproc
12497 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12498 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12501 if test $ac_cv_header_openssl_err_h = yes; then
12504 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12505 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12506 { (exit 1); exit 1; }; }
12511 for ac_func
in ERR_set_mark
12513 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12516 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 cat >conftest.
$ac_ext <<_ACEOF
12522 cat confdefs.h
>>conftest.
$ac_ext
12523 cat >>conftest.
$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12527 #define $ac_func innocuous_$ac_func
12529 /* System header to define __stub macros and hopefully few prototypes,
12530 which can conflict with char $ac_func (); below.
12531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12532 <limits.h> exists even on freestanding compilers. */
12535 # include <limits.h>
12537 # include <assert.h>
12542 /* Override any GCC internal prototype to avoid an error.
12543 Use char because int might match the return type of a GCC
12544 builtin and then its argument prototype would still apply. */
12549 /* The GNU C library defines this for functions which it implements
12550 to always fail with ENOSYS. Some functions are actually named
12551 something starting with __ and the normal name is an alias. */
12552 #if defined __stub_$ac_func || defined __stub___$ac_func
12559 return $ac_func ();
12564 rm -f conftest.
$ac_objext conftest
$ac_exeext
12565 if { (ac_try
="$ac_link"
12566 case "(($ac_try" in
12567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_link") 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest$ac_exeext &&
12581 $as_test_x conftest$ac_exeext; then
12582 eval "$as_ac_var=yes"
12584 echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12587 eval "$as_ac_var=no"
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591 conftest$ac_exeext conftest.$ac_ext
12593 ac_res=`eval echo '${'$as_ac_var'}'`
12594 { echo "$as_me:$LINENO: result: $ac_res" >&5
12595 echo "${ECHO_T}$ac_res" >&6; }
12596 if test `eval echo '${'$as_ac_var'}'` = yes; then
12597 cat >>confdefs.h <<_ACEOF
12598 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12606 if test "$with_pam" = yes ; then
12608 for ac_header in security/pam_appl.h
12610 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 ac_res=`eval echo '${'$as_ac_Header'}'`
12618 { echo "$as_me:$LINENO: result: $ac_res" >&5
12619 echo "${ECHO_T}$ac_res" >&6; }
12621 # Is the header compilable?
12622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12624 cat >conftest.$ac_ext <<_ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12631 #include <$ac_header>
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12637 *) ac_try_echo
=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12642 grep -v '^ *+' conftest.er1
>conftest.err
12644 cat conftest.err
>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.
$ac_objext; then
12650 ac_header_compiler
=yes
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.
$ac_ext >&5
12655 ac_header_compiler
=no
12658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12660 echo "${ECHO_T}$ac_header_compiler" >&6; }
12662 # Is the header present?
12663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12665 cat >conftest.
$ac_ext <<_ACEOF
12668 cat confdefs.h
>>conftest.
$ac_ext
12669 cat >>conftest.
$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 #include <$ac_header>
12673 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12674 case "(($ac_try" in
12675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12681 grep -v '^ *+' conftest.er1 >conftest.err
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } >/dev/null && {
12686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12689 ac_header_preproc=yes
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12694 ac_header_preproc=no
12697 rm -f conftest.err conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12699 echo "${ECHO_T}$ac_header_preproc" >&6; }
12701 # So? What about this header?
12702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12708 ac_header_preproc=yes
12711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12724 ## ---------------------------------------- ##
12725 ## Report this to pgsql-bugs@postgresql.org ##
12726 ## ---------------------------------------- ##
12728 ) | sed "s/^/$as_me: WARNING: /" >&2
12731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 eval "$as_ac_Header=\$ac_header_preproc"
12738 ac_res=`eval echo '${'$as_ac_Header'}'`
12739 { echo "$as_me:$LINENO: result: $ac_res" >&5
12740 echo "${ECHO_T}$ac_res" >&6; }
12743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12744 cat >>confdefs.h <<_ACEOF
12745 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12750 for ac_header in pam/pam_appl.h
12752 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 ac_res=`eval echo '${'$as_ac_Header'}'`
12760 { echo "$as_me:$LINENO: result: $ac_res" >&5
12761 echo "${ECHO_T}$ac_res" >&6; }
12763 # Is the header compilable?
12764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12766 cat >conftest.$ac_ext <<_ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 $ac_includes_default
12773 #include <$ac_header>
12775 rm -f conftest.$ac_objext
12776 if { (ac_try="$ac_compile"
12777 case "(($ac_try" in
12778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12779 *) ac_try_echo
=$ac_try;;
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_compile") 2>conftest.er1
12784 grep -v '^ *+' conftest.er1
>conftest.err
12786 cat conftest.err
>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && {
12789 test -z "$ac_c_werror_flag" ||
12790 test ! -s conftest.err
12791 } && test -s conftest.
$ac_objext; then
12792 ac_header_compiler
=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.
$ac_ext >&5
12797 ac_header_compiler
=no
12800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12802 echo "${ECHO_T}$ac_header_compiler" >&6; }
12804 # Is the header present?
12805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12807 cat >conftest.
$ac_ext <<_ACEOF
12810 cat confdefs.h
>>conftest.
$ac_ext
12811 cat >>conftest.
$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813 #include <$ac_header>
12815 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12816 case "(($ac_try" in
12817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823 grep -v '^ *+' conftest.er1 >conftest.err
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } >/dev/null && {
12828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12831 ac_header_preproc=yes
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12836 ac_header_preproc=no
12839 rm -f conftest.err conftest.$ac_ext
12840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12841 echo "${ECHO_T}$ac_header_preproc" >&6; }
12843 # So? What about this header?
12844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12850 ac_header_preproc=yes
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12866 ## ---------------------------------------- ##
12867 ## Report this to pgsql-bugs@postgresql.org ##
12868 ## ---------------------------------------- ##
12870 ) | sed "s/^/$as_me: WARNING: /" >&2
12873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 eval "$as_ac_Header=\$ac_header_preproc"
12880 ac_res=`eval echo '${'$as_ac_Header'}'`
12881 { echo "$as_me:$LINENO: result: $ac_res" >&5
12882 echo "${ECHO_T}$ac_res" >&6; }
12885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12886 cat >>confdefs.h <<_ACEOF
12887 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12891 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12892 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12893 { (exit 1); exit 1; }; }
12904 if test "$with_libxml" = yes ; then
12905 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12906 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12907 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12908 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12912 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12914 # Is the header compilable?
12915 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12916 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12917 cat >conftest.$ac_ext <<_ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 $ac_includes_default
12924 #include <libxml/parser.h>
12926 rm -f conftest.$ac_objext
12927 if { (ac_try="$ac_compile"
12928 case "(($ac_try" in
12929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12930 *) ac_try_echo
=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_compile") 2>conftest.er1
12935 grep -v '^ *+' conftest.er1
>conftest.err
12937 cat conftest.err
>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } && {
12940 test -z "$ac_c_werror_flag" ||
12941 test ! -s conftest.err
12942 } && test -s conftest.
$ac_objext; then
12943 ac_header_compiler
=yes
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.
$ac_ext >&5
12948 ac_header_compiler
=no
12951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12953 echo "${ECHO_T}$ac_header_compiler" >&6; }
12955 # Is the header present?
12956 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12957 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12958 cat >conftest.
$ac_ext <<_ACEOF
12961 cat confdefs.h
>>conftest.
$ac_ext
12962 cat >>conftest.
$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 #include <libxml/parser.h>
12966 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12967 case "(($ac_try" in
12968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12974 grep -v '^ *+' conftest.er1 >conftest.err
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } >/dev/null && {
12979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12980 test ! -s conftest.err
12982 ac_header_preproc=yes
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 ac_header_preproc=no
12990 rm -f conftest.err conftest.$ac_ext
12991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12992 echo "${ECHO_T}$ac_header_preproc" >&6; }
12994 # So? What about this header?
12995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12997 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12998 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13000 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13001 ac_header_preproc=yes
13004 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13005 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13006 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13007 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13008 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13009 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13011 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13013 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13014 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13015 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13017 ## ---------------------------------------- ##
13018 ## Report this to pgsql-bugs@postgresql.org ##
13019 ## ---------------------------------------- ##
13021 ) | sed "s/^/$as_me: WARNING: /" >&2
13024 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13025 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
13026 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 ac_cv_header_libxml_parser_h=$ac_header_preproc
13031 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13032 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
13035 if test $ac_cv_header_libxml_parser_h = yes; then
13038 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13039 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13040 { (exit 1); exit 1; }; }
13046 if test "$with_libxslt" = yes ; then
13047 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13048 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13049 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
13050 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13054 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
13056 # Is the header compilable?
13057 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13058 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
13059 cat >conftest.$ac_ext <<_ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13065 $ac_includes_default
13066 #include <libxslt/xslt.h>
13068 rm -f conftest.$ac_objext
13069 if { (ac_try="$ac_compile"
13070 case "(($ac_try" in
13071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13072 *) ac_try_echo
=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_compile") 2>conftest.er1
13077 grep -v '^ *+' conftest.er1
>conftest.err
13079 cat conftest.err
>&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } && {
13082 test -z "$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13084 } && test -s conftest.
$ac_objext; then
13085 ac_header_compiler
=yes
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.
$ac_ext >&5
13090 ac_header_compiler
=no
13093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13095 echo "${ECHO_T}$ac_header_compiler" >&6; }
13097 # Is the header present?
13098 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13099 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
13100 cat >conftest.
$ac_ext <<_ACEOF
13103 cat confdefs.h
>>conftest.
$ac_ext
13104 cat >>conftest.
$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13106 #include <libxslt/xslt.h>
13108 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13109 case "(($ac_try" in
13110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13116 grep -v '^ *+' conftest.er1 >conftest.err
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } >/dev/null && {
13121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13122 test ! -s conftest.err
13124 ac_header_preproc=yes
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_header_preproc=no
13132 rm -f conftest.err conftest.$ac_ext
13133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13134 echo "${ECHO_T}$ac_header_preproc" >&6; }
13136 # So? What about this header?
13137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13139 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13140 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13142 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13143 ac_header_preproc=yes
13146 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13147 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13149 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13150 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13151 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13152 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13153 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13154 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13155 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13157 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13159 ## ---------------------------------------- ##
13160 ## Report this to pgsql-bugs@postgresql.org ##
13161 ## ---------------------------------------- ##
13163 ) | sed "s/^/$as_me: WARNING: /" >&2
13166 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13167 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
13168 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13173 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13174 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
13177 if test $ac_cv_header_libxslt_xslt_h = yes; then
13180 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13181 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13182 { (exit 1); exit 1; }; }
13188 if test "$with_ldap" = yes ; then
13189 if test "$PORTNAME" != "win32"; then
13191 for ac_header in ldap.h
13193 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 ac_res=`eval echo '${'$as_ac_Header'}'`
13201 { echo "$as_me:$LINENO: result: $ac_res" >&5
13202 echo "${ECHO_T}$ac_res" >&6; }
13204 # Is the header compilable?
13205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13214 #include <$ac_header>
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
13218 case "(($ac_try" in
13219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13220 *) ac_try_echo
=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_compile") 2>conftest.er1
13225 grep -v '^ *+' conftest.er1
>conftest.err
13227 cat conftest.err
>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } && {
13230 test -z "$ac_c_werror_flag" ||
13231 test ! -s conftest.err
13232 } && test -s conftest.
$ac_objext; then
13233 ac_header_compiler
=yes
13235 echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.
$ac_ext >&5
13238 ac_header_compiler
=no
13241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13243 echo "${ECHO_T}$ac_header_compiler" >&6; }
13245 # Is the header present?
13246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13248 cat >conftest.
$ac_ext <<_ACEOF
13251 cat confdefs.h
>>conftest.
$ac_ext
13252 cat >>conftest.
$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13254 #include <$ac_header>
13256 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13257 case "(($ac_try" in
13258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13264 grep -v '^ *+' conftest.er1 >conftest.err
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } >/dev/null && {
13269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13270 test ! -s conftest.err
13272 ac_header_preproc=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_header_preproc=no
13280 rm -f conftest.err conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13282 echo "${ECHO_T}$ac_header_preproc" >&6; }
13284 # So? What about this header?
13285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13291 ac_header_preproc=yes
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13307 ## ---------------------------------------- ##
13308 ## Report this to pgsql-bugs@postgresql.org ##
13309 ## ---------------------------------------- ##
13311 ) | sed "s/^/$as_me: WARNING: /" >&2
13314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13319 eval "$as_ac_Header=\$ac_header_preproc"
13321 ac_res=`eval echo '${'$as_ac_Header'}'`
13322 { echo "$as_me:$LINENO: result: $ac_res" >&5
13323 echo "${ECHO_T}$ac_res" >&6; }
13326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13327 cat >>confdefs.h <<_ACEOF
13328 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
13332 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13333 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13334 { (exit 1); exit 1; }; }
13341 for ac_header in winldap.h
13343 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13347 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 cat >conftest.$ac_ext <<_ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 $ac_includes_default
13356 #include <windows.h>
13359 #include <$ac_header>
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13365 *) ac_try_echo
=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13370 grep -v '^ *+' conftest.er1
>conftest.err
13372 cat conftest.err
>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest.
$ac_objext; then
13378 eval "$as_ac_Header=yes"
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.
$ac_ext >&5
13383 eval "$as_ac_Header=no"
13386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13388 ac_res
=`eval echo '${'$as_ac_Header'}'`
13389 { echo "$as_me:$LINENO: result: $ac_res" >&5
13390 echo "${ECHO_T}$ac_res" >&6; }
13391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13392 cat >>confdefs.h
<<_ACEOF
13393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13397 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13398 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13399 { (exit 1); exit 1; }; }
13407 if test "$with_bonjour" = yes ; then
13408 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13409 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13410 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13411 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13415 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13417 # Is the header compilable?
13418 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13419 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
13420 cat >conftest.
$ac_ext <<_ACEOF
13423 cat confdefs.h
>>conftest.
$ac_ext
13424 cat >>conftest.
$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13427 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13429 rm -f conftest.
$ac_objext
13430 if { (ac_try
="$ac_compile"
13431 case "(($ac_try" in
13432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_compile") 2>conftest.er1
13438 grep -v '^ *+' conftest.er1 >conftest.err
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } && {
13443 test -z "$ac_c_werror_flag" ||
13444 test ! -s conftest.err
13445 } && test -s conftest.$ac_objext; then
13446 ac_header_compiler=yes
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13451 ac_header_compiler=no
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13456 echo "${ECHO_T}$ac_header_compiler" >&6; }
13458 # Is the header present?
13459 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13460 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13469 if { (ac_try="$ac_cpp conftest.$ac_ext"
13470 case "(($ac_try" in
13471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13472 *) ac_try_echo
=$ac_try;;
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1
>conftest.err
13479 cat conftest.err
>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } >/dev
/null
&& {
13482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13483 test ! -s conftest.err
13485 ac_header_preproc
=yes
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.
$ac_ext >&5
13490 ac_header_preproc
=no
13493 rm -f conftest.err conftest.
$ac_ext
13494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13495 echo "${ECHO_T}$ac_header_preproc" >&6; }
13497 # So? What about this header?
13498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13500 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13501 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13503 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13504 ac_header_preproc
=yes
13507 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13508 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13510 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13512 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13514 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13516 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13518 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13520 ## ---------------------------------------- ##
13521 ## Report this to pgsql-bugs@postgresql.org ##
13522 ## ---------------------------------------- ##
13524 ) |
sed "s/^/$as_me: WARNING: /" >&2
13527 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13528 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h
=$ac_header_preproc
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13538 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13541 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13542 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13543 { (exit 1); exit 1; }; }
13549 # for contrib/uuid-ossp
13550 if test "$with_ossp_uuid" = yes ; then
13552 for ac_header
in ossp
/uuid.h
13554 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13555 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13558 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 ac_res
=`eval echo '${'$as_ac_Header'}'`
13562 { echo "$as_me:$LINENO: result: $ac_res" >&5
13563 echo "${ECHO_T}$ac_res" >&6; }
13565 # Is the header compilable?
13566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13568 cat >conftest.
$ac_ext <<_ACEOF
13571 cat confdefs.h
>>conftest.
$ac_ext
13572 cat >>conftest.
$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 $ac_includes_default
13575 #include <$ac_header>
13577 rm -f conftest.
$ac_objext
13578 if { (ac_try
="$ac_compile"
13579 case "(($ac_try" in
13580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_compile") 2>conftest.er1
13586 grep -v '^ *+' conftest.er1 >conftest.err
13588 cat conftest.err >&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && {
13591 test -z "$ac_c_werror_flag" ||
13592 test ! -s conftest.err
13593 } && test -s conftest.$ac_objext; then
13594 ac_header_compiler=yes
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_header_compiler=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13604 echo "${ECHO_T}$ac_header_compiler" >&6; }
13606 # Is the header present?
13607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 #include <$ac_header>
13617 if { (ac_try="$ac_cpp conftest.$ac_ext"
13618 case "(($ac_try" in
13619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13620 *) ac_try_echo
=$ac_try;;
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13625 grep -v '^ *+' conftest.er1
>conftest.err
13627 cat conftest.err
>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } >/dev
/null
&& {
13630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13633 ac_header_preproc
=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.
$ac_ext >&5
13638 ac_header_preproc
=no
13641 rm -f conftest.err conftest.
$ac_ext
13642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13643 echo "${ECHO_T}$ac_header_preproc" >&6; }
13645 # So? What about this header?
13646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13652 ac_header_preproc
=yes
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13668 ## ---------------------------------------- ##
13669 ## Report this to pgsql-bugs@postgresql.org ##
13670 ## ---------------------------------------- ##
13672 ) |
sed "s/^/$as_me: WARNING: /" >&2
13675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13677 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 eval "$as_ac_Header=\$ac_header_preproc"
13682 ac_res
=`eval echo '${'$as_ac_Header'}'`
13683 { echo "$as_me:$LINENO: result: $ac_res" >&5
13684 echo "${ECHO_T}$ac_res" >&6; }
13687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13688 cat >>confdefs.h
<<_ACEOF
13689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13695 for ac_header
in uuid.h
13697 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13701 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 ac_res
=`eval echo '${'$as_ac_Header'}'`
13705 { echo "$as_me:$LINENO: result: $ac_res" >&5
13706 echo "${ECHO_T}$ac_res" >&6; }
13708 # Is the header compilable?
13709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13711 cat >conftest.
$ac_ext <<_ACEOF
13714 cat confdefs.h
>>conftest.
$ac_ext
13715 cat >>conftest.
$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13718 #include <$ac_header>
13720 rm -f conftest.
$ac_objext
13721 if { (ac_try
="$ac_compile"
13722 case "(($ac_try" in
13723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_compile") 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && {
13734 test -z "$ac_c_werror_flag" ||
13735 test ! -s conftest.err
13736 } && test -s conftest.$ac_objext; then
13737 ac_header_compiler=yes
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_header_compiler=no
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13747 echo "${ECHO_T}$ac_header_compiler" >&6; }
13749 # Is the header present?
13750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 #include <$ac_header>
13760 if { (ac_try="$ac_cpp conftest.$ac_ext"
13761 case "(($ac_try" in
13762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13763 *) ac_try_echo
=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13768 grep -v '^ *+' conftest.er1
>conftest.err
13770 cat conftest.err
>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } >/dev
/null
&& {
13773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13776 ac_header_preproc
=yes
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.
$ac_ext >&5
13781 ac_header_preproc
=no
13784 rm -f conftest.err conftest.
$ac_ext
13785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13786 echo "${ECHO_T}$ac_header_preproc" >&6; }
13788 # So? What about this header?
13789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13795 ac_header_preproc
=yes
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13811 ## ---------------------------------------- ##
13812 ## Report this to pgsql-bugs@postgresql.org ##
13813 ## ---------------------------------------- ##
13815 ) |
sed "s/^/$as_me: WARNING: /" >&2
13818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13820 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 eval "$as_ac_Header=\$ac_header_preproc"
13825 ac_res
=`eval echo '${'$as_ac_Header'}'`
13826 { echo "$as_me:$LINENO: result: $ac_res" >&5
13827 echo "${ECHO_T}$ac_res" >&6; }
13830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13831 cat >>confdefs.h
<<_ACEOF
13832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13836 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13837 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13838 { (exit 1); exit 1; }; }
13851 ## Types, structures, compiler characteristics
13854 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13855 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13856 if test "${ac_cv_c_bigendian+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 # See if sys/param.h defines the BYTE_ORDER macro.
13860 cat >conftest.
$ac_ext <<_ACEOF
13863 cat confdefs.h
>>conftest.
$ac_ext
13864 cat >>conftest.
$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #include <sys/types.h>
13867 #include <sys/param.h>
13872 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13873 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13874 bogus endian macros
13881 rm -f conftest.
$ac_objext
13882 if { (ac_try
="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_compile") 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } && {
13895 test -z "$ac_c_werror_flag" ||
13896 test ! -s conftest.err
13897 } && test -s conftest.$ac_objext; then
13898 # It does; now see whether it defined to BIG_ENDIAN or not.
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13905 #include <sys/types.h>
13906 #include <sys/param.h>
13911 #if BYTE_ORDER != BIG_ENDIAN
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13923 *) ac_try_echo
=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_compile") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1
>conftest.err
13930 cat conftest.err
>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && {
13933 test -z "$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13935 } && test -s conftest.
$ac_objext; then
13936 ac_cv_c_bigendian
=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.
$ac_ext >&5
13941 ac_cv_c_bigendian
=no
13944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.
$ac_ext >&5
13949 # It does not; compile a test program.
13950 if test "$cross_compiling" = yes; then
13951 # try to guess the endianness by grepping values into an object file
13952 ac_cv_c_bigendian
=unknown
13953 cat >conftest.
$ac_ext <<_ACEOF
13956 cat confdefs.h
>>conftest.
$ac_ext
13957 cat >>conftest.
$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13960 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13961 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13962 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13963 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13964 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13968 _ascii (); _ebcdic ();
13973 rm -f conftest.
$ac_objext
13974 if { (ac_try
="$ac_compile"
13975 case "(($ac_try" in
13976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_compile") 2>conftest.er1
13982 grep -v '^ *+' conftest.er1 >conftest.err
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && {
13987 test -z "$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13989 } && test -s conftest.$ac_objext; then
13990 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13991 ac_cv_c_bigendian=yes
13993 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13994 if test "$ac_cv_c_bigendian" = unknown; then
13995 ac_cv_c_bigendian=no
13997 # finding both strings is unlikely to happen, but who knows?
13998 ac_cv_c_bigendian=unknown
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 $ac_includes_default
14021 /* Are we little or big endian? From Harbison&Steele. */
14025 char c[sizeof (long int)];
14028 return u.c[sizeof (long int) - 1] == 1;
14034 rm -f conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14038 *) ac_try_echo
=$ac_try;;
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_link") 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14045 { (case "(($ac_try" in
14046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_cv_c_bigendian=no
14056 echo "$as_me: program exited with status $ac_status" >&5
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14060 ( exit $ac_status )
14061 ac_cv_c_bigendian=yes
14063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14072 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14073 case $ac_cv_c_bigendian in
14076 cat >>confdefs.h <<\_ACEOF
14077 #define WORDS_BIGENDIAN 1
14083 { { echo "$as_me:$LINENO: error: unknown endianness
14084 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14085 echo "$as_me: error: unknown endianness
14086 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14087 { (exit 1); exit 1; }; } ;;
14090 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14091 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
14092 if test "${ac_cv_c_const+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 cat >conftest.$ac_ext <<_ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14105 /* FIXME: Include the comments suggested by Paul. */
14106 #ifndef __cplusplus
14107 /* Ultrix mips cc rejects this. */
14108 typedef int charset[2];
14110 /* SunOS 4.1.1 cc rejects this. */
14111 char const *const *pcpcc;
14113 /* NEC SVR4.0.2 mips cc rejects this. */
14114 struct point {int x, y;};
14115 static struct point const zero = {0,0};
14116 /* AIX XL C 1.02.0.0 rejects this.
14117 It does not let you subtract one const X* pointer from another in
14118 an arm of an if-expression whose if-part is not a constant
14120 const char *g = "string";
14121 pcpcc = &g + (g ? g-g : 0);
14122 /* HPUX 7.0 cc rejects these. */
14124 ppc = (char**) pcpcc;
14125 pcpcc = (char const *const *) ppc;
14126 { /* SCO 3.2v4 cc rejects this. */
14128 char const *s = 0 ? (char *) 0 : (char const *) 0;
14133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14134 int x[] = {25, 17};
14135 const int *foo = &x[0];
14138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14139 typedef const int *iptr;
14143 { /* AIX XL C 1.02.0.0 rejects this saying
14144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14145 struct s { int j; const int *ap[3]; };
14146 struct s *b; b->j = 5;
14148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14149 const int foo = 10;
14150 if (!foo) return 0;
14152 return !cs[0] && !zero.x;
14159 rm -f conftest.$ac_objext
14160 if { (ac_try="$ac_compile"
14161 case "(($ac_try" in
14162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14163 *) ac_try_echo
=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_compile") 2>conftest.er1
14168 grep -v '^ *+' conftest.er1
>conftest.err
14170 cat conftest.err
>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } && {
14173 test -z "$ac_c_werror_flag" ||
14174 test ! -s conftest.err
14175 } && test -s conftest.
$ac_objext; then
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.
$ac_ext >&5
14184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14186 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14187 echo "${ECHO_T}$ac_cv_c_const" >&6; }
14188 if test $ac_cv_c_const = no
; then
14190 cat >>confdefs.h
<<\_ACEOF
14196 { echo "$as_me:$LINENO: checking for inline" >&5
14197 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
14198 if test "${ac_cv_c_inline+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 for ac_kw
in inline __inline__ __inline
; do
14203 cat >conftest.
$ac_ext <<_ACEOF
14206 cat confdefs.h
>>conftest.
$ac_ext
14207 cat >>conftest.
$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14209 #ifndef __cplusplus
14211 static $ac_kw foo_t static_foo () {return 0; }
14212 $ac_kw foo_t foo () {return 0; }
14216 rm -f conftest.
$ac_objext
14217 if { (ac_try
="$ac_compile"
14218 case "(($ac_try" in
14219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_compile") 2>conftest.er1
14225 grep -v '^ *+' conftest.er1 >conftest.err
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } && {
14230 test -z "$ac_c_werror_flag" ||
14231 test ! -s conftest.err
14232 } && test -s conftest.$ac_objext; then
14233 ac_cv_c_inline=$ac_kw
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242 test "$ac_cv_c_inline" != no && break
14246 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14247 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
14250 case $ac_cv_c_inline in
14253 case $ac_cv_c_inline in
14255 *) ac_val=$ac_cv_c_inline;;
14257 cat >>confdefs.h <<_ACEOF
14258 #ifndef __cplusplus
14259 #define inline $ac_val
14265 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14266 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
14267 if test "${ac_cv_c_stringize+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14278 char *s = x(teststring);
14280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14281 $EGREP "#teststring" >/dev/null 2>&1; then
14282 ac_cv_c_stringize=no
14284 ac_cv_c_stringize=yes
14289 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14290 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
14291 if test $ac_cv_c_stringize = yes; then
14293 cat >>confdefs.h <<\_ACEOF
14294 #define HAVE_STRINGIZE 1
14299 { echo "$as_me:$LINENO: checking for signed types" >&5
14300 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
14301 if test "${pgac_cv_c_signed+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 cat >conftest.$ac_ext <<_ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14314 signed char c; signed short s; signed int i;
14319 rm -f conftest.$ac_objext
14320 if { (ac_try="$ac_compile"
14321 case "(($ac_try" in
14322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14323 *) ac_try_echo
=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_compile") 2>conftest.er1
14328 grep -v '^ *+' conftest.er1
>conftest.err
14330 cat conftest.err
>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } && {
14333 test -z "$ac_c_werror_flag" ||
14334 test ! -s conftest.err
14335 } && test -s conftest.
$ac_objext; then
14336 pgac_cv_c_signed
=yes
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.
$ac_ext >&5
14341 pgac_cv_c_signed
=no
14344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14346 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14347 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
14348 if test x
"$pgac_cv_c_signed" = xno
; then
14350 cat >>confdefs.h
<<\_ACEOF
14355 { echo "$as_me:$LINENO: checking for working volatile" >&5
14356 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14357 if test "${ac_cv_c_volatile+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 cat >conftest.
$ac_ext <<_ACEOF
14363 cat confdefs.h
>>conftest.
$ac_ext
14364 cat >>conftest.
$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14372 int * volatile y = (int *) 0;
14378 rm -f conftest.
$ac_objext
14379 if { (ac_try
="$ac_compile"
14380 case "(($ac_try" in
14381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_compile") 2>conftest.er1
14387 grep -v '^ *+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest.$ac_objext; then
14395 ac_cv_c_volatile=yes
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_cv_c_volatile=no
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14406 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
14407 if test $ac_cv_c_volatile = no; then
14409 cat >>confdefs.h <<\_ACEOF
14415 { echo "$as_me:$LINENO: checking for __func__" >&5
14416 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
14417 if test "${pgac_cv_funcname_func_support+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14430 printf("%s\n", __func__);
14435 rm -f conftest.$ac_objext
14436 if { (ac_try="$ac_compile"
14437 case "(($ac_try" in
14438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14439 *) ac_try_echo
=$ac_try;;
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_compile") 2>conftest.er1
14444 grep -v '^ *+' conftest.er1
>conftest.err
14446 cat conftest.err
>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && {
14449 test -z "$ac_c_werror_flag" ||
14450 test ! -s conftest.err
14451 } && test -s conftest.
$ac_objext; then
14452 pgac_cv_funcname_func_support
=yes
14454 echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.
$ac_ext >&5
14457 pgac_cv_funcname_func_support
=no
14460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14462 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14463 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14464 if test x
"$pgac_cv_funcname_func_support" = xyes
; then
14466 cat >>confdefs.h
<<\_ACEOF
14467 #define HAVE_FUNCNAME__FUNC 1
14471 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14472 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14473 if test "${pgac_cv_funcname_function_support+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 cat >conftest.
$ac_ext <<_ACEOF
14479 cat confdefs.h
>>conftest.
$ac_ext
14480 cat >>conftest.
$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14486 printf("%s\n", __FUNCTION__);
14491 rm -f conftest.
$ac_objext
14492 if { (ac_try
="$ac_compile"
14493 case "(($ac_try" in
14494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_compile") 2>conftest.er1
14500 grep -v '^ *+' conftest.er1 >conftest.err
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } && {
14505 test -z "$ac_c_werror_flag" ||
14506 test ! -s conftest.err
14507 } && test -s conftest.$ac_objext; then
14508 pgac_cv_funcname_function_support=yes
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 pgac_cv_funcname_function_support=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14519 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14520 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_FUNCNAME__FUNCTION 1
14528 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14530 if test "${ac_cv_struct_tm+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 cat >conftest.$ac_ext <<_ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 #include <sys/types.h>
14546 int *p = &tm.tm_sec;
14552 rm -f conftest.$ac_objext
14553 if { (ac_try="$ac_compile"
14554 case "(($ac_try" in
14555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14556 *) ac_try_echo
=$ac_try;;
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_compile") 2>conftest.er1
14561 grep -v '^ *+' conftest.er1
>conftest.err
14563 cat conftest.err
>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } && {
14566 test -z "$ac_c_werror_flag" ||
14567 test ! -s conftest.err
14568 } && test -s conftest.
$ac_objext; then
14569 ac_cv_struct_tm
=time.h
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.
$ac_ext >&5
14574 ac_cv_struct_tm
=sys
/time.h
14577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14579 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14580 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14581 if test $ac_cv_struct_tm = sys
/time.h
; then
14583 cat >>confdefs.h
<<\_ACEOF
14584 #define TM_IN_SYS_TIME 1
14589 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14590 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14591 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 cat >conftest.
$ac_ext <<_ACEOF
14597 cat confdefs.h
>>conftest.
$ac_ext
14598 cat >>conftest.
$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600 #include <sys/types.h>
14601 #include <$ac_cv_struct_tm>
14607 static struct tm ac_aggr;
14608 if (ac_aggr.tm_zone)
14614 rm -f conftest.
$ac_objext
14615 if { (ac_try
="$ac_compile"
14616 case "(($ac_try" in
14617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14618 *) ac_try_echo=$ac_try;;
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621 (eval "$ac_compile") 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } && {
14628 test -z "$ac_c_werror_flag" ||
14629 test ! -s conftest.err
14630 } && test -s conftest.$ac_objext; then
14631 ac_cv_member_struct_tm_tm_zone=yes
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 cat >conftest.$ac_ext <<_ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642 #include <sys/types.h>
14643 #include <$ac_cv_struct_tm>
14649 static struct tm ac_aggr;
14650 if (sizeof ac_aggr.tm_zone)
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_tm_tm_zone
=yes
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.
$ac_ext >&5
14678 ac_cv_member_struct_tm_tm_zone
=no
14681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14687 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14688 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14690 cat >>confdefs.h
<<_ACEOF
14691 #define HAVE_STRUCT_TM_TM_ZONE 1
14697 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14699 cat >>confdefs.h
<<\_ACEOF
14700 #define HAVE_TM_ZONE 1
14704 { echo "$as_me:$LINENO: checking for tzname" >&5
14705 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14706 if test "${ac_cv_var_tzname+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14709 cat >conftest.
$ac_ext <<_ACEOF
14712 cat confdefs.h
>>conftest.
$ac_ext
14713 cat >>conftest.
$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14716 #ifndef tzname /* For SGI. */
14717 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14728 rm -f conftest.
$ac_objext conftest
$ac_exeext
14729 if { (ac_try
="$ac_link"
14730 case "(($ac_try" in
14731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_link") 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && {
14742 test -z "$ac_c_werror_flag" ||
14743 test ! -s conftest.err
14744 } && test -s conftest$ac_exeext &&
14745 $as_test_x conftest$ac_exeext; then
14746 ac_cv_var_tzname=yes
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 ac_cv_var_tzname=no
14754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14755 conftest$ac_exeext conftest.$ac_ext
14757 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14758 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14759 if test $ac_cv_var_tzname = yes; then
14761 cat >>confdefs.h <<\_ACEOF
14762 #define HAVE_TZNAME 1
14767 { echo "$as_me:$LINENO: checking for union semun" >&5
14768 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14769 if test "${ac_cv_type_union_semun+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 #include <sys/types.h>
14779 #include <sys/ipc.h>
14780 #include <sys/sem.h>
14782 typedef union semun ac__type_new_;
14786 if ((ac__type_new_ *) 0)
14788 if (sizeof (ac__type_new_))
14794 rm -f conftest.$ac_objext
14795 if { (ac_try="$ac_compile"
14796 case "(($ac_try" in
14797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14798 *) ac_try_echo
=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1
>conftest.err
14805 cat conftest.err
>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.
$ac_objext; then
14811 ac_cv_type_union_semun
=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.
$ac_ext >&5
14816 ac_cv_type_union_semun
=no
14819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14821 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14822 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14823 if test $ac_cv_type_union_semun = yes; then
14825 cat >>confdefs.h
<<_ACEOF
14826 #define HAVE_UNION_SEMUN 1
14832 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14833 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14834 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 cat >conftest.
$ac_ext <<_ACEOF
14840 cat confdefs.h
>>conftest.
$ac_ext
14841 cat >>conftest.
$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 #include <sys/types.h>
14844 #ifdef HAVE_SYS_UN_H
14845 #include <sys/un.h>
14849 typedef struct sockaddr_un ac__type_new_;
14853 if ((ac__type_new_ *) 0)
14855 if (sizeof (ac__type_new_))
14861 rm -f conftest.
$ac_objext
14862 if { (ac_try
="$ac_compile"
14863 case "(($ac_try" in
14864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14865 *) ac_try_echo=$ac_try;;
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868 (eval "$ac_compile") 2>conftest.er1
14870 grep -v '^ *+' conftest.er1 >conftest.err
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && {
14875 test -z "$ac_c_werror_flag" ||
14876 test ! -s conftest.err
14877 } && test -s conftest.$ac_objext; then
14878 ac_cv_type_struct_sockaddr_un=yes
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 ac_cv_type_struct_sockaddr_un=no
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14889 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14890 if test $ac_cv_type_struct_sockaddr_un = yes; then
14892 cat >>confdefs.h <<_ACEOF
14893 #define HAVE_STRUCT_SOCKADDR_UN 1
14897 cat >>confdefs.h <<\_ACEOF
14898 #define HAVE_UNIX_SOCKETS 1
14903 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14904 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14905 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 cat >conftest.$ac_ext <<_ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 #include <sys/types.h>
14915 #ifdef HAVE_SYS_SOCKET_H
14916 #include <sys/socket.h>
14920 typedef struct sockaddr_storage ac__type_new_;
14924 if ((ac__type_new_ *) 0)
14926 if (sizeof (ac__type_new_))
14932 rm -f conftest.$ac_objext
14933 if { (ac_try="$ac_compile"
14934 case "(($ac_try" in
14935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14936 *) ac_try_echo
=$ac_try;;
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_compile") 2>conftest.er1
14941 grep -v '^ *+' conftest.er1
>conftest.err
14943 cat conftest.err
>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } && {
14946 test -z "$ac_c_werror_flag" ||
14947 test ! -s conftest.err
14948 } && test -s conftest.
$ac_objext; then
14949 ac_cv_type_struct_sockaddr_storage
=yes
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.
$ac_ext >&5
14954 ac_cv_type_struct_sockaddr_storage
=no
14957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14960 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14961 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14963 cat >>confdefs.h
<<_ACEOF
14964 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14970 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14971 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14972 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 cat >conftest.
$ac_ext <<_ACEOF
14978 cat confdefs.h
>>conftest.
$ac_ext
14979 cat >>conftest.
$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 #include <sys/types.h>
14982 #ifdef HAVE_SYS_SOCKET_H
14983 #include <sys/socket.h>
14990 static struct sockaddr_storage ac_aggr;
14991 if (ac_aggr.ss_family)
14997 rm -f conftest.
$ac_objext
14998 if { (ac_try
="$ac_compile"
14999 case "(($ac_try" in
15000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_compile") 2>conftest.er1
15006 grep -v '^ *+' conftest.er1 >conftest.err
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } && {
15011 test -z "$ac_c_werror_flag" ||
15012 test ! -s conftest.err
15013 } && test -s conftest.$ac_objext; then
15014 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15019 cat >conftest.$ac_ext <<_ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 #include <sys/types.h>
15026 #ifdef HAVE_SYS_SOCKET_H
15027 #include <sys/socket.h>
15034 static struct sockaddr_storage ac_aggr;
15035 if (sizeof ac_aggr.ss_family)
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15045 *) ac_try_echo
=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_compile") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1
>conftest.err
15052 cat conftest.err
>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest.
$ac_objext; then
15058 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.
$ac_ext >&5
15063 ac_cv_member_struct_sockaddr_storage_ss_family
=no
15066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15071 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15072 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15073 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
15075 cat >>confdefs.h
<<_ACEOF
15076 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15081 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15082 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
15083 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 cat >conftest.
$ac_ext <<_ACEOF
15089 cat confdefs.h
>>conftest.
$ac_ext
15090 cat >>conftest.
$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <sys/types.h>
15093 #ifdef HAVE_SYS_SOCKET_H
15094 #include <sys/socket.h>
15101 static struct sockaddr_storage ac_aggr;
15102 if (ac_aggr.__ss_family)
15108 rm -f conftest.
$ac_objext
15109 if { (ac_try
="$ac_compile"
15110 case "(($ac_try" in
15111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_compile") 2>conftest.er1
15117 grep -v '^ *+' conftest.er1 >conftest.err
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && {
15122 test -z "$ac_c_werror_flag" ||
15123 test ! -s conftest.err
15124 } && test -s conftest.$ac_objext; then
15125 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 cat >conftest.$ac_ext <<_ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 #include <sys/types.h>
15137 #ifdef HAVE_SYS_SOCKET_H
15138 #include <sys/socket.h>
15145 static struct sockaddr_storage ac_aggr;
15146 if (sizeof ac_aggr.__ss_family)
15152 rm -f conftest.$ac_objext
15153 if { (ac_try="$ac_compile"
15154 case "(($ac_try" in
15155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15156 *) ac_try_echo
=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_compile") 2>conftest.er1
15161 grep -v '^ *+' conftest.er1
>conftest.err
15163 cat conftest.err
>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest.
$ac_objext; then
15169 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.
$ac_ext >&5
15174 ac_cv_member_struct_sockaddr_storage___ss_family
=no
15177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15182 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15183 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15184 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
15186 cat >>confdefs.h
<<_ACEOF
15187 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15192 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15193 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
15194 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 cat >conftest.
$ac_ext <<_ACEOF
15200 cat confdefs.h
>>conftest.
$ac_ext
15201 cat >>conftest.
$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 #include <sys/types.h>
15204 #ifdef HAVE_SYS_SOCKET_H
15205 #include <sys/socket.h>
15212 static struct sockaddr_storage ac_aggr;
15213 if (ac_aggr.ss_len)
15219 rm -f conftest.
$ac_objext
15220 if { (ac_try
="$ac_compile"
15221 case "(($ac_try" in
15222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_compile") 2>conftest.er1
15228 grep -v '^ *+' conftest.er1 >conftest.err
15230 cat conftest.err >&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } && {
15233 test -z "$ac_c_werror_flag" ||
15234 test ! -s conftest.err
15235 } && test -s conftest.$ac_objext; then
15236 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 #include <sys/types.h>
15248 #ifdef HAVE_SYS_SOCKET_H
15249 #include <sys/socket.h>
15256 static struct sockaddr_storage ac_aggr;
15257 if (sizeof ac_aggr.ss_len)
15263 rm -f conftest.$ac_objext
15264 if { (ac_try="$ac_compile"
15265 case "(($ac_try" in
15266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15267 *) ac_try_echo
=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_compile") 2>conftest.er1
15272 grep -v '^ *+' conftest.er1
>conftest.err
15274 cat conftest.err
>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } && {
15277 test -z "$ac_c_werror_flag" ||
15278 test ! -s conftest.err
15279 } && test -s conftest.
$ac_objext; then
15280 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.
$ac_ext >&5
15285 ac_cv_member_struct_sockaddr_storage_ss_len
=no
15288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15293 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15294 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15295 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
15297 cat >>confdefs.h
<<_ACEOF
15298 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15303 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15304 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
15305 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 cat >conftest.
$ac_ext <<_ACEOF
15311 cat confdefs.h
>>conftest.
$ac_ext
15312 cat >>conftest.
$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <sys/types.h>
15315 #ifdef HAVE_SYS_SOCKET_H
15316 #include <sys/socket.h>
15323 static struct sockaddr_storage ac_aggr;
15324 if (ac_aggr.__ss_len)
15330 rm -f conftest.
$ac_objext
15331 if { (ac_try
="$ac_compile"
15332 case "(($ac_try" in
15333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_compile") 2>conftest.er1
15339 grep -v '^ *+' conftest.er1 >conftest.err
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest.$ac_objext; then
15347 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 cat >conftest.$ac_ext <<_ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15358 #include <sys/types.h>
15359 #ifdef HAVE_SYS_SOCKET_H
15360 #include <sys/socket.h>
15367 static struct sockaddr_storage ac_aggr;
15368 if (sizeof ac_aggr.__ss_len)
15374 rm -f conftest.$ac_objext
15375 if { (ac_try="$ac_compile"
15376 case "(($ac_try" in
15377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15378 *) ac_try_echo
=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_compile") 2>conftest.er1
15383 grep -v '^ *+' conftest.er1
>conftest.err
15385 cat conftest.err
>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } && {
15388 test -z "$ac_c_werror_flag" ||
15389 test ! -s conftest.err
15390 } && test -s conftest.
$ac_objext; then
15391 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.
$ac_ext >&5
15396 ac_cv_member_struct_sockaddr_storage___ss_len
=no
15399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15404 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15405 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15406 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
15408 cat >>confdefs.h
<<_ACEOF
15409 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15414 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15415 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
15416 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 cat >conftest.
$ac_ext <<_ACEOF
15422 cat confdefs.h
>>conftest.
$ac_ext
15423 cat >>conftest.
$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 #include <sys/types.h>
15426 #ifdef HAVE_SYS_SOCKET_H
15427 #include <sys/socket.h>
15434 static struct sockaddr ac_aggr;
15435 if (ac_aggr.sa_len)
15441 rm -f conftest.
$ac_objext
15442 if { (ac_try
="$ac_compile"
15443 case "(($ac_try" in
15444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_compile") 2>conftest.er1
15450 grep -v '^ *+' conftest.er1 >conftest.err
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_c_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest.$ac_objext; then
15458 ac_cv_member_struct_sockaddr_sa_len=yes
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <sys/types.h>
15470 #ifdef HAVE_SYS_SOCKET_H
15471 #include <sys/socket.h>
15478 static struct sockaddr ac_aggr;
15479 if (sizeof ac_aggr.sa_len)
15485 rm -f conftest.$ac_objext
15486 if { (ac_try="$ac_compile"
15487 case "(($ac_try" in
15488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15489 *) ac_try_echo
=$ac_try;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_compile") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1
>conftest.err
15496 cat conftest.err
>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest.
$ac_objext; then
15502 ac_cv_member_struct_sockaddr_sa_len
=yes
15504 echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.
$ac_ext >&5
15507 ac_cv_member_struct_sockaddr_sa_len
=no
15510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15515 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15516 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15517 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15519 cat >>confdefs.h
<<_ACEOF
15520 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15526 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15527 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15528 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 cat >conftest.
$ac_ext <<_ACEOF
15534 cat confdefs.h
>>conftest.
$ac_ext
15535 cat >>conftest.
$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 #include <sys/types.h>
15538 #include <sys/socket.h>
15542 typedef struct addrinfo ac__type_new_;
15546 if ((ac__type_new_ *) 0)
15548 if (sizeof (ac__type_new_))
15554 rm -f conftest.
$ac_objext
15555 if { (ac_try
="$ac_compile"
15556 case "(($ac_try" in
15557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_compile") 2>conftest.er1
15563 grep -v '^ *+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest.$ac_objext; then
15571 ac_cv_type_struct_addrinfo=yes
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 ac_cv_type_struct_addrinfo=no
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15582 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15583 if test $ac_cv_type_struct_addrinfo = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define HAVE_STRUCT_ADDRINFO 1
15593 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15594 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15595 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 #include <sys/param.h>
15605 #include <sys/types.h>
15606 #include <sys/socket.h>
15607 #include <sys/ucred.h>
15609 typedef struct cmsgcred ac__type_new_;
15613 if ((ac__type_new_ *) 0)
15615 if (sizeof (ac__type_new_))
15621 rm -f conftest.$ac_objext
15622 if { (ac_try="$ac_compile"
15623 case "(($ac_try" in
15624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15625 *) ac_try_echo
=$ac_try;;
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_compile") 2>conftest.er1
15630 grep -v '^ *+' conftest.er1
>conftest.err
15632 cat conftest.err
>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } && {
15635 test -z "$ac_c_werror_flag" ||
15636 test ! -s conftest.err
15637 } && test -s conftest.
$ac_objext; then
15638 ac_cv_type_struct_cmsgcred
=yes
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.
$ac_ext >&5
15643 ac_cv_type_struct_cmsgcred
=no
15646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15648 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15649 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15650 if test $ac_cv_type_struct_cmsgcred = yes; then
15652 cat >>confdefs.h
<<_ACEOF
15653 #define HAVE_STRUCT_CMSGCRED 1
15658 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15659 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15660 if test "${ac_cv_type_struct_fcred+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 cat >conftest.
$ac_ext <<_ACEOF
15666 cat confdefs.h
>>conftest.
$ac_ext
15667 cat >>conftest.
$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 #include <sys/param.h>
15670 #include <sys/types.h>
15671 #include <sys/socket.h>
15672 #include <sys/ucred.h>
15674 typedef struct fcred ac__type_new_;
15678 if ((ac__type_new_ *) 0)
15680 if (sizeof (ac__type_new_))
15686 rm -f conftest.
$ac_objext
15687 if { (ac_try
="$ac_compile"
15688 case "(($ac_try" in
15689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_compile") 2>conftest.er1
15695 grep -v '^ *+' conftest.er1 >conftest.err
15697 cat conftest.err >&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } && {
15700 test -z "$ac_c_werror_flag" ||
15701 test ! -s conftest.err
15702 } && test -s conftest.$ac_objext; then
15703 ac_cv_type_struct_fcred=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_cv_type_struct_fcred=no
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15714 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15715 if test $ac_cv_type_struct_fcred = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define HAVE_STRUCT_FCRED 1
15723 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15724 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15725 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 cat >conftest.$ac_ext <<_ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 #include <sys/param.h>
15735 #include <sys/types.h>
15736 #include <sys/socket.h>
15737 #include <sys/ucred.h>
15739 typedef struct sockcred ac__type_new_;
15743 if ((ac__type_new_ *) 0)
15745 if (sizeof (ac__type_new_))
15751 rm -f conftest.$ac_objext
15752 if { (ac_try="$ac_compile"
15753 case "(($ac_try" in
15754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15755 *) ac_try_echo
=$ac_try;;
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_compile") 2>conftest.er1
15760 grep -v '^ *+' conftest.er1
>conftest.err
15762 cat conftest.err
>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } && {
15765 test -z "$ac_c_werror_flag" ||
15766 test ! -s conftest.err
15767 } && test -s conftest.
$ac_objext; then
15768 ac_cv_type_struct_sockcred
=yes
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.
$ac_ext >&5
15773 ac_cv_type_struct_sockcred
=no
15776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15779 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15780 if test $ac_cv_type_struct_sockcred = yes; then
15782 cat >>confdefs.h
<<_ACEOF
15783 #define HAVE_STRUCT_SOCKCRED 1
15790 { echo "$as_me:$LINENO: checking for struct option" >&5
15791 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15792 if test "${ac_cv_type_struct_option+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 cat >conftest.
$ac_ext <<_ACEOF
15798 cat confdefs.h
>>conftest.
$ac_ext
15799 cat >>conftest.
$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 #ifdef HAVE_GETOPT_H
15802 #include <getopt.h>
15805 typedef struct option ac__type_new_;
15809 if ((ac__type_new_ *) 0)
15811 if (sizeof (ac__type_new_))
15817 rm -f conftest.
$ac_objext
15818 if { (ac_try
="$ac_compile"
15819 case "(($ac_try" in
15820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_compile") 2>conftest.er1
15826 grep -v '^ *+' conftest.er1 >conftest.err
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } && {
15831 test -z "$ac_c_werror_flag" ||
15832 test ! -s conftest.err
15833 } && test -s conftest.$ac_objext; then
15834 ac_cv_type_struct_option=yes
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_cv_type_struct_option=no
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15845 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15846 if test $ac_cv_type_struct_option = yes; then
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_STRUCT_OPTION 1
15856 if test "$with_zlib" = yes; then
15857 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15858 # did not). While we could work around the lack of z_streamp, it
15859 # seems unwise to encourage people to use such old zlib versions...
15860 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15861 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15862 if test "${ac_cv_type_z_streamp+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 cat >conftest.$ac_ext <<_ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15873 typedef z_streamp ac__type_new_;
15877 if ((ac__type_new_ *) 0)
15879 if (sizeof (ac__type_new_))
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
15887 case "(($ac_try" in
15888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15889 *) ac_try_echo
=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_compile") 2>conftest.er1
15894 grep -v '^ *+' conftest.er1
>conftest.err
15896 cat conftest.err
>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } && {
15899 test -z "$ac_c_werror_flag" ||
15900 test ! -s conftest.err
15901 } && test -s conftest.
$ac_objext; then
15902 ac_cv_type_z_streamp
=yes
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.
$ac_ext >&5
15907 ac_cv_type_z_streamp
=no
15910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15912 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15913 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15914 if test $ac_cv_type_z_streamp = yes; then
15917 { { echo "$as_me:$LINENO: error: zlib version is too old
15918 Use --without-zlib to disable zlib support." >&5
15919 echo "$as_me: error: zlib version is too old
15920 Use --without-zlib to disable zlib support." >&2;}
15921 { (exit 1); exit 1; }; }
15926 if test "$with_krb5" = yes; then
15927 # Check for differences between MIT and Heimdal (KTH) releases
15928 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15929 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15930 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 cat >conftest.
$ac_ext <<_ACEOF
15936 cat confdefs.h
>>conftest.
$ac_ext
15937 cat >>conftest.
$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15944 static krb5_ticket ac_aggr;
15945 if (ac_aggr.enc_part2)
15951 rm -f conftest.
$ac_objext
15952 if { (ac_try
="$ac_compile"
15953 case "(($ac_try" in
15954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_compile") 2>conftest.er1
15960 grep -v '^ *+' conftest.er1 >conftest.err
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } && {
15965 test -z "$ac_c_werror_flag" ||
15966 test ! -s conftest.err
15967 } && test -s conftest.$ac_objext; then
15968 ac_cv_member_krb5_ticket_enc_part2=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15984 static krb5_ticket ac_aggr;
15985 if (sizeof ac_aggr.enc_part2)
15991 rm -f conftest.$ac_objext
15992 if { (ac_try="$ac_compile"
15993 case "(($ac_try" in
15994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15995 *) ac_try_echo
=$ac_try;;
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_compile") 2>conftest.er1
16000 grep -v '^ *+' conftest.er1
>conftest.err
16002 cat conftest.err
>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest.
$ac_objext; then
16008 ac_cv_member_krb5_ticket_enc_part2
=yes
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.
$ac_ext >&5
16013 ac_cv_member_krb5_ticket_enc_part2
=no
16016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16021 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16022 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16023 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
16025 cat >>confdefs.h
<<_ACEOF
16026 #define HAVE_KRB5_TICKET_ENC_PART2 1
16031 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
16032 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
16033 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 cat >conftest.
$ac_ext <<_ACEOF
16039 cat confdefs.h
>>conftest.
$ac_ext
16040 cat >>conftest.
$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16047 static krb5_ticket ac_aggr;
16048 if (ac_aggr.client)
16054 rm -f conftest.
$ac_objext
16055 if { (ac_try
="$ac_compile"
16056 case "(($ac_try" in
16057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_compile") 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest.$ac_objext; then
16071 ac_cv_member_krb5_ticket_client=yes
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16087 static krb5_ticket ac_aggr;
16088 if (sizeof ac_aggr.client)
16094 rm -f conftest.$ac_objext
16095 if { (ac_try="$ac_compile"
16096 case "(($ac_try" in
16097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16098 *) ac_try_echo
=$ac_try;;
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_compile") 2>conftest.er1
16103 grep -v '^ *+' conftest.er1
>conftest.err
16105 cat conftest.err
>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } && {
16108 test -z "$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 } && test -s conftest.
$ac_objext; then
16111 ac_cv_member_krb5_ticket_client
=yes
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.
$ac_ext >&5
16116 ac_cv_member_krb5_ticket_client
=no
16119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16124 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
16125 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
16126 if test $ac_cv_member_krb5_ticket_client = yes; then
16128 cat >>confdefs.h
<<_ACEOF
16129 #define HAVE_KRB5_TICKET_CLIENT 1
16134 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
16135 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
16136 { (exit 1); exit 1; }; }
16141 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
16142 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
16143 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16146 cat >conftest.
$ac_ext <<_ACEOF
16149 cat confdefs.h
>>conftest.
$ac_ext
16150 cat >>conftest.
$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16157 static krb5_error ac_aggr;
16158 if (ac_aggr.text.data)
16164 rm -f conftest.
$ac_objext
16165 if { (ac_try
="$ac_compile"
16166 case "(($ac_try" in
16167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_compile") 2>conftest.er1
16173 grep -v '^ *+' conftest.er1 >conftest.err
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } && {
16178 test -z "$ac_c_werror_flag" ||
16179 test ! -s conftest.err
16180 } && test -s conftest.$ac_objext; then
16181 ac_cv_member_krb5_error_text_data=yes
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 cat >conftest.$ac_ext <<_ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16197 static krb5_error ac_aggr;
16198 if (sizeof ac_aggr.text.data)
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16208 *) ac_try_echo
=$ac_try;;
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_compile") 2>conftest.er1
16213 grep -v '^ *+' conftest.er1
>conftest.err
16215 cat conftest.err
>&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } && {
16218 test -z "$ac_c_werror_flag" ||
16219 test ! -s conftest.err
16220 } && test -s conftest.
$ac_objext; then
16221 ac_cv_member_krb5_error_text_data
=yes
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.
$ac_ext >&5
16226 ac_cv_member_krb5_error_text_data
=no
16229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16234 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
16235 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
16236 if test $ac_cv_member_krb5_error_text_data = yes; then
16238 cat >>confdefs.h
<<_ACEOF
16239 #define HAVE_KRB5_ERROR_TEXT_DATA 1
16244 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
16245 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
16246 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
16247 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 cat >conftest.
$ac_ext <<_ACEOF
16252 cat confdefs.h
>>conftest.
$ac_ext
16253 cat >>conftest.
$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16260 static krb5_error ac_aggr;
16261 if (ac_aggr.e_data)
16267 rm -f conftest.
$ac_objext
16268 if { (ac_try
="$ac_compile"
16269 case "(($ac_try" in
16270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_compile") 2>conftest.er1
16276 grep -v '^ *+' conftest.er1 >conftest.err
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } && {
16281 test -z "$ac_c_werror_flag" ||
16282 test ! -s conftest.err
16283 } && test -s conftest.$ac_objext; then
16284 ac_cv_member_krb5_error_e_data=yes
16286 echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16300 static krb5_error ac_aggr;
16301 if (sizeof ac_aggr.e_data)
16307 rm -f conftest.$ac_objext
16308 if { (ac_try="$ac_compile"
16309 case "(($ac_try" in
16310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16311 *) ac_try_echo
=$ac_try;;
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_compile") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1
>conftest.err
16318 cat conftest.err
>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest.
$ac_objext; then
16324 ac_cv_member_krb5_error_e_data
=yes
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.
$ac_ext >&5
16329 ac_cv_member_krb5_error_e_data
=no
16332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16337 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
16338 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
16339 if test $ac_cv_member_krb5_error_e_data = yes; then
16341 cat >>confdefs.h
<<_ACEOF
16342 #define HAVE_KRB5_ERROR_E_DATA 1
16347 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16348 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16349 { (exit 1); exit 1; }; }
16355 # Win32 requires headers to be loaded for __stdcall, so can't use
16356 # AC_CHECK_FUNCS here.
16357 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16358 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
16359 cat >conftest.
$ac_ext <<_ACEOF
16362 cat confdefs.h
>>conftest.
$ac_ext
16363 cat >>conftest.
$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16369 krb5_free_unparsed_name(NULL,NULL);
16374 rm -f conftest.
$ac_objext conftest
$ac_exeext
16375 if { (ac_try
="$ac_link"
16376 case "(($ac_try" in
16377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_link") 2>conftest.er1
16383 grep -v '^ *+' conftest.er1 >conftest.err
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } && {
16388 test -z "$ac_c_werror_flag" ||
16389 test ! -s conftest.err
16390 } && test -s conftest$ac_exeext &&
16391 $as_test_x conftest$ac_exeext; then
16393 cat >>confdefs.h <<\_ACEOF
16394 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
16397 { echo "$as_me:$LINENO: result: yes" >&5
16398 echo "${ECHO_T}yes" >&6; }
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 { echo "$as_me:$LINENO: result: no" >&5
16404 echo "${ECHO_T}no" >&6; }
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408 conftest$ac_exeext conftest.$ac_ext
16413 ## Functions, global variables
16416 { echo "$as_me:$LINENO: checking for int timezone" >&5
16417 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
16418 if test "${pgac_cv_var_int_timezone+set}" = set; then
16419 echo $ECHO_N "(cached) $ECHO_C" >&6
16421 cat >conftest.$ac_ext <<_ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h. */
16433 res = timezone / 60;
16435 res = _timezone / 60;
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (ac_try="$ac_link"
16443 case "(($ac_try" in
16444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16445 *) ac_try_echo
=$ac_try;;
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_link") 2>conftest.er1
16450 grep -v '^ *+' conftest.er1
>conftest.err
16452 cat conftest.err
>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } && {
16455 test -z "$ac_c_werror_flag" ||
16456 test ! -s conftest.err
16457 } && test -s conftest
$ac_exeext &&
16458 $as_test_x conftest
$ac_exeext; then
16459 pgac_cv_var_int_timezone
=yes
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.
$ac_ext >&5
16464 pgac_cv_var_int_timezone
=no
16467 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16468 conftest
$ac_exeext conftest.
$ac_ext
16470 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16471 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16472 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
16474 cat >>confdefs.h
<<\_ACEOF
16475 #define HAVE_INT_TIMEZONE
16479 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16480 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16481 if test "${ac_cv_func_accept_return+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 if test "${ac_cv_func_accept_arg1+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 if test "${ac_cv_func_accept_arg2+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 if test "${ac_cv_func_accept_arg3+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 for ac_cv_func_accept_return
in 'int' 'unsigned int PASCAL'; do
16494 for ac_cv_func_accept_arg1
in 'int' 'unsigned int'; do
16495 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16496 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16497 cat >conftest.
$ac_ext <<_ACEOF
16500 cat confdefs.h
>>conftest.
$ac_ext
16501 cat >>conftest.
$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 #ifdef HAVE_SYS_TYPES_H
16504 #include <sys/types.h>
16506 #ifdef HAVE_SYS_SOCKET_H
16507 #include <sys/socket.h>
16509 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16518 rm -f conftest.
$ac_objext
16519 if { (ac_try
="$ac_compile"
16520 case "(($ac_try" in
16521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_compile") 2>conftest.er1
16527 grep -v '^ *+' conftest.er1 >conftest.err
16529 cat conftest.err >&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest.$ac_objext; then
16535 ac_not_found=no; break 4
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548 if test "$ac_not_found" = yes; then
16549 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16550 echo "$as_me: error: could not determine argument types" >&2;}
16551 { (exit 1); exit 1; }; }
16553 if test "$ac_cv_func_accept_arg3" = "void"; then
16554 ac_cv_func_accept_arg3=int
16564 { 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
16565 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16567 cat >>confdefs.h <<_ACEOF
16568 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16572 cat >>confdefs.h <<_ACEOF
16573 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16577 cat >>confdefs.h <<_ACEOF
16578 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16582 cat >>confdefs.h <<_ACEOF
16583 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16587 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16588 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16589 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 cat >conftest.$ac_ext <<_ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <sys/time.h>
16602 struct timeval *tp;
16603 struct timezone *tzp;
16604 gettimeofday(tp,tzp);
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16613 *) ac_try_echo
=$ac_try;;
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_compile") 2>conftest.er1
16618 grep -v '^ *+' conftest.er1
>conftest.err
16620 cat conftest.err
>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && {
16623 test -z "$ac_c_werror_flag" ||
16624 test ! -s conftest.err
16625 } && test -s conftest.
$ac_objext; then
16626 pgac_cv_func_gettimeofday_1arg
=no
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.
$ac_ext >&5
16631 pgac_cv_func_gettimeofday_1arg
=yes
16634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16636 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16637 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16638 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
16640 cat >>confdefs.h
<<\_ACEOF
16641 #define GETTIMEOFDAY_1ARG
16669 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
16671 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16674 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 cat >conftest.
$ac_ext <<_ACEOF
16680 cat confdefs.h
>>conftest.
$ac_ext
16681 cat >>conftest.
$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16685 #define $ac_func innocuous_$ac_func
16687 /* System header to define __stub macros and hopefully few prototypes,
16688 which can conflict with char $ac_func (); below.
16689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16690 <limits.h> exists even on freestanding compilers. */
16693 # include <limits.h>
16695 # include <assert.h>
16700 /* Override any GCC internal prototype to avoid an error.
16701 Use char because int might match the return type of a GCC
16702 builtin and then its argument prototype would still apply. */
16707 /* The GNU C library defines this for functions which it implements
16708 to always fail with ENOSYS. Some functions are actually named
16709 something starting with __ and the normal name is an alias. */
16710 #if defined __stub_$ac_func || defined __stub___$ac_func
16717 return $ac_func ();
16722 rm -f conftest.
$ac_objext conftest
$ac_exeext
16723 if { (ac_try
="$ac_link"
16724 case "(($ac_try" in
16725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_link") 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest$ac_exeext &&
16739 $as_test_x conftest$ac_exeext; then
16740 eval "$as_ac_var=yes"
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 eval "$as_ac_var=no"
16748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16749 conftest$ac_exeext conftest.$ac_ext
16751 ac_res=`eval echo '${'$as_ac_var'}'`
16752 { echo "$as_me:$LINENO: result: $ac_res" >&5
16753 echo "${ECHO_T}$ac_res" >&6; }
16754 if test `eval echo '${'$as_ac_var'}'` = yes; then
16755 cat >>confdefs.h <<_ACEOF
16756 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16763 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16764 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16765 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <unistd.h>
16787 rm -f conftest.$ac_objext
16788 if { (ac_try="$ac_compile"
16789 case "(($ac_try" in
16790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16791 *) ac_try_echo
=$ac_try;;
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_compile") 2>conftest.er1
16796 grep -v '^ *+' conftest.er1
>conftest.err
16798 cat conftest.err
>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } && {
16801 test -z "$ac_c_werror_flag" ||
16802 test ! -s conftest.err
16803 } && test -s conftest.
$ac_objext; then
16804 ac_cv_have_decl_fdatasync
=yes
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.
$ac_ext >&5
16809 ac_cv_have_decl_fdatasync
=no
16812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16814 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16815 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16816 if test $ac_cv_have_decl_fdatasync = yes; then
16818 cat >>confdefs.h
<<_ACEOF
16819 #define HAVE_DECL_FDATASYNC 1
16824 cat >>confdefs.h
<<_ACEOF
16825 #define HAVE_DECL_FDATASYNC 0
16832 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16833 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16834 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 cat >conftest.
$ac_ext <<_ACEOF
16840 cat confdefs.h
>>conftest.
$ac_ext
16841 cat >>conftest.
$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16848 #ifndef posix_fadvise
16849 (void) posix_fadvise;
16856 rm -f conftest.
$ac_objext
16857 if { (ac_try
="$ac_compile"
16858 case "(($ac_try" in
16859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_compile") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1 >conftest.err
16867 cat conftest.err >&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } && {
16870 test -z "$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 } && test -s conftest.$ac_objext; then
16873 ac_cv_have_decl_posix_fadvise=yes
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 ac_cv_have_decl_posix_fadvise=no
16881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16884 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16885 if test $ac_cv_have_decl_posix_fadvise = yes; then
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_DECL_POSIX_FADVISE 1
16893 cat >>confdefs.h <<_ACEOF
16894 #define HAVE_DECL_POSIX_FADVISE 0
16901 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16902 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16903 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 $ac_includes_default
16924 rm -f conftest.$ac_objext
16925 if { (ac_try="$ac_compile"
16926 case "(($ac_try" in
16927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16928 *) ac_try_echo
=$ac_try;;
16930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931 (eval "$ac_compile") 2>conftest.er1
16933 grep -v '^ *+' conftest.er1
>conftest.err
16935 cat conftest.err
>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && {
16938 test -z "$ac_c_werror_flag" ||
16939 test ! -s conftest.err
16940 } && test -s conftest.
$ac_objext; then
16941 ac_cv_have_decl_strlcat
=yes
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.
$ac_ext >&5
16946 ac_cv_have_decl_strlcat
=no
16949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16951 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16952 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16953 if test $ac_cv_have_decl_strlcat = yes; then
16955 cat >>confdefs.h
<<_ACEOF
16956 #define HAVE_DECL_STRLCAT 1
16961 cat >>confdefs.h
<<_ACEOF
16962 #define HAVE_DECL_STRLCAT 0
16967 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16968 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16969 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 cat >conftest.
$ac_ext <<_ACEOF
16975 cat confdefs.h
>>conftest.
$ac_ext
16976 cat >>conftest.
$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16990 rm -f conftest.
$ac_objext
16991 if { (ac_try
="$ac_compile"
16992 case "(($ac_try" in
16993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_compile") 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } && {
17004 test -z "$ac_c_werror_flag" ||
17005 test ! -s conftest.err
17006 } && test -s conftest.$ac_objext; then
17007 ac_cv_have_decl_strlcpy=yes
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_cv_have_decl_strlcpy=no
17015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
17018 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
17019 if test $ac_cv_have_decl_strlcpy = yes; then
17021 cat >>confdefs.h <<_ACEOF
17022 #define HAVE_DECL_STRLCPY 1
17027 cat >>confdefs.h <<_ACEOF
17028 #define HAVE_DECL_STRLCPY 0
17035 # This is probably only present on Darwin, but may as well check always
17036 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
17037 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
17038 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17052 #ifndef F_FULLFSYNC
17053 (void) F_FULLFSYNC;
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17064 *) ac_try_echo
=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_compile") 2>conftest.er1
17069 grep -v '^ *+' conftest.er1
>conftest.err
17071 cat conftest.err
>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } && {
17074 test -z "$ac_c_werror_flag" ||
17075 test ! -s conftest.err
17076 } && test -s conftest.
$ac_objext; then
17077 ac_cv_have_decl_F_FULLFSYNC
=yes
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.
$ac_ext >&5
17082 ac_cv_have_decl_F_FULLFSYNC
=no
17085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17087 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
17088 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
17089 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
17091 cat >>confdefs.h
<<_ACEOF
17092 #define HAVE_DECL_F_FULLFSYNC 1
17097 cat >>confdefs.h
<<_ACEOF
17098 #define HAVE_DECL_F_FULLFSYNC 0
17107 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17108 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
17109 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 cat >conftest.
$ac_ext <<_ACEOF
17115 cat confdefs.h
>>conftest.
$ac_ext
17116 cat >>conftest.
$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17118 $ac_includes_default
17119 #include <netinet/in.h>
17121 typedef struct sockaddr_in6 ac__type_new_;
17125 if ((ac__type_new_ *) 0)
17127 if (sizeof (ac__type_new_))
17133 rm -f conftest.
$ac_objext
17134 if { (ac_try
="$ac_compile"
17135 case "(($ac_try" in
17136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_compile") 2>conftest.er1
17142 grep -v '^ *+' conftest.er1 >conftest.err
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } && {
17147 test -z "$ac_c_werror_flag" ||
17148 test ! -s conftest.err
17149 } && test -s conftest.$ac_objext; then
17150 ac_cv_type_struct_sockaddr_in6=yes
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 ac_cv_type_struct_sockaddr_in6=no
17158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17160 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
17161 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
17162 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
17164 cat >>confdefs.h <<\_ACEOF
17165 #define HAVE_IPV6 1
17173 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
17174 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
17175 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 cat >conftest.$ac_ext <<_ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 #include <machine/vmparam.h>
17185 #include <sys/exec.h>
17190 PS_STRINGS->ps_nargvstr = 1;
17191 PS_STRINGS->ps_argvstr = "foo";
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17200 *) ac_try_echo
=$ac_try;;
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_link") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1
>conftest.err
17207 cat conftest.err
>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest
$ac_exeext &&
17213 $as_test_x conftest
$ac_exeext; then
17214 pgac_cv_var_PS_STRINGS
=yes
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.
$ac_ext >&5
17219 pgac_cv_var_PS_STRINGS
=no
17222 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17223 conftest
$ac_exeext conftest.
$ac_ext
17225 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
17226 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
17227 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
17229 cat >>confdefs.h
<<\_ACEOF
17230 #define HAVE_PS_STRINGS
17236 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
17237 # is missing. Yes, there are machines that have only one. We may
17238 # also decide to use snprintf.c if snprintf() is present but does not
17239 # have all the features we need --- see below.
17241 if test "$PORTNAME" = "win32"; then
17242 # Win32 gets snprintf.c built unconditionally.
17244 # To properly translate all NLS languages strings, we must support the
17245 # *printf() %$ format, which allows *printf() arguments to be selected
17246 # by position in the translated string.
17248 # libintl versions < 0.13 use the native *printf() functions, and Win32
17249 # *printf() doesn't understand %$, so we must use our /port versions,
17250 # which do understand %$. libintl versions >= 0.13 include their own
17251 # *printf versions on Win32. The libintl 0.13 release note text is:
17253 # C format strings with positions, as they arise when a translator
17254 # needs to reorder a sentence, are now supported on all platforms.
17255 # On those few platforms (NetBSD and Woe32) for which the native
17256 # printf()/fprintf()/... functions don't support such format
17257 # strings, replacements are provided through <libintl.h>.
17259 # We could use libintl >= 0.13's *printf() if we were sure that we had
17260 # a litint >= 0.13 at runtime, but seeing that there is no clean way
17261 # to guarantee that, it is best to just use our own, so we are sure to
17262 # get %$ support. In include/port.h we disable the *printf() macros
17263 # that might have been defined by libintl.
17265 # We do this unconditionally whether NLS is used or not so we are sure
17266 # that all Win32 libraries and binaries behave the same.
17267 pgac_need_repl_snprintf
=yes
17269 pgac_need_repl_snprintf
=no
17271 for ac_func
in snprintf
17273 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17276 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 cat >conftest.
$ac_ext <<_ACEOF
17282 cat confdefs.h
>>conftest.
$ac_ext
17283 cat >>conftest.
$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17287 #define $ac_func innocuous_$ac_func
17289 /* System header to define __stub macros and hopefully few prototypes,
17290 which can conflict with char $ac_func (); below.
17291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292 <limits.h> exists even on freestanding compilers. */
17295 # include <limits.h>
17297 # include <assert.h>
17302 /* Override any GCC internal prototype to avoid an error.
17303 Use char because int might match the return type of a GCC
17304 builtin and then its argument prototype would still apply. */
17309 /* The GNU C library defines this for functions which it implements
17310 to always fail with ENOSYS. Some functions are actually named
17311 something starting with __ and the normal name is an alias. */
17312 #if defined __stub_$ac_func || defined __stub___$ac_func
17319 return $ac_func ();
17324 rm -f conftest.
$ac_objext conftest
$ac_exeext
17325 if { (ac_try
="$ac_link"
17326 case "(($ac_try" in
17327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_link") 2>conftest.er1
17333 grep -v '^ *+' conftest.er1 >conftest.err
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } && {
17338 test -z "$ac_c_werror_flag" ||
17339 test ! -s conftest.err
17340 } && test -s conftest$ac_exeext &&
17341 $as_test_x conftest$ac_exeext; then
17342 eval "$as_ac_var=yes"
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 eval "$as_ac_var=no"
17350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17351 conftest$ac_exeext conftest.$ac_ext
17353 ac_res=`eval echo '${'$as_ac_var'}'`
17354 { echo "$as_me:$LINENO: result: $ac_res" >&5
17355 echo "${ECHO_T}$ac_res" >&6; }
17356 if test `eval echo '${'$as_ac_var'}'` = yes; then
17357 cat >>confdefs.h <<_ACEOF
17358 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17362 pgac_need_repl_snprintf=yes
17367 for ac_func in vsnprintf
17369 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17383 #define $ac_func innocuous_$ac_func
17385 /* System header to define __stub macros and hopefully few prototypes,
17386 which can conflict with char $ac_func (); below.
17387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 <limits.h> exists even on freestanding compilers. */
17391 # include <limits.h>
17393 # include <assert.h>
17398 /* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17405 /* The GNU C library defines this for functions which it implements
17406 to always fail with ENOSYS. Some functions are actually named
17407 something starting with __ and the normal name is an alias. */
17408 #if defined __stub_$ac_func || defined __stub___$ac_func
17415 return $ac_func ();
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17424 *) ac_try_echo
=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1
>conftest.err
17431 cat conftest.err
>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest
$ac_exeext &&
17437 $as_test_x conftest
$ac_exeext; then
17438 eval "$as_ac_var=yes"
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.
$ac_ext >&5
17443 eval "$as_ac_var=no"
17446 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17447 conftest
$ac_exeext conftest.
$ac_ext
17449 ac_res
=`eval echo '${'$as_ac_var'}'`
17450 { echo "$as_me:$LINENO: result: $ac_res" >&5
17451 echo "${ECHO_T}$ac_res" >&6; }
17452 if test `eval echo '${'$as_ac_var'}'` = yes; then
17453 cat >>confdefs.h
<<_ACEOF
17454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17458 pgac_need_repl_snprintf
=yes
17465 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17466 # include/c.h will provide declarations. Note this is a separate test
17467 # from whether the functions exist in the C library --- there are
17468 # systems that have the functions but don't bother to declare them :-(
17470 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17471 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17472 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 cat >conftest.
$ac_ext <<_ACEOF
17478 cat confdefs.h
>>conftest.
$ac_ext
17479 cat >>conftest.
$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 $ac_includes_default
17493 rm -f conftest.
$ac_objext
17494 if { (ac_try
="$ac_compile"
17495 case "(($ac_try" in
17496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_compile") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest.$ac_objext; then
17510 ac_cv_have_decl_snprintf=yes
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_cv_have_decl_snprintf=no
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17521 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17522 if test $ac_cv_have_decl_snprintf = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_DECL_SNPRINTF 1
17530 cat >>confdefs.h <<_ACEOF
17531 #define HAVE_DECL_SNPRINTF 0
17536 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17537 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17538 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 $ac_includes_default
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17563 *) ac_try_echo
=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_compile") 2>conftest.er1
17568 grep -v '^ *+' conftest.er1
>conftest.err
17570 cat conftest.err
>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } && {
17573 test -z "$ac_c_werror_flag" ||
17574 test ! -s conftest.err
17575 } && test -s conftest.
$ac_objext; then
17576 ac_cv_have_decl_vsnprintf
=yes
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.
$ac_ext >&5
17581 ac_cv_have_decl_vsnprintf
=no
17584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17586 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17587 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17588 if test $ac_cv_have_decl_vsnprintf = yes; then
17590 cat >>confdefs.h
<<_ACEOF
17591 #define HAVE_DECL_VSNPRINTF 1
17596 cat >>confdefs.h
<<_ACEOF
17597 #define HAVE_DECL_VSNPRINTF 0
17606 { echo "$as_me:$LINENO: checking for isinf" >&5
17607 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17608 if test "${ac_cv_func_isinf+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 cat >conftest.
$ac_ext <<_ACEOF
17614 cat confdefs.h
>>conftest.
$ac_ext
17615 cat >>conftest.
$ac_ext <<_ACEOF
17616 /* end confdefs.h. */
17619 double glob_double;
17624 return isinf(glob_double) ? 0 : 1;
17629 rm -f conftest.
$ac_objext conftest
$ac_exeext
17630 if { (ac_try
="$ac_link"
17631 case "(($ac_try" in
17632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_link") 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } && {
17643 test -z "$ac_c_werror_flag" ||
17644 test ! -s conftest.err
17645 } && test -s conftest$ac_exeext &&
17646 $as_test_x conftest$ac_exeext; then
17647 ac_cv_func_isinf=yes
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ac_cv_func_isinf=no
17655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17656 conftest$ac_exeext conftest.$ac_ext
17658 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17659 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17661 if test $ac_cv_func_isinf = yes ; then
17663 cat >>confdefs.h <<\_ACEOF
17664 #define HAVE_ISINF 1
17668 case " $LIBOBJS " in
17669 *" isinf.$ac_objext "* ) ;;
17670 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17674 # Look for a way to implement a substitute for isinf()
17679 for ac_func in fpclass fp_class fp_class_d class
17681 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17685 echo $ECHO_N "(cached) $ECHO_C" >&6
17687 cat >conftest.$ac_ext <<_ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17695 #define $ac_func innocuous_$ac_func
17697 /* System header to define __stub macros and hopefully few prototypes,
17698 which can conflict with char $ac_func (); below.
17699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700 <limits.h> exists even on freestanding compilers. */
17703 # include <limits.h>
17705 # include <assert.h>
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17717 /* The GNU C library defines this for functions which it implements
17718 to always fail with ENOSYS. Some functions are actually named
17719 something starting with __ and the normal name is an alias. */
17720 #if defined __stub_$ac_func || defined __stub___$ac_func
17727 return $ac_func ();
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17736 *) ac_try_echo
=$ac_try;;
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_link") 2>conftest.er1
17741 grep -v '^ *+' conftest.er1
>conftest.err
17743 cat conftest.err
>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } && {
17746 test -z "$ac_c_werror_flag" ||
17747 test ! -s conftest.err
17748 } && test -s conftest
$ac_exeext &&
17749 $as_test_x conftest
$ac_exeext; then
17750 eval "$as_ac_var=yes"
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.
$ac_ext >&5
17755 eval "$as_ac_var=no"
17758 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17759 conftest
$ac_exeext conftest.
$ac_ext
17761 ac_res
=`eval echo '${'$as_ac_var'}'`
17762 { echo "$as_me:$LINENO: result: $ac_res" >&5
17763 echo "${ECHO_T}$ac_res" >&6; }
17764 if test `eval echo '${'$as_ac_var'}'` = yes; then
17765 cat >>confdefs.h
<<_ACEOF
17766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17774 # Some versions of libedit contain strlcpy(); so disregard that library while
17775 # checking for these standard libc functions.
17776 pgac_save_LIBS
="$LIBS"
17777 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17793 for ac_func
in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17795 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17798 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 cat >conftest.
$ac_ext <<_ACEOF
17804 cat confdefs.h
>>conftest.
$ac_ext
17805 cat >>conftest.
$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17809 #define $ac_func innocuous_$ac_func
17811 /* System header to define __stub macros and hopefully few prototypes,
17812 which can conflict with char $ac_func (); below.
17813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17814 <limits.h> exists even on freestanding compilers. */
17817 # include <limits.h>
17819 # include <assert.h>
17824 /* Override any GCC internal prototype to avoid an error.
17825 Use char because int might match the return type of a GCC
17826 builtin and then its argument prototype would still apply. */
17831 /* The GNU C library defines this for functions which it implements
17832 to always fail with ENOSYS. Some functions are actually named
17833 something starting with __ and the normal name is an alias. */
17834 #if defined __stub_$ac_func || defined __stub___$ac_func
17841 return $ac_func ();
17846 rm -f conftest.
$ac_objext conftest
$ac_exeext
17847 if { (ac_try
="$ac_link"
17848 case "(($ac_try" in
17849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_link") 2>conftest.er1
17855 grep -v '^ *+' conftest.er1 >conftest.err
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } && {
17860 test -z "$ac_c_werror_flag" ||
17861 test ! -s conftest.err
17862 } && test -s conftest$ac_exeext &&
17863 $as_test_x conftest$ac_exeext; then
17864 eval "$as_ac_var=yes"
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17869 eval "$as_ac_var=no"
17872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17873 conftest$ac_exeext conftest.$ac_ext
17875 ac_res=`eval echo '${'$as_ac_var'}'`
17876 { echo "$as_me:$LINENO: result: $ac_res" >&5
17877 echo "${ECHO_T}$ac_res" >&6; }
17878 if test `eval echo '${'$as_ac_var'}'` = yes; then
17879 cat >>confdefs.h <<_ACEOF
17880 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17884 case " $LIBOBJS " in
17885 *" $ac_func.$ac_objext "* ) ;;
17886 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17895 LIBS="$pgac_save_LIBS"
17897 # System's version of getaddrinfo(), if any, may be used only if we found
17898 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17899 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17900 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17901 # because we want to use our own getaddrinfo.c on Windows anyway.)
17902 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17904 for ac_func in getaddrinfo
17906 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 cat >conftest.$ac_ext <<_ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17920 #define $ac_func innocuous_$ac_func
17922 /* System header to define __stub macros and hopefully few prototypes,
17923 which can conflict with char $ac_func (); below.
17924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17925 <limits.h> exists even on freestanding compilers. */
17928 # include <limits.h>
17930 # include <assert.h>
17935 /* Override any GCC internal prototype to avoid an error.
17936 Use char because int might match the return type of a GCC
17937 builtin and then its argument prototype would still apply. */
17942 /* The GNU C library defines this for functions which it implements
17943 to always fail with ENOSYS. Some functions are actually named
17944 something starting with __ and the normal name is an alias. */
17945 #if defined __stub_$ac_func || defined __stub___$ac_func
17952 return $ac_func ();
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (ac_try="$ac_link"
17959 case "(($ac_try" in
17960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17961 *) ac_try_echo
=$ac_try;;
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_link") 2>conftest.er1
17966 grep -v '^ *+' conftest.er1
>conftest.err
17968 cat conftest.err
>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } && {
17971 test -z "$ac_c_werror_flag" ||
17972 test ! -s conftest.err
17973 } && test -s conftest
$ac_exeext &&
17974 $as_test_x conftest
$ac_exeext; then
17975 eval "$as_ac_var=yes"
17977 echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.
$ac_ext >&5
17980 eval "$as_ac_var=no"
17983 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17984 conftest
$ac_exeext conftest.
$ac_ext
17986 ac_res
=`eval echo '${'$as_ac_var'}'`
17987 { echo "$as_me:$LINENO: result: $ac_res" >&5
17988 echo "${ECHO_T}$ac_res" >&6; }
17989 if test `eval echo '${'$as_ac_var'}'` = yes; then
17990 cat >>confdefs.h
<<_ACEOF
17991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17995 case " $LIBOBJS " in
17996 *" $ac_func.$ac_objext "* ) ;;
17997 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18006 case " $LIBOBJS " in
18007 *" getaddrinfo.$ac_objext "* ) ;;
18008 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
18014 # Similarly, use system's getopt_long() only if system provides struct option.
18015 # Solaris' getopt() doesn't do what we want for long options, so always use
18016 # our versions on that platform.
18017 if test "$PORTNAME" = "solaris"; then
18018 case " $LIBOBJS " in
18019 *" getopt.$ac_objext "* ) ;;
18020 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
18024 case " $LIBOBJS " in
18025 *" getopt_long.$ac_objext "* ) ;;
18026 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
18030 elif test x
"$ac_cv_type_struct_option" = xyes
; then
18032 for ac_func
in getopt_long
18034 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18037 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 cat >conftest.
$ac_ext <<_ACEOF
18043 cat confdefs.h
>>conftest.
$ac_ext
18044 cat >>conftest.
$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18048 #define $ac_func innocuous_$ac_func
18050 /* System header to define __stub macros and hopefully few prototypes,
18051 which can conflict with char $ac_func (); below.
18052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053 <limits.h> exists even on freestanding compilers. */
18056 # include <limits.h>
18058 # include <assert.h>
18063 /* Override any GCC internal prototype to avoid an error.
18064 Use char because int might match the return type of a GCC
18065 builtin and then its argument prototype would still apply. */
18070 /* The GNU C library defines this for functions which it implements
18071 to always fail with ENOSYS. Some functions are actually named
18072 something starting with __ and the normal name is an alias. */
18073 #if defined __stub_$ac_func || defined __stub___$ac_func
18080 return $ac_func ();
18085 rm -f conftest.
$ac_objext conftest
$ac_exeext
18086 if { (ac_try
="$ac_link"
18087 case "(($ac_try" in
18088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_link") 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } && {
18099 test -z "$ac_c_werror_flag" ||
18100 test ! -s conftest.err
18101 } && test -s conftest$ac_exeext &&
18102 $as_test_x conftest$ac_exeext; then
18103 eval "$as_ac_var=yes"
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 eval "$as_ac_var=no"
18111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18112 conftest$ac_exeext conftest.$ac_ext
18114 ac_res=`eval echo '${'$as_ac_var'}'`
18115 { echo "$as_me:$LINENO: result: $ac_res" >&5
18116 echo "${ECHO_T}$ac_res" >&6; }
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18123 case " $LIBOBJS " in
18124 *" $ac_func.$ac_objext "* ) ;;
18125 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18134 case " $LIBOBJS " in
18135 *" getopt_long.$ac_objext "* ) ;;
18136 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
18143 if test "$PORTNAME" = "win32"; then
18145 for ac_func in gettimeofday
18147 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define $ac_func innocuous_$ac_func
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18169 # include <limits.h>
18171 # include <assert.h>
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18183 /* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186 #if defined __stub_$ac_func || defined __stub___$ac_func
18193 return $ac_func ();
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18202 *) ac_try_echo
=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_link") 2>conftest.er1
18207 grep -v '^ *+' conftest.er1
>conftest.err
18209 cat conftest.err
>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } && {
18212 test -z "$ac_c_werror_flag" ||
18213 test ! -s conftest.err
18214 } && test -s conftest
$ac_exeext &&
18215 $as_test_x conftest
$ac_exeext; then
18216 eval "$as_ac_var=yes"
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.
$ac_ext >&5
18221 eval "$as_ac_var=no"
18224 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18225 conftest
$ac_exeext conftest.
$ac_ext
18227 ac_res
=`eval echo '${'$as_ac_var'}'`
18228 { echo "$as_me:$LINENO: result: $ac_res" >&5
18229 echo "${ECHO_T}$ac_res" >&6; }
18230 if test `eval echo '${'$as_ac_var'}'` = yes; then
18231 cat >>confdefs.h
<<_ACEOF
18232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18236 case " $LIBOBJS " in
18237 *" $ac_func.$ac_objext "* ) ;;
18238 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18246 case " $LIBOBJS " in
18247 *" kill.$ac_objext "* ) ;;
18248 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
18252 case " $LIBOBJS " in
18253 *" open.$ac_objext "* ) ;;
18254 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
18258 case " $LIBOBJS " in
18259 *" rand.$ac_objext "* ) ;;
18260 *) LIBOBJS
="$LIBOBJS rand.$ac_objext"
18264 case " $LIBOBJS " in
18265 *" win32error.$ac_objext "* ) ;;
18266 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
18271 cat >>confdefs.h
<<\_ACEOF
18272 #define HAVE_SYMLINK 1
18277 if test "$with_readline" = yes; then
18278 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
18279 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
18280 cat >conftest.
$ac_ext <<_ACEOF
18283 cat confdefs.h
>>conftest.
$ac_ext
18284 cat >>conftest.
$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18287 #ifdef HAVE_READLINE_READLINE_H
18288 # include <readline/readline.h>
18289 #elif defined(HAVE_READLINE_H)
18290 # include <readline.h>
18296 rl_completion_append_character = 'x';
18301 rm -f conftest.
$ac_objext conftest
$ac_exeext
18302 if { (ac_try
="$ac_link"
18303 case "(($ac_try" in
18304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_link") 2>conftest.er1
18310 grep -v '^ *+' conftest.er1 >conftest.err
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } && {
18315 test -z "$ac_c_werror_flag" ||
18316 test ! -s conftest.err
18317 } && test -s conftest$ac_exeext &&
18318 $as_test_x conftest$ac_exeext; then
18319 { echo "$as_me:$LINENO: result: yes" >&5
18320 echo "${ECHO_T}yes" >&6; }
18322 cat >>confdefs.h <<\_ACEOF
18323 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 { echo "$as_me:$LINENO: result: no" >&5
18331 echo "${ECHO_T}no" >&6; }
18334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18335 conftest$ac_exeext conftest.$ac_ext
18338 for ac_func in rl_completion_matches rl_filename_completion_function
18340 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 cat >conftest.$ac_ext <<_ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18354 #define $ac_func innocuous_$ac_func
18356 /* System header to define __stub macros and hopefully few prototypes,
18357 which can conflict with char $ac_func (); below.
18358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18359 <limits.h> exists even on freestanding compilers. */
18362 # include <limits.h>
18364 # include <assert.h>
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18376 /* The GNU C library defines this for functions which it implements
18377 to always fail with ENOSYS. Some functions are actually named
18378 something starting with __ and the normal name is an alias. */
18379 #if defined __stub_$ac_func || defined __stub___$ac_func
18386 return $ac_func ();
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18395 *) ac_try_echo
=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_link") 2>conftest.er1
18400 grep -v '^ *+' conftest.er1
>conftest.err
18402 cat conftest.err
>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } && {
18405 test -z "$ac_c_werror_flag" ||
18406 test ! -s conftest.err
18407 } && test -s conftest
$ac_exeext &&
18408 $as_test_x conftest
$ac_exeext; then
18409 eval "$as_ac_var=yes"
18411 echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.
$ac_ext >&5
18414 eval "$as_ac_var=no"
18417 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18418 conftest
$ac_exeext conftest.
$ac_ext
18420 ac_res
=`eval echo '${'$as_ac_var'}'`
18421 { echo "$as_me:$LINENO: result: $ac_res" >&5
18422 echo "${ECHO_T}$ac_res" >&6; }
18423 if test `eval echo '${'$as_ac_var'}'` = yes; then
18424 cat >>confdefs.h
<<_ACEOF
18425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18432 for ac_func
in replace_history_entry
18434 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18437 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 cat >conftest.
$ac_ext <<_ACEOF
18443 cat confdefs.h
>>conftest.
$ac_ext
18444 cat >>conftest.
$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18448 #define $ac_func innocuous_$ac_func
18450 /* System header to define __stub macros and hopefully few prototypes,
18451 which can conflict with char $ac_func (); below.
18452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453 <limits.h> exists even on freestanding compilers. */
18456 # include <limits.h>
18458 # include <assert.h>
18463 /* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18470 /* The GNU C library defines this for functions which it implements
18471 to always fail with ENOSYS. Some functions are actually named
18472 something starting with __ and the normal name is an alias. */
18473 #if defined __stub_$ac_func || defined __stub___$ac_func
18480 return $ac_func ();
18485 rm -f conftest.
$ac_objext conftest
$ac_exeext
18486 if { (ac_try
="$ac_link"
18487 case "(($ac_try" in
18488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_link") 2>conftest.er1
18494 grep -v '^ *+' conftest.er1 >conftest.err
18496 cat conftest.err >&5
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } && {
18499 test -z "$ac_c_werror_flag" ||
18500 test ! -s conftest.err
18501 } && test -s conftest$ac_exeext &&
18502 $as_test_x conftest$ac_exeext; then
18503 eval "$as_ac_var=yes"
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 eval "$as_ac_var=no"
18511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18512 conftest$ac_exeext conftest.$ac_ext
18514 ac_res=`eval echo '${'$as_ac_var'}'`
18515 { echo "$as_me:$LINENO: result: $ac_res" >&5
18516 echo "${ECHO_T}$ac_res" >&6; }
18517 if test `eval echo '${'$as_ac_var'}'` = yes; then
18518 cat >>confdefs.h <<_ACEOF
18519 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18528 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18529 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 #include <setjmp.h>
18540 sigjmp_buf x; sigsetjmp(x, 1);
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (ac_try="$ac_link"
18547 case "(($ac_try" in
18548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18549 *) ac_try_echo
=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_link") 2>conftest.er1
18554 grep -v '^ *+' conftest.er1
>conftest.err
18556 cat conftest.err
>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } && {
18559 test -z "$ac_c_werror_flag" ||
18560 test ! -s conftest.err
18561 } && test -s conftest
$ac_exeext &&
18562 $as_test_x conftest
$ac_exeext; then
18564 cat >>confdefs.h
<<\_ACEOF
18565 #define HAVE_SIGSETJMP 1
18568 { echo "$as_me:$LINENO: result: yes" >&5
18569 echo "${ECHO_T}yes" >&6; }
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.
$ac_ext >&5
18574 { echo "$as_me:$LINENO: result: no" >&5
18575 echo "${ECHO_T}no" >&6; }
18578 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18579 conftest
$ac_exeext conftest.
$ac_ext
18581 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18582 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18583 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 cat >conftest.
$ac_ext <<_ACEOF
18589 cat confdefs.h
>>conftest.
$ac_ext
18590 cat >>conftest.
$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592 #include <signal.h>
18593 /* NetBSD declares sys_siglist in unistd.h. */
18594 #ifdef HAVE_UNISTD_H
18595 # include <unistd.h>
18602 #ifndef sys_siglist
18603 (void) sys_siglist;
18610 rm -f conftest.
$ac_objext
18611 if { (ac_try
="$ac_compile"
18612 case "(($ac_try" in
18613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_compile") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest.$ac_objext; then
18627 ac_cv_have_decl_sys_siglist=yes
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18632 ac_cv_have_decl_sys_siglist=no
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18638 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18639 if test $ac_cv_have_decl_sys_siglist = yes; then
18641 cat >>confdefs.h <<_ACEOF
18642 #define HAVE_DECL_SYS_SIGLIST 1
18647 cat >>confdefs.h <<_ACEOF
18648 #define HAVE_DECL_SYS_SIGLIST 0
18657 { echo "$as_me:$LINENO: checking for syslog" >&5
18658 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18659 if test "${ac_cv_func_syslog+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18670 #define syslog innocuous_syslog
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char syslog (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18678 # include <limits.h>
18680 # include <assert.h>
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined __stub_syslog || defined __stub___syslog
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18711 *) ac_try_echo
=$ac_try;;
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18716 grep -v '^ *+' conftest.er1
>conftest.err
18718 cat conftest.err
>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest
$ac_exeext &&
18724 $as_test_x conftest
$ac_exeext; then
18725 ac_cv_func_syslog
=yes
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.
$ac_ext >&5
18730 ac_cv_func_syslog
=no
18733 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18734 conftest
$ac_exeext conftest.
$ac_ext
18736 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18737 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18738 if test $ac_cv_func_syslog = yes; then
18739 if test "${ac_cv_header_syslog_h+set}" = set; then
18740 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18741 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18742 if test "${ac_cv_header_syslog_h+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18746 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18748 # Is the header compilable?
18749 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18750 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18751 cat >conftest.
$ac_ext <<_ACEOF
18754 cat confdefs.h
>>conftest.
$ac_ext
18755 cat >>conftest.
$ac_ext <<_ACEOF
18756 /* end confdefs.h. */
18757 $ac_includes_default
18758 #include <syslog.h>
18760 rm -f conftest.
$ac_objext
18761 if { (ac_try
="$ac_compile"
18762 case "(($ac_try" in
18763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_compile") 2>conftest.er1
18769 grep -v '^ *+' conftest.er1 >conftest.err
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } && {
18774 test -z "$ac_c_werror_flag" ||
18775 test ! -s conftest.err
18776 } && test -s conftest.$ac_objext; then
18777 ac_header_compiler=yes
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_header_compiler=no
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18787 echo "${ECHO_T}$ac_header_compiler" >&6; }
18789 # Is the header present?
18790 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18791 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 #include <syslog.h>
18800 if { (ac_try="$ac_cpp conftest.$ac_ext"
18801 case "(($ac_try" in
18802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18803 *) ac_try_echo
=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18808 grep -v '^ *+' conftest.er1
>conftest.err
18810 cat conftest.err
>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } >/dev
/null
&& {
18813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18816 ac_header_preproc
=yes
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.
$ac_ext >&5
18821 ac_header_preproc
=no
18824 rm -f conftest.err conftest.
$ac_ext
18825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18826 echo "${ECHO_T}$ac_header_preproc" >&6; }
18828 # So? What about this header?
18829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18831 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18832 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18834 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18835 ac_header_preproc
=yes
18838 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18839 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18840 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18841 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18843 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18845 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18846 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18847 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18849 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18851 ## ---------------------------------------- ##
18852 ## Report this to pgsql-bugs@postgresql.org ##
18853 ## ---------------------------------------- ##
18855 ) |
sed "s/^/$as_me: WARNING: /" >&2
18858 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18859 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18860 if test "${ac_cv_header_syslog_h+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18863 ac_cv_header_syslog_h
=$ac_header_preproc
18865 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18866 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18869 if test $ac_cv_header_syslog_h = yes; then
18871 cat >>confdefs.h
<<\_ACEOF
18872 #define HAVE_SYSLOG 1
18881 { echo "$as_me:$LINENO: checking for optreset" >&5
18882 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18883 if test "${pgac_cv_var_int_optreset+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 #include <unistd.h>
18896 extern int optreset; optreset = 1;
18901 rm -f conftest.
$ac_objext conftest
$ac_exeext
18902 if { (ac_try
="$ac_link"
18903 case "(($ac_try" in
18904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_link") 2>conftest.er1
18910 grep -v '^ *+' conftest.er1 >conftest.err
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest$ac_exeext &&
18918 $as_test_x conftest$ac_exeext; then
18919 pgac_cv_var_int_optreset=yes
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 pgac_cv_var_int_optreset=no
18927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18928 conftest$ac_exeext conftest.$ac_ext
18930 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18931 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18932 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18934 cat >>confdefs.h <<\_ACEOF
18935 #define HAVE_INT_OPTRESET 1
18942 for ac_func in strtoll strtoq
18944 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 cat >conftest.$ac_ext <<_ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h. */
18956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18958 #define $ac_func innocuous_$ac_func
18960 /* System header to define __stub macros and hopefully few prototypes,
18961 which can conflict with char $ac_func (); below.
18962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18963 <limits.h> exists even on freestanding compilers. */
18966 # include <limits.h>
18968 # include <assert.h>
18973 /* Override any GCC internal prototype to avoid an error.
18974 Use char because int might match the return type of a GCC
18975 builtin and then its argument prototype would still apply. */
18980 /* The GNU C library defines this for functions which it implements
18981 to always fail with ENOSYS. Some functions are actually named
18982 something starting with __ and the normal name is an alias. */
18983 #if defined __stub_$ac_func || defined __stub___$ac_func
18990 return $ac_func ();
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18999 *) ac_try_echo
=$ac_try;;
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>conftest.er1
19004 grep -v '^ *+' conftest.er1
>conftest.err
19006 cat conftest.err
>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } && {
19009 test -z "$ac_c_werror_flag" ||
19010 test ! -s conftest.err
19011 } && test -s conftest
$ac_exeext &&
19012 $as_test_x conftest
$ac_exeext; then
19013 eval "$as_ac_var=yes"
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.
$ac_ext >&5
19018 eval "$as_ac_var=no"
19021 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19022 conftest
$ac_exeext conftest.
$ac_ext
19024 ac_res
=`eval echo '${'$as_ac_var'}'`
19025 { echo "$as_me:$LINENO: result: $ac_res" >&5
19026 echo "${ECHO_T}$ac_res" >&6; }
19027 if test `eval echo '${'$as_ac_var'}'` = yes; then
19028 cat >>confdefs.h
<<_ACEOF
19029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19037 for ac_func
in strtoull strtouq
19039 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19042 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 cat >conftest.
$ac_ext <<_ACEOF
19048 cat confdefs.h
>>conftest.
$ac_ext
19049 cat >>conftest.
$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19053 #define $ac_func innocuous_$ac_func
19055 /* System header to define __stub macros and hopefully few prototypes,
19056 which can conflict with char $ac_func (); below.
19057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19058 <limits.h> exists even on freestanding compilers. */
19061 # include <limits.h>
19063 # include <assert.h>
19068 /* Override any GCC internal prototype to avoid an error.
19069 Use char because int might match the return type of a GCC
19070 builtin and then its argument prototype would still apply. */
19075 /* The GNU C library defines this for functions which it implements
19076 to always fail with ENOSYS. Some functions are actually named
19077 something starting with __ and the normal name is an alias. */
19078 #if defined __stub_$ac_func || defined __stub___$ac_func
19085 return $ac_func ();
19090 rm -f conftest.
$ac_objext conftest
$ac_exeext
19091 if { (ac_try
="$ac_link"
19092 case "(($ac_try" in
19093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_link") 2>conftest.er1
19099 grep -v '^ *+' conftest.er1 >conftest.err
19101 cat conftest.err >&5
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); } && {
19104 test -z "$ac_c_werror_flag" ||
19105 test ! -s conftest.err
19106 } && test -s conftest$ac_exeext &&
19107 $as_test_x conftest$ac_exeext; then
19108 eval "$as_ac_var=yes"
19110 echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19113 eval "$as_ac_var=no"
19116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19117 conftest$ac_exeext conftest.$ac_ext
19119 ac_res=`eval echo '${'$as_ac_var'}'`
19120 { echo "$as_me:$LINENO: result: $ac_res" >&5
19121 echo "${ECHO_T}$ac_res" >&6; }
19122 if test `eval echo '${'$as_ac_var'}'` = yes; then
19123 cat >>confdefs.h <<_ACEOF
19124 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19131 # Check for one of atexit() or on_exit()
19133 for ac_func in atexit
19135 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 cat >conftest.$ac_ext <<_ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19149 #define $ac_func innocuous_$ac_func
19151 /* System header to define __stub macros and hopefully few prototypes,
19152 which can conflict with char $ac_func (); below.
19153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19154 <limits.h> exists even on freestanding compilers. */
19157 # include <limits.h>
19159 # include <assert.h>
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19171 /* The GNU C library defines this for functions which it implements
19172 to always fail with ENOSYS. Some functions are actually named
19173 something starting with __ and the normal name is an alias. */
19174 #if defined __stub_$ac_func || defined __stub___$ac_func
19181 return $ac_func ();
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19190 *) ac_try_echo
=$ac_try;;
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_link") 2>conftest.er1
19195 grep -v '^ *+' conftest.er1
>conftest.err
19197 cat conftest.err
>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } && {
19200 test -z "$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 } && test -s conftest
$ac_exeext &&
19203 $as_test_x conftest
$ac_exeext; then
19204 eval "$as_ac_var=yes"
19206 echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.
$ac_ext >&5
19209 eval "$as_ac_var=no"
19212 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19213 conftest
$ac_exeext conftest.
$ac_ext
19215 ac_res
=`eval echo '${'$as_ac_var'}'`
19216 { echo "$as_me:$LINENO: result: $ac_res" >&5
19217 echo "${ECHO_T}$ac_res" >&6; }
19218 if test `eval echo '${'$as_ac_var'}'` = yes; then
19219 cat >>confdefs.h
<<_ACEOF
19220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19225 for ac_func
in on_exit
19227 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19230 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19231 echo $ECHO_N "(cached) $ECHO_C" >&6
19233 cat >conftest.
$ac_ext <<_ACEOF
19236 cat confdefs.h
>>conftest.
$ac_ext
19237 cat >>conftest.
$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19241 #define $ac_func innocuous_$ac_func
19243 /* System header to define __stub macros and hopefully few prototypes,
19244 which can conflict with char $ac_func (); below.
19245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19246 <limits.h> exists even on freestanding compilers. */
19249 # include <limits.h>
19251 # include <assert.h>
19256 /* Override any GCC internal prototype to avoid an error.
19257 Use char because int might match the return type of a GCC
19258 builtin and then its argument prototype would still apply. */
19263 /* The GNU C library defines this for functions which it implements
19264 to always fail with ENOSYS. Some functions are actually named
19265 something starting with __ and the normal name is an alias. */
19266 #if defined __stub_$ac_func || defined __stub___$ac_func
19273 return $ac_func ();
19278 rm -f conftest.
$ac_objext conftest
$ac_exeext
19279 if { (ac_try
="$ac_link"
19280 case "(($ac_try" in
19281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_link") 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } && {
19292 test -z "$ac_c_werror_flag" ||
19293 test ! -s conftest.err
19294 } && test -s conftest$ac_exeext &&
19295 $as_test_x conftest$ac_exeext; then
19296 eval "$as_ac_var=yes"
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 eval "$as_ac_var=no"
19304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19305 conftest$ac_exeext conftest.$ac_ext
19307 ac_res=`eval echo '${'$as_ac_var'}'`
19308 { echo "$as_me:$LINENO: result: $ac_res" >&5
19309 echo "${ECHO_T}$ac_res" >&6; }
19310 if test `eval echo '${'$as_ac_var'}'` = yes; then
19311 cat >>confdefs.h <<_ACEOF
19312 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19316 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
19317 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
19318 { (exit 1); exit 1; }; }
19327 for ac_func in fseeko
19329 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19343 #define $ac_func innocuous_$ac_func
19345 /* System header to define __stub macros and hopefully few prototypes,
19346 which can conflict with char $ac_func (); below.
19347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19348 <limits.h> exists even on freestanding compilers. */
19351 # include <limits.h>
19353 # include <assert.h>
19358 /* Override any GCC internal prototype to avoid an error.
19359 Use char because int might match the return type of a GCC
19360 builtin and then its argument prototype would still apply. */
19365 /* The GNU C library defines this for functions which it implements
19366 to always fail with ENOSYS. Some functions are actually named
19367 something starting with __ and the normal name is an alias. */
19368 #if defined __stub_$ac_func || defined __stub___$ac_func
19375 return $ac_func ();
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (ac_try="$ac_link"
19382 case "(($ac_try" in
19383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19384 *) ac_try_echo
=$ac_try;;
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_link") 2>conftest.er1
19389 grep -v '^ *+' conftest.er1
>conftest.err
19391 cat conftest.err
>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } && {
19394 test -z "$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19396 } && test -s conftest
$ac_exeext &&
19397 $as_test_x conftest
$ac_exeext; then
19398 eval "$as_ac_var=yes"
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.
$ac_ext >&5
19403 eval "$as_ac_var=no"
19406 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19407 conftest
$ac_exeext conftest.
$ac_ext
19409 ac_res
=`eval echo '${'$as_ac_var'}'`
19410 { echo "$as_me:$LINENO: result: $ac_res" >&5
19411 echo "${ECHO_T}$ac_res" >&6; }
19412 if test `eval echo '${'$as_ac_var'}'` = yes; then
19413 cat >>confdefs.h
<<_ACEOF
19414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19418 case " $LIBOBJS " in
19419 *" $ac_func.$ac_objext "* ) ;;
19420 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19429 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19432 cat >>confdefs.h
<<\_ACEOF
19433 #define HAVE_FSEEKO 1
19436 ac_cv_func_fseeko
=yes;;
19438 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19439 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19440 if test "${ac_cv_sys_largefile_source+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 cat >conftest.
$ac_ext <<_ACEOF
19447 cat confdefs.h
>>conftest.
$ac_ext
19448 cat >>conftest.
$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19450 #include <sys/types.h> /* for off_t */
19455 int (*fp) (FILE *, off_t, int) = fseeko;
19456 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19461 rm -f conftest.
$ac_objext conftest
$ac_exeext
19462 if { (ac_try
="$ac_link"
19463 case "(($ac_try" in
19464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_link") 2>conftest.er1
19470 grep -v '^ *+' conftest.er1 >conftest.err
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest$ac_exeext &&
19478 $as_test_x conftest$ac_exeext; then
19479 ac_cv_sys_largefile_source=no; break
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19488 conftest$ac_exeext conftest.$ac_ext
19489 cat >conftest.$ac_ext <<_ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 #define _LARGEFILE_SOURCE 1
19496 #include <sys/types.h> /* for off_t */
19501 int (*fp) (FILE *, off_t, int) = fseeko;
19502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19511 *) ac_try_echo
=$ac_try;;
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19516 grep -v '^ *+' conftest.er1
>conftest.err
19518 cat conftest.err
>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest
$ac_exeext &&
19524 $as_test_x conftest
$ac_exeext; then
19525 ac_cv_sys_largefile_source
=1; break
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.
$ac_ext >&5
19533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19534 conftest
$ac_exeext conftest.
$ac_ext
19535 ac_cv_sys_largefile_source
=unknown
19539 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19540 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19541 case $ac_cv_sys_largefile_source in #(
19544 cat >>confdefs.h
<<_ACEOF
19545 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19551 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19552 # in glibc 2.1.3, but that breaks too many other things.
19553 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19554 if test $ac_cv_sys_largefile_source != unknown
; then
19556 cat >>confdefs.h
<<\_ACEOF
19557 #define HAVE_FSEEKO 1
19568 # For each platform, we need to know about any special compile and link
19569 # libraries, and whether the normal C function names are thread-safe.
19570 # See the comment at the top of src/port/thread.c for more information.
19571 # WIN32 doesn't need the pthread tests; it always uses threads
19572 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19577 ac_cpp
='$CPP $CPPFLAGS'
19578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19584 # We used to check for pthread.h first, but this fails if pthread.h
19585 # requires special compiler flags (e.g. on True64 or Sequent).
19586 # It gets checked for in the link test anyway.
19588 # First of all, check if the user has set any of the PTHREAD_LIBS,
19589 # etcetera environment variables, and if threads linking works using
19591 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
19592 save_CFLAGS
="$CFLAGS"
19593 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
19595 LIBS
="$PTHREAD_LIBS $LIBS"
19596 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19597 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19598 cat >conftest.
$ac_ext <<_ACEOF
19601 cat confdefs.h
>>conftest.
$ac_ext
19602 cat >>conftest.
$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19605 /* Override any GCC internal prototype to avoid an error.
19606 Use char because int might match the return type of a GCC
19607 builtin and then its argument prototype would still apply. */
19611 char pthread_join ();
19615 return pthread_join ();
19620 rm -f conftest.
$ac_objext conftest
$ac_exeext
19621 if { (ac_try
="$ac_link"
19622 case "(($ac_try" in
19623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_link") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest$ac_exeext &&
19637 $as_test_x conftest$ac_exeext; then
19640 echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647 conftest$ac_exeext conftest.$ac_ext
19648 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19649 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19650 if test x"$acx_pthread_ok" = xno; then
19655 CFLAGS="$save_CFLAGS"
19658 # We must check for the threads library under a number of different
19659 # names; the ordering is very important because some systems
19660 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19661 # libraries is broken (non-POSIX).
19663 # Create a list of thread flags to try. Items starting with a "-" are
19664 # C compiler flags, and other items are library names, except for "none"
19665 # which indicates that we try without any flags at all, and "pthread-config"
19666 # which is a program returning the flags for the Pth emulation library.
19668 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19670 # The ordering *is* (sometimes) important. Some notes on the
19671 # individual items follow:
19673 # pthreads: AIX (must check this before -lpthread)
19674 # none: in case threads are in libc; should be tried before -Kthread and
19675 # other compiler flags to prevent continual compiler warnings
19676 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19677 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19678 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19679 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19680 # -pthreads: Solaris/gcc
19681 # -mthreads: Mingw32/gcc, Lynx/gcc
19682 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19683 # doesn't hurt to check since this sometimes defines pthreads too;
19684 # also defines -D_REENTRANT)
19685 # pthread: Linux, etcetera
19686 # --thread-safe: KAI C++
19687 # pthread-config: use pthread-config program (for GNU Pth library)
19689 case "${host_cpu}-${host_os}" in
19692 # On Solaris (at least, for some versions), libc contains stubbed
19693 # (non-functional) versions of the pthreads routines, so link-based
19694 # tests will erroneously succeed. (We need to link with -pthread or
19695 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19696 # a function called by this macro, so we could check for that, but
19697 # who knows whether they'll stub that too in a future libc.) So,
19698 # we'll just look for -pthreads and -lpthread first:
19700 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19704 if test x"$acx_pthread_ok" = xno; then
19705 for flag in $acx_pthread_flags; do
19707 tryPTHREAD_CFLAGS=""
19711 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19712 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19716 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19717 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19718 tryPTHREAD_CFLAGS="$flag"
19722 # skip this if we already have flags defined, for PostgreSQL
19723 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19724 # Extract the first word of "pthread-config", so it can be a program name with args.
19725 set dummy pthread-config; ac_word=$2
19726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19728 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 if test -n "$acx_pthread_config"; then
19732 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19735 for as_dir in $PATH
19738 test -z "$as_dir" && as_dir=.
19739 for ac_exec_ext in '' $ac_executable_extensions; do
19740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19741 ac_cv_prog_acx_pthread_config="yes"
19742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19749 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19752 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19753 if test -n "$acx_pthread_config"; then
19754 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19755 echo "${ECHO_T}$acx_pthread_config" >&6; }
19757 { echo "$as_me:$LINENO: result: no" >&5
19758 echo "${ECHO_T}no" >&6; }
19762 if test x"$acx_pthread_config" = xno; then continue; fi
19763 tryPTHREAD_CFLAGS="`pthread-config
--cflags`"
19764 tryPTHREAD_LIBS="`pthread-config
--ldflags` `pthread-config
--libs`"
19768 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19769 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19770 tryPTHREAD_LIBS="-l$flag"
19775 save_CFLAGS="$CFLAGS"
19776 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19779 # Check for various functions. We must include pthread.h,
19780 # since some functions may be macros. (On the Sequent, we
19781 # need a special flag -Kthread to make this header compile.)
19782 # We check for pthread_join because it is in -lpthread on IRIX
19783 # while pthread_create is in libc. We check for pthread_attr_init
19784 # due to DEC craziness with -lpthreads. We check for
19785 # pthread_cleanup_push because it is one of the few pthread
19786 # functions on Solaris that doesn't have a non-functional libc stub.
19787 # We try pthread_create on general principles.
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 #include <pthread.h>
19798 pthread_t th; pthread_join(th, 0);
19799 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19800 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19805 rm -f conftest.$ac_objext conftest$ac_exeext
19806 if { (ac_try="$ac_link"
19807 case "(($ac_try" in
19808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19809 *) ac_try_echo
=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_link") 2>conftest.er1
19814 grep -v '^ *+' conftest.er1
>conftest.err
19816 cat conftest.err
>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } && {
19819 test -z "$ac_c_werror_flag" ||
19820 test ! -s conftest.err
19821 } && test -s conftest
$ac_exeext &&
19822 $as_test_x conftest
$ac_exeext; then
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.
$ac_ext >&5
19831 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19832 conftest
$ac_exeext conftest.
$ac_ext
19834 if test "x$acx_pthread_ok" = xyes
; then
19835 # Don't use options that are ignored by the compiler.
19836 # We find them by checking stderror.
19837 cat >conftest.
$ac_ext <<_ACEOF
19839 main (int argc, char **argv)
19846 rm -f conftest.
$ac_objext conftest
$ac_exeext
19847 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19848 # we continue with more flags because Linux needs -lpthread
19849 # for libpq builds on PostgreSQL. The test above only
19850 # tests for building binaries, not shared libraries.
19851 PTHREAD_LIBS
=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19852 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19853 else acx_pthread_ok
=no
19858 CFLAGS
="$save_CFLAGS"
19860 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19861 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19865 # Various other checks:
19866 if test "x$acx_pthread_ok" = xyes
; then
19868 LIBS
="$PTHREAD_LIBS $LIBS"
19869 save_CFLAGS
="$CFLAGS"
19870 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
19872 # Detect AIX lossage: threads are created detached by default
19873 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19874 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19875 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19876 cat >conftest.
$ac_ext <<_ACEOF
19879 cat confdefs.h
>>conftest.
$ac_ext
19880 cat >>conftest.
$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 #include <pthread.h>
19886 int attr=PTHREAD_CREATE_JOINABLE;
19891 rm -f conftest.
$ac_objext conftest
$ac_exeext
19892 if { (ac_try
="$ac_link"
19893 case "(($ac_try" in
19894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_link") 2>conftest.er1
19900 grep -v '^ *+' conftest.er1 >conftest.err
19902 cat conftest.err >&5
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); } && {
19905 test -z "$ac_c_werror_flag" ||
19906 test ! -s conftest.err
19907 } && test -s conftest$ac_exeext &&
19908 $as_test_x conftest$ac_exeext; then
19909 ok=PTHREAD_CREATE_JOINABLE
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19918 conftest$ac_exeext conftest.$ac_ext
19919 if test x"$ok" = xunknown; then
19920 cat >conftest.$ac_ext <<_ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19926 #include <pthread.h>
19930 int attr=PTHREAD_CREATE_UNDETACHED;
19935 rm -f conftest.$ac_objext conftest$ac_exeext
19936 if { (ac_try="$ac_link"
19937 case "(($ac_try" in
19938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19939 *) ac_try_echo
=$ac_try;;
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_link") 2>conftest.er1
19944 grep -v '^ *+' conftest.er1
>conftest.err
19946 cat conftest.err
>&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && {
19949 test -z "$ac_c_werror_flag" ||
19950 test ! -s conftest.err
19951 } && test -s conftest
$ac_exeext &&
19952 $as_test_x conftest
$ac_exeext; then
19953 ok
=PTHREAD_CREATE_UNDETACHED
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.
$ac_ext >&5
19961 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19962 conftest
$ac_exeext conftest.
$ac_ext
19964 if test x
"$ok" != xPTHREAD_CREATE_JOINABLE
; then
19966 cat >>confdefs.h
<<\_ACEOF
19967 #define PTHREAD_CREATE_JOINABLE $ok
19971 { echo "$as_me:$LINENO: result: ${ok}" >&5
19972 echo "${ECHO_T}${ok}" >&6; }
19973 if test x"$ok" = xunknown; then
19974 { echo "$as_me:$LINENO: WARNING
: we
do not know how to create joinable pthreads
" >&5
19975 echo "$as_me: WARNING
: we
do not know how to create joinable pthreads
" >&2;}
19978 { echo "$as_me:$LINENO: checking
if more special flags are required
for pthreads
" >&5
19979 echo $ECHO_N "checking
if more special flags are required
for pthreads...
$ECHO_C" >&6; }
19981 # We always add these in PostgreSQL
19982 # case "${host_cpu}-${host_os}" in
19983 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19984 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19986 { echo "$as_me:$LINENO: result
: ${flag}" >&5
19987 echo "${ECHO_T}${flag}" >&6; }
19988 if test "x$flag" != xno
; then
19989 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
19993 CFLAGS
="$save_CFLAGS"
19995 # Supporting cc_r would require a special CC in all places that
19996 # use libpq, and that is ugly, so we don't do it. Users can still
19997 # define their compiler as cc_r to do thread builds of everything.
19998 # More AIX lossage: must compile with cc_r
19999 # Extract the first word of "cc_r", so it can be a program name with args.
20000 set dummy cc_r
; ac_word
=$2
20001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20003 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 if test -n "$PTHREAD_CC"; then
20007 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
20009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20010 for as_dir
in $PATH
20013 test -z "$as_dir" && as_dir
=.
20014 for ac_exec_ext
in '' $ac_executable_extensions; do
20015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20016 ac_cv_prog_PTHREAD_CC
="cc_r"
20017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20024 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC
="${CC}"
20027 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
20028 if test -n "$PTHREAD_CC"; then
20029 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
20030 echo "${ECHO_T}$PTHREAD_CC" >&6; }
20032 { echo "$as_me:$LINENO: result: no" >&5
20033 echo "${ECHO_T}no" >&6; }
20045 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20046 if test x
"$acx_pthread_ok" = xyes
; then
20048 cat >>confdefs.h
<<\_ACEOF
20049 #define HAVE_PTHREAD 1
20058 ac_cpp
='$CPP $CPPFLAGS'
20059 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20065 # Some platforms use these, so just define them. They can't hurt if they
20066 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
20067 # enables 5-arg getpwuid_r, among other things.
20068 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
20071 # At this point, we don't want to muck with the compiler name for threading.
20072 # Let's see who fails, perhaps AIX. 2004-04-23
20073 if test "$PTHREAD_CC" != "$CC"; then
20074 { { echo "$as_me:$LINENO: error:
20075 PostgreSQL does not support platforms that require a special compiler
20076 for thread safety." >&5
20077 echo "$as_me: error:
20078 PostgreSQL does not support platforms that require a special compiler
20079 for thread safety." >&2;}
20080 { (exit 1); exit 1; }; }
20083 if test "$THREAD_SUPPORT" = no
; then
20084 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
20085 This platform is known to not support thread-safe programs. For details,
20086 compile and run src/bin/pg_thread_test." >&5
20087 echo "$as_me: error: cannot enable threads on this platform
20088 This platform is known to not support thread-safe programs. For details,
20089 compile and run src/bin/pg_thread_test." >&2;}
20090 { (exit 1); exit 1; }; }
20093 # Check for *_r functions
20096 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
20097 LIBS
="$LIBS $PTHREAD_LIBS"
20099 if test "$PORTNAME" != "win32"; then
20100 if test "${ac_cv_header_pthread_h+set}" = set; then
20101 { echo "$as_me:$LINENO: checking for pthread.h" >&5
20102 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20103 if test "${ac_cv_header_pthread_h+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20107 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20109 # Is the header compilable?
20110 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
20111 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
20112 cat >conftest.
$ac_ext <<_ACEOF
20115 cat confdefs.h
>>conftest.
$ac_ext
20116 cat >>conftest.
$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 $ac_includes_default
20119 #include <pthread.h>
20121 rm -f conftest.
$ac_objext
20122 if { (ac_try
="$ac_compile"
20123 case "(($ac_try" in
20124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_compile") 2>conftest.er1
20130 grep -v '^ *+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } && {
20135 test -z "$ac_c_werror_flag" ||
20136 test ! -s conftest.err
20137 } && test -s conftest.$ac_objext; then
20138 ac_header_compiler=yes
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 ac_header_compiler=no
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20148 echo "${ECHO_T}$ac_header_compiler" >&6; }
20150 # Is the header present?
20151 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
20152 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 #include <pthread.h>
20161 if { (ac_try="$ac_cpp conftest.$ac_ext"
20162 case "(($ac_try" in
20163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20164 *) ac_try_echo
=$ac_try;;
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20169 grep -v '^ *+' conftest.er1
>conftest.err
20171 cat conftest.err
>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } >/dev
/null
&& {
20174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20175 test ! -s conftest.err
20177 ac_header_preproc
=yes
20179 echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.
$ac_ext >&5
20182 ac_header_preproc
=no
20185 rm -f conftest.err conftest.
$ac_ext
20186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20187 echo "${ECHO_T}$ac_header_preproc" >&6; }
20189 # So? What about this header?
20190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20192 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
20193 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20194 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
20195 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
20196 ac_header_preproc
=yes
20199 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
20200 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
20202 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
20204 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
20206 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
20208 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
20209 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
20210 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
20212 ## ---------------------------------------- ##
20213 ## Report this to pgsql-bugs@postgresql.org ##
20214 ## ---------------------------------------- ##
20216 ) |
sed "s/^/$as_me: WARNING: /" >&2
20219 { echo "$as_me:$LINENO: checking for pthread.h" >&5
20220 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20221 if test "${ac_cv_header_pthread_h+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 ac_cv_header_pthread_h
=$ac_header_preproc
20226 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20227 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20230 if test $ac_cv_header_pthread_h = yes; then
20233 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
20234 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
20235 { (exit 1); exit 1; }; }
20244 for ac_func
in strerror_r getpwuid_r gethostbyname_r
20246 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20249 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 cat >conftest.
$ac_ext <<_ACEOF
20255 cat confdefs.h
>>conftest.
$ac_ext
20256 cat >>conftest.
$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20260 #define $ac_func innocuous_$ac_func
20262 /* System header to define __stub macros and hopefully few prototypes,
20263 which can conflict with char $ac_func (); below.
20264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20265 <limits.h> exists even on freestanding compilers. */
20268 # include <limits.h>
20270 # include <assert.h>
20275 /* Override any GCC internal prototype to avoid an error.
20276 Use char because int might match the return type of a GCC
20277 builtin and then its argument prototype would still apply. */
20282 /* The GNU C library defines this for functions which it implements
20283 to always fail with ENOSYS. Some functions are actually named
20284 something starting with __ and the normal name is an alias. */
20285 #if defined __stub_$ac_func || defined __stub___$ac_func
20292 return $ac_func ();
20297 rm -f conftest.
$ac_objext conftest
$ac_exeext
20298 if { (ac_try
="$ac_link"
20299 case "(($ac_try" in
20300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>conftest.er1
20306 grep -v '^ *+' conftest.er1 >conftest.err
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && {
20311 test -z "$ac_c_werror_flag" ||
20312 test ! -s conftest.err
20313 } && test -s conftest$ac_exeext &&
20314 $as_test_x conftest$ac_exeext; then
20315 eval "$as_ac_var=yes"
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 eval "$as_ac_var=no"
20323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20324 conftest$ac_exeext conftest.$ac_ext
20326 ac_res=`eval echo '${'$as_ac_var'}'`
20327 { echo "$as_me:$LINENO: result: $ac_res" >&5
20328 echo "${ECHO_T}$ac_res" >&6; }
20329 if test `eval echo '${'$as_ac_var'}'` = yes; then
20330 cat >>confdefs.h <<_ACEOF
20331 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20338 # Do test here with the proper thread flags
20339 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
20340 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20341 if test "${pgac_cv_func_getpwuid_r_5arg+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 <sys/types.h>
20356 struct passwd *space;
20359 struct passwd **result;
20360 getpwuid_r(uid, space, buf, bufsize, result);
20365 rm -f conftest.$ac_objext
20366 if { (ac_try="$ac_compile"
20367 case "(($ac_try" in
20368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20369 *) ac_try_echo
=$ac_try;;
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_compile") 2>conftest.er1
20374 grep -v '^ *+' conftest.er1
>conftest.err
20376 cat conftest.err
>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && {
20379 test -z "$ac_c_werror_flag" ||
20380 test ! -s conftest.err
20381 } && test -s conftest.
$ac_objext; then
20382 pgac_cv_func_getpwuid_r_5arg
=yes
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.
$ac_ext >&5
20387 pgac_cv_func_getpwuid_r_5arg
=no
20390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20392 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20393 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20394 if test x
"$pgac_cv_func_getpwuid_r_5arg" = xyes
; then
20396 cat >>confdefs.h
<<\_ACEOF
20397 #define GETPWUID_R_5ARG
20402 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20403 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20404 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 cat >conftest.
$ac_ext <<_ACEOF
20410 cat confdefs.h
>>conftest.
$ac_ext
20411 cat >>conftest.
$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 #include <string.h>
20418 int strerror_r(int, char *, size_t);
20420 /* Older AIX has 'int' for the third argument so we don't test the args. */
20427 rm -f conftest.
$ac_objext
20428 if { (ac_try
="$ac_compile"
20429 case "(($ac_try" in
20430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20436 grep -v '^ *+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20444 pgac_cv_func_strerror_r_int=yes
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 pgac_cv_func_strerror_r_int=no
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20455 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20456 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20458 cat >>confdefs.h <<\_ACEOF
20459 #define STRERROR_R_INT
20469 # do not use values from template file
20478 # We can test for libldap_r only after we know PTHREAD_LIBS
20479 if test "$with_ldap" = yes ; then
20481 if test "$PORTNAME" != "win32"; then
20483 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20484 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20485 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 ac_check_lib_save_LIBS=$LIBS
20489 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20490 cat >conftest.$ac_ext <<_ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20497 /* Override any GCC internal prototype to avoid an error.
20498 Use char because int might match the return type of a GCC
20499 builtin and then its argument prototype would still apply. */
20507 return ldap_bind ();
20512 rm -f conftest.$ac_objext conftest$ac_exeext
20513 if { (ac_try="$ac_link"
20514 case "(($ac_try" in
20515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20516 *) ac_try_echo
=$ac_try;;
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_link") 2>conftest.er1
20521 grep -v '^ *+' conftest.er1
>conftest.err
20523 cat conftest.err
>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } && {
20526 test -z "$ac_c_werror_flag" ||
20527 test ! -s conftest.err
20528 } && test -s conftest
$ac_exeext &&
20529 $as_test_x conftest
$ac_exeext; then
20530 ac_cv_lib_ldap_ldap_bind
=yes
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.
$ac_ext >&5
20535 ac_cv_lib_ldap_ldap_bind
=no
20538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20539 conftest
$ac_exeext conftest.
$ac_ext
20540 LIBS
=$ac_check_lib_save_LIBS
20542 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20543 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20544 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20545 cat >>confdefs.h
<<_ACEOF
20546 #define HAVE_LIBLDAP 1
20549 LIBS
="-lldap $LIBS"
20552 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20553 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20554 { (exit 1); exit 1; }; }
20557 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
20558 if test "$enable_thread_safety" = yes; then
20559 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20561 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20562 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20563 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 ac_check_lib_save_LIBS
=$LIBS
20567 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20568 cat >conftest.
$ac_ext <<_ACEOF
20571 cat confdefs.h
>>conftest.
$ac_ext
20572 cat >>conftest.
$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20575 /* Override any GCC internal prototype to avoid an error.
20576 Use char because int might match the return type of a GCC
20577 builtin and then its argument prototype would still apply. */
20581 char ldap_simple_bind ();
20585 return ldap_simple_bind ();
20590 rm -f conftest.
$ac_objext conftest
$ac_exeext
20591 if { (ac_try
="$ac_link"
20592 case "(($ac_try" in
20593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_link") 2>conftest.er1
20599 grep -v '^ *+' conftest.er1 >conftest.err
20601 cat conftest.err >&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } && {
20604 test -z "$ac_c_werror_flag" ||
20605 test ! -s conftest.err
20606 } && test -s conftest$ac_exeext &&
20607 $as_test_x conftest$ac_exeext; then
20608 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20613 ac_cv_lib_ldap_r_ldap_simple_bind=no
20616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20617 conftest$ac_exeext conftest.$ac_ext
20618 LIBS=$ac_check_lib_save_LIBS
20620 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20621 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20622 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20623 cat >>confdefs.h <<_ACEOF
20624 #define HAVE_LIBLDAP_R 1
20627 LIBS="-lldap_r $LIBS"
20630 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20631 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20632 { (exit 1); exit 1; }; }
20635 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20637 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20641 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20642 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20643 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 ac_check_lib_save_LIBS=$LIBS
20647 LIBS="-lwldap32 $LIBS"
20648 cat >conftest.$ac_ext <<_ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h. */
20655 /* Override any GCC internal prototype to avoid an error.
20656 Use char because int might match the return type of a GCC
20657 builtin and then its argument prototype would still apply. */
20665 return ldap_bind ();
20670 rm -f conftest.$ac_objext conftest$ac_exeext
20671 if { (ac_try="$ac_link"
20672 case "(($ac_try" in
20673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20674 *) ac_try_echo
=$ac_try;;
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677 (eval "$ac_link") 2>conftest.er1
20679 grep -v '^ *+' conftest.er1
>conftest.err
20681 cat conftest.err
>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } && {
20684 test -z "$ac_c_werror_flag" ||
20685 test ! -s conftest.err
20686 } && test -s conftest
$ac_exeext &&
20687 $as_test_x conftest
$ac_exeext; then
20688 ac_cv_lib_wldap32_ldap_bind
=yes
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.
$ac_ext >&5
20693 ac_cv_lib_wldap32_ldap_bind
=no
20696 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20697 conftest
$ac_exeext conftest.
$ac_ext
20698 LIBS
=$ac_check_lib_save_LIBS
20700 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20701 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20702 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20703 cat >>confdefs.h
<<_ACEOF
20704 #define HAVE_LIBWLDAP32 1
20707 LIBS
="-lwldap32 $LIBS"
20710 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20711 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20712 { (exit 1); exit 1; }; }
20715 LDAP_LIBS_FE
="-lwldap32"
20716 LDAP_LIBS_BE
="-lwldap32"
20724 # This test makes sure that run tests work at all. Sometimes a shared
20725 # library is found by the linker, but the runtime linker can't find it.
20726 # This check should come after all modifications of compiler or linker
20727 # variables, and before any other run tests.
20728 { echo "$as_me:$LINENO: checking test program" >&5
20729 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20730 if test "$cross_compiling" = yes; then
20731 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20732 echo "${ECHO_T}cross-compiling" >&6; }
20734 cat >conftest.
$ac_ext <<_ACEOF
20737 cat confdefs.h
>>conftest.
$ac_ext
20738 cat >>conftest.
$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 int main() { return 0; }
20742 rm -f conftest
$ac_exeext
20743 if { (ac_try
="$ac_link"
20744 case "(($ac_try" in
20745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_link") 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20753 { (case "(($ac_try" in
20754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20755 *) ac_try_echo
=$ac_try;;
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_try") 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; }; then
20762 { echo "$as_me:$LINENO: result: ok" >&5
20763 echo "${ECHO_T}ok" >&6; }
20765 echo "$as_me: program exited with status $ac_status" >&5
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.
$ac_ext >&5
20769 ( exit $ac_status )
20770 { echo "$as_me:$LINENO: result: failed" >&5
20771 echo "${ECHO_T}failed" >&6; }
20772 { { echo "$as_me:$LINENO: error:
20773 Could not execute a simple test program. This may be a problem
20774 related to locating shared libraries. Check the file 'config.log'
20775 for the exact reason." >&5
20776 echo "$as_me: error:
20777 Could not execute a simple test program. This may be a problem
20778 related to locating shared libraries. Check the file 'config.log'
20779 for the exact reason." >&2;}
20780 { (exit 1); exit 1; }; }
20782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20787 # --------------------
20788 # Run tests below here
20789 # --------------------
20791 # Force use of our snprintf if system's doesn't do arg control
20792 # See comment above at snprintf test for details.
20793 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no
; then
20794 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20795 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20796 if test "${pgac_cv_printf_arg_control+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 if test "$cross_compiling" = yes; then
20800 pgac_cv_printf_arg_control
=cross
20802 cat >conftest.
$ac_ext <<_ACEOF
20805 cat confdefs.h
>>conftest.
$ac_ext
20806 cat >>conftest.
$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20809 #include <string.h>
20815 /* can it swap arguments? */
20816 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20817 if (strcmp(buf, "4 3") != 0)
20822 rm -f conftest
$ac_exeext
20823 if { (ac_try
="$ac_link"
20824 case "(($ac_try" in
20825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_link") 2>&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20833 { (case "(($ac_try" in
20834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20835 *) ac_try_echo
=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 pgac_cv_printf_arg_control
=yes
20844 echo "$as_me: program exited with status $ac_status" >&5
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.
$ac_ext >&5
20848 ( exit $ac_status )
20849 pgac_cv_printf_arg_control
=no
20851 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20857 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20858 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20860 if test $pgac_cv_printf_arg_control != yes ; then
20861 pgac_need_repl_snprintf
=yes
20867 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20868 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20869 if test "${pgac_cv_type_long_int_64+set}" = set; then
20870 echo $ECHO_N "(cached) $ECHO_C" >&6
20872 if test "$cross_compiling" = yes; then
20873 # If cross-compiling, check the size reported by the compiler and
20874 # trust that the arithmetic works.
20875 cat >conftest.
$ac_ext <<_ACEOF
20878 cat confdefs.h
>>conftest.
$ac_ext
20879 cat >>conftest.
$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20885 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20892 rm -f conftest.
$ac_objext
20893 if { (ac_try
="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_compile") 2>conftest.er1
20901 grep -v '^ *+' conftest.er1 >conftest.err
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && {
20906 test -z "$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 } && test -s conftest.$ac_objext; then
20909 pgac_cv_type_long_int_64=yes
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20914 pgac_cv_type_long_int_64=no
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 cat >conftest.$ac_ext <<_ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 typedef long int ac_int64;
20928 * These are globals to discourage the compiler from folding all the
20929 * arithmetic tests down to compile-time constants.
20931 ac_int64 a = 20000001;
20932 ac_int64 b = 40000005;
20934 int does_int64_work()
20938 if (sizeof(ac_int64) != 8)
20939 return 0; /* definitely not the right size */
20941 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20949 exit(! does_int64_work());
20952 rm -f conftest$ac_exeext
20953 if { (ac_try="$ac_link"
20954 case "(($ac_try" in
20955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20956 *) ac_try_echo
=$ac_try;;
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_link") 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20963 { (case "(($ac_try" in
20964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_try") 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 pgac_cv_type_long_int_64=yes
20974 echo "$as_me: program exited with status $ac_status" >&5
20975 echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ( exit $ac_status )
20979 pgac_cv_type_long_int_64=no
20981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20986 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20987 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20989 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20990 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20992 cat >>confdefs.h <<\_ACEOF
20993 #define HAVE_LONG_INT_64 1
20999 if test x"$HAVE_LONG_INT_64" = x"no" ; then
21000 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
21001 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
21002 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 if test "$cross_compiling" = yes; then
21006 # If cross-compiling, check the size reported by the compiler and
21007 # trust that the arithmetic works.
21008 cat >conftest.$ac_ext <<_ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21018 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21029 *) ac_try_echo
=$ac_try;;
21031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032 (eval "$ac_compile") 2>conftest.er1
21034 grep -v '^ *+' conftest.er1
>conftest.err
21036 cat conftest.err
>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } && {
21039 test -z "$ac_c_werror_flag" ||
21040 test ! -s conftest.err
21041 } && test -s conftest.
$ac_objext; then
21042 pgac_cv_type_long_long_int_64
=yes
21044 echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.
$ac_ext >&5
21047 pgac_cv_type_long_long_int_64
=no
21050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21052 cat >conftest.
$ac_ext <<_ACEOF
21055 cat confdefs.h
>>conftest.
$ac_ext
21056 cat >>conftest.
$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 typedef long long int ac_int64;
21061 * These are globals to discourage the compiler from folding all the
21062 * arithmetic tests down to compile-time constants.
21064 ac_int64 a = 20000001;
21065 ac_int64 b = 40000005;
21067 int does_int64_work()
21071 if (sizeof(ac_int64) != 8)
21072 return 0; /* definitely not the right size */
21074 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
21082 exit(! does_int64_work());
21085 rm -f conftest
$ac_exeext
21086 if { (ac_try
="$ac_link"
21087 case "(($ac_try" in
21088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21089 *) ac_try_echo=$ac_try;;
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092 (eval "$ac_link") 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21096 { (case "(($ac_try" in
21097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21098 *) ac_try_echo
=$ac_try;;
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_try") 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 pgac_cv_type_long_long_int_64
=yes
21107 echo "$as_me: program exited with status $ac_status" >&5
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.
$ac_ext >&5
21111 ( exit $ac_status )
21112 pgac_cv_type_long_long_int_64
=no
21114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21119 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
21120 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
21122 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
21123 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
21125 cat >>confdefs.h
<<\_ACEOF
21126 #define HAVE_LONG_LONG_INT_64 1
21135 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
; then
21136 cat >conftest.
$ac_ext <<_ACEOF
21139 cat confdefs.h
>>conftest.
$ac_ext
21140 cat >>conftest.
$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21143 #define INT64CONST(x) x##LL
21144 long long int foo = INT64CONST(0x1234567890123456);
21154 rm -f conftest.
$ac_objext
21155 if { (ac_try
="$ac_compile"
21156 case "(($ac_try" in
21157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_compile") 2>conftest.er1
21163 grep -v '^ *+' conftest.er1 >conftest.err
21165 cat conftest.err >&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && {
21168 test -z "$ac_c_werror_flag" ||
21169 test ! -s conftest.err
21170 } && test -s conftest.$ac_objext; then
21172 cat >>confdefs.h <<\_ACEOF
21173 #define HAVE_LL_CONSTANTS 1
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187 # If we found "long int" is 64 bits, assume snprintf handles it. If
21188 # we found we need to use "long long int", better check. We cope with
21189 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
21190 # work, fall back to our own snprintf emulation (which we know uses %lld).
21192 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
21193 if test $pgac_need_repl_snprintf = no; then
21194 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
21195 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
21196 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
21197 echo $ECHO_N "(cached) $ECHO_C" >&6
21199 for pgac_format in '%lld' '%qd' '%I64d'; do
21200 if test "$cross_compiling" = yes; then
21201 pgac_cv_snprintf_long_long_int_format=cross; break
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21210 typedef long long int ac_int64;
21211 #define INT64_FORMAT "$pgac_format"
21213 ac_int64 a = 20000001;
21214 ac_int64 b = 40000005;
21216 int does_int64_snprintf_work()
21221 if (sizeof(ac_int64) != 8)
21222 return 0; /* doesn't look like the right size */
21225 snprintf(buf, 100, INT64_FORMAT, c);
21226 if (strcmp(buf, "800000140000005") != 0)
21227 return 0; /* either multiply or snprintf is busted */
21231 exit(! does_int64_snprintf_work());
21234 rm -f conftest$ac_exeext
21235 if { (ac_try="$ac_link"
21236 case "(($ac_try" in
21237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21238 *) ac_try_echo
=$ac_try;;
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_link") 2>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21245 { (case "(($ac_try" in
21246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250 (eval "$ac_try") 2>&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); }; }; then
21254 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
21256 echo "$as_me: program exited with status $ac_status" >&5
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21268 LONG_LONG_INT_FORMAT=''
21270 case $pgac_cv_snprintf_long_long_int_format in
21271 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
21272 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
21273 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
21274 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
21275 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
21276 *) { echo "$as_me:$LINENO: result: none" >&5
21277 echo "${ECHO_T}none" >&6; };;
21279 if test "$LONG_LONG_INT_FORMAT" = ""; then
21280 # Force usage of our own snprintf, since system snprintf is broken
21281 pgac_need_repl_snprintf=yes
21282 LONG_LONG_INT_FORMAT='%lld'
21285 # Here if we previously decided we needed to use our own snprintf
21286 LONG_LONG_INT_FORMAT='%lld'
21288 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" |
sed 's/d$/u/'`
21289 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
21290 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
21292 # Here if we are not using 'long long int' at all
21293 INT64_FORMAT='"%ld"'
21294 UINT64_FORMAT='"%lu"'
21298 cat >>confdefs.h <<_ACEOF
21299 #define INT64_FORMAT $INT64_FORMAT
21304 cat >>confdefs.h <<_ACEOF
21305 #define UINT64_FORMAT $UINT64_FORMAT
21309 # Now we have checked all the reasons to replace snprintf
21310 if test $pgac_need_repl_snprintf = yes; then
21312 cat >>confdefs.h <<\_ACEOF
21313 #define USE_REPL_SNPRINTF 1
21316 case " $LIBOBJS " in
21317 *" snprintf.$ac_objext "* ) ;;
21318 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21324 # Need a #define for the size of Datum (unsigned long)
21325 { echo "$as_me:$LINENO: checking for unsigned long" >&5
21326 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
21327 if test "${ac_cv_type_unsigned_long+set}" = set; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 $ac_includes_default
21337 typedef unsigned long ac__type_new_;
21341 if ((ac__type_new_ *) 0)
21343 if (sizeof (ac__type_new_))
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21353 *) ac_try_echo
=$ac_try;;
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356 (eval "$ac_compile") 2>conftest.er1
21358 grep -v '^ *+' conftest.er1
>conftest.err
21360 cat conftest.err
>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } && {
21363 test -z "$ac_c_werror_flag" ||
21364 test ! -s conftest.err
21365 } && test -s conftest.
$ac_objext; then
21366 ac_cv_type_unsigned_long
=yes
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.
$ac_ext >&5
21371 ac_cv_type_unsigned_long
=no
21374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21376 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21377 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21379 # The cast to long int works around a bug in the HP C Compiler
21380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21382 # This bug is HP SR number 8606223364.
21383 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21384 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21385 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 if test "$cross_compiling" = yes; then
21389 # Depending upon the size, compute the lo and hi bounds.
21390 cat >conftest.
$ac_ext <<_ACEOF
21393 cat confdefs.h
>>conftest.
$ac_ext
21394 cat >>conftest.
$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 $ac_includes_default
21397 typedef unsigned long ac__type_sizeof_;
21401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21408 rm -f conftest.
$ac_objext
21409 if { (ac_try
="$ac_compile"
21410 case "(($ac_try" in
21411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21412 *) ac_try_echo=$ac_try;;
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415 (eval "$ac_compile") 2>conftest.er1
21417 grep -v '^ *+' conftest.er1 >conftest.err
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } && {
21422 test -z "$ac_c_werror_flag" ||
21423 test ! -s conftest.err
21424 } && test -s conftest.$ac_objext; then
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 $ac_includes_default
21434 typedef unsigned long ac__type_sizeof_;
21438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21449 *) ac_try_echo
=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1
>conftest.err
21456 cat conftest.err
>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.
$ac_objext; then
21462 ac_hi
=$ac_mid; break
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.
$ac_ext >&5
21467 ac_lo
=`expr $ac_mid + 1`
21468 if test $ac_lo -le $ac_mid; then
21472 ac_mid
=`expr 2 '*' $ac_mid + 1`
21475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.
$ac_ext >&5
21481 cat >conftest.
$ac_ext <<_ACEOF
21484 cat confdefs.h
>>conftest.
$ac_ext
21485 cat >>conftest.
$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 $ac_includes_default
21488 typedef unsigned long ac__type_sizeof_;
21492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21499 rm -f conftest.
$ac_objext
21500 if { (ac_try
="$ac_compile"
21501 case "(($ac_try" in
21502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_compile") 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } && {
21513 test -z "$ac_c_werror_flag" ||
21514 test ! -s conftest.err
21515 } && test -s conftest.$ac_objext; then
21518 cat >conftest.$ac_ext <<_ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 $ac_includes_default
21525 typedef unsigned long ac__type_sizeof_;
21529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21540 *) ac_try_echo
=$ac_try;;
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_compile") 2>conftest.er1
21545 grep -v '^ *+' conftest.er1
>conftest.err
21547 cat conftest.err
>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest.
$ac_objext; then
21553 ac_lo
=$ac_mid; break
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.
$ac_ext >&5
21558 ac_hi
=`expr '(' $ac_mid ')' - 1`
21559 if test $ac_mid -le $ac_hi; then
21563 ac_mid
=`expr 2 '*' $ac_mid`
21566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.
$ac_ext >&5
21575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21579 # Binary search between lo and hi bounds.
21580 while test "x$ac_lo" != "x$ac_hi"; do
21581 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21582 cat >conftest.
$ac_ext <<_ACEOF
21585 cat confdefs.h
>>conftest.
$ac_ext
21586 cat >>conftest.
$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 $ac_includes_default
21589 typedef unsigned long ac__type_sizeof_;
21593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21600 rm -f conftest.
$ac_objext
21601 if { (ac_try
="$ac_compile"
21602 case "(($ac_try" in
21603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_compile") 2>conftest.er1
21609 grep -v '^ *+' conftest.er1 >conftest.err
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } && {
21614 test -z "$ac_c_werror_flag" ||
21615 test ! -s conftest.err
21616 } && test -s conftest.$ac_objext; then
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21622 ac_lo=`expr '(' $ac_mid ')' + 1`
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21629 '') if test "$ac_cv_type_unsigned_long" = yes; then
21630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21631 See \`config.log
' for more details." >&5
21632 echo "$as_me: error: cannot compute sizeof (unsigned long)
21633 See \`config.log' for more details.
" >&2;}
21634 { (exit 77); exit 77; }; }
21636 ac_cv_sizeof_unsigned_long=0
21640 cat >conftest.$ac_ext <<_ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 $ac_includes_default
21647 typedef unsigned long ac__type_sizeof_;
21648 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21649 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21651 #include <stdlib.h>
21656 FILE *f = fopen ("conftest.val
", "w
");
21659 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21661 long int i = longval ();
21662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21664 fprintf (f, "%ld
\n", i);
21668 unsigned long int i = ulongval ();
21669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21671 fprintf (f, "%lu
\n", i);
21673 return ferror (f) || fclose (f) != 0;
21679 rm -f conftest$ac_exeext
21680 if { (ac_try="$ac_link"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_link") 2>&5
21688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21690 { (case "(($ac_try" in
21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_try") 2>&5
21697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21698 (exit $ac_status); }; }; then
21699 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21701 echo "$as_me: program exited with status
$ac_status" >&5
21702 echo "$as_me: failed program was
:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ( exit $ac_status )
21706 if test "$ac_cv_type_unsigned_long" = yes; then
21707 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(unsigned long
)
21708 See \
`config.log' for more details." >&5
21709 echo "$as_me: error: cannot compute sizeof (unsigned long)
21710 See \`config.log
' for more details." >&2;}
21711 { (exit 77); exit 77; }; }
21713 ac_cv_sizeof_unsigned_long=0
21716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21721 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21725 cat >>confdefs.h <<_ACEOF
21726 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21731 # And one for the size of size_t (enables tweaks for > 32bit address space)
21732 { echo "$as_me:$LINENO: checking for size_t" >&5
21733 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21734 if test "${ac_cv_type_size_t+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 cat >conftest.$ac_ext <<_ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21744 typedef size_t ac__type_new_;
21748 if ((ac__type_new_ *) 0)
21750 if (sizeof (ac__type_new_))
21756 rm -f conftest.$ac_objext
21757 if { (ac_try="$ac_compile"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_compile") 2>conftest.er1
21765 grep -v '^
*+' conftest.er1 >conftest.err
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } && {
21770 test -z "$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21772 } && test -s conftest.$ac_objext; then
21773 ac_cv_type_size_t=yes
21775 echo "$as_me: failed program was:" >&5
21776 sed 's
/^
/|
/' conftest.$ac_ext >&5
21778 ac_cv_type_size_t=no
21781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21783 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21784 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21786 # The cast to long int works around a bug in the HP C Compiler
21787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21789 # This bug is HP SR number 8606223364.
21790 { echo "$as_me:$LINENO: checking size of size_t" >&5
21791 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21792 if test "${ac_cv_sizeof_size_t+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21795 if test "$cross_compiling" = yes; then
21796 # Depending upon the size, compute the lo and hi bounds.
21797 cat >conftest.
$ac_ext <<_ACEOF
21800 cat confdefs.h
>>conftest.
$ac_ext
21801 cat >>conftest.
$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 $ac_includes_default
21804 typedef size_t ac__type_sizeof_;
21808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21815 rm -f conftest.
$ac_objext
21816 if { (ac_try
="$ac_compile"
21817 case "(($ac_try" in
21818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21819 *) ac_try_echo=$ac_try;;
21821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21822 (eval "$ac_compile") 2>conftest.er1
21824 grep -v '^ *+' conftest.er1 >conftest.err
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest.$ac_objext; then
21834 cat >conftest.$ac_ext <<_ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21840 $ac_includes_default
21841 typedef size_t ac__type_sizeof_;
21845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21852 rm -f conftest.$ac_objext
21853 if { (ac_try="$ac_compile"
21854 case "(($ac_try" in
21855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21856 *) ac_try_echo
=$ac_try;;
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_compile") 2>conftest.er1
21861 grep -v '^ *+' conftest.er1
>conftest.err
21863 cat conftest.err
>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } && {
21866 test -z "$ac_c_werror_flag" ||
21867 test ! -s conftest.err
21868 } && test -s conftest.
$ac_objext; then
21869 ac_hi
=$ac_mid; break
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.
$ac_ext >&5
21874 ac_lo
=`expr $ac_mid + 1`
21875 if test $ac_lo -le $ac_mid; then
21879 ac_mid
=`expr 2 '*' $ac_mid + 1`
21882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.
$ac_ext >&5
21888 cat >conftest.
$ac_ext <<_ACEOF
21891 cat confdefs.h
>>conftest.
$ac_ext
21892 cat >>conftest.
$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 $ac_includes_default
21895 typedef size_t ac__type_sizeof_;
21899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21906 rm -f conftest.
$ac_objext
21907 if { (ac_try
="$ac_compile"
21908 case "(($ac_try" in
21909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_compile") 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest.$ac_objext; then
21925 cat >conftest.$ac_ext <<_ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 $ac_includes_default
21932 typedef size_t ac__type_sizeof_;
21936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21943 rm -f conftest.$ac_objext
21944 if { (ac_try="$ac_compile"
21945 case "(($ac_try" in
21946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21947 *) ac_try_echo
=$ac_try;;
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_compile") 2>conftest.er1
21952 grep -v '^ *+' conftest.er1
>conftest.err
21954 cat conftest.err
>&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } && {
21957 test -z "$ac_c_werror_flag" ||
21958 test ! -s conftest.err
21959 } && test -s conftest.
$ac_objext; then
21960 ac_lo
=$ac_mid; break
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.
$ac_ext >&5
21965 ac_hi
=`expr '(' $ac_mid ')' - 1`
21966 if test $ac_mid -le $ac_hi; then
21970 ac_mid
=`expr 2 '*' $ac_mid`
21973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.
$ac_ext >&5
21982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21986 # Binary search between lo and hi bounds.
21987 while test "x$ac_lo" != "x$ac_hi"; do
21988 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21989 cat >conftest.
$ac_ext <<_ACEOF
21992 cat confdefs.h
>>conftest.
$ac_ext
21993 cat >>conftest.
$ac_ext <<_ACEOF
21994 /* end confdefs.h. */
21995 $ac_includes_default
21996 typedef size_t ac__type_sizeof_;
22000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22007 rm -f conftest.
$ac_objext
22008 if { (ac_try
="$ac_compile"
22009 case "(($ac_try" in
22010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_compile") 2>conftest.er1
22016 grep -v '^ *+' conftest.er1 >conftest.err
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && {
22021 test -z "$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22023 } && test -s conftest.$ac_objext; then
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_lo=`expr '(' $ac_mid ')' + 1`
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22036 '') if test "$ac_cv_type_size_t" = yes; then
22037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22038 See \`config.log
' for more details." >&5
22039 echo "$as_me: error: cannot compute sizeof (size_t)
22040 See \`config.log' for more details.
" >&2;}
22041 { (exit 77); exit 77; }; }
22043 ac_cv_sizeof_size_t=0
22047 cat >conftest.$ac_ext <<_ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22053 $ac_includes_default
22054 typedef size_t ac__type_sizeof_;
22055 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22056 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22058 #include <stdlib.h>
22063 FILE *f = fopen ("conftest.val
", "w
");
22066 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22068 long int i = longval ();
22069 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22071 fprintf (f, "%ld
\n", i);
22075 unsigned long int i = ulongval ();
22076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22078 fprintf (f, "%lu
\n", i);
22080 return ferror (f) || fclose (f) != 0;
22086 rm -f conftest$ac_exeext
22087 if { (ac_try="$ac_link"
22088 case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_link") 2>&5
22095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22097 { (case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_try") 2>&5
22104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22105 (exit $ac_status); }; }; then
22106 ac_cv_sizeof_size_t=`cat conftest.val`
22108 echo "$as_me: program exited with status
$ac_status" >&5
22109 echo "$as_me: failed program was
:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22112 ( exit $ac_status )
22113 if test "$ac_cv_type_size_t" = yes; then
22114 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
22115 See \
`config.log' for more details." >&5
22116 echo "$as_me: error: cannot compute sizeof (size_t)
22117 See \`config.log
' for more details." >&2;}
22118 { (exit 77); exit 77; }; }
22120 ac_cv_sizeof_size_t=0
22123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22127 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22128 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22132 cat >>confdefs.h <<_ACEOF
22133 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22138 # Decide whether float4 is passed by value: user-selectable, enabled by default
22139 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22140 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22142 pgac_args="$pgac_args enable_float4_byval"
22144 # Check whether --enable-float4-byval was given.
22145 if test "${enable_float4_byval+set}" = set; then
22146 enableval=$enable_float4_byval;
22150 cat >>confdefs.h <<\_ACEOF
22151 #define USE_FLOAT4_BYVAL 1
22154 float4passbyval=true
22157 float4passbyval=false
22160 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22161 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22162 { (exit 1); exit 1; }; }
22167 enable_float4_byval=yes
22169 cat >>confdefs.h <<\_ACEOF
22170 #define USE_FLOAT4_BYVAL 1
22173 float4passbyval=true
22177 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22178 echo "${ECHO_T}$enable_float4_byval" >&6; }
22180 cat >>confdefs.h <<_ACEOF
22181 #define FLOAT4PASSBYVAL $float4passbyval
22185 # Decide whether float8 is passed by value.
22186 # Note: this setting also controls int8 and related types such as timestamp.
22187 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22188 # If not, trying to select it is an error.
22189 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22190 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22191 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22193 pgac_args="$pgac_args enable_float8_byval"
22195 # Check whether --enable-float8-byval was given.
22196 if test "${enable_float8_byval+set}" = set; then
22197 enableval=$enable_float8_byval;
22206 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22207 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22208 { (exit 1); exit 1; }; }
22213 enable_float8_byval=yes
22220 pgac_args="$pgac_args enable_float8_byval"
22222 # Check whether --enable-float8-byval was given.
22223 if test "${enable_float8_byval+set}" = set; then
22224 enableval=$enable_float8_byval;
22233 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22234 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22235 { (exit 1); exit 1; }; }
22240 enable_float8_byval=no
22245 if test "$enable_float8_byval" = yes ; then
22246 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22247 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22248 { (exit 1); exit 1; }; }
22251 if test "$enable_float8_byval" = yes ; then
22253 cat >>confdefs.h <<\_ACEOF
22254 #define USE_FLOAT8_BYVAL 1
22257 float8passbyval=true
22259 float8passbyval=false
22261 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22262 echo "${ECHO_T}$enable_float8_byval" >&6; }
22264 cat >>confdefs.h <<_ACEOF
22265 #define FLOAT8PASSBYVAL $float8passbyval
22269 # Determine memory alignment requirements for the basic C data types.
22271 { echo "$as_me:$LINENO: checking for short" >&5
22272 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22273 if test "${ac_cv_type_short+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 cat >conftest.$ac_ext <<_ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h. */
22282 $ac_includes_default
22283 typedef short ac__type_new_;
22287 if ((ac__type_new_ *) 0)
22289 if (sizeof (ac__type_new_))
22295 rm -f conftest.$ac_objext
22296 if { (ac_try="$ac_compile"
22297 case "(($ac_try" in
22298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299 *) ac_try_echo=$ac_try;;
22301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22302 (eval "$ac_compile") 2>conftest.er1
22304 grep -v '^
*+' conftest.er1 >conftest.err
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } && {
22309 test -z "$ac_c_werror_flag" ||
22310 test ! -s conftest.err
22311 } && test -s conftest.$ac_objext; then
22312 ac_cv_type_short=yes
22314 echo "$as_me: failed program was:" >&5
22315 sed 's
/^
/|
/' conftest.$ac_ext >&5
22317 ac_cv_type_short=no
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22323 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22325 # The cast to long int works around a bug in the HP C Compiler,
22326 # see AC_CHECK_SIZEOF for more information.
22327 { echo "$as_me:$LINENO: checking alignment of short" >&5
22328 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22329 if test "${ac_cv_alignof_short+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 if test "$cross_compiling" = yes; then
22333 # Depending upon the size, compute the lo and hi bounds.
22334 cat >conftest.$ac_ext <<_ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 $ac_includes_default
22342 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22344 typedef struct { char x; short y; } ac__type_alignof_;
22348 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22355 rm -f conftest.$ac_objext
22356 if { (ac_try="$ac_compile"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_compile") 2>conftest.er1
22364 grep -v '^
*+' conftest.er1 >conftest.err
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } && {
22369 test -z "$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 } && test -s conftest.$ac_objext; then
22374 cat >conftest.$ac_ext <<_ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22380 $ac_includes_default
22382 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22384 typedef struct { char x; short y; } ac__type_alignof_;
22388 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22395 rm -f conftest.$ac_objext
22396 if { (ac_try="$ac_compile"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_compile") 2>conftest.er1
22404 grep -v '^
*+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest.$ac_objext; then
22412 ac_hi=$ac_mid; break
22414 echo "$as_me: failed program was:" >&5
22415 sed 's
/^
/|
/' conftest.$ac_ext >&5
22417 ac_lo=`expr $ac_mid + 1`
22418 if test $ac_lo -le $ac_mid; then
22422 ac_mid=`expr 2 '*' $ac_mid + 1`
22425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22428 echo "$as_me: failed program was:" >&5
22429 sed 's
/^
/|
/' conftest.$ac_ext >&5
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22439 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22441 typedef struct { char x; short y; } ac__type_alignof_;
22445 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_compile") 2>conftest.er1
22461 grep -v '^
*+' conftest.er1 >conftest.err
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest.$ac_objext; then
22471 cat >conftest.$ac_ext <<_ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22477 $ac_includes_default
22479 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22481 typedef struct { char x; short y; } ac__type_alignof_;
22485 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22492 rm -f conftest.$ac_objext
22493 if { (ac_try="$ac_compile"
22494 case "(($ac_try" in
22495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496 *) ac_try_echo=$ac_try;;
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499 (eval "$ac_compile") 2>conftest.er1
22501 grep -v '^
*+' conftest.er1 >conftest.err
22503 cat conftest.err >&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } && {
22506 test -z "$ac_c_werror_flag" ||
22507 test ! -s conftest.err
22508 } && test -s conftest.$ac_objext; then
22509 ac_lo=$ac_mid; break
22511 echo "$as_me: failed program was:" >&5
22512 sed 's
/^
/|
/' conftest.$ac_ext >&5
22514 ac_hi=`expr '(' $ac_mid ')' - 1`
22515 if test $ac_mid -le $ac_hi; then
22519 ac_mid=`expr 2 '*' $ac_mid`
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 echo "$as_me: failed program was:" >&5
22526 sed 's
/^
/|
/' conftest.$ac_ext >&5
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 # Binary search between lo and hi bounds.
22536 while test "x$ac_lo" != "x$ac_hi"; do
22537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 $ac_includes_default
22546 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22548 typedef struct { char x; short y; } ac__type_alignof_;
22552 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22559 rm -f conftest.$ac_objext
22560 if { (ac_try="$ac_compile"
22561 case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_compile") 2>conftest.er1
22568 grep -v '^
*+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } && {
22573 test -z "$ac_c_werror_flag" ||
22574 test ! -s conftest.err
22575 } && test -s conftest.$ac_objext; then
22578 echo "$as_me: failed program was:" >&5
22579 sed 's
/^
/|
/' conftest.$ac_ext >&5
22581 ac_lo=`expr '(' $ac_mid ')' + 1`
22584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 ?*) ac_cv_alignof_short=$ac_lo;;
22588 '') if test "$ac_cv_type_short" = yes; then
22589 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22590 See \`config.log' for more details.
" >&5
22591 echo "$as_me: error
: cannot compute alignment of short
22592 See \
`config.log' for more details." >&2;}
22593 { (exit 77); exit 77; }; }
22595 ac_cv_alignof_short=0
22599 cat >conftest.$ac_ext <<_ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22605 $ac_includes_default
22607 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22609 typedef struct { char x; short y; } ac__type_alignof_;
22610 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22611 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22613 #include <stdlib.h>
22618 FILE *f = fopen ("conftest.val", "w");
22621 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22623 long int i = longval ();
22624 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22626 fprintf (f, "%ld\n", i);
22630 unsigned long int i = ulongval ();
22631 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22633 fprintf (f, "%lu\n", i);
22635 return ferror (f) || fclose (f) != 0;
22641 rm -f conftest$ac_exeext
22642 if { (ac_try="$ac_link"
22643 case "(($ac_try" in
22644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22645 *) ac_try_echo
=$ac_try;;
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648 (eval "$ac_link") 2>&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22652 { (case "(($ac_try" in
22653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_try") 2>&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); }; }; then
22661 ac_cv_alignof_short=`cat conftest.val
`
22663 echo "$as_me: program exited with status $ac_status" >&5
22664 echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22667 ( exit $ac_status )
22668 if test "$ac_cv_type_short" = yes; then
22669 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22670 See \`config.log
' for more details." >&5
22671 echo "$as_me: error: cannot compute alignment of short
22672 See \`config.log' for more details.
" >&2;}
22673 { (exit 77); exit 77; }; }
22675 ac_cv_alignof_short=0
22678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22682 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_short" >&5
22683 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22687 cat >>confdefs.h <<_ACEOF
22688 #define ALIGNOF_SHORT $ac_cv_alignof_short
22692 { echo "$as_me:$LINENO: checking
for int
" >&5
22693 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
22694 if test "${ac_cv_type_int+set}" = set; then
22695 echo $ECHO_N "(cached
) $ECHO_C" >&6
22697 cat >conftest.$ac_ext <<_ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h. */
22703 $ac_includes_default
22704 typedef int ac__type_new_;
22708 if ((ac__type_new_ *) 0)
22710 if (sizeof (ac__type_new_))
22716 rm -f conftest.$ac_objext
22717 if { (ac_try="$ac_compile"
22718 case "(($ac_try" in
22719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720 *) ac_try_echo=$ac_try;;
22722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22723 (eval "$ac_compile") 2>conftest.er1
22725 grep -v '^ *+' conftest.er1 >conftest.err
22727 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22729 (exit $ac_status); } && {
22730 test -z "$ac_c_werror_flag" ||
22731 test ! -s conftest.err
22732 } && test -s conftest.$ac_objext; then
22735 echo "$as_me: failed program was
:" >&5
22736 sed 's/^/| /' conftest.$ac_ext >&5
22741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
22744 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22746 # The cast to long int works around a bug in the HP C Compiler,
22747 # see AC_CHECK_SIZEOF for more information.
22748 { echo "$as_me:$LINENO: checking alignment of int
" >&5
22749 echo $ECHO_N "checking alignment of int...
$ECHO_C" >&6; }
22750 if test "${ac_cv_alignof_int+set}" = set; then
22751 echo $ECHO_N "(cached
) $ECHO_C" >&6
22753 if test "$cross_compiling" = yes; then
22754 # Depending upon the size, compute the lo and hi bounds.
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22761 $ac_includes_default
22763 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22765 typedef struct { char x; int y; } ac__type_alignof_;
22769 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_compile") 2>conftest.er1
22785 grep -v '^ *+' conftest.er1 >conftest.err
22787 cat conftest.err >&5
22788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest.$ac_objext; then
22795 cat >conftest.$ac_ext <<_ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h. */
22801 $ac_includes_default
22803 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22805 typedef struct { char x; int y; } ac__type_alignof_;
22809 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22816 rm -f conftest.$ac_objext
22817 if { (ac_try="$ac_compile"
22818 case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22823 (eval "$ac_compile") 2>conftest.er1
22825 grep -v '^ *+' conftest.er1 >conftest.err
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22829 (exit $ac_status); } && {
22830 test -z "$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22832 } && test -s conftest.$ac_objext; then
22833 ac_hi=$ac_mid; break
22835 echo "$as_me: failed program was
:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_lo=`expr $ac_mid + 1`
22839 if test $ac_lo -le $ac_mid; then
22843 ac_mid=`expr 2 '*' $ac_mid + 1`
22846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849 echo "$as_me: failed program was
:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 $ac_includes_default
22860 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22862 typedef struct { char x; int y; } ac__type_alignof_;
22866 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877 *) ac_try_echo=$ac_try;;
22879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22880 (eval "$ac_compile") 2>conftest.er1
22882 grep -v '^ *+' conftest.er1 >conftest.err
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest.$ac_objext; then
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22900 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22902 typedef struct { char x; int y; } ac__type_alignof_;
22906 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_compile") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_c_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest.$ac_objext; then
22930 ac_lo=$ac_mid; break
22932 echo "$as_me: failed program was
:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ac_hi=`expr '(' $ac_mid ')' - 1`
22936 if test $ac_mid -le $ac_hi; then
22940 ac_mid=`expr 2 '*' $ac_mid`
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22946 echo "$as_me: failed program was
:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 # Binary search between lo and hi bounds.
22957 while test "x
$ac_lo" != "x
$ac_hi"; do
22958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22959 cat >conftest.$ac_ext <<_ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h. */
22965 $ac_includes_default
22967 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22969 typedef struct { char x; int y; } ac__type_alignof_;
22973 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22980 rm -f conftest.$ac_objext
22981 if { (ac_try="$ac_compile"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_compile") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest.$ac_objext; then
22999 echo "$as_me: failed program was
:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 ac_lo=`expr '(' $ac_mid ')' + 1`
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008 ?*) ac_cv_alignof_int=$ac_lo;;
23009 '') if test "$ac_cv_type_int" = yes; then
23010 { { echo "$as_me:$LINENO: error
: cannot compute alignment of int
23011 See \
`config.log' for more details." >&5
23012 echo "$as_me: error: cannot compute alignment of int
23013 See \`config.log
' for more details." >&2;}
23014 { (exit 77); exit 77; }; }
23016 ac_cv_alignof_int=0
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 $ac_includes_default
23028 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23030 typedef struct { char x; int y; } ac__type_alignof_;
23031 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23032 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23034 #include <stdlib.h>
23039 FILE *f = fopen ("conftest.val", "w");
23042 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23044 long int i = longval ();
23045 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23047 fprintf (f, "%ld\n", i);
23051 unsigned long int i = ulongval ();
23052 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23054 fprintf (f, "%lu\n", i);
23056 return ferror (f) || fclose (f) != 0;
23062 rm -f conftest$ac_exeext
23063 if { (ac_try="$ac_link"
23064 case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_link") 2>&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23073 { (case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_try") 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; }; then
23082 ac_cv_alignof_int=`cat conftest.val`
23084 echo "$as_me: program exited with status $ac_status" >&5
23085 echo "$as_me: failed program was:" >&5
23086 sed 's
/^
/|
/' conftest.$ac_ext >&5
23088 ( exit $ac_status )
23089 if test "$ac_cv_type_int" = yes; then
23090 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23091 See \`config.log' for more details.
" >&5
23092 echo "$as_me: error
: cannot compute alignment of int
23093 See \
`config.log' for more details." >&2;}
23094 { (exit 77); exit 77; }; }
23096 ac_cv_alignof_int=0
23099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23103 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23104 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23108 cat >>confdefs.h <<_ACEOF
23109 #define ALIGNOF_INT $ac_cv_alignof_int
23113 { echo "$as_me:$LINENO: checking for long" >&5
23114 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23115 if test "${ac_cv_type_long+set}" = set; then
23116 echo $ECHO_N "(cached) $ECHO_C" >&6
23118 cat >conftest.$ac_ext <<_ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23124 $ac_includes_default
23125 typedef long ac__type_new_;
23129 if ((ac__type_new_ *) 0)
23131 if (sizeof (ac__type_new_))
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23141 *) ac_try_echo
=$ac_try;;
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_compile") 2>conftest.er1
23146 grep -v '^ *+' conftest.er1
>conftest.err
23148 cat conftest.err
>&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest.
$ac_objext; then
23154 ac_cv_type_long
=yes
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.
$ac_ext >&5
23162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23164 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23165 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23167 # The cast to long int works around a bug in the HP C Compiler,
23168 # see AC_CHECK_SIZEOF for more information.
23169 { echo "$as_me:$LINENO: checking alignment of long" >&5
23170 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23171 if test "${ac_cv_alignof_long+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 if test "$cross_compiling" = yes; then
23175 # Depending upon the size, compute the lo and hi bounds.
23176 cat >conftest.
$ac_ext <<_ACEOF
23179 cat confdefs.h
>>conftest.
$ac_ext
23180 cat >>conftest.
$ac_ext <<_ACEOF
23181 /* end confdefs.h. */
23182 $ac_includes_default
23184 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23186 typedef struct { char x; long y; } ac__type_alignof_;
23190 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23197 rm -f conftest.
$ac_objext
23198 if { (ac_try
="$ac_compile"
23199 case "(($ac_try" in
23200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_compile") 2>conftest.er1
23206 grep -v '^ *+' conftest.er1 >conftest.err
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && {
23211 test -z "$ac_c_werror_flag" ||
23212 test ! -s conftest.err
23213 } && test -s conftest.$ac_objext; then
23216 cat >conftest.$ac_ext <<_ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23222 $ac_includes_default
23224 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23226 typedef struct { char x; long y; } ac__type_alignof_;
23230 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23237 rm -f conftest.$ac_objext
23238 if { (ac_try="$ac_compile"
23239 case "(($ac_try" in
23240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23241 *) ac_try_echo
=$ac_try;;
23243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244 (eval "$ac_compile") 2>conftest.er1
23246 grep -v '^ *+' conftest.er1
>conftest.err
23248 cat conftest.err
>&5
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); } && {
23251 test -z "$ac_c_werror_flag" ||
23252 test ! -s conftest.err
23253 } && test -s conftest.
$ac_objext; then
23254 ac_hi
=$ac_mid; break
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.
$ac_ext >&5
23259 ac_lo
=`expr $ac_mid + 1`
23260 if test $ac_lo -le $ac_mid; then
23264 ac_mid
=`expr 2 '*' $ac_mid + 1`
23267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23270 echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.
$ac_ext >&5
23273 cat >conftest.
$ac_ext <<_ACEOF
23276 cat confdefs.h
>>conftest.
$ac_ext
23277 cat >>conftest.
$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23279 $ac_includes_default
23281 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23283 typedef struct { char x; long y; } ac__type_alignof_;
23287 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23294 rm -f conftest.
$ac_objext
23295 if { (ac_try
="$ac_compile"
23296 case "(($ac_try" in
23297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23298 *) ac_try_echo=$ac_try;;
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301 (eval "$ac_compile") 2>conftest.er1
23303 grep -v '^ *+' conftest.er1 >conftest.err
23305 cat conftest.err >&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); } && {
23308 test -z "$ac_c_werror_flag" ||
23309 test ! -s conftest.err
23310 } && test -s conftest.$ac_objext; then
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 $ac_includes_default
23321 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23323 typedef struct { char x; long y; } ac__type_alignof_;
23327 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23338 *) ac_try_echo
=$ac_try;;
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341 (eval "$ac_compile") 2>conftest.er1
23343 grep -v '^ *+' conftest.er1
>conftest.err
23345 cat conftest.err
>&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); } && {
23348 test -z "$ac_c_werror_flag" ||
23349 test ! -s conftest.err
23350 } && test -s conftest.
$ac_objext; then
23351 ac_lo
=$ac_mid; break
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.
$ac_ext >&5
23356 ac_hi
=`expr '(' $ac_mid ')' - 1`
23357 if test $ac_mid -le $ac_hi; then
23361 ac_mid
=`expr 2 '*' $ac_mid`
23364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23367 echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.
$ac_ext >&5
23373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23377 # Binary search between lo and hi bounds.
23378 while test "x$ac_lo" != "x$ac_hi"; do
23379 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23380 cat >conftest.
$ac_ext <<_ACEOF
23383 cat confdefs.h
>>conftest.
$ac_ext
23384 cat >>conftest.
$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 $ac_includes_default
23388 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23390 typedef struct { char x; long y; } ac__type_alignof_;
23394 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23401 rm -f conftest.
$ac_objext
23402 if { (ac_try
="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23420 echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_lo=`expr '(' $ac_mid ')' + 1`
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429 ?*) ac_cv_alignof_long=$ac_lo;;
23430 '') if test "$ac_cv_type_long" = yes; then
23431 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23432 See \`config.log
' for more details." >&5
23433 echo "$as_me: error: cannot compute alignment of long
23434 See \`config.log' for more details.
" >&2;}
23435 { (exit 77); exit 77; }; }
23437 ac_cv_alignof_long=0
23441 cat >conftest.$ac_ext <<_ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h. */
23447 $ac_includes_default
23449 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23451 typedef struct { char x; long y; } ac__type_alignof_;
23452 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23453 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23455 #include <stdlib.h>
23460 FILE *f = fopen ("conftest.val
", "w
");
23463 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23465 long int i = longval ();
23466 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23468 fprintf (f, "%ld
\n", i);
23472 unsigned long int i = ulongval ();
23473 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23475 fprintf (f, "%lu
\n", i);
23477 return ferror (f) || fclose (f) != 0;
23483 rm -f conftest$ac_exeext
23484 if { (ac_try="$ac_link"
23485 case "(($ac_try" in
23486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487 *) ac_try_echo=$ac_try;;
23489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23490 (eval "$ac_link") 2>&5
23492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23494 { (case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23499 (eval "$ac_try") 2>&5
23501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23502 (exit $ac_status); }; }; then
23503 ac_cv_alignof_long=`cat conftest.val`
23505 echo "$as_me: program exited with status
$ac_status" >&5
23506 echo "$as_me: failed program was
:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23509 ( exit $ac_status )
23510 if test "$ac_cv_type_long" = yes; then
23511 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
23512 See \
`config.log' for more details." >&5
23513 echo "$as_me: error: cannot compute alignment of long
23514 See \`config.log
' for more details." >&2;}
23515 { (exit 77); exit 77; }; }
23517 ac_cv_alignof_long=0
23520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23524 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23525 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23529 cat >>confdefs.h <<_ACEOF
23530 #define ALIGNOF_LONG $ac_cv_alignof_long
23534 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23535 { echo "$as_me:$LINENO: checking for long long int" >&5
23536 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23537 if test "${ac_cv_type_long_long_int+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 cat >conftest.$ac_ext <<_ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h. */
23546 $ac_includes_default
23547 typedef long long int ac__type_new_;
23551 if ((ac__type_new_ *) 0)
23553 if (sizeof (ac__type_new_))
23559 rm -f conftest.$ac_objext
23560 if { (ac_try="$ac_compile"
23561 case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566 (eval "$ac_compile") 2>conftest.er1
23568 grep -v '^
*+' conftest.er1 >conftest.err
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest.$ac_objext; then
23576 ac_cv_type_long_long_int=yes
23578 echo "$as_me: failed program was:" >&5
23579 sed 's
/^
/|
/' conftest.$ac_ext >&5
23581 ac_cv_type_long_long_int=no
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23586 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23587 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23589 # The cast to long int works around a bug in the HP C Compiler,
23590 # see AC_CHECK_SIZEOF for more information.
23591 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23592 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23593 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23594 echo $ECHO_N "(cached) $ECHO_C" >&6
23596 if test "$cross_compiling" = yes; then
23597 # Depending upon the size, compute the lo and hi bounds.
23598 cat >conftest.$ac_ext <<_ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h. */
23604 $ac_includes_default
23606 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23608 typedef struct { char x; long long int y; } ac__type_alignof_;
23612 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23619 rm -f conftest.$ac_objext
23620 if { (ac_try="$ac_compile"
23621 case "(($ac_try" in
23622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23623 *) ac_try_echo=$ac_try;;
23625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23626 (eval "$ac_compile") 2>conftest.er1
23628 grep -v '^
*+' conftest.er1 >conftest.err
23630 cat conftest.err >&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); } && {
23633 test -z "$ac_c_werror_flag" ||
23634 test ! -s conftest.err
23635 } && test -s conftest.$ac_objext; then
23638 cat >conftest.$ac_ext <<_ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h. */
23644 $ac_includes_default
23646 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23648 typedef struct { char x; long long int y; } ac__type_alignof_;
23652 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663 *) ac_try_echo=$ac_try;;
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666 (eval "$ac_compile") 2>conftest.er1
23668 grep -v '^
*+' conftest.er1 >conftest.err
23670 cat conftest.err >&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); } && {
23673 test -z "$ac_c_werror_flag" ||
23674 test ! -s conftest.err
23675 } && test -s conftest.$ac_objext; then
23676 ac_hi=$ac_mid; break
23678 echo "$as_me: failed program was:" >&5
23679 sed 's
/^
/|
/' conftest.$ac_ext >&5
23681 ac_lo=`expr $ac_mid + 1`
23682 if test $ac_lo -le $ac_mid; then
23686 ac_mid=`expr 2 '*' $ac_mid + 1`
23689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23692 echo "$as_me: failed program was:" >&5
23693 sed 's
/^
/|
/' conftest.$ac_ext >&5
23695 cat >conftest.$ac_ext <<_ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23701 $ac_includes_default
23703 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23705 typedef struct { char x; long long int y; } ac__type_alignof_;
23709 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23716 rm -f conftest.$ac_objext
23717 if { (ac_try="$ac_compile"
23718 case "(($ac_try" in
23719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720 *) ac_try_echo=$ac_try;;
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723 (eval "$ac_compile") 2>conftest.er1
23725 grep -v '^
*+' conftest.er1 >conftest.err
23727 cat conftest.err >&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } && {
23730 test -z "$ac_c_werror_flag" ||
23731 test ! -s conftest.err
23732 } && test -s conftest.$ac_objext; then
23735 cat >conftest.$ac_ext <<_ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23741 $ac_includes_default
23743 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23745 typedef struct { char x; long long int y; } ac__type_alignof_;
23749 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_compile") 2>conftest.er1
23765 grep -v '^
*+' conftest.er1 >conftest.err
23767 cat conftest.err >&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && {
23770 test -z "$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 } && test -s conftest.$ac_objext; then
23773 ac_lo=$ac_mid; break
23775 echo "$as_me: failed program was:" >&5
23776 sed 's
/^
/|
/' conftest.$ac_ext >&5
23778 ac_hi=`expr '(' $ac_mid ')' - 1`
23779 if test $ac_mid -le $ac_hi; then
23783 ac_mid=`expr 2 '*' $ac_mid`
23786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 echo "$as_me: failed program was:" >&5
23790 sed 's
/^
/|
/' conftest.$ac_ext >&5
23795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23799 # Binary search between lo and hi bounds.
23800 while test "x$ac_lo" != "x$ac_hi"; do
23801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23802 cat >conftest.$ac_ext <<_ACEOF
23805 cat confdefs.h >>conftest.$ac_ext
23806 cat >>conftest.$ac_ext <<_ACEOF
23807 /* end confdefs.h. */
23808 $ac_includes_default
23810 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23812 typedef struct { char x; long long int y; } ac__type_alignof_;
23816 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_compile") 2>conftest.er1
23832 grep -v '^
*+' conftest.er1 >conftest.err
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } && {
23837 test -z "$ac_c_werror_flag" ||
23838 test ! -s conftest.err
23839 } && test -s conftest.$ac_objext; then
23842 echo "$as_me: failed program was:" >&5
23843 sed 's
/^
/|
/' conftest.$ac_ext >&5
23845 ac_lo=`expr '(' $ac_mid ')' + 1`
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23851 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23852 '') if test "$ac_cv_type_long_long_int" = yes; then
23853 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23854 See \`config.log' for more details.
" >&5
23855 echo "$as_me: error
: cannot compute alignment of long long int
23856 See \
`config.log' for more details." >&2;}
23857 { (exit 77); exit 77; }; }
23859 ac_cv_alignof_long_long_int=0
23863 cat >conftest.$ac_ext <<_ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 $ac_includes_default
23871 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23873 typedef struct { char x; long long int y; } ac__type_alignof_;
23874 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23875 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23877 #include <stdlib.h>
23882 FILE *f = fopen ("conftest.val", "w");
23885 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23887 long int i = longval ();
23888 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23890 fprintf (f, "%ld\n", i);
23894 unsigned long int i = ulongval ();
23895 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23897 fprintf (f, "%lu\n", i);
23899 return ferror (f) || fclose (f) != 0;
23905 rm -f conftest$ac_exeext
23906 if { (ac_try="$ac_link"
23907 case "(($ac_try" in
23908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23909 *) ac_try_echo
=$ac_try;;
23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23912 (eval "$ac_link") 2>&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23916 { (case "(($ac_try" in
23917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921 (eval "$ac_try") 2>&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; }; then
23925 ac_cv_alignof_long_long_int=`cat conftest.val
`
23927 echo "$as_me: program exited with status $ac_status" >&5
23928 echo "$as_me: failed program was:" >&5
23929 sed 's/^/| /' conftest.$ac_ext >&5
23931 ( exit $ac_status )
23932 if test "$ac_cv_type_long_long_int" = yes; then
23933 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23934 See \`config.log
' for more details." >&5
23935 echo "$as_me: error: cannot compute alignment of long long int
23936 See \`config.log' for more details.
" >&2;}
23937 { (exit 77); exit 77; }; }
23939 ac_cv_alignof_long_long_int=0
23942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23946 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_long_long_int" >&5
23947 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23951 cat >>confdefs.h <<_ACEOF
23952 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23957 { echo "$as_me:$LINENO: checking
for double
" >&5
23958 echo $ECHO_N "checking
for double...
$ECHO_C" >&6; }
23959 if test "${ac_cv_type_double+set}" = set; then
23960 echo $ECHO_N "(cached
) $ECHO_C" >&6
23962 cat >conftest.$ac_ext <<_ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h. */
23968 $ac_includes_default
23969 typedef double ac__type_new_;
23973 if ((ac__type_new_ *) 0)
23975 if (sizeof (ac__type_new_))
23981 rm -f conftest.$ac_objext
23982 if { (ac_try="$ac_compile"
23983 case "(($ac_try" in
23984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985 *) ac_try_echo=$ac_try;;
23987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23988 (eval "$ac_compile") 2>conftest.er1
23990 grep -v '^ *+' conftest.er1 >conftest.err
23992 cat conftest.err >&5
23993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23994 (exit $ac_status); } && {
23995 test -z "$ac_c_werror_flag" ||
23996 test ! -s conftest.err
23997 } && test -s conftest.$ac_objext; then
23998 ac_cv_type_double=yes
24000 echo "$as_me: failed program was
:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24003 ac_cv_type_double=no
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008 { echo "$as_me:$LINENO: result
: $ac_cv_type_double" >&5
24009 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24011 # The cast to long int works around a bug in the HP C Compiler,
24012 # see AC_CHECK_SIZEOF for more information.
24013 { echo "$as_me:$LINENO: checking alignment of double
" >&5
24014 echo $ECHO_N "checking alignment of double...
$ECHO_C" >&6; }
24015 if test "${ac_cv_alignof_double+set}" = set; then
24016 echo $ECHO_N "(cached
) $ECHO_C" >&6
24018 if test "$cross_compiling" = yes; then
24019 # Depending upon the size, compute the lo and hi bounds.
24020 cat >conftest.$ac_ext <<_ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h. */
24026 $ac_includes_default
24028 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24030 typedef struct { char x; double y; } ac__type_alignof_;
24034 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24041 rm -f conftest.$ac_objext
24042 if { (ac_try="$ac_compile"
24043 case "(($ac_try" in
24044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045 *) ac_try_echo=$ac_try;;
24047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24048 (eval "$ac_compile") 2>conftest.er1
24050 grep -v '^ *+' conftest.er1 >conftest.err
24052 cat conftest.err >&5
24053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24054 (exit $ac_status); } && {
24055 test -z "$ac_c_werror_flag" ||
24056 test ! -s conftest.err
24057 } && test -s conftest.$ac_objext; then
24060 cat >conftest.$ac_ext <<_ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h. */
24066 $ac_includes_default
24068 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24070 typedef struct { char x; double y; } ac__type_alignof_;
24074 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24081 rm -f conftest.$ac_objext
24082 if { (ac_try="$ac_compile"
24083 case "(($ac_try" in
24084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085 *) ac_try_echo=$ac_try;;
24087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24088 (eval "$ac_compile") 2>conftest.er1
24090 grep -v '^ *+' conftest.er1 >conftest.err
24092 cat conftest.err >&5
24093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24094 (exit $ac_status); } && {
24095 test -z "$ac_c_werror_flag" ||
24096 test ! -s conftest.err
24097 } && test -s conftest.$ac_objext; then
24098 ac_hi=$ac_mid; break
24100 echo "$as_me: failed program was
:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 ac_lo=`expr $ac_mid + 1`
24104 if test $ac_lo -le $ac_mid; then
24108 ac_mid=`expr 2 '*' $ac_mid + 1`
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24114 echo "$as_me: failed program was
:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24117 cat >conftest.$ac_ext <<_ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24123 $ac_includes_default
24125 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24127 typedef struct { char x; double y; } ac__type_alignof_;
24131 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24138 rm -f conftest.$ac_objext
24139 if { (ac_try="$ac_compile"
24140 case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_compile") 2>conftest.er1
24147 grep -v '^ *+' conftest.er1 >conftest.err
24149 cat conftest.err >&5
24150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24151 (exit $ac_status); } && {
24152 test -z "$ac_c_werror_flag" ||
24153 test ! -s conftest.err
24154 } && test -s conftest.$ac_objext; then
24157 cat >conftest.$ac_ext <<_ACEOF
24160 cat confdefs.h >>conftest.$ac_ext
24161 cat >>conftest.$ac_ext <<_ACEOF
24162 /* end confdefs.h. */
24163 $ac_includes_default
24165 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24167 typedef struct { char x; double y; } ac__type_alignof_;
24171 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24178 rm -f conftest.$ac_objext
24179 if { (ac_try="$ac_compile"
24180 case "(($ac_try" in
24181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24185 (eval "$ac_compile") 2>conftest.er1
24187 grep -v '^ *+' conftest.er1 >conftest.err
24189 cat conftest.err >&5
24190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24191 (exit $ac_status); } && {
24192 test -z "$ac_c_werror_flag" ||
24193 test ! -s conftest.err
24194 } && test -s conftest.$ac_objext; then
24195 ac_lo=$ac_mid; break
24197 echo "$as_me: failed program was
:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24200 ac_hi=`expr '(' $ac_mid ')' - 1`
24201 if test $ac_mid -le $ac_hi; then
24205 ac_mid=`expr 2 '*' $ac_mid`
24208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24211 echo "$as_me: failed program was
:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221 # Binary search between lo and hi bounds.
24222 while test "x
$ac_lo" != "x
$ac_hi"; do
24223 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24224 cat >conftest.$ac_ext <<_ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h. */
24230 $ac_includes_default
24232 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24234 typedef struct { char x; double y; } ac__type_alignof_;
24238 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24245 rm -f conftest.$ac_objext
24246 if { (ac_try="$ac_compile"
24247 case "(($ac_try" in
24248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24249 *) ac_try_echo=$ac_try;;
24251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24252 (eval "$ac_compile") 2>conftest.er1
24254 grep -v '^ *+' conftest.er1 >conftest.err
24256 cat conftest.err >&5
24257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24258 (exit $ac_status); } && {
24259 test -z "$ac_c_werror_flag" ||
24260 test ! -s conftest.err
24261 } && test -s conftest.$ac_objext; then
24264 echo "$as_me: failed program was
:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ac_lo=`expr '(' $ac_mid ')' + 1`
24270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24273 ?*) ac_cv_alignof_double=$ac_lo;;
24274 '') if test "$ac_cv_type_double" = yes; then
24275 { { echo "$as_me:$LINENO: error
: cannot compute alignment of double
24276 See \
`config.log' for more details." >&5
24277 echo "$as_me: error: cannot compute alignment of double
24278 See \`config.log
' for more details." >&2;}
24279 { (exit 77); exit 77; }; }
24281 ac_cv_alignof_double=0
24285 cat >conftest.$ac_ext <<_ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 $ac_includes_default
24293 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24295 typedef struct { char x; double y; } ac__type_alignof_;
24296 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24297 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24299 #include <stdlib.h>
24304 FILE *f = fopen ("conftest.val", "w");
24307 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24309 long int i = longval ();
24310 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24312 fprintf (f, "%ld\n", i);
24316 unsigned long int i = ulongval ();
24317 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24319 fprintf (f, "%lu\n", i);
24321 return ferror (f) || fclose (f) != 0;
24327 rm -f conftest$ac_exeext
24328 if { (ac_try="$ac_link"
24329 case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334 (eval "$ac_link") 2>&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24338 { (case "(($ac_try" in
24339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340 *) ac_try_echo=$ac_try;;
24342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343 (eval "$ac_try") 2>&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); }; }; then
24347 ac_cv_alignof_double=`cat conftest.val`
24349 echo "$as_me: program exited with status $ac_status" >&5
24350 echo "$as_me: failed program was:" >&5
24351 sed 's
/^
/|
/' conftest.$ac_ext >&5
24353 ( exit $ac_status )
24354 if test "$ac_cv_type_double" = yes; then
24355 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24356 See \`config.log' for more details.
" >&5
24357 echo "$as_me: error
: cannot compute alignment of double
24358 See \
`config.log' for more details." >&2;}
24359 { (exit 77); exit 77; }; }
24361 ac_cv_alignof_double=0
24364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24368 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24369 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24373 cat >>confdefs.h <<_ACEOF
24374 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24379 # Compute maximum alignment of any basic type.
24380 # We assume long's alignment is at least as strong as char, short, or int;
24381 # but we must check long long (if it exists) and double.
24383 MAX_ALIGNOF=$ac_cv_alignof_long
24384 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24385 MAX_ALIGNOF=$ac_cv_alignof_double
24387 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24388 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24391 cat >>confdefs.h <<_ACEOF
24392 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24397 # Some platforms predefine the types int8, int16, etc. Only check
24398 # a (hopefully) representative subset.
24399 { echo "$as_me:$LINENO: checking for int8" >&5
24400 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24401 if test "${ac_cv_type_int8+set}" = set; then
24402 echo $ECHO_N "(cached) $ECHO_C" >&6
24404 cat >conftest.$ac_ext <<_ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h. */
24411 #ifdef HAVE_SUPPORTDEFS_H
24412 #include <SupportDefs.h>
24415 typedef int8 ac__type_new_;
24419 if ((ac__type_new_ *) 0)
24421 if (sizeof (ac__type_new_))
24427 rm -f conftest.$ac_objext
24428 if { (ac_try="$ac_compile"
24429 case "(($ac_try" in
24430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24431 *) ac_try_echo
=$ac_try;;
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434 (eval "$ac_compile") 2>conftest.er1
24436 grep -v '^ *+' conftest.er1
>conftest.err
24438 cat conftest.err
>&5
24439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } && {
24441 test -z "$ac_c_werror_flag" ||
24442 test ! -s conftest.err
24443 } && test -s conftest.
$ac_objext; then
24444 ac_cv_type_int8
=yes
24446 echo "$as_me: failed program was:" >&5
24447 sed 's/^/| /' conftest.
$ac_ext >&5
24452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24454 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24455 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24456 if test $ac_cv_type_int8 = yes; then
24458 cat >>confdefs.h
<<_ACEOF
24459 #define HAVE_INT8 1
24464 { echo "$as_me:$LINENO: checking for uint8" >&5
24465 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24466 if test "${ac_cv_type_uint8+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24469 cat >conftest.
$ac_ext <<_ACEOF
24472 cat confdefs.h
>>conftest.
$ac_ext
24473 cat >>conftest.
$ac_ext <<_ACEOF
24474 /* end confdefs.h. */
24476 #ifdef HAVE_SUPPORTDEFS_H
24477 #include <SupportDefs.h>
24480 typedef uint8 ac__type_new_;
24484 if ((ac__type_new_ *) 0)
24486 if (sizeof (ac__type_new_))
24492 rm -f conftest.
$ac_objext
24493 if { (ac_try
="$ac_compile"
24494 case "(($ac_try" in
24495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24496 *) ac_try_echo=$ac_try;;
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499 (eval "$ac_compile") 2>conftest.er1
24501 grep -v '^ *+' conftest.er1 >conftest.err
24503 cat conftest.err >&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } && {
24506 test -z "$ac_c_werror_flag" ||
24507 test ! -s conftest.err
24508 } && test -s conftest.$ac_objext; then
24509 ac_cv_type_uint8=yes
24511 echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24514 ac_cv_type_uint8=no
24517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24519 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24520 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24521 if test $ac_cv_type_uint8 = yes; then
24523 cat >>confdefs.h <<_ACEOF
24524 #define HAVE_UINT8 1
24529 { echo "$as_me:$LINENO: checking for int64" >&5
24530 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24531 if test "${ac_cv_type_int64+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
24534 cat >conftest.$ac_ext <<_ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h. */
24541 #ifdef HAVE_SUPPORTDEFS_H
24542 #include <SupportDefs.h>
24545 typedef int64 ac__type_new_;
24549 if ((ac__type_new_ *) 0)
24551 if (sizeof (ac__type_new_))
24557 rm -f conftest.$ac_objext
24558 if { (ac_try="$ac_compile"
24559 case "(($ac_try" in
24560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24561 *) ac_try_echo
=$ac_try;;
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564 (eval "$ac_compile") 2>conftest.er1
24566 grep -v '^ *+' conftest.er1
>conftest.err
24568 cat conftest.err
>&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } && {
24571 test -z "$ac_c_werror_flag" ||
24572 test ! -s conftest.err
24573 } && test -s conftest.
$ac_objext; then
24574 ac_cv_type_int64
=yes
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.
$ac_ext >&5
24579 ac_cv_type_int64
=no
24582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24584 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24585 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24586 if test $ac_cv_type_int64 = yes; then
24588 cat >>confdefs.h
<<_ACEOF
24589 #define HAVE_INT64 1
24594 { echo "$as_me:$LINENO: checking for uint64" >&5
24595 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24596 if test "${ac_cv_type_uint64+set}" = set; then
24597 echo $ECHO_N "(cached) $ECHO_C" >&6
24599 cat >conftest.
$ac_ext <<_ACEOF
24602 cat confdefs.h
>>conftest.
$ac_ext
24603 cat >>conftest.
$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24606 #ifdef HAVE_SUPPORTDEFS_H
24607 #include <SupportDefs.h>
24610 typedef uint64 ac__type_new_;
24614 if ((ac__type_new_ *) 0)
24616 if (sizeof (ac__type_new_))
24622 rm -f conftest.
$ac_objext
24623 if { (ac_try
="$ac_compile"
24624 case "(($ac_try" in
24625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24626 *) ac_try_echo=$ac_try;;
24628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24629 (eval "$ac_compile") 2>conftest.er1
24631 grep -v '^ *+' conftest.er1 >conftest.err
24633 cat conftest.err >&5
24634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635 (exit $ac_status); } && {
24636 test -z "$ac_c_werror_flag" ||
24637 test ! -s conftest.err
24638 } && test -s conftest.$ac_objext; then
24639 ac_cv_type_uint64=yes
24641 echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24644 ac_cv_type_uint64=no
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24649 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24650 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24651 if test $ac_cv_type_uint64 = yes; then
24653 cat >>confdefs.h <<_ACEOF
24654 #define HAVE_UINT64 1
24661 # We also check for sig_atomic_t, which *should* be defined per ANSI
24662 # C, but is missing on some old platforms.
24663 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24664 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24665 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24668 cat >conftest.$ac_ext <<_ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h. */
24674 #include <signal.h>
24676 typedef sig_atomic_t ac__type_new_;
24680 if ((ac__type_new_ *) 0)
24682 if (sizeof (ac__type_new_))
24688 rm -f conftest.$ac_objext
24689 if { (ac_try="$ac_compile"
24690 case "(($ac_try" in
24691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24692 *) ac_try_echo
=$ac_try;;
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_compile") 2>conftest.er1
24697 grep -v '^ *+' conftest.er1
>conftest.err
24699 cat conftest.err
>&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } && {
24702 test -z "$ac_c_werror_flag" ||
24703 test ! -s conftest.err
24704 } && test -s conftest.
$ac_objext; then
24705 ac_cv_type_sig_atomic_t
=yes
24707 echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.
$ac_ext >&5
24710 ac_cv_type_sig_atomic_t
=no
24713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24715 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24716 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24717 if test $ac_cv_type_sig_atomic_t = yes; then
24719 cat >>confdefs.h
<<_ACEOF
24720 #define HAVE_SIG_ATOMIC_T 1
24728 # If the user did not disable integer datetimes, check that
24729 # there is a working 64-bit integral type to use.
24730 if test x
"$USE_INTEGER_DATETIMES" = x
"yes" &&
24731 test x
"$HAVE_LONG_INT_64" = x
"no" &&
24732 test x
"$HAVE_LONG_LONG_INT_64" = x
"no" &&
24733 test x
"$HAVE_INT64" = x
"no" ; then
24734 { { echo "$as_me:$LINENO: error:
24735 Integer-based datetime support requires a 64-bit integer type,
24736 but no such type could be found. The --disable-integer-datetimes
24737 configure option can be used to disable integer-based storage
24738 of datetime values." >&5
24739 echo "$as_me: error:
24740 Integer-based datetime support requires a 64-bit integer type,
24741 but no such type could be found. The --disable-integer-datetimes
24742 configure option can be used to disable integer-based storage
24743 of datetime values." >&2;}
24744 { (exit 1); exit 1; }; }
24748 if test "$PORTNAME" != "win32"
24750 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24751 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24752 if test "${pgac_cv_func_posix_signals+set}" = set; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24755 cat >conftest.
$ac_ext <<_ACEOF
24758 cat confdefs.h
>>conftest.
$ac_ext
24759 cat >>conftest.
$ac_ext <<_ACEOF
24760 /* end confdefs.h. */
24761 #include <signal.h>
24766 struct sigaction act, oact;
24767 sigemptyset(&act.sa_mask);
24768 act.sa_flags = SA_RESTART;
24769 sigaction(0, &act, &oact);
24774 rm -f conftest.
$ac_objext conftest
$ac_exeext
24775 if { (ac_try
="$ac_link"
24776 case "(($ac_try" in
24777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24778 *) ac_try_echo=$ac_try;;
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781 (eval "$ac_link") 2>conftest.er1
24783 grep -v '^ *+' conftest.er1 >conftest.err
24785 cat conftest.err >&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && {
24788 test -z "$ac_c_werror_flag" ||
24789 test ! -s conftest.err
24790 } && test -s conftest$ac_exeext &&
24791 $as_test_x conftest$ac_exeext; then
24792 pgac_cv_func_posix_signals=yes
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 pgac_cv_func_posix_signals=no
24800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24801 conftest$ac_exeext conftest.$ac_ext
24803 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24804 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24805 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24807 cat >>confdefs.h <<\_ACEOF
24808 #define HAVE_POSIX_SIGNALS
24812 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24814 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24815 { { echo "$as_me:$LINENO: error:
24816 Thread-safety requires POSIX signals, which are not supported by this
24817 operating system." >&5
24818 echo "$as_me: error:
24819 Thread-safety requires POSIX signals, which are not supported by this
24820 operating system." >&2;}
24821 { (exit 1); exit 1; }; }
24825 if test $ac_cv_func_fseeko = yes; then
24826 # Check whether --enable-largefile was given.
24827 if test "${enable_largefile+set}" = set; then
24828 enableval=$enable_largefile;
24831 if test "$enable_largefile" != no; then
24833 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 ac_cv_sys_largefile_CC=no
24839 if test "$GCC" != yes; then
24842 # IRIX 6.2 and later do not support large files by default,
24843 # so use the C compiler's -n32 option if that helps.
24844 cat >conftest.$ac_ext <<_ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24850 #include <sys/types.h>
24851 /* Check that off_t can represent 2**63 - 1 correctly.
24852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24853 since some C++ compilers masquerading as C compilers
24854 incorrectly reject 9223372036854775807. */
24855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24857 && LARGE_OFF_T % 2147483647 == 1)
24867 rm -f conftest.$ac_objext
24868 if { (ac_try="$ac_compile"
24869 case "(($ac_try" in
24870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24871 *) ac_try_echo
=$ac_try;;
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874 (eval "$ac_compile") 2>conftest.er1
24876 grep -v '^ *+' conftest.er1
>conftest.err
24878 cat conftest.err
>&5
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); } && {
24881 test -z "$ac_c_werror_flag" ||
24882 test ! -s conftest.err
24883 } && test -s conftest.
$ac_objext; then
24886 echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.
$ac_ext >&5
24892 rm -f core conftest.err conftest.
$ac_objext
24894 rm -f conftest.
$ac_objext
24895 if { (ac_try
="$ac_compile"
24896 case "(($ac_try" in
24897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901 (eval "$ac_compile") 2>conftest.er1
24903 grep -v '^ *+' conftest.er1 >conftest.err
24905 cat conftest.err >&5
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); } && {
24908 test -z "$ac_c_werror_flag" ||
24909 test ! -s conftest.err
24910 } && test -s conftest.$ac_objext; then
24911 ac_cv_sys_largefile_CC=' -n32'; break
24913 echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24919 rm -f core conftest.err conftest.$ac_objext
24923 rm -f conftest.$ac_ext
24926 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24927 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24928 if test "$ac_cv_sys_largefile_CC" != no; then
24929 CC=$CC$ac_cv_sys_largefile_CC
24932 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24933 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24934 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24935 echo $ECHO_N "(cached) $ECHO_C" >&6
24938 cat >conftest.$ac_ext <<_ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944 #include <sys/types.h>
24945 /* Check that off_t can represent 2**63 - 1 correctly.
24946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24947 since some C++ compilers masquerading as C compilers
24948 incorrectly reject 9223372036854775807. */
24949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24951 && LARGE_OFF_T % 2147483647 == 1)
24961 rm -f conftest.$ac_objext
24962 if { (ac_try="$ac_compile"
24963 case "(($ac_try" in
24964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24965 *) ac_try_echo
=$ac_try;;
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968 (eval "$ac_compile") 2>conftest.er1
24970 grep -v '^ *+' conftest.er1
>conftest.err
24972 cat conftest.err
>&5
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && {
24975 test -z "$ac_c_werror_flag" ||
24976 test ! -s conftest.err
24977 } && test -s conftest.
$ac_objext; then
24978 ac_cv_sys_file_offset_bits
=no
; break
24980 echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.
$ac_ext >&5
24986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24987 cat >conftest.
$ac_ext <<_ACEOF
24990 cat confdefs.h
>>conftest.
$ac_ext
24991 cat >>conftest.
$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
24993 #define _FILE_OFFSET_BITS 64
24994 #include <sys/types.h>
24995 /* Check that off_t can represent 2**63 - 1 correctly.
24996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24997 since some C++ compilers masquerading as C compilers
24998 incorrectly reject 9223372036854775807. */
24999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25001 && LARGE_OFF_T % 2147483647 == 1)
25011 rm -f conftest.
$ac_objext
25012 if { (ac_try
="$ac_compile"
25013 case "(($ac_try" in
25014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25015 *) ac_try_echo=$ac_try;;
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018 (eval "$ac_compile") 2>conftest.er1
25020 grep -v '^ *+' conftest.er1 >conftest.err
25022 cat conftest.err >&5
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); } && {
25025 test -z "$ac_c_werror_flag" ||
25026 test ! -s conftest.err
25027 } && test -s conftest.$ac_objext; then
25028 ac_cv_sys_file_offset_bits=64; break
25030 echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25037 ac_cv_sys_file_offset_bits=unknown
25041 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25042 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25043 case $ac_cv_sys_file_offset_bits in #(
25046 cat >>confdefs.h <<_ACEOF
25047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25052 if test $ac_cv_sys_file_offset_bits = unknown; then
25053 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25055 if test "${ac_cv_sys_large_files+set}" = set; then
25056 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 cat >conftest.$ac_ext <<_ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h. */
25065 #include <sys/types.h>
25066 /* Check that off_t can represent 2**63 - 1 correctly.
25067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25068 since some C++ compilers masquerading as C compilers
25069 incorrectly reject 9223372036854775807. */
25070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25072 && LARGE_OFF_T % 2147483647 == 1)
25082 rm -f conftest.$ac_objext
25083 if { (ac_try="$ac_compile"
25084 case "(($ac_try" in
25085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25086 *) ac_try_echo
=$ac_try;;
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089 (eval "$ac_compile") 2>conftest.er1
25091 grep -v '^ *+' conftest.er1
>conftest.err
25093 cat conftest.err
>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } && {
25096 test -z "$ac_c_werror_flag" ||
25097 test ! -s conftest.err
25098 } && test -s conftest.
$ac_objext; then
25099 ac_cv_sys_large_files
=no
; break
25101 echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.
$ac_ext >&5
25107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25108 cat >conftest.
$ac_ext <<_ACEOF
25111 cat confdefs.h
>>conftest.
$ac_ext
25112 cat >>conftest.
$ac_ext <<_ACEOF
25113 /* end confdefs.h. */
25114 #define _LARGE_FILES 1
25115 #include <sys/types.h>
25116 /* Check that off_t can represent 2**63 - 1 correctly.
25117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25118 since some C++ compilers masquerading as C compilers
25119 incorrectly reject 9223372036854775807. */
25120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25122 && LARGE_OFF_T % 2147483647 == 1)
25132 rm -f conftest.
$ac_objext
25133 if { (ac_try
="$ac_compile"
25134 case "(($ac_try" in
25135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25136 *) ac_try_echo=$ac_try;;
25138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25139 (eval "$ac_compile") 2>conftest.er1
25141 grep -v '^ *+' conftest.er1 >conftest.err
25143 cat conftest.err >&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); } && {
25146 test -z "$ac_c_werror_flag" ||
25147 test ! -s conftest.err
25148 } && test -s conftest.$ac_objext; then
25149 ac_cv_sys_large_files=1; break
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25158 ac_cv_sys_large_files=unknown
25162 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25163 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25164 case $ac_cv_sys_large_files in #(
25167 cat >>confdefs.h <<_ACEOF
25168 #define _LARGE_FILES $ac_cv_sys_large_files
25178 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25179 { echo "$as_me:$LINENO: checking for off_t" >&5
25180 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25181 if test "${ac_cv_type_off_t+set}" = set; then
25182 echo $ECHO_N "(cached) $ECHO_C" >&6
25184 cat >conftest.$ac_ext <<_ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 $ac_includes_default
25191 typedef off_t ac__type_new_;
25195 if ((ac__type_new_ *) 0)
25197 if (sizeof (ac__type_new_))
25203 rm -f conftest.$ac_objext
25204 if { (ac_try="$ac_compile"
25205 case "(($ac_try" in
25206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25207 *) ac_try_echo
=$ac_try;;
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210 (eval "$ac_compile") 2>conftest.er1
25212 grep -v '^ *+' conftest.er1
>conftest.err
25214 cat conftest.err
>&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && {
25217 test -z "$ac_c_werror_flag" ||
25218 test ! -s conftest.err
25219 } && test -s conftest.
$ac_objext; then
25220 ac_cv_type_off_t
=yes
25222 echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.
$ac_ext >&5
25225 ac_cv_type_off_t
=no
25228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25230 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25231 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25233 # The cast to long int works around a bug in the HP C Compiler
25234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25236 # This bug is HP SR number 8606223364.
25237 { echo "$as_me:$LINENO: checking size of off_t" >&5
25238 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25239 if test "${ac_cv_sizeof_off_t+set}" = set; then
25240 echo $ECHO_N "(cached) $ECHO_C" >&6
25242 if test "$cross_compiling" = yes; then
25243 # Depending upon the size, compute the lo and hi bounds.
25244 cat >conftest.
$ac_ext <<_ACEOF
25247 cat confdefs.h
>>conftest.
$ac_ext
25248 cat >>conftest.
$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25250 $ac_includes_default
25251 typedef off_t ac__type_sizeof_;
25255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25262 rm -f conftest.
$ac_objext
25263 if { (ac_try
="$ac_compile"
25264 case "(($ac_try" in
25265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25266 *) ac_try_echo=$ac_try;;
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269 (eval "$ac_compile") 2>conftest.er1
25271 grep -v '^ *+' conftest.er1 >conftest.err
25273 cat conftest.err >&5
25274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275 (exit $ac_status); } && {
25276 test -z "$ac_c_werror_flag" ||
25277 test ! -s conftest.err
25278 } && test -s conftest.$ac_objext; then
25281 cat >conftest.$ac_ext <<_ACEOF
25284 cat confdefs.h >>conftest.$ac_ext
25285 cat >>conftest.$ac_ext <<_ACEOF
25286 /* end confdefs.h. */
25287 $ac_includes_default
25288 typedef off_t ac__type_sizeof_;
25292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25299 rm -f conftest.$ac_objext
25300 if { (ac_try="$ac_compile"
25301 case "(($ac_try" in
25302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25303 *) ac_try_echo
=$ac_try;;
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306 (eval "$ac_compile") 2>conftest.er1
25308 grep -v '^ *+' conftest.er1
>conftest.err
25310 cat conftest.err
>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } && {
25313 test -z "$ac_c_werror_flag" ||
25314 test ! -s conftest.err
25315 } && test -s conftest.
$ac_objext; then
25316 ac_hi
=$ac_mid; break
25318 echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.
$ac_ext >&5
25321 ac_lo
=`expr $ac_mid + 1`
25322 if test $ac_lo -le $ac_mid; then
25326 ac_mid
=`expr 2 '*' $ac_mid + 1`
25329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.
$ac_ext >&5
25335 cat >conftest.
$ac_ext <<_ACEOF
25338 cat confdefs.h
>>conftest.
$ac_ext
25339 cat >>conftest.
$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25341 $ac_includes_default
25342 typedef off_t ac__type_sizeof_;
25346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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
25372 cat >conftest.$ac_ext <<_ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h. */
25378 $ac_includes_default
25379 typedef off_t ac__type_sizeof_;
25383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25394 *) ac_try_echo
=$ac_try;;
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397 (eval "$ac_compile") 2>conftest.er1
25399 grep -v '^ *+' conftest.er1
>conftest.err
25401 cat conftest.err
>&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && {
25404 test -z "$ac_c_werror_flag" ||
25405 test ! -s conftest.err
25406 } && test -s conftest.
$ac_objext; then
25407 ac_lo
=$ac_mid; break
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.
$ac_ext >&5
25412 ac_hi
=`expr '(' $ac_mid ')' - 1`
25413 if test $ac_mid -le $ac_hi; then
25417 ac_mid
=`expr 2 '*' $ac_mid`
25420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25423 echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.
$ac_ext >&5
25429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25433 # Binary search between lo and hi bounds.
25434 while test "x$ac_lo" != "x$ac_hi"; do
25435 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25436 cat >conftest.
$ac_ext <<_ACEOF
25439 cat confdefs.h
>>conftest.
$ac_ext
25440 cat >>conftest.
$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 $ac_includes_default
25443 typedef off_t ac__type_sizeof_;
25447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25454 rm -f conftest.
$ac_objext
25455 if { (ac_try
="$ac_compile"
25456 case "(($ac_try" in
25457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_compile") 2>conftest.er1
25463 grep -v '^ *+' conftest.er1 >conftest.err
25465 cat conftest.err >&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } && {
25468 test -z "$ac_c_werror_flag" ||
25469 test ! -s conftest.err
25470 } && test -s conftest.$ac_objext; then
25473 echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25476 ac_lo=`expr '(' $ac_mid ')' + 1`
25479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25483 '') if test "$ac_cv_type_off_t" = yes; then
25484 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25485 See \`config.log
' for more details." >&5
25486 echo "$as_me: error: cannot compute sizeof (off_t)
25487 See \`config.log' for more details.
" >&2;}
25488 { (exit 77); exit 77; }; }
25490 ac_cv_sizeof_off_t=0
25494 cat >conftest.$ac_ext <<_ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h. */
25500 $ac_includes_default
25501 typedef off_t ac__type_sizeof_;
25502 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25503 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25505 #include <stdlib.h>
25510 FILE *f = fopen ("conftest.val
", "w
");
25513 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25515 long int i = longval ();
25516 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25518 fprintf (f, "%ld
\n", i);
25522 unsigned long int i = ulongval ();
25523 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25525 fprintf (f, "%lu
\n", i);
25527 return ferror (f) || fclose (f) != 0;
25533 rm -f conftest$ac_exeext
25534 if { (ac_try="$ac_link"
25535 case "(($ac_try" in
25536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537 *) ac_try_echo=$ac_try;;
25539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25540 (eval "$ac_link") 2>&5
25542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25544 { (case "(($ac_try" in
25545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546 *) ac_try_echo=$ac_try;;
25548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25549 (eval "$ac_try") 2>&5
25551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25552 (exit $ac_status); }; }; then
25553 ac_cv_sizeof_off_t=`cat conftest.val`
25555 echo "$as_me: program exited with status
$ac_status" >&5
25556 echo "$as_me: failed program was
:" >&5
25557 sed 's/^/| /' conftest.$ac_ext >&5
25559 ( exit $ac_status )
25560 if test "$ac_cv_type_off_t" = yes; then
25561 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
25562 See \
`config.log' for more details." >&5
25563 echo "$as_me: error: cannot compute sizeof (off_t)
25564 See \`config.log
' for more details." >&2;}
25565 { (exit 77); exit 77; }; }
25567 ac_cv_sizeof_off_t=0
25570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25574 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25575 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25579 cat >>confdefs.h <<_ACEOF
25580 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25585 # If we don't have largefile support
, can
't handle segsize >= 2GB.
25586 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25587 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25588 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25589 { (exit 1); exit 1; }; }
25592 # SunOS doesn't handle negative byte comparisons properly with
+/- return
25593 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25594 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25595 if test "${ac_cv_func_memcmp_working+set}" = set; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 if test "$cross_compiling" = yes; then
25599 ac_cv_func_memcmp_working
=no
25601 cat >conftest.
$ac_ext <<_ACEOF
25604 cat confdefs.h
>>conftest.
$ac_ext
25605 cat >>conftest.
$ac_ext <<_ACEOF
25606 /* end confdefs.h. */
25607 $ac_includes_default
25612 /* Some versions of memcmp are not 8-bit clean. */
25613 char c0 = '\100', c1 = '\200', c2 = '\201';
25614 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25617 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25618 or more and with at least one buffer not starting on a 4-byte boundary.
25619 William Lewis provided this test program. */
25624 for (i = 0; i < 4; i++)
25628 strcpy (a, "--------01111111");
25629 strcpy (b, "--------10000000");
25630 if (memcmp (a, b, 16) >= 0)
25640 rm -f conftest
$ac_exeext
25641 if { (ac_try
="$ac_link"
25642 case "(($ac_try" in
25643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25644 *) ac_try_echo=$ac_try;;
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647 (eval "$ac_link") 2>&5
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25651 { (case "(($ac_try" in
25652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25653 *) ac_try_echo
=$ac_try;;
25655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25656 (eval "$ac_try") 2>&5
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 ac_cv_func_memcmp_working
=yes
25662 echo "$as_me: program exited with status $ac_status" >&5
25663 echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.
$ac_ext >&5
25666 ( exit $ac_status )
25667 ac_cv_func_memcmp_working
=no
25669 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25674 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25675 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25676 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
25677 *" memcmp.$ac_objext "* ) ;;
25678 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
25685 # Select semaphore implementation type.
25686 if test "$PORTNAME" != "win32"; then
25687 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
25689 cat >>confdefs.h
<<\_ACEOF
25690 #define USE_NAMED_POSIX_SEMAPHORES 1
25693 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
25695 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
25697 cat >>confdefs.h
<<\_ACEOF
25698 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25701 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
25704 cat >>confdefs.h
<<\_ACEOF
25705 #define USE_SYSV_SEMAPHORES 1
25708 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
25713 cat >>confdefs.h
<<\_ACEOF
25714 #define USE_WIN32_SEMAPHORES 1
25717 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
25721 # Select shared-memory implementation type.
25722 if test "$PORTNAME" != "win32"; then
25724 cat >>confdefs.h
<<\_ACEOF
25725 #define USE_SYSV_SHARED_MEMORY 1
25728 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
25731 cat >>confdefs.h
<<\_ACEOF
25732 #define USE_WIN32_SHARED_MEMORY 1
25735 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
25738 # If not set in template file, set bytes to use libc memset()
25739 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
25740 MEMSET_LOOP_LIMIT
=1024
25743 cat >>confdefs.h
<<_ACEOF
25744 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25749 if test "$enable_nls" = yes ; then
25751 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25752 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25753 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
25756 ac_func_search_save_LIBS
=$LIBS
25757 cat >conftest.
$ac_ext <<_ACEOF
25760 cat confdefs.h
>>conftest.
$ac_ext
25761 cat >>conftest.
$ac_ext <<_ACEOF
25762 /* end confdefs.h. */
25764 /* Override any GCC internal prototype to avoid an error.
25765 Use char because int might match the return type of a GCC
25766 builtin and then its argument prototype would still apply. */
25770 char bind_textdomain_codeset ();
25774 return bind_textdomain_codeset ();
25779 for ac_lib
in '' intl
; do
25780 if test -z "$ac_lib"; then
25781 ac_res
="none required"
25784 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25786 rm -f conftest.
$ac_objext conftest
$ac_exeext
25787 if { (ac_try
="$ac_link"
25788 case "(($ac_try" in
25789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25790 *) ac_try_echo=$ac_try;;
25792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25793 (eval "$ac_link") 2>conftest.er1
25795 grep -v '^ *+' conftest.er1 >conftest.err
25797 cat conftest.err >&5
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); } && {
25800 test -z "$ac_c_werror_flag" ||
25801 test ! -s conftest.err
25802 } && test -s conftest$ac_exeext &&
25803 $as_test_x conftest$ac_exeext; then
25804 ac_cv_search_bind_textdomain_codeset=$ac_res
25806 echo "$as_me: failed program was:" >&5
25807 sed 's/^/| /' conftest.$ac_ext >&5
25812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25814 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25818 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25821 ac_cv_search_bind_textdomain_codeset=no
25823 rm conftest.$ac_ext
25824 LIBS=$ac_func_search_save_LIBS
25826 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25827 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25828 ac_res=$ac_cv_search_bind_textdomain_codeset
25829 if test "$ac_res" != no; then
25830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25833 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25834 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25835 { (exit 1); exit 1; }; }
25838 if test "${ac_cv_header_libintl_h+set}" = set; then
25839 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25840 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25841 if test "${ac_cv_header_libintl_h+set}" = set; then
25842 echo $ECHO_N "(cached) $ECHO_C" >&6
25844 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25845 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25847 # Is the header compilable?
25848 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25849 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25850 cat >conftest.$ac_ext <<_ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h. */
25856 $ac_includes_default
25857 #include <libintl.h>
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25863 *) ac_try_echo
=$ac_try;;
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866 (eval "$ac_compile") 2>conftest.er1
25868 grep -v '^ *+' conftest.er1
>conftest.err
25870 cat conftest.err
>&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } && {
25873 test -z "$ac_c_werror_flag" ||
25874 test ! -s conftest.err
25875 } && test -s conftest.
$ac_objext; then
25876 ac_header_compiler
=yes
25878 echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.
$ac_ext >&5
25881 ac_header_compiler
=no
25884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25886 echo "${ECHO_T}$ac_header_compiler" >&6; }
25888 # Is the header present?
25889 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25890 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25891 cat >conftest.
$ac_ext <<_ACEOF
25894 cat confdefs.h
>>conftest.
$ac_ext
25895 cat >>conftest.
$ac_ext <<_ACEOF
25896 /* end confdefs.h. */
25897 #include <libintl.h>
25899 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25900 case "(($ac_try" in
25901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25902 *) ac_try_echo=$ac_try;;
25904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25907 grep -v '^ *+' conftest.er1 >conftest.err
25909 cat conftest.err >&5
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } >/dev/null && {
25912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25913 test ! -s conftest.err
25915 ac_header_preproc=yes
25917 echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25920 ac_header_preproc=no
25923 rm -f conftest.err conftest.$ac_ext
25924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25925 echo "${ECHO_T}$ac_header_preproc" >&6; }
25927 # So? What about this header?
25928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25930 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25931 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25932 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25933 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25934 ac_header_preproc=yes
25937 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25938 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25939 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25940 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25941 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25942 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25943 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25944 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25945 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25946 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25947 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25948 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25950 ## ---------------------------------------- ##
25951 ## Report this to pgsql-bugs@postgresql.org ##
25952 ## ---------------------------------------- ##
25954 ) | sed "s/^/$as_me: WARNING: /" >&2
25957 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25958 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25959 if test "${ac_cv_header_libintl_h+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 ac_cv_header_libintl_h=$ac_header_preproc
25964 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25965 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25968 if test $ac_cv_header_libintl_h = yes; then
25971 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25972 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25973 { (exit 1); exit 1; }; }
25977 for ac_prog in msgfmt
25979 # Extract the first word of "$ac_prog", so it can be a program name with args.
25980 set dummy $ac_prog; ac_word=$2
25981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25983 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25984 echo $ECHO_N "(cached) $ECHO_C" >&6
25986 if test -n "$MSGFMT"; then
25987 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25990 for as_dir in $PATH
25993 test -z "$as_dir" && as_dir=.
25994 for ac_exec_ext in '' $ac_executable_extensions; do
25995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25996 ac_cv_prog_MSGFMT="$ac_prog"
25997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26006 MSGFMT=$ac_cv_prog_MSGFMT
26007 if test -n "$MSGFMT"; then
26008 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26009 echo "${ECHO_T}$MSGFMT" >&6; }
26011 { echo "$as_me:$LINENO: result: no" >&5
26012 echo "${ECHO_T}no" >&6; }
26016 test -n "$MSGFMT" && break
26019 if test -z "$MSGFMT"; then
26020 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26021 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26022 { (exit 1); exit 1; }; }
26024 for ac_prog in msgmerge
26026 # Extract the first word of "$ac_prog", so it can be a program name with args.
26027 set dummy $ac_prog; ac_word=$2
26028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26030 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26031 echo $ECHO_N "(cached) $ECHO_C" >&6
26033 if test -n "$MSGMERGE"; then
26034 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26037 for as_dir in $PATH
26040 test -z "$as_dir" && as_dir=.
26041 for ac_exec_ext in '' $ac_executable_extensions; do
26042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26043 ac_cv_prog_MSGMERGE="$ac_prog"
26044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26053 MSGMERGE=$ac_cv_prog_MSGMERGE
26054 if test -n "$MSGMERGE"; then
26055 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26056 echo "${ECHO_T}$MSGMERGE" >&6; }
26058 { echo "$as_me:$LINENO: result: no" >&5
26059 echo "${ECHO_T}no" >&6; }
26063 test -n "$MSGMERGE" && break
26066 for ac_prog in xgettext
26068 # Extract the first word of "$ac_prog", so it can be a program name with args.
26069 set dummy $ac_prog; ac_word=$2
26070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26072 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26073 echo $ECHO_N "(cached) $ECHO_C" >&6
26075 if test -n "$XGETTEXT"; then
26076 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26079 for as_dir in $PATH
26082 test -z "$as_dir" && as_dir=.
26083 for ac_exec_ext in '' $ac_executable_extensions; do
26084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26085 ac_cv_prog_XGETTEXT="$ac_prog"
26086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26095 XGETTEXT=$ac_cv_prog_XGETTEXT
26096 if test -n "$XGETTEXT"; then
26097 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26098 echo "${ECHO_T}$XGETTEXT" >&6; }
26100 { echo "$as_me:$LINENO: result: no" >&5
26101 echo "${ECHO_T}no" >&6; }
26105 test -n "$XGETTEXT" && break
26111 # Check for Tcl configuration script tclConfig.sh
26112 if test "$with_tcl" = yes; then
26113 for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
26115 # Extract the first word of "$ac_prog", so it can be a program name with args.
26116 set dummy $ac_prog; ac_word=$2
26117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26119 if test "${ac_cv_path_TCLSH+set}" = set; then
26120 echo $ECHO_N "(cached) $ECHO_C" >&6
26124 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26128 for as_dir in $PATH
26131 test -z "$as_dir" && as_dir=.
26132 for ac_exec_ext in '' $ac_executable_extensions; do
26133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26134 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26145 TCLSH=$ac_cv_path_TCLSH
26146 if test -n "$TCLSH"; then
26147 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26148 echo "${ECHO_T}$TCLSH" >&6; }
26150 { echo "$as_me:$LINENO: result: no" >&5
26151 echo "${ECHO_T}no" >&6; }
26155 test -n "$TCLSH" && break
26158 if test x"$TCLSH" = x""; then
26159 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26160 echo "$as_me: error: Tcl shell not found" >&2;}
26161 { (exit 1); exit 1; }; }
26164 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26165 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26166 # Let user override test
26167 if test -z "$TCL_CONFIG_SH"; then
26168 pgac_test_dirs="$with_tclconfig"
26170 set X $pgac_test_dirs; shift
26171 if test $# -eq 0; then
26172 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26173 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26174 { (exit 1); exit 1; }; }
26175 set X `echo 'puts $auto_path' |
$TCLSH`; shift
26179 if test -r "$pgac_dir/tclConfig.sh"; then
26180 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26186 if test -z "$TCL_CONFIG_SH"; then
26187 { echo "$as_me:$LINENO: result: no" >&5
26188 echo "${ECHO_T}no" >&6; }
26189 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26190 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26191 { (exit 1); exit 1; }; }
26193 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26194 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26200 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26201 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26202 eval TCL_LIBS=\"$TCL_LIBS\"
26203 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26204 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26206 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26207 ac_save_CPPFLAGS=$CPPFLAGS
26208 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26209 if test "${ac_cv_header_tcl_h+set}" = set; then
26210 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26211 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26212 if test "${ac_cv_header_tcl_h+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26215 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26216 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26218 # Is the header compilable?
26219 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26220 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26221 cat >conftest.$ac_ext <<_ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h. */
26227 $ac_includes_default
26230 rm -f conftest.$ac_objext
26231 if { (ac_try="$ac_compile"
26232 case "(($ac_try" in
26233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26234 *) ac_try_echo
=$ac_try;;
26236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26237 (eval "$ac_compile") 2>conftest.er1
26239 grep -v '^ *+' conftest.er1
>conftest.err
26241 cat conftest.err
>&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); } && {
26244 test -z "$ac_c_werror_flag" ||
26245 test ! -s conftest.err
26246 } && test -s conftest.
$ac_objext; then
26247 ac_header_compiler
=yes
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.
$ac_ext >&5
26252 ac_header_compiler
=no
26255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26257 echo "${ECHO_T}$ac_header_compiler" >&6; }
26259 # Is the header present?
26260 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26261 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26262 cat >conftest.
$ac_ext <<_ACEOF
26265 cat confdefs.h
>>conftest.
$ac_ext
26266 cat >>conftest.
$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26270 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26271 case "(($ac_try" in
26272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26273 *) ac_try_echo=$ac_try;;
26275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26278 grep -v '^ *+' conftest.er1 >conftest.err
26280 cat conftest.err >&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); } >/dev/null && {
26283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26284 test ! -s conftest.err
26286 ac_header_preproc=yes
26288 echo "$as_me: failed program was:" >&5
26289 sed 's/^/| /' conftest.$ac_ext >&5
26291 ac_header_preproc=no
26294 rm -f conftest.err conftest.$ac_ext
26295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26296 echo "${ECHO_T}$ac_header_preproc" >&6; }
26298 # So? What about this header?
26299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26301 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26302 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26303 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26304 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26305 ac_header_preproc=yes
26308 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26309 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26310 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26311 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26312 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26313 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26314 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26315 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26316 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26317 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26318 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26319 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26321 ## ---------------------------------------- ##
26322 ## Report this to pgsql-bugs@postgresql.org ##
26323 ## ---------------------------------------- ##
26325 ) | sed "s/^/$as_me: WARNING: /" >&2
26328 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26329 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26330 if test "${ac_cv_header_tcl_h+set}" = set; then
26331 echo $ECHO_N "(cached) $ECHO_C" >&6
26333 ac_cv_header_tcl_h=$ac_header_preproc
26335 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26336 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26339 if test $ac_cv_header_tcl_h = yes; then
26342 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26343 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26344 { (exit 1); exit 1; }; }
26348 CPPFLAGS=$ac_save_CPPFLAGS
26352 # Check for DocBook and tools
26354 for ac_prog in onsgmls nsgmls
26356 # Extract the first word of "$ac_prog", so it can be a program name with args.
26357 set dummy $ac_prog; ac_word=$2
26358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26360 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26361 echo $ECHO_N "(cached) $ECHO_C" >&6
26363 if test -n "$NSGMLS"; then
26364 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26367 for as_dir in $PATH
26370 test -z "$as_dir" && as_dir=.
26371 for ac_exec_ext in '' $ac_executable_extensions; do
26372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26373 ac_cv_prog_NSGMLS="$ac_prog"
26374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26383 NSGMLS=$ac_cv_prog_NSGMLS
26384 if test -n "$NSGMLS"; then
26385 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26386 echo "${ECHO_T}$NSGMLS" >&6; }
26388 { echo "$as_me:$LINENO: result: no" >&5
26389 echo "${ECHO_T}no" >&6; }
26393 test -n "$NSGMLS" && break
26396 for ac_prog in openjade jade
26398 # Extract the first word of "$ac_prog", so it can be a program name with args.
26399 set dummy $ac_prog; ac_word=$2
26400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26402 if test "${ac_cv_prog_JADE+set}" = set; then
26403 echo $ECHO_N "(cached) $ECHO_C" >&6
26405 if test -n "$JADE"; then
26406 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26409 for as_dir in $PATH
26412 test -z "$as_dir" && as_dir=.
26413 for ac_exec_ext in '' $ac_executable_extensions; do
26414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26415 ac_cv_prog_JADE="$ac_prog"
26416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26425 JADE=$ac_cv_prog_JADE
26426 if test -n "$JADE"; then
26427 { echo "$as_me:$LINENO: result: $JADE" >&5
26428 echo "${ECHO_T}$JADE" >&6; }
26430 { echo "$as_me:$LINENO: result: no" >&5
26431 echo "${ECHO_T}no" >&6; }
26435 test -n "$JADE" && break
26439 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26440 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26441 if test "${pgac_cv_check_docbook+set}" = set; then
26442 echo $ECHO_N "(cached) $ECHO_C" >&6
26444 cat >conftest.sgml <<EOF
26445 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26447 <title>test</title>
26449 <title>random</title>
26451 <title>testsect</title>
26458 pgac_cv_check_docbook=no
26460 if test -n "$NSGMLS"; then
26461 $NSGMLS -s conftest.sgml 1>&5 2>&1
26462 if test $? -eq 0; then
26463 pgac_cv_check_docbook=yes
26466 rm -f conftest.sgml
26468 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26469 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26471 have_docbook=$pgac_cv_check_docbook
26474 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26475 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26476 if test "${pgac_cv_path_stylesheets+set}" = set; then
26477 echo $ECHO_N "(cached) $ECHO_C" >&6
26479 if test -n "$DOCBOOKSTYLE"; then
26480 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26482 for pgac_prefix in /usr /usr/local /opt /sw; do
26483 for pgac_infix in share lib; do
26484 for pgac_postfix in \
26485 sgml/stylesheets/nwalsh-modular \
26486 sgml/stylesheets/docbook \
26487 sgml/stylesheets/dsssl/docbook \
26488 sgml/docbook-dsssl \
26489 sgml/docbook/dsssl/modular \
26490 sgml/docbook/stylesheet/dsssl/modular \
26491 sgml/docbook/dsssl-stylesheets \
26492 sgml/dsssl/docbook-dsssl-nwalsh
26494 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26495 if test -r "$pgac_candidate/html/docbook.dsl" \
26496 && test -r "$pgac_candidate/print/docbook.dsl"
26498 pgac_cv_path_stylesheets=$pgac_candidate
26507 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26509 if test -n "$DOCBOOKSTYLE"; then
26510 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26511 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26513 { echo "$as_me:$LINENO: result: no" >&5
26514 echo "${ECHO_T}no" >&6; }
26516 if test -n "$DOCBOOKSTYLE"; then
26517 for ac_prog in collateindex.pl
26519 # Extract the first word of "$ac_prog", so it can be a program name with args.
26520 set dummy $ac_prog; ac_word=$2
26521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26523 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26526 case $COLLATEINDEX in
26528 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26532 for as_dir in $DOCBOOKSTYLE/bin $PATH
26535 test -z "$as_dir" && as_dir=.
26536 for ac_exec_ext in '' $ac_executable_extensions; do
26537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26538 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26549 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26550 if test -n "$COLLATEINDEX"; then
26551 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26552 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26554 { echo "$as_me:$LINENO: result: no" >&5
26555 echo "${ECHO_T}no" >&6; }
26559 test -n "$COLLATEINDEX" && break
26563 for ac_prog in collateindex.pl
26565 # Extract the first word of "$ac_prog", so it can be a program name with args.
26566 set dummy $ac_prog; ac_word=$2
26567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26569 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26570 echo $ECHO_N "(cached) $ECHO_C" >&6
26572 case $COLLATEINDEX in
26574 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26578 for as_dir in $PATH
26581 test -z "$as_dir" && as_dir=.
26582 for ac_exec_ext in '' $ac_executable_extensions; do
26583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26584 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26595 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26596 if test -n "$COLLATEINDEX"; then
26597 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26598 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26600 { echo "$as_me:$LINENO: result: no" >&5
26601 echo "${ECHO_T}no" >&6; }
26605 test -n "$COLLATEINDEX" && break
26609 for ac_prog in sgmlspl
26611 # Extract the first word of "$ac_prog", so it can be a program name with args.
26612 set dummy $ac_prog; ac_word=$2
26613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26615 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26618 if test -n "$SGMLSPL"; then
26619 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26622 for as_dir in $PATH
26625 test -z "$as_dir" && as_dir=.
26626 for ac_exec_ext in '' $ac_executable_extensions; do
26627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26628 ac_cv_prog_SGMLSPL="$ac_prog"
26629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26638 SGMLSPL=$ac_cv_prog_SGMLSPL
26639 if test -n "$SGMLSPL"; then
26640 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26641 echo "${ECHO_T}$SGMLSPL" >&6; }
26643 { echo "$as_me:$LINENO: result: no" >&5
26644 echo "${ECHO_T}no" >&6; }
26648 test -n "$SGMLSPL" && break
26651 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26652 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26653 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 if test -z "$DOCBOOK2MAN"; then
26657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26658 for as_dir in $PATH
26661 test -z "$as_dir" && as_dir=.
26662 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26663 ac_path="$as_dir/$ac_prog"
26664 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26665 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26666 ac_cv_path_DOCBOOK2MAN=$ac_path
26674 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26677 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26678 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26679 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26685 # We have to run the thread test near the end so we have all our symbols
26686 # defined. Cross compiling throws a warning.
26688 if test "$enable_thread_safety_force" = yes; then
26689 if test "$PORTNAME" != "win32"
26691 { echo "$as_me:$LINENO: WARNING:
26692 *** Skipping thread test program. --enable-thread-safety-force was used.
26693 *** Run the program in src/test/thread on the your machine and add proper
26694 *** locking function calls to your applications to guarantee thread safety.
26696 echo "$as_me: WARNING:
26697 *** Skipping thread test program. --enable-thread-safety-force was used.
26698 *** Run the program in src/test/thread on the your machine and add proper
26699 *** locking function calls to your applications to guarantee thread safety.
26702 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26703 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26705 elif test "$enable_thread_safety" = yes; then
26706 if test "$PORTNAME" != "win32"
26708 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26709 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26713 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26714 LIBS="$LIBS $PTHREAD_LIBS"
26715 if test "$cross_compiling" = yes; then
26716 { echo "$as_me:$LINENO: result: maybe" >&5
26717 echo "${ECHO_T}maybe" >&6; }
26718 { echo "$as_me:$LINENO: WARNING:
26719 *** Skipping thread test program because of cross-compile build.
26720 *** Run the program in src/test/thread on the target machine.
26722 echo "$as_me: WARNING:
26723 *** Skipping thread test program because of cross-compile build.
26724 *** Run the program in src/test/thread on the target machine.
26727 cat >conftest.$ac_ext <<_ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h. */
26733 #include "$srcdir/src/test/thread/thread_test.c"
26735 rm -f conftest$ac_exeext
26736 if { (ac_try="$ac_link"
26737 case "(($ac_try" in
26738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26739 *) ac_try_echo
=$ac_try;;
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742 (eval "$ac_link") 2>&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26746 { (case "(($ac_try" in
26747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26748 *) ac_try_echo=$ac_try;;
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751 (eval "$ac_try") 2>&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; }; then
26755 { echo "$as_me:$LINENO: result: yes" >&5
26756 echo "${ECHO_T}yes" >&6; }
26758 echo "$as_me: program exited with status $ac_status" >&5
26759 echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26762 ( exit $ac_status )
26763 { echo "$as_me:$LINENO: result: no" >&5
26764 echo "${ECHO_T}no" >&6; }
26765 { { echo "$as_me:$LINENO: error: thread test program failed
26766 This platform is not thread-safe. Check the file 'config.log' for the
26769 You can use the configure option --enable-thread-safety-force to force
26770 threads to be enabled. But you must then run the program in
26771 src/test/thread and add locking function calls to your applications to
26772 guarantee thread safety." >&5
26773 echo "$as_me: error: thread test program failed
26774 This platform is not thread-safe. Check the file 'config.log' for the
26777 You can use the configure option --enable-thread-safety-force to force
26778 threads to be enabled. But you must then run the program in
26779 src/test/thread and add locking function calls to your applications to
26780 guarantee thread safety." >&2;}
26781 { (exit 1); exit 1; }; }
26783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26790 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26791 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26795 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26796 # This is much easier than trying to filter LIBS to the minimum for each
26797 # executable. (Note that shared library links won't use this switch, though.)
26798 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26799 # libreadline; therefore we postpone testing it until we know what library
26800 # dependencies readline has. The test code will try to link with $LIBS.
26801 if test "$with_readline" = yes; then
26802 link_test_func=readline
26804 link_test_func=exit
26806 if test "$PORTNAME" != "darwin"; then
26807 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26808 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26809 pgac_save_LDFLAGS=$LDFLAGS
26810 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26811 if test "$cross_compiling" = yes; then
26812 LDFLAGS="$pgac_save_LDFLAGS"
26813 { echo "$as_me:$LINENO: result: assuming no" >&5
26814 echo "${ECHO_T}assuming no" >&6; }
26816 cat >conftest.$ac_ext <<_ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26822 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26831 rm -f conftest$ac_exeext
26832 if { (ac_try="$ac_link"
26833 case "(($ac_try" in
26834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26835 *) ac_try_echo
=$ac_try;;
26837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26838 (eval "$ac_link") 2>&5
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26842 { (case "(($ac_try" in
26843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_try") 2>&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; }; then
26851 { echo "$as_me:$LINENO: result: yes" >&5
26852 echo "${ECHO_T}yes" >&6; }
26854 echo "$as_me: program exited with status $ac_status" >&5
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26858 ( exit $ac_status )
26859 LDFLAGS="$pgac_save_LDFLAGS"
26860 { echo "$as_me:$LINENO: result: no" >&5
26861 echo "${ECHO_T}no" >&6; }
26863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26869 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26870 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26871 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26872 pgac_save_LDFLAGS=$LDFLAGS
26873 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26874 if test "$cross_compiling" = yes; then
26875 LDFLAGS="$pgac_save_LDFLAGS"
26876 { echo "$as_me:$LINENO: result: assuming no" >&5
26877 echo "${ECHO_T}assuming no" >&6; }
26879 cat >conftest.$ac_ext <<_ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h. */
26885 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26894 rm -f conftest$ac_exeext
26895 if { (ac_try="$ac_link"
26896 case "(($ac_try" in
26897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26898 *) ac_try_echo
=$ac_try;;
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901 (eval "$ac_link") 2>&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26905 { (case "(($ac_try" in
26906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26907 *) ac_try_echo=$ac_try;;
26909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26910 (eval "$ac_try") 2>&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; }; then
26914 { echo "$as_me:$LINENO: result: yes" >&5
26915 echo "${ECHO_T}yes" >&6; }
26917 echo "$as_me: program exited with status $ac_status" >&5
26918 echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26921 ( exit $ac_status )
26922 LDFLAGS="$pgac_save_LDFLAGS"
26923 { echo "$as_me:$LINENO: result: no" >&5
26924 echo "${ECHO_T}no" >&6; }
26926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26934 # Begin output steps
26936 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26937 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26938 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26939 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26940 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26941 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26943 # prepare build tree if outside source tree
26944 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26945 # Note 2: /bin/pwd might be better than shell's built-in at getting
26946 # a symlink-free name.
26947 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin
/pwd`" = "`/bin
/pwd`"; then
26951 if test "$no_create" != yes; then
26952 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26953 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26954 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26955 || { { echo "$as_me:$LINENO: error: failed" >&5
26956 echo "$as_me: error: failed" >&2;}
26957 { (exit 1); exit 1; }; }
26958 { echo "$as_me:$LINENO: result: done" >&5
26959 echo "${ECHO_T}done" >&6; }
26965 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26968 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}"
26971 if test "$PORTNAME" = "win32"; then
26972 ac_config_commands="$ac_config_commands check_win32_symlinks"
26976 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26979 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26982 cat >confcache <<\_ACEOF
26983 # This file is a shell script that caches the results of configure
26984 # tests run on this system so they can be shared between configure
26985 # scripts and configure runs, see configure's option --config-cache.
26986 # It is not useful on other systems. If it contains results you don't
26987 # want to keep, you may remove or edit it.
26989 # config.status only pays attention to the cache file if you give it
26990 # the --recheck option to rerun configure.
26992 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
26993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26994 # following values.
26998 # The following way of writing the cache mishandles newlines in values,
26999 # but we know of no workaround that is simple, portable, and efficient.
27000 # So, we kill variables containing newlines.
27001 # Ultrix sh set writes to stderr and can't be redirected directly,
27002 # and sets the high bit in the cache file unless we assign to the vars.
27004 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27005 eval ac_val
=\$
$ac_var
27009 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27010 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27013 _ | IFS | as_nl
) ;; #(
27014 *) $as_unset $ac_var ;;
27020 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27021 *${as_nl}ac_space
=\
*)
27022 # `set' does not quote correctly, so add quotes (double-quote
27023 # substitution turns \\\\ into \\, and sed turns \\ into \).
27026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27029 # `set' quotes correctly as required by POSIX, so do not add quotes.
27030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27041 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27043 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27044 if test -w "$cache_file"; then
27045 test "x$cache_file" != "x/dev/null" &&
27046 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27047 echo "$as_me: updating cache $cache_file" >&6;}
27048 cat confcache
>$cache_file
27050 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27051 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27056 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27057 # Let make expand exec_prefix.
27058 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27060 DEFS
=-DHAVE_CONFIG_H
27064 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27065 # 1. Remove the extension, and $U if already installed.
27066 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27067 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27068 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27069 # will be set to the directory where LIBOBJS objects are built.
27070 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27071 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27073 LIBOBJS
=$ac_libobjs
27075 LTLIBOBJS
=$ac_ltlibobjs
27079 : ${CONFIG_STATUS=./config.status}
27080 ac_clean_files_save
=$ac_clean_files
27081 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27084 cat >$CONFIG_STATUS <<_ACEOF
27086 # Generated by $as_me.
27087 # Run this file to recreate the current configuration.
27088 # Compiler output produced by configure, useful for debugging
27089 # configure, is in config.log if it exists.
27092 ac_cs_recheck=false
27094 SHELL=\${CONFIG_SHELL-$SHELL}
27097 cat >>$CONFIG_STATUS <<\_ACEOF
27098 ## --------------------- ##
27099 ## M4sh Initialization. ##
27100 ## --------------------- ##
27102 # Be more Bourne compatible
27103 DUALCASE
=1; export DUALCASE
# for MKS sh
27104 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27107 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27108 # is contrary to our usage. Disable this feature.
27109 alias -g '${1+"$@"}'='"$@"'
27110 setopt NO_GLOB_SUBST
27112 case `(set -o) 2>/dev/null` in
27113 *posix
*) set -o posix
;;
27122 # Avoid depending upon Character Ranges.
27123 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27124 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27125 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27126 as_cr_digits
='0123456789'
27127 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27129 # The user is always right.
27130 if test "${PATH_SEPARATOR+set}" != set; then
27131 echo "#! /bin/sh" >conf$$.sh
27132 echo "exit 0" >>conf$$.sh
27134 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27142 # Support unset when possible.
27143 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27151 # We need space, tab and new line, in precisely that order. Quoting is
27152 # there to prevent editors from complaining about space-tab.
27153 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27154 # splitting by setting IFS to empty value.)
27159 # Find who we are. Look in the path if we contain no directory separator.
27161 *[\\/]* ) as_myself
=$0 ;;
27162 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27163 for as_dir
in $PATH
27166 test -z "$as_dir" && as_dir
=.
27167 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27173 # We did not find ourselves, most probably we were run as `sh COMMAND'
27174 # in which case we are not to be found in the path.
27175 if test "x$as_myself" = x
; then
27178 if test ! -f "$as_myself"; then
27179 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27180 { (exit 1); exit 1; }
27183 # Work around bugs in pre-3.0 UWIN ksh.
27184 for as_var
in ENV MAIL MAILPATH
27185 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27193 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27194 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27195 LC_TELEPHONE LC_TIME
27197 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27198 eval $as_var=C
; export $as_var
27200 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27204 # Required to use basename.
27205 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27206 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27212 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27213 as_basename
=basename
27219 # Name of the executable.
27220 as_me
=`$as_basename -- "$0" ||
27221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27222 X"$0" : 'X\(//\)$' \| \
27223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27225 sed '/^.*\/\([^/][^/]*\)\/*$/{
27244 as_lineno_1
=$LINENO
27245 as_lineno_2
=$LINENO
27246 test "x$as_lineno_1" != "x$as_lineno_2" &&
27247 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27249 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27250 # uniformly replaced by the line number. The first 'sed' inserts a
27251 # line-number line after each line using $LINENO; the second 'sed'
27252 # does the real work. The second script uses 'N' to pair each
27253 # line-number line with the line containing $LINENO, and appends
27254 # trailing '-' during substitution so that $LINENO is not a special
27255 # case at line end.
27256 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27257 # scripts with optimization help from Paolo Bonzini. Blame Lee
27258 # E. McMahon (1931-1989) for sed's syntax. :-)
27270 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27273 ' >$as_me.lineno
&&
27274 chmod +x
"$as_me.lineno" ||
27275 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27276 { (exit 1); exit 1; }; }
27278 # Don't try to exec as it changes $[0], causing all sort of problems
27279 # (the dirname of $[0] is not the place where we might find the
27280 # original and so on. Autoconf is especially sensitive to this).
27281 .
"./$as_me.lineno"
27282 # Exit status is that of the last command.
27287 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27293 ECHO_C
= ECHO_N
= ECHO_T
=
27294 case `echo -n x` in
27296 case `echo 'x\c'` in
27297 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27304 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27305 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27311 rm -f conf$$ conf$$.exe conf$$.
file
27312 if test -d conf$$.dir
; then
27313 rm -f conf$$.dir
/conf$$.
file
27319 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27321 # ... but there are two gotchas:
27322 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27323 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27324 # In both cases, we have to default to `cp -p'.
27325 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27327 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27332 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27333 rmdir conf$$.dir
2>/dev
/null
27335 if mkdir
-p .
2>/dev
/null
; then
27338 test -d .
/-p && rmdir .
/-p
27342 if test -x / >/dev
/null
2>&1; then
27343 as_test_x
='test -x'
27345 if ls -dL / >/dev
/null
2>&1; then
27352 if test -d "$1"; then
27358 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27359 ???[sx]*):;;*)false;;esac;fi
27363 as_executable_p
=$as_test_x
27365 # Sed expression to map a string onto a valid CPP name.
27366 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27368 # Sed expression to map a string onto a valid variable name.
27369 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27374 # Save the log message, to keep $[0] and so on meaningful, and to
27375 # report actual input values of CONFIG_FILES etc. instead of their
27376 # values after options handling.
27378 This file was extended by PostgreSQL $as_me 8.4devel, which was
27379 generated by GNU Autoconf 2.61. Invocation command line was
27381 CONFIG_FILES = $CONFIG_FILES
27382 CONFIG_HEADERS = $CONFIG_HEADERS
27383 CONFIG_LINKS = $CONFIG_LINKS
27384 CONFIG_COMMANDS = $CONFIG_COMMANDS
27387 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27392 cat >>$CONFIG_STATUS <<_ACEOF
27393 # Files that config.status was made for.
27394 config_files="$ac_config_files"
27395 config_headers="$ac_config_headers"
27396 config_links="$ac_config_links"
27397 config_commands="$ac_config_commands"
27401 cat >>$CONFIG_STATUS <<\_ACEOF
27403 \`$as_me' instantiates files from templates according to the
27404 current configuration.
27406 Usage: $0 [OPTIONS] [FILE]...
27408 -h, --help print this help, then exit
27409 -V, --version print version number and configuration settings, then exit
27410 -q, --quiet do not print progress messages
27411 -d, --debug don't remove temporary files
27412 --recheck update $as_me by reconfiguring in the same conditions
27413 --file=FILE[:TEMPLATE]
27414 instantiate the configuration file FILE
27415 --header=FILE[:TEMPLATE]
27416 instantiate the configuration header FILE
27418 Configuration files:
27421 Configuration headers:
27424 Configuration links:
27427 Configuration commands:
27430 Report bugs to <bug-autoconf@gnu.org>."
27433 cat >>$CONFIG_STATUS <<_ACEOF
27435 PostgreSQL config.status 8.4devel
27436 configured by $0, generated by GNU Autoconf 2.61,
27437 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27439 Copyright (C) 2006 Free Software Foundation, Inc.
27440 This config.status script is free software; the Free Software Foundation
27441 gives unlimited permission to copy, distribute and modify it."
27447 cat >>$CONFIG_STATUS <<\_ACEOF
27448 # If no file are specified by the user, then we need to provide default
27449 # value. By we need to know if files were specified by the user.
27455 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27456 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27467 # Handling of the options.
27468 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27470 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27471 echo "$ac_cs_version"; exit ;;
27472 --debug |
--debu |
--deb |
--de |
--d |
-d )
27474 --file |
--fil |
--fi |
--f )
27476 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27477 ac_need_defaults
=false
;;
27478 --header |
--heade |
--head |
--hea )
27480 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27481 ac_need_defaults
=false
;;
27483 # Conflict between --help and --header
27484 { echo "$as_me: error: ambiguous option: $1
27485 Try \`$0 --help' for more information." >&2
27486 { (exit 1); exit 1; }; };;
27487 --help |
--hel |
-h )
27488 echo "$ac_cs_usage"; exit ;;
27489 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27490 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27493 # This is an error.
27494 -*) { echo "$as_me: error: unrecognized option: $1
27495 Try \`$0 --help' for more information." >&2
27496 { (exit 1); exit 1; }; } ;;
27498 *) ac_config_targets
="$ac_config_targets $1"
27499 ac_need_defaults
=false
;;
27505 ac_configure_extra_args
=
27507 if $ac_cs_silent; then
27509 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27513 cat >>$CONFIG_STATUS <<_ACEOF
27514 if \$ac_cs_recheck; then
27515 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27516 CONFIG_SHELL=$SHELL
27517 export CONFIG_SHELL
27518 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27522 cat >>$CONFIG_STATUS <<\_ACEOF
27526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27527 ## Running $as_me. ##
27533 cat >>$CONFIG_STATUS <<_ACEOF
27536 cat >>$CONFIG_STATUS <<\_ACEOF
27538 # Handling of arguments.
27539 for ac_config_target
in $ac_config_targets
27541 case $ac_config_target in
27542 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27543 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
27544 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
27545 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27546 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27547 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27548 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27549 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27550 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27551 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
27552 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
27553 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27555 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27556 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27557 { (exit 1); exit 1; }; };;
27562 # If the user did not use the arguments to specify the items to instantiate,
27563 # then the envvar interface is used. Set only those that are not.
27564 # We use the long form for the default assignment because of an extremely
27565 # bizarre bug on SunOS 4.1.3.
27566 if $ac_need_defaults; then
27567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27569 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
27570 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27573 # Have a temporary directory for convenience. Make it in the build tree
27574 # simply because there is no reason against having it here, and in addition,
27575 # creating and moving files from /tmp can sometimes cause problems.
27576 # Hook for its removal unless debugging.
27577 # Note that there is a small window in which the directory will not be cleaned:
27578 # after its creation but before its name has been assigned to `$tmp'.
27582 trap 'exit_status=$?
27583 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27585 trap '{ (exit 1); exit 1; }' 1 2 13 15
27587 # Create a (secure) tmp directory for tmp files.
27590 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27591 test -n "$tmp" && test -d "$tmp"
27594 tmp
=.
/conf$$
-$RANDOM
27595 (umask 077 && mkdir
"$tmp")
27598 echo "$me: cannot create a temporary directory in ." >&2
27599 { (exit 1); exit 1; }
27603 # Set up the sed scripts for CONFIG_FILES section.
27606 # No need to generate the scripts if there are no CONFIG_FILES.
27607 # This happens for instance when ./config.status config.h
27608 if test -n "$CONFIG_FILES"; then
27615 for ac_last_try
in false false false false false
:; do
27616 cat >conf$
$subs.
sed <<_ACEOF
27617 SHELL!$SHELL$ac_delim
27618 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27619 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27620 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27621 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27622 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27623 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27624 exec_prefix!$exec_prefix$ac_delim
27625 prefix!$prefix$ac_delim
27626 program_transform_name!$program_transform_name$ac_delim
27627 bindir!$bindir$ac_delim
27628 sbindir!$sbindir$ac_delim
27629 libexecdir!$libexecdir$ac_delim
27630 datarootdir!$datarootdir$ac_delim
27631 datadir!$datadir$ac_delim
27632 sysconfdir!$sysconfdir$ac_delim
27633 sharedstatedir!$sharedstatedir$ac_delim
27634 localstatedir!$localstatedir$ac_delim
27635 includedir!$includedir$ac_delim
27636 oldincludedir!$oldincludedir$ac_delim
27637 docdir!$docdir$ac_delim
27638 infodir!$infodir$ac_delim
27639 htmldir!$htmldir$ac_delim
27640 dvidir!$dvidir$ac_delim
27641 pdfdir!$pdfdir$ac_delim
27642 psdir!$psdir$ac_delim
27643 libdir!$libdir$ac_delim
27644 localedir!$localedir$ac_delim
27645 mandir!$mandir$ac_delim
27646 DEFS!$DEFS$ac_delim
27647 ECHO_C!$ECHO_C$ac_delim
27648 ECHO_N!$ECHO_N$ac_delim
27649 ECHO_T!$ECHO_T$ac_delim
27650 LIBS!$LIBS$ac_delim
27651 build_alias!$build_alias$ac_delim
27652 host_alias!$host_alias$ac_delim
27653 target_alias!$target_alias$ac_delim
27654 configure_args!$configure_args$ac_delim
27655 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27656 build!$build$ac_delim
27657 build_cpu!$build_cpu$ac_delim
27658 build_vendor!$build_vendor$ac_delim
27659 build_os!$build_os$ac_delim
27660 host!$host$ac_delim
27661 host_cpu!$host_cpu$ac_delim
27662 host_vendor!$host_vendor$ac_delim
27663 host_os!$host_os$ac_delim
27664 PORTNAME!$PORTNAME$ac_delim
27665 enable_nls!$enable_nls$ac_delim
27666 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27667 default_port!$default_port$ac_delim
27668 enable_shared!$enable_shared$ac_delim
27669 enable_rpath!$enable_rpath$ac_delim
27670 enable_debug!$enable_debug$ac_delim
27671 enable_profiling!$enable_profiling$ac_delim
27672 GCOV!$GCOV$ac_delim
27673 LCOV!$LCOV$ac_delim
27674 GENHTML!$GENHTML$ac_delim
27675 enable_coverage!$enable_coverage$ac_delim
27676 DTRACE!$DTRACE$ac_delim
27677 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27678 enable_dtrace!$enable_dtrace$ac_delim
27680 CFLAGS!$CFLAGS$ac_delim
27681 LDFLAGS!$LDFLAGS$ac_delim
27682 CPPFLAGS!$CPPFLAGS$ac_delim
27683 ac_ct_CC!$ac_ct_CC$ac_delim
27684 EXEEXT!$EXEEXT$ac_delim
27685 OBJEXT!$OBJEXT$ac_delim
27686 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27689 GREP!$GREP$ac_delim
27690 EGREP!$EGREP$ac_delim
27692 autodepend!$autodepend$ac_delim
27693 INCLUDES!$INCLUDES$ac_delim
27694 enable_thread_safety!$enable_thread_safety$ac_delim
27695 with_tcl!$with_tcl$ac_delim
27696 with_perl!$with_perl$ac_delim
27697 with_python!$with_python$ac_delim
27698 with_gssapi!$with_gssapi$ac_delim
27699 with_krb5!$with_krb5$ac_delim
27700 krb_srvtab!$krb_srvtab$ac_delim
27701 with_pam!$with_pam$ac_delim
27702 with_ldap!$with_ldap$ac_delim
27703 with_bonjour!$with_bonjour$ac_delim
27704 with_openssl!$with_openssl$ac_delim
27705 with_ossp_uuid!$with_ossp_uuid$ac_delim
27706 XML2_CONFIG!$XML2_CONFIG$ac_delim
27707 with_libxml!$with_libxml$ac_delim
27708 with_libxslt!$with_libxslt$ac_delim
27709 with_system_tzdata!$with_system_tzdata$ac_delim
27710 with_zlib!$with_zlib$ac_delim
27711 ELF_SYS!$ELF_SYS$ac_delim
27712 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27716 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27718 elif $ac_last_try; then
27719 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27720 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27721 { (exit 1); exit 1; }; }
27723 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27727 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27728 if test -n "$ac_eof"; then
27729 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27730 ac_eof
=`expr $ac_eof + 1`
27733 cat >>$CONFIG_STATUS <<_ACEOF
27734 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27738 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27739 s/^/s,@/; s/!/@,|#_!!_#|/
27742 s/'"$ac_delim"'$/,g/; t
27744 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27745 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27746 rm -f conf$
$subs.
sed
27747 cat >>$CONFIG_STATUS <<_ACEOF
27753 for ac_last_try
in false false false false false
:; do
27754 cat >conf$
$subs.
sed <<_ACEOF
27755 with_gnu_ld!$with_gnu_ld$ac_delim
27756 ld_R_works!$ld_R_works$ac_delim
27757 RANLIB!$RANLIB$ac_delim
27758 STRIP!$STRIP$ac_delim
27759 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27760 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27762 DLLTOOL!$DLLTOOL$ac_delim
27763 DLLWRAP!$DLLWRAP$ac_delim
27764 WINDRES!$WINDRES$ac_delim
27766 LN_S!$LN_S$ac_delim
27768 BISON!$BISON$ac_delim
27769 BISONFLAGS!$BISONFLAGS$ac_delim
27770 FLEX!$FLEX$ac_delim
27771 FLEXFLAGS!$FLEXFLAGS$ac_delim
27772 PERL!$PERL$ac_delim
27773 perl_archlibexp!$perl_archlibexp$ac_delim
27774 perl_privlibexp!$perl_privlibexp$ac_delim
27775 perl_useshrplib!$perl_useshrplib$ac_delim
27776 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27777 PYTHON!$PYTHON$ac_delim
27778 python_version!$python_version$ac_delim
27779 python_configdir!$python_configdir$ac_delim
27780 python_includespec!$python_includespec$ac_delim
27781 python_libdir!$python_libdir$ac_delim
27782 python_libspec!$python_libspec$ac_delim
27783 python_additional_libs!$python_additional_libs$ac_delim
27785 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27786 HAVE_IPV6!$HAVE_IPV6$ac_delim
27787 LIBOBJS!$LIBOBJS$ac_delim
27788 acx_pthread_config!$acx_pthread_config$ac_delim
27789 PTHREAD_CC!$PTHREAD_CC$ac_delim
27790 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27791 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27792 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27793 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27794 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27795 MSGFMT!$MSGFMT$ac_delim
27796 MSGMERGE!$MSGMERGE$ac_delim
27797 XGETTEXT!$XGETTEXT$ac_delim
27798 TCLSH!$TCLSH$ac_delim
27799 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27800 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27801 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27802 TCL_LIBS!$TCL_LIBS$ac_delim
27803 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27804 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27805 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27806 NSGMLS!$NSGMLS$ac_delim
27807 JADE!$JADE$ac_delim
27808 have_docbook!$have_docbook$ac_delim
27809 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27810 COLLATEINDEX!$COLLATEINDEX$ac_delim
27811 SGMLSPL!$SGMLSPL$ac_delim
27812 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27813 vpath_build!$vpath_build$ac_delim
27814 LTLIBOBJS!$LTLIBOBJS$ac_delim
27817 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27819 elif $ac_last_try; then
27820 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27821 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27822 { (exit 1); exit 1; }; }
27824 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27828 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27829 if test -n "$ac_eof"; then
27830 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27831 ac_eof
=`expr $ac_eof + 1`
27834 cat >>$CONFIG_STATUS <<_ACEOF
27835 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27839 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27840 s/^/s,@/; s/!/@,|#_!!_#|/
27843 s/'"$ac_delim"'$/,g/; t
27845 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27846 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27847 rm -f conf$
$subs.
sed
27848 cat >>$CONFIG_STATUS <<_ACEOF
27855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27857 # trailing colons and then remove the whole line if VPATH becomes empty
27858 # (actually we leave an empty line to preserve line numbers).
27859 if test "x$srcdir" = x.
; then
27860 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27861 s/:*\$(srcdir):*/:/
27862 s/:*\${srcdir}:*/:/
27864 s/^\([^=]*=[ ]*\):*/\1/
27870 cat >>$CONFIG_STATUS <<\_ACEOF
27871 fi # test -n "$CONFIG_FILES"
27874 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
27877 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27879 case $ac_mode$ac_tag in
27881 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27882 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27883 { (exit 1); exit 1; }; };;
27884 :[FH
]-) ac_tag
=-:-;;
27885 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27902 -) ac_f
="$tmp/stdin";;
27903 *) # Look for the file first in the build tree, then in the source tree
27904 # (if the path is not absolute). The absolute path cannot be DOS-style,
27905 # because $ac_f cannot contain `:'.
27909 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27911 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27912 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27913 { (exit 1); exit 1; }; };;
27915 ac_file_inputs
="$ac_file_inputs $ac_f"
27918 # Let's still pretend it is `configure' which instantiates (i.e., don't
27919 # use $as_me), people would be surprised to read:
27920 # /* config.h. Generated by config.status. */
27921 configure_input
="Generated from "`IFS=:
27922 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27923 if test x
"$ac_file" != x-
; then
27924 configure_input
="$ac_file. $configure_input"
27925 { echo "$as_me:$LINENO: creating $ac_file" >&5
27926 echo "$as_me: creating $ac_file" >&6;}
27930 *:-:* |
*:-) cat >"$tmp/stdin";;
27935 ac_dir
=`$as_dirname -- "$ac_file" ||
27936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27937 X"$ac_file" : 'X\(//\)[^/]' \| \
27938 X"$ac_file" : 'X\(//\)$' \| \
27939 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27945 /^X\(\/\/\)[^/].*/{
27960 -*) as_dir
=.
/$as_dir;;
27962 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27966 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27967 *) as_qdir
=$as_dir;;
27969 as_dirs
="'$as_qdir' $as_dirs"
27970 as_dir
=`$as_dirname -- "$as_dir" ||
27971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27972 X"$as_dir" : 'X\(//\)[^/]' \| \
27973 X"$as_dir" : 'X\(//\)$' \| \
27974 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27980 /^X\(\/\/\)[^/].*/{
27993 test -d "$as_dir" && break
27995 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27996 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27997 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27998 { (exit 1); exit 1; }; }; }
28002 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28004 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28005 # A ".." for each directory in $ac_dir_suffix.
28006 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28007 case $ac_top_builddir_sub in
28008 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28009 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28012 ac_abs_top_builddir
=$ac_pwd
28013 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28014 # for backward compatibility:
28015 ac_top_builddir
=$ac_top_build_prefix
28018 .
) # We are building in place.
28020 ac_top_srcdir
=$ac_top_builddir_sub
28021 ac_abs_top_srcdir
=$ac_pwd ;;
28022 [\\/]* | ?
:[\\/]* ) # Absolute name.
28023 ac_srcdir
=$srcdir$ac_dir_suffix;
28024 ac_top_srcdir
=$srcdir
28025 ac_abs_top_srcdir
=$srcdir ;;
28026 *) # Relative name.
28027 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28028 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28029 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28031 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28042 cat >>$CONFIG_STATUS <<\_ACEOF
28043 # If the template does not know about datarootdir, expand it.
28044 # FIXME: This hack should be removed a few years after 2.60.
28045 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28047 case `sed -n '/datarootdir/ {
28056 ' $ac_file_inputs` in
28057 *datarootdir
*) ac_datarootdir_seen
=yes;;
28058 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28059 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28060 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28062 cat >>$CONFIG_STATUS <<_ACEOF
28063 ac_datarootdir_hack='
28064 s&@datadir@&$datadir&g
28065 s&@docdir@&$docdir&g
28066 s&@infodir@&$infodir&g
28067 s&@localedir@&$localedir&g
28068 s&@mandir@&$mandir&g
28069 s&\\\${datarootdir}&$datarootdir&g' ;;
28073 # Neutralize VPATH when `$srcdir' = `.'.
28074 # Shell code in configure.ac might set extrasub.
28075 # FIXME: do we really want to maintain this feature?
28076 cat >>$CONFIG_STATUS <<_ACEOF
28080 cat >>$CONFIG_STATUS <<\_ACEOF
28082 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28083 s
&@configure_input@
&$configure_input&;t t
28084 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28085 s
&@srcdir@
&$ac_srcdir&;t t
28086 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28087 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28088 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28089 s
&@builddir@
&$ac_builddir&;t t
28090 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28091 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28092 $ac_datarootdir_hack
28093 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
28095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28096 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28098 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28099 which seems to be undefined. Please make sure it is defined." >&5
28100 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28101 which seems to be undefined. Please make sure it is defined." >&2;}
28105 -) cat "$tmp/out"; rm -f "$tmp/out";;
28106 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28115 # Transform confdefs.h into a sed script `conftest.defines', that
28116 # substitutes the proper values into config.h.in to produce config.h.
28117 rm -f conftest.defines conftest.
tail
28118 # First, append a space to every undef/define line, to ease matching.
28119 echo 's/$/ /' >conftest.defines
28120 # Then, protect against being on the right side of a sed subst, or in
28121 # an unquoted here document, in config.status. If some macros were
28122 # called several times there might be several #defines for the same
28123 # symbol, which is useless. But do not sort them, since the last
28124 # AC_DEFINE must be honored.
28125 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28126 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28127 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28128 # PARAMS is the parameter list in the macro definition--in most cases, it's
28129 # just an empty string.
28130 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28131 ac_dB
='\\)[ (].*,\\1define\\2'
28139 s/^[ ]*#[ ]*define[ ][ ]*//
28144 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28145 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28146 ' >>conftest.defines
28148 # Remove the space that was appended to ease matching.
28149 # Then replace #undef with comments. This is necessary, for
28150 # example, in the case of _POSIX_SOURCE, which is predefined and required
28151 # on some systems where configure will not decide to define it.
28152 # (The regexp can be short, since the line contains either #define or #undef.)
28154 s,^[ #]*u.*,/* & */,' >>conftest.defines
28156 # Break up conftest.defines:
28157 ac_max_sed_lines
=50
28159 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28160 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28161 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28163 ac_in
='$ac_file_inputs'
28164 ac_out
='"$tmp/out1"'
28165 ac_nxt
='"$tmp/out2"'
28169 # Write a here document:
28170 cat >>$CONFIG_STATUS <<_ACEOF
28171 # First, check the format of the line:
28172 cat >"\$tmp/defines.sed" <<\\CEOF
28173 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28174 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28178 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28180 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28181 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28182 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28183 grep . conftest.
tail >/dev
/null ||
break
28184 rm -f conftest.defines
28185 mv conftest.
tail conftest.defines
28187 rm -f conftest.defines conftest.
tail
28189 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28190 cat >>$CONFIG_STATUS <<\_ACEOF
28191 if test x
"$ac_file" != x-
; then
28192 echo "/* $configure_input */" >"$tmp/config.h"
28193 cat "$ac_result" >>"$tmp/config.h"
28194 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28195 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28196 echo "$as_me: $ac_file is unchanged" >&6;}
28199 mv "$tmp/config.h" $ac_file
28202 echo "/* $configure_input */"
28212 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28213 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28215 if test ! -r "$srcdir/$ac_source"; then
28216 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28217 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28218 { (exit 1); exit 1; }; }
28222 # Try a relative symlink, then a hard link, then a copy.
28224 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
28225 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
28227 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
28228 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
28229 cp -p "$srcdir/$ac_source" "$ac_file" ||
28230 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28231 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28232 { (exit 1); exit 1; }; }
28234 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28235 echo "$as_me: executing $ac_file commands" >&6;}
28240 case $ac_file$ac_mode in
28241 "check_win32_symlinks":C
)
28242 # Links sometimes fail undetected on Mingw -
28243 # so here we detect it and warn the user
28244 for FILE
in $CONFIG_LINKS
28246 # test -e works for symlinks in the MinGW console
28247 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28248 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28251 "src/include/pg_config.h":H
)
28252 # Update timestamp for pg_config.h (see Makefile.global)
28253 echo >src
/include
/stamp-h
28260 { (exit 0); exit 0; }
28262 chmod +x
$CONFIG_STATUS
28263 ac_clean_files
=$ac_clean_files_save
28266 # configure is writing to config.log, and then calls config.status.
28267 # config.status does its own redirection, appending to config.log.
28268 # Unfortunately, on DOS this fails, as config.log is still kept open
28269 # by configure, so config.status won't be able to write to it; its
28270 # output is simply discarded. So we exec the FD to /dev/null,
28271 # effectively closing config.log, so it can be properly (re)opened and
28272 # appended to by config.status. When coming back to configure, we
28273 # need to make the FD available again.
28274 if test "$no_create" != yes; then
28276 ac_config_status_args
=
28277 test "$silent" = yes &&
28278 ac_config_status_args
="$ac_config_status_args --quiet"
28280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28283 # would make configure fail if this is the last instruction.
28284 $ac_cs_success ||
{ (exit 1); exit 1; }
28288 # Warn about unknown options
28289 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28290 for pgac_arg
in $pgac_args with_gnu_ld
; do
28291 if test "$pgac_var" = "$pgac_arg"; then
28295 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
28296 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28297 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}