2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix
*) set -o posix
;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits
='0123456789'
42 as_cr_alnum
=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
57 # Support unset when possible.
58 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself
=$0 ;;
77 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir
=.
82 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x
; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var
in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C
; export $as_var
115 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me
=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x
; then
159 if (eval ":") 2>/dev
/null
; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev
/null
; then
225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
226 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir
=.
232 for as_base
in sh bash ksh sh5
; do
233 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
240 for as_shell
in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix
*) set -o posix
;;
262 CONFIG_SHELL
=$as_shell
264 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix
*) set -o posix
;;
290 as_func_ret_success
() {
293 as_func_ret_failure
() {
298 if as_func_success
; then
302 echo as_func_success failed.
305 if as_func_failure
; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success
; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure
; then
319 echo as_func_ret_failure succeeded.
322 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) ||
{ (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x
; then
347 for as_var
in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no
; then
356 echo This
script requires a shell
more modern than all the
357 echo shells that I found on your system. Please
install a
358 echo modern shell
, or manually run the
script under such a
359 echo shell
if you
do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") ||
{
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system
,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
476 ECHO_C
= ECHO_N
= ECHO_T
=
480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
487 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
494 rm -f conf$$ conf$$.exe conf$$.
file
495 if test -d conf$$.dir
; then
496 rm -f conf$$.dir
/conf$$.
file
502 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
515 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
516 rmdir conf$$.dir
2>/dev
/null
518 if mkdir
-p .
2>/dev
/null
; then
521 test -d .
/-p && rmdir .
/-p
525 if test -x / >/dev
/null
2>&1; then
528 if ls -dL / >/dev
/null
2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p
=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev
/null
6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix
=/usr
/local
568 ac_config_libobj_dir
=.
574 SHELL
=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME
='PostgreSQL'
578 PACKAGE_TARNAME
='postgresql'
579 PACKAGE_VERSION
='8.4devel'
580 PACKAGE_STRING
='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT
='pgsql-bugs@postgresql.org'
583 ac_unique_file
="src/backend/access/common/heaptuple.c"
584 ac_default_prefix
=/usr
/local
/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
736 python_additional_libs
767 ac_precious_vars
='build_alias
780 # Initialize some variables set by options.
782 ac_init_version
=false
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name
=s
,x
,x
,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir
='${exec_prefix}/bin'
807 sbindir
='${exec_prefix}/sbin'
808 libexecdir
='${exec_prefix}/libexec'
809 datarootdir
='${prefix}/share'
810 datadir
='${datarootdir}'
811 sysconfdir
='${prefix}/etc'
812 sharedstatedir
='${prefix}/com'
813 localstatedir
='${prefix}/var'
814 includedir
='${prefix}/include'
815 oldincludedir
='/usr/include'
816 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir
='${datarootdir}/info'
822 libdir
='${exec_prefix}/lib'
823 localedir
='${datarootdir}/locale'
824 mandir
='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\
$ac_option
838 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
850 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
853 -build |
--build |
--buil |
--bui |
--bu)
854 ac_prev
=build_alias
;;
855 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
856 build_alias
=$ac_optarg ;;
858 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
859 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
860 ac_prev
=cache_file
;;
861 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
862 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
863 cache_file
=$ac_optarg ;;
866 cache_file
=config.cache
;;
868 -datadir |
--datadir |
--datadi |
--datad)
870 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
871 datadir
=$ac_optarg ;;
873 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
874 |
--dataroo |
--dataro |
--datar)
875 ac_prev
=datarootdir
;;
876 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
877 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
878 datarootdir
=$ac_optarg ;;
880 -disable-* |
--disable-*)
881 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
887 eval enable_
$ac_feature=no
;;
889 -docdir |
--docdir |
--docdi |
--doc |
--do)
891 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
894 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
896 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
899 -enable-* |
--enable-*)
900 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
906 eval enable_
$ac_feature=\
$ac_optarg ;;
908 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
909 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
910 |
--exec |
--exe |
--ex)
911 ac_prev
=exec_prefix
;;
912 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
913 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
914 |
--exec=* |
--exe=* |
--ex=*)
915 exec_prefix
=$ac_optarg ;;
917 -gas |
--gas |
--ga |
--g)
918 # Obsolete; use --with-gas.
921 -help |
--help |
--hel |
--he |
-h)
923 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
924 ac_init_help
=recursive
;;
925 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
926 ac_init_help
=short
;;
928 -host |
--host |
--hos |
--ho)
929 ac_prev
=host_alias
;;
930 -host=* |
--host=* |
--hos=* |
--ho=*)
931 host_alias
=$ac_optarg ;;
933 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
935 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
937 htmldir
=$ac_optarg ;;
939 -includedir |
--includedir |
--includedi |
--included |
--include \
940 |
--includ |
--inclu |
--incl |
--inc)
941 ac_prev
=includedir
;;
942 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
943 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
944 includedir
=$ac_optarg ;;
946 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
948 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
949 infodir
=$ac_optarg ;;
951 -libdir |
--libdir |
--libdi |
--libd)
953 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
956 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
957 |
--libexe |
--libex |
--libe)
958 ac_prev
=libexecdir
;;
959 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
960 |
--libexe=* |
--libex=* |
--libe=*)
961 libexecdir
=$ac_optarg ;;
963 -localedir |
--localedir |
--localedi |
--localed |
--locale)
965 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
966 localedir
=$ac_optarg ;;
968 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
969 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
970 ac_prev
=localstatedir
;;
971 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
972 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
973 localstatedir
=$ac_optarg ;;
975 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
977 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
981 # Obsolete; use --without-fp.
984 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
985 |
--no-cr |
--no-c |
-n)
988 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
989 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
992 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
993 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
994 |
--oldin |
--oldi |
--old |
--ol |
--o)
995 ac_prev
=oldincludedir
;;
996 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
997 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
998 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
999 oldincludedir
=$ac_optarg ;;
1001 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1003 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1004 prefix
=$ac_optarg ;;
1006 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1007 |
--program-pre |
--program-pr |
--program-p)
1008 ac_prev
=program_prefix
;;
1009 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1010 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1011 program_prefix
=$ac_optarg ;;
1013 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1014 |
--program-suf |
--program-su |
--program-s)
1015 ac_prev
=program_suffix
;;
1016 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1017 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1018 program_suffix
=$ac_optarg ;;
1020 -program-transform-name |
--program-transform-name \
1021 |
--program-transform-nam |
--program-transform-na \
1022 |
--program-transform-n |
--program-transform- \
1023 |
--program-transform |
--program-transfor \
1024 |
--program-transfo |
--program-transf \
1025 |
--program-trans |
--program-tran \
1026 |
--progr-tra |
--program-tr |
--program-t)
1027 ac_prev
=program_transform_name
;;
1028 -program-transform-name=* |
--program-transform-name=* \
1029 |
--program-transform-nam=* |
--program-transform-na=* \
1030 |
--program-transform-n=* |
--program-transform-=* \
1031 |
--program-transform=* |
--program-transfor=* \
1032 |
--program-transfo=* |
--program-transf=* \
1033 |
--program-trans=* |
--program-tran=* \
1034 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1035 program_transform_name
=$ac_optarg ;;
1037 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1039 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1040 pdfdir
=$ac_optarg ;;
1042 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1044 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1047 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1048 |
-silent |
--silent |
--silen |
--sile |
--sil)
1051 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1053 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1055 sbindir
=$ac_optarg ;;
1057 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1058 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1059 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1061 ac_prev
=sharedstatedir
;;
1062 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1063 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1064 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1066 sharedstatedir
=$ac_optarg ;;
1068 -site |
--site |
--sit)
1070 -site=* |
--site=* |
--sit=*)
1073 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1075 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1076 srcdir
=$ac_optarg ;;
1078 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1079 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1080 ac_prev
=sysconfdir
;;
1081 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1082 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1083 sysconfdir
=$ac_optarg ;;
1085 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1086 ac_prev
=target_alias
;;
1087 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1088 target_alias
=$ac_optarg ;;
1090 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1093 -version |
--version |
--versio |
--versi |
--vers |
-V)
1094 ac_init_version
=: ;;
1097 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1103 eval with_
$ac_package=\
$ac_optarg ;;
1105 -without-* |
--without-*)
1106 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_
$ac_package=no
;;
1115 # Obsolete; use --with-x.
1118 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1119 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1120 ac_prev
=x_includes
;;
1121 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1122 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1123 x_includes
=$ac_optarg ;;
1125 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1126 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1127 ac_prev
=x_libraries
;;
1128 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1129 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1130 x_libraries
=$ac_optarg ;;
1132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133 Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
1138 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
1143 eval $ac_envvar=\
$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 if test -n "$ac_prev"; then
1158 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
1163 # Be sure to have absolute directory names.
1164 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val
=\$
$ac_var
1171 [\\/$
]* | ?
:[\\/]* ) continue;;
1172 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1183 target
=$target_alias
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x
; then
1187 if test "x$build_alias" = x
; then
1188 cross_compiling
=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1197 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1199 test "$silent" = yes && exec 6>/dev
/null
1202 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1203 ac_ls_di
=`ls -di .` &&
1204 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted
=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir
=`$as_dirname -- "$0" ||
1217 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
1220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1244 ac_srcdir_defaulted
=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1249 { (exit 1); exit 1; }; }
1251 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1254 { (exit 1); exit 1; }; }
1256 # When building in place, set srcdir=.
1257 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 # Remove unnecessary trailing slashes from srcdir.
1261 # Double slashes in file names in object file debugging info
1262 # mess up M-x gdb in Emacs.
1264 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 for ac_var
in $ac_precious_vars; do
1267 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1269 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1274 # Report the --help message.
1276 if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
1280 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1282 Usage: $0 [OPTION]... [VAR=VALUE]...
1284 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285 VAR=VALUE. See below for descriptions of some of the useful variables.
1287 Defaults for the options are specified in brackets.
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300 Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
1302 [$ac_default_prefix]
1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 By default, \`make install' will install all the files in
1307 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309 for instance \`--prefix=\$HOME'.
1311 For better control, use the options below.
1313 Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
1338 --build=BUILD configure
for building on BUILD
[guessed
]
1339 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1350 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1351 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1352 --disable-integer-datetimes disable
64-bit integer date
/time support
1353 --enable-nls[=LANGUAGES
] enable Native Language Support
1354 --disable-shared do not build shared libraries
1355 --disable-rpath do not embed shared library search path
in executables
1356 --disable-spinlocks do not use spinlocks
1357 --enable-debug build with debugging symbols
(-g)
1358 --enable-profiling build with profiling enabled
1359 --enable-dtrace build with DTrace support
1360 --disable-segmented-files disable data
file segmentation
(requires largefile support
)
1361 --enable-depend turn on automatic dependency tracking
1362 --enable-cassert enable assertion checks
(for debugging
)
1363 --enable-thread-safety make client libraries thread-safe
1364 --enable-thread-safety-force force thread-safety despite thread
test failure
1365 --disable-float4-byval disable float4 passed by value
1366 --disable-float8-byval disable float8 passed by value
1367 --disable-largefile omit support
for large files
1370 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1371 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1373 --with-includes=DIRS
look for additional header files
in DIRS
1374 --with-libraries=DIRS
look for additional libraries
in DIRS
1375 --with-libs=DIRS alternative spelling of
--with-libraries
1376 --with-pgport=PORTNUM change default port number
[5432]
1377 --with-tcl build Tcl modules
(PL
/Tcl
)
1378 --with-tclconfig=DIR tclConfig.sh is
in DIR
1379 --with-perl build Perl modules
(PL
/Perl
)
1380 --with-python build Python modules
(PL
/Python
)
1381 --with-gssapi build with GSSAPI support
1382 --with-krb5 build with Kerberos
5 support
1383 --with-krb-srvnam=NAME default service principal name
in Kerberos
[postgres
]
1384 --with-pam build with PAM support
1385 --with-ldap build with LDAP support
1386 --with-bonjour build with Bonjour support
1387 --with-openssl build with OpenSSL support
1388 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1389 --with-libedit-preferred prefer BSD Libedit over GNU Readline
1390 --with-ossp-uuid use OSSP UUID library when building contrib
/uuid-ossp
1391 --with-libxml build with XML support
1392 --with-libxslt use XSLT support when building contrib
/xml2
1393 --with-system-tzdata=DIR use system
time zone data
in DIR
1394 --without-zlib do not use Zlib
1395 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1397 Some influential environment variables
:
1398 CC C compiler
command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1401 nonstandard directory
<lib dir
>
1402 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1403 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1404 you have headers
in a nonstandard directory
<include dir
>
1408 location of DocBook stylesheets
1410 Use these variables to override the choices made by
`configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1413 Report bugs to <pgsql-bugs@postgresql.org>.
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" || continue
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1428 # A ".." for each directory in $ac_dir_suffix.
1429 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1430 case $ac_top_builddir_sub in
1431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1441 .) # We are building in place.
1443 ac_top_srcdir=$ac_top_builddir_sub
1444 ac_abs_top_srcdir=$ac_pwd ;;
1445 [\\/]* | ?:[\\/]* ) # Absolute name.
1446 ac_srcdir=$srcdir$ac_dir_suffix;
1447 ac_top_srcdir=$srcdir
1448 ac_abs_top_srcdir=$srcdir ;;
1450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451 ac_top_srcdir=$ac_top_build_prefix$srcdir
1452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456 cd "$ac_dir" || { ac_status=$?; continue; }
1457 # Check for guested configure.
1458 if test -f "$ac_srcdir/configure.gnu"; then
1460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461 elif test -f "$ac_srcdir/configure"; then
1463 $SHELL "$ac_srcdir/configure" --help=recursive
1465 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 cd "$ac_pwd" || { ac_status=$?; break; }
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1474 PostgreSQL configure 8.4devel
1475 generated by GNU Autoconf 2.61
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1482 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1490 It was created by PostgreSQL $as_me 8.4devel, which was
1491 generated by GNU Autoconf 2.61. Invocation command line was
1503 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1504 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1505 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1506 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1507 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1509 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1510 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1512 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1513 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1514 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1515 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1516 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1517 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1518 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_must_keep_next=false
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1562 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 -* ) ac_must_keep_next=true ;;
1583 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log. We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1607 # The following way of writing the cache mishandles newlines in values,
1609 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1610 eval ac_val=\$$ac_var
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1624 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1648 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 echo "$ac_var='\''$ac_val'\''"
1654 if test -n "$ac_subst_files"; then
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1665 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 echo "$ac_var='\''$ac_val'\''"
1672 if test -s confdefs.h; then
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
1738 if test -r "$ac_site_file"; then
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
1746 if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1763 # Check that the precious variables saved in the cache have kept the same
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
1771 case $ac_old_set,$ac_new_set in
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1774 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1778 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1785 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1786 echo "$as_me: former value
: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1788 echo "$as_me: current value
: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804 if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1806 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1807 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848 for ac_dir in config "$srcdir"/config; do
1849 if test -f "$ac_dir/install-sh"; then
1851 ac_install_sh="$ac_aux_dir/install-sh -c"
1853 elif test -f "$ac_dir/install.sh"; then
1855 ac_install_sh="$ac_aux_dir/install.sh -c"
1857 elif test -f "$ac_dir/shtool"; then
1859 ac_install_sh="$ac_aux_dir/shtool install -c"
1863 if test -z "$ac_aux_dir"; then
1864 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1865 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1866 { (exit 1); exit 1; }; }
1869 # These three variables are undocumented and unsupported,
1870 # and are intended to be withdrawn in a future Autoconf release.
1871 # They can cause serious problems if a builder's source tree is in a directory
1872 # whose full name contains unusual characters.
1873 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1874 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1875 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1879 configure_args=$ac_configure_args
1883 cat >>confdefs.h <<_ACEOF
1884 #define PG_VERSION "$PACKAGE_VERSION"
1888 # Make sure we can run config.sub.
1889 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1890 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1891 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1892 { (exit 1); exit 1; }; }
1894 { echo "$as_me:$LINENO: checking build system type" >&5
1895 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1896 if test "${ac_cv_build+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 ac_build_alias=$build_alias
1900 test "x$ac_build_alias" = x &&
1901 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1902 test "x$ac_build_alias" = x &&
1903 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1904 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1905 { (exit 1); exit 1; }; }
1906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1907 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1908 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1909 { (exit 1); exit 1; }; }
1912 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1913 echo "${ECHO_T}$ac_cv_build" >&6; }
1914 case $ac_cv_build in
1916 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1917 echo "$as_me: error: invalid value of canonical build" >&2;}
1918 { (exit 1); exit 1; }; };;
1921 ac_save_IFS=$IFS; IFS='-'
1927 # Remember, the first character of IFS is used to create $*,
1928 # except with old shells:
1931 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1934 { echo "$as_me:$LINENO: checking host system type" >&5
1935 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1936 if test "${ac_cv_host+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test "x$host_alias" = x; then
1940 ac_cv_host=$ac_cv_build
1942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1945 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1950 echo "${ECHO_T}$ac_cv_host" >&6; }
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1954 echo "$as_me: error: invalid value of canonical host" >&2;}
1955 { (exit 1); exit 1; }; };;
1958 ac_save_IFS=$IFS; IFS='-'
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1968 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1973 { echo "$as_me:$LINENO: checking which template to use" >&5
1974 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1977 pgac_args="$pgac_args with_template"
1980 # Check whether --with-template was given.
1981 if test "${with_template+set}" = set; then
1982 withval=$with_template;
1985 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1986 echo "$as_me: error: argument required for --with-template option" >&2;}
1987 { (exit 1); exit 1; }; }
1990 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1991 echo "$as_me: error: argument required for --with-template option" >&2;}
1992 { (exit 1); exit 1; }; }
1997 list) echo; ls "$srcdir/src/template"; exit;;
1998 *) if test -f "$srcdir/src/template/$with_template" ; then
2001 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2002 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2003 { (exit 1); exit 1; }; }
2012 # --with-template not given
2015 aix*) template=aix ;;
2016 bsdi*) template=bsdi ;;
2017 cygwin*) template=cygwin ;;
2018 darwin*) template=darwin ;;
2019 dgux*) template=dgux ;;
2020 freebsd*) template=freebsd ;;
2021 hpux*) template=hpux ;;
2022 irix*) template=irix ;;
2023 linux*|gnu*|k*bsd*-gnu)
2025 mingw*) template=win32 ;;
2026 netbsd*) template=netbsd ;;
2027 nextstep*) template=nextstep ;;
2028 openbsd*) template=openbsd ;;
2029 osf*) template=osf ;;
2030 sco*) template=sco ;;
2031 solaris*) template=solaris ;;
2032 sunos*) template=sunos4 ;;
2034 case $host_vendor in
2035 univel) template=univel ;;
2037 sysv4*) template=svr4 ;;
2038 sysv5*) template=unixware ;;
2039 ultrix*) template=ultrix4 ;;
2042 if test x"$template" = x"" ; then
2043 { { echo "$as_me:$LINENO: error:
2044 *******************************************************************
2045 PostgreSQL has apparently not been ported to your platform yet.
2046 To try a manual configuration, look into the src/template directory
2047 for a similar platform and use the '--with-template=' option.
2049 Please also contact <pgsql-ports@postgresql.org> to see about
2050 rectifying this. Include the above 'checking host system type...'
2052 *******************************************************************
2054 echo "$as_me: error:
2055 *******************************************************************
2056 PostgreSQL has apparently not been ported to your platform yet.
2057 To try a manual configuration, look into the src/template directory
2058 for a similar platform and use the '--with-template=' option.
2060 Please also contact <pgsql-ports@postgresql.org> to see about
2061 rectifying this. Include the above 'checking host system type...'
2063 *******************************************************************
2065 { (exit 1); exit 1; }; }
2073 { echo "$as_me:$LINENO: result: $template" >&5
2074 echo "${ECHO_T}$template" >&6; }
2079 # Initialize default assumption that we do not need separate assembly code
2080 # for TAS (test-and-set). This can be overridden by the template file
2081 # when it's executed.
2088 ## Command line options
2092 # Add non-standard directories to the include path
2095 pgac_args="$pgac_args with_includes"
2098 # Check whether --with-includes was given.
2099 if test "${with_includes+set}" = set; then
2100 withval=$with_includes;
2103 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2104 echo "$as_me: error: argument required for --with-includes option" >&2;}
2105 { (exit 1); exit 1; }; }
2108 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2109 echo "$as_me: error: argument required for --with-includes option" >&2;}
2110 { (exit 1); exit 1; }; }
2123 # Add non-standard directories to the library search path
2126 pgac_args="$pgac_args with_libraries"
2129 # Check whether --with-libraries was given.
2130 if test "${with_libraries+set}" = set; then
2131 withval=$with_libraries;
2134 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2135 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2136 { (exit 1); exit 1; }; }
2139 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2140 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2141 { (exit 1); exit 1; }; }
2144 LIBRARY_DIRS=$withval
2153 pgac_args="$pgac_args with_libs"
2156 # Check whether --with-libs was given.
2157 if test "${with_libs+set}" = set; then
2161 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2162 echo "$as_me: error: argument required for --with-libs option" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2167 echo "$as_me: error: argument required for --with-libs option" >&2;}
2168 { (exit 1); exit 1; }; }
2171 LIBRARY_DIRS=$withval
2181 # 64-bit integer date/time storage: enabled by default.
2183 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2184 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2186 pgac_args="$pgac_args enable_integer_datetimes"
2188 # Check whether --enable-integer-datetimes was given.
2189 if test "${enable_integer_datetimes+set}" = set; then
2190 enableval=$enable_integer_datetimes;
2194 cat >>confdefs.h <<\_ACEOF
2195 #define USE_INTEGER_DATETIMES 1
2203 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2204 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2205 { (exit 1); exit 1; }; }
2210 enable_integer_datetimes=yes
2212 cat >>confdefs.h <<\_ACEOF
2213 #define USE_INTEGER_DATETIMES 1
2219 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2220 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2226 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2227 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2229 pgac_args="$pgac_args enable_nls"
2231 # Check whether --enable-nls was given.
2232 if test "${enable_nls+set}" = set; then
2233 enableval=$enable_nls;
2243 WANTED_LANGUAGES=$enableval
2253 if test "$enable_nls" = yes; then
2255 cat >>confdefs.h <<\_ACEOF
2256 #define ENABLE_NLS 1
2261 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2262 echo "${ECHO_T}$enable_nls" >&6; }
2267 # Default port number (--with-pgport), default 5432
2269 { echo "$as_me:$LINENO: checking for default port number" >&5
2270 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2272 pgac_args="$pgac_args with_pgport"
2275 # Check whether --with-pgport was given.
2276 if test "${with_pgport+set}" = set; then
2277 withval=$with_pgport;
2280 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2281 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2282 { (exit 1); exit 1; }; }
2285 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2286 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2287 { (exit 1); exit 1; }; }
2290 default_port=$withval
2299 { echo "$as_me:$LINENO: result: $default_port" >&5
2300 echo "${ECHO_T}$default_port" >&6; }
2301 # Need both of these because some places want an integer and some a string
2303 cat >>confdefs.h <<_ACEOF
2304 #define DEF_PGPORT ${default_port}
2308 cat >>confdefs.h <<_ACEOF
2309 #define DEF_PGPORT_STR "${default_port}"
2315 # Option to disable shared libraries
2318 pgac_args="$pgac_args enable_shared"
2320 # Check whether --enable-shared was given.
2321 if test "${enable_shared+set}" = set; then
2322 enableval=$enable_shared;
2331 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2332 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2333 { (exit 1); exit 1; }; }
2346 # '-rpath'-like feature can be disabled
2349 pgac_args="$pgac_args enable_rpath"
2351 # Check whether --enable-rpath was given.
2352 if test "${enable_rpath+set}" = set; then
2353 enableval=$enable_rpath;
2362 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2363 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2364 { (exit 1); exit 1; }; }
2380 pgac_args="$pgac_args enable_spinlocks"
2382 # Check whether --enable-spinlocks was given.
2383 if test "${enable_spinlocks+set}" = set; then
2384 enableval=$enable_spinlocks;
2393 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2394 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2395 { (exit 1); exit 1; }; }
2400 enable_spinlocks=yes
2407 # --enable-debug adds -g to compiler flags
2410 pgac_args="$pgac_args enable_debug"
2412 # Check whether --enable-debug was given.
2413 if test "${enable_debug+set}" = set; then
2414 enableval=$enable_debug;
2423 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2424 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2425 { (exit 1); exit 1; }; }
2438 # --enable-profiling enables gcc profiling
2441 pgac_args="$pgac_args enable_profiling"
2443 # Check whether --enable-profiling was given.
2444 if test "${enable_profiling+set}" = set; then
2445 enableval=$enable_profiling;
2454 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2455 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2456 { (exit 1); exit 1; }; }
2472 pgac_args="$pgac_args enable_dtrace"
2474 # Check whether --enable-dtrace was given.
2475 if test "${enable_dtrace+set}" = set; then
2476 enableval=$enable_dtrace;
2480 cat >>confdefs.h <<\_ACEOF
2481 #define ENABLE_DTRACE 1
2484 for ac_prog in dtrace
2486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490 if test "${ac_cv_prog_DTRACE+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 if test -n "$DTRACE"; then
2494 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_DTRACE="$ac_prog"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 DTRACE=$ac_cv_prog_DTRACE
2514 if test -n "$DTRACE"; then
2515 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2516 echo "${ECHO_T}$DTRACE" >&6; }
2518 { echo "$as_me:$LINENO: result: no" >&5
2519 echo "${ECHO_T}no" >&6; }
2523 test -n "$DTRACE" && break
2526 if test -z "$DTRACE"; then
2527 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2528 echo "$as_me: error: dtrace not found" >&2;}
2529 { (exit 1); exit 1; }; }
2537 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2538 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2539 { (exit 1); exit 1; }; }
2552 # Data file segmentation
2555 pgac_args="$pgac_args enable_segmented_files"
2557 # Check whether --enable-segmented-files was given.
2558 if test "${enable_segmented_files+set}" = set; then
2559 enableval=$enable_segmented_files;
2568 { { echo "$as_me:$LINENO: error: no argument expected for --enable-segmented-files option" >&5
2569 echo "$as_me: error: no argument expected for --enable-segmented-files option" >&2;}
2570 { (exit 1); exit 1; }; }
2575 enable_segmented_files=yes
2585 # For historical reasons you can also use --with-CC to specify the C compiler
2586 # to use, although the standard way to do this is to set the CC environment
2589 pgac_args="$pgac_args with_CC"
2592 # Check whether --with-CC was given.
2593 if test "${with_CC+set}" = set; then
2597 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2598 echo "$as_me: error: argument required for --with-CC option" >&2;}
2599 { (exit 1); exit 1; }; }
2602 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2603 echo "$as_me: error: argument required for --with-CC option" >&2;}
2604 { (exit 1); exit 1; }; }
2616 aix) pgac_cc_list="gcc xlc";;
2617 irix) pgac_cc_list="cc";; # no gcc
2618 *) pgac_cc_list="gcc cc";;
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 if test -n "$ac_tool_prefix"; then
2627 for ac_prog in $pgac_cc_list
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 if test -n "$CC"; then
2658 { echo "$as_me:$LINENO: result: $CC" >&5
2659 echo "${ECHO_T}$CC" >&6; }
2661 { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2666 test -n "$CC" && break
2669 if test -z "$CC"; then
2671 for ac_prog in $pgac_cc_list
2673 # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 if test -n "$ac_ct_CC"; then
2681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_ac_ct_CC="$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703 echo "${ECHO_T}$ac_ct_CC" >&6; }
2705 { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2710 test -n "$ac_ct_CC" && break
2713 if test "x$ac_ct_CC" = x; then
2716 case $cross_compiling:$ac_tool_warned in
2718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2719 whose name does not start with the host triplet. If you think this
2720 configuration is useful to you, please write to autoconf@gnu.org." >&5
2721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2724 ac_tool_warned=yes ;;
2731 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2732 See \`config.log
' for more details." >&5
2733 echo "$as_me: error: no acceptable C compiler found in \$PATH
2734 See \`config.log' for more details.
" >&2;}
2735 { (exit 1); exit 1; }; }
2737 # Provide some information about the compiler.
2738 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2739 ac_compiler=`set X $ac_compile; echo $2`
2740 { (ac_try="$ac_compiler --version >&5"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler --version >&5") 2>&5
2748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2749 (exit $ac_status); }
2750 { (ac_try="$ac_compiler -v >&5"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler -v >&5") 2>&5
2758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2759 (exit $ac_status); }
2760 { (ac_try="$ac_compiler -V >&5"
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compiler -V >&5") 2>&5
2768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2769 (exit $ac_status); }
2771 cat >conftest.$ac_ext <<_ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2786 ac_clean_files_save=$ac_clean_files
2787 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2788 # Try to create an executable without -o first, disregard a.out.
2789 # It will help us diagnose broken compilers, and finding out an intuition
2791 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2792 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2793 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2795 # List of possible output files, starting from the most likely.
2796 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2797 # only as a last resort. b.out is created by i960 compilers.
2798 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2800 # The IRIX 6 linker writes into existing files which may not be
2801 # executable, retaining their permissions. Remove them first so a
2802 # subsequent execution test works.
2804 for ac_file in $ac_files
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813 if { (ac_try="$ac_link_default"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_link_default") 2>&5
2821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2822 (exit $ac_status); }; then
2823 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2824 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2825 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2826 # so that the user can short-circuit this test for compilers unknown to
2828 for ac_file in $ac_files ''
2830 test -f "$ac_file" || continue
2832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2835 # We found the default executable, but exeext='' is most
2839 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 # We set ac_cv_exeext here because the later test for it is not
2844 # safe: cross compilers may not add the suffix if given an `-o'
2845 # argument, so we may need to know it at that point already.
2846 # Even if this section looks crufty: it has the advantage of
2853 test "$ac_cv_exeext" = no && ac_cv_exeext=
2859 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2860 echo "${ECHO_T}$ac_file" >&6; }
2861 if test -z "$ac_file"; then
2862 echo "$as_me: failed program was
:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2866 See \
`config.log' for more details." >&5
2867 echo "$as_me: error: C compiler cannot create executables
2868 See \`config.log
' for more details." >&2;}
2869 { (exit 77); exit 77; }; }
2872 ac_exeext=$ac_cv_exeext
2874 # Check that the compiler produces executables we can run. If not, either
2875 # the compiler is broken, or we cross compile.
2876 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2879 # If not cross compiling, check that we can run a simple program.
2880 if test "$cross_compiling" != yes; then
2881 if { ac_try='.
/$ac_file'
2882 { (case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_try") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2893 if test "$cross_compiling" = maybe; then
2896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \
`config.log' for more details." >&5
2899 echo "$as_me: error: cannot run C compiled programs.
2900 If you meant to cross compile, use \`--host'.
2901 See \`config.log' for more details.
" >&2;}
2902 { (exit 1); exit 1; }; }
2906 { echo "$as_me:$LINENO: result
: yes" >&5
2907 echo "${ECHO_T}yes" >&6; }
2909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2910 ac_clean_files=$ac_clean_files_save
2911 # Check that the compiler produces executables we can run. If not, either
2912 # the compiler is broken, or we cross compile.
2913 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2914 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2915 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2916 echo "${ECHO_T}$cross_compiling" >&6; }
2918 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2919 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2920 if { (ac_try="$ac_link"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_link") 2>&5
2928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2929 (exit $ac_status); }; then
2930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2932 # work properly (i.e., refer to `conftest.exe'), while it won't with
2934 for ac_file in conftest.exe conftest conftest.*; do
2935 test -f "$ac_file" || continue
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2945 See \
`config.log' for more details." >&5
2946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2947 See \`config.log
' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2951 rm -f conftest$ac_cv_exeext
2952 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2953 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2955 rm -f conftest.$ac_ext
2956 EXEEXT=$ac_cv_exeext
2958 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2960 if test "${ac_cv_objext+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2978 rm -f conftest.o conftest.obj
2979 if { (ac_try="$ac_compile"
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; then
2989 for ac_file in conftest.o conftest.obj conftest.*; do
2990 test -f "$ac_file" || continue;
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2993 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2998 echo "$as_me: failed program was:" >&5
2999 sed 's
/^
/|
/' conftest.$ac_ext >&5
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details.
" >&5
3003 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3004 See \
`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
3008 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3010 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3011 echo "${ECHO_T}$ac_cv_objext" >&6; }
3012 OBJEXT=$ac_cv_objext
3014 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3015 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3016 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3041 *) ac_try_echo
=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1
>conftest.err
3048 cat conftest.err
>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && {
3051 test -z "$ac_c_werror_flag" ||
3052 test ! -s conftest.err
3053 } && test -s conftest.
$ac_objext; then
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.
$ac_ext >&5
3062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3063 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3066 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3067 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3068 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3069 ac_test_CFLAGS
=${CFLAGS+set}
3070 ac_save_CFLAGS
=$CFLAGS
3071 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3072 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_cc_g+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 ac_save_c_werror_flag
=$ac_c_werror_flag
3077 ac_c_werror_flag
=yes
3080 cat >conftest.
$ac_ext <<_ACEOF
3083 cat confdefs.h
>>conftest.
$ac_ext
3084 cat >>conftest.
$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 rm -f conftest.
$ac_objext
3096 if { (ac_try
="$ac_compile"
3098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } && {
3109 test -z "$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3111 } && test -s conftest.$ac_objext; then
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3137 *) ac_try_echo
=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3142 grep -v '^ *+' conftest.er1
>conftest.err
3144 cat conftest.err
>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } && {
3147 test -z "$ac_c_werror_flag" ||
3148 test ! -s conftest.err
3149 } && test -s conftest.
$ac_objext; then
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.
$ac_ext >&5
3155 ac_c_werror_flag
=$ac_save_c_werror_flag
3157 cat >conftest.
$ac_ext <<_ACEOF
3160 cat confdefs.h
>>conftest.
$ac_ext
3161 cat >>conftest.
$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.
$ac_objext
3173 if { (ac_try
="$ac_compile"
3175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3208 if test "$ac_test_CFLAGS" = set; then
3209 CFLAGS=$ac_save_CFLAGS
3210 elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3217 if test "$GCC" = yes; then
3223 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3224 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_c89+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 ac_cv_prog_cc_c89=no
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3238 #include <sys/types.h>
3239 #include <sys/stat.h>
3240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3241 struct buf { int x; };
3242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243 static char *e (p, i)
3249 static char *f (char * (*g) (char **, int), char **p, ...)
3254 s = g (p, va_arg (v,int));
3259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3260 function prototypes and stuff, but not '\xHH' hex character constants.
3261 These don't provoke an error unfortunately, instead are silently treated
3262 as 'x'. The following induces an error, until -std is added to get
3263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3264 array size at least. It's necessary to write '\x00'==0 to get something
3265 that's true only with -std. */
3266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269 inside strings and character constants. */
3271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273 int test (int i, double x);
3274 struct s1 {int (*f) (int a);};
3275 struct s2 {int (*f) (double a);};
3276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3290 CC="$ac_save_CC $ac_arg"
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3295 *) ac_try_echo
=$ac_try;;
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
3300 grep -v '^ *+' conftest.er1
>conftest.err
3302 cat conftest.err
>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } && {
3305 test -z "$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 } && test -s conftest.
$ac_objext; then
3308 ac_cv_prog_cc_c89
=$ac_arg
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.
$ac_ext >&5
3316 rm -f core conftest.err conftest.
$ac_objext
3317 test "x$ac_cv_prog_cc_c89" != "xno" && break
3319 rm -f conftest.
$ac_ext
3324 case "x$ac_cv_prog_cc_c89" in
3326 { echo "$as_me:$LINENO: result: none needed" >&5
3327 echo "${ECHO_T}none needed" >&6; } ;;
3329 { echo "$as_me:$LINENO: result: unsupported" >&5
3330 echo "${ECHO_T}unsupported" >&6; } ;;
3332 CC
="$CC $ac_cv_prog_cc_c89"
3333 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3334 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3339 ac_cpp
='$CPP $CPPFLAGS'
3340 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3345 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3346 # but has idiosyncrasies of its own. We assume icc will define
3347 # __INTEL_COMPILER regardless of CFLAGS.
3349 cat >conftest.
$ac_ext <<_ACEOF
3352 cat confdefs.h
>>conftest.
$ac_ext
3353 cat >>conftest.
$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3359 #ifndef __INTEL_COMPILER
3366 rm -f conftest.
$ac_objext
3367 if { (ac_try
="$ac_compile"
3369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_compile") 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } && {
3380 test -z "$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 } && test -s conftest.$ac_objext; then
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 . "$srcdir/src/template/$template" || exit
3400 # CFLAGS are selected so:
3401 # If the user specifies something in the environment, that is used.
3402 # else: If the template file set something, that is used.
3403 # else: If the compiler is GCC, then we use -O2.
3404 # else: If the compiler is something else, then we use -0.
3406 if test "$ac_env_CFLAGS_set" = set; then
3407 CFLAGS=$ac_env_CFLAGS_value
3408 elif test "${CFLAGS+set}" = set; then
3409 : # (keep what template set)
3410 elif test "$GCC" = yes; then
3413 # if the user selected debug mode, don't use -O
3414 if test "$enable_debug" != yes; then
3419 # Some versions of GCC support some additional useful warning flags.
3420 # Check whether they are supported, and add them to CFLAGS if so.
3421 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3423 if test "$GCC" = yes -a "$ICC" = no; then
3424 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
3425 # These work in some but not all gcc versions
3426 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3427 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3428 pgac_save_CFLAGS=$CFLAGS
3429 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3449 *) ac_try_echo
=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1
>conftest.err
3456 cat conftest.err
>&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.
$ac_objext; then
3462 { echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6; }
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.
$ac_ext >&5
3468 CFLAGS
="$pgac_save_CFLAGS"
3469 { echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6; }
3473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3475 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3476 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3477 pgac_save_CFLAGS
=$CFLAGS
3478 CFLAGS
="$pgac_save_CFLAGS -Wendif-labels"
3479 cat >conftest.
$ac_ext <<_ACEOF
3482 cat confdefs.h
>>conftest.
$ac_ext
3483 cat >>conftest.
$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3494 rm -f conftest.
$ac_objext
3495 if { (ac_try
="$ac_compile"
3497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } && {
3508 test -z "$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 } && test -s conftest.$ac_objext; then
3511 { echo "$as_me:$LINENO: result: yes" >&5
3512 echo "${ECHO_T}yes" >&6; }
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 CFLAGS="$pgac_save_CFLAGS"
3518 { echo "$as_me:$LINENO: result: no" >&5
3519 echo "${ECHO_T}no" >&6; }
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 # Disable strict-aliasing rules; needed for gcc 3.3+
3525 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3526 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3527 pgac_save_CFLAGS=$CFLAGS
3528 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3544 rm -f conftest.$ac_objext
3545 if { (ac_try="$ac_compile"
3547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3548 *) ac_try_echo
=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_compile") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1
>conftest.err
3555 cat conftest.err
>&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } && {
3558 test -z "$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 } && test -s conftest.
$ac_objext; then
3561 { echo "$as_me:$LINENO: result: yes" >&5
3562 echo "${ECHO_T}yes" >&6; }
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.
$ac_ext >&5
3567 CFLAGS
="$pgac_save_CFLAGS"
3568 { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3574 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3575 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3576 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3577 pgac_save_CFLAGS
=$CFLAGS
3578 CFLAGS
="$pgac_save_CFLAGS -fwrapv"
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 rm -f conftest.
$ac_objext
3595 if { (ac_try
="$ac_compile"
3597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3611 { echo "$as_me:$LINENO: result: yes" >&5
3612 echo "${ECHO_T}yes" >&6; }
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 CFLAGS="$pgac_save_CFLAGS"
3618 { echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6; }
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 elif test "$ICC" = yes; then
3625 # Intel's compiler has a bug/misoptimization in checking for
3626 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3627 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3628 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
3629 pgac_save_CFLAGS=$CFLAGS
3630 CFLAGS="$pgac_save_CFLAGS -mp1"
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3650 *) ac_try_echo
=$ac_try;;
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3655 grep -v '^ *+' conftest.er1
>conftest.err
3657 cat conftest.err
>&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.
$ac_objext; then
3663 { echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6; }
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.
$ac_ext >&5
3669 CFLAGS
="$pgac_save_CFLAGS"
3670 { echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6; }
3674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3676 # Make sure strict aliasing is off (though this is said to be the default)
3677 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3678 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3679 pgac_save_CFLAGS
=$CFLAGS
3680 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3681 cat >conftest.
$ac_ext <<_ACEOF
3684 cat confdefs.h
>>conftest.
$ac_ext
3685 cat >>conftest.
$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3696 rm -f conftest.
$ac_objext
3697 if { (ac_try
="$ac_compile"
3699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 { echo "$as_me:$LINENO: result: yes" >&5
3714 echo "${ECHO_T}yes" >&6; }
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 CFLAGS="$pgac_save_CFLAGS"
3720 { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 elif test x"${CC}" = x"xlc"; then
3727 # AIX xlc has to have strict aliasing turned off too
3728 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3729 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
3730 pgac_save_CFLAGS=$CFLAGS
3731 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3732 cat >conftest.$ac_ext <<_ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3747 rm -f conftest.$ac_objext
3748 if { (ac_try="$ac_compile"
3750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3751 *) ac_try_echo
=$ac_try;;
3753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3754 (eval "$ac_compile") 2>conftest.er1
3756 grep -v '^ *+' conftest.er1
>conftest.err
3758 cat conftest.err
>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && {
3761 test -z "$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 } && test -s conftest.
$ac_objext; then
3764 { echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6; }
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.
$ac_ext >&5
3770 CFLAGS
="$pgac_save_CFLAGS"
3771 { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3779 # supply -g if --enable-debug
3780 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3784 # enable profiling if --enable-profiling
3785 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3786 if test "$GCC" = yes; then
3788 cat >>confdefs.h
<<\_ACEOF
3789 #define PROFILE_PID_DIR 1
3792 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
3794 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3795 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3796 { (exit 1); exit 1; }; }
3800 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3801 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3803 # We already have this in Makefile.win32, but configure needs it too
3804 if test "$PORTNAME" = "win32"; then
3805 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3808 # Check if the compiler still works with the template settings
3809 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3810 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
3811 cat >conftest.
$ac_ext <<_ACEOF
3814 cat confdefs.h
>>conftest.
$ac_ext
3815 cat >>conftest.
$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3826 rm -f conftest.
$ac_objext conftest
$ac_exeext
3827 if { (ac_try
="$ac_link"
3829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_link") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest$ac_exeext &&
3843 $as_test_x conftest$ac_exeext; then
3844 { echo "$as_me:$LINENO: result: yes" >&5
3845 echo "${ECHO_T}yes" >&6; }
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 { echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6; }
3852 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3853 echo "$as_me: error: cannot proceed" >&2;}
3854 { (exit 1); exit 1; }; }
3857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3858 conftest$ac_exeext conftest.$ac_ext
3860 # Defend against gcc -ffast-math
3861 if test "$GCC" = yes; then
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3872 #ifdef __FAST_MATH__
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
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.
$ac_ext >&5
3901 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3902 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3903 { (exit 1); exit 1; }; }
3906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3910 ac_cpp
='$CPP $CPPFLAGS'
3911 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3914 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3916 # On Suns, sometimes $CPP names a directory.
3917 if test -n "$CPP" && test -d "$CPP"; then
3920 if test -z "$CPP"; then
3921 if test "${ac_cv_prog_CPP+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 # Double quotes because CPP needs to be expanded
3925 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3928 for ac_c_preproc_warn_flag
in '' yes
3930 # Use a header file that comes with gcc, so configuring glibc
3931 # with a fresh cross-compiler works.
3932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3933 # <limits.h> exists even on freestanding compilers.
3934 # On the NeXT, cc -E runs the code through the compiler's parser,
3935 # not just through cpp. "Syntax error" is here to catch this case.
3936 cat >conftest.
$ac_ext <<_ACEOF
3939 cat confdefs.h
>>conftest.
$ac_ext
3940 cat >>conftest.
$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3943 # include <limits.h>
3945 # include <assert.h>
3949 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3957 grep -v '^ *+' conftest.er1 >conftest.err
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } >/dev/null && {
3962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3967 echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3970 # Broken: fails on valid input.
3974 rm -f conftest.err conftest.$ac_ext
3976 # OK, works on sane cases. Now check whether nonexistent headers
3977 # can be detected and how.
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 #include <ac_nonexistent.h>
3986 if { (ac_try="$ac_cpp conftest.$ac_ext"
3988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3989 *) ac_try_echo
=$ac_try;;
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1
>conftest.err
3996 cat conftest.err
>&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev
/null
&& {
3999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4002 # Broken: success on invalid input.
4005 echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.
$ac_ext >&5
4008 # Passes both tests.
4013 rm -f conftest.err conftest.
$ac_ext
4016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4017 rm -f conftest.err conftest.
$ac_ext
4018 if $ac_preproc_ok; then
4030 { echo "$as_me:$LINENO: result: $CPP" >&5
4031 echo "${ECHO_T}$CPP" >&6; }
4033 for ac_c_preproc_warn_flag
in '' yes
4035 # Use a header file that comes with gcc, so configuring glibc
4036 # with a fresh cross-compiler works.
4037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038 # <limits.h> exists even on freestanding compilers.
4039 # On the NeXT, cc -E runs the code through the compiler's parser,
4040 # not just through cpp. "Syntax error" is here to catch this case.
4041 cat >conftest.
$ac_ext <<_ACEOF
4044 cat confdefs.h
>>conftest.
$ac_ext
4045 cat >>conftest.
$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4048 # include <limits.h>
4050 # include <assert.h>
4054 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null && {
4067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 # Broken: fails on valid input.
4079 rm -f conftest.err conftest.$ac_ext
4081 # OK, works on sane cases. Now check whether nonexistent headers
4082 # can be detected and how.
4083 cat >conftest.$ac_ext <<_ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 #include <ac_nonexistent.h>
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4094 *) ac_try_echo
=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4099 grep -v '^ *+' conftest.er1
>conftest.err
4101 cat conftest.err
>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev
/null
&& {
4104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4107 # Broken: success on invalid input.
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.
$ac_ext >&5
4113 # Passes both tests.
4118 rm -f conftest.err conftest.
$ac_ext
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.err conftest.
$ac_ext
4123 if $ac_preproc_ok; then
4126 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4127 See \`config.log' for more details." >&5
4128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4129 See \`config.log' for more details." >&2;}
4130 { (exit 1); exit 1; }; }
4134 ac_cpp
='$CPP $CPPFLAGS'
4135 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4141 # Create compiler version string
4142 if test x
"$GCC" = x
"yes" ; then
4143 cc_string
="GCC `${CC} --version | sed q`"
4148 cat >>confdefs.h
<<_ACEOF
4149 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4155 # Set up TAS assembly code if needed; the template file has now had its
4156 # chance to request this.
4158 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4161 if test "$need_tas" = yes ; then
4170 # Automatic dependency tracking
4173 pgac_args
="$pgac_args enable_depend"
4175 # Check whether --enable-depend was given.
4176 if test "${enable_depend+set}" = set; then
4177 enableval
=$enable_depend;
4186 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4187 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4188 { (exit 1); exit 1; }; }
4202 # Enable assert checks
4205 pgac_args
="$pgac_args enable_cassert"
4207 # Check whether --enable-cassert was given.
4208 if test "${enable_cassert+set}" = set; then
4209 enableval
=$enable_cassert;
4213 cat >>confdefs.h
<<\_ACEOF
4214 #define USE_ASSERT_CHECKING 1
4222 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4223 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4224 { (exit 1); exit 1; }; }
4237 # Include directories
4240 IFS
="${IFS}${PATH_SEPARATOR}"
4241 # SRCH_INC comes from the template file
4242 for dir
in $with_includes $SRCH_INC; do
4243 if test -d "$dir"; then
4244 INCLUDES
="$INCLUDES -I$dir"
4246 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4247 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4255 # Library directories
4258 IFS
="${IFS}${PATH_SEPARATOR}"
4259 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4260 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4261 if test -d "$dir"; then
4262 LIBDIRS
="$LIBDIRS -L$dir"
4264 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4265 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4271 # Enable thread-safe client libraries
4273 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4274 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4275 if test "$PORTNAME" != "win32"; then
4277 pgac_args
="$pgac_args enable_thread_safety"
4279 # Check whether --enable-thread-safety was given.
4280 if test "${enable_thread_safety+set}" = set; then
4281 enableval
=$enable_thread_safety;
4290 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4291 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4292 { (exit 1); exit 1; }; }
4297 enable_thread_safety
=no
4303 # Win32 should always use threads
4305 pgac_args
="$pgac_args enable_thread_safety"
4307 # Check whether --enable-thread-safety was given.
4308 if test "${enable_thread_safety+set}" = set; then
4309 enableval
=$enable_thread_safety;
4318 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4319 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4320 { (exit 1); exit 1; }; }
4325 enable_thread_safety
=yes
4333 pgac_args
="$pgac_args enable_thread_safety_force"
4335 # Check whether --enable-thread-safety-force was given.
4336 if test "${enable_thread_safety_force+set}" = set; then
4337 enableval
=$enable_thread_safety_force;
4346 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4347 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4348 { (exit 1); exit 1; }; }
4353 enable_thread_safety_force
=no
4358 if test "$enable_thread_safety" = yes -o \
4359 "$enable_thread_safety_force" = yes; then
4360 enable_thread_safety
="yes" # for 'force'
4362 cat >>confdefs.h
<<\_ACEOF
4363 #define ENABLE_THREAD_SAFETY 1
4367 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4368 echo "${ECHO_T}$enable_thread_safety" >&6; }
4372 # Optionally build Tcl modules (PL/Tcl)
4374 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4375 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4377 pgac_args
="$pgac_args with_tcl"
4380 # Check whether --with-tcl was given.
4381 if test "${with_tcl+set}" = set; then
4391 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4392 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4393 { (exit 1); exit 1; }; }
4403 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4404 echo "${ECHO_T}$with_tcl" >&6; }
4407 # We see if the path to the Tcl/Tk configuration scripts is specified.
4408 # This will override the use of tclsh to find the paths to search.
4411 pgac_args
="$pgac_args with_tclconfig"
4414 # Check whether --with-tclconfig was given.
4415 if test "${with_tclconfig+set}" = set; then
4416 withval
=$with_tclconfig;
4419 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4420 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4421 { (exit 1); exit 1; }; }
4424 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4425 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4426 { (exit 1); exit 1; }; }
4438 # Optionally build Perl modules (PL/Perl)
4440 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4441 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4443 pgac_args
="$pgac_args with_perl"
4446 # Check whether --with-perl was given.
4447 if test "${with_perl+set}" = set; then
4457 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4458 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4459 { (exit 1); exit 1; }; }
4469 { echo "$as_me:$LINENO: result: $with_perl" >&5
4470 echo "${ECHO_T}$with_perl" >&6; }
4474 # Optionally build Python modules (PL/Python)
4476 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4477 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4479 pgac_args
="$pgac_args with_python"
4482 # Check whether --with-python was given.
4483 if test "${with_python+set}" = set; then
4484 withval
=$with_python;
4493 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4494 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4495 { (exit 1); exit 1; }; }
4505 { echo "$as_me:$LINENO: result: $with_python" >&5
4506 echo "${ECHO_T}$with_python" >&6; }
4512 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4513 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4515 pgac_args
="$pgac_args with_gssapi"
4518 # Check whether --with-gssapi was given.
4519 if test "${with_gssapi+set}" = set; then
4520 withval
=$with_gssapi;
4525 cat >>confdefs.h
<<\_ACEOF
4526 #define ENABLE_GSS 1
4529 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4536 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4537 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4538 { (exit 1); exit 1; }; }
4548 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4549 echo "${ECHO_T}$with_gssapi" >&6; }
4555 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4556 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4558 pgac_args
="$pgac_args with_krb5"
4561 # Check whether --with-krb5 was given.
4562 if test "${with_krb5+set}" = set; then
4568 cat >>confdefs.h
<<\_ACEOF
4572 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4579 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4580 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4581 { (exit 1); exit 1; }; }
4591 { echo "$as_me:$LINENO: result: $with_krb5" >&5
4592 echo "${ECHO_T}$with_krb5" >&6; }
4600 # Kerberos configuration parameters
4603 pgac_args
="$pgac_args with_krb_srvnam"
4606 # Check whether --with-krb-srvnam was given.
4607 if test "${with_krb_srvnam+set}" = set; then
4608 withval
=$with_krb_srvnam;
4611 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4612 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4613 { (exit 1); exit 1; }; }
4616 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4617 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4618 { (exit 1); exit 1; }; }
4626 with_krb_srvnam
="postgres"
4631 cat >>confdefs.h
<<_ACEOF
4632 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4640 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4641 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
4643 pgac_args
="$pgac_args with_pam"
4646 # Check whether --with-pam was given.
4647 if test "${with_pam+set}" = set; then
4652 cat >>confdefs.h
<<\_ACEOF
4661 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4662 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4663 { (exit 1); exit 1; }; }
4673 { echo "$as_me:$LINENO: result: $with_pam" >&5
4674 echo "${ECHO_T}$with_pam" >&6; }
4681 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4682 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
4684 pgac_args
="$pgac_args with_ldap"
4687 # Check whether --with-ldap was given.
4688 if test "${with_ldap+set}" = set; then
4693 cat >>confdefs.h
<<\_ACEOF
4702 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4703 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4704 { (exit 1); exit 1; }; }
4714 { echo "$as_me:$LINENO: result: $with_ldap" >&5
4715 echo "${ECHO_T}$with_ldap" >&6; }
4722 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4723 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
4725 pgac_args
="$pgac_args with_bonjour"
4728 # Check whether --with-bonjour was given.
4729 if test "${with_bonjour+set}" = set; then
4730 withval
=$with_bonjour;
4734 cat >>confdefs.h
<<\_ACEOF
4735 #define USE_BONJOUR 1
4743 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4744 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4745 { (exit 1); exit 1; }; }
4755 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
4756 echo "${ECHO_T}$with_bonjour" >&6; }
4763 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4764 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
4766 pgac_args
="$pgac_args with_openssl"
4769 # Check whether --with-openssl was given.
4770 if test "${with_openssl+set}" = set; then
4771 withval
=$with_openssl;
4775 cat >>confdefs.h
<<\_ACEOF
4784 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4785 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4786 { (exit 1); exit 1; }; }
4796 { echo "$as_me:$LINENO: result: $with_openssl" >&5
4797 echo "${ECHO_T}$with_openssl" >&6; }
4805 pgac_args
="$pgac_args with_readline"
4808 # Check whether --with-readline was given.
4809 if test "${with_readline+set}" = set; then
4810 withval
=$with_readline;
4819 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4820 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4821 { (exit 1); exit 1; }; }
4831 # readline on MinGW has problems with backslashes in psql and other bugs.
4832 # This is particularly a problem with non-US code pages.
4833 # Therefore disable its use until we understand the cause. 2004-07-20
4834 if test "$PORTNAME" = "win32"; then
4835 if test "$with_readline" = yes; then
4836 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4837 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4847 pgac_args
="$pgac_args with_libedit_preferred"
4850 # Check whether --with-libedit-preferred was given.
4851 if test "${with_libedit_preferred+set}" = set; then
4852 withval
=$with_libedit_preferred;
4861 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4862 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4863 { (exit 1); exit 1; }; }
4868 with_libedit_preferred
=no
4879 pgac_args
="$pgac_args with_ossp_uuid"
4882 # Check whether --with-ossp-uuid was given.
4883 if test "${with_ossp_uuid+set}" = set; then
4884 withval
=$with_ossp_uuid;
4893 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4894 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4895 { (exit 1); exit 1; }; }
4912 pgac_args
="$pgac_args with_libxml"
4915 # Check whether --with-libxml was given.
4916 if test "${with_libxml+set}" = set; then
4917 withval
=$with_libxml;
4921 cat >>confdefs.h
<<\_ACEOF
4922 #define USE_LIBXML 1
4930 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4931 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4932 { (exit 1); exit 1; }; }
4943 if test "$with_libxml" = yes ; then
4944 for ac_prog
in xml2-config
4946 # Extract the first word of "$ac_prog", so it can be a program name with args.
4947 set dummy
$ac_prog; ac_word
=$2
4948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 if test -n "$XML2_CONFIG"; then
4954 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
4956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir
=.
4961 for ac_exec_ext
in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_XML2_CONFIG
="$ac_prog"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
4974 if test -n "$XML2_CONFIG"; then
4975 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4976 echo "${ECHO_T}$XML2_CONFIG" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4983 test -n "$XML2_CONFIG" && break
4986 if test -n "$XML2_CONFIG"; then
4987 for pgac_option
in `$XML2_CONFIG --cflags`; do
4988 case $pgac_option in
4989 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
4992 for pgac_option
in `$XML2_CONFIG --libs`; do
4993 case $pgac_option in
4994 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5006 pgac_args
="$pgac_args with_libxslt"
5009 # Check whether --with-libxslt was given.
5010 if test "${with_libxslt+set}" = set; then
5011 withval
=$with_libxslt;
5015 cat >>confdefs.h
<<\_ACEOF
5016 #define USE_LIBXSLT 1
5024 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5025 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5026 { (exit 1); exit 1; }; }
5044 pgac_args
="$pgac_args with_system_tzdata"
5047 # Check whether --with-system-tzdata was given.
5048 if test "${with_system_tzdata+set}" = set; then
5049 withval
=$with_system_tzdata;
5052 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5053 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5054 { (exit 1); exit 1; }; }
5057 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5058 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5059 { (exit 1); exit 1; }; }
5075 pgac_args
="$pgac_args with_zlib"
5078 # Check whether --with-zlib was given.
5079 if test "${with_zlib+set}" = set; then
5089 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5090 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5091 { (exit 1); exit 1; }; }
5107 # Assume system is ELF if it predefines __ELF__ as 1,
5108 # otherwise believe host_os based default.
5110 freebsd1
*|freebsd2
*) elf
=no
;;
5111 freebsd3
*|freebsd4
*) elf
=yes;;
5115 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5116 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5117 if test "${ac_cv_path_GREP+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 # Extract the first word of "grep ggrep" to use in msg output
5121 if test -z "$GREP"; then
5122 set dummy
grep ggrep
; ac_prog_name
=$2
5123 if test "${ac_cv_path_GREP+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 ac_path_GREP_found
=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5129 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5132 test -z "$as_dir" && as_dir
=.
5133 for ac_prog
in grep ggrep
; do
5134 for ac_exec_ext
in '' $ac_executable_extensions; do
5135 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5136 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138 # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5141 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5144 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 echo 'GREP' >> "conftest.nl"
5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5152 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5153 ac_count
=`expr $ac_count + 1`
5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_GREP
="$ac_path_GREP"
5157 ac_path_GREP_max
=$ac_count
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5162 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5166 $ac_path_GREP_found && break 3
5176 GREP
="$ac_cv_path_GREP"
5177 if test -z "$GREP"; then
5178 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5179 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5180 { (exit 1); exit 1; }; }
5184 ac_cv_path_GREP
=$GREP
5189 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5190 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5191 GREP
="$ac_cv_path_GREP"
5194 { echo "$as_me:$LINENO: checking for egrep" >&5
5195 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5196 if test "${ac_cv_path_EGREP+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5200 then ac_cv_path_EGREP
="$GREP -E"
5202 # Extract the first word of "egrep" to use in msg output
5203 if test -z "$EGREP"; then
5204 set dummy
egrep; ac_prog_name
=$2
5205 if test "${ac_cv_path_EGREP+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 ac_path_EGREP_found
=false
5209 # Loop through the user's path and test for each of PROGNAME-LIST
5210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5211 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5214 test -z "$as_dir" && as_dir
=.
5215 for ac_prog
in egrep; do
5216 for ac_exec_ext
in '' $ac_executable_extensions; do
5217 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5218 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5219 # Check for GNU ac_path_EGREP and select it if it is found.
5220 # Check for GNU $ac_path_EGREP
5221 case `"$ac_path_EGREP" --version 2>&1` in
5223 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5226 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5229 cat "conftest.in" "conftest.in" >"conftest.tmp"
5230 mv "conftest.tmp" "conftest.in"
5231 cp "conftest.in" "conftest.nl"
5232 echo 'EGREP' >> "conftest.nl"
5233 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5234 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5235 ac_count
=`expr $ac_count + 1`
5236 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5237 # Best one so far, save it but keep looking for a better one
5238 ac_cv_path_EGREP
="$ac_path_EGREP"
5239 ac_path_EGREP_max
=$ac_count
5241 # 10*(2^10) chars as input seems more than enough
5242 test $ac_count -gt 10 && break
5244 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5248 $ac_path_EGREP_found && break 3
5258 EGREP
="$ac_cv_path_EGREP"
5259 if test -z "$EGREP"; then
5260 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5261 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5262 { (exit 1); exit 1; }; }
5266 ac_cv_path_EGREP
=$EGREP
5272 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5273 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5274 EGREP
="$ac_cv_path_EGREP"
5277 cat >conftest.
$ac_ext <<_ACEOF
5280 cat confdefs.h
>>conftest.
$ac_ext
5281 cat >>conftest.
$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "yes" >/dev
/null
2>&1; then
5292 if test "X$elf" = "Xyes" ; then
5306 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5307 LDFLAGS
="$LDFLAGS $LIBDIRS"
5309 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
5310 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
5311 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
5312 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
5317 # Check whether --with-gnu-ld was given.
5318 if test "${with_gnu_ld+set}" = set; then
5319 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5325 if test "$GCC" = yes; then
5326 # Check if gcc -print-prog-name=ld gives a path.
5327 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5328 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5331 # gcc leaves a trailing carriage return which upsets mingw
5332 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5334 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5337 # Accept absolute paths.
5338 [\\/]* |
[A-Za-z
]:[\\/]*)
5339 re_direlt
='/[^/][^/]*/\.\./'
5340 # Canonicalize the path of ld
5341 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5342 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5343 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5345 test -z "$LD" && LD
="$ac_prog"
5348 # If it fails, then pretend we aren't using GCC.
5352 # If it is relative, then search for the first ld in PATH.
5356 elif test "$with_gnu_ld" = yes; then
5357 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5360 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5363 if test "${ac_cv_path_LD+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 if test -z "$LD"; then
5367 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5368 for ac_dir
in $PATH; do
5369 test -z "$ac_dir" && ac_dir
=.
5370 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5371 ac_cv_path_LD
="$ac_dir/$ac_prog"
5372 # Check to see if the program is GNU ld. I'd rather use --version,
5373 # but apparently some GNU ld's only accept -v.
5374 # Break only if it was the GNU/non-GNU ld that we prefer.
5375 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5376 test "$with_gnu_ld" != no
&& break
5378 test "$with_gnu_ld" != yes && break
5384 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5389 if test -n "$LD"; then
5390 { echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6; }
5393 { echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6; }
5396 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5397 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5398 { (exit 1); exit 1; }; }
5399 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5400 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5401 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5405 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5406 ac_cv_prog_gnu_ld
=yes
5408 ac_cv_prog_gnu_ld
=no
5411 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5412 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5413 with_gnu_ld
=$ac_cv_prog_gnu_ld
5418 case $host_os in sysv5
*)
5419 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5420 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5421 if test "${pgac_cv_prog_ld_R+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5426 cat >conftest.
$ac_ext <<_ACEOF
5429 cat confdefs.h
>>conftest.
$ac_ext
5430 cat >>conftest.
$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5441 rm -f conftest.
$ac_objext conftest
$ac_exeext
5442 if { (ac_try
="$ac_link"
5444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_link") 2>conftest.er1
5450 grep -v '^ *+' conftest.er1 >conftest.err
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest$ac_exeext &&
5458 $as_test_x conftest$ac_exeext; then
5459 pgac_cv_prog_ld_R=yes
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 pgac_cv_prog_ld_R=no
5467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5468 conftest$ac_exeext conftest.$ac_ext
5469 LDFLAGS=$pgac_save_LDFLAGS
5472 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5473 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5474 ld_R_works=$pgac_cv_prog_ld_R
5477 if test -n "$ac_tool_prefix"; then
5478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5482 if test "${ac_cv_prog_RANLIB+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 if test -n "$RANLIB"; then
5486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 RANLIB=$ac_cv_prog_RANLIB
5506 if test -n "$RANLIB"; then
5507 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5508 echo "${ECHO_T}$RANLIB" >&6; }
5510 { echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6; }
5516 if test -z "$ac_cv_prog_RANLIB"; then
5517 ac_ct_RANLIB=$RANLIB
5518 # Extract the first word of "ranlib", so it can be a program name with args.
5519 set dummy ranlib; ac_word=$2
5520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5522 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 if test -n "$ac_ct_RANLIB"; then
5526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_ac_ct_RANLIB="ranlib"
5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5546 if test -n "$ac_ct_RANLIB"; then
5547 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5548 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5550 { echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6; }
5554 if test "x$ac_ct_RANLIB" = x; then
5557 case $cross_compiling:$ac_tool_warned in
5559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5560 whose name does not start with the host triplet. If you think this
5561 configuration is useful to you, please write to autoconf@gnu.org." >&5
5562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5563 whose name does not start with the host triplet. If you think this
5564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5565 ac_tool_warned=yes ;;
5567 RANLIB=$ac_ct_RANLIB
5570 RANLIB="$ac_cv_prog_RANLIB"
5574 if test -n "$ac_tool_prefix"; then
5575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}strip; ac_word=$2
5577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5579 if test "${ac_cv_prog_STRIP+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 if test -n "$STRIP"; then
5583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 STRIP=$ac_cv_prog_STRIP
5603 if test -n "$STRIP"; then
5604 { echo "$as_me:$LINENO: result: $STRIP" >&5
5605 echo "${ECHO_T}$STRIP" >&6; }
5607 { echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6; }
5613 if test -z "$ac_cv_prog_STRIP"; then
5615 # Extract the first word of "strip", so it can be a program name with args.
5616 set dummy strip; ac_word=$2
5617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5619 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 if test -n "$ac_ct_STRIP"; then
5623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_ac_ct_STRIP="strip"
5633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5643 if test -n "$ac_ct_STRIP"; then
5644 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5645 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5647 { echo "$as_me:$LINENO: result: no" >&5
5648 echo "${ECHO_T}no" >&6; }
5651 if test "x$ac_ct_STRIP" = x; then
5654 case $cross_compiling:$ac_tool_warned in
5656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5657 whose name does not start with the host triplet. If you think this
5658 configuration is useful to you, please write to autoconf@gnu.org." >&5
5659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet. If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5662 ac_tool_warned=yes ;;
5667 STRIP="$ac_cv_prog_STRIP"
5671 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
5672 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
5673 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
5674 STRIP_STATIC_LIB="$STRIP -x"
5675 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5676 { echo "$as_me:$LINENO: result: yes" >&5
5677 echo "${ECHO_T}yes" >&6; }
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5688 # Extract the first word of "tar", so it can be a program name with args.
5689 set dummy tar; ac_word=$2
5690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5692 if test "${ac_cv_path_TAR+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 if test -n "$TAR"; then
5720 { echo "$as_me:$LINENO: result: $TAR" >&5
5721 echo "${ECHO_T}$TAR" >&6; }
5723 { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5728 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5729 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5731 if test "$LN_S" = "ln -s"; then
5732 { echo "$as_me:$LINENO: result: yes" >&5
5733 echo "${ECHO_T}yes" >&6; }
5735 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5736 echo "${ECHO_T}no, using $LN_S" >&6; }
5739 for ac_prog in gawk mawk nawk awk
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5745 if test "${ac_cv_prog_AWK+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 if test -n "$AWK"; then
5749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758 ac_cv_prog_AWK="$ac_prog"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 if test -n "$AWK"; then
5770 { echo "$as_me:$LINENO: result: $AWK" >&5
5771 echo "${ECHO_T}$AWK" >&6; }
5773 { echo "$as_me:$LINENO: result: no" >&5
5774 echo "${ECHO_T}no" >&6; }
5778 test -n "$AWK" && break
5782 # Let the user override the search
5783 if test -z "$YACC"; then
5784 for ac_prog in 'bison -y'
5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy $ac_prog; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_prog_YACC+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 if test -n "$YACC"; then
5794 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_YACC="$ac_prog"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 YACC=$ac_cv_prog_YACC
5814 if test -n "$YACC"; then
5815 { echo "$as_me:$LINENO: result: $YACC" >&5
5816 echo "${ECHO_T}$YACC" >&6; }
5818 { echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6; }
5823 test -n "$YACC" && break
5828 if test "$YACC"; then
5829 pgac_yacc_version=`$YACC --version 2>/dev
/null |
sed q
`
5830 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
5831 echo "$as_me: using $pgac_yacc_version" >&6;}
5832 if echo "$pgac_yacc_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5834 { echo "$as_me:$LINENO: WARNING:
5835 *** The installed version of Bison is too old to use with PostgreSQL.
5836 *** Bison version 1.875 or later is required." >&5
5837 echo "$as_me: WARNING:
5838 *** The installed version of Bison is too old to use with PostgreSQL.
5839 *** Bison version 1.875 or later is required." >&2;}
5844 if test -z "$YACC"; then
5845 { echo "$as_me:$LINENO: WARNING:
5846 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5847 *** change any of the parser definition files. You can obtain Bison from
5848 *** a GNU mirror site. (If you are using the official distribution of
5849 *** PostgreSQL then you do not need to worry about this, because the Bison
5850 *** output is pre-generated.) To use a different yacc program (possible,
5851 *** but not recommended), set the environment variable YACC before running
5852 *** 'configure'." >&5
5853 echo "$as_me: WARNING:
5854 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5855 *** change any of the parser definition files. You can obtain Bison from
5856 *** a GNU mirror site. (If you are using the official distribution of
5857 *** PostgreSQL then you do not need to worry about this, because the Bison
5858 *** output is pre-generated.) To use a different yacc program (possible,
5859 *** but not recommended), set the environment variable YACC before running
5860 *** 'configure'." >&2;}
5862 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
5865 { echo "$as_me:$LINENO: checking for flex" >&5
5866 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
5867 if test "${pgac_cv_path_flex+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 # Let the user override the test
5871 if test -n "$FLEX"; then
5872 pgac_cv_path_flex=$FLEX
5876 for pgac_dir in $PATH; do
5878 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
5881 for pgac_prog in flex lex; do
5882 pgac_candidate="$pgac_dir/$pgac_prog"
5883 if test -f "$pgac_candidate" \
5884 && $pgac_candidate --version </dev/null >/dev/null 2>&1
5886 echo '%%' > conftest.l
5887 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
5888 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
5889 pgac_broken_flex=$pgac_candidate
5893 pgac_cv_path_flex=$pgac_candidate
5899 rm -f conftest.l lex.yy.c
5900 : ${pgac_cv_path_flex=no}
5904 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
5905 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
5906 if test x"$pgac_cv_path_flex" = x"no"; then
5907 if test -n "$pgac_broken_flex"; then
5908 { echo "$as_me:$LINENO: WARNING:
5909 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5910 *** should get version 2.5.4 or later." >&5
5911 echo "$as_me: WARNING:
5912 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5913 *** should get version 2.5.4 or later." >&2;}
5916 { echo "$as_me:$LINENO: WARNING:
5917 *** Without Flex you will not be able to build PostgreSQL from CVS or
5918 *** change any of the scanner definition files. You can obtain Flex from
5919 *** a GNU mirror site. (If you are using the official distribution of
5920 *** PostgreSQL then you do not need to worry about this because the Flex
5921 *** output is pre-generated.)" >&5
5922 echo "$as_me: WARNING:
5923 *** Without Flex you will not be able to build PostgreSQL from CVS or
5924 *** change any of the scanner definition files. You can obtain Flex from
5925 *** a GNU mirror site. (If you are using the official distribution of
5926 *** PostgreSQL then you do not need to worry about this because the Flex
5927 *** output is pre-generated.)" >&2;}
5931 FLEX=$pgac_cv_path_flex
5932 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
5933 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
5934 echo "$as_me: using $pgac_flex_version" >&6;}
5941 # Extract the first word of "perl", so it can be a program name with args.
5942 set dummy perl; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_path_PERL+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 PERL=$ac_cv_path_PERL
5972 if test -n "$PERL"; then
5973 { echo "$as_me:$LINENO: result: $PERL" >&5
5974 echo "${ECHO_T}$PERL" >&6; }
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5981 if test "$with_perl" = yes; then
5983 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5984 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
5985 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5986 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5987 echo "${ECHO_T}$perl_archlibexp" >&6; }
5988 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5989 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
5990 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5991 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5992 echo "${ECHO_T}$perl_privlibexp" >&6; }
5993 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5994 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
5995 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5996 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5997 echo "${ECHO_T}$perl_useshrplib" >&6; }
5999 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6000 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6001 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6002 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6003 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6004 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6005 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6008 if test "$with_python" = yes; then
6009 # Extract the first word of "python", so it can be a program name with args.
6010 set dummy python; ac_word=$2
6011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6013 if test "${ac_cv_path_PYTHON+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 PYTHON=$ac_cv_path_PYTHON
6040 if test -n "$PYTHON"; then
6041 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6042 echo "${ECHO_T}$PYTHON" >&6; }
6044 { echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6; }
6049 if test x"$PYTHON" = x""; then
6050 { { echo "$as_me:$LINENO: error: Python not found" >&5
6051 echo "$as_me: error: Python not found" >&2;}
6052 { (exit 1); exit 1; }; }
6056 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6057 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6058 if "${PYTHON}" 2>&- -c 'import distutils'
6060 { echo "$as_me:$LINENO: result: yes" >&5
6061 echo "${ECHO_T}yes" >&6; }
6063 { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6065 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6066 echo "$as_me: error: distutils module not found" >&2;}
6067 { (exit 1); exit 1; }; }
6069 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6070 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6071 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6072 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')"`
6073 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6075 # This should be enough of a message.
6076 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6077 echo "${ECHO_T}$python_configdir" >&6; }
6080 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6081 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6083 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6084 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6085 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6086 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6088 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6090 # New way: use the official shared library
6091 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6092 python_libspec="-L${python_libdir} -l${ldlibrary}"
6094 # Old way: use libpython from python_configdir
6095 python_libdir="${python_configdir}"
6096 python_libspec="-L${python_libdir} -lpython${python_version}"
6099 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6101 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6102 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6105 # threaded python is not supported on bsd's
6106 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6107 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6108 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6109 if test "$pythreads" = "1"; then
6110 { echo "$as_me:$LINENO: result: yes" >&5
6111 echo "${ECHO_T}yes" >&6; }
6114 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6115 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6116 { (exit 1); exit 1; }; }
6120 { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6127 # Supply a numeric version string for use by 3rd party add-ons
6128 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6129 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
6131 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6133 cat >>confdefs.h <<_ACEOF
6134 #define PG_VERSION_NUM $PG_VERSION_NUM
6141 ## Most libraries are included only if they demonstrably provide a function
6142 ## we need, but libm is an exception: always include it, because there are
6143 ## too many compilers that play cute optimization games that will break
6144 ## probes for standard functions such as pow().
6148 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6149 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6150 if test "${ac_cv_lib_m_main+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_check_lib_save_LIBS=$LIBS
6155 cat >conftest.$ac_ext <<_ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6171 rm -f conftest.$ac_objext conftest$ac_exeext
6172 if { (ac_try="$ac_link"
6174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6175 *) ac_try_echo
=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_link") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1
>conftest.err
6182 cat conftest.err
>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest
$ac_exeext &&
6188 $as_test_x conftest
$ac_exeext; then
6189 ac_cv_lib_m_main
=yes
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.
$ac_ext >&5
6197 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6198 conftest
$ac_exeext conftest.
$ac_ext
6199 LIBS
=$ac_check_lib_save_LIBS
6201 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6202 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6203 if test $ac_cv_lib_m_main = yes; then
6204 cat >>confdefs.h
<<_ACEOF
6212 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6213 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6214 if test "${ac_cv_search_setproctitle+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 ac_func_search_save_LIBS
=$LIBS
6218 cat >conftest.
$ac_ext <<_ACEOF
6221 cat confdefs.h
>>conftest.
$ac_ext
6222 cat >>conftest.
$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6231 char setproctitle ();
6235 return setproctitle ();
6240 for ac_lib
in '' util
; do
6241 if test -z "$ac_lib"; then
6242 ac_res
="none required"
6245 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6247 rm -f conftest.
$ac_objext conftest
$ac_exeext
6248 if { (ac_try
="$ac_link"
6250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest$ac_exeext &&
6264 $as_test_x conftest$ac_exeext; then
6265 ac_cv_search_setproctitle=$ac_res
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6275 if test "${ac_cv_search_setproctitle+set}" = set; then
6279 if test "${ac_cv_search_setproctitle+set}" = set; then
6282 ac_cv_search_setproctitle=no
6285 LIBS=$ac_func_search_save_LIBS
6287 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6288 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6289 ac_res=$ac_cv_search_setproctitle
6290 if test "$ac_res" != no; then
6291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6295 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6296 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6297 if test "${ac_cv_search_dlopen+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 ac_func_search_save_LIBS=$LIBS
6301 cat >conftest.$ac_ext <<_ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6308 /* Override any GCC internal prototype to avoid an error.
6309 Use char because int might match the return type of a GCC
6310 builtin and then its argument prototype would still apply. */
6323 for ac_lib in '' dl; do
6324 if test -z "$ac_lib"; then
6325 ac_res="none required"
6328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6330 rm -f conftest.$ac_objext conftest$ac_exeext
6331 if { (ac_try="$ac_link"
6333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6334 *) ac_try_echo
=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_link") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1
>conftest.err
6341 cat conftest.err
>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && {
6344 test -z "$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 } && test -s conftest
$ac_exeext &&
6347 $as_test_x conftest
$ac_exeext; then
6348 ac_cv_search_dlopen
=$ac_res
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.
$ac_ext >&5
6356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6358 if test "${ac_cv_search_dlopen+set}" = set; then
6362 if test "${ac_cv_search_dlopen+set}" = set; then
6365 ac_cv_search_dlopen
=no
6368 LIBS
=$ac_func_search_save_LIBS
6370 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6371 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6372 ac_res
=$ac_cv_search_dlopen
6373 if test "$ac_res" != no
; then
6374 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6378 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6379 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6380 if test "${ac_cv_search_socket+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 ac_func_search_save_LIBS
=$LIBS
6384 cat >conftest.
$ac_ext <<_ACEOF
6387 cat confdefs.h
>>conftest.
$ac_ext
6388 cat >>conftest.
$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 /* Override any GCC internal prototype to avoid an error.
6392 Use char because int might match the return type of a GCC
6393 builtin and then its argument prototype would still apply. */
6406 for ac_lib
in '' socket wsock32
; do
6407 if test -z "$ac_lib"; then
6408 ac_res
="none required"
6411 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6413 rm -f conftest.
$ac_objext conftest
$ac_exeext
6414 if { (ac_try
="$ac_link"
6416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_link") 2>conftest.er1
6422 grep -v '^ *+' conftest.er1 >conftest.err
6424 cat conftest.err >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } && {
6427 test -z "$ac_c_werror_flag" ||
6428 test ! -s conftest.err
6429 } && test -s conftest$ac_exeext &&
6430 $as_test_x conftest$ac_exeext; then
6431 ac_cv_search_socket=$ac_res
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6441 if test "${ac_cv_search_socket+set}" = set; then
6445 if test "${ac_cv_search_socket+set}" = set; then
6448 ac_cv_search_socket=no
6451 LIBS=$ac_func_search_save_LIBS
6453 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6454 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6455 ac_res=$ac_cv_search_socket
6456 if test "$ac_res" != no; then
6457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6461 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6462 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6463 if test "${ac_cv_search_shl_load+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 ac_func_search_save_LIBS=$LIBS
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6474 /* Override any GCC internal prototype to avoid an error.
6475 Use char because int might match the return type of a GCC
6476 builtin and then its argument prototype would still apply. */
6489 for ac_lib in '' dld; do
6490 if test -z "$ac_lib"; then
6491 ac_res="none required"
6494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (ac_try="$ac_link"
6499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6500 *) ac_try_echo
=$ac_try;;
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_link") 2>conftest.er1
6505 grep -v '^ *+' conftest.er1
>conftest.err
6507 cat conftest.err
>&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest
$ac_exeext &&
6513 $as_test_x conftest
$ac_exeext; then
6514 ac_cv_search_shl_load
=$ac_res
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.
$ac_ext >&5
6522 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6524 if test "${ac_cv_search_shl_load+set}" = set; then
6528 if test "${ac_cv_search_shl_load+set}" = set; then
6531 ac_cv_search_shl_load
=no
6534 LIBS
=$ac_func_search_save_LIBS
6536 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6537 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6538 ac_res
=$ac_cv_search_shl_load
6539 if test "$ac_res" != no
; then
6540 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6544 # We only use libld in port/dynloader/aix.c
6547 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6548 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6549 if test "${ac_cv_search_ldopen+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 ac_func_search_save_LIBS
=$LIBS
6553 cat >conftest.
$ac_ext <<_ACEOF
6556 cat confdefs.h
>>conftest.
$ac_ext
6557 cat >>conftest.
$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6560 /* Override any GCC internal prototype to avoid an error.
6561 Use char because int might match the return type of a GCC
6562 builtin and then its argument prototype would still apply. */
6575 for ac_lib
in '' ld
; do
6576 if test -z "$ac_lib"; then
6577 ac_res
="none required"
6580 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6582 rm -f conftest.
$ac_objext conftest
$ac_exeext
6583 if { (ac_try
="$ac_link"
6585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_link") 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest$ac_exeext &&
6599 $as_test_x conftest$ac_exeext; then
6600 ac_cv_search_ldopen=$ac_res
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6610 if test "${ac_cv_search_ldopen+set}" = set; then
6614 if test "${ac_cv_search_ldopen+set}" = set; then
6617 ac_cv_search_ldopen=no
6620 LIBS=$ac_func_search_save_LIBS
6622 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6623 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
6624 ac_res=$ac_cv_search_ldopen
6625 if test "$ac_res" != no; then
6626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6632 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6633 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
6634 if test "${ac_cv_search_getopt_long+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 ac_func_search_save_LIBS=$LIBS
6638 cat >conftest.$ac_ext <<_ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6645 /* Override any GCC internal prototype to avoid an error.
6646 Use char because int might match the return type of a GCC
6647 builtin and then its argument prototype would still apply. */
6651 char getopt_long ();
6655 return getopt_long ();
6660 for ac_lib in '' getopt gnugetopt; do
6661 if test -z "$ac_lib"; then
6662 ac_res="none required"
6665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (ac_try="$ac_link"
6670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6671 *) ac_try_echo
=$ac_try;;
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_link") 2>conftest.er1
6676 grep -v '^ *+' conftest.er1
>conftest.err
6678 cat conftest.err
>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 } && test -s conftest
$ac_exeext &&
6684 $as_test_x conftest
$ac_exeext; then
6685 ac_cv_search_getopt_long
=$ac_res
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.
$ac_ext >&5
6693 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6695 if test "${ac_cv_search_getopt_long+set}" = set; then
6699 if test "${ac_cv_search_getopt_long+set}" = set; then
6702 ac_cv_search_getopt_long
=no
6705 LIBS
=$ac_func_search_save_LIBS
6707 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6708 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
6709 ac_res
=$ac_cv_search_getopt_long
6710 if test "$ac_res" != no
; then
6711 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6715 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
6716 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
6717 if test "${ac_cv_search_crypt+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 ac_func_search_save_LIBS
=$LIBS
6721 cat >conftest.
$ac_ext <<_ACEOF
6724 cat confdefs.h
>>conftest.
$ac_ext
6725 cat >>conftest.
$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6728 /* Override any GCC internal prototype to avoid an error.
6729 Use char because int might match the return type of a GCC
6730 builtin and then its argument prototype would still apply. */
6743 for ac_lib
in '' crypt; do
6744 if test -z "$ac_lib"; then
6745 ac_res
="none required"
6748 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6750 rm -f conftest.
$ac_objext conftest
$ac_exeext
6751 if { (ac_try
="$ac_link"
6753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_link") 2>conftest.er1
6759 grep -v '^ *+' conftest.er1 >conftest.err
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest$ac_exeext &&
6767 $as_test_x conftest$ac_exeext; then
6768 ac_cv_search_crypt=$ac_res
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6778 if test "${ac_cv_search_crypt+set}" = set; then
6782 if test "${ac_cv_search_crypt+set}" = set; then
6785 ac_cv_search_crypt=no
6788 LIBS=$ac_func_search_save_LIBS
6790 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6791 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
6792 ac_res=$ac_cv_search_crypt
6793 if test "$ac_res" != no; then
6794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6799 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6800 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
6801 if test "${ac_cv_search_fdatasync+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 ac_func_search_save_LIBS=$LIBS
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6812 /* Override any GCC internal prototype to avoid an error.
6813 Use char because int might match the return type of a GCC
6814 builtin and then its argument prototype would still apply. */
6822 return fdatasync ();
6827 for ac_lib in '' rt posix4; do
6828 if test -z "$ac_lib"; then
6829 ac_res="none required"
6832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6834 rm -f conftest.$ac_objext conftest$ac_exeext
6835 if { (ac_try="$ac_link"
6837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6838 *) ac_try_echo
=$ac_try;;
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_link") 2>conftest.er1
6843 grep -v '^ *+' conftest.er1
>conftest.err
6845 cat conftest.err
>&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest
$ac_exeext &&
6851 $as_test_x conftest
$ac_exeext; then
6852 ac_cv_search_fdatasync
=$ac_res
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.
$ac_ext >&5
6860 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6862 if test "${ac_cv_search_fdatasync+set}" = set; then
6866 if test "${ac_cv_search_fdatasync+set}" = set; then
6869 ac_cv_search_fdatasync
=no
6872 LIBS
=$ac_func_search_save_LIBS
6874 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6875 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
6876 ac_res
=$ac_cv_search_fdatasync
6877 if test "$ac_res" != no
; then
6878 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6883 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
6884 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
6885 if test "${ac_cv_search_shmget+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 ac_func_search_save_LIBS
=$LIBS
6889 cat >conftest.
$ac_ext <<_ACEOF
6892 cat confdefs.h
>>conftest.
$ac_ext
6893 cat >>conftest.
$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6896 /* Override any GCC internal prototype to avoid an error.
6897 Use char because int might match the return type of a GCC
6898 builtin and then its argument prototype would still apply. */
6911 for ac_lib
in '' cygipc
; do
6912 if test -z "$ac_lib"; then
6913 ac_res
="none required"
6916 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6918 rm -f conftest.
$ac_objext conftest
$ac_exeext
6919 if { (ac_try
="$ac_link"
6921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_link") 2>conftest.er1
6927 grep -v '^ *+' conftest.er1 >conftest.err
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && {
6932 test -z "$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6934 } && test -s conftest$ac_exeext &&
6935 $as_test_x conftest$ac_exeext; then
6936 ac_cv_search_shmget=$ac_res
6938 echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6946 if test "${ac_cv_search_shmget+set}" = set; then
6950 if test "${ac_cv_search_shmget+set}" = set; then
6953 ac_cv_search_shmget=no
6956 LIBS=$ac_func_search_save_LIBS
6958 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6959 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
6960 ac_res=$ac_cv_search_shmget
6961 if test "$ac_res" != no; then
6962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6967 if test "$with_readline" = yes; then
6970 if test "${pgac_cv_check_readline+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 pgac_cv_check_readline=no
6974 pgac_save_LIBS=$LIBS
6975 if test x"$with_libedit_preferred" != x"yes"
6976 then READLINE_ORDER="-lreadline -ledit"
6977 else READLINE_ORDER="-ledit -lreadline"
6979 for pgac_rllib in $READLINE_ORDER ; do
6980 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6981 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
6982 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6983 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6984 cat >conftest.$ac_ext <<_ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6991 /* Override any GCC internal prototype to avoid an error.
6992 Use char because int might match the return type of a GCC
6993 builtin and then its argument prototype would still apply. */
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7010 *) ac_try_echo
=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_link") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1
>conftest.err
7017 cat conftest.err
>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest
$ac_exeext &&
7023 $as_test_x conftest
$ac_exeext; then
7025 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7026 # recognize dependent libraries; assume curses is needed if we didn't
7027 # find any dependency.
7029 netbsd
* | openbsd
* | irix
*)
7030 if test x
"$pgac_lib" = x
"" ; then
7031 pgac_lib
=" -lcurses"
7035 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.
$ac_ext >&5
7045 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7046 conftest
$ac_exeext conftest.
$ac_ext
7048 if test "$pgac_cv_check_readline" != no
; then
7049 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7050 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7053 { echo "$as_me:$LINENO: result: no" >&5
7054 echo "${ECHO_T}no" >&6; }
7057 LIBS
=$pgac_save_LIBS
7061 if test "$pgac_cv_check_readline" != no
; then
7062 LIBS
="$pgac_cv_check_readline $LIBS"
7064 cat >>confdefs.h
<<\_ACEOF
7065 #define HAVE_LIBREADLINE 1
7071 if test x
"$pgac_cv_check_readline" = x
"no"; then
7072 { { echo "$as_me:$LINENO: error: readline library not found
7073 If you have readline already installed, see config.log for details on the
7074 failure. It is possible the compiler isn't looking in the proper directory.
7075 Use --without-readline to disable readline support." >&5
7076 echo "$as_me: error: readline library not found
7077 If you have readline already installed, see config.log for details on the
7078 failure. It is possible the compiler isn't looking in the proper directory.
7079 Use --without-readline to disable readline support." >&2;}
7080 { (exit 1); exit 1; }; }
7084 if test "$with_zlib" = yes; then
7086 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7087 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7088 if test "${ac_cv_lib_z_inflate+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 ac_check_lib_save_LIBS
=$LIBS
7093 cat >conftest.
$ac_ext <<_ACEOF
7096 cat confdefs.h
>>conftest.
$ac_ext
7097 cat >>conftest.
$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7100 /* Override any GCC internal prototype to avoid an error.
7101 Use char because int might match the return type of a GCC
7102 builtin and then its argument prototype would still apply. */
7115 rm -f conftest.
$ac_objext conftest
$ac_exeext
7116 if { (ac_try
="$ac_link"
7118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7119 *) ac_try_echo=$ac_try;;
7121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7122 (eval "$ac_link") 2>conftest.er1
7124 grep -v '^ *+' conftest.er1 >conftest.err
7126 cat conftest.err >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest$ac_exeext &&
7132 $as_test_x conftest$ac_exeext; then
7133 ac_cv_lib_z_inflate=yes
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_cv_lib_z_inflate=no
7141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7142 conftest$ac_exeext conftest.$ac_ext
7143 LIBS=$ac_check_lib_save_LIBS
7145 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7146 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7147 if test $ac_cv_lib_z_inflate = yes; then
7148 cat >>confdefs.h <<_ACEOF
7155 { { echo "$as_me:$LINENO: error: zlib library not found
7156 If you have zlib already installed, see config.log for details on the
7157 failure. It is possible the compiler isn't looking in the proper directory.
7158 Use --without-zlib to disable zlib support." >&5
7159 echo "$as_me: error: zlib library not found
7160 If you have zlib already installed, see config.log for details on the
7161 failure. It is possible the compiler isn't looking in the proper directory.
7162 Use --without-zlib to disable zlib support." >&2;}
7163 { (exit 1); exit 1; }; }
7168 if test "$enable_spinlocks" = yes; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define HAVE_SPINLOCKS 1
7175 { echo "$as_me:$LINENO: WARNING:
7176 *** Not using spinlocks will cause poor performance." >&5
7177 echo "$as_me: WARNING:
7178 *** Not using spinlocks will cause poor performance." >&2;}
7181 if test "$with_gssapi" = yes ; then
7182 if test "$PORTNAME" != "win32"; then
7183 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7184 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7185 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 ac_func_search_save_LIBS=$LIBS
7189 cat >conftest.$ac_ext <<_ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7196 /* Override any GCC internal prototype to avoid an error.
7197 Use char because int might match the return type of a GCC
7198 builtin and then its argument prototype would still apply. */
7202 char gss_init_sec_context ();
7206 return gss_init_sec_context ();
7211 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7212 if test -z "$ac_lib"; then
7213 ac_res="none required"
7216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (ac_try="$ac_link"
7221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7222 *) ac_try_echo
=$ac_try;;
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_link") 2>conftest.er1
7227 grep -v '^ *+' conftest.er1
>conftest.err
7229 cat conftest.err
>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest
$ac_exeext &&
7235 $as_test_x conftest
$ac_exeext; then
7236 ac_cv_search_gss_init_sec_context
=$ac_res
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.
$ac_ext >&5
7244 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7246 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7250 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7253 ac_cv_search_gss_init_sec_context
=no
7256 LIBS
=$ac_func_search_save_LIBS
7258 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7259 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7260 ac_res
=$ac_cv_search_gss_init_sec_context
7261 if test "$ac_res" != no
; then
7262 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7265 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7266 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7267 { (exit 1); exit 1; }; }
7271 LIBS
="$LIBS -lgssapi32"
7275 if test "$with_krb5" = yes ; then
7276 if test "$PORTNAME" != "win32"; then
7277 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7278 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7279 if test "${ac_cv_search_com_err+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 ac_func_search_save_LIBS
=$LIBS
7283 cat >conftest.
$ac_ext <<_ACEOF
7286 cat confdefs.h
>>conftest.
$ac_ext
7287 cat >>conftest.
$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7290 /* Override any GCC internal prototype to avoid an error.
7291 Use char because int might match the return type of a GCC
7292 builtin and then its argument prototype would still apply. */
7305 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken' com_err
; do
7306 if test -z "$ac_lib"; then
7307 ac_res
="none required"
7310 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7312 rm -f conftest.
$ac_objext conftest
$ac_exeext
7313 if { (ac_try
="$ac_link"
7315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_link") 2>conftest.er1
7321 grep -v '^ *+' conftest.er1 >conftest.err
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest$ac_exeext &&
7329 $as_test_x conftest$ac_exeext; then
7330 ac_cv_search_com_err=$ac_res
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7340 if test "${ac_cv_search_com_err+set}" = set; then
7344 if test "${ac_cv_search_com_err+set}" = set; then
7347 ac_cv_search_com_err=no
7350 LIBS=$ac_func_search_save_LIBS
7352 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7353 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7354 ac_res=$ac_cv_search_com_err
7355 if test "$ac_res" != no; then
7356 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7359 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7360 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7361 { (exit 1); exit 1; }; }
7364 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7365 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7366 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 ac_func_search_save_LIBS=$LIBS
7370 cat >conftest.$ac_ext <<_ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7377 /* Override any GCC internal prototype to avoid an error.
7378 Use char because int might match the return type of a GCC
7379 builtin and then its argument prototype would still apply. */
7383 char krb5_sendauth ();
7387 return krb5_sendauth ();
7392 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7393 if test -z "$ac_lib"; then
7394 ac_res="none required"
7397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7403 *) ac_try_echo
=$ac_try;;
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_link") 2>conftest.er1
7408 grep -v '^ *+' conftest.er1
>conftest.err
7410 cat conftest.err
>&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_c_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest
$ac_exeext &&
7416 $as_test_x conftest
$ac_exeext; then
7417 ac_cv_search_krb5_sendauth
=$ac_res
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.
$ac_ext >&5
7425 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7427 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7431 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7434 ac_cv_search_krb5_sendauth
=no
7437 LIBS
=$ac_func_search_save_LIBS
7439 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7440 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7441 ac_res
=$ac_cv_search_krb5_sendauth
7442 if test "$ac_res" != no
; then
7443 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7446 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7447 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7448 { (exit 1); exit 1; }; }
7452 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7453 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7454 if test "${ac_cv_search_com_err+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 ac_func_search_save_LIBS
=$LIBS
7458 cat >conftest.
$ac_ext <<_ACEOF
7461 cat confdefs.h
>>conftest.
$ac_ext
7462 cat >>conftest.
$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7465 /* Override any GCC internal prototype to avoid an error.
7466 Use char because int might match the return type of a GCC
7467 builtin and then its argument prototype would still apply. */
7480 for ac_lib
in '' 'comerr32 -lkrb5_32'; do
7481 if test -z "$ac_lib"; then
7482 ac_res
="none required"
7485 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7487 rm -f conftest.
$ac_objext conftest
$ac_exeext
7488 if { (ac_try
="$ac_link"
7490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_link") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest$ac_exeext &&
7504 $as_test_x conftest$ac_exeext; then
7505 ac_cv_search_com_err=$ac_res
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7515 if test "${ac_cv_search_com_err+set}" = set; then
7519 if test "${ac_cv_search_com_err+set}" = set; then
7522 ac_cv_search_com_err=no
7525 LIBS=$ac_func_search_save_LIBS
7527 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7528 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7529 ac_res=$ac_cv_search_com_err
7530 if test "$ac_res" != no; then
7531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7534 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7535 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7536 { (exit 1); exit 1; }; }
7542 if test "$with_openssl" = yes ; then
7543 if test "$PORTNAME" != "win32"; then
7545 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7546 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7547 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_check_lib_save_LIBS=$LIBS
7551 LIBS="-lcrypto $LIBS"
7552 cat >conftest.$ac_ext <<_ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7559 /* Override any GCC internal prototype to avoid an error.
7560 Use char because int might match the return type of a GCC
7561 builtin and then its argument prototype would still apply. */
7565 char CRYPTO_new_ex_data ();
7569 return CRYPTO_new_ex_data ();
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (ac_try="$ac_link"
7577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7578 *) ac_try_echo
=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_link") 2>conftest.er1
7583 grep -v '^ *+' conftest.er1
>conftest.err
7585 cat conftest.err
>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest
$ac_exeext &&
7591 $as_test_x conftest
$ac_exeext; then
7592 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
7600 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7601 conftest
$ac_exeext conftest.
$ac_ext
7602 LIBS
=$ac_check_lib_save_LIBS
7604 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7605 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
7606 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7607 cat >>confdefs.h
<<_ACEOF
7608 #define HAVE_LIBCRYPTO 1
7611 LIBS
="-lcrypto $LIBS"
7614 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7615 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7616 { (exit 1); exit 1; }; }
7620 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7621 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
7622 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 ac_check_lib_save_LIBS
=$LIBS
7627 cat >conftest.
$ac_ext <<_ACEOF
7630 cat confdefs.h
>>conftest.
$ac_ext
7631 cat >>conftest.
$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7634 /* Override any GCC internal prototype to avoid an error.
7635 Use char because int might match the return type of a GCC
7636 builtin and then its argument prototype would still apply. */
7640 char SSL_library_init ();
7644 return SSL_library_init ();
7649 rm -f conftest.
$ac_objext conftest
$ac_exeext
7650 if { (ac_try
="$ac_link"
7652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_link") 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest$ac_exeext &&
7666 $as_test_x conftest$ac_exeext; then
7667 ac_cv_lib_ssl_SSL_library_init=yes
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7672 ac_cv_lib_ssl_SSL_library_init=no
7675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7676 conftest$ac_exeext conftest.$ac_ext
7677 LIBS=$ac_check_lib_save_LIBS
7679 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7680 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
7681 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7682 cat >>confdefs.h <<_ACEOF
7683 #define HAVE_LIBSSL 1
7689 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7690 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7691 { (exit 1); exit 1; }; }
7696 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7697 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
7698 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 ac_check_lib_save_LIBS=$LIBS
7702 LIBS="-leay32 $LIBS"
7703 cat >conftest.$ac_ext <<_ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7710 /* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7716 char CRYPTO_new_ex_data ();
7720 return CRYPTO_new_ex_data ();
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (ac_try="$ac_link"
7728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7729 *) ac_try_echo
=$ac_try;;
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_link") 2>conftest.er1
7734 grep -v '^ *+' conftest.er1
>conftest.err
7736 cat conftest.err
>&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest
$ac_exeext &&
7742 $as_test_x conftest
$ac_exeext; then
7743 ac_cv_lib_eay32_CRYPTO_new_ex_data
=yes
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.
$ac_ext >&5
7748 ac_cv_lib_eay32_CRYPTO_new_ex_data
=no
7751 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7752 conftest
$ac_exeext conftest.
$ac_ext
7753 LIBS
=$ac_check_lib_save_LIBS
7755 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7756 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
7757 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7758 cat >>confdefs.h
<<_ACEOF
7759 #define HAVE_LIBEAY32 1
7762 LIBS
="-leay32 $LIBS"
7765 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7766 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7767 { (exit 1); exit 1; }; }
7771 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7772 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
7773 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 ac_check_lib_save_LIBS
=$LIBS
7777 LIBS
="-lssleay32 $LIBS"
7778 cat >conftest.
$ac_ext <<_ACEOF
7781 cat confdefs.h
>>conftest.
$ac_ext
7782 cat >>conftest.
$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7785 /* Override any GCC internal prototype to avoid an error.
7786 Use char because int might match the return type of a GCC
7787 builtin and then its argument prototype would still apply. */
7791 char SSL_library_init ();
7795 return SSL_library_init ();
7800 rm -f conftest.
$ac_objext conftest
$ac_exeext
7801 if { (ac_try
="$ac_link"
7803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_link") 2>conftest.er1
7809 grep -v '^ *+' conftest.er1 >conftest.err
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest$ac_exeext &&
7817 $as_test_x conftest$ac_exeext; then
7818 ac_cv_lib_ssleay32_SSL_library_init=yes
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 ac_cv_lib_ssleay32_SSL_library_init=no
7826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7827 conftest$ac_exeext conftest.$ac_ext
7828 LIBS=$ac_check_lib_save_LIBS
7830 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7831 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
7832 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7833 cat >>confdefs.h <<_ACEOF
7834 #define HAVE_LIBSSLEAY32 1
7837 LIBS="-lssleay32 $LIBS"
7840 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7841 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7842 { (exit 1); exit 1; }; }
7848 if test "$with_pam" = yes ; then
7850 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7851 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
7852 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 ac_check_lib_save_LIBS=$LIBS
7857 cat >conftest.$ac_ext <<_ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7864 /* Override any GCC internal prototype to avoid an error.
7865 Use char because int might match the return type of a GCC
7866 builtin and then its argument prototype would still apply. */
7874 return pam_start ();
7879 rm -f conftest.$ac_objext conftest$ac_exeext
7880 if { (ac_try="$ac_link"
7882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7883 *) ac_try_echo
=$ac_try;;
7885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886 (eval "$ac_link") 2>conftest.er1
7888 grep -v '^ *+' conftest.er1
>conftest.err
7890 cat conftest.err
>&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && {
7893 test -z "$ac_c_werror_flag" ||
7894 test ! -s conftest.err
7895 } && test -s conftest
$ac_exeext &&
7896 $as_test_x conftest
$ac_exeext; then
7897 ac_cv_lib_pam_pam_start
=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.
$ac_ext >&5
7902 ac_cv_lib_pam_pam_start
=no
7905 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7906 conftest
$ac_exeext conftest.
$ac_ext
7907 LIBS
=$ac_check_lib_save_LIBS
7909 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7910 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
7911 if test $ac_cv_lib_pam_pam_start = yes; then
7912 cat >>confdefs.h
<<_ACEOF
7913 #define HAVE_LIBPAM 1
7919 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7920 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7921 { (exit 1); exit 1; }; }
7926 if test "$with_libxml" = yes ; then
7928 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7929 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
7930 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 ac_check_lib_save_LIBS
=$LIBS
7935 cat >conftest.
$ac_ext <<_ACEOF
7938 cat confdefs.h
>>conftest.
$ac_ext
7939 cat >>conftest.
$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7942 /* Override any GCC internal prototype to avoid an error.
7943 Use char because int might match the return type of a GCC
7944 builtin and then its argument prototype would still apply. */
7948 char xmlSaveToBuffer ();
7952 return xmlSaveToBuffer ();
7957 rm -f conftest.
$ac_objext conftest
$ac_exeext
7958 if { (ac_try
="$ac_link"
7960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>conftest.er1
7966 grep -v '^ *+' conftest.er1 >conftest.err
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest$ac_exeext &&
7974 $as_test_x conftest$ac_exeext; then
7975 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_cv_lib_xml2_xmlSaveToBuffer=no
7983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7984 conftest$ac_exeext conftest.$ac_ext
7985 LIBS=$ac_check_lib_save_LIBS
7987 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7988 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
7989 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_LIBXML2 1
7997 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7998 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7999 { (exit 1); exit 1; }; }
8004 if test "$with_libxslt" = yes ; then
8006 { echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
8007 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6; }
8008 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 ac_check_lib_save_LIBS=$LIBS
8013 cat >conftest.$ac_ext <<_ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8020 /* Override any GCC internal prototype to avoid an error.
8021 Use char because int might match the return type of a GCC
8022 builtin and then its argument prototype would still apply. */
8026 char xsltLibxmlVersion ();
8030 return xsltLibxmlVersion ();
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8039 *) ac_try_echo
=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1
>conftest.err
8046 cat conftest.err
>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest
$ac_exeext &&
8052 $as_test_x conftest
$ac_exeext; then
8053 ac_cv_lib_xslt_xsltLibxmlVersion
=yes
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.
$ac_ext >&5
8058 ac_cv_lib_xslt_xsltLibxmlVersion
=no
8061 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8062 conftest
$ac_exeext conftest.
$ac_ext
8063 LIBS
=$ac_check_lib_save_LIBS
8065 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
8066 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6; }
8067 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
8068 cat >>confdefs.h
<<_ACEOF
8069 #define HAVE_LIBXSLT 1
8075 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8076 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8077 { (exit 1); exit 1; }; }
8082 # for contrib/uuid-ossp
8083 if test "$with_ossp_uuid" = yes ; then
8084 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8085 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8086 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 ac_check_lib_save_LIBS
=$LIBS
8090 LIBS
="-lossp-uuid $LIBS"
8091 cat >conftest.
$ac_ext <<_ACEOF
8094 cat confdefs.h
>>conftest.
$ac_ext
8095 cat >>conftest.
$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8098 /* Override any GCC internal prototype to avoid an error.
8099 Use char because int might match the return type of a GCC
8100 builtin and then its argument prototype would still apply. */
8104 char uuid_export ();
8108 return uuid_export ();
8113 rm -f conftest.
$ac_objext conftest
$ac_exeext
8114 if { (ac_try
="$ac_link"
8116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_link") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest$ac_exeext &&
8130 $as_test_x conftest$ac_exeext; then
8131 ac_cv_lib_ossp_uuid_uuid_export=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_cv_lib_ossp_uuid_uuid_export=no
8139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8140 conftest$ac_exeext conftest.$ac_ext
8141 LIBS=$ac_check_lib_save_LIBS
8143 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8144 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8145 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8146 OSSP_UUID_LIBS="-lossp-uuid"
8148 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8149 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8150 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 ac_check_lib_save_LIBS=$LIBS
8155 cat >conftest.$ac_ext <<_ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8162 /* Override any GCC internal prototype to avoid an error.
8163 Use char because int might match the return type of a GCC
8164 builtin and then its argument prototype would still apply. */
8168 char uuid_export ();
8172 return uuid_export ();
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (ac_try="$ac_link"
8180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8181 *) ac_try_echo
=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_link") 2>conftest.er1
8186 grep -v '^ *+' conftest.er1
>conftest.err
8188 cat conftest.err
>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest
$ac_exeext &&
8194 $as_test_x conftest
$ac_exeext; then
8195 ac_cv_lib_uuid_uuid_export
=yes
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.
$ac_ext >&5
8200 ac_cv_lib_uuid_uuid_export
=no
8203 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8204 conftest
$ac_exeext conftest.
$ac_ext
8205 LIBS
=$ac_check_lib_save_LIBS
8207 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8208 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8209 if test $ac_cv_lib_uuid_uuid_export = yes; then
8210 OSSP_UUID_LIBS
="-luuid"
8212 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8213 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8214 { (exit 1); exit 1; }; }
8227 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8229 if test "${ac_cv_header_stdc+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.
$ac_ext <<_ACEOF
8235 cat confdefs.h
>>conftest.
$ac_ext
8236 cat >>conftest.
$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8251 rm -f conftest.
$ac_objext
8252 if { (ac_try
="$ac_compile"
8254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest.$ac_objext; then
8268 ac_cv_header_stdc=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_cv_header_stdc=no
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 if test $ac_cv_header_stdc = yes; then
8279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8290 $EGREP "memchr" >/dev/null 2>&1; then
8293 ac_cv_header_stdc=no
8299 if test $ac_cv_header_stdc = yes; then
8300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "free" >/dev/null 2>&1; then
8314 ac_cv_header_stdc=no
8320 if test $ac_cv_header_stdc = yes; then
8321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8322 if test "$cross_compiling" = yes; then
8325 cat >conftest.$ac_ext <<_ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8333 #if ((' ' & 0x0FF) == 0x020)
8334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8337 # define ISLOWER(c) \
8338 (('a' <= (c) && (c) <= 'i') \
8339 || ('j' <= (c) && (c) <= 'r') \
8340 || ('s' <= (c) && (c) <= 'z'))
8341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8349 for (i = 0; i < 256; i++)
8350 if (XOR (islower (i), ISLOWER (i))
8351 || toupper (i) != TOUPPER (i))
8356 rm -f conftest$ac_exeext
8357 if { (ac_try="$ac_link"
8359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8360 *) ac_try_echo
=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_link") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8367 { (case "(($ac_try" in
8368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8378 echo "$as_me: program exited with status $ac_status" >&5
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_header_stdc=no
8385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8391 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8392 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8393 if test $ac_cv_header_stdc = yes; then
8395 cat >>confdefs.h <<\_ACEOF
8396 #define STDC_HEADERS 1
8401 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8412 inttypes.h stdint.h unistd.h
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8428 #include <$ac_header>
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8434 *) ac_try_echo
=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8439 grep -v '^ *+' conftest.er1
>conftest.err
8441 cat conftest.err
>&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.
$ac_objext; then
8447 eval "$as_ac_Header=yes"
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.
$ac_ext >&5
8452 eval "$as_ac_Header=no"
8455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8457 ac_res
=`eval echo '${'$as_ac_Header'}'`
8458 { echo "$as_me:$LINENO: result: $ac_res" >&5
8459 echo "${ECHO_T}$ac_res" >&6; }
8460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8461 cat >>confdefs.h
<<_ACEOF
8462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8496 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 utime.h wchar.h wctype.h kernel
/OS.h kernel
/image.h SupportDefs.h
8498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8499 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8502 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_res
=`eval echo '${'$as_ac_Header'}'`
8506 { echo "$as_me:$LINENO: result: $ac_res" >&5
8507 echo "${ECHO_T}$ac_res" >&6; }
8509 # Is the header compilable?
8510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8512 cat >conftest.
$ac_ext <<_ACEOF
8515 cat confdefs.h
>>conftest.
$ac_ext
8516 cat >>conftest.
$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8519 #include <$ac_header>
8521 rm -f conftest.
$ac_objext
8522 if { (ac_try
="$ac_compile"
8524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_header_compiler=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_header_compiler=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8548 echo "${ECHO_T}$ac_header_compiler" >&6; }
8550 # Is the header present?
8551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8553 cat >conftest.$ac_ext <<_ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 #include <$ac_header>
8561 if { (ac_try="$ac_cpp conftest.$ac_ext"
8563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8564 *) ac_try_echo
=$ac_try;;
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8569 grep -v '^ *+' conftest.er1
>conftest.err
8571 cat conftest.err
>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } >/dev
/null
&& {
8574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8575 test ! -s conftest.err
8577 ac_header_preproc
=yes
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.
$ac_ext >&5
8582 ac_header_preproc
=no
8585 rm -f conftest.err conftest.
$ac_ext
8586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8587 echo "${ECHO_T}$ac_header_preproc" >&6; }
8589 # So? What about this header?
8590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8596 ac_header_preproc
=yes
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8612 ## ---------------------------------------- ##
8613 ## Report this to pgsql-bugs@postgresql.org ##
8614 ## ---------------------------------------- ##
8616 ) |
sed "s/^/$as_me: WARNING: /" >&2
8619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8621 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 eval "$as_ac_Header=\$ac_header_preproc"
8626 ac_res
=`eval echo '${'$as_ac_Header'}'`
8627 { echo "$as_me:$LINENO: result: $ac_res" >&5
8628 echo "${ECHO_T}$ac_res" >&6; }
8631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8632 cat >>confdefs.h
<<_ACEOF
8633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8641 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8642 # netinet/in.h is included first.
8644 for ac_header
in netinet
/in.h
8646 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8647 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 ac_res
=`eval echo '${'$as_ac_Header'}'`
8654 { echo "$as_me:$LINENO: result: $ac_res" >&5
8655 echo "${ECHO_T}$ac_res" >&6; }
8657 # Is the header compilable?
8658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8660 cat >conftest.
$ac_ext <<_ACEOF
8663 cat confdefs.h
>>conftest.
$ac_ext
8664 cat >>conftest.
$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
8667 #include <$ac_header>
8669 rm -f conftest.
$ac_objext
8670 if { (ac_try
="$ac_compile"
8672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 ac_header_compiler=yes
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_header_compiler=no
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8696 echo "${ECHO_T}$ac_header_compiler" >&6; }
8698 # Is the header present?
8699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8701 cat >conftest.$ac_ext <<_ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <$ac_header>
8709 if { (ac_try="$ac_cpp conftest.$ac_ext"
8711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8712 *) ac_try_echo
=$ac_try;;
8714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8717 grep -v '^ *+' conftest.er1
>conftest.err
8719 cat conftest.err
>&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } >/dev
/null
&& {
8722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8725 ac_header_preproc
=yes
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.
$ac_ext >&5
8730 ac_header_preproc
=no
8733 rm -f conftest.err conftest.
$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735 echo "${ECHO_T}$ac_header_preproc" >&6; }
8737 # So? What about this header?
8738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc
=yes
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8760 ## ---------------------------------------- ##
8761 ## Report this to pgsql-bugs@postgresql.org ##
8762 ## ---------------------------------------- ##
8764 ) |
sed "s/^/$as_me: WARNING: /" >&2
8767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 eval "$as_ac_Header=\$ac_header_preproc"
8774 ac_res
=`eval echo '${'$as_ac_Header'}'`
8775 { echo "$as_me:$LINENO: result: $ac_res" >&5
8776 echo "${ECHO_T}$ac_res" >&6; }
8779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8780 cat >>confdefs.h
<<_ACEOF
8781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8789 for ac_header
in netinet
/tcp.h
8791 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8794 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 cat >conftest.
$ac_ext <<_ACEOF
8800 cat confdefs.h
>>conftest.
$ac_ext
8801 cat >>conftest.
$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8804 #ifdef HAVE_NETINET_IN_H
8805 #include <netinet/in.h>
8809 #include <$ac_header>
8811 rm -f conftest.
$ac_objext
8812 if { (ac_try
="$ac_compile"
8814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.$ac_objext; then
8828 eval "$as_ac_Header=yes"
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 eval "$as_ac_Header=no"
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 ac_res=`eval echo '${'$as_ac_Header'}'`
8839 { echo "$as_me:$LINENO: result: $ac_res" >&5
8840 echo "${ECHO_T}$ac_res" >&6; }
8841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8842 cat >>confdefs.h <<_ACEOF
8843 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8851 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8853 for ac_header in readline/readline.h
8855 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_res=`eval echo '${'$as_ac_Header'}'`
8863 { echo "$as_me:$LINENO: result: $ac_res" >&5
8864 echo "${ECHO_T}$ac_res" >&6; }
8866 # Is the header compilable?
8867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8869 cat >conftest.$ac_ext <<_ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 $ac_includes_default
8876 #include <$ac_header>
8878 rm -f conftest.$ac_objext
8879 if { (ac_try="$ac_compile"
8881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8882 *) ac_try_echo
=$ac_try;;
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1
>conftest.err
8889 cat conftest.err
>&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.
$ac_objext; then
8895 ac_header_compiler
=yes
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 ac_header_compiler
=no
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8905 echo "${ECHO_T}$ac_header_compiler" >&6; }
8907 # Is the header present?
8908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8910 cat >conftest.
$ac_ext <<_ACEOF
8913 cat confdefs.h
>>conftest.
$ac_ext
8914 cat >>conftest.
$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 #include <$ac_header>
8918 if { (ac_try
="$ac_cpp conftest.$ac_ext"
8920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } >/dev/null && {
8931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8934 ac_header_preproc=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_header_preproc=no
8942 rm -f conftest.err conftest.$ac_ext
8943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8944 echo "${ECHO_T}$ac_header_preproc" >&6; }
8946 # So? What about this header?
8947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8953 ac_header_preproc=yes
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8969 ## ---------------------------------------- ##
8970 ## Report this to pgsql-bugs@postgresql.org ##
8971 ## ---------------------------------------- ##
8973 ) | sed "s/^/$as_me: WARNING: /" >&2
8976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 eval "$as_ac_Header=\$ac_header_preproc"
8983 ac_res=`eval echo '${'$as_ac_Header'}'`
8984 { echo "$as_me:$LINENO: result: $ac_res" >&5
8985 echo "${ECHO_T}$ac_res" >&6; }
8988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8989 cat >>confdefs.h <<_ACEOF
8990 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8995 for ac_header in readline.h
8997 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 ac_res=`eval echo '${'$as_ac_Header'}'`
9005 { echo "$as_me:$LINENO: result: $ac_res" >&5
9006 echo "${ECHO_T}$ac_res" >&6; }
9008 # Is the header compilable?
9009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9011 cat >conftest.$ac_ext <<_ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 $ac_includes_default
9018 #include <$ac_header>
9020 rm -f conftest.$ac_objext
9021 if { (ac_try="$ac_compile"
9023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9024 *) ac_try_echo
=$ac_try;;
9026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_compile") 2>conftest.er1
9029 grep -v '^ *+' conftest.er1
>conftest.err
9031 cat conftest.err
>&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest.
$ac_objext; then
9037 ac_header_compiler
=yes
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.
$ac_ext >&5
9042 ac_header_compiler
=no
9045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9047 echo "${ECHO_T}$ac_header_compiler" >&6; }
9049 # Is the header present?
9050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9052 cat >conftest.
$ac_ext <<_ACEOF
9055 cat confdefs.h
>>conftest.
$ac_ext
9056 cat >>conftest.
$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 #include <$ac_header>
9060 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9068 grep -v '^ *+' conftest.er1 >conftest.err
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } >/dev/null && {
9073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9074 test ! -s conftest.err
9076 ac_header_preproc=yes
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 ac_header_preproc=no
9084 rm -f conftest.err conftest.$ac_ext
9085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086 echo "${ECHO_T}$ac_header_preproc" >&6; }
9088 # So? What about this header?
9089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9095 ac_header_preproc=yes
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9111 ## ---------------------------------------- ##
9112 ## Report this to pgsql-bugs@postgresql.org ##
9113 ## ---------------------------------------- ##
9115 ) | sed "s/^/$as_me: WARNING: /" >&2
9118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 eval "$as_ac_Header=\$ac_header_preproc"
9125 ac_res=`eval echo '${'$as_ac_Header'}'`
9126 { echo "$as_me:$LINENO: result: $ac_res" >&5
9127 echo "${ECHO_T}$ac_res" >&6; }
9130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9131 cat >>confdefs.h <<_ACEOF
9132 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9136 { { echo "$as_me:$LINENO: error: readline header not found
9137 If you have readline already installed, see config.log for details on the
9138 failure. It is possible the compiler isn't looking in the proper directory.
9139 Use --without-readline to disable readline support." >&5
9140 echo "$as_me: error: readline header not found
9141 If you have readline already installed, see config.log for details on the
9142 failure. It is possible the compiler isn't looking in the proper directory.
9143 Use --without-readline to disable readline support." >&2;}
9144 { (exit 1); exit 1; }; }
9154 for ac_header in readline/history.h
9156 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 ac_res=`eval echo '${'$as_ac_Header'}'`
9164 { echo "$as_me:$LINENO: result: $ac_res" >&5
9165 echo "${ECHO_T}$ac_res" >&6; }
9167 # Is the header compilable?
9168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9170 cat >conftest.$ac_ext <<_ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 $ac_includes_default
9177 #include <$ac_header>
9179 rm -f conftest.$ac_objext
9180 if { (ac_try="$ac_compile"
9182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9183 *) ac_try_echo
=$ac_try;;
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_compile") 2>conftest.er1
9188 grep -v '^ *+' conftest.er1
>conftest.err
9190 cat conftest.err
>&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } && {
9193 test -z "$ac_c_werror_flag" ||
9194 test ! -s conftest.err
9195 } && test -s conftest.
$ac_objext; then
9196 ac_header_compiler
=yes
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.
$ac_ext >&5
9201 ac_header_compiler
=no
9204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9206 echo "${ECHO_T}$ac_header_compiler" >&6; }
9208 # Is the header present?
9209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9211 cat >conftest.
$ac_ext <<_ACEOF
9214 cat confdefs.h
>>conftest.
$ac_ext
9215 cat >>conftest.
$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <$ac_header>
9219 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9227 grep -v '^ *+' conftest.er1 >conftest.err
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } >/dev/null && {
9232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9235 ac_header_preproc=yes
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.$ac_ext >&5
9240 ac_header_preproc=no
9243 rm -f conftest.err conftest.$ac_ext
9244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9245 echo "${ECHO_T}$ac_header_preproc" >&6; }
9247 # So? What about this header?
9248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9254 ac_header_preproc=yes
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9270 ## ---------------------------------------- ##
9271 ## Report this to pgsql-bugs@postgresql.org ##
9272 ## ---------------------------------------- ##
9274 ) | sed "s/^/$as_me: WARNING: /" >&2
9277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 eval "$as_ac_Header=\$ac_header_preproc"
9284 ac_res=`eval echo '${'$as_ac_Header'}'`
9285 { echo "$as_me:$LINENO: result: $ac_res" >&5
9286 echo "${ECHO_T}$ac_res" >&6; }
9289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9290 cat >>confdefs.h <<_ACEOF
9291 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9296 for ac_header in history.h
9298 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 ac_res=`eval echo '${'$as_ac_Header'}'`
9306 { echo "$as_me:$LINENO: result: $ac_res" >&5
9307 echo "${ECHO_T}$ac_res" >&6; }
9309 # Is the header compilable?
9310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9312 cat >conftest.$ac_ext <<_ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 #include <$ac_header>
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9325 *) ac_try_echo
=$ac_try;;
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9330 grep -v '^ *+' conftest.er1
>conftest.err
9332 cat conftest.err
>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.
$ac_objext; then
9338 ac_header_compiler
=yes
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.
$ac_ext >&5
9343 ac_header_compiler
=no
9346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6; }
9350 # Is the header present?
9351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9353 cat >conftest.
$ac_ext <<_ACEOF
9356 cat confdefs.h
>>conftest.
$ac_ext
9357 cat >>conftest.
$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 #include <$ac_header>
9361 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null && {
9374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9377 ac_header_preproc=yes
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_header_preproc=no
9385 rm -f conftest.err conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6; }
9389 # So? What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396 ac_header_preproc=yes
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9412 ## ---------------------------------------- ##
9413 ## Report this to pgsql-bugs@postgresql.org ##
9414 ## ---------------------------------------- ##
9416 ) | sed "s/^/$as_me: WARNING: /" >&2
9419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 eval "$as_ac_Header=\$ac_header_preproc"
9426 ac_res=`eval echo '${'$as_ac_Header'}'`
9427 { echo "$as_me:$LINENO: result: $ac_res" >&5
9428 echo "${ECHO_T}$ac_res" >&6; }
9431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9432 cat >>confdefs.h <<_ACEOF
9433 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9437 { { echo "$as_me:$LINENO: error: history header not found
9438 If you have readline already installed, see config.log for details on the
9439 failure. It is possible the compiler isn't looking in the proper directory.
9440 Use --without-readline to disable readline support." >&5
9441 echo "$as_me: error: history header not found
9442 If you have readline already installed, see config.log for details on the
9443 failure. It is possible the compiler isn't looking in the proper directory.
9444 Use --without-readline to disable readline support." >&2;}
9445 { (exit 1); exit 1; }; }
9456 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9457 # Some installations of libedit usurp /usr/include/readline/, which seems
9458 # bad practice, since in combined installations readline will have its headers
9459 # there. We might have to resort to AC_EGREP checks to make sure we found
9460 # the proper header...
9462 for ac_header in editline/readline.h
9464 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 ac_res=`eval echo '${'$as_ac_Header'}'`
9472 { echo "$as_me:$LINENO: result: $ac_res" >&5
9473 echo "${ECHO_T}$ac_res" >&6; }
9475 # Is the header compilable?
9476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9478 cat >conftest.$ac_ext <<_ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9484 $ac_includes_default
9485 #include <$ac_header>
9487 rm -f conftest.$ac_objext
9488 if { (ac_try="$ac_compile"
9490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9491 *) ac_try_echo
=$ac_try;;
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_compile") 2>conftest.er1
9496 grep -v '^ *+' conftest.er1
>conftest.err
9498 cat conftest.err
>&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } && {
9501 test -z "$ac_c_werror_flag" ||
9502 test ! -s conftest.err
9503 } && test -s conftest.
$ac_objext; then
9504 ac_header_compiler
=yes
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.
$ac_ext >&5
9509 ac_header_compiler
=no
9512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9514 echo "${ECHO_T}$ac_header_compiler" >&6; }
9516 # Is the header present?
9517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9519 cat >conftest.
$ac_ext <<_ACEOF
9522 cat confdefs.h
>>conftest.
$ac_ext
9523 cat >>conftest.
$ac_ext <<_ACEOF
9524 /* end confdefs.h. */
9525 #include <$ac_header>
9527 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9535 grep -v '^ *+' conftest.er1 >conftest.err
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } >/dev/null && {
9540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9541 test ! -s conftest.err
9543 ac_header_preproc=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_header_preproc=no
9551 rm -f conftest.err conftest.$ac_ext
9552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9553 echo "${ECHO_T}$ac_header_preproc" >&6; }
9555 # So? What about this header?
9556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9562 ac_header_preproc=yes
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9578 ## ---------------------------------------- ##
9579 ## Report this to pgsql-bugs@postgresql.org ##
9580 ## ---------------------------------------- ##
9582 ) | sed "s/^/$as_me: WARNING: /" >&2
9585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 eval "$as_ac_Header=\$ac_header_preproc"
9592 ac_res=`eval echo '${'$as_ac_Header'}'`
9593 { echo "$as_me:$LINENO: result: $ac_res" >&5
9594 echo "${ECHO_T}$ac_res" >&6; }
9597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9598 cat >>confdefs.h <<_ACEOF
9599 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9604 for ac_header in readline.h
9606 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 ac_res=`eval echo '${'$as_ac_Header'}'`
9614 { echo "$as_me:$LINENO: result: $ac_res" >&5
9615 echo "${ECHO_T}$ac_res" >&6; }
9617 # Is the header compilable?
9618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9620 cat >conftest.$ac_ext <<_ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 $ac_includes_default
9627 #include <$ac_header>
9629 rm -f conftest.$ac_objext
9630 if { (ac_try="$ac_compile"
9632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9633 *) ac_try_echo
=$ac_try;;
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_compile") 2>conftest.er1
9638 grep -v '^ *+' conftest.er1
>conftest.err
9640 cat conftest.err
>&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest.
$ac_objext; then
9646 ac_header_compiler
=yes
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.
$ac_ext >&5
9651 ac_header_compiler
=no
9654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9656 echo "${ECHO_T}$ac_header_compiler" >&6; }
9658 # Is the header present?
9659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9661 cat >conftest.
$ac_ext <<_ACEOF
9664 cat confdefs.h
>>conftest.
$ac_ext
9665 cat >>conftest.
$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667 #include <$ac_header>
9669 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9677 grep -v '^ *+' conftest.er1 >conftest.err
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } >/dev/null && {
9682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9685 ac_header_preproc=yes
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 ac_header_preproc=no
9693 rm -f conftest.err conftest.$ac_ext
9694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 echo "${ECHO_T}$ac_header_preproc" >&6; }
9697 # So? What about this header?
9698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9704 ac_header_preproc=yes
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9720 ## ---------------------------------------- ##
9721 ## Report this to pgsql-bugs@postgresql.org ##
9722 ## ---------------------------------------- ##
9724 ) | sed "s/^/$as_me: WARNING: /" >&2
9727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 eval "$as_ac_Header=\$ac_header_preproc"
9734 ac_res=`eval echo '${'$as_ac_Header'}'`
9735 { echo "$as_me:$LINENO: result: $ac_res" >&5
9736 echo "${ECHO_T}$ac_res" >&6; }
9739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9740 cat >>confdefs.h <<_ACEOF
9741 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9746 for ac_header in readline/readline.h
9748 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 ac_res=`eval echo '${'$as_ac_Header'}'`
9756 { echo "$as_me:$LINENO: result: $ac_res" >&5
9757 echo "${ECHO_T}$ac_res" >&6; }
9759 # Is the header compilable?
9760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9762 cat >conftest.$ac_ext <<_ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9768 $ac_includes_default
9769 #include <$ac_header>
9771 rm -f conftest.$ac_objext
9772 if { (ac_try="$ac_compile"
9774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9775 *) ac_try_echo
=$ac_try;;
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_compile") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1
>conftest.err
9782 cat conftest.err
>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest.
$ac_objext; then
9788 ac_header_compiler
=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.
$ac_ext >&5
9793 ac_header_compiler
=no
9796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9798 echo "${ECHO_T}$ac_header_compiler" >&6; }
9800 # Is the header present?
9801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9803 cat >conftest.
$ac_ext <<_ACEOF
9806 cat confdefs.h
>>conftest.
$ac_ext
9807 cat >>conftest.
$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 #include <$ac_header>
9811 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1 >conftest.err
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } >/dev/null && {
9824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9827 ac_header_preproc=yes
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 ac_header_preproc=no
9835 rm -f conftest.err conftest.$ac_ext
9836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9837 echo "${ECHO_T}$ac_header_preproc" >&6; }
9839 # So? What about this header?
9840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9846 ac_header_preproc=yes
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9862 ## ---------------------------------------- ##
9863 ## Report this to pgsql-bugs@postgresql.org ##
9864 ## ---------------------------------------- ##
9866 ) | sed "s/^/$as_me: WARNING: /" >&2
9869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 eval "$as_ac_Header=\$ac_header_preproc"
9876 ac_res=`eval echo '${'$as_ac_Header'}'`
9877 { echo "$as_me:$LINENO: result: $ac_res" >&5
9878 echo "${ECHO_T}$ac_res" >&6; }
9881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9882 cat >>confdefs.h <<_ACEOF
9883 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9887 { { echo "$as_me:$LINENO: error: readline header not found
9888 If you have libedit already installed, see config.log for details on the
9889 failure. It is possible the compiler isn't looking in the proper directory.
9890 Use --without-readline to disable libedit support." >&5
9891 echo "$as_me: error: readline header not found
9892 If you have libedit already installed, see config.log for details on the
9893 failure. It is possible the compiler isn't looking in the proper directory.
9894 Use --without-readline to disable libedit support." >&2;}
9895 { (exit 1); exit 1; }; }
9908 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9909 # not be there at all. Hence, don't complain if not found. We must check
9910 # though, since in yet other versions it is an independent header.
9912 for ac_header in editline/history.h
9914 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 ac_res=`eval echo '${'$as_ac_Header'}'`
9922 { echo "$as_me:$LINENO: result: $ac_res" >&5
9923 echo "${ECHO_T}$ac_res" >&6; }
9925 # Is the header compilable?
9926 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9928 cat >conftest.$ac_ext <<_ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 $ac_includes_default
9935 #include <$ac_header>
9937 rm -f conftest.$ac_objext
9938 if { (ac_try="$ac_compile"
9940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9941 *) ac_try_echo
=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_compile") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1
>conftest.err
9948 cat conftest.err
>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest.
$ac_objext; then
9954 ac_header_compiler
=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.
$ac_ext >&5
9959 ac_header_compiler
=no
9962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9964 echo "${ECHO_T}$ac_header_compiler" >&6; }
9966 # Is the header present?
9967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9969 cat >conftest.
$ac_ext <<_ACEOF
9972 cat confdefs.h
>>conftest.
$ac_ext
9973 cat >>conftest.
$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 #include <$ac_header>
9977 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } >/dev/null && {
9990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9993 ac_header_preproc=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_header_preproc=no
10001 rm -f conftest.err conftest.$ac_ext
10002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10003 echo "${ECHO_T}$ac_header_preproc" >&6; }
10005 # So? What about this header?
10006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10012 ac_header_preproc=yes
10015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10028 ## ---------------------------------------- ##
10029 ## Report this to pgsql-bugs@postgresql.org ##
10030 ## ---------------------------------------- ##
10032 ) | sed "s/^/$as_me: WARNING: /" >&2
10035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 eval "$as_ac_Header=\$ac_header_preproc"
10042 ac_res=`eval echo '${'$as_ac_Header'}'`
10043 { echo "$as_me:$LINENO: result: $ac_res" >&5
10044 echo "${ECHO_T}$ac_res" >&6; }
10047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10048 cat >>confdefs.h <<_ACEOF
10049 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10054 for ac_header in history.h
10056 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 ac_res=`eval echo '${'$as_ac_Header'}'`
10064 { echo "$as_me:$LINENO: result: $ac_res" >&5
10065 echo "${ECHO_T}$ac_res" >&6; }
10067 # Is the header compilable?
10068 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10070 cat >conftest.$ac_ext <<_ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 $ac_includes_default
10077 #include <$ac_header>
10079 rm -f conftest.$ac_objext
10080 if { (ac_try="$ac_compile"
10081 case "(($ac_try" in
10082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10083 *) ac_try_echo
=$ac_try;;
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10088 grep -v '^ *+' conftest.er1
>conftest.err
10090 cat conftest.err
>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.
$ac_objext; then
10096 ac_header_compiler
=yes
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.
$ac_ext >&5
10101 ac_header_compiler
=no
10104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10106 echo "${ECHO_T}$ac_header_compiler" >&6; }
10108 # Is the header present?
10109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10111 cat >conftest.
$ac_ext <<_ACEOF
10114 cat confdefs.h
>>conftest.
$ac_ext
10115 cat >>conftest.
$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 #include <$ac_header>
10119 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10120 case "(($ac_try" in
10121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10127 grep -v '^ *+' conftest.er1 >conftest.err
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } >/dev/null && {
10132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10135 ac_header_preproc=yes
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ac_header_preproc=no
10143 rm -f conftest.err conftest.$ac_ext
10144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10145 echo "${ECHO_T}$ac_header_preproc" >&6; }
10147 # So? What about this header?
10148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10154 ac_header_preproc=yes
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10170 ## ---------------------------------------- ##
10171 ## Report this to pgsql-bugs@postgresql.org ##
10172 ## ---------------------------------------- ##
10174 ) | sed "s/^/$as_me: WARNING: /" >&2
10177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 eval "$as_ac_Header=\$ac_header_preproc"
10184 ac_res=`eval echo '${'$as_ac_Header'}'`
10185 { echo "$as_me:$LINENO: result: $ac_res" >&5
10186 echo "${ECHO_T}$ac_res" >&6; }
10189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10190 cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10196 for ac_header in readline/history.h
10198 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 ac_res=`eval echo '${'$as_ac_Header'}'`
10206 { echo "$as_me:$LINENO: result: $ac_res" >&5
10207 echo "${ECHO_T}$ac_res" >&6; }
10209 # Is the header compilable?
10210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10212 cat >conftest.$ac_ext <<_ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 $ac_includes_default
10219 #include <$ac_header>
10221 rm -f conftest.$ac_objext
10222 if { (ac_try="$ac_compile"
10223 case "(($ac_try" in
10224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10225 *) ac_try_echo
=$ac_try;;
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_compile") 2>conftest.er1
10230 grep -v '^ *+' conftest.er1
>conftest.err
10232 cat conftest.err
>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest.
$ac_objext; then
10238 ac_header_compiler
=yes
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.
$ac_ext >&5
10243 ac_header_compiler
=no
10246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10248 echo "${ECHO_T}$ac_header_compiler" >&6; }
10250 # Is the header present?
10251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10253 cat >conftest.
$ac_ext <<_ACEOF
10256 cat confdefs.h
>>conftest.
$ac_ext
10257 cat >>conftest.
$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 #include <$ac_header>
10261 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10262 case "(($ac_try" in
10263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10269 grep -v '^ *+' conftest.er1 >conftest.err
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } >/dev/null && {
10274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10277 ac_header_preproc=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_header_preproc=no
10285 rm -f conftest.err conftest.$ac_ext
10286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10287 echo "${ECHO_T}$ac_header_preproc" >&6; }
10289 # So? What about this header?
10290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10296 ac_header_preproc=yes
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10312 ## ---------------------------------------- ##
10313 ## Report this to pgsql-bugs@postgresql.org ##
10314 ## ---------------------------------------- ##
10316 ) | sed "s/^/$as_me: WARNING: /" >&2
10319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 eval "$as_ac_Header=\$ac_header_preproc"
10326 ac_res=`eval echo '${'$as_ac_Header'}'`
10327 { echo "$as_me:$LINENO: result: $ac_res" >&5
10328 echo "${ECHO_T}$ac_res" >&6; }
10331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10332 cat >>confdefs.h <<_ACEOF
10333 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10350 if test "$with_zlib" = yes; then
10351 if test "${ac_cv_header_zlib_h+set}" = set; then
10352 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10353 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10354 if test "${ac_cv_header_zlib_h+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10358 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10360 # Is the header compilable?
10361 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10362 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10363 cat >conftest.$ac_ext <<_ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 $ac_includes_default
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10376 *) ac_try_echo
=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_compile") 2>conftest.er1
10381 grep -v '^ *+' conftest.er1
>conftest.err
10383 cat conftest.err
>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest.
$ac_objext; then
10389 ac_header_compiler
=yes
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.
$ac_ext >&5
10394 ac_header_compiler
=no
10397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10399 echo "${ECHO_T}$ac_header_compiler" >&6; }
10401 # Is the header present?
10402 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10403 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10404 cat >conftest.
$ac_ext <<_ACEOF
10407 cat confdefs.h
>>conftest.
$ac_ext
10408 cat >>conftest.
$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10412 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10413 case "(($ac_try" in
10414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } >/dev/null && {
10425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10428 ac_header_preproc=yes
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 ac_header_preproc=no
10436 rm -f conftest.err conftest.$ac_ext
10437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10438 echo "${ECHO_T}$ac_header_preproc" >&6; }
10440 # So? What about this header?
10441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10443 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10444 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10445 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10446 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10447 ac_header_preproc=yes
10450 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10451 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10453 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10455 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10457 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10459 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10460 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10461 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10463 ## ---------------------------------------- ##
10464 ## Report this to pgsql-bugs@postgresql.org ##
10465 ## ---------------------------------------- ##
10467 ) | sed "s/^/$as_me: WARNING: /" >&2
10470 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10471 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10472 if test "${ac_cv_header_zlib_h+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 ac_cv_header_zlib_h=$ac_header_preproc
10477 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10478 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10481 if test $ac_cv_header_zlib_h = yes; then
10484 { { echo "$as_me:$LINENO: error: zlib header not found
10485 If you have zlib already installed, see config.log for details on the
10486 failure. It is possible the compiler isn't looking in the proper directory.
10487 Use --without-zlib to disable zlib support." >&5
10488 echo "$as_me: error: zlib header not found
10489 If you have zlib already installed, see config.log for details on the
10490 failure. It is possible the compiler isn't looking in the proper directory.
10491 Use --without-zlib to disable zlib support." >&2;}
10492 { (exit 1); exit 1; }; }
10498 if test "$with_gssapi" = yes ; then
10500 for ac_header in gssapi/gssapi.h
10502 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 ac_res=`eval echo '${'$as_ac_Header'}'`
10510 { echo "$as_me:$LINENO: result: $ac_res" >&5
10511 echo "${ECHO_T}$ac_res" >&6; }
10513 # Is the header compilable?
10514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 $ac_includes_default
10523 #include <$ac_header>
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10529 *) ac_try_echo
=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_compile") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1
>conftest.err
10536 cat conftest.err
>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest.
$ac_objext; then
10542 ac_header_compiler
=yes
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.
$ac_ext >&5
10547 ac_header_compiler
=no
10550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10552 echo "${ECHO_T}$ac_header_compiler" >&6; }
10554 # Is the header present?
10555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10557 cat >conftest.
$ac_ext <<_ACEOF
10560 cat confdefs.h
>>conftest.
$ac_ext
10561 cat >>conftest.
$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 #include <$ac_header>
10565 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10566 case "(($ac_try" in
10567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev/null && {
10578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10581 ac_header_preproc=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_header_preproc=no
10589 rm -f conftest.err conftest.$ac_ext
10590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10591 echo "${ECHO_T}$ac_header_preproc" >&6; }
10593 # So? What about this header?
10594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10600 ac_header_preproc=yes
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10616 ## ---------------------------------------- ##
10617 ## Report this to pgsql-bugs@postgresql.org ##
10618 ## ---------------------------------------- ##
10620 ) | sed "s/^/$as_me: WARNING: /" >&2
10623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 eval "$as_ac_Header=\$ac_header_preproc"
10630 ac_res=`eval echo '${'$as_ac_Header'}'`
10631 { echo "$as_me:$LINENO: result: $ac_res" >&5
10632 echo "${ECHO_T}$ac_res" >&6; }
10635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10636 cat >>confdefs.h <<_ACEOF
10637 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10642 for ac_header in gssapi.h
10644 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 ac_res=`eval echo '${'$as_ac_Header'}'`
10652 { echo "$as_me:$LINENO: result: $ac_res" >&5
10653 echo "${ECHO_T}$ac_res" >&6; }
10655 # Is the header compilable?
10656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10658 cat >conftest.$ac_ext <<_ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 $ac_includes_default
10665 #include <$ac_header>
10667 rm -f conftest.$ac_objext
10668 if { (ac_try="$ac_compile"
10669 case "(($ac_try" in
10670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10671 *) ac_try_echo
=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_compile") 2>conftest.er1
10676 grep -v '^ *+' conftest.er1
>conftest.err
10678 cat conftest.err
>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest.
$ac_objext; then
10684 ac_header_compiler
=yes
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.
$ac_ext >&5
10689 ac_header_compiler
=no
10692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10694 echo "${ECHO_T}$ac_header_compiler" >&6; }
10696 # Is the header present?
10697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10699 cat >conftest.
$ac_ext <<_ACEOF
10702 cat confdefs.h
>>conftest.
$ac_ext
10703 cat >>conftest.
$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 #include <$ac_header>
10707 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10708 case "(($ac_try" in
10709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } >/dev/null && {
10720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10723 ac_header_preproc=yes
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ac_header_preproc=no
10731 rm -f conftest.err conftest.$ac_ext
10732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10733 echo "${ECHO_T}$ac_header_preproc" >&6; }
10735 # So? What about this header?
10736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10742 ac_header_preproc=yes
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10758 ## ---------------------------------------- ##
10759 ## Report this to pgsql-bugs@postgresql.org ##
10760 ## ---------------------------------------- ##
10762 ) | sed "s/^/$as_me: WARNING: /" >&2
10765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 eval "$as_ac_Header=\$ac_header_preproc"
10772 ac_res=`eval echo '${'$as_ac_Header'}'`
10773 { echo "$as_me:$LINENO: result: $ac_res" >&5
10774 echo "${ECHO_T}$ac_res" >&6; }
10777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10783 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10784 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10785 { (exit 1); exit 1; }; }
10796 if test "$with_krb5" = yes ; then
10797 if test "${ac_cv_header_krb5_h+set}" = set; then
10798 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10799 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10800 if test "${ac_cv_header_krb5_h+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10804 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10806 # Is the header compilable?
10807 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
10808 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
10809 cat >conftest.$ac_ext <<_ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $ac_includes_default
10818 rm -f conftest.$ac_objext
10819 if { (ac_try="$ac_compile"
10820 case "(($ac_try" in
10821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10822 *) ac_try_echo
=$ac_try;;
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_compile") 2>conftest.er1
10827 grep -v '^ *+' conftest.er1
>conftest.err
10829 cat conftest.err
>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest.
$ac_objext; then
10835 ac_header_compiler
=yes
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.
$ac_ext >&5
10840 ac_header_compiler
=no
10843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10845 echo "${ECHO_T}$ac_header_compiler" >&6; }
10847 # Is the header present?
10848 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
10849 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
10850 cat >conftest.
$ac_ext <<_ACEOF
10853 cat confdefs.h
>>conftest.
$ac_ext
10854 cat >>conftest.
$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10858 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10859 case "(($ac_try" in
10860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10866 grep -v '^ *+' conftest.er1 >conftest.err
10868 cat conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); } >/dev/null && {
10871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10872 test ! -s conftest.err
10874 ac_header_preproc=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 ac_header_preproc=no
10882 rm -f conftest.err conftest.$ac_ext
10883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10884 echo "${ECHO_T}$ac_header_preproc" >&6; }
10886 # So? What about this header?
10887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10889 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10890 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10892 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10893 ac_header_preproc=yes
10896 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10897 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10899 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10901 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10903 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10905 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10907 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10909 ## ---------------------------------------- ##
10910 ## Report this to pgsql-bugs@postgresql.org ##
10911 ## ---------------------------------------- ##
10913 ) | sed "s/^/$as_me: WARNING: /" >&2
10916 { echo "$as_me:$LINENO: checking for krb5.h" >&5
10917 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
10918 if test "${ac_cv_header_krb5_h+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 ac_cv_header_krb5_h=$ac_header_preproc
10923 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10924 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
10927 if test $ac_cv_header_krb5_h = yes; then
10930 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10931 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10932 { (exit 1); exit 1; }; }
10938 if test "$with_openssl" = yes ; then
10939 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10940 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10941 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
10942 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10946 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
10948 # Is the header compilable?
10949 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10950 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
10951 cat >conftest.$ac_ext <<_ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 $ac_includes_default
10958 #include <openssl/ssl.h>
10960 rm -f conftest.$ac_objext
10961 if { (ac_try="$ac_compile"
10962 case "(($ac_try" in
10963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10964 *) ac_try_echo
=$ac_try;;
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_compile") 2>conftest.er1
10969 grep -v '^ *+' conftest.er1
>conftest.err
10971 cat conftest.err
>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest.
$ac_objext; then
10977 ac_header_compiler
=yes
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.
$ac_ext >&5
10982 ac_header_compiler
=no
10985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987 echo "${ECHO_T}$ac_header_compiler" >&6; }
10989 # Is the header present?
10990 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10991 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
10992 cat >conftest.
$ac_ext <<_ACEOF
10995 cat confdefs.h
>>conftest.
$ac_ext
10996 cat >>conftest.
$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <openssl/ssl.h>
11000 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11001 case "(($ac_try" in
11002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } >/dev/null && {
11013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11014 test ! -s conftest.err
11016 ac_header_preproc=yes
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 ac_header_preproc=no
11024 rm -f conftest.err conftest.$ac_ext
11025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11026 echo "${ECHO_T}$ac_header_preproc" >&6; }
11028 # So? What about this header?
11029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11031 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11032 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11034 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11035 ac_header_preproc=yes
11038 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11039 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11041 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11042 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11043 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11045 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11046 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11047 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11049 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11051 ## ---------------------------------------- ##
11052 ## Report this to pgsql-bugs@postgresql.org ##
11053 ## ---------------------------------------- ##
11055 ) | sed "s/^/$as_me: WARNING: /" >&2
11058 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11059 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11060 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11065 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11066 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11069 if test $ac_cv_header_openssl_ssl_h = yes; then
11072 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11073 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11074 { (exit 1); exit 1; }; }
11078 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11079 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11080 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11081 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11085 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11087 # Is the header compilable?
11088 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11089 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 $ac_includes_default
11097 #include <openssl/err.h>
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11103 *) ac_try_echo
=$ac_try;;
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1
>conftest.err
11110 cat conftest.err
>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.
$ac_objext; then
11116 ac_header_compiler
=yes
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.
$ac_ext >&5
11121 ac_header_compiler
=no
11124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126 echo "${ECHO_T}$ac_header_compiler" >&6; }
11128 # Is the header present?
11129 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11130 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11131 cat >conftest.
$ac_ext <<_ACEOF
11134 cat confdefs.h
>>conftest.
$ac_ext
11135 cat >>conftest.
$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <openssl/err.h>
11139 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11140 case "(($ac_try" in
11141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147 grep -v '^ *+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null && {
11152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11153 test ! -s conftest.err
11155 ac_header_preproc=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_header_preproc=no
11163 rm -f conftest.err conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11165 echo "${ECHO_T}$ac_header_preproc" >&6; }
11167 # So? What about this header?
11168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11170 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11171 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11173 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11174 ac_header_preproc=yes
11177 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11178 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11180 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11182 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11184 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11186 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11188 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11190 ## ---------------------------------------- ##
11191 ## Report this to pgsql-bugs@postgresql.org ##
11192 ## ---------------------------------------- ##
11194 ) | sed "s/^/$as_me: WARNING: /" >&2
11197 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11198 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11199 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 ac_cv_header_openssl_err_h=$ac_header_preproc
11204 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11205 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11208 if test $ac_cv_header_openssl_err_h = yes; then
11211 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11212 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11213 { (exit 1); exit 1; }; }
11218 for ac_func in ERR_set_mark
11220 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define $ac_func innocuous_$ac_func
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11242 # include <limits.h>
11244 # include <assert.h>
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined __stub_$ac_func || defined __stub___$ac_func
11266 return $ac_func ();
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11275 *) ac_try_echo
=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_link") 2>conftest.er1
11280 grep -v '^ *+' conftest.er1
>conftest.err
11282 cat conftest.err
>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && {
11285 test -z "$ac_c_werror_flag" ||
11286 test ! -s conftest.err
11287 } && test -s conftest
$ac_exeext &&
11288 $as_test_x conftest
$ac_exeext; then
11289 eval "$as_ac_var=yes"
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.
$ac_ext >&5
11294 eval "$as_ac_var=no"
11297 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11298 conftest
$ac_exeext conftest.
$ac_ext
11300 ac_res
=`eval echo '${'$as_ac_var'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11303 if test `eval echo '${'$as_ac_var'}'` = yes; then
11304 cat >>confdefs.h
<<_ACEOF
11305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11313 if test "$with_pam" = yes ; then
11315 for ac_header
in security
/pam_appl.h
11317 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 ac_res
=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11328 # Is the header compilable?
11329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11331 cat >conftest.
$ac_ext <<_ACEOF
11334 cat confdefs.h
>>conftest.
$ac_ext
11335 cat >>conftest.
$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 #include <$ac_header>
11340 rm -f conftest.
$ac_objext
11341 if { (ac_try
="$ac_compile"
11342 case "(($ac_try" in
11343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_compile") 2>conftest.er1
11349 grep -v '^ *+' conftest.er1 >conftest.err
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && {
11354 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest.$ac_objext; then
11357 ac_header_compiler=yes
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_header_compiler=no
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11367 echo "${ECHO_T}$ac_header_compiler" >&6; }
11369 # Is the header present?
11370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #include <$ac_header>
11380 if { (ac_try="$ac_cpp conftest.$ac_ext"
11381 case "(($ac_try" in
11382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11383 *) ac_try_echo
=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11388 grep -v '^ *+' conftest.er1
>conftest.err
11390 cat conftest.err
>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev
/null
&& {
11393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11396 ac_header_preproc
=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.
$ac_ext >&5
11401 ac_header_preproc
=no
11404 rm -f conftest.err conftest.
$ac_ext
11405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11406 echo "${ECHO_T}$ac_header_preproc" >&6; }
11408 # So? What about this header?
11409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11415 ac_header_preproc
=yes
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431 ## ---------------------------------------- ##
11432 ## Report this to pgsql-bugs@postgresql.org ##
11433 ## ---------------------------------------- ##
11435 ) |
sed "s/^/$as_me: WARNING: /" >&2
11438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11440 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 eval "$as_ac_Header=\$ac_header_preproc"
11445 ac_res
=`eval echo '${'$as_ac_Header'}'`
11446 { echo "$as_me:$LINENO: result: $ac_res" >&5
11447 echo "${ECHO_T}$ac_res" >&6; }
11450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11451 cat >>confdefs.h
<<_ACEOF
11452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11457 for ac_header
in pam
/pam_appl.h
11459 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11460 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11463 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 ac_res
=`eval echo '${'$as_ac_Header'}'`
11467 { echo "$as_me:$LINENO: result: $ac_res" >&5
11468 echo "${ECHO_T}$ac_res" >&6; }
11470 # Is the header compilable?
11471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11473 cat >conftest.
$ac_ext <<_ACEOF
11476 cat confdefs.h
>>conftest.
$ac_ext
11477 cat >>conftest.
$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11479 $ac_includes_default
11480 #include <$ac_header>
11482 rm -f conftest.
$ac_objext
11483 if { (ac_try
="$ac_compile"
11484 case "(($ac_try" in
11485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_compile") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest.$ac_objext; then
11499 ac_header_compiler=yes
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11504 ac_header_compiler=no
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11509 echo "${ECHO_T}$ac_header_compiler" >&6; }
11511 # Is the header present?
11512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11514 cat >conftest.$ac_ext <<_ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 #include <$ac_header>
11522 if { (ac_try="$ac_cpp conftest.$ac_ext"
11523 case "(($ac_try" in
11524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11525 *) ac_try_echo
=$ac_try;;
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1
>conftest.err
11532 cat conftest.err
>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } >/dev
/null
&& {
11535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11538 ac_header_preproc
=yes
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.
$ac_ext >&5
11543 ac_header_preproc
=no
11546 rm -f conftest.err conftest.
$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6; }
11550 # So? What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc
=yes
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11573 ## ---------------------------------------- ##
11574 ## Report this to pgsql-bugs@postgresql.org ##
11575 ## ---------------------------------------- ##
11577 ) |
sed "s/^/$as_me: WARNING: /" >&2
11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 eval "$as_ac_Header=\$ac_header_preproc"
11587 ac_res
=`eval echo '${'$as_ac_Header'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11593 cat >>confdefs.h
<<_ACEOF
11594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11598 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11599 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11600 { (exit 1); exit 1; }; }
11611 if test "$with_libxml" = yes ; then
11612 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11613 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11614 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11615 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11619 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11621 # Is the header compilable?
11622 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11623 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
11624 cat >conftest.
$ac_ext <<_ACEOF
11627 cat confdefs.h
>>conftest.
$ac_ext
11628 cat >>conftest.
$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 $ac_includes_default
11631 #include <libxml/parser.h>
11633 rm -f conftest.
$ac_objext
11634 if { (ac_try
="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11650 ac_header_compiler=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_compiler=no
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11660 echo "${ECHO_T}$ac_header_compiler" >&6; }
11662 # Is the header present?
11663 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11664 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <libxml/parser.h>
11673 if { (ac_try="$ac_cpp conftest.$ac_ext"
11674 case "(($ac_try" in
11675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11676 *) ac_try_echo
=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11681 grep -v '^ *+' conftest.er1
>conftest.err
11683 cat conftest.err
>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } >/dev
/null
&& {
11686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11689 ac_header_preproc
=yes
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.
$ac_ext >&5
11694 ac_header_preproc
=no
11697 rm -f conftest.err conftest.
$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6; }
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11704 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11707 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11708 ac_header_preproc
=yes
11711 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11712 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11714 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11716 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11718 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11722 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11724 ## ---------------------------------------- ##
11725 ## Report this to pgsql-bugs@postgresql.org ##
11726 ## ---------------------------------------- ##
11728 ) |
sed "s/^/$as_me: WARNING: /" >&2
11731 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11732 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
11733 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 ac_cv_header_libxml_parser_h
=$ac_header_preproc
11738 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11739 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
11742 if test $ac_cv_header_libxml_parser_h = yes; then
11745 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11746 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11747 { (exit 1); exit 1; }; }
11753 if test "$with_libxslt" = yes ; then
11754 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11755 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11756 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11757 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11761 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11763 # Is the header compilable?
11764 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11765 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
11766 cat >conftest.
$ac_ext <<_ACEOF
11769 cat confdefs.h
>>conftest.
$ac_ext
11770 cat >>conftest.
$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11773 #include <libxslt/xslt.h>
11775 rm -f conftest.
$ac_objext
11776 if { (ac_try
="$ac_compile"
11777 case "(($ac_try" in
11778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11784 grep -v '^ *+' conftest.er1 >conftest.err
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } && {
11789 test -z "$ac_c_werror_flag" ||
11790 test ! -s conftest.err
11791 } && test -s conftest.$ac_objext; then
11792 ac_header_compiler=yes
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_header_compiler=no
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11802 echo "${ECHO_T}$ac_header_compiler" >&6; }
11804 # Is the header present?
11805 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11806 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 #include <libxslt/xslt.h>
11815 if { (ac_try="$ac_cpp conftest.$ac_ext"
11816 case "(($ac_try" in
11817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11818 *) ac_try_echo
=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1
>conftest.err
11825 cat conftest.err
>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } >/dev
/null
&& {
11828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11831 ac_header_preproc
=yes
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.
$ac_ext >&5
11836 ac_header_preproc
=no
11839 rm -f conftest.err conftest.
$ac_ext
11840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841 echo "${ECHO_T}$ac_header_preproc" >&6; }
11843 # So? What about this header?
11844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11846 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11847 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11849 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11850 ac_header_preproc
=yes
11853 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11854 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
11856 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11858 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
11860 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11862 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11864 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11866 ## ---------------------------------------- ##
11867 ## Report this to pgsql-bugs@postgresql.org ##
11868 ## ---------------------------------------- ##
11870 ) |
sed "s/^/$as_me: WARNING: /" >&2
11873 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11874 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
11875 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
11880 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11881 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
11884 if test $ac_cv_header_libxslt_xslt_h = yes; then
11887 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11888 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11889 { (exit 1); exit 1; }; }
11895 if test "$with_ldap" = yes ; then
11896 if test "$PORTNAME" != "win32"; then
11898 for ac_header
in ldap.h
11900 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11901 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 ac_res
=`eval echo '${'$as_ac_Header'}'`
11908 { echo "$as_me:$LINENO: result: $ac_res" >&5
11909 echo "${ECHO_T}$ac_res" >&6; }
11911 # Is the header compilable?
11912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11914 cat >conftest.
$ac_ext <<_ACEOF
11917 cat confdefs.h
>>conftest.
$ac_ext
11918 cat >>conftest.
$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <$ac_header>
11923 rm -f conftest.
$ac_objext
11924 if { (ac_try
="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest.$ac_objext; then
11940 ac_header_compiler=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_header_compiler=no
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11950 echo "${ECHO_T}$ac_header_compiler" >&6; }
11952 # Is the header present?
11953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 #include <$ac_header>
11963 if { (ac_try="$ac_cpp conftest.$ac_ext"
11964 case "(($ac_try" in
11965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11966 *) ac_try_echo
=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1
>conftest.err
11973 cat conftest.err
>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } >/dev
/null
&& {
11976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11979 ac_header_preproc
=yes
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.
$ac_ext >&5
11984 ac_header_preproc
=no
11987 rm -f conftest.err conftest.
$ac_ext
11988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11989 echo "${ECHO_T}$ac_header_preproc" >&6; }
11991 # So? What about this header?
11992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11998 ac_header_preproc
=yes
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12014 ## ---------------------------------------- ##
12015 ## Report this to pgsql-bugs@postgresql.org ##
12016 ## ---------------------------------------- ##
12018 ) |
sed "s/^/$as_me: WARNING: /" >&2
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 eval "$as_ac_Header=\$ac_header_preproc"
12028 ac_res
=`eval echo '${'$as_ac_Header'}'`
12029 { echo "$as_me:$LINENO: result: $ac_res" >&5
12030 echo "${ECHO_T}$ac_res" >&6; }
12033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12034 cat >>confdefs.h
<<_ACEOF
12035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12039 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12040 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12041 { (exit 1); exit 1; }; }
12048 for ac_header
in winldap.h
12050 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12053 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 cat >conftest.
$ac_ext <<_ACEOF
12059 cat confdefs.h
>>conftest.
$ac_ext
12060 cat >>conftest.
$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 $ac_includes_default
12063 #include <windows.h>
12066 #include <$ac_header>
12068 rm -f conftest.
$ac_objext
12069 if { (ac_try
="$ac_compile"
12070 case "(($ac_try" in
12071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_compile") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest.$ac_objext; then
12085 eval "$as_ac_Header=yes"
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 eval "$as_ac_Header=no"
12093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 ac_res=`eval echo '${'$as_ac_Header'}'`
12096 { echo "$as_me:$LINENO: result: $ac_res" >&5
12097 echo "${ECHO_T}$ac_res" >&6; }
12098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12099 cat >>confdefs.h <<_ACEOF
12100 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12104 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12105 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12106 { (exit 1); exit 1; }; }
12114 if test "$with_bonjour" = yes ; then
12115 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12116 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12117 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12118 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12122 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12124 # Is the header compilable?
12125 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12126 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12127 cat >conftest.$ac_ext <<_ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 $ac_includes_default
12134 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12136 rm -f conftest.$ac_objext
12137 if { (ac_try="$ac_compile"
12138 case "(($ac_try" in
12139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12140 *) ac_try_echo
=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_compile") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1
>conftest.err
12147 cat conftest.err
>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest.
$ac_objext; then
12153 ac_header_compiler
=yes
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.
$ac_ext >&5
12158 ac_header_compiler
=no
12161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12163 echo "${ECHO_T}$ac_header_compiler" >&6; }
12165 # Is the header present?
12166 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12167 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12168 cat >conftest.
$ac_ext <<_ACEOF
12171 cat confdefs.h
>>conftest.
$ac_ext
12172 cat >>conftest.
$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12176 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12177 case "(($ac_try" in
12178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } >/dev/null && {
12189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12192 ac_header_preproc=yes
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_preproc=no
12200 rm -f conftest.err conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6; }
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12214 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12227 ## ---------------------------------------- ##
12228 ## Report this to pgsql-bugs@postgresql.org ##
12229 ## ---------------------------------------- ##
12231 ) | sed "s/^/$as_me: WARNING: /" >&2
12234 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12235 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12236 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12241 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12242 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12245 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12248 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12249 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12250 { (exit 1); exit 1; }; }
12256 # for contrib/uuid-ossp
12257 if test "$with_ossp_uuid" = yes ; then
12259 for ac_header in ossp/uuid.h
12261 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 ac_res=`eval echo '${'$as_ac_Header'}'`
12269 { echo "$as_me:$LINENO: result: $ac_res" >&5
12270 echo "${ECHO_T}$ac_res" >&6; }
12272 # Is the header compilable?
12273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 $ac_includes_default
12282 #include <$ac_header>
12284 rm -f conftest.$ac_objext
12285 if { (ac_try="$ac_compile"
12286 case "(($ac_try" in
12287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12288 *) ac_try_echo
=$ac_try;;
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_compile") 2>conftest.er1
12293 grep -v '^ *+' conftest.er1
>conftest.err
12295 cat conftest.err
>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && {
12298 test -z "$ac_c_werror_flag" ||
12299 test ! -s conftest.err
12300 } && test -s conftest.
$ac_objext; then
12301 ac_header_compiler
=yes
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.
$ac_ext >&5
12306 ac_header_compiler
=no
12309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12311 echo "${ECHO_T}$ac_header_compiler" >&6; }
12313 # Is the header present?
12314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12316 cat >conftest.
$ac_ext <<_ACEOF
12319 cat confdefs.h
>>conftest.
$ac_ext
12320 cat >>conftest.
$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <$ac_header>
12324 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12325 case "(($ac_try" in
12326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12332 grep -v '^ *+' conftest.er1 >conftest.err
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } >/dev/null && {
12337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12340 ac_header_preproc=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_header_preproc=no
12348 rm -f conftest.err conftest.$ac_ext
12349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12350 echo "${ECHO_T}$ac_header_preproc" >&6; }
12352 # So? What about this header?
12353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12359 ac_header_preproc=yes
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12375 ## ---------------------------------------- ##
12376 ## Report this to pgsql-bugs@postgresql.org ##
12377 ## ---------------------------------------- ##
12379 ) | sed "s/^/$as_me: WARNING: /" >&2
12382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 eval "$as_ac_Header=\$ac_header_preproc"
12389 ac_res=`eval echo '${'$as_ac_Header'}'`
12390 { echo "$as_me:$LINENO: result: $ac_res" >&5
12391 echo "${ECHO_T}$ac_res" >&6; }
12394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395 cat >>confdefs.h <<_ACEOF
12396 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12402 for ac_header in uuid.h
12404 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 ac_res=`eval echo '${'$as_ac_Header'}'`
12412 { echo "$as_me:$LINENO: result: $ac_res" >&5
12413 echo "${ECHO_T}$ac_res" >&6; }
12415 # Is the header compilable?
12416 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12418 cat >conftest.$ac_ext <<_ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 $ac_includes_default
12425 #include <$ac_header>
12427 rm -f conftest.$ac_objext
12428 if { (ac_try="$ac_compile"
12429 case "(($ac_try" in
12430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12431 *) ac_try_echo
=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_compile") 2>conftest.er1
12436 grep -v '^ *+' conftest.er1
>conftest.err
12438 cat conftest.err
>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } && {
12441 test -z "$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12443 } && test -s conftest.
$ac_objext; then
12444 ac_header_compiler
=yes
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.
$ac_ext >&5
12449 ac_header_compiler
=no
12452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12454 echo "${ECHO_T}$ac_header_compiler" >&6; }
12456 # Is the header present?
12457 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12459 cat >conftest.
$ac_ext <<_ACEOF
12462 cat confdefs.h
>>conftest.
$ac_ext
12463 cat >>conftest.
$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 #include <$ac_header>
12467 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12468 case "(($ac_try" in
12469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12475 grep -v '^ *+' conftest.er1 >conftest.err
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } >/dev/null && {
12480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12481 test ! -s conftest.err
12483 ac_header_preproc=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_header_preproc=no
12491 rm -f conftest.err conftest.$ac_ext
12492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12493 echo "${ECHO_T}$ac_header_preproc" >&6; }
12495 # So? What about this header?
12496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12502 ac_header_preproc=yes
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12518 ## ---------------------------------------- ##
12519 ## Report this to pgsql-bugs@postgresql.org ##
12520 ## ---------------------------------------- ##
12522 ) | sed "s/^/$as_me: WARNING: /" >&2
12525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 eval "$as_ac_Header=\$ac_header_preproc"
12532 ac_res=`eval echo '${'$as_ac_Header'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538 cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12543 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12544 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12545 { (exit 1); exit 1; }; }
12558 ## Types, structures, compiler characteristics
12561 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12562 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12563 if test "${ac_cv_c_bigendian+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 # See if sys/param.h defines the BYTE_ORDER macro.
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <sys/types.h>
12574 #include <sys/param.h>
12579 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
12580 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
12581 bogus endian macros
12588 rm -f conftest.$ac_objext
12589 if { (ac_try="$ac_compile"
12590 case "(($ac_try" in
12591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12592 *) ac_try_echo
=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1
>conftest.err
12599 cat conftest.err
>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest.
$ac_objext; then
12605 # It does; now see whether it defined to BIG_ENDIAN or not.
12606 cat >conftest.
$ac_ext <<_ACEOF
12609 cat confdefs.h
>>conftest.
$ac_ext
12610 cat >>conftest.
$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 #include <sys/types.h>
12613 #include <sys/param.h>
12618 #if BYTE_ORDER != BIG_ENDIAN
12626 rm -f conftest.
$ac_objext
12627 if { (ac_try
="$ac_compile"
12628 case "(($ac_try" in
12629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_compile") 2>conftest.er1
12635 grep -v '^ *+' conftest.er1 >conftest.err
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest.$ac_objext; then
12643 ac_cv_c_bigendian=yes
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_cv_c_bigendian=no
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 # It does not; compile a test program.
12657 if test "$cross_compiling" = yes; then
12658 # try to guess the endianness by grepping values into an object file
12659 ac_cv_c_bigendian=unknown
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12667 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12668 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12669 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12670 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12671 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12675 _ascii (); _ebcdic ();
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12684 *) ac_try_echo
=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1
>conftest.err
12691 cat conftest.err
>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.
$ac_objext; then
12697 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12698 ac_cv_c_bigendian
=yes
12700 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12701 if test "$ac_cv_c_bigendian" = unknown
; then
12702 ac_cv_c_bigendian
=no
12704 # finding both strings is unlikely to happen, but who knows?
12705 ac_cv_c_bigendian
=unknown
12709 echo "$as_me: failed program was:" >&5
12710 sed 's/^/| /' conftest.
$ac_ext >&5
12715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12717 cat >conftest.
$ac_ext <<_ACEOF
12720 cat confdefs.h
>>conftest.
$ac_ext
12721 cat >>conftest.
$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 $ac_includes_default
12728 /* Are we little or big endian? From Harbison&Steele. */
12732 char c[sizeof (long int)];
12735 return u.c[sizeof (long int) - 1] == 1;
12741 rm -f conftest
$ac_exeext
12742 if { (ac_try
="$ac_link"
12743 case "(($ac_try" in
12744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12754 *) ac_try_echo
=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_c_bigendian
=no
12763 echo "$as_me: program exited with status $ac_status" >&5
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.
$ac_ext >&5
12767 ( exit $ac_status )
12768 ac_cv_c_bigendian
=yes
12770 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12778 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12779 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
12780 case $ac_cv_c_bigendian in
12783 cat >>confdefs.h
<<\_ACEOF
12784 #define WORDS_BIGENDIAN 1
12790 { { echo "$as_me:$LINENO: error: unknown endianness
12791 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12792 echo "$as_me: error: unknown endianness
12793 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12794 { (exit 1); exit 1; }; } ;;
12797 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12798 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12799 if test "${ac_cv_c_const+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 cat >conftest.
$ac_ext <<_ACEOF
12805 cat confdefs.h
>>conftest.
$ac_ext
12806 cat >>conftest.
$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12812 /* FIXME: Include the comments suggested by Paul. */
12813 #ifndef __cplusplus
12814 /* Ultrix mips cc rejects this. */
12815 typedef int charset[2];
12817 /* SunOS 4.1.1 cc rejects this. */
12818 char const *const *pcpcc;
12820 /* NEC SVR4.0.2 mips cc rejects this. */
12821 struct point {int x, y;};
12822 static struct point const zero = {0,0};
12823 /* AIX XL C 1.02.0.0 rejects this.
12824 It does not let you subtract one const X* pointer from another in
12825 an arm of an if-expression whose if-part is not a constant
12827 const char *g = "string";
12828 pcpcc = &g + (g ? g-g : 0);
12829 /* HPUX 7.0 cc rejects these. */
12831 ppc = (char**) pcpcc;
12832 pcpcc = (char const *const *) ppc;
12833 { /* SCO 3.2v4 cc rejects this. */
12835 char const *s = 0 ? (char *) 0 : (char const *) 0;
12840 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12841 int x[] = {25, 17};
12842 const int *foo = &x[0];
12845 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12846 typedef const int *iptr;
12850 { /* AIX XL C 1.02.0.0 rejects this saying
12851 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12852 struct s { int j; const int *ap[3]; };
12853 struct s *b; b->j = 5;
12855 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12856 const int foo = 10;
12857 if (!foo) return 0;
12859 return !cs[0] && !zero.x;
12866 rm -f conftest.
$ac_objext
12867 if { (ac_try
="$ac_compile"
12868 case "(($ac_try" in
12869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_compile") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && {
12880 test -z "$ac_c_werror_flag" ||
12881 test ! -s conftest.err
12882 } && test -s conftest.$ac_objext; then
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12894 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12895 if test $ac_cv_c_const = no; then
12897 cat >>confdefs.h <<\_ACEOF
12903 { echo "$as_me:$LINENO: checking for inline" >&5
12904 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12905 if test "${ac_cv_c_inline+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 for ac_kw in inline __inline__ __inline; do
12910 cat >conftest.$ac_ext <<_ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916 #ifndef __cplusplus
12918 static $ac_kw foo_t static_foo () {return 0; }
12919 $ac_kw foo_t foo () {return 0; }
12923 rm -f conftest.$ac_objext
12924 if { (ac_try="$ac_compile"
12925 case "(($ac_try" in
12926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12927 *) ac_try_echo
=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_compile") 2>conftest.er1
12932 grep -v '^ *+' conftest.er1
>conftest.err
12934 cat conftest.err
>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } && {
12937 test -z "$ac_c_werror_flag" ||
12938 test ! -s conftest.err
12939 } && test -s conftest.
$ac_objext; then
12940 ac_cv_c_inline
=$ac_kw
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.
$ac_ext >&5
12948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12949 test "$ac_cv_c_inline" != no
&& break
12953 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12954 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
12957 case $ac_cv_c_inline in
12960 case $ac_cv_c_inline in
12962 *) ac_val
=$ac_cv_c_inline;;
12964 cat >>confdefs.h
<<_ACEOF
12965 #ifndef __cplusplus
12966 #define inline $ac_val
12972 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12973 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
12974 if test "${ac_cv_c_stringize+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 cat >conftest.
$ac_ext <<_ACEOF
12980 cat confdefs.h
>>conftest.
$ac_ext
12981 cat >>conftest.
$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12985 char *s = x(teststring);
12987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12988 $EGREP "#teststring" >/dev
/null
2>&1; then
12989 ac_cv_c_stringize
=no
12991 ac_cv_c_stringize
=yes
12996 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12997 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
12998 if test $ac_cv_c_stringize = yes; then
13000 cat >>confdefs.h
<<\_ACEOF
13001 #define HAVE_STRINGIZE 1
13006 { echo "$as_me:$LINENO: checking for signed types" >&5
13007 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13008 if test "${pgac_cv_c_signed+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 cat >conftest.
$ac_ext <<_ACEOF
13014 cat confdefs.h
>>conftest.
$ac_ext
13015 cat >>conftest.
$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13021 signed char c; signed short s; signed int i;
13026 rm -f conftest.
$ac_objext
13027 if { (ac_try
="$ac_compile"
13028 case "(($ac_try" in
13029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_compile") 2>conftest.er1
13035 grep -v '^ *+' conftest.er1 >conftest.err
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } && {
13040 test -z "$ac_c_werror_flag" ||
13041 test ! -s conftest.err
13042 } && test -s conftest.$ac_objext; then
13043 pgac_cv_c_signed=yes
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 pgac_cv_c_signed=no
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13054 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13055 if test x"$pgac_cv_c_signed" = xno ; then
13057 cat >>confdefs.h <<\_ACEOF
13062 { echo "$as_me:$LINENO: checking for working volatile" >&5
13063 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13064 if test "${ac_cv_c_volatile+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13079 int * volatile y = (int *) 0;
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13089 *) ac_try_echo
=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_compile") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1
>conftest.err
13096 cat conftest.err
>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.
$ac_objext; then
13102 ac_cv_c_volatile
=yes
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.
$ac_ext >&5
13107 ac_cv_c_volatile
=no
13110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13113 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13114 if test $ac_cv_c_volatile = no
; then
13116 cat >>confdefs.h
<<\_ACEOF
13122 { echo "$as_me:$LINENO: checking for __func__" >&5
13123 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13124 if test "${pgac_cv_funcname_func_support+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 cat >conftest.
$ac_ext <<_ACEOF
13130 cat confdefs.h
>>conftest.
$ac_ext
13131 cat >>conftest.
$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13137 printf("%s\n", __func__);
13142 rm -f conftest.
$ac_objext
13143 if { (ac_try
="$ac_compile"
13144 case "(($ac_try" in
13145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_compile") 2>conftest.er1
13151 grep -v '^ *+' conftest.er1 >conftest.err
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } && {
13156 test -z "$ac_c_werror_flag" ||
13157 test ! -s conftest.err
13158 } && test -s conftest.$ac_objext; then
13159 pgac_cv_funcname_func_support=yes
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13164 pgac_cv_funcname_func_support=no
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13170 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13171 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13173 cat >>confdefs.h <<\_ACEOF
13174 #define HAVE_FUNCNAME__FUNC 1
13178 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13179 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13180 if test "${pgac_cv_funcname_function_support+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13193 printf("%s\n", __FUNCTION__);
13198 rm -f conftest.$ac_objext
13199 if { (ac_try="$ac_compile"
13200 case "(($ac_try" in
13201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13202 *) ac_try_echo
=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_compile") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1
>conftest.err
13209 cat conftest.err
>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest.
$ac_objext; then
13215 pgac_cv_funcname_function_support
=yes
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.
$ac_ext >&5
13220 pgac_cv_funcname_function_support
=no
13223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13225 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13226 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13227 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
13229 cat >>confdefs.h
<<\_ACEOF
13230 #define HAVE_FUNCNAME__FUNCTION 1
13235 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13236 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13237 if test "${ac_cv_struct_tm+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 cat >conftest.
$ac_ext <<_ACEOF
13243 cat confdefs.h
>>conftest.
$ac_ext
13244 cat >>conftest.
$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <sys/types.h>
13253 int *p = &tm.tm_sec;
13259 rm -f conftest.
$ac_objext
13260 if { (ac_try
="$ac_compile"
13261 case "(($ac_try" in
13262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest.$ac_objext; then
13276 ac_cv_struct_tm=time.h
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_cv_struct_tm=sys/time.h
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13287 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13288 if test $ac_cv_struct_tm = sys/time.h; then
13290 cat >>confdefs.h <<\_ACEOF
13291 #define TM_IN_SYS_TIME 1
13296 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13297 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13298 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 cat >conftest.$ac_ext <<_ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #include <sys/types.h>
13308 #include <$ac_cv_struct_tm>
13314 static struct tm ac_aggr;
13315 if (ac_aggr.tm_zone)
13321 rm -f conftest.$ac_objext
13322 if { (ac_try="$ac_compile"
13323 case "(($ac_try" in
13324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13325 *) ac_try_echo
=$ac_try;;
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_compile") 2>conftest.er1
13330 grep -v '^ *+' conftest.er1
>conftest.err
13332 cat conftest.err
>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } && {
13335 test -z "$ac_c_werror_flag" ||
13336 test ! -s conftest.err
13337 } && test -s conftest.
$ac_objext; then
13338 ac_cv_member_struct_tm_tm_zone
=yes
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.
$ac_ext >&5
13343 cat >conftest.
$ac_ext <<_ACEOF
13346 cat confdefs.h
>>conftest.
$ac_ext
13347 cat >>conftest.
$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #include <sys/types.h>
13350 #include <$ac_cv_struct_tm>
13356 static struct tm ac_aggr;
13357 if (sizeof ac_aggr.tm_zone)
13363 rm -f conftest.
$ac_objext
13364 if { (ac_try
="$ac_compile"
13365 case "(($ac_try" in
13366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_compile") 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && {
13377 test -z "$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13379 } && test -s conftest.$ac_objext; then
13380 ac_cv_member_struct_tm_tm_zone=yes
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 ac_cv_member_struct_tm_tm_zone=no
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13393 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13394 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13395 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13397 cat >>confdefs.h <<_ACEOF
13398 #define HAVE_STRUCT_TM_TM_ZONE 1
13404 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13406 cat >>confdefs.h <<\_ACEOF
13407 #define HAVE_TM_ZONE 1
13411 { echo "$as_me:$LINENO: checking for tzname" >&5
13412 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13413 if test "${ac_cv_var_tzname+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 cat >conftest.$ac_ext <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13423 #ifndef tzname /* For SGI. */
13424 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13435 rm -f conftest.$ac_objext conftest$ac_exeext
13436 if { (ac_try="$ac_link"
13437 case "(($ac_try" in
13438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13439 *) ac_try_echo
=$ac_try;;
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_link") 2>conftest.er1
13444 grep -v '^ *+' conftest.er1
>conftest.err
13446 cat conftest.err
>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest
$ac_exeext &&
13452 $as_test_x conftest
$ac_exeext; then
13453 ac_cv_var_tzname
=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.
$ac_ext >&5
13458 ac_cv_var_tzname
=no
13461 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13462 conftest
$ac_exeext conftest.
$ac_ext
13464 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13465 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13466 if test $ac_cv_var_tzname = yes; then
13468 cat >>confdefs.h
<<\_ACEOF
13469 #define HAVE_TZNAME 1
13474 { echo "$as_me:$LINENO: checking for union semun" >&5
13475 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13476 if test "${ac_cv_type_union_semun+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 cat >conftest.
$ac_ext <<_ACEOF
13482 cat confdefs.h
>>conftest.
$ac_ext
13483 cat >>conftest.
$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <sys/types.h>
13486 #include <sys/ipc.h>
13487 #include <sys/sem.h>
13489 typedef union semun ac__type_new_;
13493 if ((ac__type_new_ *) 0)
13495 if (sizeof (ac__type_new_))
13501 rm -f conftest.
$ac_objext
13502 if { (ac_try
="$ac_compile"
13503 case "(($ac_try" in
13504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_compile") 2>conftest.er1
13510 grep -v '^ *+' conftest.er1 >conftest.err
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && {
13515 test -z "$ac_c_werror_flag" ||
13516 test ! -s conftest.err
13517 } && test -s conftest.$ac_objext; then
13518 ac_cv_type_union_semun=yes
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13523 ac_cv_type_union_semun=no
13526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13529 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13530 if test $ac_cv_type_union_semun = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533 #define HAVE_UNION_SEMUN 1
13539 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13540 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13541 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 cat >conftest.$ac_ext <<_ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13550 #include <sys/types.h>
13551 #ifdef HAVE_SYS_UN_H
13552 #include <sys/un.h>
13556 typedef struct sockaddr_un ac__type_new_;
13560 if ((ac__type_new_ *) 0)
13562 if (sizeof (ac__type_new_))
13568 rm -f conftest.$ac_objext
13569 if { (ac_try="$ac_compile"
13570 case "(($ac_try" in
13571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13572 *) ac_try_echo
=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13577 grep -v '^ *+' conftest.er1
>conftest.err
13579 cat conftest.err
>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest.
$ac_objext; then
13585 ac_cv_type_struct_sockaddr_un
=yes
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.
$ac_ext >&5
13590 ac_cv_type_struct_sockaddr_un
=no
13593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13595 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13596 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
13597 if test $ac_cv_type_struct_sockaddr_un = yes; then
13599 cat >>confdefs.h
<<_ACEOF
13600 #define HAVE_STRUCT_SOCKADDR_UN 1
13604 cat >>confdefs.h
<<\_ACEOF
13605 #define HAVE_UNIX_SOCKETS 1
13610 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13611 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
13612 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 cat >conftest.
$ac_ext <<_ACEOF
13618 cat confdefs.h
>>conftest.
$ac_ext
13619 cat >>conftest.
$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 #include <sys/types.h>
13622 #ifdef HAVE_SYS_SOCKET_H
13623 #include <sys/socket.h>
13627 typedef struct sockaddr_storage ac__type_new_;
13631 if ((ac__type_new_ *) 0)
13633 if (sizeof (ac__type_new_))
13639 rm -f conftest.
$ac_objext
13640 if { (ac_try
="$ac_compile"
13641 case "(($ac_try" in
13642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_compile") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest.$ac_objext; then
13656 ac_cv_type_struct_sockaddr_storage=yes
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 ac_cv_type_struct_sockaddr_storage=no
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13667 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
13668 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13677 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13678 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
13679 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 cat >conftest.$ac_ext <<_ACEOF
13685 cat confdefs.h >>conftest.$ac_ext
13686 cat >>conftest.$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13688 #include <sys/types.h>
13689 #ifdef HAVE_SYS_SOCKET_H
13690 #include <sys/socket.h>
13697 static struct sockaddr_storage ac_aggr;
13698 if (ac_aggr.ss_family)
13704 rm -f conftest.$ac_objext
13705 if { (ac_try="$ac_compile"
13706 case "(($ac_try" in
13707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13708 *) ac_try_echo
=$ac_try;;
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_compile") 2>conftest.er1
13713 grep -v '^ *+' conftest.er1
>conftest.err
13715 cat conftest.err
>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } && {
13718 test -z "$ac_c_werror_flag" ||
13719 test ! -s conftest.err
13720 } && test -s conftest.
$ac_objext; then
13721 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.
$ac_ext >&5
13726 cat >conftest.
$ac_ext <<_ACEOF
13729 cat confdefs.h
>>conftest.
$ac_ext
13730 cat >>conftest.
$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <sys/types.h>
13733 #ifdef HAVE_SYS_SOCKET_H
13734 #include <sys/socket.h>
13741 static struct sockaddr_storage ac_aggr;
13742 if (sizeof ac_aggr.ss_family)
13748 rm -f conftest.
$ac_objext
13749 if { (ac_try
="$ac_compile"
13750 case "(($ac_try" in
13751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_compile") 2>conftest.er1
13757 grep -v '^ *+' conftest.er1 >conftest.err
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } && {
13762 test -z "$ac_c_werror_flag" ||
13763 test ! -s conftest.err
13764 } && test -s conftest.$ac_objext; then
13765 ac_cv_member_struct_sockaddr_storage_ss_family=yes
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13770 ac_cv_member_struct_sockaddr_storage_ss_family=no
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13779 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
13780 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13788 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13789 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
13790 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include <sys/types.h>
13800 #ifdef HAVE_SYS_SOCKET_H
13801 #include <sys/socket.h>
13808 static struct sockaddr_storage ac_aggr;
13809 if (ac_aggr.__ss_family)
13815 rm -f conftest.$ac_objext
13816 if { (ac_try="$ac_compile"
13817 case "(($ac_try" in
13818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13819 *) ac_try_echo
=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_compile") 2>conftest.er1
13824 grep -v '^ *+' conftest.er1
>conftest.err
13826 cat conftest.err
>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && {
13829 test -z "$ac_c_werror_flag" ||
13830 test ! -s conftest.err
13831 } && test -s conftest.
$ac_objext; then
13832 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.
$ac_ext >&5
13837 cat >conftest.
$ac_ext <<_ACEOF
13840 cat confdefs.h
>>conftest.
$ac_ext
13841 cat >>conftest.
$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13843 #include <sys/types.h>
13844 #ifdef HAVE_SYS_SOCKET_H
13845 #include <sys/socket.h>
13852 static struct sockaddr_storage ac_aggr;
13853 if (sizeof ac_aggr.__ss_family)
13859 rm -f conftest.
$ac_objext
13860 if { (ac_try
="$ac_compile"
13861 case "(($ac_try" in
13862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_compile") 2>conftest.er1
13868 grep -v '^ *+' conftest.er1 >conftest.err
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } && {
13873 test -z "$ac_c_werror_flag" ||
13874 test ! -s conftest.err
13875 } && test -s conftest.$ac_objext; then
13876 ac_cv_member_struct_sockaddr_storage___ss_family=yes
13878 echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13881 ac_cv_member_struct_sockaddr_storage___ss_family=no
13884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13890 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
13891 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13893 cat >>confdefs.h <<_ACEOF
13894 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13899 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13900 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
13901 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 #include <sys/types.h>
13911 #ifdef HAVE_SYS_SOCKET_H
13912 #include <sys/socket.h>
13919 static struct sockaddr_storage ac_aggr;
13920 if (ac_aggr.ss_len)
13926 rm -f conftest.$ac_objext
13927 if { (ac_try="$ac_compile"
13928 case "(($ac_try" in
13929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13930 *) ac_try_echo
=$ac_try;;
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_compile") 2>conftest.er1
13935 grep -v '^ *+' conftest.er1
>conftest.err
13937 cat conftest.err
>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } && {
13940 test -z "$ac_c_werror_flag" ||
13941 test ! -s conftest.err
13942 } && test -s conftest.
$ac_objext; then
13943 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.
$ac_ext >&5
13948 cat >conftest.
$ac_ext <<_ACEOF
13951 cat confdefs.h
>>conftest.
$ac_ext
13952 cat >>conftest.
$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 #include <sys/types.h>
13955 #ifdef HAVE_SYS_SOCKET_H
13956 #include <sys/socket.h>
13963 static struct sockaddr_storage ac_aggr;
13964 if (sizeof ac_aggr.ss_len)
13970 rm -f conftest.
$ac_objext
13971 if { (ac_try
="$ac_compile"
13972 case "(($ac_try" in
13973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13974 *) ac_try_echo=$ac_try;;
13976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13977 (eval "$ac_compile") 2>conftest.er1
13979 grep -v '^ *+' conftest.er1 >conftest.err
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && {
13984 test -z "$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 } && test -s conftest.$ac_objext; then
13987 ac_cv_member_struct_sockaddr_storage_ss_len=yes
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 ac_cv_member_struct_sockaddr_storage_ss_len=no
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14001 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14002 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14004 cat >>confdefs.h <<_ACEOF
14005 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14010 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14011 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14012 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <sys/types.h>
14022 #ifdef HAVE_SYS_SOCKET_H
14023 #include <sys/socket.h>
14030 static struct sockaddr_storage ac_aggr;
14031 if (ac_aggr.__ss_len)
14037 rm -f conftest.$ac_objext
14038 if { (ac_try="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14041 *) ac_try_echo
=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14046 grep -v '^ *+' conftest.er1
>conftest.err
14048 cat conftest.err
>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.
$ac_objext; then
14054 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.
$ac_ext >&5
14059 cat >conftest.
$ac_ext <<_ACEOF
14062 cat confdefs.h
>>conftest.
$ac_ext
14063 cat >>conftest.
$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <sys/types.h>
14066 #ifdef HAVE_SYS_SOCKET_H
14067 #include <sys/socket.h>
14074 static struct sockaddr_storage ac_aggr;
14075 if (sizeof ac_aggr.__ss_len)
14081 rm -f conftest.
$ac_objext
14082 if { (ac_try
="$ac_compile"
14083 case "(($ac_try" in
14084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_compile") 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && {
14095 test -z "$ac_c_werror_flag" ||
14096 test ! -s conftest.err
14097 } && test -s conftest.$ac_objext; then
14098 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 ac_cv_member_struct_sockaddr_storage___ss_len=no
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14111 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14112 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14113 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14115 cat >>confdefs.h <<_ACEOF
14116 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14121 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14122 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14123 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 cat >conftest.$ac_ext <<_ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 #include <sys/types.h>
14133 #ifdef HAVE_SYS_SOCKET_H
14134 #include <sys/socket.h>
14141 static struct sockaddr ac_aggr;
14142 if (ac_aggr.sa_len)
14148 rm -f conftest.$ac_objext
14149 if { (ac_try="$ac_compile"
14150 case "(($ac_try" in
14151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14152 *) ac_try_echo
=$ac_try;;
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_compile") 2>conftest.er1
14157 grep -v '^ *+' conftest.er1
>conftest.err
14159 cat conftest.err
>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest.
$ac_objext; then
14165 ac_cv_member_struct_sockaddr_sa_len
=yes
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.
$ac_ext >&5
14170 cat >conftest.
$ac_ext <<_ACEOF
14173 cat confdefs.h
>>conftest.
$ac_ext
14174 cat >>conftest.
$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 #include <sys/types.h>
14177 #ifdef HAVE_SYS_SOCKET_H
14178 #include <sys/socket.h>
14185 static struct sockaddr ac_aggr;
14186 if (sizeof ac_aggr.sa_len)
14192 rm -f conftest.
$ac_objext
14193 if { (ac_try
="$ac_compile"
14194 case "(($ac_try" in
14195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_compile") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest.$ac_objext; then
14209 ac_cv_member_struct_sockaddr_sa_len=yes
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_cv_member_struct_sockaddr_sa_len=no
14217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14223 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14224 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14233 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14234 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14235 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <sys/types.h>
14245 #include <sys/socket.h>
14249 typedef struct addrinfo ac__type_new_;
14253 if ((ac__type_new_ *) 0)
14255 if (sizeof (ac__type_new_))
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14265 *) ac_try_echo
=$ac_try;;
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_compile") 2>conftest.er1
14270 grep -v '^ *+' conftest.er1
>conftest.err
14272 cat conftest.err
>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } && {
14275 test -z "$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14277 } && test -s conftest.
$ac_objext; then
14278 ac_cv_type_struct_addrinfo
=yes
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.
$ac_ext >&5
14283 ac_cv_type_struct_addrinfo
=no
14286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14288 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14289 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14290 if test $ac_cv_type_struct_addrinfo = yes; then
14292 cat >>confdefs.h
<<_ACEOF
14293 #define HAVE_STRUCT_ADDRINFO 1
14300 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14301 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14302 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 cat >conftest.
$ac_ext <<_ACEOF
14308 cat confdefs.h
>>conftest.
$ac_ext
14309 cat >>conftest.
$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <sys/param.h>
14312 #include <sys/types.h>
14313 #include <sys/socket.h>
14314 #include <sys/ucred.h>
14316 typedef struct cmsgcred ac__type_new_;
14320 if ((ac__type_new_ *) 0)
14322 if (sizeof (ac__type_new_))
14328 rm -f conftest.
$ac_objext
14329 if { (ac_try
="$ac_compile"
14330 case "(($ac_try" in
14331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_compile") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1 >conftest.err
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest.$ac_objext; then
14345 ac_cv_type_struct_cmsgcred=yes
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14350 ac_cv_type_struct_cmsgcred=no
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14355 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14356 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14357 if test $ac_cv_type_struct_cmsgcred = yes; then
14359 cat >>confdefs.h <<_ACEOF
14360 #define HAVE_STRUCT_CMSGCRED 1
14365 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14366 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14367 if test "${ac_cv_type_struct_fcred+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 #include <sys/param.h>
14377 #include <sys/types.h>
14378 #include <sys/socket.h>
14379 #include <sys/ucred.h>
14381 typedef struct fcred ac__type_new_;
14385 if ((ac__type_new_ *) 0)
14387 if (sizeof (ac__type_new_))
14393 rm -f conftest.$ac_objext
14394 if { (ac_try="$ac_compile"
14395 case "(($ac_try" in
14396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14397 *) ac_try_echo
=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_compile") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1
>conftest.err
14404 cat conftest.err
>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest.
$ac_objext; then
14410 ac_cv_type_struct_fcred
=yes
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.
$ac_ext >&5
14415 ac_cv_type_struct_fcred
=no
14418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14420 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14421 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14422 if test $ac_cv_type_struct_fcred = yes; then
14424 cat >>confdefs.h
<<_ACEOF
14425 #define HAVE_STRUCT_FCRED 1
14430 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14431 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14432 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14435 cat >conftest.
$ac_ext <<_ACEOF
14438 cat confdefs.h
>>conftest.
$ac_ext
14439 cat >>conftest.
$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 #include <sys/param.h>
14442 #include <sys/types.h>
14443 #include <sys/socket.h>
14444 #include <sys/ucred.h>
14446 typedef struct sockcred ac__type_new_;
14450 if ((ac__type_new_ *) 0)
14452 if (sizeof (ac__type_new_))
14458 rm -f conftest.
$ac_objext
14459 if { (ac_try
="$ac_compile"
14460 case "(($ac_try" in
14461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_compile") 2>conftest.er1
14467 grep -v '^ *+' conftest.er1 >conftest.err
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
14474 } && test -s conftest.$ac_objext; then
14475 ac_cv_type_struct_sockcred=yes
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ac_cv_type_struct_sockcred=no
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14486 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14487 if test $ac_cv_type_struct_sockcred = yes; then
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_STRUCT_SOCKCRED 1
14497 { echo "$as_me:$LINENO: checking for struct option" >&5
14498 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14499 if test "${ac_cv_type_struct_option+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 cat >conftest.$ac_ext <<_ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 #ifdef HAVE_GETOPT_H
14509 #include <getopt.h>
14512 typedef struct option ac__type_new_;
14516 if ((ac__type_new_ *) 0)
14518 if (sizeof (ac__type_new_))
14524 rm -f conftest.$ac_objext
14525 if { (ac_try="$ac_compile"
14526 case "(($ac_try" in
14527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14528 *) ac_try_echo
=$ac_try;;
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_compile") 2>conftest.er1
14533 grep -v '^ *+' conftest.er1
>conftest.err
14535 cat conftest.err
>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && {
14538 test -z "$ac_c_werror_flag" ||
14539 test ! -s conftest.err
14540 } && test -s conftest.
$ac_objext; then
14541 ac_cv_type_struct_option
=yes
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.
$ac_ext >&5
14546 ac_cv_type_struct_option
=no
14549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14551 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14552 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14553 if test $ac_cv_type_struct_option = yes; then
14555 cat >>confdefs.h
<<_ACEOF
14556 #define HAVE_STRUCT_OPTION 1
14563 if test "$with_zlib" = yes; then
14564 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14565 # did not). While we could work around the lack of z_streamp, it
14566 # seems unwise to encourage people to use such old zlib versions...
14567 { echo "$as_me:$LINENO: checking for z_streamp" >&5
14568 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
14569 if test "${ac_cv_type_z_streamp+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 cat >conftest.
$ac_ext <<_ACEOF
14575 cat confdefs.h
>>conftest.
$ac_ext
14576 cat >>conftest.
$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14580 typedef z_streamp ac__type_new_;
14584 if ((ac__type_new_ *) 0)
14586 if (sizeof (ac__type_new_))
14592 rm -f conftest.
$ac_objext
14593 if { (ac_try
="$ac_compile"
14594 case "(($ac_try" in
14595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14596 *) ac_try_echo=$ac_try;;
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_compile") 2>conftest.er1
14601 grep -v '^ *+' conftest.er1 >conftest.err
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } && {
14606 test -z "$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14608 } && test -s conftest.$ac_objext; then
14609 ac_cv_type_z_streamp=yes
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 ac_cv_type_z_streamp=no
14617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14620 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
14621 if test $ac_cv_type_z_streamp = yes; then
14624 { { echo "$as_me:$LINENO: error: zlib version is too old
14625 Use --without-zlib to disable zlib support." >&5
14626 echo "$as_me: error: zlib version is too old
14627 Use --without-zlib to disable zlib support." >&2;}
14628 { (exit 1); exit 1; }; }
14633 if test "$with_krb5" = yes; then
14634 # Check for differences between MIT and Heimdal (KTH) releases
14635 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14636 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
14637 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.$ac_ext <<_ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14651 static krb5_ticket ac_aggr;
14652 if (ac_aggr.enc_part2)
14658 rm -f conftest.$ac_objext
14659 if { (ac_try="$ac_compile"
14660 case "(($ac_try" in
14661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14662 *) ac_try_echo
=$ac_try;;
14664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_compile") 2>conftest.er1
14667 grep -v '^ *+' conftest.er1
>conftest.err
14669 cat conftest.err
>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && {
14672 test -z "$ac_c_werror_flag" ||
14673 test ! -s conftest.err
14674 } && test -s conftest.
$ac_objext; then
14675 ac_cv_member_krb5_ticket_enc_part2
=yes
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.
$ac_ext >&5
14680 cat >conftest.
$ac_ext <<_ACEOF
14683 cat confdefs.h
>>conftest.
$ac_ext
14684 cat >>conftest.
$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14691 static krb5_ticket ac_aggr;
14692 if (sizeof ac_aggr.enc_part2)
14698 rm -f conftest.
$ac_objext
14699 if { (ac_try
="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
14715 ac_cv_member_krb5_ticket_enc_part2=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_member_krb5_ticket_enc_part2=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14729 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
14730 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_KRB5_TICKET_ENC_PART2 1
14738 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14739 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
14740 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 cat >conftest.$ac_ext <<_ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14754 static krb5_ticket ac_aggr;
14755 if (ac_aggr.client)
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14765 *) ac_try_echo
=$ac_try;;
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_compile") 2>conftest.er1
14770 grep -v '^ *+' conftest.er1
>conftest.err
14772 cat conftest.err
>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest.
$ac_objext; then
14778 ac_cv_member_krb5_ticket_client
=yes
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.
$ac_ext >&5
14783 cat >conftest.
$ac_ext <<_ACEOF
14786 cat confdefs.h
>>conftest.
$ac_ext
14787 cat >>conftest.
$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14794 static krb5_ticket ac_aggr;
14795 if (sizeof ac_aggr.client)
14801 rm -f conftest.
$ac_objext
14802 if { (ac_try
="$ac_compile"
14803 case "(($ac_try" in
14804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_compile") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest.$ac_objext; then
14818 ac_cv_member_krb5_ticket_client=yes
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 ac_cv_member_krb5_ticket_client=no
14826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14832 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
14833 if test $ac_cv_member_krb5_ticket_client = yes; then
14835 cat >>confdefs.h <<_ACEOF
14836 #define HAVE_KRB5_TICKET_CLIENT 1
14841 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14842 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14843 { (exit 1); exit 1; }; }
14848 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14849 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
14850 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 cat >conftest.$ac_ext <<_ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14864 static krb5_error ac_aggr;
14865 if (ac_aggr.text.data)
14871 rm -f conftest.$ac_objext
14872 if { (ac_try="$ac_compile"
14873 case "(($ac_try" in
14874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14875 *) ac_try_echo
=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1
>conftest.err
14882 cat conftest.err
>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.
$ac_objext; then
14888 ac_cv_member_krb5_error_text_data
=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.
$ac_ext >&5
14893 cat >conftest.
$ac_ext <<_ACEOF
14896 cat confdefs.h
>>conftest.
$ac_ext
14897 cat >>conftest.
$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14904 static krb5_error ac_aggr;
14905 if (sizeof ac_aggr.text.data)
14911 rm -f conftest.
$ac_objext
14912 if { (ac_try
="$ac_compile"
14913 case "(($ac_try" in
14914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_compile") 2>conftest.er1
14920 grep -v '^ *+' conftest.er1 >conftest.err
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } && {
14925 test -z "$ac_c_werror_flag" ||
14926 test ! -s conftest.err
14927 } && test -s conftest.$ac_objext; then
14928 ac_cv_member_krb5_error_text_data=yes
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 ac_cv_member_krb5_error_text_data=no
14936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
14942 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
14943 if test $ac_cv_member_krb5_error_text_data = yes; then
14945 cat >>confdefs.h <<_ACEOF
14946 #define HAVE_KRB5_ERROR_TEXT_DATA 1
14951 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
14952 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
14953 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 cat >conftest.$ac_ext <<_ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h. */
14967 static krb5_error ac_aggr;
14968 if (ac_aggr.e_data)
14974 rm -f conftest.$ac_objext
14975 if { (ac_try="$ac_compile"
14976 case "(($ac_try" in
14977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14978 *) ac_try_echo
=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_compile") 2>conftest.er1
14983 grep -v '^ *+' conftest.er1
>conftest.err
14985 cat conftest.err
>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } && {
14988 test -z "$ac_c_werror_flag" ||
14989 test ! -s conftest.err
14990 } && test -s conftest.
$ac_objext; then
14991 ac_cv_member_krb5_error_e_data
=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.
$ac_ext >&5
14996 cat >conftest.
$ac_ext <<_ACEOF
14999 cat confdefs.h
>>conftest.
$ac_ext
15000 cat >>conftest.
$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15007 static krb5_error ac_aggr;
15008 if (sizeof ac_aggr.e_data)
15014 rm -f conftest.
$ac_objext
15015 if { (ac_try
="$ac_compile"
15016 case "(($ac_try" in
15017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest.$ac_objext; then
15031 ac_cv_member_krb5_error_e_data=yes
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_cv_member_krb5_error_e_data=no
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15045 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15046 if test $ac_cv_member_krb5_error_e_data = yes; then
15048 cat >>confdefs.h <<_ACEOF
15049 #define HAVE_KRB5_ERROR_E_DATA 1
15054 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15055 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15056 { (exit 1); exit 1; }; }
15062 # Win32 requires headers to be loaded for __stdcall, so can't use
15063 # AC_CHECK_FUNCS here.
15064 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15065 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15066 cat >conftest.$ac_ext <<_ACEOF
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15076 krb5_free_unparsed_name(NULL,NULL);
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15085 *) ac_try_echo
=$ac_try;;
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_link") 2>conftest.er1
15090 grep -v '^ *+' conftest.er1
>conftest.err
15092 cat conftest.err
>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && {
15095 test -z "$ac_c_werror_flag" ||
15096 test ! -s conftest.err
15097 } && test -s conftest
$ac_exeext &&
15098 $as_test_x conftest
$ac_exeext; then
15100 cat >>confdefs.h
<<\_ACEOF
15101 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15104 { echo "$as_me:$LINENO: result: yes" >&5
15105 echo "${ECHO_T}yes" >&6; }
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.
$ac_ext >&5
15110 { echo "$as_me:$LINENO: result: no" >&5
15111 echo "${ECHO_T}no" >&6; }
15114 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15115 conftest
$ac_exeext conftest.
$ac_ext
15120 ## Functions, global variables
15123 { echo "$as_me:$LINENO: checking for int timezone" >&5
15124 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15125 if test "${pgac_cv_var_int_timezone+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 cat >conftest.
$ac_ext <<_ACEOF
15131 cat confdefs.h
>>conftest.
$ac_ext
15132 cat >>conftest.
$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15140 res = timezone / 60;
15142 res = _timezone / 60;
15148 rm -f conftest.
$ac_objext conftest
$ac_exeext
15149 if { (ac_try
="$ac_link"
15150 case "(($ac_try" in
15151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_link") 2>conftest.er1
15157 grep -v '^ *+' conftest.er1 >conftest.err
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } && {
15162 test -z "$ac_c_werror_flag" ||
15163 test ! -s conftest.err
15164 } && test -s conftest$ac_exeext &&
15165 $as_test_x conftest$ac_exeext; then
15166 pgac_cv_var_int_timezone=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 pgac_cv_var_int_timezone=no
15174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15175 conftest$ac_exeext conftest.$ac_ext
15177 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15178 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15179 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_INT_TIMEZONE
15186 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15187 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15188 if test "${ac_cv_func_accept_return+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 if test "${ac_cv_func_accept_arg1+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 if test "${ac_cv_func_accept_arg2+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 if test "${ac_cv_func_accept_arg3+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15201 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15202 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15203 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #ifdef HAVE_SYS_TYPES_H
15211 #include <sys/types.h>
15213 #ifdef HAVE_SYS_SOCKET_H
15214 #include <sys/socket.h>
15216 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15229 *) ac_try_echo
=$ac_try;;
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_compile") 2>conftest.er1
15234 grep -v '^ *+' conftest.er1
>conftest.err
15236 cat conftest.err
>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } && {
15239 test -z "$ac_c_werror_flag" ||
15240 test ! -s conftest.err
15241 } && test -s conftest.
$ac_objext; then
15242 ac_not_found
=no
; break 4
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.
$ac_ext >&5
15250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15255 if test "$ac_not_found" = yes; then
15256 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15257 echo "$as_me: error: could not determine argument types" >&2;}
15258 { (exit 1); exit 1; }; }
15260 if test "$ac_cv_func_accept_arg3" = "void"; then
15261 ac_cv_func_accept_arg3
=int
15271 { 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
15272 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15274 cat >>confdefs.h
<<_ACEOF
15275 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15279 cat >>confdefs.h
<<_ACEOF
15280 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15284 cat >>confdefs.h
<<_ACEOF
15285 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15289 cat >>confdefs.h
<<_ACEOF
15290 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15294 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15295 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15296 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 cat >conftest.
$ac_ext <<_ACEOF
15302 cat confdefs.h
>>conftest.
$ac_ext
15303 cat >>conftest.
$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 #include <sys/time.h>
15309 struct timeval *tp;
15310 struct timezone *tzp;
15311 gettimeofday(tp,tzp);
15316 rm -f conftest.
$ac_objext
15317 if { (ac_try
="$ac_compile"
15318 case "(($ac_try" in
15319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323 (eval "$ac_compile") 2>conftest.er1
15325 grep -v '^ *+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } && {
15330 test -z "$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15332 } && test -s conftest.$ac_objext; then
15333 pgac_cv_func_gettimeofday_1arg=no
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 pgac_cv_func_gettimeofday_1arg=yes
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15344 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15345 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15347 cat >>confdefs.h <<\_ACEOF
15348 #define GETTIMEOFDAY_1ARG
15375 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15377 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15381 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15391 #define $ac_func innocuous_$ac_func
15393 /* System header to define __stub macros and hopefully few prototypes,
15394 which can conflict with char $ac_func (); below.
15395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15396 <limits.h> exists even on freestanding compilers. */
15399 # include <limits.h>
15401 # include <assert.h>
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15413 /* The GNU C library defines this for functions which it implements
15414 to always fail with ENOSYS. Some functions are actually named
15415 something starting with __ and the normal name is an alias. */
15416 #if defined __stub_$ac_func || defined __stub___$ac_func
15423 return $ac_func ();
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (ac_try="$ac_link"
15430 case "(($ac_try" in
15431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15432 *) ac_try_echo
=$ac_try;;
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_link") 2>conftest.er1
15437 grep -v '^ *+' conftest.er1
>conftest.err
15439 cat conftest.err
>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } && {
15442 test -z "$ac_c_werror_flag" ||
15443 test ! -s conftest.err
15444 } && test -s conftest
$ac_exeext &&
15445 $as_test_x conftest
$ac_exeext; then
15446 eval "$as_ac_var=yes"
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.
$ac_ext >&5
15451 eval "$as_ac_var=no"
15454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15455 conftest
$ac_exeext conftest.
$ac_ext
15457 ac_res
=`eval echo '${'$as_ac_var'}'`
15458 { echo "$as_me:$LINENO: result: $ac_res" >&5
15459 echo "${ECHO_T}$ac_res" >&6; }
15460 if test `eval echo '${'$as_ac_var'}'` = yes; then
15461 cat >>confdefs.h
<<_ACEOF
15462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15469 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15470 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15471 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 cat >conftest.
$ac_ext <<_ACEOF
15477 cat confdefs.h
>>conftest.
$ac_ext
15478 cat >>conftest.
$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 #include <unistd.h>
15493 rm -f conftest.
$ac_objext
15494 if { (ac_try
="$ac_compile"
15495 case "(($ac_try" in
15496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_compile") 2>conftest.er1
15502 grep -v '^ *+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest.$ac_objext; then
15510 ac_cv_have_decl_fdatasync=yes
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_cv_have_decl_fdatasync=no
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15520 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15521 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15522 if test $ac_cv_have_decl_fdatasync = yes; then
15524 cat >>confdefs.h <<_ACEOF
15525 #define HAVE_DECL_FDATASYNC 1
15530 cat >>confdefs.h <<_ACEOF
15531 #define HAVE_DECL_FDATASYNC 0
15538 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15539 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15540 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 cat >conftest.$ac_ext <<_ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15554 #ifndef posix_fadvise
15555 (void) posix_fadvise;
15562 rm -f conftest.$ac_objext
15563 if { (ac_try="$ac_compile"
15564 case "(($ac_try" in
15565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15566 *) ac_try_echo
=$ac_try;;
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_compile") 2>conftest.er1
15571 grep -v '^ *+' conftest.er1
>conftest.err
15573 cat conftest.err
>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } && {
15576 test -z "$ac_c_werror_flag" ||
15577 test ! -s conftest.err
15578 } && test -s conftest.
$ac_objext; then
15579 ac_cv_have_decl_posix_fadvise
=yes
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.
$ac_ext >&5
15584 ac_cv_have_decl_posix_fadvise
=no
15587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15589 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15590 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
15591 if test $ac_cv_have_decl_posix_fadvise = yes; then
15593 cat >>confdefs.h
<<_ACEOF
15594 #define HAVE_DECL_POSIX_FADVISE 1
15599 cat >>confdefs.h
<<_ACEOF
15600 #define HAVE_DECL_POSIX_FADVISE 0
15607 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15608 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
15609 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 cat >conftest.
$ac_ext <<_ACEOF
15615 cat confdefs.h
>>conftest.
$ac_ext
15616 cat >>conftest.
$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 $ac_includes_default
15630 rm -f conftest.
$ac_objext
15631 if { (ac_try
="$ac_compile"
15632 case "(($ac_try" in
15633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_compile") 2>conftest.er1
15639 grep -v '^ *+' conftest.er1 >conftest.err
15641 cat conftest.err >&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } && {
15644 test -z "$ac_c_werror_flag" ||
15645 test ! -s conftest.err
15646 } && test -s conftest.$ac_objext; then
15647 ac_cv_have_decl_strlcat=yes
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15652 ac_cv_have_decl_strlcat=no
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15658 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
15659 if test $ac_cv_have_decl_strlcat = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662 #define HAVE_DECL_STRLCAT 1
15667 cat >>confdefs.h <<_ACEOF
15668 #define HAVE_DECL_STRLCAT 0
15673 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15674 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
15675 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15676 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 cat >conftest.$ac_ext <<_ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 $ac_includes_default
15696 rm -f conftest.$ac_objext
15697 if { (ac_try="$ac_compile"
15698 case "(($ac_try" in
15699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15700 *) ac_try_echo
=$ac_try;;
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_compile") 2>conftest.er1
15705 grep -v '^ *+' conftest.er1
>conftest.err
15707 cat conftest.err
>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && {
15710 test -z "$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15712 } && test -s conftest.
$ac_objext; then
15713 ac_cv_have_decl_strlcpy
=yes
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.
$ac_ext >&5
15718 ac_cv_have_decl_strlcpy
=no
15721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15723 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15724 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
15725 if test $ac_cv_have_decl_strlcpy = yes; then
15727 cat >>confdefs.h
<<_ACEOF
15728 #define HAVE_DECL_STRLCPY 1
15733 cat >>confdefs.h
<<_ACEOF
15734 #define HAVE_DECL_STRLCPY 0
15741 # This is probably only present on Darwin, but may as well check always
15742 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15743 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
15744 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 cat >conftest.
$ac_ext <<_ACEOF
15750 cat confdefs.h
>>conftest.
$ac_ext
15751 cat >>conftest.
$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15758 #ifndef F_FULLFSYNC
15759 (void) F_FULLFSYNC;
15766 rm -f conftest.
$ac_objext
15767 if { (ac_try
="$ac_compile"
15768 case "(($ac_try" in
15769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_compile") 2>conftest.er1
15775 grep -v '^ *+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest.$ac_objext; then
15783 ac_cv_have_decl_F_FULLFSYNC=yes
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ac_cv_have_decl_F_FULLFSYNC=no
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15794 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
15795 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_DECL_F_FULLFSYNC 1
15803 cat >>confdefs.h <<_ACEOF
15804 #define HAVE_DECL_F_FULLFSYNC 0
15813 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15814 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
15815 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 cat >conftest.$ac_ext <<_ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 $ac_includes_default
15825 #include <netinet/in.h>
15827 typedef struct sockaddr_in6 ac__type_new_;
15831 if ((ac__type_new_ *) 0)
15833 if (sizeof (ac__type_new_))
15839 rm -f conftest.$ac_objext
15840 if { (ac_try="$ac_compile"
15841 case "(($ac_try" in
15842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15843 *) ac_try_echo
=$ac_try;;
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15848 grep -v '^ *+' conftest.er1
>conftest.err
15850 cat conftest.err
>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest.
$ac_objext; then
15856 ac_cv_type_struct_sockaddr_in6
=yes
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.
$ac_ext >&5
15861 ac_cv_type_struct_sockaddr_in6
=no
15864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15866 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
15867 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
15868 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
15870 cat >>confdefs.h
<<\_ACEOF
15871 #define HAVE_IPV6 1
15879 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
15880 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
15881 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 cat >conftest.
$ac_ext <<_ACEOF
15887 cat confdefs.h
>>conftest.
$ac_ext
15888 cat >>conftest.
$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 #include <machine/vmparam.h>
15891 #include <sys/exec.h>
15896 PS_STRINGS->ps_nargvstr = 1;
15897 PS_STRINGS->ps_argvstr = "foo";
15902 rm -f conftest.
$ac_objext conftest
$ac_exeext
15903 if { (ac_try
="$ac_link"
15904 case "(($ac_try" in
15905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15909 (eval "$ac_link") 2>conftest.er1
15911 grep -v '^ *+' conftest.er1 >conftest.err
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } && {
15916 test -z "$ac_c_werror_flag" ||
15917 test ! -s conftest.err
15918 } && test -s conftest$ac_exeext &&
15919 $as_test_x conftest$ac_exeext; then
15920 pgac_cv_var_PS_STRINGS=yes
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 pgac_cv_var_PS_STRINGS=no
15928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15929 conftest$ac_exeext conftest.$ac_ext
15931 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
15932 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
15933 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15935 cat >>confdefs.h <<\_ACEOF
15936 #define HAVE_PS_STRINGS
15942 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15943 # is missing. Yes, there are machines that have only one. We may
15944 # also decide to use snprintf.c if snprintf() is present but does not
15945 # have all the features we need --- see below.
15947 if test "$PORTNAME" = "win32"; then
15948 # Win32 gets snprintf.c built unconditionally.
15950 # To properly translate all NLS languages strings, we must support the
15951 # *printf() %$ format, which allows *printf() arguments to be selected
15952 # by position in the translated string.
15954 # libintl versions < 0.13 use the native *printf() functions, and Win32
15955 # *printf() doesn't understand %$, so we must use our /port versions,
15956 # which do understand %$. libintl versions >= 0.13 include their own
15957 # *printf versions on Win32. The libintl 0.13 release note text is:
15959 # C format strings with positions, as they arise when a translator
15960 # needs to reorder a sentence, are now supported on all platforms.
15961 # On those few platforms (NetBSD and Woe32) for which the native
15962 # printf()/fprintf()/... functions don't support such format
15963 # strings, replacements are provided through <libintl.h>.
15965 # We could use libintl >= 0.13's *printf() if we were sure that we had
15966 # a litint >= 0.13 at runtime, but seeing that there is no clean way
15967 # to guarantee that, it is best to just use our own, so we are sure to
15968 # get %$ support. In include/port.h we disable the *printf() macros
15969 # that might have been defined by libintl.
15971 # We do this unconditionally whether NLS is used or not so we are sure
15972 # that all Win32 libraries and binaries behave the same.
15973 pgac_need_repl_snprintf=yes
15975 pgac_need_repl_snprintf=no
15977 for ac_func in snprintf
15979 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15993 #define $ac_func innocuous_$ac_func
15995 /* System header to define __stub macros and hopefully few prototypes,
15996 which can conflict with char $ac_func (); below.
15997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15998 <limits.h> exists even on freestanding compilers. */
16001 # include <limits.h>
16003 # include <assert.h>
16008 /* Override any GCC internal prototype to avoid an error.
16009 Use char because int might match the return type of a GCC
16010 builtin and then its argument prototype would still apply. */
16015 /* The GNU C library defines this for functions which it implements
16016 to always fail with ENOSYS. Some functions are actually named
16017 something starting with __ and the normal name is an alias. */
16018 #if defined __stub_$ac_func || defined __stub___$ac_func
16025 return $ac_func ();
16030 rm -f conftest.$ac_objext conftest$ac_exeext
16031 if { (ac_try="$ac_link"
16032 case "(($ac_try" in
16033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16034 *) ac_try_echo
=$ac_try;;
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_link") 2>conftest.er1
16039 grep -v '^ *+' conftest.er1
>conftest.err
16041 cat conftest.err
>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } && {
16044 test -z "$ac_c_werror_flag" ||
16045 test ! -s conftest.err
16046 } && test -s conftest
$ac_exeext &&
16047 $as_test_x conftest
$ac_exeext; then
16048 eval "$as_ac_var=yes"
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.
$ac_ext >&5
16053 eval "$as_ac_var=no"
16056 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16057 conftest
$ac_exeext conftest.
$ac_ext
16059 ac_res
=`eval echo '${'$as_ac_var'}'`
16060 { echo "$as_me:$LINENO: result: $ac_res" >&5
16061 echo "${ECHO_T}$ac_res" >&6; }
16062 if test `eval echo '${'$as_ac_var'}'` = yes; then
16063 cat >>confdefs.h
<<_ACEOF
16064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16068 pgac_need_repl_snprintf
=yes
16073 for ac_func
in vsnprintf
16075 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16078 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16081 cat >conftest.
$ac_ext <<_ACEOF
16084 cat confdefs.h
>>conftest.
$ac_ext
16085 cat >>conftest.
$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16089 #define $ac_func innocuous_$ac_func
16091 /* System header to define __stub macros and hopefully few prototypes,
16092 which can conflict with char $ac_func (); below.
16093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16094 <limits.h> exists even on freestanding compilers. */
16097 # include <limits.h>
16099 # include <assert.h>
16104 /* Override any GCC internal prototype to avoid an error.
16105 Use char because int might match the return type of a GCC
16106 builtin and then its argument prototype would still apply. */
16111 /* The GNU C library defines this for functions which it implements
16112 to always fail with ENOSYS. Some functions are actually named
16113 something starting with __ and the normal name is an alias. */
16114 #if defined __stub_$ac_func || defined __stub___$ac_func
16121 return $ac_func ();
16126 rm -f conftest.
$ac_objext conftest
$ac_exeext
16127 if { (ac_try
="$ac_link"
16128 case "(($ac_try" in
16129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_link") 2>conftest.er1
16135 grep -v '^ *+' conftest.er1 >conftest.err
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } && {
16140 test -z "$ac_c_werror_flag" ||
16141 test ! -s conftest.err
16142 } && test -s conftest$ac_exeext &&
16143 $as_test_x conftest$ac_exeext; then
16144 eval "$as_ac_var=yes"
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 eval "$as_ac_var=no"
16152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16153 conftest$ac_exeext conftest.$ac_ext
16155 ac_res=`eval echo '${'$as_ac_var'}'`
16156 { echo "$as_me:$LINENO: result: $ac_res" >&5
16157 echo "${ECHO_T}$ac_res" >&6; }
16158 if test `eval echo '${'$as_ac_var'}'` = yes; then
16159 cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16164 pgac_need_repl_snprintf=yes
16171 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16172 # include/c.h will provide declarations. Note this is a separate test
16173 # from whether the functions exist in the C library --- there are
16174 # systems that have the functions but don't bother to declare them :-(
16176 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16177 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16178 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 $ac_includes_default
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16203 *) ac_try_echo
=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_compile") 2>conftest.er1
16208 grep -v '^ *+' conftest.er1
>conftest.err
16210 cat conftest.err
>&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } && {
16213 test -z "$ac_c_werror_flag" ||
16214 test ! -s conftest.err
16215 } && test -s conftest.
$ac_objext; then
16216 ac_cv_have_decl_snprintf
=yes
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.
$ac_ext >&5
16221 ac_cv_have_decl_snprintf
=no
16224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16226 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16227 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16228 if test $ac_cv_have_decl_snprintf = yes; then
16230 cat >>confdefs.h
<<_ACEOF
16231 #define HAVE_DECL_SNPRINTF 1
16236 cat >>confdefs.h
<<_ACEOF
16237 #define HAVE_DECL_SNPRINTF 0
16242 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16243 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16244 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 cat >conftest.
$ac_ext <<_ACEOF
16250 cat confdefs.h
>>conftest.
$ac_ext
16251 cat >>conftest.
$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16265 rm -f conftest.
$ac_objext
16266 if { (ac_try
="$ac_compile"
16267 case "(($ac_try" in
16268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_compile") 2>conftest.er1
16274 grep -v '^ *+' conftest.er1 >conftest.err
16276 cat conftest.err >&5
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } && {
16279 test -z "$ac_c_werror_flag" ||
16280 test ! -s conftest.err
16281 } && test -s conftest.$ac_objext; then
16282 ac_cv_have_decl_vsnprintf=yes
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16287 ac_cv_have_decl_vsnprintf=no
16290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16293 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16294 if test $ac_cv_have_decl_vsnprintf = yes; then
16296 cat >>confdefs.h <<_ACEOF
16297 #define HAVE_DECL_VSNPRINTF 1
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_DECL_VSNPRINTF 0
16312 { echo "$as_me:$LINENO: checking for isinf" >&5
16313 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16314 if test "${ac_cv_func_isinf+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16325 double glob_double;
16330 return isinf(glob_double) ? 0 : 1;
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16339 *) ac_try_echo
=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1
>conftest.err
16346 cat conftest.err
>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest
$ac_exeext &&
16352 $as_test_x conftest
$ac_exeext; then
16353 ac_cv_func_isinf
=yes
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.
$ac_ext >&5
16358 ac_cv_func_isinf
=no
16361 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16362 conftest
$ac_exeext conftest.
$ac_ext
16364 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16365 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16367 if test $ac_cv_func_isinf = yes ; then
16369 cat >>confdefs.h
<<\_ACEOF
16370 #define HAVE_ISINF 1
16374 case " $LIBOBJS " in
16375 *" isinf.$ac_objext "* ) ;;
16376 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
16380 # Look for a way to implement a substitute for isinf()
16385 for ac_func
in fpclass fp_class fp_class_d class
16387 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16390 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 cat >conftest.
$ac_ext <<_ACEOF
16396 cat confdefs.h
>>conftest.
$ac_ext
16397 cat >>conftest.
$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16401 #define $ac_func innocuous_$ac_func
16403 /* System header to define __stub macros and hopefully few prototypes,
16404 which can conflict with char $ac_func (); below.
16405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16406 <limits.h> exists even on freestanding compilers. */
16409 # include <limits.h>
16411 # include <assert.h>
16416 /* Override any GCC internal prototype to avoid an error.
16417 Use char because int might match the return type of a GCC
16418 builtin and then its argument prototype would still apply. */
16423 /* The GNU C library defines this for functions which it implements
16424 to always fail with ENOSYS. Some functions are actually named
16425 something starting with __ and the normal name is an alias. */
16426 #if defined __stub_$ac_func || defined __stub___$ac_func
16433 return $ac_func ();
16438 rm -f conftest.
$ac_objext conftest
$ac_exeext
16439 if { (ac_try
="$ac_link"
16440 case "(($ac_try" in
16441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_link") 2>conftest.er1
16447 grep -v '^ *+' conftest.er1 >conftest.err
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } && {
16452 test -z "$ac_c_werror_flag" ||
16453 test ! -s conftest.err
16454 } && test -s conftest$ac_exeext &&
16455 $as_test_x conftest$ac_exeext; then
16456 eval "$as_ac_var=yes"
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 eval "$as_ac_var=no"
16464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16465 conftest$ac_exeext conftest.$ac_ext
16467 ac_res=`eval echo '${'$as_ac_var'}'`
16468 { echo "$as_me:$LINENO: result: $ac_res" >&5
16469 echo "${ECHO_T}$ac_res" >&6; }
16470 if test `eval echo '${'$as_ac_var'}'` = yes; then
16471 cat >>confdefs.h <<_ACEOF
16472 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16480 # Some versions of libedit contain strlcpy(); so disregard that library while
16481 # checking for these standard libc functions.
16482 pgac_save_LIBS="$LIBS"
16483 LIBS=`echo "$LIBS" |
sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16499 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16501 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16515 #define $ac_func innocuous_$ac_func
16517 /* System header to define __stub macros and hopefully few prototypes,
16518 which can conflict with char $ac_func (); below.
16519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16520 <limits.h> exists even on freestanding compilers. */
16523 # include <limits.h>
16525 # include <assert.h>
16530 /* Override any GCC internal prototype to avoid an error.
16531 Use char because int might match the return type of a GCC
16532 builtin and then its argument prototype would still apply. */
16537 /* The GNU C library defines this for functions which it implements
16538 to always fail with ENOSYS. Some functions are actually named
16539 something starting with __ and the normal name is an alias. */
16540 #if defined __stub_$ac_func || defined __stub___$ac_func
16547 return $ac_func ();
16552 rm -f conftest.$ac_objext conftest$ac_exeext
16553 if { (ac_try="$ac_link"
16554 case "(($ac_try" in
16555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16556 *) ac_try_echo
=$ac_try;;
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559 (eval "$ac_link") 2>conftest.er1
16561 grep -v '^ *+' conftest.er1
>conftest.err
16563 cat conftest.err
>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && {
16566 test -z "$ac_c_werror_flag" ||
16567 test ! -s conftest.err
16568 } && test -s conftest
$ac_exeext &&
16569 $as_test_x conftest
$ac_exeext; then
16570 eval "$as_ac_var=yes"
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.
$ac_ext >&5
16575 eval "$as_ac_var=no"
16578 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16579 conftest
$ac_exeext conftest.
$ac_ext
16581 ac_res
=`eval echo '${'$as_ac_var'}'`
16582 { echo "$as_me:$LINENO: result: $ac_res" >&5
16583 echo "${ECHO_T}$ac_res" >&6; }
16584 if test `eval echo '${'$as_ac_var'}'` = yes; then
16585 cat >>confdefs.h
<<_ACEOF
16586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16590 case " $LIBOBJS " in
16591 *" $ac_func.$ac_objext "* ) ;;
16592 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
16601 LIBS
="$pgac_save_LIBS"
16603 # System's version of getaddrinfo(), if any, may be used only if we found
16604 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16605 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16606 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16607 # because we want to use our own getaddrinfo.c on Windows anyway.)
16608 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
16610 for ac_func
in getaddrinfo
16612 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16615 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 cat >conftest.
$ac_ext <<_ACEOF
16621 cat confdefs.h
>>conftest.
$ac_ext
16622 cat >>conftest.
$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16626 #define $ac_func innocuous_$ac_func
16628 /* System header to define __stub macros and hopefully few prototypes,
16629 which can conflict with char $ac_func (); below.
16630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16631 <limits.h> exists even on freestanding compilers. */
16634 # include <limits.h>
16636 # include <assert.h>
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16648 /* The GNU C library defines this for functions which it implements
16649 to always fail with ENOSYS. Some functions are actually named
16650 something starting with __ and the normal name is an alias. */
16651 #if defined __stub_$ac_func || defined __stub___$ac_func
16658 return $ac_func ();
16663 rm -f conftest.
$ac_objext conftest
$ac_exeext
16664 if { (ac_try
="$ac_link"
16665 case "(($ac_try" in
16666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_link") 2>conftest.er1
16672 grep -v '^ *+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 } && test -s conftest$ac_exeext &&
16680 $as_test_x conftest$ac_exeext; then
16681 eval "$as_ac_var=yes"
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 eval "$as_ac_var=no"
16689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16690 conftest$ac_exeext conftest.$ac_ext
16692 ac_res=`eval echo '${'$as_ac_var'}'`
16693 { echo "$as_me:$LINENO: result: $ac_res" >&5
16694 echo "${ECHO_T}$ac_res" >&6; }
16695 if test `eval echo '${'$as_ac_var'}'` = yes; then
16696 cat >>confdefs.h <<_ACEOF
16697 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16701 case " $LIBOBJS " in
16702 *" $ac_func.$ac_objext "* ) ;;
16703 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16712 case " $LIBOBJS " in
16713 *" getaddrinfo.$ac_objext "* ) ;;
16714 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
16720 # Similarly, use system's getopt_long() only if system provides struct option.
16721 # Solaris' getopt() doesn't do what we want for long options, so always use
16722 # our versions on that platform.
16723 if test "$PORTNAME" = "solaris"; then
16724 case " $LIBOBJS " in
16725 *" getopt.$ac_objext "* ) ;;
16726 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
16730 case " $LIBOBJS " in
16731 *" getopt_long.$ac_objext "* ) ;;
16732 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
16736 elif test x"$ac_cv_type_struct_option" = xyes ; then
16738 for ac_func in getopt_long
16740 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 cat >conftest.$ac_ext <<_ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16754 #define $ac_func innocuous_$ac_func
16756 /* System header to define __stub macros and hopefully few prototypes,
16757 which can conflict with char $ac_func (); below.
16758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16759 <limits.h> exists even on freestanding compilers. */
16762 # include <limits.h>
16764 # include <assert.h>
16769 /* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
16776 /* The GNU C library defines this for functions which it implements
16777 to always fail with ENOSYS. Some functions are actually named
16778 something starting with __ and the normal name is an alias. */
16779 #if defined __stub_$ac_func || defined __stub___$ac_func
16786 return $ac_func ();
16791 rm -f conftest.$ac_objext conftest$ac_exeext
16792 if { (ac_try="$ac_link"
16793 case "(($ac_try" in
16794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16795 *) ac_try_echo
=$ac_try;;
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_link") 2>conftest.er1
16800 grep -v '^ *+' conftest.er1
>conftest.err
16802 cat conftest.err
>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest
$ac_exeext &&
16808 $as_test_x conftest
$ac_exeext; then
16809 eval "$as_ac_var=yes"
16811 echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.
$ac_ext >&5
16814 eval "$as_ac_var=no"
16817 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16818 conftest
$ac_exeext conftest.
$ac_ext
16820 ac_res
=`eval echo '${'$as_ac_var'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822 echo "${ECHO_T}$ac_res" >&6; }
16823 if test `eval echo '${'$as_ac_var'}'` = yes; then
16824 cat >>confdefs.h
<<_ACEOF
16825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16829 case " $LIBOBJS " in
16830 *" $ac_func.$ac_objext "* ) ;;
16831 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
16840 case " $LIBOBJS " in
16841 *" getopt_long.$ac_objext "* ) ;;
16842 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16849 if test "$PORTNAME" = "win32"; then
16851 for ac_func
in gettimeofday
16853 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16856 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 cat >conftest.
$ac_ext <<_ACEOF
16862 cat confdefs.h
>>conftest.
$ac_ext
16863 cat >>conftest.
$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16867 #define $ac_func innocuous_$ac_func
16869 /* System header to define __stub macros and hopefully few prototypes,
16870 which can conflict with char $ac_func (); below.
16871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16872 <limits.h> exists even on freestanding compilers. */
16875 # include <limits.h>
16877 # include <assert.h>
16882 /* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
16889 /* The GNU C library defines this for functions which it implements
16890 to always fail with ENOSYS. Some functions are actually named
16891 something starting with __ and the normal name is an alias. */
16892 #if defined __stub_$ac_func || defined __stub___$ac_func
16899 return $ac_func ();
16904 rm -f conftest.
$ac_objext conftest
$ac_exeext
16905 if { (ac_try
="$ac_link"
16906 case "(($ac_try" in
16907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_link") 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } && {
16918 test -z "$ac_c_werror_flag" ||
16919 test ! -s conftest.err
16920 } && test -s conftest$ac_exeext &&
16921 $as_test_x conftest$ac_exeext; then
16922 eval "$as_ac_var=yes"
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 eval "$as_ac_var=no"
16930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16931 conftest$ac_exeext conftest.$ac_ext
16933 ac_res=`eval echo '${'$as_ac_var'}'`
16934 { echo "$as_me:$LINENO: result: $ac_res" >&5
16935 echo "${ECHO_T}$ac_res" >&6; }
16936 if test `eval echo '${'$as_ac_var'}'` = yes; then
16937 cat >>confdefs.h <<_ACEOF
16938 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16942 case " $LIBOBJS " in
16943 *" $ac_func.$ac_objext "* ) ;;
16944 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16952 case " $LIBOBJS " in
16953 *" kill.$ac_objext "* ) ;;
16954 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
16958 case " $LIBOBJS " in
16959 *" open.$ac_objext "* ) ;;
16960 *) LIBOBJS="$LIBOBJS open.$ac_objext"
16964 case " $LIBOBJS " in
16965 *" rand.$ac_objext "* ) ;;
16966 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
16970 case " $LIBOBJS " in
16971 *" win32error.$ac_objext "* ) ;;
16972 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
16977 cat >>confdefs.h <<\_ACEOF
16978 #define HAVE_SYMLINK 1
16983 if test "$with_readline" = yes; then
16984 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
16985 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16993 #ifdef HAVE_READLINE_READLINE_H
16994 # include <readline/readline.h>
16995 #elif defined(HAVE_READLINE_H)
16996 # include <readline.h>
17002 rl_completion_append_character = 'x';
17007 rm -f conftest.$ac_objext conftest$ac_exeext
17008 if { (ac_try="$ac_link"
17009 case "(($ac_try" in
17010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17011 *) ac_try_echo
=$ac_try;;
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_link") 2>conftest.er1
17016 grep -v '^ *+' conftest.er1
>conftest.err
17018 cat conftest.err
>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } && {
17021 test -z "$ac_c_werror_flag" ||
17022 test ! -s conftest.err
17023 } && test -s conftest
$ac_exeext &&
17024 $as_test_x conftest
$ac_exeext; then
17025 { echo "$as_me:$LINENO: result: yes" >&5
17026 echo "${ECHO_T}yes" >&6; }
17028 cat >>confdefs.h
<<\_ACEOF
17029 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.
$ac_ext >&5
17036 { echo "$as_me:$LINENO: result: no" >&5
17037 echo "${ECHO_T}no" >&6; }
17040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17041 conftest
$ac_exeext conftest.
$ac_ext
17044 for ac_func
in rl_completion_matches rl_filename_completion_function
17046 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17049 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 cat >conftest.
$ac_ext <<_ACEOF
17055 cat confdefs.h
>>conftest.
$ac_ext
17056 cat >>conftest.
$ac_ext <<_ACEOF
17057 /* end confdefs.h. */
17058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17060 #define $ac_func innocuous_$ac_func
17062 /* System header to define __stub macros and hopefully few prototypes,
17063 which can conflict with char $ac_func (); below.
17064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065 <limits.h> exists even on freestanding compilers. */
17068 # include <limits.h>
17070 # include <assert.h>
17075 /* Override any GCC internal prototype to avoid an error.
17076 Use char because int might match the return type of a GCC
17077 builtin and then its argument prototype would still apply. */
17082 /* The GNU C library defines this for functions which it implements
17083 to always fail with ENOSYS. Some functions are actually named
17084 something starting with __ and the normal name is an alias. */
17085 #if defined __stub_$ac_func || defined __stub___$ac_func
17092 return $ac_func ();
17097 rm -f conftest.
$ac_objext conftest
$ac_exeext
17098 if { (ac_try
="$ac_link"
17099 case "(($ac_try" in
17100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext &&
17114 $as_test_x conftest$ac_exeext; then
17115 eval "$as_ac_var=yes"
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 eval "$as_ac_var=no"
17123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17124 conftest$ac_exeext conftest.$ac_ext
17126 ac_res=`eval echo '${'$as_ac_var'}'`
17127 { echo "$as_me:$LINENO: result: $ac_res" >&5
17128 echo "${ECHO_T}$ac_res" >&6; }
17129 if test `eval echo '${'$as_ac_var'}'` = yes; then
17130 cat >>confdefs.h <<_ACEOF
17131 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17138 for ac_func in replace_history_entry
17140 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 cat >conftest.$ac_ext <<_ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154 #define $ac_func innocuous_$ac_func
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17162 # include <limits.h>
17164 # include <assert.h>
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17176 /* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17186 return $ac_func ();
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17195 *) ac_try_echo
=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17200 grep -v '^ *+' conftest.er1
>conftest.err
17202 cat conftest.err
>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } && {
17205 test -z "$ac_c_werror_flag" ||
17206 test ! -s conftest.err
17207 } && test -s conftest
$ac_exeext &&
17208 $as_test_x conftest
$ac_exeext; then
17209 eval "$as_ac_var=yes"
17211 echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.
$ac_ext >&5
17214 eval "$as_ac_var=no"
17217 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17218 conftest
$ac_exeext conftest.
$ac_ext
17220 ac_res
=`eval echo '${'$as_ac_var'}'`
17221 { echo "$as_me:$LINENO: result: $ac_res" >&5
17222 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_var'}'` = yes; then
17224 cat >>confdefs.h
<<_ACEOF
17225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17234 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17235 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17236 cat >conftest.
$ac_ext <<_ACEOF
17239 cat confdefs.h
>>conftest.
$ac_ext
17240 cat >>conftest.
$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 #include <setjmp.h>
17246 sigjmp_buf x; sigsetjmp(x, 1);
17251 rm -f conftest.
$ac_objext conftest
$ac_exeext
17252 if { (ac_try
="$ac_link"
17253 case "(($ac_try" in
17254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_link") 2>conftest.er1
17260 grep -v '^ *+' conftest.er1 >conftest.err
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } && {
17265 test -z "$ac_c_werror_flag" ||
17266 test ! -s conftest.err
17267 } && test -s conftest$ac_exeext &&
17268 $as_test_x conftest$ac_exeext; then
17270 cat >>confdefs.h <<\_ACEOF
17271 #define HAVE_SIGSETJMP 1
17274 { echo "$as_me:$LINENO: result: yes" >&5
17275 echo "${ECHO_T}yes" >&6; }
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 { echo "$as_me:$LINENO: result: no" >&5
17281 echo "${ECHO_T}no" >&6; }
17284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17285 conftest$ac_exeext conftest.$ac_ext
17287 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17288 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17289 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 cat >conftest.$ac_ext <<_ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <signal.h>
17299 /* NetBSD declares sys_siglist in unistd.h. */
17300 #ifdef HAVE_UNISTD_H
17301 # include <unistd.h>
17308 #ifndef sys_siglist
17309 (void) sys_siglist;
17316 rm -f conftest.$ac_objext
17317 if { (ac_try="$ac_compile"
17318 case "(($ac_try" in
17319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17320 *) ac_try_echo
=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_compile") 2>conftest.er1
17325 grep -v '^ *+' conftest.er1
>conftest.err
17327 cat conftest.err
>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } && {
17330 test -z "$ac_c_werror_flag" ||
17331 test ! -s conftest.err
17332 } && test -s conftest.
$ac_objext; then
17333 ac_cv_have_decl_sys_siglist
=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.
$ac_ext >&5
17338 ac_cv_have_decl_sys_siglist
=no
17341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17343 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17344 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17345 if test $ac_cv_have_decl_sys_siglist = yes; then
17347 cat >>confdefs.h
<<_ACEOF
17348 #define HAVE_DECL_SYS_SIGLIST 1
17353 cat >>confdefs.h
<<_ACEOF
17354 #define HAVE_DECL_SYS_SIGLIST 0
17363 { echo "$as_me:$LINENO: checking for syslog" >&5
17364 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17365 if test "${ac_cv_func_syslog+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17368 cat >conftest.
$ac_ext <<_ACEOF
17371 cat confdefs.h
>>conftest.
$ac_ext
17372 cat >>conftest.
$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376 #define syslog innocuous_syslog
17378 /* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char syslog (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17384 # include <limits.h>
17386 # include <assert.h>
17391 /* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
17398 /* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401 #if defined __stub_syslog || defined __stub___syslog
17413 rm -f conftest.
$ac_objext conftest
$ac_exeext
17414 if { (ac_try
="$ac_link"
17415 case "(($ac_try" in
17416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420 (eval "$ac_link") 2>conftest.er1
17422 grep -v '^ *+' conftest.er1 >conftest.err
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && {
17427 test -z "$ac_c_werror_flag" ||
17428 test ! -s conftest.err
17429 } && test -s conftest$ac_exeext &&
17430 $as_test_x conftest$ac_exeext; then
17431 ac_cv_func_syslog=yes
17433 echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17436 ac_cv_func_syslog=no
17439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17440 conftest$ac_exeext conftest.$ac_ext
17442 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17443 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17444 if test $ac_cv_func_syslog = yes; then
17445 if test "${ac_cv_header_syslog_h+set}" = set; then
17446 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17447 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17448 if test "${ac_cv_header_syslog_h+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17452 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17454 # Is the header compilable?
17455 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17456 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17457 cat >conftest.$ac_ext <<_ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 $ac_includes_default
17464 #include <syslog.h>
17466 rm -f conftest.$ac_objext
17467 if { (ac_try="$ac_compile"
17468 case "(($ac_try" in
17469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17470 *) ac_try_echo
=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_compile") 2>conftest.er1
17475 grep -v '^ *+' conftest.er1
>conftest.err
17477 cat conftest.err
>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest.
$ac_objext; then
17483 ac_header_compiler
=yes
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.
$ac_ext >&5
17488 ac_header_compiler
=no
17491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17493 echo "${ECHO_T}$ac_header_compiler" >&6; }
17495 # Is the header present?
17496 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17497 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17498 cat >conftest.
$ac_ext <<_ACEOF
17501 cat confdefs.h
>>conftest.
$ac_ext
17502 cat >>conftest.
$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 #include <syslog.h>
17506 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17507 case "(($ac_try" in
17508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17514 grep -v '^ *+' conftest.er1 >conftest.err
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } >/dev/null && {
17519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17522 ac_header_preproc=yes
17524 echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17527 ac_header_preproc=no
17530 rm -f conftest.err conftest.$ac_ext
17531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17532 echo "${ECHO_T}$ac_header_preproc" >&6; }
17534 # So? What about this header?
17535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17537 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17538 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17539 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17540 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17541 ac_header_preproc=yes
17544 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17545 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17547 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17549 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17551 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17553 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17554 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17555 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17557 ## ---------------------------------------- ##
17558 ## Report this to pgsql-bugs@postgresql.org ##
17559 ## ---------------------------------------- ##
17561 ) | sed "s/^/$as_me: WARNING: /" >&2
17564 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17565 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17566 if test "${ac_cv_header_syslog_h+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17569 ac_cv_header_syslog_h=$ac_header_preproc
17571 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17572 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17575 if test $ac_cv_header_syslog_h = yes; then
17577 cat >>confdefs.h <<\_ACEOF
17578 #define HAVE_SYSLOG 1
17587 { echo "$as_me:$LINENO: checking for optreset" >&5
17588 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
17589 if test "${pgac_cv_var_int_optreset+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <unistd.h>
17602 extern int optreset; optreset = 1;
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17611 *) ac_try_echo
=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1
>conftest.err
17618 cat conftest.err
>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest
$ac_exeext &&
17624 $as_test_x conftest
$ac_exeext; then
17625 pgac_cv_var_int_optreset
=yes
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.
$ac_ext >&5
17630 pgac_cv_var_int_optreset
=no
17633 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17634 conftest
$ac_exeext conftest.
$ac_ext
17636 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17637 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
17638 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
17640 cat >>confdefs.h
<<\_ACEOF
17641 #define HAVE_INT_OPTRESET 1
17648 for ac_func
in strtoll strtoq
17650 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17653 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 cat >conftest.
$ac_ext <<_ACEOF
17659 cat confdefs.h
>>conftest.
$ac_ext
17660 cat >>conftest.
$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664 #define $ac_func innocuous_$ac_func
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char $ac_func (); below.
17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 <limits.h> exists even on freestanding compilers. */
17672 # include <limits.h>
17674 # include <assert.h>
17679 /* Override any GCC internal prototype to avoid an error.
17680 Use char because int might match the return type of a GCC
17681 builtin and then its argument prototype would still apply. */
17686 /* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689 #if defined __stub_$ac_func || defined __stub___$ac_func
17696 return $ac_func ();
17701 rm -f conftest.
$ac_objext conftest
$ac_exeext
17702 if { (ac_try
="$ac_link"
17703 case "(($ac_try" in
17704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_link") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } && {
17715 test -z "$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 } && test -s conftest$ac_exeext &&
17718 $as_test_x conftest$ac_exeext; then
17719 eval "$as_ac_var=yes"
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 eval "$as_ac_var=no"
17727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17728 conftest$ac_exeext conftest.$ac_ext
17730 ac_res=`eval echo '${'$as_ac_var'}'`
17731 { echo "$as_me:$LINENO: result: $ac_res" >&5
17732 echo "${ECHO_T}$ac_res" >&6; }
17733 if test `eval echo '${'$as_ac_var'}'` = yes; then
17734 cat >>confdefs.h <<_ACEOF
17735 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17743 for ac_func in strtoull strtouq
17745 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 cat >conftest.$ac_ext <<_ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17759 #define $ac_func innocuous_$ac_func
17761 /* System header to define __stub macros and hopefully few prototypes,
17762 which can conflict with char $ac_func (); below.
17763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17764 <limits.h> exists even on freestanding compilers. */
17767 # include <limits.h>
17769 # include <assert.h>
17774 /* Override any GCC internal prototype to avoid an error.
17775 Use char because int might match the return type of a GCC
17776 builtin and then its argument prototype would still apply. */
17781 /* The GNU C library defines this for functions which it implements
17782 to always fail with ENOSYS. Some functions are actually named
17783 something starting with __ and the normal name is an alias. */
17784 #if defined __stub_$ac_func || defined __stub___$ac_func
17791 return $ac_func ();
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (ac_try="$ac_link"
17798 case "(($ac_try" in
17799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17800 *) ac_try_echo
=$ac_try;;
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_link") 2>conftest.er1
17805 grep -v '^ *+' conftest.er1
>conftest.err
17807 cat conftest.err
>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } && {
17810 test -z "$ac_c_werror_flag" ||
17811 test ! -s conftest.err
17812 } && test -s conftest
$ac_exeext &&
17813 $as_test_x conftest
$ac_exeext; then
17814 eval "$as_ac_var=yes"
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.
$ac_ext >&5
17819 eval "$as_ac_var=no"
17822 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17823 conftest
$ac_exeext conftest.
$ac_ext
17825 ac_res
=`eval echo '${'$as_ac_var'}'`
17826 { echo "$as_me:$LINENO: result: $ac_res" >&5
17827 echo "${ECHO_T}$ac_res" >&6; }
17828 if test `eval echo '${'$as_ac_var'}'` = yes; then
17829 cat >>confdefs.h
<<_ACEOF
17830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17837 # Check for one of atexit() or on_exit()
17839 for ac_func
in atexit
17841 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 cat >conftest.
$ac_ext <<_ACEOF
17850 cat confdefs.h
>>conftest.
$ac_ext
17851 cat >>conftest.
$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17855 #define $ac_func innocuous_$ac_func
17857 /* System header to define __stub macros and hopefully few prototypes,
17858 which can conflict with char $ac_func (); below.
17859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860 <limits.h> exists even on freestanding compilers. */
17863 # include <limits.h>
17865 # include <assert.h>
17870 /* Override any GCC internal prototype to avoid an error.
17871 Use char because int might match the return type of a GCC
17872 builtin and then its argument prototype would still apply. */
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined __stub_$ac_func || defined __stub___$ac_func
17887 return $ac_func ();
17892 rm -f conftest.
$ac_objext conftest
$ac_exeext
17893 if { (ac_try
="$ac_link"
17894 case "(($ac_try" in
17895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17901 grep -v '^ *+' conftest.er1 >conftest.err
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } && {
17906 test -z "$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17908 } && test -s conftest$ac_exeext &&
17909 $as_test_x conftest$ac_exeext; then
17910 eval "$as_ac_var=yes"
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 eval "$as_ac_var=no"
17918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17919 conftest$ac_exeext conftest.$ac_ext
17921 ac_res=`eval echo '${'$as_ac_var'}'`
17922 { echo "$as_me:$LINENO: result: $ac_res" >&5
17923 echo "${ECHO_T}$ac_res" >&6; }
17924 if test `eval echo '${'$as_ac_var'}'` = yes; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17931 for ac_func in on_exit
17933 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 cat >conftest.$ac_ext <<_ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17947 #define $ac_func innocuous_$ac_func
17949 /* System header to define __stub macros and hopefully few prototypes,
17950 which can conflict with char $ac_func (); below.
17951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17952 <limits.h> exists even on freestanding compilers. */
17955 # include <limits.h>
17957 # include <assert.h>
17962 /* Override any GCC internal prototype to avoid an error.
17963 Use char because int might match the return type of a GCC
17964 builtin and then its argument prototype would still apply. */
17969 /* The GNU C library defines this for functions which it implements
17970 to always fail with ENOSYS. Some functions are actually named
17971 something starting with __ and the normal name is an alias. */
17972 #if defined __stub_$ac_func || defined __stub___$ac_func
17979 return $ac_func ();
17984 rm -f conftest.$ac_objext conftest$ac_exeext
17985 if { (ac_try="$ac_link"
17986 case "(($ac_try" in
17987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17988 *) ac_try_echo
=$ac_try;;
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_link") 2>conftest.er1
17993 grep -v '^ *+' conftest.er1
>conftest.err
17995 cat conftest.err
>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } && {
17998 test -z "$ac_c_werror_flag" ||
17999 test ! -s conftest.err
18000 } && test -s conftest
$ac_exeext &&
18001 $as_test_x conftest
$ac_exeext; then
18002 eval "$as_ac_var=yes"
18004 echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.
$ac_ext >&5
18007 eval "$as_ac_var=no"
18010 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18011 conftest
$ac_exeext conftest.
$ac_ext
18013 ac_res
=`eval echo '${'$as_ac_var'}'`
18014 { echo "$as_me:$LINENO: result: $ac_res" >&5
18015 echo "${ECHO_T}$ac_res" >&6; }
18016 if test `eval echo '${'$as_ac_var'}'` = yes; then
18017 cat >>confdefs.h
<<_ACEOF
18018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18022 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18023 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18024 { (exit 1); exit 1; }; }
18033 for ac_func
in fseeko
18035 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18038 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 cat >conftest.
$ac_ext <<_ACEOF
18044 cat confdefs.h
>>conftest.
$ac_ext
18045 cat >>conftest.
$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18049 #define $ac_func innocuous_$ac_func
18051 /* System header to define __stub macros and hopefully few prototypes,
18052 which can conflict with char $ac_func (); below.
18053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054 <limits.h> exists even on freestanding compilers. */
18057 # include <limits.h>
18059 # include <assert.h>
18064 /* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18071 /* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074 #if defined __stub_$ac_func || defined __stub___$ac_func
18081 return $ac_func ();
18086 rm -f conftest.
$ac_objext conftest
$ac_exeext
18087 if { (ac_try
="$ac_link"
18088 case "(($ac_try" in
18089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && {
18100 test -z "$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 } && test -s conftest$ac_exeext &&
18103 $as_test_x conftest$ac_exeext; then
18104 eval "$as_ac_var=yes"
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 eval "$as_ac_var=no"
18112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18113 conftest$ac_exeext conftest.$ac_ext
18115 ac_res=`eval echo '${'$as_ac_var'}'`
18116 { echo "$as_me:$LINENO: result: $ac_res" >&5
18117 echo "${ECHO_T}$ac_res" >&6; }
18118 if test `eval echo '${'$as_ac_var'}'` = yes; then
18119 cat >>confdefs.h <<_ACEOF
18120 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18124 case " $LIBOBJS " in
18125 *" $ac_func.$ac_objext "* ) ;;
18126 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18135 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18138 cat >>confdefs.h <<\_ACEOF
18139 #define HAVE_FSEEKO 1
18142 ac_cv_func_fseeko=yes;;
18144 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18145 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18146 if test "${ac_cv_sys_largefile_source+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <sys/types.h> /* for off_t */
18161 int (*fp) (FILE *, off_t, int) = fseeko;
18162 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18171 *) ac_try_echo
=$ac_try;;
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1
>conftest.err
18178 cat conftest.err
>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest
$ac_exeext &&
18184 $as_test_x conftest
$ac_exeext; then
18185 ac_cv_sys_largefile_source
=no
; break
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.
$ac_ext >&5
18193 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18194 conftest
$ac_exeext conftest.
$ac_ext
18195 cat >conftest.
$ac_ext <<_ACEOF
18198 cat confdefs.h
>>conftest.
$ac_ext
18199 cat >>conftest.
$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 #define _LARGEFILE_SOURCE 1
18202 #include <sys/types.h> /* for off_t */
18207 int (*fp) (FILE *, off_t, int) = fseeko;
18208 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18213 rm -f conftest.
$ac_objext conftest
$ac_exeext
18214 if { (ac_try
="$ac_link"
18215 case "(($ac_try" in
18216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_link") 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext &&
18230 $as_test_x conftest$ac_exeext; then
18231 ac_cv_sys_largefile_source=1; break
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18240 conftest$ac_exeext conftest.$ac_ext
18241 ac_cv_sys_largefile_source=unknown
18245 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18246 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18247 case $ac_cv_sys_largefile_source in #(
18250 cat >>confdefs.h <<_ACEOF
18251 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18257 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18258 # in glibc 2.1.3, but that breaks too many other things.
18259 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18260 if test $ac_cv_sys_largefile_source != unknown; then
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE_FSEEKO 1
18274 # For each platform, we need to know about any special compile and link
18275 # libraries, and whether the normal C function names are thread-safe.
18276 # See the comment at the top of src/port/thread.c for more information.
18277 # WIN32 doesn't need the pthread tests; it always uses threads
18278 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18283 ac_cpp='$CPP $CPPFLAGS'
18284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18290 # We used to check for pthread.h first, but this fails if pthread.h
18291 # requires special compiler flags (e.g. on True64 or Sequent).
18292 # It gets checked for in the link test anyway.
18294 # First of all, check if the user has set any of the PTHREAD_LIBS,
18295 # etcetera environment variables, and if threads linking works using
18297 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18298 save_CFLAGS="$CFLAGS"
18299 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18301 LIBS="$PTHREAD_LIBS $LIBS"
18302 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18303 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18304 cat >conftest.$ac_ext <<_ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18317 char pthread_join ();
18321 return pthread_join ();
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18330 *) ac_try_echo
=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18335 grep -v '^ *+' conftest.er1
>conftest.err
18337 cat conftest.err
>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest
$ac_exeext &&
18343 $as_test_x conftest
$ac_exeext; then
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.
$ac_ext >&5
18352 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18353 conftest
$ac_exeext conftest.
$ac_ext
18354 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18355 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18356 if test x
"$acx_pthread_ok" = xno
; then
18361 CFLAGS
="$save_CFLAGS"
18364 # We must check for the threads library under a number of different
18365 # names; the ordering is very important because some systems
18366 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18367 # libraries is broken (non-POSIX).
18369 # Create a list of thread flags to try. Items starting with a "-" are
18370 # C compiler flags, and other items are library names, except for "none"
18371 # which indicates that we try without any flags at all, and "pthread-config"
18372 # which is a program returning the flags for the Pth emulation library.
18374 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18376 # The ordering *is* (sometimes) important. Some notes on the
18377 # individual items follow:
18379 # pthreads: AIX (must check this before -lpthread)
18380 # none: in case threads are in libc; should be tried before -Kthread and
18381 # other compiler flags to prevent continual compiler warnings
18382 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18383 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18384 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18385 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18386 # -pthreads: Solaris/gcc
18387 # -mthreads: Mingw32/gcc, Lynx/gcc
18388 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18389 # doesn't hurt to check since this sometimes defines pthreads too;
18390 # also defines -D_REENTRANT)
18391 # pthread: Linux, etcetera
18392 # --thread-safe: KAI C++
18393 # pthread-config: use pthread-config program (for GNU Pth library)
18395 case "${host_cpu}-${host_os}" in
18398 # On Solaris (at least, for some versions), libc contains stubbed
18399 # (non-functional) versions of the pthreads routines, so link-based
18400 # tests will erroneously succeed. (We need to link with -pthread or
18401 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18402 # a function called by this macro, so we could check for that, but
18403 # who knows whether they'll stub that too in a future libc.) So,
18404 # we'll just look for -pthreads and -lpthread first:
18406 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
18410 if test x
"$acx_pthread_ok" = xno
; then
18411 for flag
in $acx_pthread_flags; do
18413 tryPTHREAD_CFLAGS
=""
18417 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18418 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18422 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18423 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18424 tryPTHREAD_CFLAGS
="$flag"
18428 # skip this if we already have flags defined, for PostgreSQL
18429 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
18430 # Extract the first word of "pthread-config", so it can be a program name with args.
18431 set dummy pthread-config
; ac_word
=$2
18432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18434 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18437 if test -n "$acx_pthread_config"; then
18438 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
18440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18441 for as_dir
in $PATH
18444 test -z "$as_dir" && as_dir
=.
18445 for ac_exec_ext
in '' $ac_executable_extensions; do
18446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18447 ac_cv_prog_acx_pthread_config
="yes"
18448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18455 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
18458 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
18459 if test -n "$acx_pthread_config"; then
18460 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18461 echo "${ECHO_T}$acx_pthread_config" >&6; }
18463 { echo "$as_me:$LINENO: result: no" >&5
18464 echo "${ECHO_T}no" >&6; }
18468 if test x
"$acx_pthread_config" = xno
; then continue; fi
18469 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
18470 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
18474 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18475 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18476 tryPTHREAD_LIBS
="-l$flag"
18481 save_CFLAGS
="$CFLAGS"
18482 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18483 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18485 # Check for various functions. We must include pthread.h,
18486 # since some functions may be macros. (On the Sequent, we
18487 # need a special flag -Kthread to make this header compile.)
18488 # We check for pthread_join because it is in -lpthread on IRIX
18489 # while pthread_create is in libc. We check for pthread_attr_init
18490 # due to DEC craziness with -lpthreads. We check for
18491 # pthread_cleanup_push because it is one of the few pthread
18492 # functions on Solaris that doesn't have a non-functional libc stub.
18493 # We try pthread_create on general principles.
18494 cat >conftest.
$ac_ext <<_ACEOF
18497 cat confdefs.h
>>conftest.
$ac_ext
18498 cat >>conftest.
$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 #include <pthread.h>
18504 pthread_t th; pthread_join(th, 0);
18505 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18506 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18511 rm -f conftest.
$ac_objext conftest
$ac_exeext
18512 if { (ac_try
="$ac_link"
18513 case "(($ac_try" in
18514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && {
18525 test -z "$ac_c_werror_flag" ||
18526 test ! -s conftest.err
18527 } && test -s conftest$ac_exeext &&
18528 $as_test_x conftest$ac_exeext; then
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18538 conftest$ac_exeext conftest.$ac_ext
18540 if test "x$acx_pthread_ok" = xyes; then
18541 # Don't use options that are ignored by the compiler.
18542 # We find them by checking stderror.
18543 cat >conftest.$ac_ext <<_ACEOF
18545 main (int argc, char **argv)
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18554 # we continue with more flags because Linux needs -lpthread
18555 # for libpq builds on PostgreSQL. The test above only
18556 # tests for building binaries, not shared libraries.
18557 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18558 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18559 else acx_pthread_ok=no
18564 CFLAGS="$save_CFLAGS"
18566 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18567 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18571 # Various other checks:
18572 if test "x$acx_pthread_ok" = xyes; then
18574 LIBS="$PTHREAD_LIBS $LIBS"
18575 save_CFLAGS="$CFLAGS"
18576 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18578 # Detect AIX lossage: threads are created detached by default
18579 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18580 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18581 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
18582 cat >conftest.$ac_ext <<_ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <pthread.h>
18592 int attr=PTHREAD_CREATE_JOINABLE;
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18601 *) ac_try_echo
=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1
>conftest.err
18608 cat conftest.err
>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest
$ac_exeext &&
18614 $as_test_x conftest
$ac_exeext; then
18615 ok
=PTHREAD_CREATE_JOINABLE
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.
$ac_ext >&5
18623 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18624 conftest
$ac_exeext conftest.
$ac_ext
18625 if test x
"$ok" = xunknown
; then
18626 cat >conftest.
$ac_ext <<_ACEOF
18629 cat confdefs.h
>>conftest.
$ac_ext
18630 cat >>conftest.
$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 #include <pthread.h>
18636 int attr=PTHREAD_CREATE_UNDETACHED;
18641 rm -f conftest.
$ac_objext conftest
$ac_exeext
18642 if { (ac_try
="$ac_link"
18643 case "(($ac_try" in
18644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18645 *) ac_try_echo=$ac_try;;
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648 (eval "$ac_link") 2>conftest.er1
18650 grep -v '^ *+' conftest.er1 >conftest.err
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } && {
18655 test -z "$ac_c_werror_flag" ||
18656 test ! -s conftest.err
18657 } && test -s conftest$ac_exeext &&
18658 $as_test_x conftest$ac_exeext; then
18659 ok=PTHREAD_CREATE_UNDETACHED
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18668 conftest$ac_exeext conftest.$ac_ext
18670 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
18672 cat >>confdefs.h <<\_ACEOF
18673 #define PTHREAD_CREATE_JOINABLE $ok
18677 { echo "$as_me:$LINENO: result: ${ok}" >&5
18678 echo "${ECHO_T}${ok}" >&6; }
18679 if test x"$ok" = xunknown; then
18680 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18681 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18684 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18685 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
18687 # We always add these in PostgreSQL
18688 # case "${host_cpu}-${host_os}" in
18689 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18690 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18692 { echo "$as_me:$LINENO: result: ${flag}" >&5
18693 echo "${ECHO_T}${flag}" >&6; }
18694 if test "x$flag" != xno; then
18695 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18699 CFLAGS="$save_CFLAGS"
18701 # Supporting cc_r would require a special CC in all places that
18702 # use libpq, and that is ugly, so we don't do it. Users can still
18703 # define their compiler as cc_r to do thread builds of everything.
18704 # More AIX lossage: must compile with cc_r
18705 # Extract the first word of "cc_r", so it can be a program name with args.
18706 set dummy cc_r; ac_word=$2
18707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18709 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 if test -n "$PTHREAD_CC"; then
18713 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18716 for as_dir in $PATH
18719 test -z "$as_dir" && as_dir=.
18720 for ac_exec_ext in '' $ac_executable_extensions; do
18721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18722 ac_cv_prog_PTHREAD_CC="cc_r"
18723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18730 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18733 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18734 if test -n "$PTHREAD_CC"; then
18735 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18736 echo "${ECHO_T}$PTHREAD_CC" >&6; }
18738 { echo "$as_me:$LINENO: result: no" >&5
18739 echo "${ECHO_T}no" >&6; }
18751 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18752 if test x"$acx_pthread_ok" = xyes; then
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE_PTHREAD 1
18764 ac_cpp='$CPP $CPPFLAGS'
18765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18771 # Some platforms use these, so just defineed them. They can't hurt if they
18772 # are not supported.
18773 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18776 # At this point, we don't want to muck with the compiler name for threading.
18777 # Let's see who fails, perhaps AIX. 2004-04-23
18778 if test "$PTHREAD_CC" != "$CC"; then
18779 { { echo "$as_me:$LINENO: error:
18780 PostgreSQL does not support platforms that require a special compiler
18781 for thread safety." >&5
18782 echo "$as_me: error:
18783 PostgreSQL does not support platforms that require a special compiler
18784 for thread safety." >&2;}
18785 { (exit 1); exit 1; }; }
18788 if test "$THREAD_SUPPORT" = no; then
18789 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18790 This platform is known to not support thread-safe programs. For details,
18791 compile and run src/bin/pg_thread_test." >&5
18792 echo "$as_me: error: cannot enable threads on this platform
18793 This platform is known to not support thread-safe programs. For details,
18794 compile and run src/bin/pg_thread_test." >&2;}
18795 { (exit 1); exit 1; }; }
18798 # Check for *_r functions
18801 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18802 LIBS="$LIBS $PTHREAD_LIBS"
18804 if test "$PORTNAME" != "win32"; then
18805 if test "${ac_cv_header_pthread_h+set}" = set; then
18806 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18807 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18808 if test "${ac_cv_header_pthread_h+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18811 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18812 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18814 # Is the header compilable?
18815 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
18816 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
18817 cat >conftest.$ac_ext <<_ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 $ac_includes_default
18824 #include <pthread.h>
18826 rm -f conftest.$ac_objext
18827 if { (ac_try="$ac_compile"
18828 case "(($ac_try" in
18829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18830 *) ac_try_echo
=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_compile") 2>conftest.er1
18835 grep -v '^ *+' conftest.er1
>conftest.err
18837 cat conftest.err
>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest.
$ac_objext; then
18843 ac_header_compiler
=yes
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.
$ac_ext >&5
18848 ac_header_compiler
=no
18851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18853 echo "${ECHO_T}$ac_header_compiler" >&6; }
18855 # Is the header present?
18856 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
18857 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
18858 cat >conftest.
$ac_ext <<_ACEOF
18861 cat confdefs.h
>>conftest.
$ac_ext
18862 cat >>conftest.
$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 #include <pthread.h>
18866 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18867 case "(($ac_try" in
18868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18874 grep -v '^ *+' conftest.er1 >conftest.err
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } >/dev/null && {
18879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18880 test ! -s conftest.err
18882 ac_header_preproc=yes
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_header_preproc=no
18890 rm -f conftest.err conftest.$ac_ext
18891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18892 echo "${ECHO_T}$ac_header_preproc" >&6; }
18894 # So? What about this header?
18895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18897 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
18898 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18899 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
18900 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
18901 ac_header_preproc=yes
18904 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
18905 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
18906 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
18907 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
18908 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
18909 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
18910 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
18911 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
18913 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
18915 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
18917 ## ---------------------------------------- ##
18918 ## Report this to pgsql-bugs@postgresql.org ##
18919 ## ---------------------------------------- ##
18921 ) | sed "s/^/$as_me: WARNING: /" >&2
18924 { echo "$as_me:$LINENO: checking for pthread.h" >&5
18925 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
18926 if test "${ac_cv_header_pthread_h+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 ac_cv_header_pthread_h=$ac_header_preproc
18931 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18932 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
18935 if test $ac_cv_header_pthread_h = yes; then
18938 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
18939 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
18940 { (exit 1); exit 1; }; }
18949 for ac_func in strerror_r getpwuid_r gethostbyname_r
18951 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 cat >conftest.$ac_ext <<_ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18965 #define $ac_func innocuous_$ac_func
18967 /* System header to define __stub macros and hopefully few prototypes,
18968 which can conflict with char $ac_func (); below.
18969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18970 <limits.h> exists even on freestanding compilers. */
18973 # include <limits.h>
18975 # include <assert.h>
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined __stub_$ac_func || defined __stub___$ac_func
18997 return $ac_func ();
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19006 *) ac_try_echo
=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19011 grep -v '^ *+' conftest.er1
>conftest.err
19013 cat conftest.err
>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && {
19016 test -z "$ac_c_werror_flag" ||
19017 test ! -s conftest.err
19018 } && test -s conftest
$ac_exeext &&
19019 $as_test_x conftest
$ac_exeext; then
19020 eval "$as_ac_var=yes"
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.
$ac_ext >&5
19025 eval "$as_ac_var=no"
19028 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19029 conftest
$ac_exeext conftest.
$ac_ext
19031 ac_res
=`eval echo '${'$as_ac_var'}'`
19032 { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19034 if test `eval echo '${'$as_ac_var'}'` = yes; then
19035 cat >>confdefs.h
<<_ACEOF
19036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19043 # Do test here with the proper thread flags
19044 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19045 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19046 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 cat >conftest.
$ac_ext <<_ACEOF
19052 cat confdefs.h
>>conftest.
$ac_ext
19053 cat >>conftest.
$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 #include <sys/types.h>
19061 struct passwd *space;
19064 struct passwd **result;
19065 getpwuid_r(uid, space, buf, bufsize, result);
19070 rm -f conftest.
$ac_objext
19071 if { (ac_try
="$ac_compile"
19072 case "(($ac_try" in
19073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_compile") 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest.$ac_objext; then
19087 pgac_func_getpwuid_r_5arg=yes
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 pgac_func_getpwuid_r_5arg=no
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 { echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
19098 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6; }
19099 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
19101 cat >>confdefs.h <<\_ACEOF
19102 #define GETPWUID_R_5ARG
19107 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19108 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19109 if test "${pgac_func_strerror_r_int+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 cat >conftest.$ac_ext <<_ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 #include <string.h>
19123 int strerror_r(int, char *, size_t);
19125 /* Older AIX has 'int' for the third argument so we don't test the args. */
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19136 *) ac_try_echo
=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_compile") 2>conftest.er1
19141 grep -v '^ *+' conftest.er1
>conftest.err
19143 cat conftest.err
>&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest.
$ac_objext; then
19149 pgac_func_strerror_r_int
=yes
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.
$ac_ext >&5
19154 pgac_func_strerror_r_int
=no
19157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19159 { echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
19160 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6; }
19161 if test x
"$pgac_func_strerror_r_int" = xyes
; then
19163 cat >>confdefs.h
<<\_ACEOF
19164 #define STRERROR_R_INT
19174 # do not use values from template file
19183 # We can test for libldap_r only after we know PTHREAD_LIBS
19184 if test "$with_ldap" = yes ; then
19186 if test "$PORTNAME" != "win32"; then
19188 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19189 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19190 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 ac_check_lib_save_LIBS
=$LIBS
19194 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
19195 cat >conftest.
$ac_ext <<_ACEOF
19198 cat confdefs.h
>>conftest.
$ac_ext
19199 cat >>conftest.
$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19202 /* Override any GCC internal prototype to avoid an error.
19203 Use char because int might match the return type of a GCC
19204 builtin and then its argument prototype would still apply. */
19212 return ldap_bind ();
19217 rm -f conftest.
$ac_objext conftest
$ac_exeext
19218 if { (ac_try
="$ac_link"
19219 case "(($ac_try" in
19220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_link") 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } && {
19231 test -z "$ac_c_werror_flag" ||
19232 test ! -s conftest.err
19233 } && test -s conftest$ac_exeext &&
19234 $as_test_x conftest$ac_exeext; then
19235 ac_cv_lib_ldap_ldap_bind=yes
19237 echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19240 ac_cv_lib_ldap_ldap_bind=no
19243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19244 conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19247 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19248 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19249 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19250 cat >>confdefs.h <<_ACEOF
19251 #define HAVE_LIBLDAP 1
19254 LIBS="-lldap $LIBS"
19257 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19258 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19259 { (exit 1); exit 1; }; }
19262 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19263 if test "$enable_thread_safety" = yes; then
19264 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19266 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19267 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19268 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 ac_check_lib_save_LIBS=$LIBS
19272 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19280 /* Override any GCC internal prototype to avoid an error.
19281 Use char because int might match the return type of a GCC
19282 builtin and then its argument prototype would still apply. */
19286 char ldap_simple_bind ();
19290 return ldap_simple_bind ();
19295 rm -f conftest.$ac_objext conftest$ac_exeext
19296 if { (ac_try="$ac_link"
19297 case "(($ac_try" in
19298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19299 *) ac_try_echo
=$ac_try;;
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_link") 2>conftest.er1
19304 grep -v '^ *+' conftest.er1
>conftest.err
19306 cat conftest.err
>&5
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); } && {
19309 test -z "$ac_c_werror_flag" ||
19310 test ! -s conftest.err
19311 } && test -s conftest
$ac_exeext &&
19312 $as_test_x conftest
$ac_exeext; then
19313 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
19315 echo "$as_me: failed program was:" >&5
19316 sed 's/^/| /' conftest.
$ac_ext >&5
19318 ac_cv_lib_ldap_r_ldap_simple_bind
=no
19321 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19322 conftest
$ac_exeext conftest.
$ac_ext
19323 LIBS
=$ac_check_lib_save_LIBS
19325 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19326 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19327 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19328 cat >>confdefs.h
<<_ACEOF
19329 #define HAVE_LIBLDAP_R 1
19332 LIBS
="-lldap_r $LIBS"
19335 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19336 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19337 { (exit 1); exit 1; }; }
19340 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
19342 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
19346 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19347 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19348 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 ac_check_lib_save_LIBS
=$LIBS
19352 LIBS
="-lwldap32 $LIBS"
19353 cat >conftest.
$ac_ext <<_ACEOF
19356 cat confdefs.h
>>conftest.
$ac_ext
19357 cat >>conftest.
$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19360 /* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19370 return ldap_bind ();
19375 rm -f conftest.
$ac_objext conftest
$ac_exeext
19376 if { (ac_try
="$ac_link"
19377 case "(($ac_try" in
19378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_link") 2>conftest.er1
19384 grep -v '^ *+' conftest.er1 >conftest.err
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } && {
19389 test -z "$ac_c_werror_flag" ||
19390 test ! -s conftest.err
19391 } && test -s conftest$ac_exeext &&
19392 $as_test_x conftest$ac_exeext; then
19393 ac_cv_lib_wldap32_ldap_bind=yes
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_cv_lib_wldap32_ldap_bind=no
19401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19405 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19406 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19407 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19408 cat >>confdefs.h <<_ACEOF
19409 #define HAVE_LIBWLDAP32 1
19412 LIBS="-lwldap32 $LIBS"
19415 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19416 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19417 { (exit 1); exit 1; }; }
19420 LDAP_LIBS_FE="-lwldap32"
19421 LDAP_LIBS_BE="-lwldap32"
19429 # This test makes sure that run tests work at all. Sometimes a shared
19430 # library is found by the linker, but the runtime linker can't find it.
19431 # This check should come after all modifications of compiler or linker
19432 # variables, and before any other run tests.
19433 { echo "$as_me:$LINENO: checking test program" >&5
19434 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19435 if test "$cross_compiling" = yes; then
19436 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19437 echo "${ECHO_T}cross-compiling" >&6; }
19439 cat >conftest.$ac_ext <<_ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445 int main() { return 0; }
19447 rm -f conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19451 *) ac_try_echo
=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19458 { (case "(($ac_try" in
19459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_try") 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 { echo "$as_me:$LINENO: result: ok" >&5
19468 echo "${ECHO_T}ok" >&6; }
19470 echo "$as_me: program exited with status $ac_status" >&5
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ( exit $ac_status )
19475 { echo "$as_me:$LINENO: result: failed" >&5
19476 echo "${ECHO_T}failed" >&6; }
19477 { { echo "$as_me:$LINENO: error:
19478 Could not execute a simple test program. This may be a problem
19479 related to locating shared libraries. Check the file 'config.log'
19480 for the exact reason." >&5
19481 echo "$as_me: error:
19482 Could not execute a simple test program. This may be a problem
19483 related to locating shared libraries. Check the file 'config.log'
19484 for the exact reason." >&2;}
19485 { (exit 1); exit 1; }; }
19487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19492 # --------------------
19493 # Run tests below here
19494 # --------------------
19496 # Force use of our snprintf if system's doesn't do arg control
19497 # See comment above at snprintf test for details.
19498 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19499 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19500 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19501 if test "${pgac_cv_printf_arg_control+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 if test "$cross_compiling" = yes; then
19505 pgac_cv_printf_arg_control=cross
19507 cat >conftest.$ac_ext <<_ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19514 #include <string.h>
19520 /* can it swap arguments? */
19521 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19522 if (strcmp(buf, "4 3") != 0)
19527 rm -f conftest$ac_exeext
19528 if { (ac_try="$ac_link"
19529 case "(($ac_try" in
19530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19531 *) ac_try_echo
=$ac_try;;
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_link") 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19538 { (case "(($ac_try" in
19539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 pgac_cv_printf_arg_control=yes
19549 echo "$as_me: program exited with status $ac_status" >&5
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ( exit $ac_status )
19554 pgac_cv_printf_arg_control=no
19556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19562 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19563 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19565 if test $pgac_cv_printf_arg_control != yes ; then
19566 pgac_need_repl_snprintf=yes
19572 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19573 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
19574 if test "${pgac_cv_type_long_int_64+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 if test "$cross_compiling" = yes; then
19578 # If cross-compiling, check the size reported by the compiler and
19579 # trust that the arithmetic works.
19580 cat >conftest.$ac_ext <<_ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19590 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19597 rm -f conftest.$ac_objext
19598 if { (ac_try="$ac_compile"
19599 case "(($ac_try" in
19600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19601 *) ac_try_echo
=$ac_try;;
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_compile") 2>conftest.er1
19606 grep -v '^ *+' conftest.er1
>conftest.err
19608 cat conftest.err
>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } && {
19611 test -z "$ac_c_werror_flag" ||
19612 test ! -s conftest.err
19613 } && test -s conftest.
$ac_objext; then
19614 pgac_cv_type_long_int_64
=yes
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.
$ac_ext >&5
19619 pgac_cv_type_long_int_64
=no
19622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19624 cat >conftest.
$ac_ext <<_ACEOF
19627 cat confdefs.h
>>conftest.
$ac_ext
19628 cat >>conftest.
$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 typedef long int ac_int64;
19633 * These are globals to discourage the compiler from folding all the
19634 * arithmetic tests down to compile-time constants.
19636 ac_int64 a = 20000001;
19637 ac_int64 b = 40000005;
19639 int does_int64_work()
19643 if (sizeof(ac_int64) != 8)
19644 return 0; /* definitely not the right size */
19646 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19654 exit(! does_int64_work());
19657 rm -f conftest
$ac_exeext
19658 if { (ac_try
="$ac_link"
19659 case "(($ac_try" in
19660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_link") 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19668 { (case "(($ac_try" in
19669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19670 *) ac_try_echo
=$ac_try;;
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_try") 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 pgac_cv_type_long_int_64
=yes
19679 echo "$as_me: program exited with status $ac_status" >&5
19680 echo "$as_me: failed program was:" >&5
19681 sed 's/^/| /' conftest.
$ac_ext >&5
19683 ( exit $ac_status )
19684 pgac_cv_type_long_int_64
=no
19686 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19691 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19692 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
19694 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
19695 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
19697 cat >>confdefs.h
<<\_ACEOF
19698 #define HAVE_LONG_INT_64 1
19704 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
19705 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19706 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
19707 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 if test "$cross_compiling" = yes; then
19711 # If cross-compiling, check the size reported by the compiler and
19712 # trust that the arithmetic works.
19713 cat >conftest.
$ac_ext <<_ACEOF
19716 cat confdefs.h
>>conftest.
$ac_ext
19717 cat >>conftest.
$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19723 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19730 rm -f conftest.
$ac_objext
19731 if { (ac_try
="$ac_compile"
19732 case "(($ac_try" in
19733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_compile") 2>conftest.er1
19739 grep -v '^ *+' conftest.er1 >conftest.err
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && {
19744 test -z "$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 } && test -s conftest.$ac_objext; then
19747 pgac_cv_type_long_long_int_64=yes
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19752 pgac_cv_type_long_long_int_64=no
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 typedef long long int ac_int64;
19766 * These are globals to discourage the compiler from folding all the
19767 * arithmetic tests down to compile-time constants.
19769 ac_int64 a = 20000001;
19770 ac_int64 b = 40000005;
19772 int does_int64_work()
19776 if (sizeof(ac_int64) != 8)
19777 return 0; /* definitely not the right size */
19779 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19787 exit(! does_int64_work());
19790 rm -f conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19794 *) ac_try_echo
=$ac_try;;
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_link") 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19801 { (case "(($ac_try" in
19802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_try") 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 pgac_cv_type_long_long_int_64=yes
19812 echo "$as_me: program exited with status $ac_status" >&5
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ( exit $ac_status )
19817 pgac_cv_type_long_long_int_64=no
19819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19824 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19825 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
19827 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
19828 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_LONG_LONG_INT_64 1
19840 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19848 #define INT64CONST(x) x##LL
19849 long long int foo = INT64CONST(0x1234567890123456);
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19863 *) ac_try_echo
=$ac_try;;
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_compile") 2>conftest.er1
19868 grep -v '^ *+' conftest.er1
>conftest.err
19870 cat conftest.err
>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } && {
19873 test -z "$ac_c_werror_flag" ||
19874 test ! -s conftest.err
19875 } && test -s conftest.
$ac_objext; then
19877 cat >>confdefs.h
<<\_ACEOF
19878 #define HAVE_LL_CONSTANTS 1
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.
$ac_ext >&5
19888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19892 # If we found "long int" is 64 bits, assume snprintf handles it. If
19893 # we found we need to use "long long int", better check. We cope with
19894 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
19895 # work, fall back to our own snprintf emulation (which we know uses %lld).
19897 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
19898 if test $pgac_need_repl_snprintf = no
; then
19899 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
19900 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
19901 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 for pgac_format
in '%lld' '%qd' '%I64d'; do
19905 if test "$cross_compiling" = yes; then
19906 pgac_cv_snprintf_long_long_int_format
=cross
; break
19908 cat >conftest.
$ac_ext <<_ACEOF
19911 cat confdefs.h
>>conftest.
$ac_ext
19912 cat >>conftest.
$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19915 typedef long long int ac_int64;
19916 #define INT64_FORMAT "$pgac_format"
19918 ac_int64 a = 20000001;
19919 ac_int64 b = 40000005;
19921 int does_int64_snprintf_work()
19926 if (sizeof(ac_int64) != 8)
19927 return 0; /* doesn't look like the right size */
19930 snprintf(buf, 100, INT64_FORMAT, c);
19931 if (strcmp(buf, "800000140000005") != 0)
19932 return 0; /* either multiply or snprintf is busted */
19936 exit(! does_int64_snprintf_work());
19939 rm -f conftest
$ac_exeext
19940 if { (ac_try
="$ac_link"
19941 case "(($ac_try" in
19942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19946 (eval "$ac_link") 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19950 { (case "(($ac_try" in
19951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19952 *) ac_try_echo
=$ac_try;;
19954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_try") 2>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
19961 echo "$as_me: program exited with status $ac_status" >&5
19962 echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.
$ac_ext >&5
19966 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19973 LONG_LONG_INT_FORMAT
=''
19975 case $pgac_cv_snprintf_long_long_int_format in
19976 cross
) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
19977 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
19978 ?
*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
19979 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
19980 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
19981 *) { echo "$as_me:$LINENO: result: none" >&5
19982 echo "${ECHO_T}none" >&6; };;
19984 if test "$LONG_LONG_INT_FORMAT" = ""; then
19985 # Force usage of our own snprintf, since system snprintf is broken
19986 pgac_need_repl_snprintf
=yes
19987 LONG_LONG_INT_FORMAT
='%lld'
19990 # Here if we previously decided we needed to use our own snprintf
19991 LONG_LONG_INT_FORMAT
='%lld'
19993 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
19994 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
19995 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
19997 # Here if we are not using 'long long int' at all
19998 INT64_FORMAT
='"%ld"'
19999 UINT64_FORMAT
='"%lu"'
20003 cat >>confdefs.h
<<_ACEOF
20004 #define INT64_FORMAT $INT64_FORMAT
20009 cat >>confdefs.h
<<_ACEOF
20010 #define UINT64_FORMAT $UINT64_FORMAT
20014 # Now we have checked all the reasons to replace snprintf
20015 if test $pgac_need_repl_snprintf = yes; then
20017 cat >>confdefs.h
<<\_ACEOF
20018 #define USE_REPL_SNPRINTF 1
20021 case " $LIBOBJS " in
20022 *" snprintf.$ac_objext "* ) ;;
20023 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
20029 # Need a #define for the size of Datum (unsigned long)
20030 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20031 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20032 if test "${ac_cv_type_unsigned_long+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 cat >conftest.
$ac_ext <<_ACEOF
20038 cat confdefs.h
>>conftest.
$ac_ext
20039 cat >>conftest.
$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 $ac_includes_default
20042 typedef unsigned long ac__type_new_;
20046 if ((ac__type_new_ *) 0)
20048 if (sizeof (ac__type_new_))
20054 rm -f conftest.
$ac_objext
20055 if { (ac_try
="$ac_compile"
20056 case "(($ac_try" in
20057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_compile") 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest.$ac_objext; then
20071 ac_cv_type_unsigned_long=yes
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20076 ac_cv_type_unsigned_long=no
20079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20082 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20084 # The cast to long int works around a bug in the HP C Compiler
20085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20086 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20087 # This bug is HP SR number 8606223364.
20088 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20089 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20090 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 if test "$cross_compiling" = yes; then
20094 # Depending upon the size, compute the lo and hi bounds.
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 $ac_includes_default
20102 typedef unsigned long ac__type_sizeof_;
20106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20113 rm -f conftest.$ac_objext
20114 if { (ac_try="$ac_compile"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_compile") 2>conftest.er1
20122 grep -v '^
*+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest.$ac_objext; then
20132 cat >conftest.$ac_ext <<_ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 $ac_includes_default
20139 typedef unsigned long ac__type_sizeof_;
20143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20159 grep -v '^
*+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest.$ac_objext; then
20167 ac_hi=$ac_mid; break
20169 echo "$as_me: failed program was:" >&5
20170 sed 's
/^
/|
/' conftest.$ac_ext >&5
20172 ac_lo=`expr $ac_mid + 1`
20173 if test $ac_lo -le $ac_mid; then
20177 ac_mid=`expr 2 '*' $ac_mid + 1`
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20183 echo "$as_me: failed program was:" >&5
20184 sed 's
/^
/|
/' conftest.$ac_ext >&5
20186 cat >conftest.$ac_ext <<_ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 $ac_includes_default
20193 typedef unsigned long ac__type_sizeof_;
20197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20204 rm -f conftest.$ac_objext
20205 if { (ac_try="$ac_compile"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_compile") 2>conftest.er1
20213 grep -v '^
*+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest.$ac_objext; then
20223 cat >conftest.$ac_ext <<_ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20229 $ac_includes_default
20230 typedef unsigned long ac__type_sizeof_;
20234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20241 rm -f conftest.$ac_objext
20242 if { (ac_try="$ac_compile"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_compile") 2>conftest.er1
20250 grep -v '^
*+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest.$ac_objext; then
20258 ac_lo=$ac_mid; break
20260 echo "$as_me: failed program was:" >&5
20261 sed 's
/^
/|
/' conftest.$ac_ext >&5
20263 ac_hi=`expr '(' $ac_mid ')' - 1`
20264 if test $ac_mid -le $ac_hi; then
20268 ac_mid=`expr 2 '*' $ac_mid`
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 echo "$as_me: failed program was:" >&5
20275 sed 's
/^
/|
/' conftest.$ac_ext >&5
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20284 # Binary search between lo and hi bounds.
20285 while test "x$ac_lo" != "x$ac_hi"; do
20286 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20287 cat >conftest.$ac_ext <<_ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 $ac_includes_default
20294 typedef unsigned long ac__type_sizeof_;
20298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
20314 grep -v '^
*+' conftest.er1 >conftest.err
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest.$ac_objext; then
20324 echo "$as_me: failed program was:" >&5
20325 sed 's
/^
/|
/' conftest.$ac_ext >&5
20327 ac_lo=`expr '(' $ac_mid ')' + 1`
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20334 '') if test "$ac_cv_type_unsigned_long" = yes; then
20335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20336 See \`config.log' for more details.
" >&5
20337 echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
20338 See \
`config.log' for more details." >&2;}
20339 { (exit 77); exit 77; }; }
20341 ac_cv_sizeof_unsigned_long=0
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20351 $ac_includes_default
20352 typedef unsigned long ac__type_sizeof_;
20353 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20354 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20356 #include <stdlib.h>
20361 FILE *f = fopen ("conftest.val", "w");
20364 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20366 long int i = longval ();
20367 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20369 fprintf (f, "%ld\n", i);
20373 unsigned long int i = ulongval ();
20374 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20376 fprintf (f, "%lu\n", i);
20378 return ferror (f) || fclose (f) != 0;
20384 rm -f conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20388 *) ac_try_echo
=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_link") 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20395 { (case "(($ac_try" in
20396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 ac_cv_sizeof_unsigned_long=`cat conftest.val
`
20406 echo "$as_me: program exited with status $ac_status" >&5
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ( exit $ac_status )
20411 if test "$ac_cv_type_unsigned_long" = yes; then
20412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20413 See \`config.log
' for more details." >&5
20414 echo "$as_me: error: cannot compute sizeof (unsigned long)
20415 See \`config.log' for more details.
" >&2;}
20416 { (exit 77); exit 77; }; }
20418 ac_cv_sizeof_unsigned_long=0
20421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20425 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_unsigned_long" >&5
20426 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20430 cat >>confdefs.h <<_ACEOF
20431 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20436 # And one for the size of size_t (enables tweaks for > 32bit address space)
20437 { echo "$as_me:$LINENO: checking
for size_t
" >&5
20438 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
20439 if test "${ac_cv_type_size_t+set}" = set; then
20440 echo $ECHO_N "(cached
) $ECHO_C" >&6
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448 $ac_includes_default
20449 typedef size_t ac__type_new_;
20453 if ((ac__type_new_ *) 0)
20455 if (sizeof (ac__type_new_))
20461 rm -f conftest.$ac_objext
20462 if { (ac_try="$ac_compile"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20478 ac_cv_type_size_t=yes
20480 echo "$as_me: failed program was
:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20483 ac_cv_type_size_t=no
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20488 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
20489 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20491 # The cast to long int works around a bug in the HP C Compiler
20492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20494 # This bug is HP SR number 8606223364.
20495 { echo "$as_me:$LINENO: checking size of size_t
" >&5
20496 echo $ECHO_N "checking size of size_t...
$ECHO_C" >&6; }
20497 if test "${ac_cv_sizeof_size_t+set}" = set; then
20498 echo $ECHO_N "(cached
) $ECHO_C" >&6
20500 if test "$cross_compiling" = yes; then
20501 # Depending upon the size, compute the lo and hi bounds.
20502 cat >conftest.$ac_ext <<_ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h. */
20508 $ac_includes_default
20509 typedef size_t ac__type_sizeof_;
20513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20520 rm -f conftest.$ac_objext
20521 if { (ac_try="$ac_compile"
20522 case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_compile") 2>conftest.er1
20529 grep -v '^ *+' conftest.er1 >conftest.err
20531 cat conftest.err >&5
20532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20533 (exit $ac_status); } && {
20534 test -z "$ac_c_werror_flag" ||
20535 test ! -s conftest.err
20536 } && test -s conftest.$ac_objext; then
20539 cat >conftest.$ac_ext <<_ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20545 $ac_includes_default
20546 typedef size_t ac__type_sizeof_;
20550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_compile") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest.$ac_objext; then
20574 ac_hi=$ac_mid; break
20576 echo "$as_me: failed program was
:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 ac_lo=`expr $ac_mid + 1`
20580 if test $ac_lo -le $ac_mid; then
20584 ac_mid=`expr 2 '*' $ac_mid + 1`
20587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590 echo "$as_me: failed program was
:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 cat >conftest.$ac_ext <<_ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 $ac_includes_default
20600 typedef size_t ac__type_sizeof_;
20604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20611 rm -f conftest.$ac_objext
20612 if { (ac_try="$ac_compile"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_compile") 2>conftest.er1
20620 grep -v '^ *+' conftest.er1 >conftest.err
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20624 (exit $ac_status); } && {
20625 test -z "$ac_c_werror_flag" ||
20626 test ! -s conftest.err
20627 } && test -s conftest.$ac_objext; then
20630 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 $ac_includes_default
20637 typedef size_t ac__type_sizeof_;
20641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20648 rm -f conftest.$ac_objext
20649 if { (ac_try="$ac_compile"
20650 case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_compile") 2>conftest.er1
20657 grep -v '^ *+' conftest.er1 >conftest.err
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20661 (exit $ac_status); } && {
20662 test -z "$ac_c_werror_flag" ||
20663 test ! -s conftest.err
20664 } && test -s conftest.$ac_objext; then
20665 ac_lo=$ac_mid; break
20667 echo "$as_me: failed program was
:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_hi=`expr '(' $ac_mid ')' - 1`
20671 if test $ac_mid -le $ac_hi; then
20675 ac_mid=`expr 2 '*' $ac_mid`
20678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20681 echo "$as_me: failed program was
:" >&5
20682 sed 's/^/| /' conftest.$ac_ext >&5
20687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 # Binary search between lo and hi bounds.
20692 while test "x
$ac_lo" != "x
$ac_hi"; do
20693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 $ac_includes_default
20701 typedef size_t ac__type_sizeof_;
20705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20712 rm -f conftest.$ac_objext
20713 if { (ac_try="$ac_compile"
20714 case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_compile") 2>conftest.er1
20721 grep -v '^ *+' conftest.er1 >conftest.err
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20725 (exit $ac_status); } && {
20726 test -z "$ac_c_werror_flag" ||
20727 test ! -s conftest.err
20728 } && test -s conftest.$ac_objext; then
20731 echo "$as_me: failed program was
:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 ac_lo=`expr '(' $ac_mid ')' + 1`
20737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740 ?*) ac_cv_sizeof_size_t=$ac_lo;;
20741 '') if test "$ac_cv_type_size_t" = yes; then
20742 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
20743 See \
`config.log' for more details." >&5
20744 echo "$as_me: error: cannot compute sizeof (size_t)
20745 See \`config.log
' for more details." >&2;}
20746 { (exit 77); exit 77; }; }
20748 ac_cv_sizeof_size_t=0
20752 cat >conftest.$ac_ext <<_ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758 $ac_includes_default
20759 typedef size_t ac__type_sizeof_;
20760 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20761 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20763 #include <stdlib.h>
20768 FILE *f = fopen ("conftest.val", "w");
20771 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20773 long int i = longval ();
20774 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20776 fprintf (f, "%ld\n", i);
20780 unsigned long int i = ulongval ();
20781 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20783 fprintf (f, "%lu\n", i);
20785 return ferror (f) || fclose (f) != 0;
20791 rm -f conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
20802 { (case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_try") 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_sizeof_size_t=`cat conftest.val`
20813 echo "$as_me: program exited with status $ac_status" >&5
20814 echo "$as_me: failed program was:" >&5
20815 sed 's
/^
/|
/' conftest.$ac_ext >&5
20817 ( exit $ac_status )
20818 if test "$ac_cv_type_size_t" = yes; then
20819 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
20820 See \`config.log' for more details.
" >&5
20821 echo "$as_me: error
: cannot compute sizeof
(size_t
)
20822 See \
`config.log' for more details." >&2;}
20823 { (exit 77); exit 77; }; }
20825 ac_cv_sizeof_size_t=0
20828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20832 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20833 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
20837 cat >>confdefs.h <<_ACEOF
20838 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20843 # Decide whether float4 is passed by value: user-selectable, enabled by default
20844 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
20845 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
20847 pgac_args="$pgac_args enable_float4_byval"
20849 # Check whether --enable-float4-byval was given.
20850 if test "${enable_float4_byval+set}" = set; then
20851 enableval=$enable_float4_byval;
20855 cat >>confdefs.h <<\_ACEOF
20856 #define USE_FLOAT4_BYVAL 1
20859 float4passbyval=true
20862 float4passbyval=false
20865 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
20866 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
20867 { (exit 1); exit 1; }; }
20872 enable_float4_byval=yes
20874 cat >>confdefs.h <<\_ACEOF
20875 #define USE_FLOAT4_BYVAL 1
20878 float4passbyval=true
20882 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
20883 echo "${ECHO_T}$enable_float4_byval" >&6; }
20885 cat >>confdefs.h <<_ACEOF
20886 #define FLOAT4PASSBYVAL $float4passbyval
20890 # Decide whether float8 is passed by value.
20891 # Note: this setting also controls int8 and related types such as timestamp.
20892 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
20893 # If not, trying to select it is an error.
20894 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
20895 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
20896 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
20898 pgac_args="$pgac_args enable_float8_byval"
20900 # Check whether --enable-float8-byval was given.
20901 if test "${enable_float8_byval+set}" = set; then
20902 enableval=$enable_float8_byval;
20911 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
20912 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
20913 { (exit 1); exit 1; }; }
20918 enable_float8_byval=yes
20925 pgac_args="$pgac_args enable_float8_byval"
20927 # Check whether --enable-float8-byval was given.
20928 if test "${enable_float8_byval+set}" = set; then
20929 enableval=$enable_float8_byval;
20938 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
20939 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
20940 { (exit 1); exit 1; }; }
20945 enable_float8_byval=no
20950 if test "$enable_float8_byval" = yes ; then
20951 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
20952 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
20953 { (exit 1); exit 1; }; }
20956 if test "$enable_float8_byval" = yes ; then
20958 cat >>confdefs.h <<\_ACEOF
20959 #define USE_FLOAT8_BYVAL 1
20962 float8passbyval=true
20964 float8passbyval=false
20966 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
20967 echo "${ECHO_T}$enable_float8_byval" >&6; }
20969 cat >>confdefs.h <<_ACEOF
20970 #define FLOAT8PASSBYVAL $float8passbyval
20974 # Determine memory alignment requirements for the basic C data types.
20976 { echo "$as_me:$LINENO: checking for short" >&5
20977 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20978 if test "${ac_cv_type_short+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 $ac_includes_default
20988 typedef short ac__type_new_;
20992 if ((ac__type_new_ *) 0)
20994 if (sizeof (ac__type_new_))
21000 rm -f conftest.$ac_objext
21001 if { (ac_try="$ac_compile"
21002 case "(($ac_try" in
21003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21004 *) ac_try_echo
=$ac_try;;
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_compile") 2>conftest.er1
21009 grep -v '^ *+' conftest.er1
>conftest.err
21011 cat conftest.err
>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } && {
21014 test -z "$ac_c_werror_flag" ||
21015 test ! -s conftest.err
21016 } && test -s conftest.
$ac_objext; then
21017 ac_cv_type_short
=yes
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.
$ac_ext >&5
21022 ac_cv_type_short
=no
21025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21027 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21028 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21030 # The cast to long int works around a bug in the HP C Compiler,
21031 # see AC_CHECK_SIZEOF for more information.
21032 { echo "$as_me:$LINENO: checking alignment of short" >&5
21033 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21034 if test "${ac_cv_alignof_short+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 if test "$cross_compiling" = yes; then
21038 # Depending upon the size, compute the lo and hi bounds.
21039 cat >conftest.
$ac_ext <<_ACEOF
21042 cat confdefs.h
>>conftest.
$ac_ext
21043 cat >>conftest.
$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 $ac_includes_default
21047 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21049 typedef struct { char x; short y; } ac__type_alignof_;
21053 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21060 rm -f conftest.
$ac_objext
21061 if { (ac_try
="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21069 grep -v '^ *+' conftest.er1 >conftest.err
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21079 cat >conftest.$ac_ext <<_ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 $ac_includes_default
21087 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21089 typedef struct { char x; short y; } ac__type_alignof_;
21093 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21100 rm -f conftest.$ac_objext
21101 if { (ac_try="$ac_compile"
21102 case "(($ac_try" in
21103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21104 *) ac_try_echo
=$ac_try;;
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_compile") 2>conftest.er1
21109 grep -v '^ *+' conftest.er1
>conftest.err
21111 cat conftest.err
>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } && {
21114 test -z "$ac_c_werror_flag" ||
21115 test ! -s conftest.err
21116 } && test -s conftest.
$ac_objext; then
21117 ac_hi
=$ac_mid; break
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.
$ac_ext >&5
21122 ac_lo
=`expr $ac_mid + 1`
21123 if test $ac_lo -le $ac_mid; then
21127 ac_mid
=`expr 2 '*' $ac_mid + 1`
21130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.
$ac_ext >&5
21136 cat >conftest.
$ac_ext <<_ACEOF
21139 cat confdefs.h
>>conftest.
$ac_ext
21140 cat >>conftest.
$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21142 $ac_includes_default
21144 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21146 typedef struct { char x; short y; } ac__type_alignof_;
21150 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21157 rm -f conftest.
$ac_objext
21158 if { (ac_try
="$ac_compile"
21159 case "(($ac_try" in
21160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } && {
21171 test -z "$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 } && test -s conftest.$ac_objext; then
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 $ac_includes_default
21184 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21186 typedef struct { char x; short y; } ac__type_alignof_;
21190 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21197 rm -f conftest.$ac_objext
21198 if { (ac_try="$ac_compile"
21199 case "(($ac_try" in
21200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21201 *) ac_try_echo
=$ac_try;;
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204 (eval "$ac_compile") 2>conftest.er1
21206 grep -v '^ *+' conftest.er1
>conftest.err
21208 cat conftest.err
>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && {
21211 test -z "$ac_c_werror_flag" ||
21212 test ! -s conftest.err
21213 } && test -s conftest.
$ac_objext; then
21214 ac_lo
=$ac_mid; break
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.
$ac_ext >&5
21219 ac_hi
=`expr '(' $ac_mid ')' - 1`
21220 if test $ac_mid -le $ac_hi; then
21224 ac_mid
=`expr 2 '*' $ac_mid`
21227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.
$ac_ext >&5
21236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21240 # Binary search between lo and hi bounds.
21241 while test "x$ac_lo" != "x$ac_hi"; do
21242 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21243 cat >conftest.
$ac_ext <<_ACEOF
21246 cat confdefs.h
>>conftest.
$ac_ext
21247 cat >>conftest.
$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21249 $ac_includes_default
21251 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21253 typedef struct { char x; short y; } ac__type_alignof_;
21257 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21264 rm -f conftest.
$ac_objext
21265 if { (ac_try
="$ac_compile"
21266 case "(($ac_try" in
21267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271 (eval "$ac_compile") 2>conftest.er1
21273 grep -v '^ *+' conftest.er1 >conftest.err
21275 cat conftest.err >&5
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } && {
21278 test -z "$ac_c_werror_flag" ||
21279 test ! -s conftest.err
21280 } && test -s conftest.$ac_objext; then
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_lo=`expr '(' $ac_mid ')' + 1`
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 ?*) ac_cv_alignof_short=$ac_lo;;
21293 '') if test "$ac_cv_type_short" = yes; then
21294 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21295 See \`config.log
' for more details." >&5
21296 echo "$as_me: error: cannot compute alignment of short
21297 See \`config.log' for more details.
" >&2;}
21298 { (exit 77); exit 77; }; }
21300 ac_cv_alignof_short=0
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 $ac_includes_default
21312 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21314 typedef struct { char x; short y; } ac__type_alignof_;
21315 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21316 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21318 #include <stdlib.h>
21323 FILE *f = fopen ("conftest.val
", "w
");
21326 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21328 long int i = longval ();
21329 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21331 fprintf (f, "%ld
\n", i);
21335 unsigned long int i = ulongval ();
21336 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21338 fprintf (f, "%lu
\n", i);
21340 return ferror (f) || fclose (f) != 0;
21346 rm -f conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350 *) ac_try_echo=$ac_try;;
21352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21353 (eval "$ac_link") 2>&5
21355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357 { (case "(($ac_try" in
21358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359 *) ac_try_echo=$ac_try;;
21361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21362 (eval "$ac_try") 2>&5
21364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_alignof_short=`cat conftest.val`
21368 echo "$as_me: program exited with status
$ac_status" >&5
21369 echo "$as_me: failed program was
:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ( exit $ac_status )
21373 if test "$ac_cv_type_short" = yes; then
21374 { { echo "$as_me:$LINENO: error
: cannot compute alignment of short
21375 See \
`config.log' for more details." >&5
21376 echo "$as_me: error: cannot compute alignment of short
21377 See \`config.log
' for more details." >&2;}
21378 { (exit 77); exit 77; }; }
21380 ac_cv_alignof_short=0
21383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21388 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21392 cat >>confdefs.h <<_ACEOF
21393 #define ALIGNOF_SHORT $ac_cv_alignof_short
21397 { echo "$as_me:$LINENO: checking for int" >&5
21398 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21399 if test "${ac_cv_type_int+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21402 cat >conftest.$ac_ext <<_ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 $ac_includes_default
21409 typedef int ac__type_new_;
21413 if ((ac__type_new_ *) 0)
21415 if (sizeof (ac__type_new_))
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_compile") 2>conftest.er1
21430 grep -v '^
*+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } && {
21435 test -z "$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 } && test -s conftest.$ac_objext; then
21440 echo "$as_me: failed program was:" >&5
21441 sed 's
/^
/|
/' conftest.$ac_ext >&5
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21449 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21451 # The cast to long int works around a bug in the HP C Compiler,
21452 # see AC_CHECK_SIZEOF for more information.
21453 { echo "$as_me:$LINENO: checking alignment of int" >&5
21454 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21455 if test "${ac_cv_alignof_int+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 if test "$cross_compiling" = yes; then
21459 # Depending upon the size, compute the lo and hi bounds.
21460 cat >conftest.$ac_ext <<_ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h. */
21466 $ac_includes_default
21468 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21470 typedef struct { char x; int y; } ac__type_alignof_;
21474 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_compile") 2>conftest.er1
21490 grep -v '^
*+' conftest.er1 >conftest.err
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest.$ac_objext; then
21500 cat >conftest.$ac_ext <<_ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 $ac_includes_default
21508 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21510 typedef struct { char x; int y; } ac__type_alignof_;
21514 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21521 rm -f conftest.$ac_objext
21522 if { (ac_try="$ac_compile"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_compile") 2>conftest.er1
21530 grep -v '^
*+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest.$ac_objext; then
21538 ac_hi=$ac_mid; break
21540 echo "$as_me: failed program was:" >&5
21541 sed 's
/^
/|
/' conftest.$ac_ext >&5
21543 ac_lo=`expr $ac_mid + 1`
21544 if test $ac_lo -le $ac_mid; then
21548 ac_mid=`expr 2 '*' $ac_mid + 1`
21551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554 echo "$as_me: failed program was:" >&5
21555 sed 's
/^
/|
/' conftest.$ac_ext >&5
21557 cat >conftest.$ac_ext <<_ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563 $ac_includes_default
21565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21567 typedef struct { char x; int y; } ac__type_alignof_;
21571 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21587 grep -v '^
*+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest.$ac_objext; then
21597 cat >conftest.$ac_ext <<_ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h. */
21603 $ac_includes_default
21605 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21607 typedef struct { char x; int y; } ac__type_alignof_;
21611 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21618 rm -f conftest.$ac_objext
21619 if { (ac_try="$ac_compile"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_compile") 2>conftest.er1
21627 grep -v '^
*+' conftest.er1 >conftest.err
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } && {
21632 test -z "$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21634 } && test -s conftest.$ac_objext; then
21635 ac_lo=$ac_mid; break
21637 echo "$as_me: failed program was:" >&5
21638 sed 's
/^
/|
/' conftest.$ac_ext >&5
21640 ac_hi=`expr '(' $ac_mid ')' - 1`
21641 if test $ac_mid -le $ac_hi; then
21645 ac_mid=`expr 2 '*' $ac_mid`
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21651 echo "$as_me: failed program was:" >&5
21652 sed 's
/^
/|
/' conftest.$ac_ext >&5
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 # Binary search between lo and hi bounds.
21662 while test "x$ac_lo" != "x$ac_hi"; do
21663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21664 cat >conftest.$ac_ext <<_ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21670 $ac_includes_default
21672 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21674 typedef struct { char x; int y; } ac__type_alignof_;
21678 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21685 rm -f conftest.$ac_objext
21686 if { (ac_try="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21694 grep -v '^
*+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest.$ac_objext; then
21704 echo "$as_me: failed program was:" >&5
21705 sed 's
/^
/|
/' conftest.$ac_ext >&5
21707 ac_lo=`expr '(' $ac_mid ')' + 1`
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 ?*) ac_cv_alignof_int=$ac_lo;;
21714 '') if test "$ac_cv_type_int" = yes; then
21715 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21716 See \`config.log' for more details.
" >&5
21717 echo "$as_me: error
: cannot compute alignment of int
21718 See \
`config.log' for more details." >&2;}
21719 { (exit 77); exit 77; }; }
21721 ac_cv_alignof_int=0
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 $ac_includes_default
21733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21735 typedef struct { char x; int y; } ac__type_alignof_;
21736 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21737 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21739 #include <stdlib.h>
21744 FILE *f = fopen ("conftest.val", "w");
21747 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21749 long int i = longval ();
21750 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21752 fprintf (f, "%ld\n", i);
21756 unsigned long int i = ulongval ();
21757 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21759 fprintf (f, "%lu\n", i);
21761 return ferror (f) || fclose (f) != 0;
21767 rm -f conftest$ac_exeext
21768 if { (ac_try="$ac_link"
21769 case "(($ac_try" in
21770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21771 *) ac_try_echo
=$ac_try;;
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_link") 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21778 { (case "(($ac_try" in
21779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_try") 2>&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 ac_cv_alignof_int=`cat conftest.val
`
21789 echo "$as_me: program exited with status $ac_status" >&5
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21793 ( exit $ac_status )
21794 if test "$ac_cv_type_int" = yes; then
21795 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
21796 See \`config.log
' for more details." >&5
21797 echo "$as_me: error: cannot compute alignment of int
21798 See \`config.log' for more details.
" >&2;}
21799 { (exit 77); exit 77; }; }
21801 ac_cv_alignof_int=0
21804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21808 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_int" >&5
21809 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
21813 cat >>confdefs.h <<_ACEOF
21814 #define ALIGNOF_INT $ac_cv_alignof_int
21818 { echo "$as_me:$LINENO: checking
for long
" >&5
21819 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
21820 if test "${ac_cv_type_long+set}" = set; then
21821 echo $ECHO_N "(cached
) $ECHO_C" >&6
21823 cat >conftest.$ac_ext <<_ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 $ac_includes_default
21830 typedef long ac__type_new_;
21834 if ((ac__type_new_ *) 0)
21836 if (sizeof (ac__type_new_))
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21851 grep -v '^ *+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_cv_type_long=yes
21861 echo "$as_me: failed program was
:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
21870 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21872 # The cast to long int works around a bug in the HP C Compiler,
21873 # see AC_CHECK_SIZEOF for more information.
21874 { echo "$as_me:$LINENO: checking alignment of long
" >&5
21875 echo $ECHO_N "checking alignment of long...
$ECHO_C" >&6; }
21876 if test "${ac_cv_alignof_long+set}" = set; then
21877 echo $ECHO_N "(cached
) $ECHO_C" >&6
21879 if test "$cross_compiling" = yes; then
21880 # Depending upon the size, compute the lo and hi bounds.
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 $ac_includes_default
21889 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21891 typedef struct { char x; long y; } ac__type_alignof_;
21895 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_compile") 2>conftest.er1
21911 grep -v '^ *+' conftest.er1 >conftest.err
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21915 (exit $ac_status); } && {
21916 test -z "$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21918 } && test -s conftest.$ac_objext; then
21921 cat >conftest.$ac_ext <<_ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h. */
21927 $ac_includes_default
21929 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21931 typedef struct { char x; long y; } ac__type_alignof_;
21935 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21942 rm -f conftest.$ac_objext
21943 if { (ac_try="$ac_compile"
21944 case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_compile") 2>conftest.er1
21951 grep -v '^ *+' conftest.er1 >conftest.err
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest.$ac_objext; then
21959 ac_hi=$ac_mid; break
21961 echo "$as_me: failed program was
:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21964 ac_lo=`expr $ac_mid + 1`
21965 if test $ac_lo -le $ac_mid; then
21969 ac_mid=`expr 2 '*' $ac_mid + 1`
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975 echo "$as_me: failed program was
:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 cat >conftest.$ac_ext <<_ACEOF
21981 cat confdefs.h >>conftest.$ac_ext
21982 cat >>conftest.$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21986 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21988 typedef struct { char x; long y; } ac__type_alignof_;
21992 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21999 rm -f conftest.$ac_objext
22000 if { (ac_try="$ac_compile"
22001 case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_compile") 2>conftest.er1
22008 grep -v '^ *+' conftest.er1 >conftest.err
22010 cat conftest.err >&5
22011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest.$ac_objext; then
22018 cat >conftest.$ac_ext <<_ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22024 $ac_includes_default
22026 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22028 typedef struct { char x; long y; } ac__type_alignof_;
22032 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest.$ac_objext; then
22056 ac_lo=$ac_mid; break
22058 echo "$as_me: failed program was
:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_hi=`expr '(' $ac_mid ')' - 1`
22062 if test $ac_mid -le $ac_hi; then
22066 ac_mid=`expr 2 '*' $ac_mid`
22069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22072 echo "$as_me: failed program was
:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 # Binary search between lo and hi bounds.
22083 while test "x
$ac_lo" != "x
$ac_hi"; do
22084 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22085 cat >conftest.$ac_ext <<_ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 $ac_includes_default
22093 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22095 typedef struct { char x; long y; } ac__type_alignof_;
22099 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_compile") 2>conftest.er1
22115 grep -v '^ *+' conftest.er1 >conftest.err
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest.$ac_objext; then
22125 echo "$as_me: failed program was
:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_lo=`expr '(' $ac_mid ')' + 1`
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 ?*) ac_cv_alignof_long=$ac_lo;;
22135 '') if test "$ac_cv_type_long" = yes; then
22136 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
22137 See \
`config.log' for more details." >&5
22138 echo "$as_me: error: cannot compute alignment of long
22139 See \`config.log
' for more details." >&2;}
22140 { (exit 77); exit 77; }; }
22142 ac_cv_alignof_long=0
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 $ac_includes_default
22154 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22156 typedef struct { char x; long y; } ac__type_alignof_;
22157 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22158 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22160 #include <stdlib.h>
22165 FILE *f = fopen ("conftest.val", "w");
22168 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22170 long int i = longval ();
22171 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22173 fprintf (f, "%ld\n", i);
22177 unsigned long int i = ulongval ();
22178 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22180 fprintf (f, "%lu\n", i);
22182 return ferror (f) || fclose (f) != 0;
22188 rm -f conftest$ac_exeext
22189 if { (ac_try="$ac_link"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22199 { (case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_try") 2>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; }; then
22208 ac_cv_alignof_long=`cat conftest.val`
22210 echo "$as_me: program exited with status $ac_status" >&5
22211 echo "$as_me: failed program was:" >&5
22212 sed 's
/^
/|
/' conftest.$ac_ext >&5
22214 ( exit $ac_status )
22215 if test "$ac_cv_type_long" = yes; then
22216 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22217 See \`config.log' for more details.
" >&5
22218 echo "$as_me: error
: cannot compute alignment of long
22219 See \
`config.log' for more details." >&2;}
22220 { (exit 77); exit 77; }; }
22222 ac_cv_alignof_long=0
22225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22229 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22230 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22234 cat >>confdefs.h <<_ACEOF
22235 #define ALIGNOF_LONG $ac_cv_alignof_long
22239 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22240 { echo "$as_me:$LINENO: checking for long long int" >&5
22241 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22242 if test "${ac_cv_type_long_long_int+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22251 $ac_includes_default
22252 typedef long long int ac__type_new_;
22256 if ((ac__type_new_ *) 0)
22258 if (sizeof (ac__type_new_))
22264 rm -f conftest.$ac_objext
22265 if { (ac_try="$ac_compile"
22266 case "(($ac_try" in
22267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22268 *) ac_try_echo
=$ac_try;;
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_compile") 2>conftest.er1
22273 grep -v '^ *+' conftest.er1
>conftest.err
22275 cat conftest.err
>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } && {
22278 test -z "$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 } && test -s conftest.
$ac_objext; then
22281 ac_cv_type_long_long_int
=yes
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.
$ac_ext >&5
22286 ac_cv_type_long_long_int
=no
22289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22291 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22292 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22294 # The cast to long int works around a bug in the HP C Compiler,
22295 # see AC_CHECK_SIZEOF for more information.
22296 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22297 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22298 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22301 if test "$cross_compiling" = yes; then
22302 # Depending upon the size, compute the lo and hi bounds.
22303 cat >conftest.
$ac_ext <<_ACEOF
22306 cat confdefs.h
>>conftest.
$ac_ext
22307 cat >>conftest.
$ac_ext <<_ACEOF
22308 /* end confdefs.h. */
22309 $ac_includes_default
22311 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22313 typedef struct { char x; long long int y; } ac__type_alignof_;
22317 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22324 rm -f conftest.
$ac_objext
22325 if { (ac_try
="$ac_compile"
22326 case "(($ac_try" in
22327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22328 *) ac_try_echo=$ac_try;;
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331 (eval "$ac_compile") 2>conftest.er1
22333 grep -v '^ *+' conftest.er1 >conftest.err
22335 cat conftest.err >&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && {
22338 test -z "$ac_c_werror_flag" ||
22339 test ! -s conftest.err
22340 } && test -s conftest.$ac_objext; then
22343 cat >conftest.$ac_ext <<_ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 $ac_includes_default
22351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22353 typedef struct { char x; long long int y; } ac__type_alignof_;
22357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22364 rm -f conftest.$ac_objext
22365 if { (ac_try="$ac_compile"
22366 case "(($ac_try" in
22367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22368 *) ac_try_echo
=$ac_try;;
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_compile") 2>conftest.er1
22373 grep -v '^ *+' conftest.er1
>conftest.err
22375 cat conftest.err
>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); } && {
22378 test -z "$ac_c_werror_flag" ||
22379 test ! -s conftest.err
22380 } && test -s conftest.
$ac_objext; then
22381 ac_hi
=$ac_mid; break
22383 echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.
$ac_ext >&5
22386 ac_lo
=`expr $ac_mid + 1`
22387 if test $ac_lo -le $ac_mid; then
22391 ac_mid
=`expr 2 '*' $ac_mid + 1`
22394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22397 echo "$as_me: failed program was:" >&5
22398 sed 's/^/| /' conftest.
$ac_ext >&5
22400 cat >conftest.
$ac_ext <<_ACEOF
22403 cat confdefs.h
>>conftest.
$ac_ext
22404 cat >>conftest.
$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 $ac_includes_default
22408 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22410 typedef struct { char x; long long int y; } ac__type_alignof_;
22414 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22421 rm -f conftest.
$ac_objext
22422 if { (ac_try
="$ac_compile"
22423 case "(($ac_try" in
22424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22425 *) ac_try_echo=$ac_try;;
22427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428 (eval "$ac_compile") 2>conftest.er1
22430 grep -v '^ *+' conftest.er1 >conftest.err
22432 cat conftest.err >&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } && {
22435 test -z "$ac_c_werror_flag" ||
22436 test ! -s conftest.err
22437 } && test -s conftest.$ac_objext; then
22440 cat >conftest.$ac_ext <<_ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22446 $ac_includes_default
22448 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22450 typedef struct { char x; long long int y; } ac__type_alignof_;
22454 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22461 rm -f conftest.$ac_objext
22462 if { (ac_try="$ac_compile"
22463 case "(($ac_try" in
22464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22465 *) ac_try_echo
=$ac_try;;
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468 (eval "$ac_compile") 2>conftest.er1
22470 grep -v '^ *+' conftest.er1
>conftest.err
22472 cat conftest.err
>&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest.
$ac_objext; then
22478 ac_lo
=$ac_mid; break
22480 echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.
$ac_ext >&5
22483 ac_hi
=`expr '(' $ac_mid ')' - 1`
22484 if test $ac_mid -le $ac_hi; then
22488 ac_mid
=`expr 2 '*' $ac_mid`
22491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22494 echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.
$ac_ext >&5
22500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22504 # Binary search between lo and hi bounds.
22505 while test "x$ac_lo" != "x$ac_hi"; do
22506 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22507 cat >conftest.
$ac_ext <<_ACEOF
22510 cat confdefs.h
>>conftest.
$ac_ext
22511 cat >>conftest.
$ac_ext <<_ACEOF
22512 /* end confdefs.h. */
22513 $ac_includes_default
22515 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22517 typedef struct { char x; long long int y; } ac__type_alignof_;
22521 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22528 rm -f conftest.
$ac_objext
22529 if { (ac_try
="$ac_compile"
22530 case "(($ac_try" in
22531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_compile") 2>conftest.er1
22537 grep -v '^ *+' conftest.er1 >conftest.err
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); } && {
22542 test -z "$ac_c_werror_flag" ||
22543 test ! -s conftest.err
22544 } && test -s conftest.$ac_objext; then
22547 echo "$as_me: failed program was:" >&5
22548 sed 's/^/| /' conftest.$ac_ext >&5
22550 ac_lo=`expr '(' $ac_mid ')' + 1`
22553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22557 '') if test "$ac_cv_type_long_long_int" = yes; then
22558 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22559 See \`config.log
' for more details." >&5
22560 echo "$as_me: error: cannot compute alignment of long long int
22561 See \`config.log' for more details.
" >&2;}
22562 { (exit 77); exit 77; }; }
22564 ac_cv_alignof_long_long_int=0
22568 cat >conftest.$ac_ext <<_ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22574 $ac_includes_default
22576 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22578 typedef struct { char x; long long int y; } ac__type_alignof_;
22579 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22580 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22582 #include <stdlib.h>
22587 FILE *f = fopen ("conftest.val
", "w
");
22590 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22592 long int i = longval ();
22593 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22595 fprintf (f, "%ld
\n", i);
22599 unsigned long int i = ulongval ();
22600 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22602 fprintf (f, "%lu
\n", i);
22604 return ferror (f) || fclose (f) != 0;
22610 rm -f conftest$ac_exeext
22611 if { (ac_try="$ac_link"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_link") 2>&5
22619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22621 { (case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_try") 2>&5
22628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22629 (exit $ac_status); }; }; then
22630 ac_cv_alignof_long_long_int=`cat conftest.val`
22632 echo "$as_me: program exited with status
$ac_status" >&5
22633 echo "$as_me: failed program was
:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 ( exit $ac_status )
22637 if test "$ac_cv_type_long_long_int" = yes; then
22638 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long long int
22639 See \
`config.log' for more details." >&5
22640 echo "$as_me: error: cannot compute alignment of long long int
22641 See \`config.log
' for more details." >&2;}
22642 { (exit 77); exit 77; }; }
22644 ac_cv_alignof_long_long_int=0
22647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22651 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
22652 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
22656 cat >>confdefs.h <<_ACEOF
22657 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
22662 { echo "$as_me:$LINENO: checking for double" >&5
22663 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
22664 if test "${ac_cv_type_double+set}" = set; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 cat >conftest.$ac_ext <<_ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22673 $ac_includes_default
22674 typedef double ac__type_new_;
22678 if ((ac__type_new_ *) 0)
22680 if (sizeof (ac__type_new_))
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_compile") 2>conftest.er1
22695 grep -v '^
*+' conftest.er1 >conftest.err
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } && {
22700 test -z "$ac_c_werror_flag" ||
22701 test ! -s conftest.err
22702 } && test -s conftest.$ac_objext; then
22703 ac_cv_type_double=yes
22705 echo "$as_me: failed program was:" >&5
22706 sed 's
/^
/|
/' conftest.$ac_ext >&5
22708 ac_cv_type_double=no
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22714 echo "${ECHO_T}$ac_cv_type_double" >&6; }
22716 # The cast to long int works around a bug in the HP C Compiler,
22717 # see AC_CHECK_SIZEOF for more information.
22718 { echo "$as_me:$LINENO: checking alignment of double" >&5
22719 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
22720 if test "${ac_cv_alignof_double+set}" = set; then
22721 echo $ECHO_N "(cached) $ECHO_C" >&6
22723 if test "$cross_compiling" = yes; then
22724 # Depending upon the size, compute the lo and hi bounds.
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 $ac_includes_default
22733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22735 typedef struct { char x; double y; } ac__type_alignof_;
22739 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22746 rm -f conftest.$ac_objext
22747 if { (ac_try="$ac_compile"
22748 case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753 (eval "$ac_compile") 2>conftest.er1
22755 grep -v '^
*+' conftest.er1 >conftest.err
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } && {
22760 test -z "$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22762 } && test -s conftest.$ac_objext; then
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 $ac_includes_default
22773 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22775 typedef struct { char x; double y; } ac__type_alignof_;
22779 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22786 rm -f conftest.$ac_objext
22787 if { (ac_try="$ac_compile"
22788 case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793 (eval "$ac_compile") 2>conftest.er1
22795 grep -v '^
*+' conftest.er1 >conftest.err
22797 cat conftest.err >&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); } && {
22800 test -z "$ac_c_werror_flag" ||
22801 test ! -s conftest.err
22802 } && test -s conftest.$ac_objext; then
22803 ac_hi=$ac_mid; break
22805 echo "$as_me: failed program was:" >&5
22806 sed 's
/^
/|
/' conftest.$ac_ext >&5
22808 ac_lo=`expr $ac_mid + 1`
22809 if test $ac_lo -le $ac_mid; then
22813 ac_mid=`expr 2 '*' $ac_mid + 1`
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22819 echo "$as_me: failed program was:" >&5
22820 sed 's
/^
/|
/' conftest.$ac_ext >&5
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 $ac_includes_default
22830 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22832 typedef struct { char x; double y; } ac__type_alignof_;
22836 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22843 rm -f conftest.$ac_objext
22844 if { (ac_try="$ac_compile"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_compile") 2>conftest.er1
22852 grep -v '^
*+' conftest.er1 >conftest.err
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest.$ac_objext; then
22862 cat >conftest.$ac_ext <<_ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h. */
22868 $ac_includes_default
22870 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22872 typedef struct { char x; double y; } ac__type_alignof_;
22876 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22883 rm -f conftest.$ac_objext
22884 if { (ac_try="$ac_compile"
22885 case "(($ac_try" in
22886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887 *) ac_try_echo=$ac_try;;
22889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890 (eval "$ac_compile") 2>conftest.er1
22892 grep -v '^
*+' conftest.er1 >conftest.err
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && {
22897 test -z "$ac_c_werror_flag" ||
22898 test ! -s conftest.err
22899 } && test -s conftest.$ac_objext; then
22900 ac_lo=$ac_mid; break
22902 echo "$as_me: failed program was:" >&5
22903 sed 's
/^
/|
/' conftest.$ac_ext >&5
22905 ac_hi=`expr '(' $ac_mid ')' - 1`
22906 if test $ac_mid -le $ac_hi; then
22910 ac_mid=`expr 2 '*' $ac_mid`
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 echo "$as_me: failed program was:" >&5
22917 sed 's
/^
/|
/' conftest.$ac_ext >&5
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 # Binary search between lo and hi bounds.
22927 while test "x$ac_lo" != "x$ac_hi"; do
22928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22935 $ac_includes_default
22937 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22939 typedef struct { char x; double y; } ac__type_alignof_;
22943 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22959 grep -v '^
*+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22969 echo "$as_me: failed program was:" >&5
22970 sed 's
/^
/|
/' conftest.$ac_ext >&5
22972 ac_lo=`expr '(' $ac_mid ')' + 1`
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978 ?*) ac_cv_alignof_double=$ac_lo;;
22979 '') if test "$ac_cv_type_double" = yes; then
22980 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
22981 See \`config.log' for more details.
" >&5
22982 echo "$as_me: error
: cannot compute alignment of double
22983 See \
`config.log' for more details." >&2;}
22984 { (exit 77); exit 77; }; }
22986 ac_cv_alignof_double=0
22990 cat >conftest.$ac_ext <<_ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 $ac_includes_default
22998 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23000 typedef struct { char x; double y; } ac__type_alignof_;
23001 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23002 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23004 #include <stdlib.h>
23009 FILE *f = fopen ("conftest.val", "w");
23012 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23014 long int i = longval ();
23015 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23017 fprintf (f, "%ld\n", i);
23021 unsigned long int i = ulongval ();
23022 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23024 fprintf (f, "%lu\n", i);
23026 return ferror (f) || fclose (f) != 0;
23032 rm -f conftest$ac_exeext
23033 if { (ac_try="$ac_link"
23034 case "(($ac_try" in
23035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23036 *) ac_try_echo
=$ac_try;;
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_link") 2>&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23043 { (case "(($ac_try" in
23044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_try") 2>&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_alignof_double=`cat conftest.val
`
23054 echo "$as_me: program exited with status $ac_status" >&5
23055 echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23058 ( exit $ac_status )
23059 if test "$ac_cv_type_double" = yes; then
23060 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23061 See \`config.log
' for more details." >&5
23062 echo "$as_me: error: cannot compute alignment of double
23063 See \`config.log' for more details.
" >&2;}
23064 { (exit 77); exit 77; }; }
23066 ac_cv_alignof_double=0
23069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_double" >&5
23074 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23078 cat >>confdefs.h <<_ACEOF
23079 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23084 # Compute maximum alignment of any basic type.
23085 # We assume long's alignment is at least as strong as char, short, or int;
23086 # but we must check long long (if it exists) and double.
23088 MAX_ALIGNOF=$ac_cv_alignof_long
23089 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23090 MAX_ALIGNOF=$ac_cv_alignof_double
23092 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23093 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23096 cat >>confdefs.h <<_ACEOF
23097 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23102 # Some platforms predefine the types int8, int16, etc. Only check
23103 # a (hopefully) representative subset.
23104 { echo "$as_me:$LINENO: checking
for int8
" >&5
23105 echo $ECHO_N "checking
for int8...
$ECHO_C" >&6; }
23106 if test "${ac_cv_type_int8+set}" = set; then
23107 echo $ECHO_N "(cached
) $ECHO_C" >&6
23109 cat >conftest.$ac_ext <<_ACEOF
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23116 #ifdef HAVE_SUPPORTDEFS_H
23117 #include <SupportDefs.h>
23120 typedef int8 ac__type_new_;
23124 if ((ac__type_new_ *) 0)
23126 if (sizeof (ac__type_new_))
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest.$ac_objext; then
23149 ac_cv_type_int8=yes
23151 echo "$as_me: failed program was
:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159 { echo "$as_me:$LINENO: result
: $ac_cv_type_int8" >&5
23160 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23161 if test $ac_cv_type_int8 = yes; then
23163 cat >>confdefs.h <<_ACEOF
23164 #define HAVE_INT8 1
23169 { echo "$as_me:$LINENO: checking
for uint8
" >&5
23170 echo $ECHO_N "checking
for uint8...
$ECHO_C" >&6; }
23171 if test "${ac_cv_type_uint8+set}" = set; then
23172 echo $ECHO_N "(cached
) $ECHO_C" >&6
23174 cat >conftest.$ac_ext <<_ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23181 #ifdef HAVE_SUPPORTDEFS_H
23182 #include <SupportDefs.h>
23185 typedef uint8 ac__type_new_;
23189 if ((ac__type_new_ *) 0)
23191 if (sizeof (ac__type_new_))
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
23214 ac_cv_type_uint8=yes
23216 echo "$as_me: failed program was
:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23219 ac_cv_type_uint8=no
23222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint8" >&5
23225 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23226 if test $ac_cv_type_uint8 = yes; then
23228 cat >>confdefs.h <<_ACEOF
23229 #define HAVE_UINT8 1
23234 { echo "$as_me:$LINENO: checking
for int64
" >&5
23235 echo $ECHO_N "checking
for int64...
$ECHO_C" >&6; }
23236 if test "${ac_cv_type_int64+set}" = set; then
23237 echo $ECHO_N "(cached
) $ECHO_C" >&6
23239 cat >conftest.$ac_ext <<_ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23246 #ifdef HAVE_SUPPORTDEFS_H
23247 #include <SupportDefs.h>
23250 typedef int64 ac__type_new_;
23254 if ((ac__type_new_ *) 0)
23256 if (sizeof (ac__type_new_))
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_compile") 2>conftest.er1
23271 grep -v '^ *+' conftest.er1 >conftest.err
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23275 (exit $ac_status); } && {
23276 test -z "$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23278 } && test -s conftest.$ac_objext; then
23279 ac_cv_type_int64=yes
23281 echo "$as_me: failed program was
:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23284 ac_cv_type_int64=no
23287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23289 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64" >&5
23290 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23291 if test $ac_cv_type_int64 = yes; then
23293 cat >>confdefs.h <<_ACEOF
23294 #define HAVE_INT64 1
23299 { echo "$as_me:$LINENO: checking
for uint64
" >&5
23300 echo $ECHO_N "checking
for uint64...
$ECHO_C" >&6; }
23301 if test "${ac_cv_type_uint64+set}" = set; then
23302 echo $ECHO_N "(cached
) $ECHO_C" >&6
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23311 #ifdef HAVE_SUPPORTDEFS_H
23312 #include <SupportDefs.h>
23315 typedef uint64 ac__type_new_;
23319 if ((ac__type_new_ *) 0)
23321 if (sizeof (ac__type_new_))
23327 rm -f conftest.$ac_objext
23328 if { (ac_try="$ac_compile"
23329 case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23336 grep -v '^ *+' conftest.er1 >conftest.err
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_type_uint64=yes
23346 echo "$as_me: failed program was
:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_cv_type_uint64=no
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64" >&5
23355 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23356 if test $ac_cv_type_uint64 = yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 #define HAVE_UINT64 1
23366 # We also check for sig_atomic_t, which *should* be defined per ANSI
23367 # C, but is missing on some old platforms.
23368 { echo "$as_me:$LINENO: checking
for sig_atomic_t
" >&5
23369 echo $ECHO_N "checking
for sig_atomic_t...
$ECHO_C" >&6; }
23370 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23371 echo $ECHO_N "(cached
) $ECHO_C" >&6
23373 cat >conftest.$ac_ext <<_ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 #include <signal.h>
23381 typedef sig_atomic_t ac__type_new_;
23385 if ((ac__type_new_ *) 0)
23387 if (sizeof (ac__type_new_))
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_compile") 2>conftest.er1
23402 grep -v '^ *+' conftest.er1 >conftest.err
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest.$ac_objext; then
23410 ac_cv_type_sig_atomic_t=yes
23412 echo "$as_me: failed program was
:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 ac_cv_type_sig_atomic_t=no
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23420 { echo "$as_me:$LINENO: result
: $ac_cv_type_sig_atomic_t" >&5
23421 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23422 if test $ac_cv_type_sig_atomic_t = yes; then
23424 cat >>confdefs.h <<_ACEOF
23425 #define HAVE_SIG_ATOMIC_T 1
23433 # If the user did not disable integer datetimes, check that
23434 # there is a working 64-bit integral type to use.
23435 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23436 test x"$HAVE_LONG_INT_64" = x"no
" &&
23437 test x"$HAVE_LONG_LONG_INT_64" = x"no
" &&
23438 test x"$HAVE_INT64" = x"no
" ; then
23439 { { echo "$as_me:$LINENO: error
:
23440 Integer-based datetime support requires a
64-bit integer
type,
23441 but no such
type could be found. The
--disable-integer-datetimes
23442 configure option can be used to disable integer-based storage
23443 of datetime values.
" >&5
23444 echo "$as_me: error
:
23445 Integer-based datetime support requires a
64-bit integer
type,
23446 but no such
type could be found. The
--disable-integer-datetimes
23447 configure option can be used to disable integer-based storage
23448 of datetime values.
" >&2;}
23449 { (exit 1); exit 1; }; }
23453 if test "$PORTNAME" != "win32
"
23455 { echo "$as_me:$LINENO: checking
for POSIX signal interface
" >&5
23456 echo $ECHO_N "checking
for POSIX signal interface...
$ECHO_C" >&6; }
23457 if test "${pgac_cv_func_posix_signals+set}" = set; then
23458 echo $ECHO_N "(cached
) $ECHO_C" >&6
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 #include <signal.h>
23471 struct sigaction act, oact;
23472 sigemptyset(&act.sa_mask);
23473 act.sa_flags = SA_RESTART;
23474 sigaction(0, &act, &oact);
23479 rm -f conftest.$ac_objext conftest$ac_exeext
23480 if { (ac_try="$ac_link"
23481 case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_link") 2>conftest.er1
23488 grep -v '^ *+' conftest.er1 >conftest.err
23490 cat conftest.err >&5
23491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23492 (exit $ac_status); } && {
23493 test -z "$ac_c_werror_flag" ||
23494 test ! -s conftest.err
23495 } && test -s conftest$ac_exeext &&
23496 $as_test_x conftest$ac_exeext; then
23497 pgac_cv_func_posix_signals=yes
23499 echo "$as_me: failed program was
:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23502 pgac_cv_func_posix_signals=no
23505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23506 conftest$ac_exeext conftest.$ac_ext
23508 { echo "$as_me:$LINENO: result
: $pgac_cv_func_posix_signals" >&5
23509 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23510 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23512 cat >>confdefs.h <<\_ACEOF
23513 #define HAVE_POSIX_SIGNALS
23517 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23519 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23520 { { echo "$as_me:$LINENO: error
:
23521 Thread-safety requires POSIX signals
, which are not supported by this
23522 operating system.
" >&5
23523 echo "$as_me: error
:
23524 Thread-safety requires POSIX signals
, which are not supported by this
23525 operating system.
" >&2;}
23526 { (exit 1); exit 1; }; }
23530 if test $ac_cv_func_fseeko = yes; then
23531 # Check whether --enable-largefile was given.
23532 if test "${enable_largefile+set}" = set; then
23533 enableval=$enable_largefile;
23536 if test "$enable_largefile" != no; then
23538 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
23539 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
23540 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23541 echo $ECHO_N "(cached
) $ECHO_C" >&6
23543 ac_cv_sys_largefile_CC=no
23544 if test "$GCC" != yes; then
23547 # IRIX 6.2 and later do not support large files by default,
23548 # so use the C compiler's -n32 option if that helps.
23549 cat >conftest.$ac_ext <<_ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 #include <sys/types.h>
23556 /* Check that off_t can represent 2**63 - 1 correctly.
23557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23558 since some C++ compilers masquerading as C compilers
23559 incorrectly reject 9223372036854775807. */
23560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23562 && LARGE_OFF_T % 2147483647 == 1)
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_compile") 2>conftest.er1
23581 grep -v '^ *+' conftest.er1 >conftest.err
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest.$ac_objext; then
23591 echo "$as_me: failed program was
:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23597 rm -f core conftest.err conftest.$ac_objext
23599 rm -f conftest.$ac_objext
23600 if { (ac_try="$ac_compile"
23601 case "(($ac_try" in
23602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23603 *) ac_try_echo=$ac_try;;
23605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23606 (eval "$ac_compile") 2>conftest.er1
23608 grep -v '^ *+' conftest.er1 >conftest.err
23610 cat conftest.err >&5
23611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23612 (exit $ac_status); } && {
23613 test -z "$ac_c_werror_flag" ||
23614 test ! -s conftest.err
23615 } && test -s conftest.$ac_objext; then
23616 ac_cv_sys_largefile_CC=' -n32'; break
23618 echo "$as_me: failed program was
:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23624 rm -f core conftest.err conftest.$ac_objext
23628 rm -f conftest.$ac_ext
23631 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
23632 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
23633 if test "$ac_cv_sys_largefile_CC" != no; then
23634 CC=$CC$ac_cv_sys_largefile_CC
23637 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
23638 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
23639 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23640 echo $ECHO_N "(cached
) $ECHO_C" >&6
23643 cat >conftest.$ac_ext <<_ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 #include <sys/types.h>
23650 /* Check that off_t can represent 2**63 - 1 correctly.
23651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23652 since some C++ compilers masquerading as C compilers
23653 incorrectly reject 9223372036854775807. */
23654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23656 && LARGE_OFF_T % 2147483647 == 1)
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23675 grep -v '^ *+' conftest.er1 >conftest.err
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 ac_cv_sys_file_offset_bits=no; break
23685 echo "$as_me: failed program was
:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 #define _FILE_OFFSET_BITS 64
23699 #include <sys/types.h>
23700 /* Check that off_t can represent 2**63 - 1 correctly.
23701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23702 since some C++ compilers masquerading as C compilers
23703 incorrectly reject 9223372036854775807. */
23704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23706 && LARGE_OFF_T % 2147483647 == 1)
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
23733 ac_cv_sys_file_offset_bits=64; break
23735 echo "$as_me: failed program was
:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 ac_cv_sys_file_offset_bits=unknown
23746 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
23747 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23748 case $ac_cv_sys_file_offset_bits in #(
23751 cat >>confdefs.h <<_ACEOF
23752 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23757 if test $ac_cv_sys_file_offset_bits = unknown; then
23758 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
23759 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
23760 if test "${ac_cv_sys_large_files+set}" = set; then
23761 echo $ECHO_N "(cached
) $ECHO_C" >&6
23764 cat >conftest.$ac_ext <<_ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 #include <sys/types.h>
23771 /* Check that off_t can represent 2**63 - 1 correctly.
23772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23773 since some C++ compilers masquerading as C compilers
23774 incorrectly reject 9223372036854775807. */
23775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23777 && LARGE_OFF_T % 2147483647 == 1)
23787 rm -f conftest.$ac_objext
23788 if { (ac_try="$ac_compile"
23789 case "(($ac_try" in
23790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791 *) ac_try_echo=$ac_try;;
23793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23794 (eval "$ac_compile") 2>conftest.er1
23796 grep -v '^ *+' conftest.er1 >conftest.err
23798 cat conftest.err >&5
23799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23800 (exit $ac_status); } && {
23801 test -z "$ac_c_werror_flag" ||
23802 test ! -s conftest.err
23803 } && test -s conftest.$ac_objext; then
23804 ac_cv_sys_large_files=no; break
23806 echo "$as_me: failed program was
:" >&5
23807 sed 's/^/| /' conftest.$ac_ext >&5
23812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23813 cat >conftest.$ac_ext <<_ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23819 #define _LARGE_FILES 1
23820 #include <sys/types.h>
23821 /* Check that off_t can represent 2**63 - 1 correctly.
23822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23823 since some C++ compilers masquerading as C compilers
23824 incorrectly reject 9223372036854775807. */
23825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23827 && LARGE_OFF_T % 2147483647 == 1)
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23844 (eval "$ac_compile") 2>conftest.er1
23846 grep -v '^ *+' conftest.er1 >conftest.err
23848 cat conftest.err >&5
23849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23850 (exit $ac_status); } && {
23851 test -z "$ac_c_werror_flag" ||
23852 test ! -s conftest.err
23853 } && test -s conftest.$ac_objext; then
23854 ac_cv_sys_large_files=1; break
23856 echo "$as_me: failed program was
:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863 ac_cv_sys_large_files=unknown
23867 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
23868 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23869 case $ac_cv_sys_large_files in #(
23872 cat >>confdefs.h <<_ACEOF
23873 #define _LARGE_FILES $ac_cv_sys_large_files
23883 # Check for largefile support (must be after AC_SYS_LARGEFILE)
23884 { echo "$as_me:$LINENO: checking
for off_t
" >&5
23885 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
23886 if test "${ac_cv_type_off_t+set}" = set; then
23887 echo $ECHO_N "(cached
) $ECHO_C" >&6
23889 cat >conftest.$ac_ext <<_ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 $ac_includes_default
23896 typedef off_t ac__type_new_;
23900 if ((ac__type_new_ *) 0)
23902 if (sizeof (ac__type_new_))
23908 rm -f conftest.$ac_objext
23909 if { (ac_try="$ac_compile"
23910 case "(($ac_try" in
23911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912 *) ac_try_echo=$ac_try;;
23914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23915 (eval "$ac_compile") 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest.$ac_objext; then
23925 ac_cv_type_off_t=yes
23927 echo "$as_me: failed program was
:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 ac_cv_type_off_t=no
23933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23935 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
23936 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23938 # The cast to long int works around a bug in the HP C Compiler
23939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23941 # This bug is HP SR number 8606223364.
23942 { echo "$as_me:$LINENO: checking size of off_t
" >&5
23943 echo $ECHO_N "checking size of off_t...
$ECHO_C" >&6; }
23944 if test "${ac_cv_sizeof_off_t+set}" = set; then
23945 echo $ECHO_N "(cached
) $ECHO_C" >&6
23947 if test "$cross_compiling" = yes; then
23948 # Depending upon the size, compute the lo and hi bounds.
23949 cat >conftest.$ac_ext <<_ACEOF
23952 cat confdefs.h >>conftest.$ac_ext
23953 cat >>conftest.$ac_ext <<_ACEOF
23954 /* end confdefs.h. */
23955 $ac_includes_default
23956 typedef off_t ac__type_sizeof_;
23960 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23967 rm -f conftest.$ac_objext
23968 if { (ac_try="$ac_compile"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_compile") 2>conftest.er1
23976 grep -v '^ *+' conftest.er1 >conftest.err
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest.$ac_objext; then
23986 cat >conftest.$ac_ext <<_ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h. */
23992 $ac_includes_default
23993 typedef off_t ac__type_sizeof_;
23997 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24004 rm -f conftest.$ac_objext
24005 if { (ac_try="$ac_compile"
24006 case "(($ac_try" in
24007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008 *) ac_try_echo=$ac_try;;
24010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24011 (eval "$ac_compile") 2>conftest.er1
24013 grep -v '^ *+' conftest.er1 >conftest.err
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24017 (exit $ac_status); } && {
24018 test -z "$ac_c_werror_flag" ||
24019 test ! -s conftest.err
24020 } && test -s conftest.$ac_objext; then
24021 ac_hi=$ac_mid; break
24023 echo "$as_me: failed program was
:" >&5
24024 sed 's/^/| /' conftest.$ac_ext >&5
24026 ac_lo=`expr $ac_mid + 1`
24027 if test $ac_lo -le $ac_mid; then
24031 ac_mid=`expr 2 '*' $ac_mid + 1`
24034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24037 echo "$as_me: failed program was
:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24040 cat >conftest.$ac_ext <<_ACEOF
24043 cat confdefs.h >>conftest.$ac_ext
24044 cat >>conftest.$ac_ext <<_ACEOF
24045 /* end confdefs.h. */
24046 $ac_includes_default
24047 typedef off_t ac__type_sizeof_;
24051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24058 rm -f conftest.$ac_objext
24059 if { (ac_try="$ac_compile"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_compile") 2>conftest.er1
24067 grep -v '^ *+' conftest.er1 >conftest.err
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_c_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest.$ac_objext; then
24077 cat >conftest.$ac_ext <<_ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 $ac_includes_default
24084 typedef off_t ac__type_sizeof_;
24088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24095 rm -f conftest.$ac_objext
24096 if { (ac_try="$ac_compile"
24097 case "(($ac_try" in
24098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099 *) ac_try_echo=$ac_try;;
24101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24102 (eval "$ac_compile") 2>conftest.er1
24104 grep -v '^ *+' conftest.er1 >conftest.err
24106 cat conftest.err >&5
24107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24108 (exit $ac_status); } && {
24109 test -z "$ac_c_werror_flag" ||
24110 test ! -s conftest.err
24111 } && test -s conftest.$ac_objext; then
24112 ac_lo=$ac_mid; break
24114 echo "$as_me: failed program was
:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24117 ac_hi=`expr '(' $ac_mid ')' - 1`
24118 if test $ac_mid -le $ac_hi; then
24122 ac_mid=`expr 2 '*' $ac_mid`
24125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 echo "$as_me: failed program was
:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24138 # Binary search between lo and hi bounds.
24139 while test "x
$ac_lo" != "x
$ac_hi"; do
24140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24141 cat >conftest.$ac_ext <<_ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 $ac_includes_default
24148 typedef off_t ac__type_sizeof_;
24152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24159 rm -f conftest.$ac_objext
24160 if { (ac_try="$ac_compile"
24161 case "(($ac_try" in
24162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24166 (eval "$ac_compile") 2>conftest.er1
24168 grep -v '^ *+' conftest.er1 >conftest.err
24170 cat conftest.err >&5
24171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24172 (exit $ac_status); } && {
24173 test -z "$ac_c_werror_flag" ||
24174 test ! -s conftest.err
24175 } && test -s conftest.$ac_objext; then
24178 echo "$as_me: failed program was
:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24181 ac_lo=`expr '(' $ac_mid ')' + 1`
24184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24187 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24188 '') if test "$ac_cv_type_off_t" = yes; then
24189 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
24190 See \
`config.log' for more details." >&5
24191 echo "$as_me: error: cannot compute sizeof (off_t)
24192 See \`config.log
' for more details." >&2;}
24193 { (exit 77); exit 77; }; }
24195 ac_cv_sizeof_off_t=0
24199 cat >conftest.$ac_ext <<_ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 $ac_includes_default
24206 typedef off_t ac__type_sizeof_;
24207 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24208 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24210 #include <stdlib.h>
24215 FILE *f = fopen ("conftest.val", "w");
24218 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24220 long int i = longval ();
24221 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24223 fprintf (f, "%ld\n", i);
24227 unsigned long int i = ulongval ();
24228 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24230 fprintf (f, "%lu\n", i);
24232 return ferror (f) || fclose (f) != 0;
24238 rm -f conftest$ac_exeext
24239 if { (ac_try="$ac_link"
24240 case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24245 (eval "$ac_link") 2>&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24249 { (case "(($ac_try" in
24250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24251 *) ac_try_echo=$ac_try;;
24253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24254 (eval "$ac_try") 2>&5
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; }; then
24258 ac_cv_sizeof_off_t=`cat conftest.val`
24260 echo "$as_me: program exited with status $ac_status" >&5
24261 echo "$as_me: failed program was:" >&5
24262 sed 's
/^
/|
/' conftest.$ac_ext >&5
24264 ( exit $ac_status )
24265 if test "$ac_cv_type_off_t" = yes; then
24266 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24267 See \`config.log' for more details.
" >&5
24268 echo "$as_me: error
: cannot compute sizeof
(off_t
)
24269 See \
`config.log' for more details." >&2;}
24270 { (exit 77); exit 77; }; }
24272 ac_cv_sizeof_off_t=0
24275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24279 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24280 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24284 cat >>confdefs.h <<_ACEOF
24285 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24290 if test "$ac_cv_sizeof_off_t" -lt 8 -o "$enable_segmented_files" = "yes"; then
24292 cat >>confdefs.h <<\_ACEOF
24293 #define USE_SEGMENTED_FILES 1
24298 # SunOS doesn't handle negative byte comparisons properly with +/- return
24299 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24300 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24301 if test "${ac_cv_func_memcmp_working+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24304 if test "$cross_compiling" = yes; then
24305 ac_cv_func_memcmp_working=no
24307 cat >conftest.$ac_ext <<_ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24313 $ac_includes_default
24318 /* Some versions of memcmp are not 8-bit clean. */
24319 char c0 = '\100', c1 = '\200', c2 = '\201';
24320 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24323 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24324 or more and with at least one buffer not starting on a 4-byte boundary.
24325 William Lewis provided this test program. */
24330 for (i = 0; i < 4; i++)
24334 strcpy (a, "--------01111111");
24335 strcpy (b, "--------10000000");
24336 if (memcmp (a, b, 16) >= 0)
24346 rm -f conftest$ac_exeext
24347 if { (ac_try="$ac_link"
24348 case "(($ac_try" in
24349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24350 *) ac_try_echo
=$ac_try;;
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_link") 2>&5
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24357 { (case "(($ac_try" in
24358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24359 *) ac_try_echo=$ac_try;;
24361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24362 (eval "$ac_try") 2>&5
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); }; }; then
24366 ac_cv_func_memcmp_working=yes
24368 echo "$as_me: program exited with status $ac_status" >&5
24369 echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24372 ( exit $ac_status )
24373 ac_cv_func_memcmp_working=no
24375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24380 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24381 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24382 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24383 *" memcmp.$ac_objext "* ) ;;
24384 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24391 # Select semaphore implementation type.
24392 if test "$PORTNAME" != "win32"; then
24393 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24395 cat >>confdefs.h <<\_ACEOF
24396 #define USE_NAMED_POSIX_SEMAPHORES 1
24399 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24401 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24403 cat >>confdefs.h <<\_ACEOF
24404 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24407 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24410 cat >>confdefs.h <<\_ACEOF
24411 #define USE_SYSV_SEMAPHORES 1
24414 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24419 cat >>confdefs.h <<\_ACEOF
24420 #define USE_WIN32_SEMAPHORES 1
24423 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24427 # Select shared-memory implementation type.
24428 if test "$PORTNAME" != "win32"; then
24430 cat >>confdefs.h <<\_ACEOF
24431 #define USE_SYSV_SHARED_MEMORY 1
24434 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24437 cat >>confdefs.h <<\_ACEOF
24438 #define USE_WIN32_SHARED_MEMORY 1
24441 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24444 # If not set in template file, set bytes to use libc memset()
24445 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24446 MEMSET_LOOP_LIMIT=1024
24449 cat >>confdefs.h <<_ACEOF
24450 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24455 if test "$enable_nls" = yes ; then
24457 { echo "$as_me:$LINENO: checking for library containing gettext" >&5
24458 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6; }
24459 if test "${ac_cv_search_gettext+set}" = set; then
24460 echo $ECHO_N "(cached) $ECHO_C" >&6
24462 ac_func_search_save_LIBS=$LIBS
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24470 /* Override any GCC internal prototype to avoid an error.
24471 Use char because int might match the return type of a GCC
24472 builtin and then its argument prototype would still apply. */
24485 for ac_lib in '' intl; do
24486 if test -z "$ac_lib"; then
24487 ac_res="none required"
24490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24492 rm -f conftest.$ac_objext conftest$ac_exeext
24493 if { (ac_try="$ac_link"
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_link") 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_exeext &&
24509 $as_test_x conftest
$ac_exeext; then
24510 ac_cv_search_gettext
=$ac_res
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.
$ac_ext >&5
24518 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24520 if test "${ac_cv_search_gettext+set}" = set; then
24524 if test "${ac_cv_search_gettext+set}" = set; then
24527 ac_cv_search_gettext
=no
24529 rm conftest.
$ac_ext
24530 LIBS
=$ac_func_search_save_LIBS
24532 { echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
24533 echo "${ECHO_T}$ac_cv_search_gettext" >&6; }
24534 ac_res
=$ac_cv_search_gettext
24535 if test "$ac_res" != no
; then
24536 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24539 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24540 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24541 { (exit 1); exit 1; }; }
24544 if test "${ac_cv_header_libintl_h+set}" = set; then
24545 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24546 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24547 if test "${ac_cv_header_libintl_h+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24551 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24553 # Is the header compilable?
24554 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24555 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24556 cat >conftest.
$ac_ext <<_ACEOF
24559 cat confdefs.h
>>conftest.
$ac_ext
24560 cat >>conftest.
$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 $ac_includes_default
24563 #include <libintl.h>
24565 rm -f conftest.
$ac_objext
24566 if { (ac_try
="$ac_compile"
24567 case "(($ac_try" in
24568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_compile") 2>conftest.er1
24574 grep -v '^ *+' conftest.er1 >conftest.err
24576 cat conftest.err >&5
24577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24578 (exit $ac_status); } && {
24579 test -z "$ac_c_werror_flag" ||
24580 test ! -s conftest.err
24581 } && test -s conftest.$ac_objext; then
24582 ac_header_compiler=yes
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ac_header_compiler=no
24590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24592 echo "${ECHO_T}$ac_header_compiler" >&6; }
24594 # Is the header present?
24595 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
24596 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
24597 cat >conftest.$ac_ext <<_ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24603 #include <libintl.h>
24605 if { (ac_try="$ac_cpp conftest.$ac_ext"
24606 case "(($ac_try" in
24607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24608 *) ac_try_echo
=$ac_try;;
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24613 grep -v '^ *+' conftest.er1
>conftest.err
24615 cat conftest.err
>&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } >/dev
/null
&& {
24618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24619 test ! -s conftest.err
24621 ac_header_preproc
=yes
24623 echo "$as_me: failed program was:" >&5
24624 sed 's/^/| /' conftest.
$ac_ext >&5
24626 ac_header_preproc
=no
24629 rm -f conftest.err conftest.
$ac_ext
24630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24631 echo "${ECHO_T}$ac_header_preproc" >&6; }
24633 # So? What about this header?
24634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24636 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24637 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24638 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
24639 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
24640 ac_header_preproc
=yes
24643 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
24644 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
24645 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
24646 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
24647 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
24648 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
24649 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
24650 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24651 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
24652 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
24653 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
24654 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
24656 ## ---------------------------------------- ##
24657 ## Report this to pgsql-bugs@postgresql.org ##
24658 ## ---------------------------------------- ##
24660 ) |
sed "s/^/$as_me: WARNING: /" >&2
24663 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24664 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24665 if test "${ac_cv_header_libintl_h+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24668 ac_cv_header_libintl_h
=$ac_header_preproc
24670 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24671 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24674 if test $ac_cv_header_libintl_h = yes; then
24677 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
24678 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
24679 { (exit 1); exit 1; }; }
24683 for ac_prog
in msgfmt
24685 # Extract the first word of "$ac_prog", so it can be a program name with args.
24686 set dummy
$ac_prog; ac_word
=$2
24687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24689 if test "${ac_cv_prog_MSGFMT+set}" = set; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 if test -n "$MSGFMT"; then
24693 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
24695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24696 for as_dir
in $PATH
24699 test -z "$as_dir" && as_dir
=.
24700 for ac_exec_ext
in '' $ac_executable_extensions; do
24701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24702 ac_cv_prog_MSGFMT
="$ac_prog"
24703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24712 MSGFMT
=$ac_cv_prog_MSGFMT
24713 if test -n "$MSGFMT"; then
24714 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24715 echo "${ECHO_T}$MSGFMT" >&6; }
24717 { echo "$as_me:$LINENO: result: no" >&5
24718 echo "${ECHO_T}no" >&6; }
24722 test -n "$MSGFMT" && break
24725 if test -z "$MSGFMT"; then
24726 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
24727 echo "$as_me: error: msgfmt is required for NLS" >&2;}
24728 { (exit 1); exit 1; }; }
24730 for ac_prog
in msgmerge
24732 # Extract the first word of "$ac_prog", so it can be a program name with args.
24733 set dummy
$ac_prog; ac_word
=$2
24734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24736 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24739 if test -n "$MSGMERGE"; then
24740 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
24742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24743 for as_dir
in $PATH
24746 test -z "$as_dir" && as_dir
=.
24747 for ac_exec_ext
in '' $ac_executable_extensions; do
24748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24749 ac_cv_prog_MSGMERGE
="$ac_prog"
24750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24759 MSGMERGE
=$ac_cv_prog_MSGMERGE
24760 if test -n "$MSGMERGE"; then
24761 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
24762 echo "${ECHO_T}$MSGMERGE" >&6; }
24764 { echo "$as_me:$LINENO: result: no" >&5
24765 echo "${ECHO_T}no" >&6; }
24769 test -n "$MSGMERGE" && break
24772 for ac_prog
in xgettext
24774 # Extract the first word of "$ac_prog", so it can be a program name with args.
24775 set dummy
$ac_prog; ac_word
=$2
24776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24778 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
24779 echo $ECHO_N "(cached) $ECHO_C" >&6
24781 if test -n "$XGETTEXT"; then
24782 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
24784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24785 for as_dir
in $PATH
24788 test -z "$as_dir" && as_dir
=.
24789 for ac_exec_ext
in '' $ac_executable_extensions; do
24790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24791 ac_cv_prog_XGETTEXT
="$ac_prog"
24792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24801 XGETTEXT
=$ac_cv_prog_XGETTEXT
24802 if test -n "$XGETTEXT"; then
24803 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24804 echo "${ECHO_T}$XGETTEXT" >&6; }
24806 { echo "$as_me:$LINENO: result: no" >&5
24807 echo "${ECHO_T}no" >&6; }
24811 test -n "$XGETTEXT" && break
24817 # Check for Tcl configuration script tclConfig.sh
24818 if test "$with_tcl" = yes; then
24819 for ac_prog
in tclsh tcl
24821 # Extract the first word of "$ac_prog", so it can be a program name with args.
24822 set dummy
$ac_prog; ac_word
=$2
24823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24825 if test "${ac_cv_path_TCLSH+set}" = set; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24830 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
24833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24834 for as_dir
in $PATH
24837 test -z "$as_dir" && as_dir
=.
24838 for ac_exec_ext
in '' $ac_executable_extensions; do
24839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24840 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
24841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24851 TCLSH
=$ac_cv_path_TCLSH
24852 if test -n "$TCLSH"; then
24853 { echo "$as_me:$LINENO: result: $TCLSH" >&5
24854 echo "${ECHO_T}$TCLSH" >&6; }
24856 { echo "$as_me:$LINENO: result: no" >&5
24857 echo "${ECHO_T}no" >&6; }
24861 test -n "$TCLSH" && break
24864 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
24865 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
24866 # Let user override test
24867 if test -z "$TCL_CONFIG_SH"; then
24868 pgac_test_dirs
="$with_tclconfig"
24870 set X
$pgac_test_dirs; shift
24871 if test $# -eq 0; then
24872 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
24873 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
24874 { (exit 1); exit 1; }; }
24875 set X
`echo 'puts $auto_path' | $TCLSH`; shift
24879 if test -r "$pgac_dir/tclConfig.sh"; then
24880 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
24886 if test -z "$TCL_CONFIG_SH"; then
24887 { echo "$as_me:$LINENO: result: no" >&5
24888 echo "${ECHO_T}no" >&6; }
24889 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
24890 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
24891 { (exit 1); exit 1; }; }
24893 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24894 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
24900 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
24901 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
24902 eval TCL_LIBS
=\"$TCL_LIBS\"
24903 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
24904 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
24906 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24907 ac_save_CPPFLAGS
=$CPPFLAGS
24908 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
24909 if test "${ac_cv_header_tcl_h+set}" = set; then
24910 { echo "$as_me:$LINENO: checking for tcl.h" >&5
24911 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
24912 if test "${ac_cv_header_tcl_h+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24916 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
24918 # Is the header compilable?
24919 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
24920 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
24921 cat >conftest.
$ac_ext <<_ACEOF
24924 cat confdefs.h
>>conftest.
$ac_ext
24925 cat >>conftest.
$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24927 $ac_includes_default
24930 rm -f conftest.
$ac_objext
24931 if { (ac_try
="$ac_compile"
24932 case "(($ac_try" in
24933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24934 *) ac_try_echo=$ac_try;;
24936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24937 (eval "$ac_compile") 2>conftest.er1
24939 grep -v '^ *+' conftest.er1 >conftest.err
24941 cat conftest.err >&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } && {
24944 test -z "$ac_c_werror_flag" ||
24945 test ! -s conftest.err
24946 } && test -s conftest.$ac_objext; then
24947 ac_header_compiler=yes
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24952 ac_header_compiler=no
24955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24957 echo "${ECHO_T}$ac_header_compiler" >&6; }
24959 # Is the header present?
24960 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
24961 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
24962 cat >conftest.$ac_ext <<_ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24970 if { (ac_try="$ac_cpp conftest.$ac_ext"
24971 case "(($ac_try" in
24972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24973 *) ac_try_echo
=$ac_try;;
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24978 grep -v '^ *+' conftest.er1
>conftest.err
24980 cat conftest.err
>&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } >/dev
/null
&& {
24983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24986 ac_header_preproc
=yes
24988 echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.
$ac_ext >&5
24991 ac_header_preproc
=no
24994 rm -f conftest.err conftest.
$ac_ext
24995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24996 echo "${ECHO_T}$ac_header_preproc" >&6; }
24998 # So? What about this header?
24999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25001 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25002 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25003 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25004 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25005 ac_header_preproc
=yes
25008 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25009 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25010 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25011 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25012 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25013 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25014 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25015 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25016 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25017 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25018 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25019 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25021 ## ---------------------------------------- ##
25022 ## Report this to pgsql-bugs@postgresql.org ##
25023 ## ---------------------------------------- ##
25025 ) |
sed "s/^/$as_me: WARNING: /" >&2
25028 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25029 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25030 if test "${ac_cv_header_tcl_h+set}" = set; then
25031 echo $ECHO_N "(cached) $ECHO_C" >&6
25033 ac_cv_header_tcl_h
=$ac_header_preproc
25035 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25036 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25039 if test $ac_cv_header_tcl_h = yes; then
25042 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25043 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25044 { (exit 1); exit 1; }; }
25048 CPPFLAGS
=$ac_save_CPPFLAGS
25052 # Check for DocBook and tools
25054 for ac_prog
in onsgmls nsgmls
25056 # Extract the first word of "$ac_prog", so it can be a program name with args.
25057 set dummy
$ac_prog; ac_word
=$2
25058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25060 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25061 echo $ECHO_N "(cached) $ECHO_C" >&6
25063 if test -n "$NSGMLS"; then
25064 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
25066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25067 for as_dir
in $PATH
25070 test -z "$as_dir" && as_dir
=.
25071 for ac_exec_ext
in '' $ac_executable_extensions; do
25072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25073 ac_cv_prog_NSGMLS
="$ac_prog"
25074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25083 NSGMLS
=$ac_cv_prog_NSGMLS
25084 if test -n "$NSGMLS"; then
25085 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25086 echo "${ECHO_T}$NSGMLS" >&6; }
25088 { echo "$as_me:$LINENO: result: no" >&5
25089 echo "${ECHO_T}no" >&6; }
25093 test -n "$NSGMLS" && break
25096 for ac_prog
in openjade jade
25098 # Extract the first word of "$ac_prog", so it can be a program name with args.
25099 set dummy
$ac_prog; ac_word
=$2
25100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25102 if test "${ac_cv_prog_JADE+set}" = set; then
25103 echo $ECHO_N "(cached) $ECHO_C" >&6
25105 if test -n "$JADE"; then
25106 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
25108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25109 for as_dir
in $PATH
25112 test -z "$as_dir" && as_dir
=.
25113 for ac_exec_ext
in '' $ac_executable_extensions; do
25114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25115 ac_cv_prog_JADE
="$ac_prog"
25116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25125 JADE
=$ac_cv_prog_JADE
25126 if test -n "$JADE"; then
25127 { echo "$as_me:$LINENO: result: $JADE" >&5
25128 echo "${ECHO_T}$JADE" >&6; }
25130 { echo "$as_me:$LINENO: result: no" >&5
25131 echo "${ECHO_T}no" >&6; }
25135 test -n "$JADE" && break
25139 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25140 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25141 if test "${pgac_cv_check_docbook+set}" = set; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 cat >conftest.sgml
<<EOF
25145 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25147 <title>test</title>
25149 <title>random</title>
25151 <title>testsect</title>
25158 pgac_cv_check_docbook
=no
25160 if test -n "$NSGMLS"; then
25161 $NSGMLS -s conftest.sgml
1>&5 2>&1
25162 if test $?
-eq 0; then
25163 pgac_cv_check_docbook
=yes
25166 rm -f conftest.sgml
25168 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25169 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25171 have_docbook
=$pgac_cv_check_docbook
25174 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25175 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25176 if test "${pgac_cv_path_stylesheets+set}" = set; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25179 if test -n "$DOCBOOKSTYLE"; then
25180 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
25182 for pgac_prefix
in /usr
/usr
/local /opt
; do
25183 for pgac_infix
in share lib
; do
25184 for pgac_postfix
in \
25185 sgml
/stylesheets
/nwalsh-modular \
25186 sgml
/stylesheets
/docbook \
25187 sgml
/stylesheets
/dsssl
/docbook \
25188 sgml
/docbook-dsssl \
25189 sgml
/docbook
/dsssl
/modular \
25190 sgml
/docbook
/stylesheet
/dsssl
/modular \
25191 sgml
/docbook
/dsssl-stylesheets
25193 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
25194 if test -r "$pgac_candidate/html/docbook.dsl" \
25195 && test -r "$pgac_candidate/print/docbook.dsl"
25197 pgac_cv_path_stylesheets
=$pgac_candidate
25206 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
25208 if test -n "$DOCBOOKSTYLE"; then
25209 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25210 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25212 { echo "$as_me:$LINENO: result: no" >&5
25213 echo "${ECHO_T}no" >&6; }
25215 if test -n "$DOCBOOKSTYLE"; then
25216 for ac_prog
in collateindex.pl
25218 # Extract the first word of "$ac_prog", so it can be a program name with args.
25219 set dummy
$ac_prog; ac_word
=$2
25220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25222 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25223 echo $ECHO_N "(cached) $ECHO_C" >&6
25225 case $COLLATEINDEX in
25227 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25231 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
25234 test -z "$as_dir" && as_dir
=.
25235 for ac_exec_ext
in '' $ac_executable_extensions; do
25236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25237 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25248 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25249 if test -n "$COLLATEINDEX"; then
25250 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25251 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25253 { echo "$as_me:$LINENO: result: no" >&5
25254 echo "${ECHO_T}no" >&6; }
25258 test -n "$COLLATEINDEX" && break
25262 for ac_prog
in collateindex.pl
25264 # Extract the first word of "$ac_prog", so it can be a program name with args.
25265 set dummy
$ac_prog; ac_word
=$2
25266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25268 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25271 case $COLLATEINDEX in
25273 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25277 for as_dir
in $PATH
25280 test -z "$as_dir" && as_dir
=.
25281 for ac_exec_ext
in '' $ac_executable_extensions; do
25282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25283 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25294 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25295 if test -n "$COLLATEINDEX"; then
25296 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25297 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25299 { echo "$as_me:$LINENO: result: no" >&5
25300 echo "${ECHO_T}no" >&6; }
25304 test -n "$COLLATEINDEX" && break
25308 for ac_prog
in sgmlspl
25310 # Extract the first word of "$ac_prog", so it can be a program name with args.
25311 set dummy
$ac_prog; ac_word
=$2
25312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25314 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25315 echo $ECHO_N "(cached) $ECHO_C" >&6
25317 if test -n "$SGMLSPL"; then
25318 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
25320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25321 for as_dir
in $PATH
25324 test -z "$as_dir" && as_dir
=.
25325 for ac_exec_ext
in '' $ac_executable_extensions; do
25326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25327 ac_cv_prog_SGMLSPL
="$ac_prog"
25328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25337 SGMLSPL
=$ac_cv_prog_SGMLSPL
25338 if test -n "$SGMLSPL"; then
25339 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25340 echo "${ECHO_T}$SGMLSPL" >&6; }
25342 { echo "$as_me:$LINENO: result: no" >&5
25343 echo "${ECHO_T}no" >&6; }
25347 test -n "$SGMLSPL" && break
25353 # We have to run the thread test near the end so we have all our symbols
25354 # defined. Cross compiling throws a warning.
25356 if test "$enable_thread_safety_force" = yes; then
25357 if test "$PORTNAME" != "win32"
25359 { echo "$as_me:$LINENO: WARNING:
25360 *** Skipping thread test program. --enable-thread-safety-force was used.
25361 *** Run the program in src/test/thread on the your machine and add proper
25362 *** locking function calls to your applications to guarantee thread safety.
25364 echo "$as_me: WARNING:
25365 *** Skipping thread test program. --enable-thread-safety-force was used.
25366 *** Run the program in src/test/thread on the your machine and add proper
25367 *** locking function calls to your applications to guarantee thread safety.
25370 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25371 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25373 elif test "$enable_thread_safety" = yes; then
25374 if test "$PORTNAME" != "win32"
25376 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25377 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25381 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25382 LIBS
="$LIBS $PTHREAD_LIBS"
25383 if test "$cross_compiling" = yes; then
25384 { echo "$as_me:$LINENO: result: maybe" >&5
25385 echo "${ECHO_T}maybe" >&6; }
25386 { echo "$as_me:$LINENO: WARNING:
25387 *** Skipping thread test program because of cross-compile build.
25388 *** Run the program in src/test/thread on the target machine.
25390 echo "$as_me: WARNING:
25391 *** Skipping thread test program because of cross-compile build.
25392 *** Run the program in src/test/thread on the target machine.
25395 cat >conftest.
$ac_ext <<_ACEOF
25398 cat confdefs.h
>>conftest.
$ac_ext
25399 cat >>conftest.
$ac_ext <<_ACEOF
25400 /* end confdefs.h. */
25401 #include "$srcdir/src/test/thread/thread_test.c"
25403 rm -f conftest
$ac_exeext
25404 if { (ac_try
="$ac_link"
25405 case "(($ac_try" in
25406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25407 *) ac_try_echo=$ac_try;;
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410 (eval "$ac_link") 2>&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25414 { (case "(($ac_try" in
25415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25416 *) ac_try_echo
=$ac_try;;
25418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25419 (eval "$ac_try") 2>&5
25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422 (exit $ac_status); }; }; then
25423 { echo "$as_me:$LINENO: result: yes" >&5
25424 echo "${ECHO_T}yes" >&6; }
25426 echo "$as_me: program exited with status $ac_status" >&5
25427 echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.
$ac_ext >&5
25430 ( exit $ac_status )
25431 { echo "$as_me:$LINENO: result: no" >&5
25432 echo "${ECHO_T}no" >&6; }
25433 { { echo "$as_me:$LINENO: error: thread test program failed
25434 This platform is not thread-safe. Check the file 'config.log'for the
25437 You can use the configure option --enable-thread-safety-force to force
25438 threads to be enabled. But you must then run the program in
25439 src/test/thread and add locking function calls to your applications to
25440 guarantee thread safety." >&5
25441 echo "$as_me: error: thread test program failed
25442 This platform is not thread-safe. Check the file 'config.log'for the
25445 You can use the configure option --enable-thread-safety-force to force
25446 threads to be enabled. But you must then run the program in
25447 src/test/thread and add locking function calls to your applications to
25448 guarantee thread safety." >&2;}
25449 { (exit 1); exit 1; }; }
25451 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25458 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25459 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25463 # prepare build tree if outside source tree
25464 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
25465 # Note 2: /bin/pwd might be better than shell's built-in at getting
25466 # a symlink-free name.
25467 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
25471 if test "$no_create" != yes; then
25472 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
25473 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
25474 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
25475 ||
{ { echo "$as_me:$LINENO: error: failed" >&5
25476 echo "$as_me: error: failed" >&2;}
25477 { (exit 1); exit 1; }; }
25478 { echo "$as_me:$LINENO: result: done" >&5
25479 echo "${ECHO_T}done" >&6; }
25485 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
25488 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}"
25491 if test "$PORTNAME" = "win32"; then
25492 ac_config_commands
="$ac_config_commands check_win32_symlinks"
25496 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
25499 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
25502 cat >confcache
<<\_ACEOF
25503 # This file is a shell script that caches the results of configure
25504 # tests run on this system so they can be shared between configure
25505 # scripts and configure runs, see configure's option --config-cache.
25506 # It is not useful on other systems. If it contains results you don't
25507 # want to keep, you may remove or edit it.
25509 # config.status only pays attention to the cache file if you give it
25510 # the --recheck option to rerun configure.
25512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25514 # following values.
25518 # The following way of writing the cache mishandles newlines in values,
25519 # but we know of no workaround that is simple, portable, and efficient.
25520 # So, we kill variables containing newlines.
25521 # Ultrix sh set writes to stderr and can't be redirected directly,
25522 # and sets the high bit in the cache file unless we assign to the vars.
25524 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25525 eval ac_val
=\$
$ac_var
25529 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25530 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25533 _ | IFS | as_nl
) ;; #(
25534 *) $as_unset $ac_var ;;
25540 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25541 *${as_nl}ac_space
=\
*)
25542 # `set' does not quote correctly, so add quotes (double-quote
25543 # substitution turns \\\\ into \\, and sed turns \\ into \).
25546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25549 # `set' quotes correctly as required by POSIX, so do not add quotes.
25550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25563 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25564 if test -w "$cache_file"; then
25565 test "x$cache_file" != "x/dev/null" &&
25566 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25567 echo "$as_me: updating cache $cache_file" >&6;}
25568 cat confcache
>$cache_file
25570 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25571 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25576 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25577 # Let make expand exec_prefix.
25578 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25580 DEFS
=-DHAVE_CONFIG_H
25584 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25585 # 1. Remove the extension, and $U if already installed.
25586 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25587 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25588 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25589 # will be set to the directory where LIBOBJS objects are built.
25590 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25591 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25593 LIBOBJS
=$ac_libobjs
25595 LTLIBOBJS
=$ac_ltlibobjs
25599 : ${CONFIG_STATUS=./config.status}
25600 ac_clean_files_save
=$ac_clean_files
25601 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25602 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25603 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25604 cat >$CONFIG_STATUS <<_ACEOF
25606 # Generated by $as_me.
25607 # Run this file to recreate the current configuration.
25608 # Compiler output produced by configure, useful for debugging
25609 # configure, is in config.log if it exists.
25612 ac_cs_recheck=false
25614 SHELL=\${CONFIG_SHELL-$SHELL}
25617 cat >>$CONFIG_STATUS <<\_ACEOF
25618 ## --------------------- ##
25619 ## M4sh Initialization. ##
25620 ## --------------------- ##
25622 # Be more Bourne compatible
25623 DUALCASE
=1; export DUALCASE
# for MKS sh
25624 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25627 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25628 # is contrary to our usage. Disable this feature.
25629 alias -g '${1+"$@"}'='"$@"'
25630 setopt NO_GLOB_SUBST
25632 case `(set -o) 2>/dev/null` in
25633 *posix
*) set -o posix
;;
25642 # Avoid depending upon Character Ranges.
25643 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25644 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25645 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25646 as_cr_digits
='0123456789'
25647 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25649 # The user is always right.
25650 if test "${PATH_SEPARATOR+set}" != set; then
25651 echo "#! /bin/sh" >conf$$.sh
25652 echo "exit 0" >>conf$$.sh
25654 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25662 # Support unset when possible.
25663 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25671 # We need space, tab and new line, in precisely that order. Quoting is
25672 # there to prevent editors from complaining about space-tab.
25673 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25674 # splitting by setting IFS to empty value.)
25679 # Find who we are. Look in the path if we contain no directory separator.
25681 *[\\/]* ) as_myself
=$0 ;;
25682 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25683 for as_dir
in $PATH
25686 test -z "$as_dir" && as_dir
=.
25687 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25693 # We did not find ourselves, most probably we were run as `sh COMMAND'
25694 # in which case we are not to be found in the path.
25695 if test "x$as_myself" = x
; then
25698 if test ! -f "$as_myself"; then
25699 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25700 { (exit 1); exit 1; }
25703 # Work around bugs in pre-3.0 UWIN ksh.
25704 for as_var
in ENV MAIL MAILPATH
25705 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25713 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25714 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25715 LC_TELEPHONE LC_TIME
25717 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25718 eval $as_var=C
; export $as_var
25720 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25724 # Required to use basename.
25725 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25726 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25732 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25733 as_basename
=basename
25739 # Name of the executable.
25740 as_me
=`$as_basename -- "$0" ||
25741 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25742 X"$0" : 'X\(//\)$' \| \
25743 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25745 sed '/^.*\/\([^/][^/]*\)\/*$/{
25764 as_lineno_1
=$LINENO
25765 as_lineno_2
=$LINENO
25766 test "x$as_lineno_1" != "x$as_lineno_2" &&
25767 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25769 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25770 # uniformly replaced by the line number. The first 'sed' inserts a
25771 # line-number line after each line using $LINENO; the second 'sed'
25772 # does the real work. The second script uses 'N' to pair each
25773 # line-number line with the line containing $LINENO, and appends
25774 # trailing '-' during substitution so that $LINENO is not a special
25775 # case at line end.
25776 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25777 # scripts with optimization help from Paolo Bonzini. Blame Lee
25778 # E. McMahon (1931-1989) for sed's syntax. :-)
25790 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25793 ' >$as_me.lineno
&&
25794 chmod +x
"$as_me.lineno" ||
25795 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25796 { (exit 1); exit 1; }; }
25798 # Don't try to exec as it changes $[0], causing all sort of problems
25799 # (the dirname of $[0] is not the place where we might find the
25800 # original and so on. Autoconf is especially sensitive to this).
25801 .
"./$as_me.lineno"
25802 # Exit status is that of the last command.
25807 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25813 ECHO_C
= ECHO_N
= ECHO_T
=
25814 case `echo -n x` in
25816 case `echo 'x\c'` in
25817 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25824 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25825 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25831 rm -f conf$$ conf$$.exe conf$$.
file
25832 if test -d conf$$.dir
; then
25833 rm -f conf$$.dir
/conf$$.
file
25839 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25841 # ... but there are two gotchas:
25842 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25843 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25844 # In both cases, we have to default to `cp -p'.
25845 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25847 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25852 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25853 rmdir conf$$.dir
2>/dev
/null
25855 if mkdir
-p .
2>/dev
/null
; then
25858 test -d .
/-p && rmdir .
/-p
25862 if test -x / >/dev
/null
2>&1; then
25863 as_test_x
='test -x'
25865 if ls -dL / >/dev
/null
2>&1; then
25872 if test -d "$1"; then
25878 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25879 ???[sx]*):;;*)false;;esac;fi
25883 as_executable_p
=$as_test_x
25885 # Sed expression to map a string onto a valid CPP name.
25886 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25888 # Sed expression to map a string onto a valid variable name.
25889 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25894 # Save the log message, to keep $[0] and so on meaningful, and to
25895 # report actual input values of CONFIG_FILES etc. instead of their
25896 # values after options handling.
25898 This file was extended by PostgreSQL $as_me 8.4devel, which was
25899 generated by GNU Autoconf 2.61. Invocation command line was
25901 CONFIG_FILES = $CONFIG_FILES
25902 CONFIG_HEADERS = $CONFIG_HEADERS
25903 CONFIG_LINKS = $CONFIG_LINKS
25904 CONFIG_COMMANDS = $CONFIG_COMMANDS
25907 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25912 cat >>$CONFIG_STATUS <<_ACEOF
25913 # Files that config.status was made for.
25914 config_files="$ac_config_files"
25915 config_headers="$ac_config_headers"
25916 config_links="$ac_config_links"
25917 config_commands="$ac_config_commands"
25921 cat >>$CONFIG_STATUS <<\_ACEOF
25923 \`$as_me' instantiates files from templates according to the
25924 current configuration.
25926 Usage: $0 [OPTIONS] [FILE]...
25928 -h, --help print this help, then exit
25929 -V, --version print version number and configuration settings, then exit
25930 -q, --quiet do not print progress messages
25931 -d, --debug don't remove temporary files
25932 --recheck update $as_me by reconfiguring in the same conditions
25933 --file=FILE[:TEMPLATE]
25934 instantiate the configuration file FILE
25935 --header=FILE[:TEMPLATE]
25936 instantiate the configuration header FILE
25938 Configuration files:
25941 Configuration headers:
25944 Configuration links:
25947 Configuration commands:
25950 Report bugs to <bug-autoconf@gnu.org>."
25953 cat >>$CONFIG_STATUS <<_ACEOF
25955 PostgreSQL config.status 8.4devel
25956 configured by $0, generated by GNU Autoconf 2.61,
25957 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25959 Copyright (C) 2006 Free Software Foundation, Inc.
25960 This config.status script is free software; the Free Software Foundation
25961 gives unlimited permission to copy, distribute and modify it."
25967 cat >>$CONFIG_STATUS <<\_ACEOF
25968 # If no file are specified by the user, then we need to provide default
25969 # value. By we need to know if files were specified by the user.
25975 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25976 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25987 # Handling of the options.
25988 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25990 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25991 echo "$ac_cs_version"; exit ;;
25992 --debug |
--debu |
--deb |
--de |
--d |
-d )
25994 --file |
--fil |
--fi |
--f )
25996 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25997 ac_need_defaults
=false
;;
25998 --header |
--heade |
--head |
--hea )
26000 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26001 ac_need_defaults
=false
;;
26003 # Conflict between --help and --header
26004 { echo "$as_me: error: ambiguous option: $1
26005 Try \`$0 --help' for more information." >&2
26006 { (exit 1); exit 1; }; };;
26007 --help |
--hel |
-h )
26008 echo "$ac_cs_usage"; exit ;;
26009 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26010 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26013 # This is an error.
26014 -*) { echo "$as_me: error: unrecognized option: $1
26015 Try \`$0 --help' for more information." >&2
26016 { (exit 1); exit 1; }; } ;;
26018 *) ac_config_targets
="$ac_config_targets $1"
26019 ac_need_defaults
=false
;;
26025 ac_configure_extra_args
=
26027 if $ac_cs_silent; then
26029 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26033 cat >>$CONFIG_STATUS <<_ACEOF
26034 if \$ac_cs_recheck; then
26035 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26036 CONFIG_SHELL=$SHELL
26037 export CONFIG_SHELL
26038 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26042 cat >>$CONFIG_STATUS <<\_ACEOF
26046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26047 ## Running $as_me. ##
26053 cat >>$CONFIG_STATUS <<_ACEOF
26056 cat >>$CONFIG_STATUS <<\_ACEOF
26058 # Handling of arguments.
26059 for ac_config_target
in $ac_config_targets
26061 case $ac_config_target in
26062 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26063 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
26064 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
26065 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26066 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26067 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26068 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26069 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26070 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26071 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
26072 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
26073 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26077 { (exit 1); exit 1; }; };;
26082 # If the user did not use the arguments to specify the items to instantiate,
26083 # then the envvar interface is used. Set only those that are not.
26084 # We use the long form for the default assignment because of an extremely
26085 # bizarre bug on SunOS 4.1.3.
26086 if $ac_need_defaults; then
26087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26089 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
26090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26093 # Have a temporary directory for convenience. Make it in the build tree
26094 # simply because there is no reason against having it here, and in addition,
26095 # creating and moving files from /tmp can sometimes cause problems.
26096 # Hook for its removal unless debugging.
26097 # Note that there is a small window in which the directory will not be cleaned:
26098 # after its creation but before its name has been assigned to `$tmp'.
26102 trap 'exit_status=$?
26103 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26105 trap '{ (exit 1); exit 1; }' 1 2 13 15
26107 # Create a (secure) tmp directory for tmp files.
26110 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26111 test -n "$tmp" && test -d "$tmp"
26114 tmp
=.
/conf$$
-$RANDOM
26115 (umask 077 && mkdir
"$tmp")
26118 echo "$me: cannot create a temporary directory in ." >&2
26119 { (exit 1); exit 1; }
26123 # Set up the sed scripts for CONFIG_FILES section.
26126 # No need to generate the scripts if there are no CONFIG_FILES.
26127 # This happens for instance when ./config.status config.h
26128 if test -n "$CONFIG_FILES"; then
26135 for ac_last_try
in false false false false false
:; do
26136 cat >conf$
$subs.
sed <<_ACEOF
26137 SHELL!$SHELL$ac_delim
26138 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26139 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26140 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26141 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26142 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26143 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26144 exec_prefix!$exec_prefix$ac_delim
26145 prefix!$prefix$ac_delim
26146 program_transform_name!$program_transform_name$ac_delim
26147 bindir!$bindir$ac_delim
26148 sbindir!$sbindir$ac_delim
26149 libexecdir!$libexecdir$ac_delim
26150 datarootdir!$datarootdir$ac_delim
26151 datadir!$datadir$ac_delim
26152 sysconfdir!$sysconfdir$ac_delim
26153 sharedstatedir!$sharedstatedir$ac_delim
26154 localstatedir!$localstatedir$ac_delim
26155 includedir!$includedir$ac_delim
26156 oldincludedir!$oldincludedir$ac_delim
26157 docdir!$docdir$ac_delim
26158 infodir!$infodir$ac_delim
26159 htmldir!$htmldir$ac_delim
26160 dvidir!$dvidir$ac_delim
26161 pdfdir!$pdfdir$ac_delim
26162 psdir!$psdir$ac_delim
26163 libdir!$libdir$ac_delim
26164 localedir!$localedir$ac_delim
26165 mandir!$mandir$ac_delim
26166 DEFS!$DEFS$ac_delim
26167 ECHO_C!$ECHO_C$ac_delim
26168 ECHO_N!$ECHO_N$ac_delim
26169 ECHO_T!$ECHO_T$ac_delim
26170 LIBS!$LIBS$ac_delim
26171 build_alias!$build_alias$ac_delim
26172 host_alias!$host_alias$ac_delim
26173 target_alias!$target_alias$ac_delim
26174 configure_args!$configure_args$ac_delim
26175 build!$build$ac_delim
26176 build_cpu!$build_cpu$ac_delim
26177 build_vendor!$build_vendor$ac_delim
26178 build_os!$build_os$ac_delim
26179 host!$host$ac_delim
26180 host_cpu!$host_cpu$ac_delim
26181 host_vendor!$host_vendor$ac_delim
26182 host_os!$host_os$ac_delim
26183 PORTNAME!$PORTNAME$ac_delim
26184 enable_nls!$enable_nls$ac_delim
26185 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26186 default_port!$default_port$ac_delim
26187 enable_shared!$enable_shared$ac_delim
26188 enable_rpath!$enable_rpath$ac_delim
26189 enable_debug!$enable_debug$ac_delim
26190 enable_profiling!$enable_profiling$ac_delim
26191 DTRACE!$DTRACE$ac_delim
26192 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26193 enable_dtrace!$enable_dtrace$ac_delim
26195 CFLAGS!$CFLAGS$ac_delim
26196 LDFLAGS!$LDFLAGS$ac_delim
26197 CPPFLAGS!$CPPFLAGS$ac_delim
26198 ac_ct_CC!$ac_ct_CC$ac_delim
26199 EXEEXT!$EXEEXT$ac_delim
26200 OBJEXT!$OBJEXT$ac_delim
26204 autodepend!$autodepend$ac_delim
26205 INCLUDES!$INCLUDES$ac_delim
26206 enable_thread_safety!$enable_thread_safety$ac_delim
26207 with_tcl!$with_tcl$ac_delim
26208 with_perl!$with_perl$ac_delim
26209 with_python!$with_python$ac_delim
26210 with_gssapi!$with_gssapi$ac_delim
26211 with_krb5!$with_krb5$ac_delim
26212 krb_srvtab!$krb_srvtab$ac_delim
26213 with_pam!$with_pam$ac_delim
26214 with_ldap!$with_ldap$ac_delim
26215 with_bonjour!$with_bonjour$ac_delim
26216 with_openssl!$with_openssl$ac_delim
26217 with_ossp_uuid!$with_ossp_uuid$ac_delim
26218 XML2_CONFIG!$XML2_CONFIG$ac_delim
26219 with_libxml!$with_libxml$ac_delim
26220 with_libxslt!$with_libxslt$ac_delim
26221 with_system_tzdata!$with_system_tzdata$ac_delim
26222 with_zlib!$with_zlib$ac_delim
26223 GREP!$GREP$ac_delim
26224 EGREP!$EGREP$ac_delim
26225 ELF_SYS!$ELF_SYS$ac_delim
26226 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26228 with_gnu_ld!$with_gnu_ld$ac_delim
26229 ld_R_works!$ld_R_works$ac_delim
26230 RANLIB!$RANLIB$ac_delim
26231 STRIP!$STRIP$ac_delim
26232 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26233 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26236 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26238 elif $ac_last_try; then
26239 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26240 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26241 { (exit 1); exit 1; }; }
26243 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26247 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26248 if test -n "$ac_eof"; then
26249 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26250 ac_eof
=`expr $ac_eof + 1`
26253 cat >>$CONFIG_STATUS <<_ACEOF
26254 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26258 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26259 s/^/s,@/; s/!/@,|#_!!_#|/
26262 s/'"$ac_delim"'$/,g/; t
26264 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26265 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26266 rm -f conf$
$subs.
sed
26267 cat >>$CONFIG_STATUS <<_ACEOF
26273 for ac_last_try
in false false false false false
:; do
26274 cat >conf$
$subs.
sed <<_ACEOF
26276 LN_S!$LN_S$ac_delim
26278 YACC!$YACC$ac_delim
26279 YFLAGS!$YFLAGS$ac_delim
26280 FLEX!$FLEX$ac_delim
26281 FLEXFLAGS!$FLEXFLAGS$ac_delim
26282 PERL!$PERL$ac_delim
26283 perl_archlibexp!$perl_archlibexp$ac_delim
26284 perl_privlibexp!$perl_privlibexp$ac_delim
26285 perl_useshrplib!$perl_useshrplib$ac_delim
26286 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26287 PYTHON!$PYTHON$ac_delim
26288 python_version!$python_version$ac_delim
26289 python_configdir!$python_configdir$ac_delim
26290 python_includespec!$python_includespec$ac_delim
26291 python_libdir!$python_libdir$ac_delim
26292 python_libspec!$python_libspec$ac_delim
26293 python_additional_libs!$python_additional_libs$ac_delim
26294 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26295 HAVE_IPV6!$HAVE_IPV6$ac_delim
26296 LIBOBJS!$LIBOBJS$ac_delim
26297 acx_pthread_config!$acx_pthread_config$ac_delim
26298 PTHREAD_CC!$PTHREAD_CC$ac_delim
26299 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26300 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26301 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26302 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26303 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26304 MSGFMT!$MSGFMT$ac_delim
26305 MSGMERGE!$MSGMERGE$ac_delim
26306 XGETTEXT!$XGETTEXT$ac_delim
26307 TCLSH!$TCLSH$ac_delim
26308 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26309 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26310 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26311 TCL_LIBS!$TCL_LIBS$ac_delim
26312 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26313 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26314 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26315 NSGMLS!$NSGMLS$ac_delim
26316 JADE!$JADE$ac_delim
26317 have_docbook!$have_docbook$ac_delim
26318 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26319 COLLATEINDEX!$COLLATEINDEX$ac_delim
26320 SGMLSPL!$SGMLSPL$ac_delim
26321 vpath_build!$vpath_build$ac_delim
26322 LTLIBOBJS!$LTLIBOBJS$ac_delim
26325 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
26327 elif $ac_last_try; then
26328 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26329 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26330 { (exit 1); exit 1; }; }
26332 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26336 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26337 if test -n "$ac_eof"; then
26338 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26339 ac_eof
=`expr $ac_eof + 1`
26342 cat >>$CONFIG_STATUS <<_ACEOF
26343 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26347 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26348 s/^/s,@/; s/!/@,|#_!!_#|/
26351 s/'"$ac_delim"'$/,g/; t
26353 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26354 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26355 rm -f conf$
$subs.
sed
26356 cat >>$CONFIG_STATUS <<_ACEOF
26363 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26364 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26365 # trailing colons and then remove the whole line if VPATH becomes empty
26366 # (actually we leave an empty line to preserve line numbers).
26367 if test "x$srcdir" = x.
; then
26368 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26369 s/:*\$(srcdir):*/:/
26370 s/:*\${srcdir}:*/:/
26372 s/^\([^=]*=[ ]*\):*/\1/
26378 cat >>$CONFIG_STATUS <<\_ACEOF
26379 fi # test -n "$CONFIG_FILES"
26382 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
26385 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26387 case $ac_mode$ac_tag in
26389 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26390 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26391 { (exit 1); exit 1; }; };;
26392 :[FH
]-) ac_tag
=-:-;;
26393 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26410 -) ac_f
="$tmp/stdin";;
26411 *) # Look for the file first in the build tree, then in the source tree
26412 # (if the path is not absolute). The absolute path cannot be DOS-style,
26413 # because $ac_f cannot contain `:'.
26417 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26419 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26420 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26421 { (exit 1); exit 1; }; };;
26423 ac_file_inputs
="$ac_file_inputs $ac_f"
26426 # Let's still pretend it is `configure' which instantiates (i.e., don't
26427 # use $as_me), people would be surprised to read:
26428 # /* config.h. Generated by config.status. */
26429 configure_input
="Generated from "`IFS=:
26430 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26431 if test x
"$ac_file" != x-
; then
26432 configure_input
="$ac_file. $configure_input"
26433 { echo "$as_me:$LINENO: creating $ac_file" >&5
26434 echo "$as_me: creating $ac_file" >&6;}
26438 *:-:* |
*:-) cat >"$tmp/stdin";;
26443 ac_dir
=`$as_dirname -- "$ac_file" ||
26444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26445 X"$ac_file" : 'X\(//\)[^/]' \| \
26446 X"$ac_file" : 'X\(//\)$' \| \
26447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26453 /^X\(\/\/\)[^/].*/{
26468 -*) as_dir
=.
/$as_dir;;
26470 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26474 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26475 *) as_qdir
=$as_dir;;
26477 as_dirs
="'$as_qdir' $as_dirs"
26478 as_dir
=`$as_dirname -- "$as_dir" ||
26479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26480 X"$as_dir" : 'X\(//\)[^/]' \| \
26481 X"$as_dir" : 'X\(//\)$' \| \
26482 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26488 /^X\(\/\/\)[^/].*/{
26501 test -d "$as_dir" && break
26503 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26504 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26505 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26506 { (exit 1); exit 1; }; }; }
26510 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26512 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26513 # A ".." for each directory in $ac_dir_suffix.
26514 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26515 case $ac_top_builddir_sub in
26516 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26517 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26520 ac_abs_top_builddir
=$ac_pwd
26521 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26522 # for backward compatibility:
26523 ac_top_builddir
=$ac_top_build_prefix
26526 .
) # We are building in place.
26528 ac_top_srcdir
=$ac_top_builddir_sub
26529 ac_abs_top_srcdir
=$ac_pwd ;;
26530 [\\/]* | ?
:[\\/]* ) # Absolute name.
26531 ac_srcdir
=$srcdir$ac_dir_suffix;
26532 ac_top_srcdir
=$srcdir
26533 ac_abs_top_srcdir
=$srcdir ;;
26534 *) # Relative name.
26535 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26536 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26537 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26539 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26550 cat >>$CONFIG_STATUS <<\_ACEOF
26551 # If the template does not know about datarootdir, expand it.
26552 # FIXME: This hack should be removed a few years after 2.60.
26553 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26555 case `sed -n '/datarootdir/ {
26564 ' $ac_file_inputs` in
26565 *datarootdir
*) ac_datarootdir_seen
=yes;;
26566 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26567 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26568 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26570 cat >>$CONFIG_STATUS <<_ACEOF
26571 ac_datarootdir_hack='
26572 s&@datadir@&$datadir&g
26573 s&@docdir@&$docdir&g
26574 s&@infodir@&$infodir&g
26575 s&@localedir@&$localedir&g
26576 s&@mandir@&$mandir&g
26577 s&\\\${datarootdir}&$datarootdir&g' ;;
26581 # Neutralize VPATH when `$srcdir' = `.'.
26582 # Shell code in configure.ac might set extrasub.
26583 # FIXME: do we really want to maintain this feature?
26584 cat >>$CONFIG_STATUS <<_ACEOF
26588 cat >>$CONFIG_STATUS <<\_ACEOF
26590 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26591 s
&@configure_input@
&$configure_input&;t t
26592 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26593 s
&@srcdir@
&$ac_srcdir&;t t
26594 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26595 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26596 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26597 s
&@builddir@
&$ac_builddir&;t t
26598 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26599 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26600 $ac_datarootdir_hack
26601 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26603 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26604 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26605 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26606 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26607 which seems to be undefined. Please make sure it is defined." >&5
26608 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26609 which seems to be undefined. Please make sure it is defined." >&2;}
26613 -) cat "$tmp/out"; rm -f "$tmp/out";;
26614 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26623 # Transform confdefs.h into a sed script `conftest.defines', that
26624 # substitutes the proper values into config.h.in to produce config.h.
26625 rm -f conftest.defines conftest.
tail
26626 # First, append a space to every undef/define line, to ease matching.
26627 echo 's/$/ /' >conftest.defines
26628 # Then, protect against being on the right side of a sed subst, or in
26629 # an unquoted here document, in config.status. If some macros were
26630 # called several times there might be several #defines for the same
26631 # symbol, which is useless. But do not sort them, since the last
26632 # AC_DEFINE must be honored.
26633 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26634 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26635 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26636 # PARAMS is the parameter list in the macro definition--in most cases, it's
26637 # just an empty string.
26638 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26639 ac_dB
='\\)[ (].*,\\1define\\2'
26647 s/^[ ]*#[ ]*define[ ][ ]*//
26652 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26653 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26654 ' >>conftest.defines
26656 # Remove the space that was appended to ease matching.
26657 # Then replace #undef with comments. This is necessary, for
26658 # example, in the case of _POSIX_SOURCE, which is predefined and required
26659 # on some systems where configure will not decide to define it.
26660 # (The regexp can be short, since the line contains either #define or #undef.)
26662 s,^[ #]*u.*,/* & */,' >>conftest.defines
26664 # Break up conftest.defines:
26665 ac_max_sed_lines
=50
26667 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26668 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26669 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26671 ac_in
='$ac_file_inputs'
26672 ac_out
='"$tmp/out1"'
26673 ac_nxt
='"$tmp/out2"'
26677 # Write a here document:
26678 cat >>$CONFIG_STATUS <<_ACEOF
26679 # First, check the format of the line:
26680 cat >"\$tmp/defines.sed" <<\\CEOF
26681 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26682 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26686 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26688 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26689 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26690 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26691 grep . conftest.
tail >/dev
/null ||
break
26692 rm -f conftest.defines
26693 mv conftest.
tail conftest.defines
26695 rm -f conftest.defines conftest.
tail
26697 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26698 cat >>$CONFIG_STATUS <<\_ACEOF
26699 if test x
"$ac_file" != x-
; then
26700 echo "/* $configure_input */" >"$tmp/config.h"
26701 cat "$ac_result" >>"$tmp/config.h"
26702 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26703 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26704 echo "$as_me: $ac_file is unchanged" >&6;}
26707 mv "$tmp/config.h" $ac_file
26710 echo "/* $configure_input */"
26720 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
26721 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
26723 if test ! -r "$srcdir/$ac_source"; then
26724 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
26725 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
26726 { (exit 1); exit 1; }; }
26730 # Try a relative symlink, then a hard link, then a copy.
26732 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
26733 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
26735 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
26736 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
26737 cp -p "$srcdir/$ac_source" "$ac_file" ||
26738 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
26739 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
26740 { (exit 1); exit 1; }; }
26742 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26743 echo "$as_me: executing $ac_file commands" >&6;}
26748 case $ac_file$ac_mode in
26749 "check_win32_symlinks":C
)
26750 # Links sometimes fail undetected on Mingw -
26751 # so here we detect it and warn the user
26752 for FILE
in $CONFIG_LINKS
26754 # test -e works for symlinks in the MinGW console
26755 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26756 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26759 "src/include/pg_config.h":H
)
26760 # Update timestamp for pg_config.h (see Makefile.global)
26761 echo >src
/include
/stamp-h
26768 { (exit 0); exit 0; }
26770 chmod +x
$CONFIG_STATUS
26771 ac_clean_files
=$ac_clean_files_save
26774 # configure is writing to config.log, and then calls config.status.
26775 # config.status does its own redirection, appending to config.log.
26776 # Unfortunately, on DOS this fails, as config.log is still kept open
26777 # by configure, so config.status won't be able to write to it; its
26778 # output is simply discarded. So we exec the FD to /dev/null,
26779 # effectively closing config.log, so it can be properly (re)opened and
26780 # appended to by config.status. When coming back to configure, we
26781 # need to make the FD available again.
26782 if test "$no_create" != yes; then
26784 ac_config_status_args
=
26785 test "$silent" = yes &&
26786 ac_config_status_args
="$ac_config_status_args --quiet"
26788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26791 # would make configure fail if this is the last instruction.
26792 $ac_cs_success ||
{ (exit 1); exit 1; }
26796 # Warn about unknown options
26797 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26798 for pgac_arg
in $pgac_args with_gnu_ld
; do
26799 if test "$pgac_var" = "$pgac_arg"; then
26803 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
26804 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26805 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}