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
746 python_additional_libs
778 ac_precious_vars
='build_alias
791 # Initialize some variables set by options.
793 ac_init_version
=false
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name
=s
,x
,x
,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir
='${exec_prefix}/bin'
818 sbindir
='${exec_prefix}/sbin'
819 libexecdir
='${exec_prefix}/libexec'
820 datarootdir
='${prefix}/share'
821 datadir
='${datarootdir}'
822 sysconfdir
='${prefix}/etc'
823 sharedstatedir
='${prefix}/com'
824 localstatedir
='${prefix}/var'
825 includedir
='${prefix}/include'
826 oldincludedir
='/usr/include'
827 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir
='${datarootdir}/info'
833 libdir
='${exec_prefix}/lib'
834 localedir
='${datarootdir}/locale'
835 mandir
='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\
$ac_option
849 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
861 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
864 -build |
--build |
--buil |
--bui |
--bu)
865 ac_prev
=build_alias
;;
866 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
867 build_alias
=$ac_optarg ;;
869 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
870 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
871 ac_prev
=cache_file
;;
872 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
873 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
874 cache_file
=$ac_optarg ;;
877 cache_file
=config.cache
;;
879 -datadir |
--datadir |
--datadi |
--datad)
881 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
882 datadir
=$ac_optarg ;;
884 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
885 |
--dataroo |
--dataro |
--datar)
886 ac_prev
=datarootdir
;;
887 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
888 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
889 datarootdir
=$ac_optarg ;;
891 -disable-* |
--disable-*)
892 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
895 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
896 { (exit 1); exit 1; }; }
897 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
898 eval enable_
$ac_feature=no
;;
900 -docdir |
--docdir |
--docdi |
--doc |
--do)
902 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
905 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
907 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
910 -enable-* |
--enable-*)
911 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
914 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
915 { (exit 1); exit 1; }; }
916 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
917 eval enable_
$ac_feature=\
$ac_optarg ;;
919 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
920 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
921 |
--exec |
--exe |
--ex)
922 ac_prev
=exec_prefix
;;
923 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
924 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
925 |
--exec=* |
--exe=* |
--ex=*)
926 exec_prefix
=$ac_optarg ;;
928 -gas |
--gas |
--ga |
--g)
929 # Obsolete; use --with-gas.
932 -help |
--help |
--hel |
--he |
-h)
934 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
935 ac_init_help
=recursive
;;
936 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
937 ac_init_help
=short
;;
939 -host |
--host |
--hos |
--ho)
940 ac_prev
=host_alias
;;
941 -host=* |
--host=* |
--hos=* |
--ho=*)
942 host_alias
=$ac_optarg ;;
944 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
946 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
948 htmldir
=$ac_optarg ;;
950 -includedir |
--includedir |
--includedi |
--included |
--include \
951 |
--includ |
--inclu |
--incl |
--inc)
952 ac_prev
=includedir
;;
953 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
954 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
955 includedir
=$ac_optarg ;;
957 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
959 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
960 infodir
=$ac_optarg ;;
962 -libdir |
--libdir |
--libdi |
--libd)
964 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
967 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
968 |
--libexe |
--libex |
--libe)
969 ac_prev
=libexecdir
;;
970 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
971 |
--libexe=* |
--libex=* |
--libe=*)
972 libexecdir
=$ac_optarg ;;
974 -localedir |
--localedir |
--localedi |
--localed |
--locale)
976 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
977 localedir
=$ac_optarg ;;
979 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
980 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
981 ac_prev
=localstatedir
;;
982 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
983 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
984 localstatedir
=$ac_optarg ;;
986 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
988 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
992 # Obsolete; use --without-fp.
995 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
996 |
--no-cr |
--no-c |
-n)
999 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1000 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1003 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1004 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1005 |
--oldin |
--oldi |
--old |
--ol |
--o)
1006 ac_prev
=oldincludedir
;;
1007 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1008 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1009 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1010 oldincludedir
=$ac_optarg ;;
1012 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1014 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1015 prefix
=$ac_optarg ;;
1017 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1018 |
--program-pre |
--program-pr |
--program-p)
1019 ac_prev
=program_prefix
;;
1020 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1021 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1022 program_prefix
=$ac_optarg ;;
1024 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1025 |
--program-suf |
--program-su |
--program-s)
1026 ac_prev
=program_suffix
;;
1027 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1028 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1029 program_suffix
=$ac_optarg ;;
1031 -program-transform-name |
--program-transform-name \
1032 |
--program-transform-nam |
--program-transform-na \
1033 |
--program-transform-n |
--program-transform- \
1034 |
--program-transform |
--program-transfor \
1035 |
--program-transfo |
--program-transf \
1036 |
--program-trans |
--program-tran \
1037 |
--progr-tra |
--program-tr |
--program-t)
1038 ac_prev
=program_transform_name
;;
1039 -program-transform-name=* |
--program-transform-name=* \
1040 |
--program-transform-nam=* |
--program-transform-na=* \
1041 |
--program-transform-n=* |
--program-transform-=* \
1042 |
--program-transform=* |
--program-transfor=* \
1043 |
--program-transfo=* |
--program-transf=* \
1044 |
--program-trans=* |
--program-tran=* \
1045 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1046 program_transform_name
=$ac_optarg ;;
1048 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1050 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1051 pdfdir
=$ac_optarg ;;
1053 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1055 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1058 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1059 |
-silent |
--silent |
--silen |
--sile |
--sil)
1062 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1064 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1066 sbindir
=$ac_optarg ;;
1068 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1069 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1070 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1072 ac_prev
=sharedstatedir
;;
1073 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1074 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1075 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1077 sharedstatedir
=$ac_optarg ;;
1079 -site |
--site |
--sit)
1081 -site=* |
--site=* |
--sit=*)
1084 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1086 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1087 srcdir
=$ac_optarg ;;
1089 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1090 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1091 ac_prev
=sysconfdir
;;
1092 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1093 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1094 sysconfdir
=$ac_optarg ;;
1096 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1097 ac_prev
=target_alias
;;
1098 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1099 target_alias
=$ac_optarg ;;
1101 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1104 -version |
--version |
--versio |
--versi |
--vers |
-V)
1105 ac_init_version
=: ;;
1108 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1111 { echo "$as_me: error: invalid package name: $ac_package" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1114 eval with_
$ac_package=\
$ac_optarg ;;
1116 -without-* |
--without-*)
1117 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1120 { echo "$as_me: error: invalid package name: $ac_package" >&2
1121 { (exit 1); exit 1; }; }
1122 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1123 eval with_
$ac_package=no
;;
1126 # Obsolete; use --with-x.
1129 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1130 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1131 ac_prev
=x_includes
;;
1132 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1133 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1134 x_includes
=$ac_optarg ;;
1136 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1137 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1138 ac_prev
=x_libraries
;;
1139 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1140 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1141 x_libraries
=$ac_optarg ;;
1143 -*) { echo "$as_me: error: unrecognized option: $ac_option
1144 Try \`$0 --help' for more information." >&2
1145 { (exit 1); exit 1; }; }
1149 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1152 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1153 { (exit 1); exit 1; }; }
1154 eval $ac_envvar=\
$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1161 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 if test -n "$ac_prev"; then
1169 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1170 { echo "$as_me: error: missing argument to $ac_option" >&2
1171 { (exit 1); exit 1; }; }
1174 # Be sure to have absolute directory names.
1175 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val
=\$
$ac_var
1182 [\\/$
]* | ?
:[\\/]* ) continue;;
1183 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1185 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1186 { (exit 1); exit 1; }; }
1189 # There might be people who depend on the old broken behavior: `$host'
1190 # used to hold the argument of --host etc.
1191 # FIXME: To remove some day.
1194 target
=$target_alias
1196 # FIXME: To remove some day.
1197 if test "x$host_alias" != x
; then
1198 if test "x$build_alias" = x
; then
1199 cross_compiling
=maybe
1200 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1201 If a cross compiler is detected then cross compile mode will be used." >&2
1202 elif test "x$build_alias" != "x$host_alias"; then
1208 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1210 test "$silent" = yes && exec 6>/dev
/null
1213 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di
=`ls -di .` &&
1215 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1216 { echo "$as_me: error: Working directory cannot be determined" >&2
1217 { (exit 1); exit 1; }; }
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 { echo "$as_me: error: pwd does not report name of working directory" >&2
1220 { (exit 1); exit 1; }; }
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted
=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir
=`$as_dirname -- "$0" ||
1228 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$0" : 'X\(//\)[^/]' \| \
1230 X"$0" : 'X\(//\)$' \| \
1231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1255 ac_srcdir_defaulted
=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1259 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1260 { (exit 1); exit 1; }; }
1262 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1265 { (exit 1); exit 1; }; }
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var
in $ac_precious_vars; do
1278 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1280 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1349 --build=BUILD configure
for building on BUILD
[guessed
]
1350 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1354 if test -n "$ac_init_help"; then
1355 case $ac_init_help in
1356 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1361 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1362 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1363 --disable-integer-datetimes
1364 disable
64-bit integer date
/time support
1365 --enable-nls[=LANGUAGES
]
1366 enable Native Language Support
1367 --disable-shared do not build shared libraries
1368 --disable-rpath do not embed shared library search path
in
1370 --disable-spinlocks do not use spinlocks
1371 --enable-debug build with debugging symbols
(-g)
1372 --enable-profiling build with profiling enabled
1373 --enable-coverage build with coverage testing instrumentation
1374 --enable-dtrace build with DTrace support
1375 --enable-depend turn on automatic dependency tracking
1376 --enable-cassert enable assertion checks
(for debugging
)
1377 --enable-thread-safety make client libraries thread-safe
1378 --enable-thread-safety-force
1379 force thread-safety despite thread
test failure
1380 --disable-float4-byval disable float4 passed by value
1381 --disable-float8-byval disable float8 passed by value
1382 --disable-largefile omit support
for large files
1385 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1386 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1387 --with-template=NAME override operating system template
1388 --with-includes=DIRS
look for additional header files
in DIRS
1389 --with-libraries=DIRS
look for additional libraries
in DIRS
1390 --with-libs=DIRS alternative spelling of
--with-libraries
1391 --with-pgport=PORTNUM
set default port number
[5432]
1392 --with-blocksize=BLOCKSIZE
1393 set table block size
in kB
[8]
1394 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1395 --with-wal-blocksize=BLOCKSIZE
1396 set WAL block size
in kB
[8]
1397 --with-wal-segsize=SEGSIZE
1398 set WAL segment size
in MB
[16]
1399 --with-CC=CMD
set compiler
(deprecated
)
1400 --with-tcl build Tcl modules
(PL
/Tcl
)
1401 --with-tclconfig=DIR tclConfig.sh is
in DIR
1402 --with-perl build Perl modules
(PL
/Perl
)
1403 --with-python build Python modules
(PL
/Python
)
1404 --with-gssapi build with GSSAPI support
1405 --with-krb5 build with Kerberos
5 support
1406 --with-krb-srvnam=NAME default service principal name
in Kerberos
1408 --with-pam build with PAM support
1409 --with-ldap build with LDAP support
1410 --with-bonjour build with Bonjour support
1411 --with-openssl build with OpenSSL support
1412 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1413 --with-libedit-preferred
1414 prefer BSD Libedit over GNU Readline
1415 --with-ossp-uuid use OSSP UUID library when building
1417 --with-libxml build with XML support
1418 --with-libxslt use XSLT support when building contrib
/xml2
1419 --with-system-tzdata=DIR
1420 use system
time zone data
in DIR
1421 --without-zlib do not use Zlib
1422 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1424 Some influential environment variables
:
1425 CC C compiler
command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1428 nonstandard directory
<lib dir
>
1429 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1430 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1431 you have headers
in a nonstandard directory
<include dir
>
1435 location of DocBook stylesheets
1437 Use these variables to override the choices made by
`configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1440 Report bugs to <pgsql-bugs@postgresql.org>.
1445 if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 test -d "$ac_dir" || continue
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1468 .) # We are building in place.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1492 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1501 PostgreSQL configure 8.4devel
1502 generated by GNU Autoconf 2.61
1504 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1505 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1509 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1513 cat >config.log <<_ACEOF
1514 This file contains any messages produced by compilers while
1515 running configure, to aid debugging if configure makes a mistake.
1517 It was created by PostgreSQL $as_me 8.4devel, which was
1518 generated by GNU Autoconf 2.61. Invocation command line was
1530 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1531 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1532 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1533 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1534 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1536 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1537 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1539 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1540 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1541 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1542 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1543 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1544 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1545 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 test -z "$as_dir" && as_dir=.
1554 echo "PATH: $as_dir"
1570 # Keep a trace of the command line.
1571 # Strip out --no-create and --no-recursion so they do not pile up.
1572 # Strip out --silent because we don't want to record it for future runs.
1573 # Also quote any args containing shell meta-characters.
1574 # Make two passes to allow for proper duplicate-argument suppression.
1578 ac_must_keep_next=false
1584 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1586 | -silent | --silent | --silen | --sile | --sil)
1589 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1592 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1594 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1595 if test $ac_must_keep_next = true; then
1596 ac_must_keep_next=false # Got value, back to normal.
1599 *=* | --config-cache | -C | -disable-* | --disable-* \
1600 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1601 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1602 | -with-* | --with-* | -without-* | --without-* | --x)
1603 case "$ac_configure_args0 " in
1604 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1607 -* ) ac_must_keep_next=true ;;
1610 ac_configure_args="$ac_configure_args '$ac_arg'"
1615 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1616 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1618 # When interrupted or exit'd, cleanup temporary files, and complete
1619 # config.log. We remove comments because anyway the quotes in there
1620 # would cause problems or look ugly.
1621 # WARNING: Use '\'' to represent an apostrophe within the trap.
1622 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1623 trap 'exit_status=$?
1624 # Save into config.log some information that might help in debugging.
1629 ## ---------------- ##
1630 ## Cache variables. ##
1631 ## ---------------- ##
1634 # The following way of writing the cache mishandles newlines in values,
1636 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1637 eval ac_val=\$$ac_var
1641 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1642 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1645 _ | IFS | as_nl) ;; #(
1646 *) $as_unset $ac_var ;;
1651 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1652 *${as_nl}ac_space=\ *)
1654 "s/'\''/'\''\\\\'\'''\''/g;
1655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1666 ## ----------------- ##
1667 ## Output variables. ##
1668 ## ----------------- ##
1671 for ac_var in $ac_subst_vars
1673 eval ac_val=\$$ac_var
1675 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677 echo "$ac_var='\''$ac_val'\''"
1681 if test -n "$ac_subst_files"; then
1683 ## ------------------- ##
1684 ## File substitutions. ##
1685 ## ------------------- ##
1688 for ac_var in $ac_subst_files
1690 eval ac_val=\$$ac_var
1692 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 echo "$ac_var='\''$ac_val'\''"
1699 if test -s confdefs.h; then
1709 test "$ac_signal" != 0 &&
1710 echo "$as_me: caught signal $ac_signal"
1711 echo "$as_me: exit $exit_status"
1713 rm -f core *.core core.conftest.* &&
1714 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1717 for ac_signal in 1 2 13 15; do
1718 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1722 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1723 rm -f -r conftest* confdefs.h
1725 # Predefined preprocessor variables.
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_NAME "$PACKAGE_NAME"
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_STRING "$PACKAGE_STRING"
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1752 # Let the site file select an alternate cache file if it wants to.
1753 # Prefer explicitly selected file to automatically selected ones.
1754 if test -n "$CONFIG_SITE"; then
1755 set x "$CONFIG_SITE"
1756 elif test "x$prefix" != xNONE; then
1757 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1759 set x "$ac_default_prefix/share/config.site" \
1760 "$ac_default_prefix/etc/config.site"
1765 if test -r "$ac_site_file"; then
1766 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1767 echo "$as_me: loading site script $ac_site_file" >&6;}
1768 sed 's/^/| /' "$ac_site_file" >&5
1773 if test -r "$cache_file"; then
1774 # Some versions of bash will fail to source /dev/null (special
1775 # files actually), so we avoid doing that.
1776 if test -f "$cache_file"; then
1777 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1778 echo "$as_me: loading cache $cache_file" >&6;}
1780 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1781 *) . "./$cache_file";;
1785 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1786 echo "$as_me: creating cache $cache_file" >&6;}
1790 # Check that the precious variables saved in the cache have kept the same
1792 ac_cache_corrupted=false
1793 for ac_var in $ac_precious_vars; do
1794 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1795 eval ac_new_set=\$ac_env_${ac_var}_set
1796 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1797 eval ac_new_val=\$ac_env_${ac_var}_value
1798 case $ac_old_set,$ac_new_set in
1800 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1801 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1802 ac_cache_corrupted=: ;;
1804 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1805 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1806 ac_cache_corrupted=: ;;
1809 if test "x$ac_old_val" != "x$ac_new_val"; then
1810 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1811 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1812 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1813 echo "$as_me: former value
: $ac_old_val" >&2;}
1814 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1815 echo "$as_me: current value
: $ac_new_val" >&2;}
1816 ac_cache_corrupted=:
1819 # Pass precious variables to config.status.
1820 if test "$ac_new_set" = set; then
1822 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1823 *) ac_arg=$ac_var=$ac_new_val ;;
1825 case " $ac_configure_args " in
1826 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1827 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1831 if $ac_cache_corrupted; then
1832 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1833 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1834 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1835 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1836 { (exit 1); exit 1; }; }
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 for ac_dir in config "$srcdir"/config; do
1876 if test -f "$ac_dir/install-sh"; then
1878 ac_install_sh="$ac_aux_dir/install-sh -c"
1880 elif test -f "$ac_dir/install.sh"; then
1882 ac_install_sh="$ac_aux_dir/install.sh -c"
1884 elif test -f "$ac_dir/shtool"; then
1886 ac_install_sh="$ac_aux_dir/shtool install -c"
1890 if test -z "$ac_aux_dir"; then
1891 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1892 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1893 { (exit 1); exit 1; }; }
1896 # These three variables are undocumented and unsupported,
1897 # and are intended to be withdrawn in a future Autoconf release.
1898 # They can cause serious problems if a builder's source tree is in a directory
1899 # whose full name contains unusual characters.
1900 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1901 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1902 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1906 configure_args=$ac_configure_args
1910 cat >>confdefs.h <<_ACEOF
1911 #define PG_VERSION "$PACKAGE_VERSION"
1914 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1917 cat >>confdefs.h <<_ACEOF
1918 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1922 # Make sure we can run config.sub.
1923 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1924 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1925 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1926 { (exit 1); exit 1; }; }
1928 { echo "$as_me:$LINENO: checking build system type" >&5
1929 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1930 if test "${ac_cv_build+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 ac_build_alias=$build_alias
1934 test "x$ac_build_alias" = x &&
1935 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1936 test "x$ac_build_alias" = x &&
1937 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1938 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1939 { (exit 1); exit 1; }; }
1940 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1941 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1942 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1943 { (exit 1); exit 1; }; }
1946 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1947 echo "${ECHO_T}$ac_cv_build" >&6; }
1948 case $ac_cv_build in
1950 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1951 echo "$as_me: error: invalid value of canonical build" >&2;}
1952 { (exit 1); exit 1; }; };;
1955 ac_save_IFS=$IFS; IFS='-'
1961 # Remember, the first character of IFS is used to create $*,
1962 # except with old shells:
1965 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1968 { echo "$as_me:$LINENO: checking host system type" >&5
1969 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_host+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test "x$host_alias" = x; then
1974 ac_cv_host=$ac_cv_build
1976 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1977 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1978 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1979 { (exit 1); exit 1; }; }
1983 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1984 echo "${ECHO_T}$ac_cv_host" >&6; }
1987 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1988 echo "$as_me: error: invalid value of canonical host" >&2;}
1989 { (exit 1); exit 1; }; };;
1992 ac_save_IFS=$IFS; IFS='-'
1998 # Remember, the first character of IFS is used to create $*,
1999 # except with old shells:
2002 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2007 { echo "$as_me:$LINENO: checking which template to use" >&5
2008 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2011 pgac_args="$pgac_args with_template"
2014 # Check whether --with-template was given.
2015 if test "${with_template+set}" = set; then
2016 withval=$with_template;
2019 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2020 echo "$as_me: error: argument required for --with-template option" >&2;}
2021 { (exit 1); exit 1; }; }
2024 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2025 echo "$as_me: error: argument required for --with-template option" >&2;}
2026 { (exit 1); exit 1; }; }
2031 list) echo; ls "$srcdir/src/template"; exit;;
2032 *) if test -f "$srcdir/src/template/$with_template" ; then
2035 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2036 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2037 { (exit 1); exit 1; }; }
2046 # --with-template not given
2049 aix*) template=aix ;;
2050 bsdi*) template=bsdi ;;
2051 cygwin*) template=cygwin ;;
2052 darwin*) template=darwin ;;
2053 dgux*) template=dgux ;;
2054 freebsd*) template=freebsd ;;
2055 hpux*) template=hpux ;;
2056 irix*) template=irix ;;
2057 linux*|gnu*|k*bsd*-gnu)
2059 mingw*) template=win32 ;;
2060 netbsd*) template=netbsd ;;
2061 nextstep*) template=nextstep ;;
2062 openbsd*) template=openbsd ;;
2063 osf*) template=osf ;;
2064 sco*) template=sco ;;
2065 solaris*) template=solaris ;;
2066 sunos*) template=sunos4 ;;
2068 case $host_vendor in
2069 univel) template=univel ;;
2071 sysv4*) template=svr4 ;;
2072 sysv5*) template=unixware ;;
2073 ultrix*) template=ultrix4 ;;
2076 if test x"$template" = x"" ; then
2077 { { echo "$as_me:$LINENO: error:
2078 *******************************************************************
2079 PostgreSQL has apparently not been ported to your platform yet.
2080 To try a manual configuration, look into the src/template directory
2081 for a similar platform and use the '--with-template=' option.
2083 Please also contact <pgsql-ports@postgresql.org> to see about
2084 rectifying this. Include the above 'checking host system type...'
2086 *******************************************************************
2088 echo "$as_me: error:
2089 *******************************************************************
2090 PostgreSQL has apparently not been ported to your platform yet.
2091 To try a manual configuration, look into the src/template directory
2092 for a similar platform and use the '--with-template=' option.
2094 Please also contact <pgsql-ports@postgresql.org> to see about
2095 rectifying this. Include the above 'checking host system type...'
2097 *******************************************************************
2099 { (exit 1); exit 1; }; }
2107 { echo "$as_me:$LINENO: result: $template" >&5
2108 echo "${ECHO_T}$template" >&6; }
2113 # Initialize default assumption that we do not need separate assembly code
2114 # for TAS (test-and-set). This can be overridden by the template file
2115 # when it's executed.
2122 ## Command line options
2126 # Add non-standard directories to the include path
2129 pgac_args="$pgac_args with_includes"
2132 # Check whether --with-includes was given.
2133 if test "${with_includes+set}" = set; then
2134 withval=$with_includes;
2137 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2138 echo "$as_me: error: argument required for --with-includes option" >&2;}
2139 { (exit 1); exit 1; }; }
2142 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2143 echo "$as_me: error: argument required for --with-includes option" >&2;}
2144 { (exit 1); exit 1; }; }
2157 # Add non-standard directories to the library search path
2160 pgac_args="$pgac_args with_libraries"
2163 # Check whether --with-libraries was given.
2164 if test "${with_libraries+set}" = set; then
2165 withval=$with_libraries;
2168 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2169 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2170 { (exit 1); exit 1; }; }
2173 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2174 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2175 { (exit 1); exit 1; }; }
2178 LIBRARY_DIRS=$withval
2187 pgac_args="$pgac_args with_libs"
2190 # Check whether --with-libs was given.
2191 if test "${with_libs+set}" = set; then
2195 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2196 echo "$as_me: error: argument required for --with-libs option" >&2;}
2197 { (exit 1); exit 1; }; }
2200 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2201 echo "$as_me: error: argument required for --with-libs option" >&2;}
2202 { (exit 1); exit 1; }; }
2205 LIBRARY_DIRS=$withval
2215 # 64-bit integer date/time storage: enabled by default.
2217 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2218 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2220 pgac_args="$pgac_args enable_integer_datetimes"
2222 # Check whether --enable-integer-datetimes was given.
2223 if test "${enable_integer_datetimes+set}" = set; then
2224 enableval=$enable_integer_datetimes;
2228 cat >>confdefs.h <<\_ACEOF
2229 #define USE_INTEGER_DATETIMES 1
2237 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2238 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2239 { (exit 1); exit 1; }; }
2244 enable_integer_datetimes=yes
2246 cat >>confdefs.h <<\_ACEOF
2247 #define USE_INTEGER_DATETIMES 1
2253 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2254 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2260 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2261 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2263 pgac_args="$pgac_args enable_nls"
2265 # Check whether --enable-nls was given.
2266 if test "${enable_nls+set}" = set; then
2267 enableval=$enable_nls;
2277 WANTED_LANGUAGES=$enableval
2287 if test "$enable_nls" = yes; then
2289 cat >>confdefs.h <<\_ACEOF
2290 #define ENABLE_NLS 1
2295 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2296 echo "${ECHO_T}$enable_nls" >&6; }
2301 # Default port number (--with-pgport), default 5432
2303 { echo "$as_me:$LINENO: checking for default port number" >&5
2304 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2306 pgac_args="$pgac_args with_pgport"
2309 # Check whether --with-pgport was given.
2310 if test "${with_pgport+set}" = set; then
2311 withval=$with_pgport;
2314 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2315 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2316 { (exit 1); exit 1; }; }
2319 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2320 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2321 { (exit 1); exit 1; }; }
2324 default_port=$withval
2333 { echo "$as_me:$LINENO: result: $default_port" >&5
2334 echo "${ECHO_T}$default_port" >&6; }
2335 # Need both of these because some places want an integer and some a string
2337 cat >>confdefs.h <<_ACEOF
2338 #define DEF_PGPORT ${default_port}
2342 cat >>confdefs.h <<_ACEOF
2343 #define DEF_PGPORT_STR "${default_port}"
2349 # Option to disable shared libraries
2352 pgac_args="$pgac_args enable_shared"
2354 # Check whether --enable-shared was given.
2355 if test "${enable_shared+set}" = set; then
2356 enableval=$enable_shared;
2365 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2366 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2367 { (exit 1); exit 1; }; }
2380 # '-rpath'-like feature can be disabled
2383 pgac_args="$pgac_args enable_rpath"
2385 # Check whether --enable-rpath was given.
2386 if test "${enable_rpath+set}" = set; then
2387 enableval=$enable_rpath;
2396 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2397 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2398 { (exit 1); exit 1; }; }
2414 pgac_args="$pgac_args enable_spinlocks"
2416 # Check whether --enable-spinlocks was given.
2417 if test "${enable_spinlocks+set}" = set; then
2418 enableval=$enable_spinlocks;
2427 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2428 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2429 { (exit 1); exit 1; }; }
2434 enable_spinlocks=yes
2441 # --enable-debug adds -g to compiler flags
2444 pgac_args="$pgac_args enable_debug"
2446 # Check whether --enable-debug was given.
2447 if test "${enable_debug+set}" = set; then
2448 enableval=$enable_debug;
2457 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2458 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2459 { (exit 1); exit 1; }; }
2472 # --enable-profiling enables gcc profiling
2475 pgac_args="$pgac_args enable_profiling"
2477 # Check whether --enable-profiling was given.
2478 if test "${enable_profiling+set}" = set; then
2479 enableval=$enable_profiling;
2488 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2489 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2490 { (exit 1); exit 1; }; }
2503 # --enable-coverage enables generation of code coverage metrics with gcov
2506 pgac_args="$pgac_args enable_coverage"
2508 # Check whether --enable-coverage was given.
2509 if test "${enable_coverage+set}" = set; then
2510 enableval=$enable_coverage;
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_GCOV+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -n "$GCOV"; then
2523 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_GCOV="$ac_prog"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 GCOV=$ac_cv_prog_GCOV
2543 if test -n "$GCOV"; then
2544 { echo "$as_me:$LINENO: result: $GCOV" >&5
2545 echo "${ECHO_T}$GCOV" >&6; }
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2552 test -n "$GCOV" && break
2555 if test -z "$GCOV"; then
2556 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2557 echo "$as_me: error: gcov not found" >&2;}
2558 { (exit 1); exit 1; }; }
2562 # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_LCOV+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$LCOV"; then
2570 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_LCOV="$ac_prog"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 LCOV=$ac_cv_prog_LCOV
2590 if test -n "$LCOV"; then
2591 { echo "$as_me:$LINENO: result: $LCOV" >&5
2592 echo "${ECHO_T}$LCOV" >&6; }
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2599 test -n "$LCOV" && break
2602 if test -z "$LCOV"; then
2603 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2604 echo "$as_me: error: lcov not found" >&2;}
2605 { (exit 1); exit 1; }; }
2607 for ac_prog in genhtml
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_GENHTML+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$GENHTML"; then
2617 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_GENHTML="$ac_prog"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 GENHTML=$ac_cv_prog_GENHTML
2637 if test -n "$GENHTML"; then
2638 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2639 echo "${ECHO_T}$GENHTML" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2646 test -n "$GENHTML" && break
2649 if test -z "$GENHTML"; then
2650 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2651 echo "$as_me: error: genhtml not found" >&2;}
2652 { (exit 1); exit 1; }; }
2659 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2660 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2661 { (exit 1); exit 1; }; }
2677 pgac_args="$pgac_args enable_dtrace"
2679 # Check whether --enable-dtrace was given.
2680 if test "${enable_dtrace+set}" = set; then
2681 enableval=$enable_dtrace;
2685 cat >>confdefs.h <<\_ACEOF
2686 #define ENABLE_DTRACE 1
2689 for ac_prog in dtrace
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2695 if test "${ac_cv_prog_DTRACE+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$DTRACE"; then
2699 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_DTRACE="$ac_prog"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 DTRACE=$ac_cv_prog_DTRACE
2719 if test -n "$DTRACE"; then
2720 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2721 echo "${ECHO_T}$DTRACE" >&6; }
2723 { echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6; }
2728 test -n "$DTRACE" && break
2731 if test -z "$DTRACE"; then
2732 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2733 echo "$as_me: error: dtrace not found" >&2;}
2734 { (exit 1); exit 1; }; }
2742 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2743 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2744 { (exit 1); exit 1; }; }
2759 { echo "$as_me:$LINENO: checking for block size" >&5
2760 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2762 pgac_args="$pgac_args with_blocksize"
2765 # Check whether --with-blocksize was given.
2766 if test "${with_blocksize+set}" = set; then
2767 withval=$with_blocksize;
2770 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2771 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2772 { (exit 1); exit 1; }; }
2775 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2776 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2777 { (exit 1); exit 1; }; }
2789 case ${blocksize} in
2796 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2797 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2798 { (exit 1); exit 1; }; }
2800 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2801 echo "${ECHO_T}${blocksize}kB" >&6; }
2804 cat >>confdefs.h <<_ACEOF
2805 #define BLCKSZ ${BLCKSZ}
2810 # Relation segment size
2812 { echo "$as_me:$LINENO: checking for segment size" >&5
2813 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2815 pgac_args="$pgac_args with_segsize"
2818 # Check whether --with-segsize was given.
2819 if test "${with_segsize+set}" = set; then
2820 withval=$with_segsize;
2823 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2824 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2825 { (exit 1); exit 1; }; }
2828 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2829 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2830 { (exit 1); exit 1; }; }
2842 # this expression is set up to avoid unnecessary integer overflow
2843 # blocksize is already guaranteed to be a factor of 1024
2844 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2845 test $? -eq 0 || exit 1
2846 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2847 echo "${ECHO_T}${segsize}GB" >&6; }
2850 cat >>confdefs.h <<_ACEOF
2851 #define RELSEG_SIZE ${RELSEG_SIZE}
2858 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2859 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2861 pgac_args="$pgac_args with_wal_blocksize"
2864 # Check whether --with-wal-blocksize was given.
2865 if test "${with_wal_blocksize+set}" = set; then
2866 withval=$with_wal_blocksize;
2869 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2870 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2871 { (exit 1); exit 1; }; }
2874 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2875 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2876 { (exit 1); exit 1; }; }
2879 wal_blocksize=$withval
2888 case ${wal_blocksize} in
2889 1) XLOG_BLCKSZ=1024;;
2890 2) XLOG_BLCKSZ=2048;;
2891 4) XLOG_BLCKSZ=4096;;
2892 8) XLOG_BLCKSZ=8192;;
2893 16) XLOG_BLCKSZ=16384;;
2894 32) XLOG_BLCKSZ=32768;;
2895 64) XLOG_BLCKSZ=65536;;
2896 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2897 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2898 { (exit 1); exit 1; }; }
2900 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2901 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2904 cat >>confdefs.h <<_ACEOF
2905 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2912 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2913 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2915 pgac_args="$pgac_args with_wal_segsize"
2918 # Check whether --with-wal-segsize was given.
2919 if test "${with_wal_segsize+set}" = set; then
2920 withval=$with_wal_segsize;
2923 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2924 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2925 { (exit 1); exit 1; }; }
2928 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2929 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2930 { (exit 1); exit 1; }; }
2933 wal_segsize=$withval
2942 case ${wal_segsize} in
2950 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2951 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2952 { (exit 1); exit 1; }; }
2954 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2955 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2958 cat >>confdefs.h <<_ACEOF
2959 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2967 # For historical reasons you can also use --with-CC to specify the C compiler
2968 # to use, although the standard way to do this is to set the CC environment
2971 pgac_args="$pgac_args with_CC"
2974 # Check whether --with-CC was given.
2975 if test "${with_CC+set}" = set; then
2979 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2980 echo "$as_me: error: argument required for --with-CC option" >&2;}
2981 { (exit 1); exit 1; }; }
2984 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2985 echo "$as_me: error: argument required for --with-CC option" >&2;}
2986 { (exit 1); exit 1; }; }
2998 aix) pgac_cc_list="gcc xlc";;
2999 irix) pgac_cc_list="cc";; # no gcc
3000 *) pgac_cc_list="gcc cc";;
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 if test -n "$ac_tool_prefix"; then
3009 for ac_prog in $pgac_cc_list
3011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_CC+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 if test -n "$CC"; then
3040 { echo "$as_me:$LINENO: result: $CC" >&5
3041 echo "${ECHO_T}$CC" >&6; }
3043 { echo "$as_me:$LINENO: result: no" >&5
3044 echo "${ECHO_T}no" >&6; }
3048 test -n "$CC" && break
3051 if test -z "$CC"; then
3053 for ac_prog in $pgac_cc_list
3055 # Extract the first word of "$ac_prog", so it can be a program name with args.
3056 set dummy $ac_prog; ac_word=$2
3057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 if test -n "$ac_ct_CC"; then
3063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_ac_ct_CC="$ac_prog"
3073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3083 if test -n "$ac_ct_CC"; then
3084 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3085 echo "${ECHO_T}$ac_ct_CC" >&6; }
3087 { echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6; }
3092 test -n "$ac_ct_CC" && break
3095 if test "x$ac_ct_CC" = x; then
3098 case $cross_compiling:$ac_tool_warned in
3100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3101 whose name does not start with the host triplet. If you think this
3102 configuration is useful to you, please write to autoconf@gnu.org." >&5
3103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3104 whose name does not start with the host triplet. If you think this
3105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3106 ac_tool_warned=yes ;;
3113 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3114 See \`config.log
' for more details." >&5
3115 echo "$as_me: error: no acceptable C compiler found in \$PATH
3116 See \`config.log' for more details.
" >&2;}
3117 { (exit 1); exit 1; }; }
3119 # Provide some information about the compiler.
3120 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3121 ac_compiler=`set X $ac_compile; echo $2`
3122 { (ac_try="$ac_compiler --version >&5"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compiler --version >&5") 2>&5
3130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3131 (exit $ac_status); }
3132 { (ac_try="$ac_compiler -v >&5"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compiler -v >&5") 2>&5
3140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3141 (exit $ac_status); }
3142 { (ac_try="$ac_compiler -V >&5"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compiler -V >&5") 2>&5
3150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3151 (exit $ac_status); }
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 ac_clean_files_save=$ac_clean_files
3169 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3170 # Try to create an executable without -o first, disregard a.out.
3171 # It will help us diagnose broken compilers, and finding out an intuition
3173 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3174 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3175 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3177 # List of possible output files, starting from the most likely.
3178 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3179 # only as a last resort. b.out is created by i960 compilers.
3180 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3182 # The IRIX 6 linker writes into existing files which may not be
3183 # executable, retaining their permissions. Remove them first so a
3184 # subsequent execution test works.
3186 for ac_file in $ac_files
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3195 if { (ac_try="$ac_link_default"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_link_default") 2>&5
3203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3204 (exit $ac_status); }; then
3205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3210 for ac_file in $ac_files ''
3212 test -f "$ac_file" || continue
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3217 # We found the default executable, but exeext='' is most
3221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 # We set ac_cv_exeext here because the later test for it is not
3226 # safe: cross compilers may not add the suffix if given an `-o'
3227 # argument, so we may need to know it at that point already.
3228 # Even if this section looks crufty: it has the advantage of
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3241 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3242 echo "${ECHO_T}$ac_file" >&6; }
3243 if test -z "$ac_file"; then
3244 echo "$as_me: failed program was
:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3248 See \
`config.log' for more details." >&5
3249 echo "$as_me: error: C compiler cannot create executables
3250 See \`config.log
' for more details." >&2;}
3251 { (exit 77); exit 77; }; }
3254 ac_exeext=$ac_cv_exeext
3256 # Check that the compiler produces executables we can run. If not, either
3257 # the compiler is broken, or we cross compile.
3258 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3259 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3260 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3261 # If not cross compiling, check that we can run a simple program.
3262 if test "$cross_compiling" != yes; then
3263 if { ac_try='.
/$ac_file'
3264 { (case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_try") 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3275 if test "$cross_compiling" = maybe; then
3278 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3279 If you meant to cross compile, use \`--host'.
3280 See \
`config.log' for more details." >&5
3281 echo "$as_me: error: cannot run C compiled programs.
3282 If you meant to cross compile, use \`--host'.
3283 See \`config.log' for more details.
" >&2;}
3284 { (exit 1); exit 1; }; }
3288 { echo "$as_me:$LINENO: result
: yes" >&5
3289 echo "${ECHO_T}yes" >&6; }
3291 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 # Check that the compiler produces executables we can run. If not, either
3294 # the compiler is broken, or we cross compile.
3295 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3296 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3297 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3298 echo "${ECHO_T}$cross_compiling" >&6; }
3300 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3301 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3302 if { (ac_try="$ac_link"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3308 (eval "$ac_link") 2>&5
3310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3311 (exit $ac_status); }; then
3312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3313 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3314 # work properly (i.e., refer to `conftest.exe'), while it won't with
3316 for ac_file in conftest.exe conftest conftest.*; do
3317 test -f "$ac_file" || continue
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3327 See \
`config.log' for more details." >&5
3328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3329 See \`config.log
' for more details." >&2;}
3330 { (exit 1); exit 1; }; }
3333 rm -f conftest$ac_cv_exeext
3334 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3335 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3337 rm -f conftest.$ac_ext
3338 EXEEXT=$ac_cv_exeext
3340 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3342 if test "${ac_cv_objext+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3360 rm -f conftest.o conftest.obj
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; then
3371 for ac_file in conftest.o conftest.obj conftest.*; do
3372 test -f "$ac_file" || continue;
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3375 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3380 echo "$as_me: failed program was:" >&5
3381 sed 's
/^
/|
/' conftest.$ac_ext >&5
3383 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3384 See \`config.log' for more details.
" >&5
3385 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3386 See \
`config.log' for more details." >&2;}
3387 { (exit 1); exit 1; }; }
3390 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3392 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3393 echo "${ECHO_T}$ac_cv_objext" >&6; }
3394 OBJEXT=$ac_cv_objext
3396 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3397 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3398 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3419 rm -f conftest.$ac_objext
3420 if { (ac_try="$ac_compile"
3422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3423 *) ac_try_echo
=$ac_try;;
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_compile") 2>conftest.er1
3428 grep -v '^ *+' conftest.er1
>conftest.err
3430 cat conftest.err
>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } && {
3433 test -z "$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 } && test -s conftest.
$ac_objext; then
3438 echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.
$ac_ext >&5
3444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3445 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3448 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3450 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3451 ac_test_CFLAGS
=${CFLAGS+set}
3452 ac_save_CFLAGS
=$CFLAGS
3453 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3454 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3455 if test "${ac_cv_prog_cc_g+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_save_c_werror_flag
=$ac_c_werror_flag
3459 ac_c_werror_flag
=yes
3462 cat >conftest.
$ac_ext <<_ACEOF
3465 cat confdefs.h
>>conftest.
$ac_ext
3466 cat >>conftest.
$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3477 rm -f conftest.
$ac_objext
3478 if { (ac_try
="$ac_compile"
3480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_compile") 2>conftest.er1
3486 grep -v '^ *+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && {
3491 test -z "$ac_c_werror_flag" ||
3492 test ! -s conftest.err
3493 } && test -s conftest.$ac_objext; then
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3519 *) ac_try_echo
=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1
>conftest.err
3526 cat conftest.err
>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.
$ac_objext; then
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.
$ac_ext >&5
3537 ac_c_werror_flag
=$ac_save_c_werror_flag
3539 cat >conftest.
$ac_ext <<_ACEOF
3542 cat confdefs.h
>>conftest.
$ac_ext
3543 cat >>conftest.
$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3554 rm -f conftest.
$ac_objext
3555 if { (ac_try
="$ac_compile"
3557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3588 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3589 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3590 if test "$ac_test_CFLAGS" = set; then
3591 CFLAGS=$ac_save_CFLAGS
3592 elif test $ac_cv_prog_cc_g = yes; then
3593 if test "$GCC" = yes; then
3599 if test "$GCC" = yes; then
3605 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3606 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3607 if test "${ac_cv_prog_cc_c89+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 ac_cv_prog_cc_c89=no
3612 cat >conftest.$ac_ext <<_ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3620 #include <sys/types.h>
3621 #include <sys/stat.h>
3622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3623 struct buf { int x; };
3624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625 static char *e (p, i)
3631 static char *f (char * (*g) (char **, int), char **p, ...)
3636 s = g (p, va_arg (v,int));
3641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3642 function prototypes and stuff, but not '\xHH' hex character constants.
3643 These don't provoke an error unfortunately, instead are silently treated
3644 as 'x'. The following induces an error, until -std is added to get
3645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3646 array size at least. It's necessary to write '\x00'==0 to get something
3647 that's true only with -std. */
3648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3651 inside strings and character constants. */
3653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655 int test (int i, double x);
3656 struct s1 {int (*f) (int a);};
3657 struct s2 {int (*f) (double a);};
3658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 CC="$ac_save_CC $ac_arg"
3673 rm -f conftest.$ac_objext
3674 if { (ac_try="$ac_compile"
3676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3677 *) ac_try_echo
=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_compile") 2>conftest.er1
3682 grep -v '^ *+' conftest.er1
>conftest.err
3684 cat conftest.err
>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } && {
3687 test -z "$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3689 } && test -s conftest.
$ac_objext; then
3690 ac_cv_prog_cc_c89
=$ac_arg
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.
$ac_ext >&5
3698 rm -f core conftest.err conftest.
$ac_objext
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701 rm -f conftest.
$ac_ext
3706 case "x$ac_cv_prog_cc_c89" in
3708 { echo "$as_me:$LINENO: result: none needed" >&5
3709 echo "${ECHO_T}none needed" >&6; } ;;
3711 { echo "$as_me:$LINENO: result: unsupported" >&5
3712 echo "${ECHO_T}unsupported" >&6; } ;;
3714 CC
="$CC $ac_cv_prog_cc_c89"
3715 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3716 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3721 ac_cpp
='$CPP $CPPFLAGS'
3722 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3727 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3728 # but has idiosyncrasies of its own. We assume icc will define
3729 # __INTEL_COMPILER regardless of CFLAGS.
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3741 #ifndef __INTEL_COMPILER
3748 rm -f conftest.
$ac_objext
3749 if { (ac_try
="$ac_compile"
3751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755 (eval "$ac_compile") 2>conftest.er1
3757 grep -v '^ *+' conftest.er1 >conftest.err
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } && {
3762 test -z "$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 } && test -s conftest.$ac_objext; then
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 # Check if it's Sun Studio compiler. We assume that
3776 # __SUNPRO_C will be defined for Sun Studio compilers
3777 cat >conftest.$ac_ext <<_ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3794 rm -f conftest.$ac_objext
3795 if { (ac_try="$ac_compile"
3797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3798 *) ac_try_echo
=$ac_try;;
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_compile") 2>conftest.er1
3803 grep -v '^ *+' conftest.er1
>conftest.err
3805 cat conftest.err
>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } && {
3808 test -z "$ac_c_werror_flag" ||
3809 test ! -s conftest.err
3810 } && test -s conftest.
$ac_objext; then
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.
$ac_ext >&5
3819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3828 .
"$srcdir/src/template/$template" ||
exit
3830 # CFLAGS are selected so:
3831 # If the user specifies something in the environment, that is used.
3832 # else: If the template file set something, that is used.
3833 # else: If coverage was enabled, don't set anything.
3834 # else: If the compiler is GCC, then we use -O2.
3835 # else: If the compiler is something else, then we use -O.
3837 if test "$ac_env_CFLAGS_set" = set; then
3838 CFLAGS
=$ac_env_CFLAGS_value
3839 elif test "${CFLAGS+set}" = set; then
3840 : # (keep what template set)
3841 elif test "$enable_coverage" = yes; then
3842 : # no optimization by default
3843 elif test "$GCC" = yes; then
3846 # if the user selected debug mode, don't use -O
3847 if test "$enable_debug" != yes; then
3852 # Some versions of GCC support some additional useful warning flags.
3853 # Check whether they are supported, and add them to CFLAGS if so.
3854 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3856 if test "$GCC" = yes -a "$ICC" = no
; then
3857 CFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3858 # These work in some but not all gcc versions
3859 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3860 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3861 pgac_save_CFLAGS
=$CFLAGS
3862 CFLAGS
="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3863 cat >conftest.
$ac_ext <<_ACEOF
3866 cat confdefs.h
>>conftest.
$ac_ext
3867 cat >>conftest.
$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3878 rm -f conftest.
$ac_objext
3879 if { (ac_try
="$ac_compile"
3881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
3887 grep -v '^ *+' conftest.er1 >conftest.err
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } && {
3892 test -z "$ac_c_werror_flag" ||
3893 test ! -s conftest.err
3894 } && test -s conftest.$ac_objext; then
3895 { echo "$as_me:$LINENO: result: yes" >&5
3896 echo "${ECHO_T}yes" >&6; }
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 CFLAGS="$pgac_save_CFLAGS"
3902 { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3909 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3910 pgac_save_CFLAGS=$CFLAGS
3911 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3931 *) ac_try_echo
=$ac_try;;
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1
>conftest.err
3938 cat conftest.err
>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.
$ac_objext; then
3944 { echo "$as_me:$LINENO: result: yes" >&5
3945 echo "${ECHO_T}yes" >&6; }
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.
$ac_ext >&5
3950 CFLAGS
="$pgac_save_CFLAGS"
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3957 # Disable strict-aliasing rules; needed for gcc 3.3+
3958 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3959 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3960 pgac_save_CFLAGS
=$CFLAGS
3961 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3962 cat >conftest.
$ac_ext <<_ACEOF
3965 cat confdefs.h
>>conftest.
$ac_ext
3966 cat >>conftest.
$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3977 rm -f conftest.
$ac_objext
3978 if { (ac_try
="$ac_compile"
3980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_compile") 2>conftest.er1
3986 grep -v '^ *+' conftest.er1 >conftest.err
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && {
3991 test -z "$ac_c_werror_flag" ||
3992 test ! -s conftest.err
3993 } && test -s conftest.$ac_objext; then
3994 { echo "$as_me:$LINENO: result: yes" >&5
3995 echo "${ECHO_T}yes" >&6; }
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 CFLAGS="$pgac_save_CFLAGS"
4001 { echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6; }
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4008 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4009 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4010 pgac_save_CFLAGS=$CFLAGS
4011 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4031 *) ac_try_echo
=$ac_try;;
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4036 grep -v '^ *+' conftest.er1
>conftest.err
4038 cat conftest.err
>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } && {
4041 test -z "$ac_c_werror_flag" ||
4042 test ! -s conftest.err
4043 } && test -s conftest.
$ac_objext; then
4044 { echo "$as_me:$LINENO: result: yes" >&5
4045 echo "${ECHO_T}yes" >&6; }
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.
$ac_ext >&5
4050 CFLAGS
="$pgac_save_CFLAGS"
4051 { echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6; }
4055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4057 elif test "$ICC" = yes; then
4058 # Intel's compiler has a bug/misoptimization in checking for
4059 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4060 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4061 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4062 pgac_save_CFLAGS
=$CFLAGS
4063 CFLAGS
="$pgac_save_CFLAGS -mp1"
4064 cat >conftest.
$ac_ext <<_ACEOF
4067 cat confdefs.h
>>conftest.
$ac_ext
4068 cat >>conftest.
$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4079 rm -f conftest.
$ac_objext
4080 if { (ac_try
="$ac_compile"
4082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 { echo "$as_me:$LINENO: result: yes" >&5
4097 echo "${ECHO_T}yes" >&6; }
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 CFLAGS="$pgac_save_CFLAGS"
4103 { echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6; }
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 # Make sure strict aliasing is off (though this is said to be the default)
4110 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4111 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4112 pgac_save_CFLAGS=$CFLAGS
4113 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4114 cat >conftest.$ac_ext <<_ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4129 rm -f conftest.$ac_objext
4130 if { (ac_try="$ac_compile"
4132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4133 *) ac_try_echo
=$ac_try;;
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4138 grep -v '^ *+' conftest.er1
>conftest.err
4140 cat conftest.err
>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest.
$ac_objext; then
4146 { echo "$as_me:$LINENO: result: yes" >&5
4147 echo "${ECHO_T}yes" >&6; }
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.
$ac_ext >&5
4152 CFLAGS
="$pgac_save_CFLAGS"
4153 { echo "$as_me:$LINENO: result: no" >&5
4154 echo "${ECHO_T}no" >&6; }
4157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4159 elif test x
"${CC}" = x
"xlc"; then
4160 # AIX xlc has to have strict aliasing turned off too
4161 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4162 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4163 pgac_save_CFLAGS
=$CFLAGS
4164 CFLAGS
="$pgac_save_CFLAGS -qnoansialias"
4165 cat >conftest.
$ac_ext <<_ACEOF
4168 cat confdefs.h
>>conftest.
$ac_ext
4169 cat >>conftest.
$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4180 rm -f conftest.
$ac_objext
4181 if { (ac_try
="$ac_compile"
4183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4197 { echo "$as_me:$LINENO: result: yes" >&5
4198 echo "${ECHO_T}yes" >&6; }
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 CFLAGS="$pgac_save_CFLAGS"
4204 { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 # supply -g if --enable-debug
4213 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4217 # enable code coverage if --enable-coverage
4218 if test "$enable_coverage" = yes; then
4219 if test "$GCC" = yes; then
4220 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4222 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4223 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4224 { (exit 1); exit 1; }; }
4228 # enable profiling if --enable-profiling
4229 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4230 if test "$GCC" = yes; then
4232 cat >>confdefs.h <<\_ACEOF
4233 #define PROFILE_PID_DIR 1
4236 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4238 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4239 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4240 { (exit 1); exit 1; }; }
4244 # We already have this in Makefile.win32, but configure needs it too
4245 if test "$PORTNAME" = "win32"; then
4246 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4249 # Check if the compiler still works with the template settings
4250 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4251 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (ac_try="$ac_link"
4270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4271 *) ac_try_echo
=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_link") 2>conftest.er1
4276 grep -v '^ *+' conftest.er1
>conftest.err
4278 cat conftest.err
>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && {
4281 test -z "$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4283 } && test -s conftest
$ac_exeext &&
4284 $as_test_x conftest
$ac_exeext; then
4285 { echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6; }
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.
$ac_ext >&5
4291 { echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6; }
4293 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4294 echo "$as_me: error: cannot proceed" >&2;}
4295 { (exit 1); exit 1; }; }
4298 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4299 conftest
$ac_exeext conftest.
$ac_ext
4301 # Defend against gcc -ffast-math
4302 if test "$GCC" = yes; then
4303 cat >conftest.
$ac_ext <<_ACEOF
4306 cat confdefs.h
>>conftest.
$ac_ext
4307 cat >>conftest.
$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4313 #ifdef __FAST_MATH__
4320 rm -f conftest.
$ac_objext
4321 if { (ac_try
="$ac_compile"
4323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_compile") 2>conftest.er1
4329 grep -v '^ *+' conftest.er1 >conftest.err
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && {
4334 test -z "$ac_c_werror_flag" ||
4335 test ! -s conftest.err
4336 } && test -s conftest.$ac_objext; then
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4343 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4344 { (exit 1); exit 1; }; }
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4356 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4357 # On Suns, sometimes $CPP names a directory.
4358 if test -n "$CPP" && test -d "$CPP"; then
4361 if test -z "$CPP"; then
4362 if test "${ac_cv_prog_CPP+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 # Double quotes because CPP needs to be expanded
4366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4369 for ac_c_preproc_warn_flag in '' yes
4371 # Use a header file that comes with gcc, so configuring glibc
4372 # with a fresh cross-compiler works.
4373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4374 # <limits.h> exists even on freestanding compilers.
4375 # On the NeXT, cc -E runs the code through the compiler's parser,
4376 # not just through cpp. "Syntax error" is here to catch this case.
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4384 # include <limits.h>
4386 # include <assert.h>
4390 if { (ac_try="$ac_cpp conftest.$ac_ext"
4392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4393 *) ac_try_echo
=$ac_try;;
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4398 grep -v '^ *+' conftest.er1
>conftest.err
4400 cat conftest.err
>&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } >/dev
/null
&& {
4403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.
$ac_ext >&5
4411 # Broken: fails on valid input.
4415 rm -f conftest.err conftest.
$ac_ext
4417 # OK, works on sane cases. Now check whether nonexistent headers
4418 # can be detected and how.
4419 cat >conftest.
$ac_ext <<_ACEOF
4422 cat confdefs.h
>>conftest.
$ac_ext
4423 cat >>conftest.
$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <ac_nonexistent.h>
4427 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4435 grep -v '^ *+' conftest.er1 >conftest.err
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null && {
4440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4441 test ! -s conftest.err
4443 # Broken: success on invalid input.
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 # Passes both tests.
4454 rm -f conftest.err conftest.$ac_ext
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.
$ac_ext
4459 if $ac_preproc_ok; then
4471 { echo "$as_me:$LINENO: result: $CPP" >&5
4472 echo "${ECHO_T}$CPP" >&6; }
4474 for ac_c_preproc_warn_flag
in '' yes
4476 # Use a header file that comes with gcc, so configuring glibc
4477 # with a fresh cross-compiler works.
4478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4479 # <limits.h> exists even on freestanding compilers.
4480 # On the NeXT, cc -E runs the code through the compiler's parser,
4481 # not just through cpp. "Syntax error" is here to catch this case.
4482 cat >conftest.
$ac_ext <<_ACEOF
4485 cat confdefs.h
>>conftest.
$ac_ext
4486 cat >>conftest.
$ac_ext <<_ACEOF
4487 /* end confdefs.h. */
4489 # include <limits.h>
4491 # include <assert.h>
4495 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4503 grep -v '^ *+' conftest.er1 >conftest.err
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } >/dev/null && {
4508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4509 test ! -s conftest.err
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 # Broken: fails on valid input.
4520 rm -f conftest.err conftest.$ac_ext
4522 # OK, works on sane cases. Now check whether nonexistent headers
4523 # can be detected and how.
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #include <ac_nonexistent.h>
4532 if { (ac_try="$ac_cpp conftest.$ac_ext"
4534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4535 *) ac_try_echo
=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4540 grep -v '^ *+' conftest.er1
>conftest.err
4542 cat conftest.err
>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } >/dev
/null
&& {
4545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4548 # Broken: success on invalid input.
4551 echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.
$ac_ext >&5
4554 # Passes both tests.
4559 rm -f conftest.err conftest.
$ac_ext
4562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4563 rm -f conftest.err conftest.
$ac_ext
4564 if $ac_preproc_ok; then
4567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4568 See \`config.log' for more details." >&5
4569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4570 See \`config.log' for more details." >&2;}
4571 { (exit 1); exit 1; }; }
4575 ac_cpp
='$CPP $CPPFLAGS'
4576 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4582 # Create compiler version string
4583 if test x
"$GCC" = x
"yes" ; then
4584 cc_string
="GCC `${CC} --version | sed q`"
4589 cat >>confdefs.h
<<_ACEOF
4590 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4596 # Set up TAS assembly code if needed; the template file has now had its
4597 # chance to request this.
4599 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4602 if test "$need_tas" = yes ; then
4611 # Automatic dependency tracking
4614 pgac_args
="$pgac_args enable_depend"
4616 # Check whether --enable-depend was given.
4617 if test "${enable_depend+set}" = set; then
4618 enableval
=$enable_depend;
4627 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4628 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4629 { (exit 1); exit 1; }; }
4643 # Enable assert checks
4646 pgac_args
="$pgac_args enable_cassert"
4648 # Check whether --enable-cassert was given.
4649 if test "${enable_cassert+set}" = set; then
4650 enableval
=$enable_cassert;
4654 cat >>confdefs.h
<<\_ACEOF
4655 #define USE_ASSERT_CHECKING 1
4663 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4664 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4665 { (exit 1); exit 1; }; }
4678 # Include directories
4681 IFS
="${IFS}${PATH_SEPARATOR}"
4682 # SRCH_INC comes from the template file
4683 for dir
in $with_includes $SRCH_INC; do
4684 if test -d "$dir"; then
4685 INCLUDES
="$INCLUDES -I$dir"
4687 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4688 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4696 # Library directories
4699 IFS
="${IFS}${PATH_SEPARATOR}"
4700 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4701 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4702 if test -d "$dir"; then
4703 LIBDIRS
="$LIBDIRS -L$dir"
4705 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4706 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4712 # Enable thread-safe client libraries
4714 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4715 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4716 if test "$PORTNAME" != "win32"; then
4718 pgac_args
="$pgac_args enable_thread_safety"
4720 # Check whether --enable-thread-safety was given.
4721 if test "${enable_thread_safety+set}" = set; then
4722 enableval
=$enable_thread_safety;
4731 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4732 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4733 { (exit 1); exit 1; }; }
4738 enable_thread_safety
=no
4744 # Win32 should always use threads
4746 pgac_args
="$pgac_args enable_thread_safety"
4748 # Check whether --enable-thread-safety was given.
4749 if test "${enable_thread_safety+set}" = set; then
4750 enableval
=$enable_thread_safety;
4759 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4760 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4761 { (exit 1); exit 1; }; }
4766 enable_thread_safety
=yes
4774 pgac_args
="$pgac_args enable_thread_safety_force"
4776 # Check whether --enable-thread-safety-force was given.
4777 if test "${enable_thread_safety_force+set}" = set; then
4778 enableval
=$enable_thread_safety_force;
4787 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4788 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4789 { (exit 1); exit 1; }; }
4794 enable_thread_safety_force
=no
4799 if test "$enable_thread_safety" = yes -o \
4800 "$enable_thread_safety_force" = yes; then
4801 enable_thread_safety
="yes" # for 'force'
4803 cat >>confdefs.h
<<\_ACEOF
4804 #define ENABLE_THREAD_SAFETY 1
4808 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4809 echo "${ECHO_T}$enable_thread_safety" >&6; }
4813 # Optionally build Tcl modules (PL/Tcl)
4815 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4816 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4818 pgac_args
="$pgac_args with_tcl"
4821 # Check whether --with-tcl was given.
4822 if test "${with_tcl+set}" = set; then
4832 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4833 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4834 { (exit 1); exit 1; }; }
4844 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4845 echo "${ECHO_T}$with_tcl" >&6; }
4848 # We see if the path to the Tcl/Tk configuration scripts is specified.
4849 # This will override the use of tclsh to find the paths to search.
4852 pgac_args
="$pgac_args with_tclconfig"
4855 # Check whether --with-tclconfig was given.
4856 if test "${with_tclconfig+set}" = set; then
4857 withval
=$with_tclconfig;
4860 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4861 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4862 { (exit 1); exit 1; }; }
4865 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4866 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4867 { (exit 1); exit 1; }; }
4879 # Optionally build Perl modules (PL/Perl)
4881 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4882 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4884 pgac_args
="$pgac_args with_perl"
4887 # Check whether --with-perl was given.
4888 if test "${with_perl+set}" = set; then
4898 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4899 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4900 { (exit 1); exit 1; }; }
4910 { echo "$as_me:$LINENO: result: $with_perl" >&5
4911 echo "${ECHO_T}$with_perl" >&6; }
4915 # Optionally build Python modules (PL/Python)
4917 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4918 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4920 pgac_args
="$pgac_args with_python"
4923 # Check whether --with-python was given.
4924 if test "${with_python+set}" = set; then
4925 withval
=$with_python;
4934 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4935 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4936 { (exit 1); exit 1; }; }
4946 { echo "$as_me:$LINENO: result: $with_python" >&5
4947 echo "${ECHO_T}$with_python" >&6; }
4953 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4954 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4956 pgac_args
="$pgac_args with_gssapi"
4959 # Check whether --with-gssapi was given.
4960 if test "${with_gssapi+set}" = set; then
4961 withval
=$with_gssapi;
4966 cat >>confdefs.h
<<\_ACEOF
4967 #define ENABLE_GSS 1
4970 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4977 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4978 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4979 { (exit 1); exit 1; }; }
4989 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4990 echo "${ECHO_T}$with_gssapi" >&6; }
4996 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4997 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4999 pgac_args
="$pgac_args with_krb5"
5002 # Check whether --with-krb5 was given.
5003 if test "${with_krb5+set}" = set; then
5009 cat >>confdefs.h
<<\_ACEOF
5013 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5020 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5021 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5022 { (exit 1); exit 1; }; }
5032 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5033 echo "${ECHO_T}$with_krb5" >&6; }
5041 # Kerberos configuration parameters
5044 pgac_args
="$pgac_args with_krb_srvnam"
5047 # Check whether --with-krb-srvnam was given.
5048 if test "${with_krb_srvnam+set}" = set; then
5049 withval
=$with_krb_srvnam;
5052 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5053 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5054 { (exit 1); exit 1; }; }
5057 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5058 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5059 { (exit 1); exit 1; }; }
5067 with_krb_srvnam
="postgres"
5072 cat >>confdefs.h
<<_ACEOF
5073 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5081 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5082 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5084 pgac_args
="$pgac_args with_pam"
5087 # Check whether --with-pam was given.
5088 if test "${with_pam+set}" = set; then
5093 cat >>confdefs.h
<<\_ACEOF
5102 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5103 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5104 { (exit 1); exit 1; }; }
5114 { echo "$as_me:$LINENO: result: $with_pam" >&5
5115 echo "${ECHO_T}$with_pam" >&6; }
5122 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5123 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5125 pgac_args
="$pgac_args with_ldap"
5128 # Check whether --with-ldap was given.
5129 if test "${with_ldap+set}" = set; then
5134 cat >>confdefs.h
<<\_ACEOF
5143 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5144 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5145 { (exit 1); exit 1; }; }
5155 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5156 echo "${ECHO_T}$with_ldap" >&6; }
5163 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5164 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5166 pgac_args
="$pgac_args with_bonjour"
5169 # Check whether --with-bonjour was given.
5170 if test "${with_bonjour+set}" = set; then
5171 withval
=$with_bonjour;
5175 cat >>confdefs.h
<<\_ACEOF
5176 #define USE_BONJOUR 1
5184 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5185 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5186 { (exit 1); exit 1; }; }
5196 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5197 echo "${ECHO_T}$with_bonjour" >&6; }
5204 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5205 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5207 pgac_args
="$pgac_args with_openssl"
5210 # Check whether --with-openssl was given.
5211 if test "${with_openssl+set}" = set; then
5212 withval
=$with_openssl;
5216 cat >>confdefs.h
<<\_ACEOF
5225 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5226 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5227 { (exit 1); exit 1; }; }
5237 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5238 echo "${ECHO_T}$with_openssl" >&6; }
5246 pgac_args
="$pgac_args with_readline"
5249 # Check whether --with-readline was given.
5250 if test "${with_readline+set}" = set; then
5251 withval
=$with_readline;
5260 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5261 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5262 { (exit 1); exit 1; }; }
5272 # readline on MinGW has problems with backslashes in psql and other bugs.
5273 # This is particularly a problem with non-US code pages.
5274 # Therefore disable its use until we understand the cause. 2004-07-20
5275 if test "$PORTNAME" = "win32"; then
5276 if test "$with_readline" = yes; then
5277 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5278 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5288 pgac_args
="$pgac_args with_libedit_preferred"
5291 # Check whether --with-libedit-preferred was given.
5292 if test "${with_libedit_preferred+set}" = set; then
5293 withval
=$with_libedit_preferred;
5302 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5303 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5304 { (exit 1); exit 1; }; }
5309 with_libedit_preferred
=no
5320 pgac_args
="$pgac_args with_ossp_uuid"
5323 # Check whether --with-ossp-uuid was given.
5324 if test "${with_ossp_uuid+set}" = set; then
5325 withval
=$with_ossp_uuid;
5334 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5335 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5336 { (exit 1); exit 1; }; }
5353 pgac_args
="$pgac_args with_libxml"
5356 # Check whether --with-libxml was given.
5357 if test "${with_libxml+set}" = set; then
5358 withval
=$with_libxml;
5362 cat >>confdefs.h
<<\_ACEOF
5363 #define USE_LIBXML 1
5371 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5372 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5373 { (exit 1); exit 1; }; }
5384 if test "$with_libxml" = yes ; then
5385 for ac_prog
in xml2-config
5387 # Extract the first word of "$ac_prog", so it can be a program name with args.
5388 set dummy
$ac_prog; ac_word
=$2
5389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5391 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 if test -n "$XML2_CONFIG"; then
5395 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5401 test -z "$as_dir" && as_dir
=.
5402 for ac_exec_ext
in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5415 if test -n "$XML2_CONFIG"; then
5416 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5417 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5419 { echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6; }
5424 test -n "$XML2_CONFIG" && break
5427 if test -n "$XML2_CONFIG"; then
5428 for pgac_option
in `$XML2_CONFIG --cflags`; do
5429 case $pgac_option in
5430 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5433 for pgac_option
in `$XML2_CONFIG --libs`; do
5434 case $pgac_option in
5435 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5447 pgac_args
="$pgac_args with_libxslt"
5450 # Check whether --with-libxslt was given.
5451 if test "${with_libxslt+set}" = set; then
5452 withval
=$with_libxslt;
5456 cat >>confdefs.h
<<\_ACEOF
5457 #define USE_LIBXSLT 1
5465 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5466 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5467 { (exit 1); exit 1; }; }
5485 pgac_args
="$pgac_args with_system_tzdata"
5488 # Check whether --with-system-tzdata was given.
5489 if test "${with_system_tzdata+set}" = set; then
5490 withval
=$with_system_tzdata;
5493 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5494 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5495 { (exit 1); exit 1; }; }
5498 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5499 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5500 { (exit 1); exit 1; }; }
5516 pgac_args
="$pgac_args with_zlib"
5519 # Check whether --with-zlib was given.
5520 if test "${with_zlib+set}" = set; then
5530 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5531 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5532 { (exit 1); exit 1; }; }
5548 # Assume system is ELF if it predefines __ELF__ as 1,
5549 # otherwise believe host_os based default.
5551 freebsd1
*|freebsd2
*) elf
=no
;;
5552 freebsd3
*|freebsd4
*) elf
=yes;;
5556 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5557 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5558 if test "${ac_cv_path_GREP+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 # Extract the first word of "grep ggrep" to use in msg output
5562 if test -z "$GREP"; then
5563 set dummy
grep ggrep
; ac_prog_name
=$2
5564 if test "${ac_cv_path_GREP+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 ac_path_GREP_found
=false
5568 # Loop through the user's path and test for each of PROGNAME-LIST
5569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5570 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5573 test -z "$as_dir" && as_dir
=.
5574 for ac_prog
in grep ggrep
; do
5575 for ac_exec_ext
in '' $ac_executable_extensions; do
5576 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5577 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5578 # Check for GNU ac_path_GREP and select it if it is found.
5579 # Check for GNU $ac_path_GREP
5580 case `"$ac_path_GREP" --version 2>&1` in
5582 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5585 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5588 cat "conftest.in" "conftest.in" >"conftest.tmp"
5589 mv "conftest.tmp" "conftest.in"
5590 cp "conftest.in" "conftest.nl"
5591 echo 'GREP' >> "conftest.nl"
5592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5593 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5594 ac_count
=`expr $ac_count + 1`
5595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5596 # Best one so far, save it but keep looking for a better one
5597 ac_cv_path_GREP
="$ac_path_GREP"
5598 ac_path_GREP_max
=$ac_count
5600 # 10*(2^10) chars as input seems more than enough
5601 test $ac_count -gt 10 && break
5603 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5607 $ac_path_GREP_found && break 3
5617 GREP
="$ac_cv_path_GREP"
5618 if test -z "$GREP"; then
5619 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5620 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5621 { (exit 1); exit 1; }; }
5625 ac_cv_path_GREP
=$GREP
5630 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5631 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5632 GREP
="$ac_cv_path_GREP"
5635 { echo "$as_me:$LINENO: checking for egrep" >&5
5636 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5637 if test "${ac_cv_path_EGREP+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5641 then ac_cv_path_EGREP
="$GREP -E"
5643 # Extract the first word of "egrep" to use in msg output
5644 if test -z "$EGREP"; then
5645 set dummy
egrep; ac_prog_name
=$2
5646 if test "${ac_cv_path_EGREP+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_path_EGREP_found
=false
5650 # Loop through the user's path and test for each of PROGNAME-LIST
5651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5652 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5655 test -z "$as_dir" && as_dir
=.
5656 for ac_prog
in egrep; do
5657 for ac_exec_ext
in '' $ac_executable_extensions; do
5658 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5659 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5660 # Check for GNU ac_path_EGREP and select it if it is found.
5661 # Check for GNU $ac_path_EGREP
5662 case `"$ac_path_EGREP" --version 2>&1` in
5664 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5667 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5670 cat "conftest.in" "conftest.in" >"conftest.tmp"
5671 mv "conftest.tmp" "conftest.in"
5672 cp "conftest.in" "conftest.nl"
5673 echo 'EGREP' >> "conftest.nl"
5674 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5675 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5676 ac_count
=`expr $ac_count + 1`
5677 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5678 # Best one so far, save it but keep looking for a better one
5679 ac_cv_path_EGREP
="$ac_path_EGREP"
5680 ac_path_EGREP_max
=$ac_count
5682 # 10*(2^10) chars as input seems more than enough
5683 test $ac_count -gt 10 && break
5685 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5689 $ac_path_EGREP_found && break 3
5699 EGREP
="$ac_cv_path_EGREP"
5700 if test -z "$EGREP"; then
5701 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5702 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5703 { (exit 1); exit 1; }; }
5707 ac_cv_path_EGREP
=$EGREP
5713 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5714 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5715 EGREP
="$ac_cv_path_EGREP"
5718 cat >conftest.
$ac_ext <<_ACEOF
5721 cat confdefs.h
>>conftest.
$ac_ext
5722 cat >>conftest.
$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5730 $EGREP "yes" >/dev
/null
2>&1; then
5733 if test "X$elf" = "Xyes" ; then
5747 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5748 LDFLAGS
="$LDFLAGS $LIBDIRS"
5753 # Check whether --with-gnu-ld was given.
5754 if test "${with_gnu_ld+set}" = set; then
5755 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5761 if test "$GCC" = yes; then
5762 # Check if gcc -print-prog-name=ld gives a path.
5763 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5764 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5767 # gcc leaves a trailing carriage return which upsets mingw
5768 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5770 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5773 # Accept absolute paths.
5774 [\\/]* |
[A-Za-z
]:[\\/]*)
5775 re_direlt
='/[^/][^/]*/\.\./'
5776 # Canonicalize the path of ld
5777 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5778 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5779 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5781 test -z "$LD" && LD
="$ac_prog"
5784 # If it fails, then pretend we aren't using GCC.
5788 # If it is relative, then search for the first ld in PATH.
5792 elif test "$with_gnu_ld" = yes; then
5793 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5794 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5796 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5797 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_LD+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 if test -z "$LD"; then
5803 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5804 for ac_dir
in $PATH; do
5805 test -z "$ac_dir" && ac_dir
=.
5806 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5807 ac_cv_path_LD
="$ac_dir/$ac_prog"
5808 # Check to see if the program is GNU ld. I'd rather use --version,
5809 # but apparently some GNU ld's only accept -v.
5810 # Break only if it was the GNU/non-GNU ld that we prefer.
5811 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5812 test "$with_gnu_ld" != no
&& break
5814 test "$with_gnu_ld" != yes && break
5820 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5825 if test -n "$LD"; then
5826 { echo "$as_me:$LINENO: result: $LD" >&5
5827 echo "${ECHO_T}$LD" >&6; }
5829 { echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6; }
5832 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5833 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5834 { (exit 1); exit 1; }; }
5835 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5836 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5837 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5841 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5842 ac_cv_prog_gnu_ld
=yes
5844 ac_cv_prog_gnu_ld
=no
5847 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5848 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5849 with_gnu_ld
=$ac_cv_prog_gnu_ld
5854 case $host_os in sysv5
*)
5855 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5856 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5857 if test "${pgac_cv_prog_ld_R+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5862 cat >conftest.
$ac_ext <<_ACEOF
5865 cat confdefs.h
>>conftest.
$ac_ext
5866 cat >>conftest.
$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5877 rm -f conftest.
$ac_objext conftest
$ac_exeext
5878 if { (ac_try
="$ac_link"
5880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_link") 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_c_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest$ac_exeext &&
5894 $as_test_x conftest$ac_exeext; then
5895 pgac_cv_prog_ld_R=yes
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 pgac_cv_prog_ld_R=no
5903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5904 conftest$ac_exeext conftest.$ac_ext
5905 LDFLAGS=$pgac_save_LDFLAGS
5908 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5909 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5910 ld_R_works=$pgac_cv_prog_ld_R
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918 if test "${ac_cv_prog_RANLIB+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 if test -n "$RANLIB"; then
5922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 RANLIB=$ac_cv_prog_RANLIB
5942 if test -n "$RANLIB"; then
5943 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5944 echo "${ECHO_T}$RANLIB" >&6; }
5946 { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5952 if test -z "$ac_cv_prog_RANLIB"; then
5953 ac_ct_RANLIB=$RANLIB
5954 # Extract the first word of "ranlib", so it can be a program name with args.
5955 set dummy ranlib; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 if test -n "$ac_ct_RANLIB"; then
5962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_RANLIB="ranlib"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5982 if test -n "$ac_ct_RANLIB"; then
5983 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5984 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5990 if test "x$ac_ct_RANLIB" = x; then
5993 case $cross_compiling:$ac_tool_warned in
5995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5996 whose name does not start with the host triplet. If you think this
5997 configuration is useful to you, please write to autoconf@gnu.org." >&5
5998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5999 whose name does not start with the host triplet. If you think this
6000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6001 ac_tool_warned=yes ;;
6003 RANLIB=$ac_ct_RANLIB
6006 RANLIB="$ac_cv_prog_RANLIB"
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}strip; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_STRIP+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 if test -n "$STRIP"; then
6019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
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_prog_STRIP="${ac_tool_prefix}strip"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 STRIP=$ac_cv_prog_STRIP
6039 if test -n "$STRIP"; then
6040 { echo "$as_me:$LINENO: result: $STRIP" >&5
6041 echo "${ECHO_T}$STRIP" >&6; }
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6049 if test -z "$ac_cv_prog_STRIP"; then
6051 # Extract the first word of "strip", so it can be a program name with args.
6052 set dummy strip; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 if test -n "$ac_ct_STRIP"; then
6059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_ac_ct_STRIP="strip"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6079 if test -n "$ac_ct_STRIP"; then
6080 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6081 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6087 if test "x$ac_ct_STRIP" = x; then
6090 case $cross_compiling:$ac_tool_warned in
6092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6093 whose name does not start with the host triplet. If you think this
6094 configuration is useful to you, please write to autoconf@gnu.org." >&5
6095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6096 whose name does not start with the host triplet. If you think this
6097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6098 ac_tool_warned=yes ;;
6103 STRIP="$ac_cv_prog_STRIP"
6107 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6108 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6109 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6110 STRIP_STATIC_LIB="$STRIP -x"
6111 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6112 { echo "$as_me:$LINENO: result: yes" >&5
6113 echo "${ECHO_T}yes" >&6; }
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}ar; ac_word=$2
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6128 if test "${ac_cv_prog_AR+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 if test -n "$AR"; then
6132 ac_cv_prog_AR="$AR" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_AR="${ac_tool_prefix}ar"
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 if test -n "$AR"; then
6153 { echo "$as_me:$LINENO: result: $AR" >&5
6154 echo "${ECHO_T}$AR" >&6; }
6156 { echo "$as_me:$LINENO: result: no" >&5
6157 echo "${ECHO_T}no" >&6; }
6162 if test -z "$ac_cv_prog_AR"; then
6164 # Extract the first word of "ar", so it can be a program name with args.
6165 set dummy ar; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 if test -n "$ac_ct_AR"; then
6172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_ac_ct_AR="ar"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6194 echo "${ECHO_T}$ac_ct_AR" >&6; }
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6200 if test "x$ac_ct_AR" = x; then
6203 case $cross_compiling:$ac_tool_warned in
6205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6206 whose name does not start with the host triplet. If you think this
6207 configuration is useful to you, please write to autoconf@gnu.org." >&5
6208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6209 whose name does not start with the host triplet. If you think this
6210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6211 ac_tool_warned=yes ;;
6219 if test "$PORTNAME" = "win32"; then
6220 if test -n "$ac_tool_prefix"; then
6221 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 if test -n "$DLLTOOL"; then
6229 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 DLLTOOL=$ac_cv_prog_DLLTOOL
6249 if test -n "$DLLTOOL"; then
6250 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6251 echo "${ECHO_T}$DLLTOOL" >&6; }
6253 { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6259 if test -z "$ac_cv_prog_DLLTOOL"; then
6260 ac_ct_DLLTOOL=$DLLTOOL
6261 # Extract the first word of "dlltool", so it can be a program name with args.
6262 set dummy dlltool; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 if test -n "$ac_ct_DLLTOOL"; then
6269 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6289 if test -n "$ac_ct_DLLTOOL"; then
6290 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6291 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6293 { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6297 if test "x$ac_ct_DLLTOOL" = x; then
6300 case $cross_compiling:$ac_tool_warned in
6302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6303 whose name does not start with the host triplet. If you think this
6304 configuration is useful to you, please write to autoconf@gnu.org." >&5
6305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6306 whose name does not start with the host triplet. If you think this
6307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6308 ac_tool_warned=yes ;;
6310 DLLTOOL=$ac_ct_DLLTOOL
6313 DLLTOOL="$ac_cv_prog_DLLTOOL"
6316 if test -n "$ac_tool_prefix"; then
6317 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6318 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 if test -n "$DLLWRAP"; then
6325 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 DLLWRAP=$ac_cv_prog_DLLWRAP
6345 if test -n "$DLLWRAP"; then
6346 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6347 echo "${ECHO_T}$DLLWRAP" >&6; }
6349 { echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6; }
6355 if test -z "$ac_cv_prog_DLLWRAP"; then
6356 ac_ct_DLLWRAP=$DLLWRAP
6357 # Extract the first word of "dllwrap", so it can be a program name with args.
6358 set dummy dllwrap; ac_word=$2
6359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 if test -n "$ac_ct_DLLWRAP"; then
6365 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6385 if test -n "$ac_ct_DLLWRAP"; then
6386 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6387 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6393 if test "x$ac_ct_DLLWRAP" = x; then
6396 case $cross_compiling:$ac_tool_warned in
6398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6399 whose name does not start with the host triplet. If you think this
6400 configuration is useful to you, please write to autoconf@gnu.org." >&5
6401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6402 whose name does not start with the host triplet. If you think this
6403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6404 ac_tool_warned=yes ;;
6406 DLLWRAP=$ac_ct_DLLWRAP
6409 DLLWRAP="$ac_cv_prog_DLLWRAP"
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}windres; ac_word=$2
6415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_WINDRES+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 if test -n "$WINDRES"; then
6421 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 WINDRES=$ac_cv_prog_WINDRES
6441 if test -n "$WINDRES"; then
6442 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6443 echo "${ECHO_T}$WINDRES" >&6; }
6445 { echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6; }
6451 if test -z "$ac_cv_prog_WINDRES"; then
6452 ac_ct_WINDRES=$WINDRES
6453 # Extract the first word of "windres", so it can be a program name with args.
6454 set dummy windres; ac_word=$2
6455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6457 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 if test -n "$ac_ct_WINDRES"; then
6461 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_WINDRES="windres"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6481 if test -n "$ac_ct_WINDRES"; then
6482 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6483 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6485 { echo "$as_me:$LINENO: result: no" >&5
6486 echo "${ECHO_T}no" >&6; }
6489 if test "x$ac_ct_WINDRES" = x; then
6492 case $cross_compiling:$ac_tool_warned in
6494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6495 whose name does not start with the host triplet. If you think this
6496 configuration is useful to you, please write to autoconf@gnu.org." >&5
6497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet. If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6500 ac_tool_warned=yes ;;
6502 WINDRES=$ac_ct_WINDRES
6505 WINDRES="$ac_cv_prog_WINDRES"
6510 # Extract the first word of "tar", so it can be a program name with args.
6511 set dummy tar; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_path_TAR+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 if test -n "$TAR"; then
6542 { echo "$as_me:$LINENO: result: $TAR" >&5
6543 echo "${ECHO_T}$TAR" >&6; }
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6550 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6553 if test "$LN_S" = "ln -s"; then
6554 { echo "$as_me:$LINENO: result: yes" >&5
6555 echo "${ECHO_T}yes" >&6; }
6557 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6558 echo "${ECHO_T}no, using $LN_S" >&6; }
6561 for ac_prog in gawk mawk nawk awk
6563 # Extract the first word of "$ac_prog", so it can be a program name with args.
6564 set dummy $ac_prog; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_prog_AWK+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 if test -n "$AWK"; then
6571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_AWK="$ac_prog"
6581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 if test -n "$AWK"; then
6592 { echo "$as_me:$LINENO: result: $AWK" >&5
6593 echo "${ECHO_T}$AWK" >&6; }
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6600 test -n "$AWK" && break
6604 # Let the user override the search
6605 if test -z "$BISON"; then
6606 for ac_prog in bison
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612 if test "${ac_cv_prog_BISON+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 if test -n "$BISON"; then
6616 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_BISON="$ac_prog"
6626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 BISON=$ac_cv_prog_BISON
6636 if test -n "$BISON"; then
6637 { echo "$as_me:$LINENO: result: $BISON" >&5
6638 echo "${ECHO_T}$BISON" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 test -n "$BISON" && break
6650 if test "$BISON"; then
6651 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6652 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6653 echo "$as_me: using $pgac_bison_version" >&6;}
6654 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6656 { echo "$as_me:$LINENO: WARNING:
6657 *** The installed version of Bison is too old to use with PostgreSQL.
6658 *** Bison version 1.875 or later is required." >&5
6659 echo "$as_me: WARNING:
6660 *** The installed version of Bison is too old to use with PostgreSQL.
6661 *** Bison version 1.875 or later is required." >&2;}
6666 if test -z "$BISON"; then
6667 { echo "$as_me:$LINENO: WARNING:
6668 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6669 *** change any of the parser definition files. You can obtain Bison from
6670 *** a GNU mirror site. (If you are using the official distribution of
6671 *** PostgreSQL then you do not need to worry about this, because the Bison
6672 *** output is pre-generated.)" >&5
6673 echo "$as_me: WARNING:
6674 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6675 *** change any of the parser definition files. You can obtain Bison from
6676 *** a GNU mirror site. (If you are using the official distribution of
6677 *** PostgreSQL then you do not need to worry about this, because the Bison
6678 *** output is pre-generated.)" >&2;}
6680 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6683 { echo "$as_me:$LINENO: checking for flex" >&5
6684 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6685 if test "${pgac_cv_path_flex+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 # Let the user override the test
6689 if test -n "$FLEX"; then
6690 pgac_cv_path_flex=$FLEX
6694 for pgac_dir in $PATH; do
6696 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6699 for pgac_prog in flex lex; do
6700 pgac_candidate="$pgac_dir/$pgac_prog"
6701 if test -f "$pgac_candidate" \
6702 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6704 echo '%%' > conftest.l
6705 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6706 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6707 pgac_broken_flex=$pgac_candidate
6711 pgac_cv_path_flex=$pgac_candidate
6717 rm -f conftest.l lex.yy.c
6718 : ${pgac_cv_path_flex=no}
6722 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6723 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6724 if test x"$pgac_cv_path_flex" = x"no"; then
6725 if test -n "$pgac_broken_flex"; then
6726 { echo "$as_me:$LINENO: WARNING:
6727 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6728 *** should get version 2.5.4 or later." >&5
6729 echo "$as_me: WARNING:
6730 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6731 *** should get version 2.5.4 or later." >&2;}
6734 { echo "$as_me:$LINENO: WARNING:
6735 *** Without Flex you will not be able to build PostgreSQL from CVS or
6736 *** change any of the scanner definition files. You can obtain Flex from
6737 *** a GNU mirror site. (If you are using the official distribution of
6738 *** PostgreSQL then you do not need to worry about this because the Flex
6739 *** output is pre-generated.)" >&5
6740 echo "$as_me: WARNING:
6741 *** Without Flex you will not be able to build PostgreSQL from CVS or
6742 *** change any of the scanner definition files. You can obtain Flex from
6743 *** a GNU mirror site. (If you are using the official distribution of
6744 *** PostgreSQL then you do not need to worry about this because the Flex
6745 *** output is pre-generated.)" >&2;}
6749 FLEX=$pgac_cv_path_flex
6750 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6751 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6752 echo "$as_me: using $pgac_flex_version" >&6;}
6759 # Extract the first word of "perl", so it can be a program name with args.
6760 set dummy perl; ac_word=$2
6761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763 if test "${ac_cv_path_PERL+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 PERL=$ac_cv_path_PERL
6790 if test -n "$PERL"; then
6791 { echo "$as_me:$LINENO: result: $PERL" >&5
6792 echo "${ECHO_T}$PERL" >&6; }
6794 { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6799 if test "$with_perl" = yes; then
6801 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6802 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6803 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6804 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6805 echo "${ECHO_T}$perl_archlibexp" >&6; }
6806 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6807 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6808 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6809 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6810 echo "${ECHO_T}$perl_privlibexp" >&6; }
6811 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6812 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6813 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6814 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6815 echo "${ECHO_T}$perl_useshrplib" >&6; }
6817 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6818 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6819 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6820 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6821 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6822 if test -z "$perl_embed_ldflags" ; then
6823 { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6825 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6826 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6828 echo "$as_me: error: could not determine flags for linking embedded Perl.
6829 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6831 { (exit 1); exit 1; }; }
6833 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6834 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6839 if test "$with_python" = yes; then
6840 # Extract the first word of "python", so it can be a program name with args.
6841 set dummy python; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_path_PYTHON+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 PYTHON=$ac_cv_path_PYTHON
6871 if test -n "$PYTHON"; then
6872 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6873 echo "${ECHO_T}$PYTHON" >&6; }
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 if test x"$PYTHON" = x""; then
6881 { { echo "$as_me:$LINENO: error: Python not found" >&5
6882 echo "$as_me: error: Python not found" >&2;}
6883 { (exit 1); exit 1; }; }
6887 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6888 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6889 if "${PYTHON}" 2>&- -c 'import distutils'
6891 { echo "$as_me:$LINENO: result: yes" >&5
6892 echo "${ECHO_T}yes" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6896 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6897 echo "$as_me: error: distutils module not found" >&2;}
6898 { (exit 1); exit 1; }; }
6900 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6901 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6902 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6903 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')"`
6904 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6906 # This should be enough of a message.
6907 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6908 echo "${ECHO_T}$python_configdir" >&6; }
6911 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6912 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6914 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6915 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6916 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6917 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6919 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6921 # New way: use the official shared library
6922 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6923 python_libspec="-L${python_libdir} -l${ldlibrary}"
6925 # Old way: use libpython from python_configdir
6926 python_libdir="${python_configdir}"
6927 python_libspec="-L${python_libdir} -lpython${python_version}"
6930 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6932 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6933 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6936 # threaded python is not supported on bsd's
6937 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6938 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6939 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6940 if test "$pythreads" = "1"; then
6941 { echo "$as_me:$LINENO: result: yes" >&5
6942 echo "${ECHO_T}yes" >&6; }
6945 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6946 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6947 { (exit 1); exit 1; }; }
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6958 # Supply a numeric version string for use by 3rd party add-ons
6959 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6960 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
6962 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6964 cat >>confdefs.h <<_ACEOF
6965 #define PG_VERSION_NUM $PG_VERSION_NUM
6972 ## Most libraries are included only if they demonstrably provide a function
6973 ## we need, but libm is an exception: always include it, because there are
6974 ## too many compilers that play cute optimization games that will break
6975 ## probes for standard functions such as pow().
6979 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6980 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6981 if test "${ac_cv_lib_m_main+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 ac_check_lib_save_LIBS=$LIBS
6986 cat >conftest.$ac_ext <<_ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (ac_try="$ac_link"
7005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7006 *) ac_try_echo
=$ac_try;;
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_link") 2>conftest.er1
7011 grep -v '^ *+' conftest.er1
>conftest.err
7013 cat conftest.err
>&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && {
7016 test -z "$ac_c_werror_flag" ||
7017 test ! -s conftest.err
7018 } && test -s conftest
$ac_exeext &&
7019 $as_test_x conftest
$ac_exeext; then
7020 ac_cv_lib_m_main
=yes
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.
$ac_ext >&5
7028 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7029 conftest
$ac_exeext conftest.
$ac_ext
7030 LIBS
=$ac_check_lib_save_LIBS
7032 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7033 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7034 if test $ac_cv_lib_m_main = yes; then
7035 cat >>confdefs.h
<<_ACEOF
7043 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7044 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7045 if test "${ac_cv_search_setproctitle+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 ac_func_search_save_LIBS
=$LIBS
7049 cat >conftest.
$ac_ext <<_ACEOF
7052 cat confdefs.h
>>conftest.
$ac_ext
7053 cat >>conftest.
$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7056 /* Override any GCC internal prototype to avoid an error.
7057 Use char because int might match the return type of a GCC
7058 builtin and then its argument prototype would still apply. */
7062 char setproctitle ();
7066 return setproctitle ();
7071 for ac_lib
in '' util
; do
7072 if test -z "$ac_lib"; then
7073 ac_res
="none required"
7076 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7078 rm -f conftest.
$ac_objext conftest
$ac_exeext
7079 if { (ac_try
="$ac_link"
7081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_link") 2>conftest.er1
7087 grep -v '^ *+' conftest.er1 >conftest.err
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest$ac_exeext &&
7095 $as_test_x conftest$ac_exeext; then
7096 ac_cv_search_setproctitle=$ac_res
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7106 if test "${ac_cv_search_setproctitle+set}" = set; then
7110 if test "${ac_cv_search_setproctitle+set}" = set; then
7113 ac_cv_search_setproctitle=no
7116 LIBS=$ac_func_search_save_LIBS
7118 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7119 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7120 ac_res=$ac_cv_search_setproctitle
7121 if test "$ac_res" != no; then
7122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7126 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7127 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7128 if test "${ac_cv_search_dlopen+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_func_search_save_LIBS=$LIBS
7132 cat >conftest.$ac_ext <<_ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7139 /* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
7154 for ac_lib in '' dl; do
7155 if test -z "$ac_lib"; then
7156 ac_res="none required"
7159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7161 rm -f conftest.$ac_objext conftest$ac_exeext
7162 if { (ac_try="$ac_link"
7164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7165 *) ac_try_echo
=$ac_try;;
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_link") 2>conftest.er1
7170 grep -v '^ *+' conftest.er1
>conftest.err
7172 cat conftest.err
>&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && {
7175 test -z "$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 } && test -s conftest
$ac_exeext &&
7178 $as_test_x conftest
$ac_exeext; then
7179 ac_cv_search_dlopen
=$ac_res
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.
$ac_ext >&5
7187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7189 if test "${ac_cv_search_dlopen+set}" = set; then
7193 if test "${ac_cv_search_dlopen+set}" = set; then
7196 ac_cv_search_dlopen
=no
7199 LIBS
=$ac_func_search_save_LIBS
7201 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7202 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7203 ac_res
=$ac_cv_search_dlopen
7204 if test "$ac_res" != no
; then
7205 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7209 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7210 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7211 if test "${ac_cv_search_socket+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 ac_func_search_save_LIBS
=$LIBS
7215 cat >conftest.
$ac_ext <<_ACEOF
7218 cat confdefs.h
>>conftest.
$ac_ext
7219 cat >>conftest.
$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7222 /* Override any GCC internal prototype to avoid an error.
7223 Use char because int might match the return type of a GCC
7224 builtin and then its argument prototype would still apply. */
7237 for ac_lib
in '' socket wsock32
; do
7238 if test -z "$ac_lib"; then
7239 ac_res
="none required"
7242 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7244 rm -f conftest.
$ac_objext conftest
$ac_exeext
7245 if { (ac_try
="$ac_link"
7247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_link") 2>conftest.er1
7253 grep -v '^ *+' conftest.er1 >conftest.err
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest$ac_exeext &&
7261 $as_test_x conftest$ac_exeext; then
7262 ac_cv_search_socket=$ac_res
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7272 if test "${ac_cv_search_socket+set}" = set; then
7276 if test "${ac_cv_search_socket+set}" = set; then
7279 ac_cv_search_socket=no
7282 LIBS=$ac_func_search_save_LIBS
7284 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7285 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7286 ac_res=$ac_cv_search_socket
7287 if test "$ac_res" != no; then
7288 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7292 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7293 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7294 if test "${ac_cv_search_shl_load+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 ac_func_search_save_LIBS=$LIBS
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7305 /* Override any GCC internal prototype to avoid an error.
7306 Use char because int might match the return type of a GCC
7307 builtin and then its argument prototype would still apply. */
7320 for ac_lib in '' dld; do
7321 if test -z "$ac_lib"; then
7322 ac_res="none required"
7325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (ac_try="$ac_link"
7330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7331 *) ac_try_echo
=$ac_try;;
7333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7334 (eval "$ac_link") 2>conftest.er1
7336 grep -v '^ *+' conftest.er1
>conftest.err
7338 cat conftest.err
>&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest
$ac_exeext &&
7344 $as_test_x conftest
$ac_exeext; then
7345 ac_cv_search_shl_load
=$ac_res
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.
$ac_ext >&5
7353 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7355 if test "${ac_cv_search_shl_load+set}" = set; then
7359 if test "${ac_cv_search_shl_load+set}" = set; then
7362 ac_cv_search_shl_load
=no
7365 LIBS
=$ac_func_search_save_LIBS
7367 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7368 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7369 ac_res
=$ac_cv_search_shl_load
7370 if test "$ac_res" != no
; then
7371 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7375 # We only use libld in port/dynloader/aix.c
7378 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7379 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7380 if test "${ac_cv_search_ldopen+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 ac_func_search_save_LIBS
=$LIBS
7384 cat >conftest.
$ac_ext <<_ACEOF
7387 cat confdefs.h
>>conftest.
$ac_ext
7388 cat >>conftest.
$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7391 /* Override any GCC internal prototype to avoid an error.
7392 Use char because int might match the return type of a GCC
7393 builtin and then its argument prototype would still apply. */
7406 for ac_lib
in '' ld
; do
7407 if test -z "$ac_lib"; then
7408 ac_res
="none required"
7411 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7413 rm -f conftest.
$ac_objext conftest
$ac_exeext
7414 if { (ac_try
="$ac_link"
7416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_link") 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest$ac_exeext &&
7430 $as_test_x conftest$ac_exeext; then
7431 ac_cv_search_ldopen=$ac_res
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7441 if test "${ac_cv_search_ldopen+set}" = set; then
7445 if test "${ac_cv_search_ldopen+set}" = set; then
7448 ac_cv_search_ldopen=no
7451 LIBS=$ac_func_search_save_LIBS
7453 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7454 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7455 ac_res=$ac_cv_search_ldopen
7456 if test "$ac_res" != no; then
7457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7463 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7464 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7465 if test "${ac_cv_search_getopt_long+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 ac_func_search_save_LIBS=$LIBS
7469 cat >conftest.$ac_ext <<_ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7476 /* Override any GCC internal prototype to avoid an error.
7477 Use char because int might match the return type of a GCC
7478 builtin and then its argument prototype would still apply. */
7482 char getopt_long ();
7486 return getopt_long ();
7491 for ac_lib in '' getopt gnugetopt; do
7492 if test -z "$ac_lib"; then
7493 ac_res="none required"
7496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7498 rm -f conftest.$ac_objext conftest$ac_exeext
7499 if { (ac_try="$ac_link"
7501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7502 *) ac_try_echo
=$ac_try;;
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_link") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1
>conftest.err
7509 cat conftest.err
>&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest
$ac_exeext &&
7515 $as_test_x conftest
$ac_exeext; then
7516 ac_cv_search_getopt_long
=$ac_res
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.
$ac_ext >&5
7524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7526 if test "${ac_cv_search_getopt_long+set}" = set; then
7530 if test "${ac_cv_search_getopt_long+set}" = set; then
7533 ac_cv_search_getopt_long
=no
7536 LIBS
=$ac_func_search_save_LIBS
7538 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7539 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7540 ac_res
=$ac_cv_search_getopt_long
7541 if test "$ac_res" != no
; then
7542 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7546 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7547 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7548 if test "${ac_cv_search_crypt+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 ac_func_search_save_LIBS
=$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. */
7574 for ac_lib
in '' crypt; do
7575 if test -z "$ac_lib"; then
7576 ac_res
="none required"
7579 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7581 rm -f conftest.
$ac_objext conftest
$ac_exeext
7582 if { (ac_try
="$ac_link"
7584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_link") 2>conftest.er1
7590 grep -v '^ *+' conftest.er1 >conftest.err
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest$ac_exeext &&
7598 $as_test_x conftest$ac_exeext; then
7599 ac_cv_search_crypt=$ac_res
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7609 if test "${ac_cv_search_crypt+set}" = set; then
7613 if test "${ac_cv_search_crypt+set}" = set; then
7616 ac_cv_search_crypt=no
7619 LIBS=$ac_func_search_save_LIBS
7621 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7622 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7623 ac_res=$ac_cv_search_crypt
7624 if test "$ac_res" != no; then
7625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7630 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7631 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7632 if test "${ac_cv_search_fdatasync+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_func_search_save_LIBS=$LIBS
7636 cat >conftest.$ac_ext <<_ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7643 /* Override any GCC internal prototype to avoid an error.
7644 Use char because int might match the return type of a GCC
7645 builtin and then its argument prototype would still apply. */
7653 return fdatasync ();
7658 for ac_lib in '' rt posix4; do
7659 if test -z "$ac_lib"; then
7660 ac_res="none required"
7663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (ac_try="$ac_link"
7668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7669 *) ac_try_echo
=$ac_try;;
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_link") 2>conftest.er1
7674 grep -v '^ *+' conftest.er1
>conftest.err
7676 cat conftest.err
>&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest
$ac_exeext &&
7682 $as_test_x conftest
$ac_exeext; then
7683 ac_cv_search_fdatasync
=$ac_res
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.
$ac_ext >&5
7691 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7693 if test "${ac_cv_search_fdatasync+set}" = set; then
7697 if test "${ac_cv_search_fdatasync+set}" = set; then
7700 ac_cv_search_fdatasync
=no
7703 LIBS
=$ac_func_search_save_LIBS
7705 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7706 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7707 ac_res
=$ac_cv_search_fdatasync
7708 if test "$ac_res" != no
; then
7709 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7714 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7715 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7716 if test "${ac_cv_search_shmget+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 ac_func_search_save_LIBS
=$LIBS
7720 cat >conftest.
$ac_ext <<_ACEOF
7723 cat confdefs.h
>>conftest.
$ac_ext
7724 cat >>conftest.
$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 /* Override any GCC internal prototype to avoid an error.
7728 Use char because int might match the return type of a GCC
7729 builtin and then its argument prototype would still apply. */
7742 for ac_lib
in '' cygipc
; do
7743 if test -z "$ac_lib"; then
7744 ac_res
="none required"
7747 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7749 rm -f conftest.
$ac_objext conftest
$ac_exeext
7750 if { (ac_try
="$ac_link"
7752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_link") 2>conftest.er1
7758 grep -v '^ *+' conftest.er1 >conftest.err
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest$ac_exeext &&
7766 $as_test_x conftest$ac_exeext; then
7767 ac_cv_search_shmget=$ac_res
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7777 if test "${ac_cv_search_shmget+set}" = set; then
7781 if test "${ac_cv_search_shmget+set}" = set; then
7784 ac_cv_search_shmget=no
7787 LIBS=$ac_func_search_save_LIBS
7789 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7790 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7791 ac_res=$ac_cv_search_shmget
7792 if test "$ac_res" != no; then
7793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7798 if test "$with_readline" = yes; then
7801 if test "${pgac_cv_check_readline+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 pgac_cv_check_readline=no
7805 pgac_save_LIBS=$LIBS
7806 if test x"$with_libedit_preferred" != x"yes"
7807 then READLINE_ORDER="-lreadline -ledit"
7808 else READLINE_ORDER="-ledit -lreadline"
7810 for pgac_rllib in $READLINE_ORDER ; do
7811 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7812 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7813 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7814 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7822 /* Override any GCC internal prototype to avoid an error.
7823 Use char because int might match the return type of a GCC
7824 builtin and then its argument prototype would still apply. */
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (ac_try="$ac_link"
7840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7841 *) ac_try_echo
=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_link") 2>conftest.er1
7846 grep -v '^ *+' conftest.er1
>conftest.err
7848 cat conftest.err
>&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && {
7851 test -z "$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 } && test -s conftest
$ac_exeext &&
7854 $as_test_x conftest
$ac_exeext; then
7856 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7857 # recognize dependent libraries; assume curses is needed if we didn't
7858 # find any dependency.
7860 netbsd
* | openbsd
* | irix
*)
7861 if test x
"$pgac_lib" = x
"" ; then
7862 pgac_lib
=" -lcurses"
7866 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.
$ac_ext >&5
7876 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7877 conftest
$ac_exeext conftest.
$ac_ext
7879 if test "$pgac_cv_check_readline" != no
; then
7880 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7881 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7884 { echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6; }
7888 LIBS
=$pgac_save_LIBS
7892 if test "$pgac_cv_check_readline" != no
; then
7893 LIBS
="$pgac_cv_check_readline $LIBS"
7895 cat >>confdefs.h
<<\_ACEOF
7896 #define HAVE_LIBREADLINE 1
7902 if test x
"$pgac_cv_check_readline" = x
"no"; then
7903 { { echo "$as_me:$LINENO: error: readline library not found
7904 If you have readline already installed, see config.log for details on the
7905 failure. It is possible the compiler isn't looking in the proper directory.
7906 Use --without-readline to disable readline support." >&5
7907 echo "$as_me: error: readline library not found
7908 If you have readline already installed, see config.log for details on the
7909 failure. It is possible the compiler isn't looking in the proper directory.
7910 Use --without-readline to disable readline support." >&2;}
7911 { (exit 1); exit 1; }; }
7915 if test "$with_zlib" = yes; then
7917 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7918 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7919 if test "${ac_cv_lib_z_inflate+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 ac_check_lib_save_LIBS
=$LIBS
7924 cat >conftest.
$ac_ext <<_ACEOF
7927 cat confdefs.h
>>conftest.
$ac_ext
7928 cat >>conftest.
$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7931 /* Override any GCC internal prototype to avoid an error.
7932 Use char because int might match the return type of a GCC
7933 builtin and then its argument prototype would still apply. */
7946 rm -f conftest.
$ac_objext conftest
$ac_exeext
7947 if { (ac_try
="$ac_link"
7949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest$ac_exeext &&
7963 $as_test_x conftest$ac_exeext; then
7964 ac_cv_lib_z_inflate=yes
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 ac_cv_lib_z_inflate=no
7972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7973 conftest$ac_exeext conftest.$ac_ext
7974 LIBS=$ac_check_lib_save_LIBS
7976 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7977 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7978 if test $ac_cv_lib_z_inflate = yes; then
7979 cat >>confdefs.h <<_ACEOF
7986 { { echo "$as_me:$LINENO: error: zlib library not found
7987 If you have zlib already installed, see config.log for details on the
7988 failure. It is possible the compiler isn't looking in the proper directory.
7989 Use --without-zlib to disable zlib support." >&5
7990 echo "$as_me: error: zlib library not found
7991 If you have zlib already installed, see config.log for details on the
7992 failure. It is possible the compiler isn't looking in the proper directory.
7993 Use --without-zlib to disable zlib support." >&2;}
7994 { (exit 1); exit 1; }; }
7999 if test "$enable_spinlocks" = yes; then
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_SPINLOCKS 1
8006 { echo "$as_me:$LINENO: WARNING:
8007 *** Not using spinlocks will cause poor performance." >&5
8008 echo "$as_me: WARNING:
8009 *** Not using spinlocks will cause poor performance." >&2;}
8012 if test "$with_gssapi" = yes ; then
8013 if test "$PORTNAME" != "win32"; then
8014 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8015 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8016 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 ac_func_search_save_LIBS=$LIBS
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8027 /* Override any GCC internal prototype to avoid an error.
8028 Use char because int might match the return type of a GCC
8029 builtin and then its argument prototype would still apply. */
8033 char gss_init_sec_context ();
8037 return gss_init_sec_context ();
8042 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8043 if test -z "$ac_lib"; then
8044 ac_res="none required"
8047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8049 rm -f conftest.$ac_objext conftest$ac_exeext
8050 if { (ac_try="$ac_link"
8052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8053 *) ac_try_echo
=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_link") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1
>conftest.err
8060 cat conftest.err
>&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest
$ac_exeext &&
8066 $as_test_x conftest
$ac_exeext; then
8067 ac_cv_search_gss_init_sec_context
=$ac_res
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.
$ac_ext >&5
8075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8077 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8081 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8084 ac_cv_search_gss_init_sec_context
=no
8087 LIBS
=$ac_func_search_save_LIBS
8089 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8090 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8091 ac_res
=$ac_cv_search_gss_init_sec_context
8092 if test "$ac_res" != no
; then
8093 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8096 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8097 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8098 { (exit 1); exit 1; }; }
8102 LIBS
="$LIBS -lgssapi32"
8106 if test "$with_krb5" = yes ; then
8107 if test "$PORTNAME" != "win32"; then
8108 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8109 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8110 if test "${ac_cv_search_com_err+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 ac_func_search_save_LIBS
=$LIBS
8114 cat >conftest.
$ac_ext <<_ACEOF
8117 cat confdefs.h
>>conftest.
$ac_ext
8118 cat >>conftest.
$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8121 /* Override any GCC internal prototype to avoid an error.
8122 Use char because int might match the return type of a GCC
8123 builtin and then its argument prototype would still apply. */
8136 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken' com_err
; do
8137 if test -z "$ac_lib"; then
8138 ac_res
="none required"
8141 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8143 rm -f conftest.
$ac_objext conftest
$ac_exeext
8144 if { (ac_try
="$ac_link"
8146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_link") 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest$ac_exeext &&
8160 $as_test_x conftest$ac_exeext; then
8161 ac_cv_search_com_err=$ac_res
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8171 if test "${ac_cv_search_com_err+set}" = set; then
8175 if test "${ac_cv_search_com_err+set}" = set; then
8178 ac_cv_search_com_err=no
8181 LIBS=$ac_func_search_save_LIBS
8183 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8184 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8185 ac_res=$ac_cv_search_com_err
8186 if test "$ac_res" != no; then
8187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8190 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8191 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8192 { (exit 1); exit 1; }; }
8195 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8196 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8197 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8198 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 ac_func_search_save_LIBS=$LIBS
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8208 /* Override any GCC internal prototype to avoid an error.
8209 Use char because int might match the return type of a GCC
8210 builtin and then its argument prototype would still apply. */
8214 char krb5_sendauth ();
8218 return krb5_sendauth ();
8223 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8224 if test -z "$ac_lib"; then
8225 ac_res="none required"
8228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (ac_try="$ac_link"
8233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8234 *) ac_try_echo
=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_link") 2>conftest.er1
8239 grep -v '^ *+' conftest.er1
>conftest.err
8241 cat conftest.err
>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest
$ac_exeext &&
8247 $as_test_x conftest
$ac_exeext; then
8248 ac_cv_search_krb5_sendauth
=$ac_res
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.
$ac_ext >&5
8256 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8258 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8262 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8265 ac_cv_search_krb5_sendauth
=no
8268 LIBS
=$ac_func_search_save_LIBS
8270 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8271 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8272 ac_res
=$ac_cv_search_krb5_sendauth
8273 if test "$ac_res" != no
; then
8274 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8277 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8278 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8279 { (exit 1); exit 1; }; }
8283 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8284 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8285 if test "${ac_cv_search_com_err+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 ac_func_search_save_LIBS
=$LIBS
8289 cat >conftest.
$ac_ext <<_ACEOF
8292 cat confdefs.h
>>conftest.
$ac_ext
8293 cat >>conftest.
$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8296 /* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8311 for ac_lib
in '' 'comerr32 -lkrb5_32'; do
8312 if test -z "$ac_lib"; then
8313 ac_res
="none required"
8316 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8318 rm -f conftest.
$ac_objext conftest
$ac_exeext
8319 if { (ac_try
="$ac_link"
8321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_link") 2>conftest.er1
8327 grep -v '^ *+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && {
8332 test -z "$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8334 } && test -s conftest$ac_exeext &&
8335 $as_test_x conftest$ac_exeext; then
8336 ac_cv_search_com_err=$ac_res
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8346 if test "${ac_cv_search_com_err+set}" = set; then
8350 if test "${ac_cv_search_com_err+set}" = set; then
8353 ac_cv_search_com_err=no
8356 LIBS=$ac_func_search_save_LIBS
8358 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8359 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8360 ac_res=$ac_cv_search_com_err
8361 if test "$ac_res" != no; then
8362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8365 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8366 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8367 { (exit 1); exit 1; }; }
8373 if test "$with_openssl" = yes ; then
8374 if test "$PORTNAME" != "win32"; then
8376 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8377 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8378 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 ac_check_lib_save_LIBS=$LIBS
8382 LIBS="-lcrypto $LIBS"
8383 cat >conftest.$ac_ext <<_ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8390 /* Override any GCC internal prototype to avoid an error.
8391 Use char because int might match the return type of a GCC
8392 builtin and then its argument prototype would still apply. */
8396 char CRYPTO_new_ex_data ();
8400 return CRYPTO_new_ex_data ();
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (ac_try="$ac_link"
8408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8409 *) ac_try_echo
=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_link") 2>conftest.er1
8414 grep -v '^ *+' conftest.er1
>conftest.err
8416 cat conftest.err
>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest
$ac_exeext &&
8422 $as_test_x conftest
$ac_exeext; then
8423 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.
$ac_ext >&5
8428 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
8431 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8432 conftest
$ac_exeext conftest.
$ac_ext
8433 LIBS
=$ac_check_lib_save_LIBS
8435 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8436 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8437 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8438 cat >>confdefs.h
<<_ACEOF
8439 #define HAVE_LIBCRYPTO 1
8442 LIBS
="-lcrypto $LIBS"
8445 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8446 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8447 { (exit 1); exit 1; }; }
8451 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8452 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8453 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 ac_check_lib_save_LIBS
=$LIBS
8458 cat >conftest.
$ac_ext <<_ACEOF
8461 cat confdefs.h
>>conftest.
$ac_ext
8462 cat >>conftest.
$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 /* Override any GCC internal prototype to avoid an error.
8466 Use char because int might match the return type of a GCC
8467 builtin and then its argument prototype would still apply. */
8471 char SSL_library_init ();
8475 return SSL_library_init ();
8480 rm -f conftest.
$ac_objext conftest
$ac_exeext
8481 if { (ac_try
="$ac_link"
8483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_link") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest$ac_exeext &&
8497 $as_test_x conftest$ac_exeext; then
8498 ac_cv_lib_ssl_SSL_library_init=yes
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_cv_lib_ssl_SSL_library_init=no
8506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8507 conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8510 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8511 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8512 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8513 cat >>confdefs.h <<_ACEOF
8514 #define HAVE_LIBSSL 1
8520 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8521 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8522 { (exit 1); exit 1; }; }
8527 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8528 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8529 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 ac_check_lib_save_LIBS=$LIBS
8533 LIBS="-leay32 $LIBS"
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8541 /* Override any GCC internal prototype to avoid an error.
8542 Use char because int might match the return type of a GCC
8543 builtin and then its argument prototype would still apply. */
8547 char CRYPTO_new_ex_data ();
8551 return CRYPTO_new_ex_data ();
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (ac_try="$ac_link"
8559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8560 *) ac_try_echo
=$ac_try;;
8562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563 (eval "$ac_link") 2>conftest.er1
8565 grep -v '^ *+' conftest.er1
>conftest.err
8567 cat conftest.err
>&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } && {
8570 test -z "$ac_c_werror_flag" ||
8571 test ! -s conftest.err
8572 } && test -s conftest
$ac_exeext &&
8573 $as_test_x conftest
$ac_exeext; then
8574 ac_cv_lib_eay32_CRYPTO_new_ex_data
=yes
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.
$ac_ext >&5
8579 ac_cv_lib_eay32_CRYPTO_new_ex_data
=no
8582 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8583 conftest
$ac_exeext conftest.
$ac_ext
8584 LIBS
=$ac_check_lib_save_LIBS
8586 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8587 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8588 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8589 cat >>confdefs.h
<<_ACEOF
8590 #define HAVE_LIBEAY32 1
8593 LIBS
="-leay32 $LIBS"
8596 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8597 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8598 { (exit 1); exit 1; }; }
8602 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8603 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8604 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 ac_check_lib_save_LIBS
=$LIBS
8608 LIBS
="-lssleay32 $LIBS"
8609 cat >conftest.
$ac_ext <<_ACEOF
8612 cat confdefs.h
>>conftest.
$ac_ext
8613 cat >>conftest.
$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8616 /* Override any GCC internal prototype to avoid an error.
8617 Use char because int might match the return type of a GCC
8618 builtin and then its argument prototype would still apply. */
8622 char SSL_library_init ();
8626 return SSL_library_init ();
8631 rm -f conftest.
$ac_objext conftest
$ac_exeext
8632 if { (ac_try
="$ac_link"
8634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_link") 2>conftest.er1
8640 grep -v '^ *+' conftest.er1 >conftest.err
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest$ac_exeext &&
8648 $as_test_x conftest$ac_exeext; then
8649 ac_cv_lib_ssleay32_SSL_library_init=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_cv_lib_ssleay32_SSL_library_init=no
8657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8658 conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_lib_save_LIBS
8661 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8662 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8663 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_LIBSSLEAY32 1
8668 LIBS="-lssleay32 $LIBS"
8671 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8672 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8673 { (exit 1); exit 1; }; }
8679 if test "$with_pam" = yes ; then
8681 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8682 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8683 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 ac_check_lib_save_LIBS=$LIBS
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8695 /* Override any GCC internal prototype to avoid an error.
8696 Use char because int might match the return type of a GCC
8697 builtin and then its argument prototype would still apply. */
8705 return pam_start ();
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (ac_try="$ac_link"
8713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8714 *) ac_try_echo
=$ac_try;;
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_link") 2>conftest.er1
8719 grep -v '^ *+' conftest.er1
>conftest.err
8721 cat conftest.err
>&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest
$ac_exeext &&
8727 $as_test_x conftest
$ac_exeext; then
8728 ac_cv_lib_pam_pam_start
=yes
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.
$ac_ext >&5
8733 ac_cv_lib_pam_pam_start
=no
8736 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8737 conftest
$ac_exeext conftest.
$ac_ext
8738 LIBS
=$ac_check_lib_save_LIBS
8740 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8741 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8742 if test $ac_cv_lib_pam_pam_start = yes; then
8743 cat >>confdefs.h
<<_ACEOF
8744 #define HAVE_LIBPAM 1
8750 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8751 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8752 { (exit 1); exit 1; }; }
8757 if test "$with_libxml" = yes ; then
8759 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8760 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8761 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 ac_check_lib_save_LIBS
=$LIBS
8766 cat >conftest.
$ac_ext <<_ACEOF
8769 cat confdefs.h
>>conftest.
$ac_ext
8770 cat >>conftest.
$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8773 /* Override any GCC internal prototype to avoid an error.
8774 Use char because int might match the return type of a GCC
8775 builtin and then its argument prototype would still apply. */
8779 char xmlSaveToBuffer ();
8783 return xmlSaveToBuffer ();
8788 rm -f conftest.
$ac_objext conftest
$ac_exeext
8789 if { (ac_try
="$ac_link"
8791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_link") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest$ac_exeext &&
8805 $as_test_x conftest$ac_exeext; then
8806 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_cv_lib_xml2_xmlSaveToBuffer=no
8814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8815 conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8818 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8819 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8820 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8821 cat >>confdefs.h <<_ACEOF
8822 #define HAVE_LIBXML2 1
8828 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8829 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8830 { (exit 1); exit 1; }; }
8835 if test "$with_libxslt" = yes ; then
8837 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8838 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8839 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 ac_check_lib_save_LIBS=$LIBS
8844 cat >conftest.$ac_ext <<_ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8851 /* Override any GCC internal prototype to avoid an error.
8852 Use char because int might match the return type of a GCC
8853 builtin and then its argument prototype would still apply. */
8857 char xsltCleanupGlobals ();
8861 return xsltCleanupGlobals ();
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8870 *) ac_try_echo
=$ac_try;;
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873 (eval "$ac_link") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1
>conftest.err
8877 cat conftest.err
>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest
$ac_exeext &&
8883 $as_test_x conftest
$ac_exeext; then
8884 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.
$ac_ext >&5
8889 ac_cv_lib_xslt_xsltCleanupGlobals
=no
8892 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8893 conftest
$ac_exeext conftest.
$ac_ext
8894 LIBS
=$ac_check_lib_save_LIBS
8896 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8897 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8898 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8899 cat >>confdefs.h
<<_ACEOF
8900 #define HAVE_LIBXSLT 1
8906 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8907 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8908 { (exit 1); exit 1; }; }
8913 # for contrib/uuid-ossp
8914 if test "$with_ossp_uuid" = yes ; then
8915 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8916 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8917 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 ac_check_lib_save_LIBS
=$LIBS
8921 LIBS
="-lossp-uuid $LIBS"
8922 cat >conftest.
$ac_ext <<_ACEOF
8925 cat confdefs.h
>>conftest.
$ac_ext
8926 cat >>conftest.
$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8929 /* Override any GCC internal prototype to avoid an error.
8930 Use char because int might match the return type of a GCC
8931 builtin and then its argument prototype would still apply. */
8935 char uuid_export ();
8939 return uuid_export ();
8944 rm -f conftest.
$ac_objext conftest
$ac_exeext
8945 if { (ac_try
="$ac_link"
8947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8951 (eval "$ac_link") 2>conftest.er1
8953 grep -v '^ *+' conftest.er1 >conftest.err
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } && {
8958 test -z "$ac_c_werror_flag" ||
8959 test ! -s conftest.err
8960 } && test -s conftest$ac_exeext &&
8961 $as_test_x conftest$ac_exeext; then
8962 ac_cv_lib_ossp_uuid_uuid_export=yes
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_cv_lib_ossp_uuid_uuid_export=no
8970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8971 conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_lib_save_LIBS
8974 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8975 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8976 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8977 OSSP_UUID_LIBS="-lossp-uuid"
8979 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8980 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8981 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 ac_check_lib_save_LIBS=$LIBS
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8993 /* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
8999 char uuid_export ();
9003 return uuid_export ();
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (ac_try="$ac_link"
9011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9012 *) ac_try_echo
=$ac_try;;
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_link") 2>conftest.er1
9017 grep -v '^ *+' conftest.er1
>conftest.err
9019 cat conftest.err
>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest
$ac_exeext &&
9025 $as_test_x conftest
$ac_exeext; then
9026 ac_cv_lib_uuid_uuid_export
=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.
$ac_ext >&5
9031 ac_cv_lib_uuid_uuid_export
=no
9034 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9035 conftest
$ac_exeext conftest.
$ac_ext
9036 LIBS
=$ac_check_lib_save_LIBS
9038 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9039 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9040 if test $ac_cv_lib_uuid_uuid_export = yes; then
9041 OSSP_UUID_LIBS
="-luuid"
9043 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9044 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9045 { (exit 1); exit 1; }; }
9058 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9059 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9060 if test "${ac_cv_header_stdc+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 cat >conftest.
$ac_ext <<_ACEOF
9066 cat confdefs.h
>>conftest.
$ac_ext
9067 cat >>conftest.
$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9082 rm -f conftest.
$ac_objext
9083 if { (ac_try
="$ac_compile"
9085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_compile") 2>conftest.er1
9091 grep -v '^ *+' conftest.er1 >conftest.err
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } && {
9096 test -z "$ac_c_werror_flag" ||
9097 test ! -s conftest.err
9098 } && test -s conftest.$ac_objext; then
9099 ac_cv_header_stdc=yes
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9104 ac_cv_header_stdc=no
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 if test $ac_cv_header_stdc = yes; then
9110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9121 $EGREP "memchr" >/dev/null 2>&1; then
9124 ac_cv_header_stdc=no
9130 if test $ac_cv_header_stdc = yes; then
9131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9132 cat >conftest.$ac_ext <<_ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9142 $EGREP "free" >/dev/null 2>&1; then
9145 ac_cv_header_stdc=no
9151 if test $ac_cv_header_stdc = yes; then
9152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9153 if test "$cross_compiling" = yes; then
9156 cat >conftest.$ac_ext <<_ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9164 #if ((' ' & 0x0FF) == 0x020)
9165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9168 # define ISLOWER(c) \
9169 (('a' <= (c) && (c) <= 'i') \
9170 || ('j' <= (c) && (c) <= 'r') \
9171 || ('s' <= (c) && (c) <= 'z'))
9172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9180 for (i = 0; i < 256; i++)
9181 if (XOR (islower (i), ISLOWER (i))
9182 || toupper (i) != TOUPPER (i))
9187 rm -f conftest$ac_exeext
9188 if { (ac_try="$ac_link"
9190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9191 *) ac_try_echo
=$ac_try;;
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_link") 2>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9198 { (case "(($ac_try" in
9199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9200 *) ac_try_echo=$ac_try;;
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203 (eval "$ac_try") 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9209 echo "$as_me: program exited with status $ac_status" >&5
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9214 ac_cv_header_stdc=no
9216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9224 if test $ac_cv_header_stdc = yes; then
9226 cat >>confdefs.h <<\_ACEOF
9227 #define STDC_HEADERS 1
9232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9243 inttypes.h stdint.h unistd.h
9245 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9259 #include <$ac_header>
9261 rm -f conftest.$ac_objext
9262 if { (ac_try="$ac_compile"
9264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9265 *) ac_try_echo
=$ac_try;;
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_compile") 2>conftest.er1
9270 grep -v '^ *+' conftest.er1
>conftest.err
9272 cat conftest.err
>&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && {
9275 test -z "$ac_c_werror_flag" ||
9276 test ! -s conftest.err
9277 } && test -s conftest.
$ac_objext; then
9278 eval "$as_ac_Header=yes"
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.
$ac_ext >&5
9283 eval "$as_ac_Header=no"
9286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9288 ac_res
=`eval echo '${'$as_ac_Header'}'`
9289 { echo "$as_me:$LINENO: result: $ac_res" >&5
9290 echo "${ECHO_T}$ac_res" >&6; }
9291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9292 cat >>confdefs.h
<<_ACEOF
9293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9328 for ac_header
in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h
pwd.h sys
/ipc.h sys
/poll.h sys
/pstat.h sys
/resource.h sys
/select.h sys
/sem.h sys
/socket.h sys
/shm.h sys
/tas.h sys
/time.h sys
/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel
/OS.h kernel
/image.h SupportDefs.h
9330 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9331 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9334 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 ac_res
=`eval echo '${'$as_ac_Header'}'`
9338 { echo "$as_me:$LINENO: result: $ac_res" >&5
9339 echo "${ECHO_T}$ac_res" >&6; }
9341 # Is the header compilable?
9342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9344 cat >conftest.
$ac_ext <<_ACEOF
9347 cat confdefs.h
>>conftest.
$ac_ext
9348 cat >>conftest.
$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 #include <$ac_header>
9353 rm -f conftest.
$ac_objext
9354 if { (ac_try
="$ac_compile"
9356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1 >conftest.err
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.$ac_objext; then
9370 ac_header_compiler=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 ac_header_compiler=no
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9380 echo "${ECHO_T}$ac_header_compiler" >&6; }
9382 # Is the header present?
9383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9385 cat >conftest.$ac_ext <<_ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 #include <$ac_header>
9393 if { (ac_try="$ac_cpp conftest.$ac_ext"
9395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9396 *) ac_try_echo
=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1
>conftest.err
9403 cat conftest.err
>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } >/dev
/null
&& {
9406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9409 ac_header_preproc
=yes
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.
$ac_ext >&5
9414 ac_header_preproc
=no
9417 rm -f conftest.err conftest.
$ac_ext
9418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9419 echo "${ECHO_T}$ac_header_preproc" >&6; }
9421 # So? What about this header?
9422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9428 ac_header_preproc
=yes
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9444 ## ---------------------------------------- ##
9445 ## Report this to pgsql-bugs@postgresql.org ##
9446 ## ---------------------------------------- ##
9448 ) |
sed "s/^/$as_me: WARNING: /" >&2
9451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9453 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 eval "$as_ac_Header=\$ac_header_preproc"
9458 ac_res
=`eval echo '${'$as_ac_Header'}'`
9459 { echo "$as_me:$LINENO: result: $ac_res" >&5
9460 echo "${ECHO_T}$ac_res" >&6; }
9463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9464 cat >>confdefs.h
<<_ACEOF
9465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9473 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9474 # netinet/in.h is included first.
9476 for ac_header
in netinet
/in.h
9478 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9479 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9482 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 ac_res
=`eval echo '${'$as_ac_Header'}'`
9486 { echo "$as_me:$LINENO: result: $ac_res" >&5
9487 echo "${ECHO_T}$ac_res" >&6; }
9489 # Is the header compilable?
9490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9492 cat >conftest.
$ac_ext <<_ACEOF
9495 cat confdefs.h
>>conftest.
$ac_ext
9496 cat >>conftest.
$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 $ac_includes_default
9499 #include <$ac_header>
9501 rm -f conftest.
$ac_objext
9502 if { (ac_try
="$ac_compile"
9504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_compile") 2>conftest.er1
9510 grep -v '^ *+' conftest.er1 >conftest.err
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest.$ac_objext; then
9518 ac_header_compiler=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_header_compiler=no
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9528 echo "${ECHO_T}$ac_header_compiler" >&6; }
9530 # Is the header present?
9531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 #include <$ac_header>
9541 if { (ac_try="$ac_cpp conftest.$ac_ext"
9543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9544 *) ac_try_echo
=$ac_try;;
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9549 grep -v '^ *+' conftest.er1
>conftest.err
9551 cat conftest.err
>&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } >/dev
/null
&& {
9554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9557 ac_header_preproc
=yes
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.
$ac_ext >&5
9562 ac_header_preproc
=no
9565 rm -f conftest.err conftest.
$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9567 echo "${ECHO_T}$ac_header_preproc" >&6; }
9569 # So? What about this header?
9570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9576 ac_header_preproc
=yes
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9592 ## ---------------------------------------- ##
9593 ## Report this to pgsql-bugs@postgresql.org ##
9594 ## ---------------------------------------- ##
9596 ) |
sed "s/^/$as_me: WARNING: /" >&2
9599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9601 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 eval "$as_ac_Header=\$ac_header_preproc"
9606 ac_res
=`eval echo '${'$as_ac_Header'}'`
9607 { echo "$as_me:$LINENO: result: $ac_res" >&5
9608 echo "${ECHO_T}$ac_res" >&6; }
9611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9612 cat >>confdefs.h
<<_ACEOF
9613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9621 for ac_header
in netinet
/tcp.h
9623 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9626 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 cat >conftest.
$ac_ext <<_ACEOF
9632 cat confdefs.h
>>conftest.
$ac_ext
9633 cat >>conftest.
$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 $ac_includes_default
9636 #ifdef HAVE_NETINET_IN_H
9637 #include <netinet/in.h>
9641 #include <$ac_header>
9643 rm -f conftest.
$ac_objext
9644 if { (ac_try
="$ac_compile"
9646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_compile") 2>conftest.er1
9652 grep -v '^ *+' conftest.er1 >conftest.err
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && {
9657 test -z "$ac_c_werror_flag" ||
9658 test ! -s conftest.err
9659 } && test -s conftest.$ac_objext; then
9660 eval "$as_ac_Header=yes"
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 eval "$as_ac_Header=no"
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 ac_res=`eval echo '${'$as_ac_Header'}'`
9671 { echo "$as_me:$LINENO: result: $ac_res" >&5
9672 echo "${ECHO_T}$ac_res" >&6; }
9673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9674 cat >>confdefs.h <<_ACEOF
9675 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9683 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9685 for ac_header in readline/readline.h
9687 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 ac_res=`eval echo '${'$as_ac_Header'}'`
9695 { echo "$as_me:$LINENO: result: $ac_res" >&5
9696 echo "${ECHO_T}$ac_res" >&6; }
9698 # Is the header compilable?
9699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <$ac_header>
9710 rm -f conftest.$ac_objext
9711 if { (ac_try="$ac_compile"
9713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9714 *) ac_try_echo
=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_compile") 2>conftest.er1
9719 grep -v '^ *+' conftest.er1
>conftest.err
9721 cat conftest.err
>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest.
$ac_objext; then
9727 ac_header_compiler
=yes
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.
$ac_ext >&5
9732 ac_header_compiler
=no
9735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9737 echo "${ECHO_T}$ac_header_compiler" >&6; }
9739 # Is the header present?
9740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9742 cat >conftest.
$ac_ext <<_ACEOF
9745 cat confdefs.h
>>conftest.
$ac_ext
9746 cat >>conftest.
$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <$ac_header>
9750 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null && {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9766 ac_header_preproc=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_preproc=no
9774 rm -f conftest.err conftest.$ac_ext
9775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 echo "${ECHO_T}$ac_header_preproc" >&6; }
9778 # So? What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785 ac_header_preproc=yes
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9801 ## ---------------------------------------- ##
9802 ## Report this to pgsql-bugs@postgresql.org ##
9803 ## ---------------------------------------- ##
9805 ) | sed "s/^/$as_me: WARNING: /" >&2
9808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 eval "$as_ac_Header=\$ac_header_preproc"
9815 ac_res=`eval echo '${'$as_ac_Header'}'`
9816 { echo "$as_me:$LINENO: result: $ac_res" >&5
9817 echo "${ECHO_T}$ac_res" >&6; }
9820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9821 cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9827 for ac_header in readline.h
9829 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 ac_res=`eval echo '${'$as_ac_Header'}'`
9837 { echo "$as_me:$LINENO: result: $ac_res" >&5
9838 echo "${ECHO_T}$ac_res" >&6; }
9840 # Is the header compilable?
9841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9843 cat >conftest.$ac_ext <<_ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 $ac_includes_default
9850 #include <$ac_header>
9852 rm -f conftest.$ac_objext
9853 if { (ac_try="$ac_compile"
9855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9856 *) ac_try_echo
=$ac_try;;
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_compile") 2>conftest.er1
9861 grep -v '^ *+' conftest.er1
>conftest.err
9863 cat conftest.err
>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest.
$ac_objext; then
9869 ac_header_compiler
=yes
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.
$ac_ext >&5
9874 ac_header_compiler
=no
9877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9879 echo "${ECHO_T}$ac_header_compiler" >&6; }
9881 # Is the header present?
9882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9884 cat >conftest.
$ac_ext <<_ACEOF
9887 cat confdefs.h
>>conftest.
$ac_ext
9888 cat >>conftest.
$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 #include <$ac_header>
9892 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9900 grep -v '^ *+' conftest.er1 >conftest.err
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } >/dev/null && {
9905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9908 ac_header_preproc=yes
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_header_preproc=no
9916 rm -f conftest.err conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6; }
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9943 ## ---------------------------------------- ##
9944 ## Report this to pgsql-bugs@postgresql.org ##
9945 ## ---------------------------------------- ##
9947 ) | sed "s/^/$as_me: WARNING: /" >&2
9950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 eval "$as_ac_Header=\$ac_header_preproc"
9957 ac_res=`eval echo '${'$as_ac_Header'}'`
9958 { echo "$as_me:$LINENO: result: $ac_res" >&5
9959 echo "${ECHO_T}$ac_res" >&6; }
9962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9963 cat >>confdefs.h <<_ACEOF
9964 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9968 { { echo "$as_me:$LINENO: error: readline header not found
9969 If you have readline already installed, see config.log for details on the
9970 failure. It is possible the compiler isn't looking in the proper directory.
9971 Use --without-readline to disable readline support." >&5
9972 echo "$as_me: error: readline header not found
9973 If you have readline already installed, see config.log for details on the
9974 failure. It is possible the compiler isn't looking in the proper directory.
9975 Use --without-readline to disable readline support." >&2;}
9976 { (exit 1); exit 1; }; }
9986 for ac_header in readline/history.h
9988 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 ac_res=`eval echo '${'$as_ac_Header'}'`
9996 { echo "$as_me:$LINENO: result: $ac_res" >&5
9997 echo "${ECHO_T}$ac_res" >&6; }
9999 # Is the header compilable?
10000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 $ac_includes_default
10009 #include <$ac_header>
10011 rm -f conftest.$ac_objext
10012 if { (ac_try="$ac_compile"
10013 case "(($ac_try" in
10014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10015 *) ac_try_echo
=$ac_try;;
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_compile") 2>conftest.er1
10020 grep -v '^ *+' conftest.er1
>conftest.err
10022 cat conftest.err
>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && {
10025 test -z "$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10027 } && test -s conftest.
$ac_objext; then
10028 ac_header_compiler
=yes
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.
$ac_ext >&5
10033 ac_header_compiler
=no
10036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10038 echo "${ECHO_T}$ac_header_compiler" >&6; }
10040 # Is the header present?
10041 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10043 cat >conftest.
$ac_ext <<_ACEOF
10046 cat confdefs.h
>>conftest.
$ac_ext
10047 cat >>conftest.
$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 #include <$ac_header>
10051 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10052 case "(($ac_try" in
10053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } >/dev/null && {
10064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10067 ac_header_preproc=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_header_preproc=no
10075 rm -f conftest.err conftest.$ac_ext
10076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10077 echo "${ECHO_T}$ac_header_preproc" >&6; }
10079 # So? What about this header?
10080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10086 ac_header_preproc=yes
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10102 ## ---------------------------------------- ##
10103 ## Report this to pgsql-bugs@postgresql.org ##
10104 ## ---------------------------------------- ##
10106 ) | sed "s/^/$as_me: WARNING: /" >&2
10109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 eval "$as_ac_Header=\$ac_header_preproc"
10116 ac_res=`eval echo '${'$as_ac_Header'}'`
10117 { echo "$as_me:$LINENO: result: $ac_res" >&5
10118 echo "${ECHO_T}$ac_res" >&6; }
10121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10122 cat >>confdefs.h <<_ACEOF
10123 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10128 for ac_header in history.h
10130 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 ac_res=`eval echo '${'$as_ac_Header'}'`
10138 { echo "$as_me:$LINENO: result: $ac_res" >&5
10139 echo "${ECHO_T}$ac_res" >&6; }
10141 # Is the header compilable?
10142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10144 cat >conftest.$ac_ext <<_ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 $ac_includes_default
10151 #include <$ac_header>
10153 rm -f conftest.$ac_objext
10154 if { (ac_try="$ac_compile"
10155 case "(($ac_try" in
10156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10157 *) ac_try_echo
=$ac_try;;
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160 (eval "$ac_compile") 2>conftest.er1
10162 grep -v '^ *+' conftest.er1
>conftest.err
10164 cat conftest.err
>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && {
10167 test -z "$ac_c_werror_flag" ||
10168 test ! -s conftest.err
10169 } && test -s conftest.
$ac_objext; then
10170 ac_header_compiler
=yes
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.
$ac_ext >&5
10175 ac_header_compiler
=no
10178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10180 echo "${ECHO_T}$ac_header_compiler" >&6; }
10182 # Is the header present?
10183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10185 cat >conftest.
$ac_ext <<_ACEOF
10188 cat confdefs.h
>>conftest.
$ac_ext
10189 cat >>conftest.
$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 #include <$ac_header>
10193 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10194 case "(($ac_try" in
10195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10201 grep -v '^ *+' conftest.er1 >conftest.err
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } >/dev/null && {
10206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10207 test ! -s conftest.err
10209 ac_header_preproc=yes
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10214 ac_header_preproc=no
10217 rm -f conftest.err conftest.$ac_ext
10218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10219 echo "${ECHO_T}$ac_header_preproc" >&6; }
10221 # So? What about this header?
10222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10228 ac_header_preproc=yes
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10244 ## ---------------------------------------- ##
10245 ## Report this to pgsql-bugs@postgresql.org ##
10246 ## ---------------------------------------- ##
10248 ) | sed "s/^/$as_me: WARNING: /" >&2
10251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 eval "$as_ac_Header=\$ac_header_preproc"
10258 ac_res=`eval echo '${'$as_ac_Header'}'`
10259 { echo "$as_me:$LINENO: result: $ac_res" >&5
10260 echo "${ECHO_T}$ac_res" >&6; }
10263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10264 cat >>confdefs.h <<_ACEOF
10265 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10269 { { echo "$as_me:$LINENO: error: history header not found
10270 If you have readline already installed, see config.log for details on the
10271 failure. It is possible the compiler isn't looking in the proper directory.
10272 Use --without-readline to disable readline support." >&5
10273 echo "$as_me: error: history header not found
10274 If you have readline already installed, see config.log for details on the
10275 failure. It is possible the compiler isn't looking in the proper directory.
10276 Use --without-readline to disable readline support." >&2;}
10277 { (exit 1); exit 1; }; }
10288 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10289 # Some installations of libedit usurp /usr/include/readline/, which seems
10290 # bad practice, since in combined installations readline will have its headers
10291 # there. We might have to resort to AC_EGREP checks to make sure we found
10292 # the proper header...
10294 for ac_header in editline/readline.h
10296 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 ac_res=`eval echo '${'$as_ac_Header'}'`
10304 { echo "$as_me:$LINENO: result: $ac_res" >&5
10305 echo "${ECHO_T}$ac_res" >&6; }
10307 # Is the header compilable?
10308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10310 cat >conftest.$ac_ext <<_ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 $ac_includes_default
10317 #include <$ac_header>
10319 rm -f conftest.$ac_objext
10320 if { (ac_try="$ac_compile"
10321 case "(($ac_try" in
10322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10323 *) ac_try_echo
=$ac_try;;
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_compile") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1
>conftest.err
10330 cat conftest.err
>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest.
$ac_objext; then
10336 ac_header_compiler
=yes
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.
$ac_ext >&5
10341 ac_header_compiler
=no
10344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10346 echo "${ECHO_T}$ac_header_compiler" >&6; }
10348 # Is the header present?
10349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10351 cat >conftest.
$ac_ext <<_ACEOF
10354 cat confdefs.h
>>conftest.
$ac_ext
10355 cat >>conftest.
$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 #include <$ac_header>
10359 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10360 case "(($ac_try" in
10361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10367 grep -v '^ *+' conftest.er1 >conftest.err
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } >/dev/null && {
10372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10375 ac_header_preproc=yes
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_header_preproc=no
10383 rm -f conftest.err conftest.$ac_ext
10384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10385 echo "${ECHO_T}$ac_header_preproc" >&6; }
10387 # So? What about this header?
10388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10394 ac_header_preproc=yes
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10410 ## ---------------------------------------- ##
10411 ## Report this to pgsql-bugs@postgresql.org ##
10412 ## ---------------------------------------- ##
10414 ) | sed "s/^/$as_me: WARNING: /" >&2
10417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 eval "$as_ac_Header=\$ac_header_preproc"
10424 ac_res=`eval echo '${'$as_ac_Header'}'`
10425 { echo "$as_me:$LINENO: result: $ac_res" >&5
10426 echo "${ECHO_T}$ac_res" >&6; }
10429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10430 cat >>confdefs.h <<_ACEOF
10431 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10436 for ac_header in readline.h
10438 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 ac_res=`eval echo '${'$as_ac_Header'}'`
10446 { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10449 # Is the header compilable?
10450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10452 cat >conftest.$ac_ext <<_ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h. */
10458 $ac_includes_default
10459 #include <$ac_header>
10461 rm -f conftest.$ac_objext
10462 if { (ac_try="$ac_compile"
10463 case "(($ac_try" in
10464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10465 *) ac_try_echo
=$ac_try;;
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_compile") 2>conftest.er1
10470 grep -v '^ *+' conftest.er1
>conftest.err
10472 cat conftest.err
>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } && {
10475 test -z "$ac_c_werror_flag" ||
10476 test ! -s conftest.err
10477 } && test -s conftest.
$ac_objext; then
10478 ac_header_compiler
=yes
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.
$ac_ext >&5
10483 ac_header_compiler
=no
10486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10488 echo "${ECHO_T}$ac_header_compiler" >&6; }
10490 # Is the header present?
10491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10493 cat >conftest.
$ac_ext <<_ACEOF
10496 cat confdefs.h
>>conftest.
$ac_ext
10497 cat >>conftest.
$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 #include <$ac_header>
10501 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10502 case "(($ac_try" in
10503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } >/dev/null && {
10514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10517 ac_header_preproc=yes
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_header_preproc=no
10525 rm -f conftest.err conftest.$ac_ext
10526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10527 echo "${ECHO_T}$ac_header_preproc" >&6; }
10529 # So? What about this header?
10530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10536 ac_header_preproc=yes
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10552 ## ---------------------------------------- ##
10553 ## Report this to pgsql-bugs@postgresql.org ##
10554 ## ---------------------------------------- ##
10556 ) | sed "s/^/$as_me: WARNING: /" >&2
10559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10564 eval "$as_ac_Header=\$ac_header_preproc"
10566 ac_res=`eval echo '${'$as_ac_Header'}'`
10567 { echo "$as_me:$LINENO: result: $ac_res" >&5
10568 echo "${ECHO_T}$ac_res" >&6; }
10571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10572 cat >>confdefs.h <<_ACEOF
10573 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10578 for ac_header in readline/readline.h
10580 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 ac_res=`eval echo '${'$as_ac_Header'}'`
10588 { echo "$as_me:$LINENO: result: $ac_res" >&5
10589 echo "${ECHO_T}$ac_res" >&6; }
10591 # Is the header compilable?
10592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10600 $ac_includes_default
10601 #include <$ac_header>
10603 rm -f conftest.$ac_objext
10604 if { (ac_try="$ac_compile"
10605 case "(($ac_try" in
10606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10607 *) ac_try_echo
=$ac_try;;
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_compile") 2>conftest.er1
10612 grep -v '^ *+' conftest.er1
>conftest.err
10614 cat conftest.err
>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && {
10617 test -z "$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 } && test -s conftest.
$ac_objext; then
10620 ac_header_compiler
=yes
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.
$ac_ext >&5
10625 ac_header_compiler
=no
10628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10630 echo "${ECHO_T}$ac_header_compiler" >&6; }
10632 # Is the header present?
10633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10635 cat >conftest.
$ac_ext <<_ACEOF
10638 cat confdefs.h
>>conftest.
$ac_ext
10639 cat >>conftest.
$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <$ac_header>
10643 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10644 case "(($ac_try" in
10645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } >/dev/null && {
10656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10657 test ! -s conftest.err
10659 ac_header_preproc=yes
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_header_preproc=no
10667 rm -f conftest.err conftest.$ac_ext
10668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10669 echo "${ECHO_T}$ac_header_preproc" >&6; }
10671 # So? What about this header?
10672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10678 ac_header_preproc=yes
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10694 ## ---------------------------------------- ##
10695 ## Report this to pgsql-bugs@postgresql.org ##
10696 ## ---------------------------------------- ##
10698 ) | sed "s/^/$as_me: WARNING: /" >&2
10701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 eval "$as_ac_Header=\$ac_header_preproc"
10708 ac_res=`eval echo '${'$as_ac_Header'}'`
10709 { echo "$as_me:$LINENO: result: $ac_res" >&5
10710 echo "${ECHO_T}$ac_res" >&6; }
10713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10714 cat >>confdefs.h <<_ACEOF
10715 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10719 { { echo "$as_me:$LINENO: error: readline header not found
10720 If you have libedit already installed, see config.log for details on the
10721 failure. It is possible the compiler isn't looking in the proper directory.
10722 Use --without-readline to disable libedit support." >&5
10723 echo "$as_me: error: readline header not found
10724 If you have libedit already installed, see config.log for details on the
10725 failure. It is possible the compiler isn't looking in the proper directory.
10726 Use --without-readline to disable libedit support." >&2;}
10727 { (exit 1); exit 1; }; }
10740 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10741 # not be there at all. Hence, don't complain if not found. We must check
10742 # though, since in yet other versions it is an independent header.
10744 for ac_header in editline/history.h
10746 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 ac_res=`eval echo '${'$as_ac_Header'}'`
10754 { echo "$as_me:$LINENO: result: $ac_res" >&5
10755 echo "${ECHO_T}$ac_res" >&6; }
10757 # Is the header compilable?
10758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 #include <$ac_header>
10769 rm -f conftest.$ac_objext
10770 if { (ac_try="$ac_compile"
10771 case "(($ac_try" in
10772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10773 *) ac_try_echo
=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_compile") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1
>conftest.err
10780 cat conftest.err
>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest.
$ac_objext; then
10786 ac_header_compiler
=yes
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.
$ac_ext >&5
10791 ac_header_compiler
=no
10794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10796 echo "${ECHO_T}$ac_header_compiler" >&6; }
10798 # Is the header present?
10799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10801 cat >conftest.
$ac_ext <<_ACEOF
10804 cat confdefs.h
>>conftest.
$ac_ext
10805 cat >>conftest.
$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 #include <$ac_header>
10809 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10810 case "(($ac_try" in
10811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10817 grep -v '^ *+' conftest.er1 >conftest.err
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } >/dev/null && {
10822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10825 ac_header_preproc=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_header_preproc=no
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10837 # So? What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10860 ## ---------------------------------------- ##
10861 ## Report this to pgsql-bugs@postgresql.org ##
10862 ## ---------------------------------------- ##
10864 ) | sed "s/^/$as_me: WARNING: /" >&2
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 eval "$as_ac_Header=\$ac_header_preproc"
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10886 for ac_header in history.h
10888 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 ac_res=`eval echo '${'$as_ac_Header'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897 echo "${ECHO_T}$ac_res" >&6; }
10899 # Is the header compilable?
10900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10902 cat >conftest.$ac_ext <<_ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 $ac_includes_default
10909 #include <$ac_header>
10911 rm -f conftest.$ac_objext
10912 if { (ac_try="$ac_compile"
10913 case "(($ac_try" in
10914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10915 *) ac_try_echo
=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1
>conftest.err
10922 cat conftest.err
>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest.
$ac_objext; then
10928 ac_header_compiler
=yes
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.
$ac_ext >&5
10933 ac_header_compiler
=no
10936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10938 echo "${ECHO_T}$ac_header_compiler" >&6; }
10940 # Is the header present?
10941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10943 cat >conftest.
$ac_ext <<_ACEOF
10946 cat confdefs.h
>>conftest.
$ac_ext
10947 cat >>conftest.
$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 #include <$ac_header>
10951 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10952 case "(($ac_try" in
10953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10959 grep -v '^ *+' conftest.er1 >conftest.err
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } >/dev/null && {
10964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10967 ac_header_preproc=yes
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ac_header_preproc=no
10975 rm -f conftest.err conftest.$ac_ext
10976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10977 echo "${ECHO_T}$ac_header_preproc" >&6; }
10979 # So? What about this header?
10980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10986 ac_header_preproc=yes
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11002 ## ---------------------------------------- ##
11003 ## Report this to pgsql-bugs@postgresql.org ##
11004 ## ---------------------------------------- ##
11006 ) | sed "s/^/$as_me: WARNING: /" >&2
11009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 eval "$as_ac_Header=\$ac_header_preproc"
11016 ac_res=`eval echo '${'$as_ac_Header'}'`
11017 { echo "$as_me:$LINENO: result: $ac_res" >&5
11018 echo "${ECHO_T}$ac_res" >&6; }
11021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11028 for ac_header in readline/history.h
11030 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_res=`eval echo '${'$as_ac_Header'}'`
11038 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039 echo "${ECHO_T}$ac_res" >&6; }
11041 # Is the header compilable?
11042 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11044 cat >conftest.$ac_ext <<_ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 $ac_includes_default
11051 #include <$ac_header>
11053 rm -f conftest.$ac_objext
11054 if { (ac_try="$ac_compile"
11055 case "(($ac_try" in
11056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11057 *) ac_try_echo
=$ac_try;;
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_compile") 2>conftest.er1
11062 grep -v '^ *+' conftest.er1
>conftest.err
11064 cat conftest.err
>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_c_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest.
$ac_objext; then
11070 ac_header_compiler
=yes
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.
$ac_ext >&5
11075 ac_header_compiler
=no
11078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11080 echo "${ECHO_T}$ac_header_compiler" >&6; }
11082 # Is the header present?
11083 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11085 cat >conftest.
$ac_ext <<_ACEOF
11088 cat confdefs.h
>>conftest.
$ac_ext
11089 cat >>conftest.
$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 #include <$ac_header>
11093 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11094 case "(($ac_try" in
11095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11101 grep -v '^ *+' conftest.er1 >conftest.err
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } >/dev/null && {
11106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11109 ac_header_preproc=yes
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 ac_header_preproc=no
11117 rm -f conftest.err conftest.$ac_ext
11118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11119 echo "${ECHO_T}$ac_header_preproc" >&6; }
11121 # So? What about this header?
11122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11128 ac_header_preproc=yes
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11144 ## ---------------------------------------- ##
11145 ## Report this to pgsql-bugs@postgresql.org ##
11146 ## ---------------------------------------- ##
11148 ) | sed "s/^/$as_me: WARNING: /" >&2
11151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 eval "$as_ac_Header=\$ac_header_preproc"
11158 ac_res=`eval echo '${'$as_ac_Header'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11182 if test "$with_zlib" = yes; then
11183 if test "${ac_cv_header_zlib_h+set}" = set; then
11184 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11185 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11186 if test "${ac_cv_header_zlib_h+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11190 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11192 # Is the header compilable?
11193 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11194 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 $ac_includes_default
11204 rm -f conftest.$ac_objext
11205 if { (ac_try="$ac_compile"
11206 case "(($ac_try" in
11207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11208 *) ac_try_echo
=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_compile") 2>conftest.er1
11213 grep -v '^ *+' conftest.er1
>conftest.err
11215 cat conftest.err
>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_c_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest.
$ac_objext; then
11221 ac_header_compiler
=yes
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.
$ac_ext >&5
11226 ac_header_compiler
=no
11229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11231 echo "${ECHO_T}$ac_header_compiler" >&6; }
11233 # Is the header present?
11234 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11235 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11236 cat >conftest.
$ac_ext <<_ACEOF
11239 cat confdefs.h
>>conftest.
$ac_ext
11240 cat >>conftest.
$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11244 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11245 case "(($ac_try" in
11246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11252 grep -v '^ *+' conftest.er1 >conftest.err
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } >/dev/null && {
11257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11258 test ! -s conftest.err
11260 ac_header_preproc=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_header_preproc=no
11268 rm -f conftest.err conftest.$ac_ext
11269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 echo "${ECHO_T}$ac_header_preproc" >&6; }
11272 # So? What about this header?
11273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11275 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11276 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11278 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11279 ac_header_preproc=yes
11282 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11283 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11285 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11287 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11289 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11291 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11293 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11295 ## ---------------------------------------- ##
11296 ## Report this to pgsql-bugs@postgresql.org ##
11297 ## ---------------------------------------- ##
11299 ) | sed "s/^/$as_me: WARNING: /" >&2
11302 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11303 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11304 if test "${ac_cv_header_zlib_h+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 ac_cv_header_zlib_h=$ac_header_preproc
11309 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11310 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11313 if test $ac_cv_header_zlib_h = yes; then
11316 { { echo "$as_me:$LINENO: error: zlib header not found
11317 If you have zlib already installed, see config.log for details on the
11318 failure. It is possible the compiler isn't looking in the proper directory.
11319 Use --without-zlib to disable zlib support." >&5
11320 echo "$as_me: error: zlib header not found
11321 If you have zlib already installed, see config.log for details on the
11322 failure. It is possible the compiler isn't looking in the proper directory.
11323 Use --without-zlib to disable zlib support." >&2;}
11324 { (exit 1); exit 1; }; }
11330 if test "$with_gssapi" = yes ; then
11332 for ac_header in gssapi/gssapi.h
11334 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 ac_res=`eval echo '${'$as_ac_Header'}'`
11342 { echo "$as_me:$LINENO: result: $ac_res" >&5
11343 echo "${ECHO_T}$ac_res" >&6; }
11345 # Is the header compilable?
11346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11348 cat >conftest.$ac_ext <<_ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 $ac_includes_default
11355 #include <$ac_header>
11357 rm -f conftest.$ac_objext
11358 if { (ac_try="$ac_compile"
11359 case "(($ac_try" in
11360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11361 *) ac_try_echo
=$ac_try;;
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_compile") 2>conftest.er1
11366 grep -v '^ *+' conftest.er1
>conftest.err
11368 cat conftest.err
>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } && {
11371 test -z "$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11373 } && test -s conftest.
$ac_objext; then
11374 ac_header_compiler
=yes
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.
$ac_ext >&5
11379 ac_header_compiler
=no
11382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 echo "${ECHO_T}$ac_header_compiler" >&6; }
11386 # Is the header present?
11387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11389 cat >conftest.
$ac_ext <<_ACEOF
11392 cat confdefs.h
>>conftest.
$ac_ext
11393 cat >>conftest.
$ac_ext <<_ACEOF
11394 /* end confdefs.h. */
11395 #include <$ac_header>
11397 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11398 case "(($ac_try" in
11399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } >/dev/null && {
11410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11413 ac_header_preproc=yes
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_header_preproc=no
11421 rm -f conftest.err conftest.$ac_ext
11422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11423 echo "${ECHO_T}$ac_header_preproc" >&6; }
11425 # So? What about this header?
11426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11432 ac_header_preproc=yes
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11448 ## ---------------------------------------- ##
11449 ## Report this to pgsql-bugs@postgresql.org ##
11450 ## ---------------------------------------- ##
11452 ) | sed "s/^/$as_me: WARNING: /" >&2
11455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 eval "$as_ac_Header=\$ac_header_preproc"
11462 ac_res=`eval echo '${'$as_ac_Header'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11474 for ac_header in gssapi.h
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11503 *) ac_try_echo
=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1
>conftest.err
11510 cat conftest.err
>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.
$ac_objext; then
11516 ac_header_compiler
=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.
$ac_ext >&5
11521 ac_header_compiler
=no
11524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6; }
11528 # Is the header present?
11529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11531 cat >conftest.
$ac_ext <<_ACEOF
11534 cat confdefs.h
>>conftest.
$ac_ext
11535 cat >>conftest.
$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <$ac_header>
11539 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11540 case "(($ac_try" in
11541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11547 grep -v '^ *+' conftest.er1 >conftest.err
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null && {
11552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11555 ac_header_preproc=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_preproc=no
11563 rm -f conftest.err conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 echo "${ECHO_T}$ac_header_preproc" >&6; }
11567 # So? What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574 ac_header_preproc=yes
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11590 ## ---------------------------------------- ##
11591 ## Report this to pgsql-bugs@postgresql.org ##
11592 ## ---------------------------------------- ##
11594 ) | sed "s/^/$as_me: WARNING: /" >&2
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 eval "$as_ac_Header=\$ac_header_preproc"
11604 ac_res=`eval echo '${'$as_ac_Header'}'`
11605 { echo "$as_me:$LINENO: result: $ac_res" >&5
11606 echo "${ECHO_T}$ac_res" >&6; }
11609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11615 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11616 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11617 { (exit 1); exit 1; }; }
11628 if test "$with_krb5" = yes ; then
11629 if test "${ac_cv_header_krb5_h+set}" = set; then
11630 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11631 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11632 if test "${ac_cv_header_krb5_h+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11638 # Is the header compilable?
11639 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11640 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 $ac_includes_default
11650 rm -f conftest.$ac_objext
11651 if { (ac_try="$ac_compile"
11652 case "(($ac_try" in
11653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11654 *) ac_try_echo
=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_compile") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1
>conftest.err
11661 cat conftest.err
>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest.
$ac_objext; then
11667 ac_header_compiler
=yes
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.
$ac_ext >&5
11672 ac_header_compiler
=no
11675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11677 echo "${ECHO_T}$ac_header_compiler" >&6; }
11679 # Is the header present?
11680 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11681 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11682 cat >conftest.
$ac_ext <<_ACEOF
11685 cat confdefs.h
>>conftest.
$ac_ext
11686 cat >>conftest.
$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11690 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11691 case "(($ac_try" in
11692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } >/dev/null && {
11703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11706 ac_header_preproc=yes
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_header_preproc=no
11714 rm -f conftest.err conftest.$ac_ext
11715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11716 echo "${ECHO_T}$ac_header_preproc" >&6; }
11718 # So? What about this header?
11719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11721 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11722 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11724 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11725 ac_header_preproc=yes
11728 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11729 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11731 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11733 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11735 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11737 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11739 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11741 ## ---------------------------------------- ##
11742 ## Report this to pgsql-bugs@postgresql.org ##
11743 ## ---------------------------------------- ##
11745 ) | sed "s/^/$as_me: WARNING: /" >&2
11748 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11749 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11750 if test "${ac_cv_header_krb5_h+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 ac_cv_header_krb5_h=$ac_header_preproc
11755 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11756 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11759 if test $ac_cv_header_krb5_h = yes; then
11762 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11763 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11764 { (exit 1); exit 1; }; }
11770 if test "$with_openssl" = yes ; then
11771 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11772 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11773 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11774 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11778 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11780 # Is the header compilable?
11781 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11782 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11783 cat >conftest.$ac_ext <<_ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 $ac_includes_default
11790 #include <openssl/ssl.h>
11792 rm -f conftest.$ac_objext
11793 if { (ac_try="$ac_compile"
11794 case "(($ac_try" in
11795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11796 *) ac_try_echo
=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_compile") 2>conftest.er1
11801 grep -v '^ *+' conftest.er1
>conftest.err
11803 cat conftest.err
>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } && {
11806 test -z "$ac_c_werror_flag" ||
11807 test ! -s conftest.err
11808 } && test -s conftest.
$ac_objext; then
11809 ac_header_compiler
=yes
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.
$ac_ext >&5
11814 ac_header_compiler
=no
11817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11819 echo "${ECHO_T}$ac_header_compiler" >&6; }
11821 # Is the header present?
11822 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11823 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11824 cat >conftest.
$ac_ext <<_ACEOF
11827 cat confdefs.h
>>conftest.
$ac_ext
11828 cat >>conftest.
$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <openssl/ssl.h>
11832 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11833 case "(($ac_try" in
11834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } >/dev/null && {
11845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11846 test ! -s conftest.err
11848 ac_header_preproc=yes
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 ac_header_preproc=no
11856 rm -f conftest.err conftest.$ac_ext
11857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11858 echo "${ECHO_T}$ac_header_preproc" >&6; }
11860 # So? What about this header?
11861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11863 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11864 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11866 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11867 ac_header_preproc=yes
11870 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11871 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11873 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11875 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11877 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11879 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11881 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11883 ## ---------------------------------------- ##
11884 ## Report this to pgsql-bugs@postgresql.org ##
11885 ## ---------------------------------------- ##
11887 ) | sed "s/^/$as_me: WARNING: /" >&2
11890 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11891 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11892 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11897 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11901 if test $ac_cv_header_openssl_ssl_h = yes; then
11904 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11905 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11906 { (exit 1); exit 1; }; }
11910 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11911 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11912 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11913 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11917 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11919 # Is the header compilable?
11920 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11921 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11922 cat >conftest.$ac_ext <<_ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11929 #include <openssl/err.h>
11931 rm -f conftest.$ac_objext
11932 if { (ac_try="$ac_compile"
11933 case "(($ac_try" in
11934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11935 *) ac_try_echo
=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_compile") 2>conftest.er1
11940 grep -v '^ *+' conftest.er1
>conftest.err
11942 cat conftest.err
>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } && {
11945 test -z "$ac_c_werror_flag" ||
11946 test ! -s conftest.err
11947 } && test -s conftest.
$ac_objext; then
11948 ac_header_compiler
=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.
$ac_ext >&5
11953 ac_header_compiler
=no
11956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11958 echo "${ECHO_T}$ac_header_compiler" >&6; }
11960 # Is the header present?
11961 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11962 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11963 cat >conftest.
$ac_ext <<_ACEOF
11966 cat confdefs.h
>>conftest.
$ac_ext
11967 cat >>conftest.
$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 #include <openssl/err.h>
11971 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11972 case "(($ac_try" in
11973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } >/dev/null && {
11984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11987 ac_header_preproc=yes
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_header_preproc=no
11995 rm -f conftest.err conftest.$ac_ext
11996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11997 echo "${ECHO_T}$ac_header_preproc" >&6; }
11999 # So? What about this header?
12000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12002 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12003 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12005 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12006 ac_header_preproc=yes
12009 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12010 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12012 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12014 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12016 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12018 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12020 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12022 ## ---------------------------------------- ##
12023 ## Report this to pgsql-bugs@postgresql.org ##
12024 ## ---------------------------------------- ##
12026 ) | sed "s/^/$as_me: WARNING: /" >&2
12029 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12030 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12031 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 ac_cv_header_openssl_err_h=$ac_header_preproc
12036 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12037 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12040 if test $ac_cv_header_openssl_err_h = yes; then
12043 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12044 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12045 { (exit 1); exit 1; }; }
12050 for ac_func in ERR_set_mark
12052 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 cat >conftest.$ac_ext <<_ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define $ac_func innocuous_$ac_func
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12074 # include <limits.h>
12076 # include <assert.h>
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined __stub_$ac_func || defined __stub___$ac_func
12098 return $ac_func ();
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12107 *) ac_try_echo
=$ac_try;;
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12112 grep -v '^ *+' conftest.er1
>conftest.err
12114 cat conftest.err
>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } && {
12117 test -z "$ac_c_werror_flag" ||
12118 test ! -s conftest.err
12119 } && test -s conftest
$ac_exeext &&
12120 $as_test_x conftest
$ac_exeext; then
12121 eval "$as_ac_var=yes"
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.
$ac_ext >&5
12126 eval "$as_ac_var=no"
12129 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12130 conftest
$ac_exeext conftest.
$ac_ext
12132 ac_res
=`eval echo '${'$as_ac_var'}'`
12133 { echo "$as_me:$LINENO: result: $ac_res" >&5
12134 echo "${ECHO_T}$ac_res" >&6; }
12135 if test `eval echo '${'$as_ac_var'}'` = yes; then
12136 cat >>confdefs.h
<<_ACEOF
12137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12145 if test "$with_pam" = yes ; then
12147 for ac_header
in security
/pam_appl.h
12149 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12150 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 ac_res
=`eval echo '${'$as_ac_Header'}'`
12157 { echo "$as_me:$LINENO: result: $ac_res" >&5
12158 echo "${ECHO_T}$ac_res" >&6; }
12160 # Is the header compilable?
12161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12163 cat >conftest.
$ac_ext <<_ACEOF
12166 cat confdefs.h
>>conftest.
$ac_ext
12167 cat >>conftest.
$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12170 #include <$ac_header>
12172 rm -f conftest.
$ac_objext
12173 if { (ac_try
="$ac_compile"
12174 case "(($ac_try" in
12175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest.$ac_objext; then
12189 ac_header_compiler=yes
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_header_compiler=no
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12199 echo "${ECHO_T}$ac_header_compiler" >&6; }
12201 # Is the header present?
12202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12204 cat >conftest.$ac_ext <<_ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12210 #include <$ac_header>
12212 if { (ac_try="$ac_cpp conftest.$ac_ext"
12213 case "(($ac_try" in
12214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12215 *) ac_try_echo
=$ac_try;;
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12220 grep -v '^ *+' conftest.er1
>conftest.err
12222 cat conftest.err
>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } >/dev
/null
&& {
12225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12226 test ! -s conftest.err
12228 ac_header_preproc
=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.
$ac_ext >&5
12233 ac_header_preproc
=no
12236 rm -f conftest.err conftest.
$ac_ext
12237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12238 echo "${ECHO_T}$ac_header_preproc" >&6; }
12240 # So? What about this header?
12241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12247 ac_header_preproc
=yes
12250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12263 ## ---------------------------------------- ##
12264 ## Report this to pgsql-bugs@postgresql.org ##
12265 ## ---------------------------------------- ##
12267 ) |
sed "s/^/$as_me: WARNING: /" >&2
12270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12272 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 eval "$as_ac_Header=\$ac_header_preproc"
12277 ac_res
=`eval echo '${'$as_ac_Header'}'`
12278 { echo "$as_me:$LINENO: result: $ac_res" >&5
12279 echo "${ECHO_T}$ac_res" >&6; }
12282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12283 cat >>confdefs.h
<<_ACEOF
12284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12289 for ac_header
in pam
/pam_appl.h
12291 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12292 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12295 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 ac_res
=`eval echo '${'$as_ac_Header'}'`
12299 { echo "$as_me:$LINENO: result: $ac_res" >&5
12300 echo "${ECHO_T}$ac_res" >&6; }
12302 # Is the header compilable?
12303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12305 cat >conftest.
$ac_ext <<_ACEOF
12308 cat confdefs.h
>>conftest.
$ac_ext
12309 cat >>conftest.
$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 $ac_includes_default
12312 #include <$ac_header>
12314 rm -f conftest.
$ac_objext
12315 if { (ac_try
="$ac_compile"
12316 case "(($ac_try" in
12317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_compile") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest.$ac_objext; then
12331 ac_header_compiler=yes
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 ac_header_compiler=no
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341 echo "${ECHO_T}$ac_header_compiler" >&6; }
12343 # Is the header present?
12344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <$ac_header>
12354 if { (ac_try="$ac_cpp conftest.$ac_ext"
12355 case "(($ac_try" in
12356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12357 *) ac_try_echo
=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12362 grep -v '^ *+' conftest.er1
>conftest.err
12364 cat conftest.err
>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } >/dev
/null
&& {
12367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12370 ac_header_preproc
=yes
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.
$ac_ext >&5
12375 ac_header_preproc
=no
12378 rm -f conftest.err conftest.
$ac_ext
12379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12380 echo "${ECHO_T}$ac_header_preproc" >&6; }
12382 # So? What about this header?
12383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12389 ac_header_preproc
=yes
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12405 ## ---------------------------------------- ##
12406 ## Report this to pgsql-bugs@postgresql.org ##
12407 ## ---------------------------------------- ##
12409 ) |
sed "s/^/$as_me: WARNING: /" >&2
12412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12414 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 eval "$as_ac_Header=\$ac_header_preproc"
12419 ac_res
=`eval echo '${'$as_ac_Header'}'`
12420 { echo "$as_me:$LINENO: result: $ac_res" >&5
12421 echo "${ECHO_T}$ac_res" >&6; }
12424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12425 cat >>confdefs.h
<<_ACEOF
12426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12430 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12431 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12432 { (exit 1); exit 1; }; }
12443 if test "$with_libxml" = yes ; then
12444 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12445 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12446 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12447 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12451 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12453 # Is the header compilable?
12454 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12455 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12456 cat >conftest.
$ac_ext <<_ACEOF
12459 cat confdefs.h
>>conftest.
$ac_ext
12460 cat >>conftest.
$ac_ext <<_ACEOF
12461 /* end confdefs.h. */
12462 $ac_includes_default
12463 #include <libxml/parser.h>
12465 rm -f conftest.
$ac_objext
12466 if { (ac_try
="$ac_compile"
12467 case "(($ac_try" in
12468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12469 *) ac_try_echo=$ac_try;;
12471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12472 (eval "$ac_compile") 2>conftest.er1
12474 grep -v '^ *+' conftest.er1 >conftest.err
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } && {
12479 test -z "$ac_c_werror_flag" ||
12480 test ! -s conftest.err
12481 } && test -s conftest.$ac_objext; then
12482 ac_header_compiler=yes
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ac_header_compiler=no
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12492 echo "${ECHO_T}$ac_header_compiler" >&6; }
12494 # Is the header present?
12495 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12496 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12497 cat >conftest.$ac_ext <<_ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 #include <libxml/parser.h>
12505 if { (ac_try="$ac_cpp conftest.$ac_ext"
12506 case "(($ac_try" in
12507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12508 *) ac_try_echo
=$ac_try;;
12510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12513 grep -v '^ *+' conftest.er1
>conftest.err
12515 cat conftest.err
>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } >/dev
/null
&& {
12518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12519 test ! -s conftest.err
12521 ac_header_preproc
=yes
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.
$ac_ext >&5
12526 ac_header_preproc
=no
12529 rm -f conftest.err conftest.
$ac_ext
12530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12531 echo "${ECHO_T}$ac_header_preproc" >&6; }
12533 # So? What about this header?
12534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12536 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12537 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12539 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12540 ac_header_preproc
=yes
12543 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12544 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12546 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12548 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12550 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12552 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12554 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12556 ## ---------------------------------------- ##
12557 ## Report this to pgsql-bugs@postgresql.org ##
12558 ## ---------------------------------------- ##
12560 ) |
sed "s/^/$as_me: WARNING: /" >&2
12563 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12564 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12565 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 ac_cv_header_libxml_parser_h
=$ac_header_preproc
12570 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12571 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12574 if test $ac_cv_header_libxml_parser_h = yes; then
12577 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12578 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12579 { (exit 1); exit 1; }; }
12585 if test "$with_libxslt" = yes ; then
12586 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12587 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12588 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12589 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12593 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12595 # Is the header compilable?
12596 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12597 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12598 cat >conftest.
$ac_ext <<_ACEOF
12601 cat confdefs.h
>>conftest.
$ac_ext
12602 cat >>conftest.
$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12605 #include <libxslt/xslt.h>
12607 rm -f conftest.
$ac_objext
12608 if { (ac_try
="$ac_compile"
12609 case "(($ac_try" in
12610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_compile") 2>conftest.er1
12616 grep -v '^ *+' conftest.er1 >conftest.err
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest.$ac_objext; then
12624 ac_header_compiler=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_compiler=no
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12634 echo "${ECHO_T}$ac_header_compiler" >&6; }
12636 # Is the header present?
12637 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12638 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 #include <libxslt/xslt.h>
12647 if { (ac_try="$ac_cpp conftest.$ac_ext"
12648 case "(($ac_try" in
12649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12650 *) ac_try_echo
=$ac_try;;
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12655 grep -v '^ *+' conftest.er1
>conftest.err
12657 cat conftest.err
>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } >/dev
/null
&& {
12660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12663 ac_header_preproc
=yes
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.
$ac_ext >&5
12668 ac_header_preproc
=no
12671 rm -f conftest.err conftest.
$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12673 echo "${ECHO_T}$ac_header_preproc" >&6; }
12675 # So? What about this header?
12676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12678 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12679 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12680 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12681 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12682 ac_header_preproc
=yes
12685 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12686 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12688 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12690 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12691 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12692 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12694 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12695 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12696 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12698 ## ---------------------------------------- ##
12699 ## Report this to pgsql-bugs@postgresql.org ##
12700 ## ---------------------------------------- ##
12702 ) |
sed "s/^/$as_me: WARNING: /" >&2
12705 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12706 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12707 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
12712 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12713 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12716 if test $ac_cv_header_libxslt_xslt_h = yes; then
12719 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12720 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12721 { (exit 1); exit 1; }; }
12727 if test "$with_ldap" = yes ; then
12728 if test "$PORTNAME" != "win32"; then
12730 for ac_header
in ldap.h
12732 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12733 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12736 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 ac_res
=`eval echo '${'$as_ac_Header'}'`
12740 { echo "$as_me:$LINENO: result: $ac_res" >&5
12741 echo "${ECHO_T}$ac_res" >&6; }
12743 # Is the header compilable?
12744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12746 cat >conftest.
$ac_ext <<_ACEOF
12749 cat confdefs.h
>>conftest.
$ac_ext
12750 cat >>conftest.
$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 #include <$ac_header>
12755 rm -f conftest.
$ac_objext
12756 if { (ac_try
="$ac_compile"
12757 case "(($ac_try" in
12758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_compile") 2>conftest.er1
12764 grep -v '^ *+' conftest.er1 >conftest.err
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest.$ac_objext; then
12772 ac_header_compiler=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_header_compiler=no
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12782 echo "${ECHO_T}$ac_header_compiler" >&6; }
12784 # Is the header present?
12785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 #include <$ac_header>
12795 if { (ac_try="$ac_cpp conftest.$ac_ext"
12796 case "(($ac_try" in
12797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12798 *) ac_try_echo
=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12803 grep -v '^ *+' conftest.er1
>conftest.err
12805 cat conftest.err
>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } >/dev
/null
&& {
12808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12809 test ! -s conftest.err
12811 ac_header_preproc
=yes
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.
$ac_ext >&5
12816 ac_header_preproc
=no
12819 rm -f conftest.err conftest.
$ac_ext
12820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821 echo "${ECHO_T}$ac_header_preproc" >&6; }
12823 # So? What about this header?
12824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12830 ac_header_preproc
=yes
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12846 ## ---------------------------------------- ##
12847 ## Report this to pgsql-bugs@postgresql.org ##
12848 ## ---------------------------------------- ##
12850 ) |
sed "s/^/$as_me: WARNING: /" >&2
12853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12855 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 eval "$as_ac_Header=\$ac_header_preproc"
12860 ac_res
=`eval echo '${'$as_ac_Header'}'`
12861 { echo "$as_me:$LINENO: result: $ac_res" >&5
12862 echo "${ECHO_T}$ac_res" >&6; }
12865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12866 cat >>confdefs.h
<<_ACEOF
12867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12871 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12872 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12873 { (exit 1); exit 1; }; }
12880 for ac_header
in winldap.h
12882 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12885 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 cat >conftest.
$ac_ext <<_ACEOF
12891 cat confdefs.h
>>conftest.
$ac_ext
12892 cat >>conftest.
$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 $ac_includes_default
12895 #include <windows.h>
12898 #include <$ac_header>
12900 rm -f conftest.
$ac_objext
12901 if { (ac_try
="$ac_compile"
12902 case "(($ac_try" in
12903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_compile") 2>conftest.er1
12909 grep -v '^ *+' conftest.er1 >conftest.err
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest.$ac_objext; then
12917 eval "$as_ac_Header=yes"
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 eval "$as_ac_Header=no"
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 ac_res=`eval echo '${'$as_ac_Header'}'`
12928 { echo "$as_me:$LINENO: result: $ac_res" >&5
12929 echo "${ECHO_T}$ac_res" >&6; }
12930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12931 cat >>confdefs.h <<_ACEOF
12932 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12936 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12937 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12938 { (exit 1); exit 1; }; }
12946 if test "$with_bonjour" = yes ; then
12947 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12948 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12949 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12950 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12954 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12956 # Is the header compilable?
12957 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12958 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12959 cat >conftest.$ac_ext <<_ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 $ac_includes_default
12966 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12968 rm -f conftest.$ac_objext
12969 if { (ac_try="$ac_compile"
12970 case "(($ac_try" in
12971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12972 *) ac_try_echo
=$ac_try;;
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_compile") 2>conftest.er1
12977 grep -v '^ *+' conftest.er1
>conftest.err
12979 cat conftest.err
>&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest.
$ac_objext; then
12985 ac_header_compiler
=yes
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.
$ac_ext >&5
12990 ac_header_compiler
=no
12993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12995 echo "${ECHO_T}$ac_header_compiler" >&6; }
12997 # Is the header present?
12998 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12999 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13000 cat >conftest.
$ac_ext <<_ACEOF
13003 cat confdefs.h
>>conftest.
$ac_ext
13004 cat >>conftest.
$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13008 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13009 case "(($ac_try" in
13010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13016 grep -v '^ *+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } >/dev/null && {
13021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13024 ac_header_preproc=yes
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 ac_header_preproc=no
13032 rm -f conftest.err conftest.$ac_ext
13033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13034 echo "${ECHO_T}$ac_header_preproc" >&6; }
13036 # So? What about this header?
13037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13039 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13040 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13042 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13043 ac_header_preproc=yes
13046 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13049 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13051 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13053 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13055 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13057 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13059 ## ---------------------------------------- ##
13060 ## Report this to pgsql-bugs@postgresql.org ##
13061 ## ---------------------------------------- ##
13063 ) | sed "s/^/$as_me: WARNING: /" >&2
13066 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13067 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13068 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13073 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13074 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13077 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13080 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13081 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13082 { (exit 1); exit 1; }; }
13088 # for contrib/uuid-ossp
13089 if test "$with_ossp_uuid" = yes ; then
13091 for ac_header in ossp/uuid.h
13093 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 ac_res=`eval echo '${'$as_ac_Header'}'`
13101 { echo "$as_me:$LINENO: result: $ac_res" >&5
13102 echo "${ECHO_T}$ac_res" >&6; }
13104 # Is the header compilable?
13105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13114 #include <$ac_header>
13116 rm -f conftest.$ac_objext
13117 if { (ac_try="$ac_compile"
13118 case "(($ac_try" in
13119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13120 *) ac_try_echo
=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_compile") 2>conftest.er1
13125 grep -v '^ *+' conftest.er1
>conftest.err
13127 cat conftest.err
>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && {
13130 test -z "$ac_c_werror_flag" ||
13131 test ! -s conftest.err
13132 } && test -s conftest.
$ac_objext; then
13133 ac_header_compiler
=yes
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.
$ac_ext >&5
13138 ac_header_compiler
=no
13141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13143 echo "${ECHO_T}$ac_header_compiler" >&6; }
13145 # Is the header present?
13146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13148 cat >conftest.
$ac_ext <<_ACEOF
13151 cat confdefs.h
>>conftest.
$ac_ext
13152 cat >>conftest.
$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 #include <$ac_header>
13156 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13157 case "(($ac_try" in
13158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13164 grep -v '^ *+' conftest.er1 >conftest.err
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } >/dev/null && {
13169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13170 test ! -s conftest.err
13172 ac_header_preproc=yes
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 ac_header_preproc=no
13180 rm -f conftest.err conftest.$ac_ext
13181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13182 echo "${ECHO_T}$ac_header_preproc" >&6; }
13184 # So? What about this header?
13185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13191 ac_header_preproc=yes
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13207 ## ---------------------------------------- ##
13208 ## Report this to pgsql-bugs@postgresql.org ##
13209 ## ---------------------------------------- ##
13211 ) | sed "s/^/$as_me: WARNING: /" >&2
13214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 eval "$as_ac_Header=\$ac_header_preproc"
13221 ac_res=`eval echo '${'$as_ac_Header'}'`
13222 { echo "$as_me:$LINENO: result: $ac_res" >&5
13223 echo "${ECHO_T}$ac_res" >&6; }
13226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13227 cat >>confdefs.h <<_ACEOF
13228 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
13234 for ac_header in uuid.h
13236 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 ac_res=`eval echo '${'$as_ac_Header'}'`
13244 { echo "$as_me:$LINENO: result: $ac_res" >&5
13245 echo "${ECHO_T}$ac_res" >&6; }
13247 # Is the header compilable?
13248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13250 cat >conftest.$ac_ext <<_ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13257 #include <$ac_header>
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_header_compiler
=yes
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.
$ac_ext >&5
13281 ac_header_compiler
=no
13284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13286 echo "${ECHO_T}$ac_header_compiler" >&6; }
13288 # Is the header present?
13289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13291 cat >conftest.
$ac_ext <<_ACEOF
13294 cat confdefs.h
>>conftest.
$ac_ext
13295 cat >>conftest.
$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <$ac_header>
13299 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13300 case "(($ac_try" in
13301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } >/dev/null && {
13312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13315 ac_header_preproc=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_header_preproc=no
13323 rm -f conftest.err conftest.$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13325 echo "${ECHO_T}$ac_header_preproc" >&6; }
13327 # So? What about this header?
13328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13334 ac_header_preproc=yes
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13350 ## ---------------------------------------- ##
13351 ## Report this to pgsql-bugs@postgresql.org ##
13352 ## ---------------------------------------- ##
13354 ) | sed "s/^/$as_me: WARNING: /" >&2
13357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 eval "$as_ac_Header=\$ac_header_preproc"
13364 ac_res=`eval echo '${'$as_ac_Header'}'`
13365 { echo "$as_me:$LINENO: result: $ac_res" >&5
13366 echo "${ECHO_T}$ac_res" >&6; }
13369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13370 cat >>confdefs.h <<_ACEOF
13371 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
13375 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13376 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13377 { (exit 1); exit 1; }; }
13390 ## Types, structures, compiler characteristics
13393 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13394 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13395 if test "${ac_cv_c_bigendian+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 # See if sys/param.h defines the BYTE_ORDER macro.
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include <sys/types.h>
13406 #include <sys/param.h>
13411 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13412 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13413 bogus endian macros
13420 rm -f conftest.$ac_objext
13421 if { (ac_try="$ac_compile"
13422 case "(($ac_try" in
13423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13424 *) ac_try_echo
=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_compile") 2>conftest.er1
13429 grep -v '^ *+' conftest.er1
>conftest.err
13431 cat conftest.err
>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } && {
13434 test -z "$ac_c_werror_flag" ||
13435 test ! -s conftest.err
13436 } && test -s conftest.
$ac_objext; then
13437 # It does; now see whether it defined to BIG_ENDIAN or not.
13438 cat >conftest.
$ac_ext <<_ACEOF
13441 cat confdefs.h
>>conftest.
$ac_ext
13442 cat >>conftest.
$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 #include <sys/types.h>
13445 #include <sys/param.h>
13450 #if BYTE_ORDER != BIG_ENDIAN
13458 rm -f conftest.
$ac_objext
13459 if { (ac_try
="$ac_compile"
13460 case "(($ac_try" in
13461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_compile") 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && {
13472 test -z "$ac_c_werror_flag" ||
13473 test ! -s conftest.err
13474 } && test -s conftest.$ac_objext; then
13475 ac_cv_c_bigendian=yes
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 ac_cv_c_bigendian=no
13483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 # It does not; compile a test program.
13489 if test "$cross_compiling" = yes; then
13490 # try to guess the endianness by grepping values into an object file
13491 ac_cv_c_bigendian=unknown
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13499 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13500 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13501 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13502 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13503 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13507 _ascii (); _ebcdic ();
13512 rm -f conftest.$ac_objext
13513 if { (ac_try="$ac_compile"
13514 case "(($ac_try" in
13515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13516 *) ac_try_echo
=$ac_try;;
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_compile") 2>conftest.er1
13521 grep -v '^ *+' conftest.er1
>conftest.err
13523 cat conftest.err
>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && {
13526 test -z "$ac_c_werror_flag" ||
13527 test ! -s conftest.err
13528 } && test -s conftest.
$ac_objext; then
13529 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13530 ac_cv_c_bigendian
=yes
13532 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13533 if test "$ac_cv_c_bigendian" = unknown
; then
13534 ac_cv_c_bigendian
=no
13536 # finding both strings is unlikely to happen, but who knows?
13537 ac_cv_c_bigendian
=unknown
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.
$ac_ext >&5
13547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13549 cat >conftest.
$ac_ext <<_ACEOF
13552 cat confdefs.h
>>conftest.
$ac_ext
13553 cat >>conftest.
$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 $ac_includes_default
13560 /* Are we little or big endian? From Harbison&Steele. */
13564 char c[sizeof (long int)];
13567 return u.c[sizeof (long int) - 1] == 1;
13573 rm -f conftest
$ac_exeext
13574 if { (ac_try
="$ac_link"
13575 case "(($ac_try" in
13576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_link") 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13584 { (case "(($ac_try" in
13585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13586 *) ac_try_echo
=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_try") 2>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; }; then
13593 ac_cv_c_bigendian
=no
13595 echo "$as_me: program exited with status $ac_status" >&5
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.
$ac_ext >&5
13599 ( exit $ac_status )
13600 ac_cv_c_bigendian
=yes
13602 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13610 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13611 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13612 case $ac_cv_c_bigendian in
13615 cat >>confdefs.h
<<\_ACEOF
13616 #define WORDS_BIGENDIAN 1
13622 { { echo "$as_me:$LINENO: error: unknown endianness
13623 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13624 echo "$as_me: error: unknown endianness
13625 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13626 { (exit 1); exit 1; }; } ;;
13629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13631 if test "${ac_cv_c_const+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13634 cat >conftest.
$ac_ext <<_ACEOF
13637 cat confdefs.h
>>conftest.
$ac_ext
13638 cat >>conftest.
$ac_ext <<_ACEOF
13639 /* end confdefs.h. */
13644 /* FIXME: Include the comments suggested by Paul. */
13645 #ifndef __cplusplus
13646 /* Ultrix mips cc rejects this. */
13647 typedef int charset[2];
13649 /* SunOS 4.1.1 cc rejects this. */
13650 char const *const *pcpcc;
13652 /* NEC SVR4.0.2 mips cc rejects this. */
13653 struct point {int x, y;};
13654 static struct point const zero = {0,0};
13655 /* AIX XL C 1.02.0.0 rejects this.
13656 It does not let you subtract one const X* pointer from another in
13657 an arm of an if-expression whose if-part is not a constant
13659 const char *g = "string";
13660 pcpcc = &g + (g ? g-g : 0);
13661 /* HPUX 7.0 cc rejects these. */
13663 ppc = (char**) pcpcc;
13664 pcpcc = (char const *const *) ppc;
13665 { /* SCO 3.2v4 cc rejects this. */
13667 char const *s = 0 ? (char *) 0 : (char const *) 0;
13672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13673 int x[] = {25, 17};
13674 const int *foo = &x[0];
13677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13678 typedef const int *iptr;
13682 { /* AIX XL C 1.02.0.0 rejects this saying
13683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13684 struct s { int j; const int *ap[3]; };
13685 struct s *b; b->j = 5;
13687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13688 const int foo = 10;
13689 if (!foo) return 0;
13691 return !cs[0] && !zero.x;
13698 rm -f conftest.
$ac_objext
13699 if { (ac_try
="$ac_compile"
13700 case "(($ac_try" in
13701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_compile") 2>conftest.er1
13707 grep -v '^ *+' conftest.er1 >conftest.err
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } && {
13712 test -z "$ac_c_werror_flag" ||
13713 test ! -s conftest.err
13714 } && test -s conftest.$ac_objext; then
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13727 if test $ac_cv_c_const = no; then
13729 cat >>confdefs.h <<\_ACEOF
13735 { echo "$as_me:$LINENO: checking for inline" >&5
13736 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13737 if test "${ac_cv_c_inline+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 for ac_kw in inline __inline__ __inline; do
13742 cat >conftest.$ac_ext <<_ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 #ifndef __cplusplus
13750 static $ac_kw foo_t static_foo () {return 0; }
13751 $ac_kw foo_t foo () {return 0; }
13755 rm -f conftest.$ac_objext
13756 if { (ac_try="$ac_compile"
13757 case "(($ac_try" in
13758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13759 *) ac_try_echo
=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_compile") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1
>conftest.err
13766 cat conftest.err
>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest.
$ac_objext; then
13772 ac_cv_c_inline
=$ac_kw
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.
$ac_ext >&5
13780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13781 test "$ac_cv_c_inline" != no
&& break
13785 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13786 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13789 case $ac_cv_c_inline in
13792 case $ac_cv_c_inline in
13794 *) ac_val
=$ac_cv_c_inline;;
13796 cat >>confdefs.h
<<_ACEOF
13797 #ifndef __cplusplus
13798 #define inline $ac_val
13804 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13805 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13806 if test "${ac_cv_c_stringize+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 cat >conftest.
$ac_ext <<_ACEOF
13812 cat confdefs.h
>>conftest.
$ac_ext
13813 cat >>conftest.
$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13817 char *s = x(teststring);
13819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13820 $EGREP "#teststring" >/dev
/null
2>&1; then
13821 ac_cv_c_stringize
=no
13823 ac_cv_c_stringize
=yes
13828 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13829 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13830 if test $ac_cv_c_stringize = yes; then
13832 cat >>confdefs.h
<<\_ACEOF
13833 #define HAVE_STRINGIZE 1
13838 { echo "$as_me:$LINENO: checking for signed types" >&5
13839 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13840 if test "${pgac_cv_c_signed+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 cat >conftest.
$ac_ext <<_ACEOF
13846 cat confdefs.h
>>conftest.
$ac_ext
13847 cat >>conftest.
$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13853 signed char c; signed short s; signed int i;
13858 rm -f conftest.
$ac_objext
13859 if { (ac_try
="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
13875 pgac_cv_c_signed=yes
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 pgac_cv_c_signed=no
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13885 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13886 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13887 if test x"$pgac_cv_c_signed" = xno ; then
13889 cat >>confdefs.h <<\_ACEOF
13894 { echo "$as_me:$LINENO: checking for working volatile" >&5
13895 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13896 if test "${ac_cv_c_volatile+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13911 int * volatile y = (int *) 0;
13917 rm -f conftest.$ac_objext
13918 if { (ac_try="$ac_compile"
13919 case "(($ac_try" in
13920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13921 *) ac_try_echo
=$ac_try;;
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_compile") 2>conftest.er1
13926 grep -v '^ *+' conftest.er1
>conftest.err
13928 cat conftest.err
>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } && {
13931 test -z "$ac_c_werror_flag" ||
13932 test ! -s conftest.err
13933 } && test -s conftest.
$ac_objext; then
13934 ac_cv_c_volatile
=yes
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.
$ac_ext >&5
13939 ac_cv_c_volatile
=no
13942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13944 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13945 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13946 if test $ac_cv_c_volatile = no
; then
13948 cat >>confdefs.h
<<\_ACEOF
13954 { echo "$as_me:$LINENO: checking for __func__" >&5
13955 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13956 if test "${pgac_cv_funcname_func_support+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 cat >conftest.
$ac_ext <<_ACEOF
13962 cat confdefs.h
>>conftest.
$ac_ext
13963 cat >>conftest.
$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13969 printf("%s\n", __func__);
13974 rm -f conftest.
$ac_objext
13975 if { (ac_try
="$ac_compile"
13976 case "(($ac_try" in
13977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_compile") 2>conftest.er1
13983 grep -v '^ *+' conftest.er1 >conftest.err
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } && {
13988 test -z "$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 } && test -s conftest.$ac_objext; then
13991 pgac_cv_funcname_func_support=yes
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 pgac_cv_funcname_func_support=no
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14002 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14003 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14005 cat >>confdefs.h <<\_ACEOF
14006 #define HAVE_FUNCNAME__FUNC 1
14010 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14011 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14012 if test "${pgac_cv_funcname_function_support+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. */
14025 printf("%s\n", __FUNCTION__);
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14034 *) ac_try_echo
=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_compile") 2>conftest.er1
14039 grep -v '^ *+' conftest.er1
>conftest.err
14041 cat conftest.err
>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } && {
14044 test -z "$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14046 } && test -s conftest.
$ac_objext; then
14047 pgac_cv_funcname_function_support
=yes
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.
$ac_ext >&5
14052 pgac_cv_funcname_function_support
=no
14055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14057 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14058 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14059 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
14061 cat >>confdefs.h
<<\_ACEOF
14062 #define HAVE_FUNCNAME__FUNCTION 1
14067 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14068 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14069 if test "${ac_cv_struct_tm+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 cat >conftest.
$ac_ext <<_ACEOF
14075 cat confdefs.h
>>conftest.
$ac_ext
14076 cat >>conftest.
$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <sys/types.h>
14085 int *p = &tm.tm_sec;
14091 rm -f conftest.
$ac_objext
14092 if { (ac_try
="$ac_compile"
14093 case "(($ac_try" in
14094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14095 *) ac_try_echo=$ac_try;;
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098 (eval "$ac_compile") 2>conftest.er1
14100 grep -v '^ *+' conftest.er1 >conftest.err
14102 cat conftest.err >&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && {
14105 test -z "$ac_c_werror_flag" ||
14106 test ! -s conftest.err
14107 } && test -s conftest.$ac_objext; then
14108 ac_cv_struct_tm=time.h
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_struct_tm=sys/time.h
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14118 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14119 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14120 if test $ac_cv_struct_tm = sys/time.h; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define TM_IN_SYS_TIME 1
14128 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14129 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14130 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 cat >conftest.$ac_ext <<_ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 #include <sys/types.h>
14140 #include <$ac_cv_struct_tm>
14146 static struct tm ac_aggr;
14147 if (ac_aggr.tm_zone)
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14157 *) ac_try_echo
=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1
>conftest.err
14164 cat conftest.err
>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.
$ac_objext; then
14170 ac_cv_member_struct_tm_tm_zone
=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.
$ac_ext >&5
14175 cat >conftest.
$ac_ext <<_ACEOF
14178 cat confdefs.h
>>conftest.
$ac_ext
14179 cat >>conftest.
$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 #include <sys/types.h>
14182 #include <$ac_cv_struct_tm>
14188 static struct tm ac_aggr;
14189 if (sizeof ac_aggr.tm_zone)
14195 rm -f conftest.
$ac_objext
14196 if { (ac_try
="$ac_compile"
14197 case "(($ac_try" in
14198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_compile") 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest.$ac_objext; then
14212 ac_cv_member_struct_tm_tm_zone=yes
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ac_cv_member_struct_tm_tm_zone=no
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14226 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14227 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14229 cat >>confdefs.h <<_ACEOF
14230 #define HAVE_STRUCT_TM_TM_ZONE 1
14236 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14238 cat >>confdefs.h <<\_ACEOF
14239 #define HAVE_TM_ZONE 1
14243 { echo "$as_me:$LINENO: checking for tzname" >&5
14244 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14245 if test "${ac_cv_var_tzname+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 cat >conftest.$ac_ext <<_ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14255 #ifndef tzname /* For SGI. */
14256 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14271 *) ac_try_echo
=$ac_try;;
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_link") 2>conftest.er1
14276 grep -v '^ *+' conftest.er1
>conftest.err
14278 cat conftest.err
>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest
$ac_exeext &&
14284 $as_test_x conftest
$ac_exeext; then
14285 ac_cv_var_tzname
=yes
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.
$ac_ext >&5
14290 ac_cv_var_tzname
=no
14293 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14294 conftest
$ac_exeext conftest.
$ac_ext
14296 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14297 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14298 if test $ac_cv_var_tzname = yes; then
14300 cat >>confdefs.h
<<\_ACEOF
14301 #define HAVE_TZNAME 1
14306 { echo "$as_me:$LINENO: checking for union semun" >&5
14307 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14308 if test "${ac_cv_type_union_semun+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 cat >conftest.
$ac_ext <<_ACEOF
14314 cat confdefs.h
>>conftest.
$ac_ext
14315 cat >>conftest.
$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14317 #include <sys/types.h>
14318 #include <sys/ipc.h>
14319 #include <sys/sem.h>
14321 typedef union semun ac__type_new_;
14325 if ((ac__type_new_ *) 0)
14327 if (sizeof (ac__type_new_))
14333 rm -f conftest.
$ac_objext
14334 if { (ac_try
="$ac_compile"
14335 case "(($ac_try" in
14336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340 (eval "$ac_compile") 2>conftest.er1
14342 grep -v '^ *+' conftest.er1 >conftest.err
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } && {
14347 test -z "$ac_c_werror_flag" ||
14348 test ! -s conftest.err
14349 } && test -s conftest.$ac_objext; then
14350 ac_cv_type_union_semun=yes
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14355 ac_cv_type_union_semun=no
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14361 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14362 if test $ac_cv_type_union_semun = yes; then
14364 cat >>confdefs.h <<_ACEOF
14365 #define HAVE_UNION_SEMUN 1
14371 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14372 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14373 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14376 cat >conftest.$ac_ext <<_ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14382 #include <sys/types.h>
14383 #ifdef HAVE_SYS_UN_H
14384 #include <sys/un.h>
14388 typedef struct sockaddr_un ac__type_new_;
14392 if ((ac__type_new_ *) 0)
14394 if (sizeof (ac__type_new_))
14400 rm -f conftest.$ac_objext
14401 if { (ac_try="$ac_compile"
14402 case "(($ac_try" in
14403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14404 *) ac_try_echo
=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_compile") 2>conftest.er1
14409 grep -v '^ *+' conftest.er1
>conftest.err
14411 cat conftest.err
>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest.
$ac_objext; then
14417 ac_cv_type_struct_sockaddr_un
=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.
$ac_ext >&5
14422 ac_cv_type_struct_sockaddr_un
=no
14425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14427 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14428 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14429 if test $ac_cv_type_struct_sockaddr_un = yes; then
14431 cat >>confdefs.h
<<_ACEOF
14432 #define HAVE_STRUCT_SOCKADDR_UN 1
14436 cat >>confdefs.h
<<\_ACEOF
14437 #define HAVE_UNIX_SOCKETS 1
14442 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14443 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14444 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 cat >conftest.
$ac_ext <<_ACEOF
14450 cat confdefs.h
>>conftest.
$ac_ext
14451 cat >>conftest.
$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 #include <sys/types.h>
14454 #ifdef HAVE_SYS_SOCKET_H
14455 #include <sys/socket.h>
14459 typedef struct sockaddr_storage ac__type_new_;
14463 if ((ac__type_new_ *) 0)
14465 if (sizeof (ac__type_new_))
14471 rm -f conftest.
$ac_objext
14472 if { (ac_try
="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14480 grep -v '^ *+' conftest.er1 >conftest.err
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest.$ac_objext; then
14488 ac_cv_type_struct_sockaddr_storage=yes
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_cv_type_struct_sockaddr_storage=no
14496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14499 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14500 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14509 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14510 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14511 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <sys/types.h>
14521 #ifdef HAVE_SYS_SOCKET_H
14522 #include <sys/socket.h>
14529 static struct sockaddr_storage ac_aggr;
14530 if (ac_aggr.ss_family)
14536 rm -f conftest.$ac_objext
14537 if { (ac_try="$ac_compile"
14538 case "(($ac_try" in
14539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14540 *) ac_try_echo
=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_compile") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1
>conftest.err
14547 cat conftest.err
>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } && {
14550 test -z "$ac_c_werror_flag" ||
14551 test ! -s conftest.err
14552 } && test -s conftest.
$ac_objext; then
14553 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.
$ac_ext >&5
14558 cat >conftest.
$ac_ext <<_ACEOF
14561 cat confdefs.h
>>conftest.
$ac_ext
14562 cat >>conftest.
$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #include <sys/types.h>
14565 #ifdef HAVE_SYS_SOCKET_H
14566 #include <sys/socket.h>
14573 static struct sockaddr_storage ac_aggr;
14574 if (sizeof ac_aggr.ss_family)
14580 rm -f conftest.
$ac_objext
14581 if { (ac_try
="$ac_compile"
14582 case "(($ac_try" in
14583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14584 *) ac_try_echo=$ac_try;;
14586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587 (eval "$ac_compile") 2>conftest.er1
14589 grep -v '^ *+' conftest.er1 >conftest.err
14591 cat conftest.err >&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } && {
14594 test -z "$ac_c_werror_flag" ||
14595 test ! -s conftest.err
14596 } && test -s conftest.$ac_objext; then
14597 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.$ac_ext >&5
14602 ac_cv_member_struct_sockaddr_storage_ss_family=no
14605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14610 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14611 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14612 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14614 cat >>confdefs.h <<_ACEOF
14615 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14620 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14621 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14622 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 cat >conftest.$ac_ext <<_ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 #include <sys/types.h>
14632 #ifdef HAVE_SYS_SOCKET_H
14633 #include <sys/socket.h>
14640 static struct sockaddr_storage ac_aggr;
14641 if (ac_aggr.__ss_family)
14647 rm -f conftest.$ac_objext
14648 if { (ac_try="$ac_compile"
14649 case "(($ac_try" in
14650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14651 *) ac_try_echo
=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_compile") 2>conftest.er1
14656 grep -v '^ *+' conftest.er1
>conftest.err
14658 cat conftest.err
>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest.
$ac_objext; then
14664 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.
$ac_ext >&5
14669 cat >conftest.
$ac_ext <<_ACEOF
14672 cat confdefs.h
>>conftest.
$ac_ext
14673 cat >>conftest.
$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 #include <sys/types.h>
14676 #ifdef HAVE_SYS_SOCKET_H
14677 #include <sys/socket.h>
14684 static struct sockaddr_storage ac_aggr;
14685 if (sizeof ac_aggr.__ss_family)
14691 rm -f conftest.
$ac_objext
14692 if { (ac_try
="$ac_compile"
14693 case "(($ac_try" in
14694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_compile") 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && {
14705 test -z "$ac_c_werror_flag" ||
14706 test ! -s conftest.err
14707 } && test -s conftest.$ac_objext; then
14708 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14713 ac_cv_member_struct_sockaddr_storage___ss_family=no
14716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14722 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14723 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14731 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14732 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14733 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 cat >conftest.$ac_ext <<_ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #include <sys/types.h>
14743 #ifdef HAVE_SYS_SOCKET_H
14744 #include <sys/socket.h>
14751 static struct sockaddr_storage ac_aggr;
14752 if (ac_aggr.ss_len)
14758 rm -f conftest.$ac_objext
14759 if { (ac_try="$ac_compile"
14760 case "(($ac_try" in
14761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14762 *) ac_try_echo
=$ac_try;;
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_compile") 2>conftest.er1
14767 grep -v '^ *+' conftest.er1
>conftest.err
14769 cat conftest.err
>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest.
$ac_objext; then
14775 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.
$ac_ext >&5
14780 cat >conftest.
$ac_ext <<_ACEOF
14783 cat confdefs.h
>>conftest.
$ac_ext
14784 cat >>conftest.
$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 #include <sys/types.h>
14787 #ifdef HAVE_SYS_SOCKET_H
14788 #include <sys/socket.h>
14795 static struct sockaddr_storage ac_aggr;
14796 if (sizeof ac_aggr.ss_len)
14802 rm -f conftest.
$ac_objext
14803 if { (ac_try
="$ac_compile"
14804 case "(($ac_try" in
14805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_compile") 2>conftest.er1
14811 grep -v '^ *+' conftest.er1 >conftest.err
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest.$ac_objext; then
14819 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_member_struct_sockaddr_storage_ss_len=no
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14833 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14834 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14842 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14843 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14844 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 cat >conftest.$ac_ext <<_ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 #include <sys/types.h>
14854 #ifdef HAVE_SYS_SOCKET_H
14855 #include <sys/socket.h>
14862 static struct sockaddr_storage ac_aggr;
14863 if (ac_aggr.__ss_len)
14869 rm -f conftest.$ac_objext
14870 if { (ac_try="$ac_compile"
14871 case "(($ac_try" in
14872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14873 *) ac_try_echo
=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_compile") 2>conftest.er1
14878 grep -v '^ *+' conftest.er1
>conftest.err
14880 cat conftest.err
>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest.
$ac_objext; then
14886 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.
$ac_ext >&5
14891 cat >conftest.
$ac_ext <<_ACEOF
14894 cat confdefs.h
>>conftest.
$ac_ext
14895 cat >>conftest.
$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14897 #include <sys/types.h>
14898 #ifdef HAVE_SYS_SOCKET_H
14899 #include <sys/socket.h>
14906 static struct sockaddr_storage ac_aggr;
14907 if (sizeof ac_aggr.__ss_len)
14913 rm -f conftest.
$ac_objext
14914 if { (ac_try
="$ac_compile"
14915 case "(($ac_try" in
14916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_compile") 2>conftest.er1
14922 grep -v '^ *+' conftest.er1 >conftest.err
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest.$ac_objext; then
14930 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_cv_member_struct_sockaddr_storage___ss_len=no
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14944 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14945 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14947 cat >>confdefs.h <<_ACEOF
14948 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14953 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14954 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14955 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 #include <sys/types.h>
14965 #ifdef HAVE_SYS_SOCKET_H
14966 #include <sys/socket.h>
14973 static struct sockaddr ac_aggr;
14974 if (ac_aggr.sa_len)
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14984 *) ac_try_echo
=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_compile") 2>conftest.er1
14989 grep -v '^ *+' conftest.er1
>conftest.err
14991 cat conftest.err
>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } && {
14994 test -z "$ac_c_werror_flag" ||
14995 test ! -s conftest.err
14996 } && test -s conftest.
$ac_objext; then
14997 ac_cv_member_struct_sockaddr_sa_len
=yes
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.
$ac_ext >&5
15002 cat >conftest.
$ac_ext <<_ACEOF
15005 cat confdefs.h
>>conftest.
$ac_ext
15006 cat >>conftest.
$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 #include <sys/types.h>
15009 #ifdef HAVE_SYS_SOCKET_H
15010 #include <sys/socket.h>
15017 static struct sockaddr ac_aggr;
15018 if (sizeof ac_aggr.sa_len)
15024 rm -f conftest.
$ac_objext
15025 if { (ac_try
="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 ac_cv_member_struct_sockaddr_sa_len=yes
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_cv_member_struct_sockaddr_sa_len=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15055 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15056 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15058 cat >>confdefs.h <<_ACEOF
15059 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15065 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15066 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15067 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <sys/types.h>
15077 #include <sys/socket.h>
15081 typedef struct addrinfo ac__type_new_;
15085 if ((ac__type_new_ *) 0)
15087 if (sizeof (ac__type_new_))
15093 rm -f conftest.$ac_objext
15094 if { (ac_try="$ac_compile"
15095 case "(($ac_try" in
15096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15097 *) ac_try_echo
=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_compile") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1
>conftest.err
15104 cat conftest.err
>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest.
$ac_objext; then
15110 ac_cv_type_struct_addrinfo
=yes
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.
$ac_ext >&5
15115 ac_cv_type_struct_addrinfo
=no
15118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15121 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15122 if test $ac_cv_type_struct_addrinfo = yes; then
15124 cat >>confdefs.h
<<_ACEOF
15125 #define HAVE_STRUCT_ADDRINFO 1
15132 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15133 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15134 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 cat >conftest.
$ac_ext <<_ACEOF
15140 cat confdefs.h
>>conftest.
$ac_ext
15141 cat >>conftest.
$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 #include <sys/param.h>
15144 #include <sys/types.h>
15145 #include <sys/socket.h>
15146 #include <sys/ucred.h>
15148 typedef struct cmsgcred ac__type_new_;
15152 if ((ac__type_new_ *) 0)
15154 if (sizeof (ac__type_new_))
15160 rm -f conftest.
$ac_objext
15161 if { (ac_try
="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest.$ac_objext; then
15177 ac_cv_type_struct_cmsgcred=yes
15179 echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 ac_cv_type_struct_cmsgcred=no
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15188 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15189 if test $ac_cv_type_struct_cmsgcred = yes; then
15191 cat >>confdefs.h <<_ACEOF
15192 #define HAVE_STRUCT_CMSGCRED 1
15197 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15198 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15199 if test "${ac_cv_type_struct_fcred+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <sys/param.h>
15209 #include <sys/types.h>
15210 #include <sys/socket.h>
15211 #include <sys/ucred.h>
15213 typedef struct fcred ac__type_new_;
15217 if ((ac__type_new_ *) 0)
15219 if (sizeof (ac__type_new_))
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_cv_type_struct_fcred
=yes
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.
$ac_ext >&5
15247 ac_cv_type_struct_fcred
=no
15250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15252 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15253 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15254 if test $ac_cv_type_struct_fcred = yes; then
15256 cat >>confdefs.h
<<_ACEOF
15257 #define HAVE_STRUCT_FCRED 1
15262 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15263 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15264 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 cat >conftest.
$ac_ext <<_ACEOF
15270 cat confdefs.h
>>conftest.
$ac_ext
15271 cat >>conftest.
$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 #include <sys/param.h>
15274 #include <sys/types.h>
15275 #include <sys/socket.h>
15276 #include <sys/ucred.h>
15278 typedef struct sockcred ac__type_new_;
15282 if ((ac__type_new_ *) 0)
15284 if (sizeof (ac__type_new_))
15290 rm -f conftest.
$ac_objext
15291 if { (ac_try
="$ac_compile"
15292 case "(($ac_try" in
15293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest.$ac_objext; then
15307 ac_cv_type_struct_sockcred=yes
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_cv_type_struct_sockcred=no
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15317 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15318 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15319 if test $ac_cv_type_struct_sockcred = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define HAVE_STRUCT_SOCKCRED 1
15329 { echo "$as_me:$LINENO: checking for struct option" >&5
15330 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15331 if test "${ac_cv_type_struct_option+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #ifdef HAVE_GETOPT_H
15341 #include <getopt.h>
15344 typedef struct option ac__type_new_;
15348 if ((ac__type_new_ *) 0)
15350 if (sizeof (ac__type_new_))
15356 rm -f conftest.$ac_objext
15357 if { (ac_try="$ac_compile"
15358 case "(($ac_try" in
15359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15360 *) ac_try_echo
=$ac_try;;
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_compile") 2>conftest.er1
15365 grep -v '^ *+' conftest.er1
>conftest.err
15367 cat conftest.err
>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } && {
15370 test -z "$ac_c_werror_flag" ||
15371 test ! -s conftest.err
15372 } && test -s conftest.
$ac_objext; then
15373 ac_cv_type_struct_option
=yes
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.
$ac_ext >&5
15378 ac_cv_type_struct_option
=no
15381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15384 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15385 if test $ac_cv_type_struct_option = yes; then
15387 cat >>confdefs.h
<<_ACEOF
15388 #define HAVE_STRUCT_OPTION 1
15395 if test "$with_zlib" = yes; then
15396 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15397 # did not). While we could work around the lack of z_streamp, it
15398 # seems unwise to encourage people to use such old zlib versions...
15399 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15400 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15401 if test "${ac_cv_type_z_streamp+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 cat >conftest.
$ac_ext <<_ACEOF
15407 cat confdefs.h
>>conftest.
$ac_ext
15408 cat >>conftest.
$ac_ext <<_ACEOF
15409 /* end confdefs.h. */
15412 typedef z_streamp ac__type_new_;
15416 if ((ac__type_new_ *) 0)
15418 if (sizeof (ac__type_new_))
15424 rm -f conftest.
$ac_objext
15425 if { (ac_try
="$ac_compile"
15426 case "(($ac_try" in
15427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_compile") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest.$ac_objext; then
15441 ac_cv_type_z_streamp=yes
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 ac_cv_type_z_streamp=no
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15452 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15453 if test $ac_cv_type_z_streamp = yes; then
15456 { { echo "$as_me:$LINENO: error: zlib version is too old
15457 Use --without-zlib to disable zlib support." >&5
15458 echo "$as_me: error: zlib version is too old
15459 Use --without-zlib to disable zlib support." >&2;}
15460 { (exit 1); exit 1; }; }
15465 if test "$with_krb5" = yes; then
15466 # Check for differences between MIT and Heimdal (KTH) releases
15467 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15468 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15469 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 cat >conftest.$ac_ext <<_ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15483 static krb5_ticket ac_aggr;
15484 if (ac_aggr.enc_part2)
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15494 *) ac_try_echo
=$ac_try;;
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_compile") 2>conftest.er1
15499 grep -v '^ *+' conftest.er1
>conftest.err
15501 cat conftest.err
>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest.
$ac_objext; then
15507 ac_cv_member_krb5_ticket_enc_part2
=yes
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.
$ac_ext >&5
15512 cat >conftest.
$ac_ext <<_ACEOF
15515 cat confdefs.h
>>conftest.
$ac_ext
15516 cat >>conftest.
$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15523 static krb5_ticket ac_aggr;
15524 if (sizeof ac_aggr.enc_part2)
15530 rm -f conftest.
$ac_objext
15531 if { (ac_try
="$ac_compile"
15532 case "(($ac_try" in
15533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_compile") 2>conftest.er1
15539 grep -v '^ *+' conftest.er1 >conftest.err
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } && {
15544 test -z "$ac_c_werror_flag" ||
15545 test ! -s conftest.err
15546 } && test -s conftest.$ac_objext; then
15547 ac_cv_member_krb5_ticket_enc_part2=yes
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15552 ac_cv_member_krb5_ticket_enc_part2=no
15555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15561 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15562 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15564 cat >>confdefs.h <<_ACEOF
15565 #define HAVE_KRB5_TICKET_ENC_PART2 1
15570 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15571 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15572 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15586 static krb5_ticket ac_aggr;
15587 if (ac_aggr.client)
15593 rm -f conftest.$ac_objext
15594 if { (ac_try="$ac_compile"
15595 case "(($ac_try" in
15596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15597 *) ac_try_echo
=$ac_try;;
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_compile") 2>conftest.er1
15602 grep -v '^ *+' conftest.er1
>conftest.err
15604 cat conftest.err
>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } && {
15607 test -z "$ac_c_werror_flag" ||
15608 test ! -s conftest.err
15609 } && test -s conftest.
$ac_objext; then
15610 ac_cv_member_krb5_ticket_client
=yes
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.
$ac_ext >&5
15615 cat >conftest.
$ac_ext <<_ACEOF
15618 cat confdefs.h
>>conftest.
$ac_ext
15619 cat >>conftest.
$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15626 static krb5_ticket ac_aggr;
15627 if (sizeof ac_aggr.client)
15633 rm -f conftest.
$ac_objext
15634 if { (ac_try
="$ac_compile"
15635 case "(($ac_try" in
15636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_compile") 2>conftest.er1
15642 grep -v '^ *+' conftest.er1 >conftest.err
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest.$ac_objext; then
15650 ac_cv_member_krb5_ticket_client=yes
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 ac_cv_member_krb5_ticket_client=no
15658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15664 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15665 if test $ac_cv_member_krb5_ticket_client = yes; then
15667 cat >>confdefs.h <<_ACEOF
15668 #define HAVE_KRB5_TICKET_CLIENT 1
15673 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15674 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15675 { (exit 1); exit 1; }; }
15680 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15681 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15682 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 cat >conftest.$ac_ext <<_ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15696 static krb5_error ac_aggr;
15697 if (ac_aggr.text.data)
15703 rm -f conftest.$ac_objext
15704 if { (ac_try="$ac_compile"
15705 case "(($ac_try" in
15706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15707 *) ac_try_echo
=$ac_try;;
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_compile") 2>conftest.er1
15712 grep -v '^ *+' conftest.er1
>conftest.err
15714 cat conftest.err
>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && {
15717 test -z "$ac_c_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest.
$ac_objext; then
15720 ac_cv_member_krb5_error_text_data
=yes
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.
$ac_ext >&5
15725 cat >conftest.
$ac_ext <<_ACEOF
15728 cat confdefs.h
>>conftest.
$ac_ext
15729 cat >>conftest.
$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15736 static krb5_error ac_aggr;
15737 if (sizeof ac_aggr.text.data)
15743 rm -f conftest.
$ac_objext
15744 if { (ac_try
="$ac_compile"
15745 case "(($ac_try" in
15746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_compile") 2>conftest.er1
15752 grep -v '^ *+' conftest.er1 >conftest.err
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && {
15757 test -z "$ac_c_werror_flag" ||
15758 test ! -s conftest.err
15759 } && test -s conftest.$ac_objext; then
15760 ac_cv_member_krb5_error_text_data=yes
15762 echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15765 ac_cv_member_krb5_error_text_data=no
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15774 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15775 if test $ac_cv_member_krb5_error_text_data = yes; then
15777 cat >>confdefs.h <<_ACEOF
15778 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15783 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15784 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15785 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15799 static krb5_error ac_aggr;
15800 if (ac_aggr.e_data)
15806 rm -f conftest.$ac_objext
15807 if { (ac_try="$ac_compile"
15808 case "(($ac_try" in
15809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15810 *) ac_try_echo
=$ac_try;;
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_compile") 2>conftest.er1
15815 grep -v '^ *+' conftest.er1
>conftest.err
15817 cat conftest.err
>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } && {
15820 test -z "$ac_c_werror_flag" ||
15821 test ! -s conftest.err
15822 } && test -s conftest.
$ac_objext; then
15823 ac_cv_member_krb5_error_e_data
=yes
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.
$ac_ext >&5
15828 cat >conftest.
$ac_ext <<_ACEOF
15831 cat confdefs.h
>>conftest.
$ac_ext
15832 cat >>conftest.
$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15839 static krb5_error ac_aggr;
15840 if (sizeof ac_aggr.e_data)
15846 rm -f conftest.
$ac_objext
15847 if { (ac_try
="$ac_compile"
15848 case "(($ac_try" in
15849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15853 (eval "$ac_compile") 2>conftest.er1
15855 grep -v '^ *+' conftest.er1 >conftest.err
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } && {
15860 test -z "$ac_c_werror_flag" ||
15861 test ! -s conftest.err
15862 } && test -s conftest.$ac_objext; then
15863 ac_cv_member_krb5_error_e_data=yes
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_cv_member_krb5_error_e_data=no
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15876 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15877 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15878 if test $ac_cv_member_krb5_error_e_data = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_KRB5_ERROR_E_DATA 1
15886 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15887 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15888 { (exit 1); exit 1; }; }
15894 # Win32 requires headers to be loaded for __stdcall, so can't use
15895 # AC_CHECK_FUNCS here.
15896 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15897 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15908 krb5_free_unparsed_name(NULL,NULL);
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (ac_try="$ac_link"
15915 case "(($ac_try" in
15916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15917 *) ac_try_echo
=$ac_try;;
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_link") 2>conftest.er1
15922 grep -v '^ *+' conftest.er1
>conftest.err
15924 cat conftest.err
>&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } && {
15927 test -z "$ac_c_werror_flag" ||
15928 test ! -s conftest.err
15929 } && test -s conftest
$ac_exeext &&
15930 $as_test_x conftest
$ac_exeext; then
15932 cat >>confdefs.h
<<\_ACEOF
15933 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15936 { echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6; }
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.
$ac_ext >&5
15942 { echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6; }
15946 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15947 conftest
$ac_exeext conftest.
$ac_ext
15952 ## Functions, global variables
15955 { echo "$as_me:$LINENO: checking for int timezone" >&5
15956 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15957 if test "${pgac_cv_var_int_timezone+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 cat >conftest.
$ac_ext <<_ACEOF
15963 cat confdefs.h
>>conftest.
$ac_ext
15964 cat >>conftest.
$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15972 res = timezone / 60;
15974 res = _timezone / 60;
15980 rm -f conftest.
$ac_objext conftest
$ac_exeext
15981 if { (ac_try
="$ac_link"
15982 case "(($ac_try" in
15983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest$ac_exeext &&
15997 $as_test_x conftest$ac_exeext; then
15998 pgac_cv_var_int_timezone=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 pgac_cv_var_int_timezone=no
16006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16007 conftest$ac_exeext conftest.$ac_ext
16009 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16010 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16011 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16013 cat >>confdefs.h <<\_ACEOF
16014 #define HAVE_INT_TIMEZONE
16018 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16019 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16020 if test "${ac_cv_func_accept_return+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 if test "${ac_cv_func_accept_arg1+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 if test "${ac_cv_func_accept_arg2+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 if test "${ac_cv_func_accept_arg3+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16033 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16034 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16035 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 #ifdef HAVE_SYS_TYPES_H
16043 #include <sys/types.h>
16045 #ifdef HAVE_SYS_SOCKET_H
16046 #include <sys/socket.h>
16048 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16061 *) ac_try_echo
=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1
>conftest.err
16068 cat conftest.err
>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest.
$ac_objext; then
16074 ac_not_found
=no
; break 4
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.
$ac_ext >&5
16082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16087 if test "$ac_not_found" = yes; then
16088 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16089 echo "$as_me: error: could not determine argument types" >&2;}
16090 { (exit 1); exit 1; }; }
16092 if test "$ac_cv_func_accept_arg3" = "void"; then
16093 ac_cv_func_accept_arg3
=int
16103 { 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
16104 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16106 cat >>confdefs.h
<<_ACEOF
16107 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16111 cat >>confdefs.h
<<_ACEOF
16112 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16116 cat >>confdefs.h
<<_ACEOF
16117 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16121 cat >>confdefs.h
<<_ACEOF
16122 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16126 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16127 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16128 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 cat >conftest.
$ac_ext <<_ACEOF
16134 cat confdefs.h
>>conftest.
$ac_ext
16135 cat >>conftest.
$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 #include <sys/time.h>
16141 struct timeval *tp;
16142 struct timezone *tzp;
16143 gettimeofday(tp,tzp);
16148 rm -f conftest.
$ac_objext
16149 if { (ac_try
="$ac_compile"
16150 case "(($ac_try" in
16151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_compile") 2>conftest.er1
16157 grep -v '^ *+' conftest.er1 >conftest.err
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } && {
16162 test -z "$ac_c_werror_flag" ||
16163 test ! -s conftest.err
16164 } && test -s conftest.$ac_objext; then
16165 pgac_cv_func_gettimeofday_1arg=no
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 pgac_cv_func_gettimeofday_1arg=yes
16173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16176 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16177 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16179 cat >>confdefs.h <<\_ACEOF
16180 #define GETTIMEOFDAY_1ARG
16208 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
16210 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16211 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16213 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 cat >conftest.$ac_ext <<_ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16224 #define $ac_func innocuous_$ac_func
16226 /* System header to define __stub macros and hopefully few prototypes,
16227 which can conflict with char $ac_func (); below.
16228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16229 <limits.h> exists even on freestanding compilers. */
16232 # include <limits.h>
16234 # include <assert.h>
16239 /* Override any GCC internal prototype to avoid an error.
16240 Use char because int might match the return type of a GCC
16241 builtin and then its argument prototype would still apply. */
16246 /* The GNU C library defines this for functions which it implements
16247 to always fail with ENOSYS. Some functions are actually named
16248 something starting with __ and the normal name is an alias. */
16249 #if defined __stub_$ac_func || defined __stub___$ac_func
16256 return $ac_func ();
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (ac_try="$ac_link"
16263 case "(($ac_try" in
16264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16265 *) ac_try_echo
=$ac_try;;
16267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16268 (eval "$ac_link") 2>conftest.er1
16270 grep -v '^ *+' conftest.er1
>conftest.err
16272 cat conftest.err
>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest
$ac_exeext &&
16278 $as_test_x conftest
$ac_exeext; then
16279 eval "$as_ac_var=yes"
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.
$ac_ext >&5
16284 eval "$as_ac_var=no"
16287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16288 conftest
$ac_exeext conftest.
$ac_ext
16290 ac_res
=`eval echo '${'$as_ac_var'}'`
16291 { echo "$as_me:$LINENO: result: $ac_res" >&5
16292 echo "${ECHO_T}$ac_res" >&6; }
16293 if test `eval echo '${'$as_ac_var'}'` = yes; then
16294 cat >>confdefs.h
<<_ACEOF
16295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16302 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16303 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16304 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 cat >conftest.
$ac_ext <<_ACEOF
16310 cat confdefs.h
>>conftest.
$ac_ext
16311 cat >>conftest.
$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <unistd.h>
16326 rm -f conftest.
$ac_objext
16327 if { (ac_try
="$ac_compile"
16328 case "(($ac_try" in
16329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_compile") 2>conftest.er1
16335 grep -v '^ *+' conftest.er1 >conftest.err
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } && {
16340 test -z "$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16342 } && test -s conftest.$ac_objext; then
16343 ac_cv_have_decl_fdatasync=yes
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 ac_cv_have_decl_fdatasync=no
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16354 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16355 if test $ac_cv_have_decl_fdatasync = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_DECL_FDATASYNC 1
16363 cat >>confdefs.h <<_ACEOF
16364 #define HAVE_DECL_FDATASYNC 0
16371 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16372 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16373 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 cat >conftest.$ac_ext <<_ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16387 #ifndef posix_fadvise
16388 (void) posix_fadvise;
16395 rm -f conftest.$ac_objext
16396 if { (ac_try="$ac_compile"
16397 case "(($ac_try" in
16398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16399 *) ac_try_echo
=$ac_try;;
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_compile") 2>conftest.er1
16404 grep -v '^ *+' conftest.er1
>conftest.err
16406 cat conftest.err
>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } && {
16409 test -z "$ac_c_werror_flag" ||
16410 test ! -s conftest.err
16411 } && test -s conftest.
$ac_objext; then
16412 ac_cv_have_decl_posix_fadvise
=yes
16414 echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.
$ac_ext >&5
16417 ac_cv_have_decl_posix_fadvise
=no
16420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16422 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16423 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16424 if test $ac_cv_have_decl_posix_fadvise = yes; then
16426 cat >>confdefs.h
<<_ACEOF
16427 #define HAVE_DECL_POSIX_FADVISE 1
16432 cat >>confdefs.h
<<_ACEOF
16433 #define HAVE_DECL_POSIX_FADVISE 0
16440 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16441 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16442 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16445 cat >conftest.
$ac_ext <<_ACEOF
16448 cat confdefs.h
>>conftest.
$ac_ext
16449 cat >>conftest.
$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 $ac_includes_default
16463 rm -f conftest.
$ac_objext
16464 if { (ac_try
="$ac_compile"
16465 case "(($ac_try" in
16466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_compile") 2>conftest.er1
16472 grep -v '^ *+' conftest.er1 >conftest.err
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } && {
16477 test -z "$ac_c_werror_flag" ||
16478 test ! -s conftest.err
16479 } && test -s conftest.$ac_objext; then
16480 ac_cv_have_decl_strlcat=yes
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16485 ac_cv_have_decl_strlcat=no
16488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16491 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16492 if test $ac_cv_have_decl_strlcat = yes; then
16494 cat >>confdefs.h <<_ACEOF
16495 #define HAVE_DECL_STRLCAT 1
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_DECL_STRLCAT 0
16506 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16507 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16508 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 $ac_includes_default
16529 rm -f conftest.$ac_objext
16530 if { (ac_try="$ac_compile"
16531 case "(($ac_try" in
16532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16533 *) ac_try_echo
=$ac_try;;
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_compile") 2>conftest.er1
16538 grep -v '^ *+' conftest.er1
>conftest.err
16540 cat conftest.err
>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest.
$ac_objext; then
16546 ac_cv_have_decl_strlcpy
=yes
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.
$ac_ext >&5
16551 ac_cv_have_decl_strlcpy
=no
16554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16557 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16558 if test $ac_cv_have_decl_strlcpy = yes; then
16560 cat >>confdefs.h
<<_ACEOF
16561 #define HAVE_DECL_STRLCPY 1
16566 cat >>confdefs.h
<<_ACEOF
16567 #define HAVE_DECL_STRLCPY 0
16574 # This is probably only present on Darwin, but may as well check always
16575 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16576 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16577 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 cat >conftest.
$ac_ext <<_ACEOF
16583 cat confdefs.h
>>conftest.
$ac_ext
16584 cat >>conftest.
$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16591 #ifndef F_FULLFSYNC
16592 (void) F_FULLFSYNC;
16599 rm -f conftest.
$ac_objext
16600 if { (ac_try
="$ac_compile"
16601 case "(($ac_try" in
16602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_compile") 2>conftest.er1
16608 grep -v '^ *+' conftest.er1 >conftest.err
16610 cat conftest.err >&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } && {
16613 test -z "$ac_c_werror_flag" ||
16614 test ! -s conftest.err
16615 } && test -s conftest.$ac_objext; then
16616 ac_cv_have_decl_F_FULLFSYNC=yes
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 ac_cv_have_decl_F_FULLFSYNC=no
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16627 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16628 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16630 cat >>confdefs.h <<_ACEOF
16631 #define HAVE_DECL_F_FULLFSYNC 1
16636 cat >>confdefs.h <<_ACEOF
16637 #define HAVE_DECL_F_FULLFSYNC 0
16646 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16647 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16648 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 $ac_includes_default
16658 #include <netinet/in.h>
16660 typedef struct sockaddr_in6 ac__type_new_;
16664 if ((ac__type_new_ *) 0)
16666 if (sizeof (ac__type_new_))
16672 rm -f conftest.$ac_objext
16673 if { (ac_try="$ac_compile"
16674 case "(($ac_try" in
16675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16676 *) ac_try_echo
=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_compile") 2>conftest.er1
16681 grep -v '^ *+' conftest.er1
>conftest.err
16683 cat conftest.err
>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); } && {
16686 test -z "$ac_c_werror_flag" ||
16687 test ! -s conftest.err
16688 } && test -s conftest.
$ac_objext; then
16689 ac_cv_type_struct_sockaddr_in6
=yes
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.
$ac_ext >&5
16694 ac_cv_type_struct_sockaddr_in6
=no
16697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16699 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16700 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16701 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16703 cat >>confdefs.h
<<\_ACEOF
16704 #define HAVE_IPV6 1
16712 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16713 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16714 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 cat >conftest.
$ac_ext <<_ACEOF
16720 cat confdefs.h
>>conftest.
$ac_ext
16721 cat >>conftest.
$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 #include <machine/vmparam.h>
16724 #include <sys/exec.h>
16729 PS_STRINGS->ps_nargvstr = 1;
16730 PS_STRINGS->ps_argvstr = "foo";
16735 rm -f conftest.
$ac_objext conftest
$ac_exeext
16736 if { (ac_try
="$ac_link"
16737 case "(($ac_try" in
16738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_link") 2>conftest.er1
16744 grep -v '^ *+' conftest.er1 >conftest.err
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } && {
16749 test -z "$ac_c_werror_flag" ||
16750 test ! -s conftest.err
16751 } && test -s conftest$ac_exeext &&
16752 $as_test_x conftest$ac_exeext; then
16753 pgac_cv_var_PS_STRINGS=yes
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 pgac_cv_var_PS_STRINGS=no
16761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16762 conftest$ac_exeext conftest.$ac_ext
16764 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16765 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16766 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16768 cat >>confdefs.h <<\_ACEOF
16769 #define HAVE_PS_STRINGS
16775 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16776 # is missing. Yes, there are machines that have only one. We may
16777 # also decide to use snprintf.c if snprintf() is present but does not
16778 # have all the features we need --- see below.
16780 if test "$PORTNAME" = "win32"; then
16781 # Win32 gets snprintf.c built unconditionally.
16783 # To properly translate all NLS languages strings, we must support the
16784 # *printf() %$ format, which allows *printf() arguments to be selected
16785 # by position in the translated string.
16787 # libintl versions < 0.13 use the native *printf() functions, and Win32
16788 # *printf() doesn't understand %$, so we must use our /port versions,
16789 # which do understand %$. libintl versions >= 0.13 include their own
16790 # *printf versions on Win32. The libintl 0.13 release note text is:
16792 # C format strings with positions, as they arise when a translator
16793 # needs to reorder a sentence, are now supported on all platforms.
16794 # On those few platforms (NetBSD and Woe32) for which the native
16795 # printf()/fprintf()/... functions don't support such format
16796 # strings, replacements are provided through <libintl.h>.
16798 # We could use libintl >= 0.13's *printf() if we were sure that we had
16799 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16800 # to guarantee that, it is best to just use our own, so we are sure to
16801 # get %$ support. In include/port.h we disable the *printf() macros
16802 # that might have been defined by libintl.
16804 # We do this unconditionally whether NLS is used or not so we are sure
16805 # that all Win32 libraries and binaries behave the same.
16806 pgac_need_repl_snprintf=yes
16808 pgac_need_repl_snprintf=no
16810 for ac_func in snprintf
16812 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 cat >conftest.$ac_ext <<_ACEOF
16821 cat confdefs.h >>conftest.$ac_ext
16822 cat >>conftest.$ac_ext <<_ACEOF
16823 /* end confdefs.h. */
16824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16826 #define $ac_func innocuous_$ac_func
16828 /* System header to define __stub macros and hopefully few prototypes,
16829 which can conflict with char $ac_func (); below.
16830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16831 <limits.h> exists even on freestanding compilers. */
16834 # include <limits.h>
16836 # include <assert.h>
16841 /* Override any GCC internal prototype to avoid an error.
16842 Use char because int might match the return type of a GCC
16843 builtin and then its argument prototype would still apply. */
16848 /* The GNU C library defines this for functions which it implements
16849 to always fail with ENOSYS. Some functions are actually named
16850 something starting with __ and the normal name is an alias. */
16851 #if defined __stub_$ac_func || defined __stub___$ac_func
16858 return $ac_func ();
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (ac_try="$ac_link"
16865 case "(($ac_try" in
16866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16867 *) ac_try_echo
=$ac_try;;
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_link") 2>conftest.er1
16872 grep -v '^ *+' conftest.er1
>conftest.err
16874 cat conftest.err
>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } && {
16877 test -z "$ac_c_werror_flag" ||
16878 test ! -s conftest.err
16879 } && test -s conftest
$ac_exeext &&
16880 $as_test_x conftest
$ac_exeext; then
16881 eval "$as_ac_var=yes"
16883 echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.
$ac_ext >&5
16886 eval "$as_ac_var=no"
16889 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16890 conftest
$ac_exeext conftest.
$ac_ext
16892 ac_res
=`eval echo '${'$as_ac_var'}'`
16893 { echo "$as_me:$LINENO: result: $ac_res" >&5
16894 echo "${ECHO_T}$ac_res" >&6; }
16895 if test `eval echo '${'$as_ac_var'}'` = yes; then
16896 cat >>confdefs.h
<<_ACEOF
16897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16901 pgac_need_repl_snprintf
=yes
16906 for ac_func
in vsnprintf
16908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16911 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 cat >conftest.
$ac_ext <<_ACEOF
16917 cat confdefs.h
>>conftest.
$ac_ext
16918 cat >>conftest.
$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16922 #define $ac_func innocuous_$ac_func
16924 /* System header to define __stub macros and hopefully few prototypes,
16925 which can conflict with char $ac_func (); below.
16926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16927 <limits.h> exists even on freestanding compilers. */
16930 # include <limits.h>
16932 # include <assert.h>
16937 /* Override any GCC internal prototype to avoid an error.
16938 Use char because int might match the return type of a GCC
16939 builtin and then its argument prototype would still apply. */
16944 /* The GNU C library defines this for functions which it implements
16945 to always fail with ENOSYS. Some functions are actually named
16946 something starting with __ and the normal name is an alias. */
16947 #if defined __stub_$ac_func || defined __stub___$ac_func
16954 return $ac_func ();
16959 rm -f conftest.
$ac_objext conftest
$ac_exeext
16960 if { (ac_try
="$ac_link"
16961 case "(($ac_try" in
16962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_link") 2>conftest.er1
16968 grep -v '^ *+' conftest.er1 >conftest.err
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } && {
16973 test -z "$ac_c_werror_flag" ||
16974 test ! -s conftest.err
16975 } && test -s conftest$ac_exeext &&
16976 $as_test_x conftest$ac_exeext; then
16977 eval "$as_ac_var=yes"
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16982 eval "$as_ac_var=no"
16985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16986 conftest$ac_exeext conftest.$ac_ext
16988 ac_res=`eval echo '${'$as_ac_var'}'`
16989 { echo "$as_me:$LINENO: result: $ac_res" >&5
16990 echo "${ECHO_T}$ac_res" >&6; }
16991 if test `eval echo '${'$as_ac_var'}'` = yes; then
16992 cat >>confdefs.h <<_ACEOF
16993 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16997 pgac_need_repl_snprintf=yes
17004 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17005 # include/c.h will provide declarations. Note this is a separate test
17006 # from whether the functions exist in the C library --- there are
17007 # systems that have the functions but don't bother to declare them :-(
17009 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17010 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17011 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 cat >conftest.$ac_ext <<_ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 $ac_includes_default
17032 rm -f conftest.$ac_objext
17033 if { (ac_try="$ac_compile"
17034 case "(($ac_try" in
17035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17036 *) ac_try_echo
=$ac_try;;
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_compile") 2>conftest.er1
17041 grep -v '^ *+' conftest.er1
>conftest.err
17043 cat conftest.err
>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest.
$ac_objext; then
17049 ac_cv_have_decl_snprintf
=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.
$ac_ext >&5
17054 ac_cv_have_decl_snprintf
=no
17057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17059 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17060 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17061 if test $ac_cv_have_decl_snprintf = yes; then
17063 cat >>confdefs.h
<<_ACEOF
17064 #define HAVE_DECL_SNPRINTF 1
17069 cat >>confdefs.h
<<_ACEOF
17070 #define HAVE_DECL_SNPRINTF 0
17075 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17076 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17077 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 cat >conftest.
$ac_ext <<_ACEOF
17083 cat confdefs.h
>>conftest.
$ac_ext
17084 cat >>conftest.
$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 $ac_includes_default
17098 rm -f conftest.
$ac_objext
17099 if { (ac_try
="$ac_compile"
17100 case "(($ac_try" in
17101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_compile") 2>conftest.er1
17107 grep -v '^ *+' conftest.er1 >conftest.err
17109 cat conftest.err >&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest.$ac_objext; then
17115 ac_cv_have_decl_vsnprintf=yes
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ac_cv_have_decl_vsnprintf=no
17123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17126 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17127 if test $ac_cv_have_decl_vsnprintf = yes; then
17129 cat >>confdefs.h <<_ACEOF
17130 #define HAVE_DECL_VSNPRINTF 1
17135 cat >>confdefs.h <<_ACEOF
17136 #define HAVE_DECL_VSNPRINTF 0
17145 { echo "$as_me:$LINENO: checking for isinf" >&5
17146 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17147 if test "${ac_cv_func_isinf+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 cat >conftest.$ac_ext <<_ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17158 double glob_double;
17163 return isinf(glob_double) ? 0 : 1;
17168 rm -f conftest.$ac_objext conftest$ac_exeext
17169 if { (ac_try="$ac_link"
17170 case "(($ac_try" in
17171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17172 *) ac_try_echo
=$ac_try;;
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_link") 2>conftest.er1
17177 grep -v '^ *+' conftest.er1
>conftest.err
17179 cat conftest.err
>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } && {
17182 test -z "$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17184 } && test -s conftest
$ac_exeext &&
17185 $as_test_x conftest
$ac_exeext; then
17186 ac_cv_func_isinf
=yes
17188 echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.
$ac_ext >&5
17191 ac_cv_func_isinf
=no
17194 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17195 conftest
$ac_exeext conftest.
$ac_ext
17197 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17198 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17200 if test $ac_cv_func_isinf = yes ; then
17202 cat >>confdefs.h
<<\_ACEOF
17203 #define HAVE_ISINF 1
17207 case " $LIBOBJS " in
17208 *" isinf.$ac_objext "* ) ;;
17209 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
17213 # Look for a way to implement a substitute for isinf()
17218 for ac_func
in fpclass fp_class fp_class_d class
17220 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 cat >conftest.
$ac_ext <<_ACEOF
17229 cat confdefs.h
>>conftest.
$ac_ext
17230 cat >>conftest.
$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234 #define $ac_func innocuous_$ac_func
17236 /* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17242 # include <limits.h>
17244 # include <assert.h>
17249 /* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17256 /* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259 #if defined __stub_$ac_func || defined __stub___$ac_func
17266 return $ac_func ();
17271 rm -f conftest.
$ac_objext conftest
$ac_exeext
17272 if { (ac_try
="$ac_link"
17273 case "(($ac_try" in
17274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest$ac_exeext &&
17288 $as_test_x conftest$ac_exeext; then
17289 eval "$as_ac_var=yes"
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 eval "$as_ac_var=no"
17297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17298 conftest$ac_exeext conftest.$ac_ext
17300 ac_res=`eval echo '${'$as_ac_var'}'`
17301 { echo "$as_me:$LINENO: result: $ac_res" >&5
17302 echo "${ECHO_T}$ac_res" >&6; }
17303 if test `eval echo '${'$as_ac_var'}'` = yes; then
17304 cat >>confdefs.h <<_ACEOF
17305 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17313 # Some versions of libedit contain strlcpy(); so disregard that library while
17314 # checking for these standard libc functions.
17315 pgac_save_LIBS="$LIBS"
17316 LIBS=`echo "$LIBS" |
sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17332 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17334 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348 #define $ac_func innocuous_$ac_func
17350 /* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17356 # include <limits.h>
17358 # include <assert.h>
17363 /* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17370 /* The GNU C library defines this for functions which it implements
17371 to always fail with ENOSYS. Some functions are actually named
17372 something starting with __ and the normal name is an alias. */
17373 #if defined __stub_$ac_func || defined __stub___$ac_func
17380 return $ac_func ();
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (ac_try="$ac_link"
17387 case "(($ac_try" in
17388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17389 *) ac_try_echo
=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_link") 2>conftest.er1
17394 grep -v '^ *+' conftest.er1
>conftest.err
17396 cat conftest.err
>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && {
17399 test -z "$ac_c_werror_flag" ||
17400 test ! -s conftest.err
17401 } && test -s conftest
$ac_exeext &&
17402 $as_test_x conftest
$ac_exeext; then
17403 eval "$as_ac_var=yes"
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.
$ac_ext >&5
17408 eval "$as_ac_var=no"
17411 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17412 conftest
$ac_exeext conftest.
$ac_ext
17414 ac_res
=`eval echo '${'$as_ac_var'}'`
17415 { echo "$as_me:$LINENO: result: $ac_res" >&5
17416 echo "${ECHO_T}$ac_res" >&6; }
17417 if test `eval echo '${'$as_ac_var'}'` = yes; then
17418 cat >>confdefs.h
<<_ACEOF
17419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17423 case " $LIBOBJS " in
17424 *" $ac_func.$ac_objext "* ) ;;
17425 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17434 LIBS
="$pgac_save_LIBS"
17436 # System's version of getaddrinfo(), if any, may be used only if we found
17437 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17438 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17439 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17440 # because we want to use our own getaddrinfo.c on Windows anyway.)
17441 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
17443 for ac_func
in getaddrinfo
17445 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 cat >conftest.
$ac_ext <<_ACEOF
17454 cat confdefs.h
>>conftest.
$ac_ext
17455 cat >>conftest.
$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17459 #define $ac_func innocuous_$ac_func
17461 /* System header to define __stub macros and hopefully few prototypes,
17462 which can conflict with char $ac_func (); below.
17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464 <limits.h> exists even on freestanding compilers. */
17467 # include <limits.h>
17469 # include <assert.h>
17474 /* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17481 /* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484 #if defined __stub_$ac_func || defined __stub___$ac_func
17491 return $ac_func ();
17496 rm -f conftest.
$ac_objext conftest
$ac_exeext
17497 if { (ac_try
="$ac_link"
17498 case "(($ac_try" in
17499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17505 grep -v '^ *+' conftest.er1 >conftest.err
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } && {
17510 test -z "$ac_c_werror_flag" ||
17511 test ! -s conftest.err
17512 } && test -s conftest$ac_exeext &&
17513 $as_test_x conftest$ac_exeext; then
17514 eval "$as_ac_var=yes"
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 eval "$as_ac_var=no"
17522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17523 conftest$ac_exeext conftest.$ac_ext
17525 ac_res=`eval echo '${'$as_ac_var'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 if test `eval echo '${'$as_ac_var'}'` = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17534 case " $LIBOBJS " in
17535 *" $ac_func.$ac_objext "* ) ;;
17536 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17545 case " $LIBOBJS " in
17546 *" getaddrinfo.$ac_objext "* ) ;;
17547 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17553 # Similarly, use system's getopt_long() only if system provides struct option.
17554 # Solaris' getopt() doesn't do what we want for long options, so always use
17555 # our versions on that platform.
17556 if test "$PORTNAME" = "solaris"; then
17557 case " $LIBOBJS " in
17558 *" getopt.$ac_objext "* ) ;;
17559 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17563 case " $LIBOBJS " in
17564 *" getopt_long.$ac_objext "* ) ;;
17565 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17569 elif test x"$ac_cv_type_struct_option" = xyes ; then
17571 for ac_func in getopt_long
17573 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 cat >conftest.$ac_ext <<_ACEOF
17582 cat confdefs.h >>conftest.$ac_ext
17583 cat >>conftest.$ac_ext <<_ACEOF
17584 /* end confdefs.h. */
17585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17587 #define $ac_func innocuous_$ac_func
17589 /* System header to define __stub macros and hopefully few prototypes,
17590 which can conflict with char $ac_func (); below.
17591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17592 <limits.h> exists even on freestanding compilers. */
17595 # include <limits.h>
17597 # include <assert.h>
17602 /* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
17609 /* The GNU C library defines this for functions which it implements
17610 to always fail with ENOSYS. Some functions are actually named
17611 something starting with __ and the normal name is an alias. */
17612 #if defined __stub_$ac_func || defined __stub___$ac_func
17619 return $ac_func ();
17624 rm -f conftest.$ac_objext conftest$ac_exeext
17625 if { (ac_try="$ac_link"
17626 case "(($ac_try" in
17627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17628 *) ac_try_echo
=$ac_try;;
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_link") 2>conftest.er1
17633 grep -v '^ *+' conftest.er1
>conftest.err
17635 cat conftest.err
>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } && {
17638 test -z "$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17640 } && test -s conftest
$ac_exeext &&
17641 $as_test_x conftest
$ac_exeext; then
17642 eval "$as_ac_var=yes"
17644 echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.
$ac_ext >&5
17647 eval "$as_ac_var=no"
17650 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17651 conftest
$ac_exeext conftest.
$ac_ext
17653 ac_res
=`eval echo '${'$as_ac_var'}'`
17654 { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17656 if test `eval echo '${'$as_ac_var'}'` = yes; then
17657 cat >>confdefs.h
<<_ACEOF
17658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17662 case " $LIBOBJS " in
17663 *" $ac_func.$ac_objext "* ) ;;
17664 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17673 case " $LIBOBJS " in
17674 *" getopt_long.$ac_objext "* ) ;;
17675 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
17682 if test "$PORTNAME" = "win32"; then
17684 for ac_func
in gettimeofday
17686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17689 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 cat >conftest.
$ac_ext <<_ACEOF
17695 cat confdefs.h
>>conftest.
$ac_ext
17696 cat >>conftest.
$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17700 #define $ac_func innocuous_$ac_func
17702 /* System header to define __stub macros and hopefully few prototypes,
17703 which can conflict with char $ac_func (); below.
17704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17705 <limits.h> exists even on freestanding compilers. */
17708 # include <limits.h>
17710 # include <assert.h>
17715 /* Override any GCC internal prototype to avoid an error.
17716 Use char because int might match the return type of a GCC
17717 builtin and then its argument prototype would still apply. */
17722 /* The GNU C library defines this for functions which it implements
17723 to always fail with ENOSYS. Some functions are actually named
17724 something starting with __ and the normal name is an alias. */
17725 #if defined __stub_$ac_func || defined __stub___$ac_func
17732 return $ac_func ();
17737 rm -f conftest.
$ac_objext conftest
$ac_exeext
17738 if { (ac_try
="$ac_link"
17739 case "(($ac_try" in
17740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_link") 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && {
17751 test -z "$ac_c_werror_flag" ||
17752 test ! -s conftest.err
17753 } && test -s conftest$ac_exeext &&
17754 $as_test_x conftest$ac_exeext; then
17755 eval "$as_ac_var=yes"
17757 echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 eval "$as_ac_var=no"
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764 conftest$ac_exeext conftest.$ac_ext
17766 ac_res=`eval echo '${'$as_ac_var'}'`
17767 { echo "$as_me:$LINENO: result: $ac_res" >&5
17768 echo "${ECHO_T}$ac_res" >&6; }
17769 if test `eval echo '${'$as_ac_var'}'` = yes; then
17770 cat >>confdefs.h <<_ACEOF
17771 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17775 case " $LIBOBJS " in
17776 *" $ac_func.$ac_objext "* ) ;;
17777 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17785 case " $LIBOBJS " in
17786 *" kill.$ac_objext "* ) ;;
17787 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17791 case " $LIBOBJS " in
17792 *" open.$ac_objext "* ) ;;
17793 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17797 case " $LIBOBJS " in
17798 *" rand.$ac_objext "* ) ;;
17799 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17803 case " $LIBOBJS " in
17804 *" win32error.$ac_objext "* ) ;;
17805 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17810 cat >>confdefs.h <<\_ACEOF
17811 #define HAVE_SYMLINK 1
17816 if test "$with_readline" = yes; then
17817 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17818 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17826 #ifdef HAVE_READLINE_READLINE_H
17827 # include <readline/readline.h>
17828 #elif defined(HAVE_READLINE_H)
17829 # include <readline.h>
17835 rl_completion_append_character = 'x';
17840 rm -f conftest.$ac_objext conftest$ac_exeext
17841 if { (ac_try="$ac_link"
17842 case "(($ac_try" in
17843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17844 *) ac_try_echo
=$ac_try;;
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_link") 2>conftest.er1
17849 grep -v '^ *+' conftest.er1
>conftest.err
17851 cat conftest.err
>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } && {
17854 test -z "$ac_c_werror_flag" ||
17855 test ! -s conftest.err
17856 } && test -s conftest
$ac_exeext &&
17857 $as_test_x conftest
$ac_exeext; then
17858 { echo "$as_me:$LINENO: result: yes" >&5
17859 echo "${ECHO_T}yes" >&6; }
17861 cat >>confdefs.h
<<\_ACEOF
17862 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17866 echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.
$ac_ext >&5
17869 { echo "$as_me:$LINENO: result: no" >&5
17870 echo "${ECHO_T}no" >&6; }
17873 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17874 conftest
$ac_exeext conftest.
$ac_ext
17877 for ac_func
in rl_completion_matches rl_filename_completion_function
17879 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17882 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 cat >conftest.
$ac_ext <<_ACEOF
17888 cat confdefs.h
>>conftest.
$ac_ext
17889 cat >>conftest.
$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17893 #define $ac_func innocuous_$ac_func
17895 /* System header to define __stub macros and hopefully few prototypes,
17896 which can conflict with char $ac_func (); below.
17897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17898 <limits.h> exists even on freestanding compilers. */
17901 # include <limits.h>
17903 # include <assert.h>
17908 /* Override any GCC internal prototype to avoid an error.
17909 Use char because int might match the return type of a GCC
17910 builtin and then its argument prototype would still apply. */
17915 /* The GNU C library defines this for functions which it implements
17916 to always fail with ENOSYS. Some functions are actually named
17917 something starting with __ and the normal name is an alias. */
17918 #if defined __stub_$ac_func || defined __stub___$ac_func
17925 return $ac_func ();
17930 rm -f conftest.
$ac_objext conftest
$ac_exeext
17931 if { (ac_try
="$ac_link"
17932 case "(($ac_try" in
17933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17934 *) ac_try_echo=$ac_try;;
17936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17937 (eval "$ac_link") 2>conftest.er1
17939 grep -v '^ *+' conftest.er1 >conftest.err
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } && {
17944 test -z "$ac_c_werror_flag" ||
17945 test ! -s conftest.err
17946 } && test -s conftest$ac_exeext &&
17947 $as_test_x conftest$ac_exeext; then
17948 eval "$as_ac_var=yes"
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 eval "$as_ac_var=no"
17956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17957 conftest$ac_exeext conftest.$ac_ext
17959 ac_res=`eval echo '${'$as_ac_var'}'`
17960 { echo "$as_me:$LINENO: result: $ac_res" >&5
17961 echo "${ECHO_T}$ac_res" >&6; }
17962 if test `eval echo '${'$as_ac_var'}'` = yes; then
17963 cat >>confdefs.h <<_ACEOF
17964 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17971 for ac_func in replace_history_entry
17973 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 cat >conftest.$ac_ext <<_ACEOF
17982 cat confdefs.h >>conftest.$ac_ext
17983 cat >>conftest.$ac_ext <<_ACEOF
17984 /* end confdefs.h. */
17985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987 #define $ac_func innocuous_$ac_func
17989 /* System header to define __stub macros and hopefully few prototypes,
17990 which can conflict with char $ac_func (); below.
17991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992 <limits.h> exists even on freestanding compilers. */
17995 # include <limits.h>
17997 # include <assert.h>
18002 /* Override any GCC internal prototype to avoid an error.
18003 Use char because int might match the return type of a GCC
18004 builtin and then its argument prototype would still apply. */
18009 /* The GNU C library defines this for functions which it implements
18010 to always fail with ENOSYS. Some functions are actually named
18011 something starting with __ and the normal name is an alias. */
18012 #if defined __stub_$ac_func || defined __stub___$ac_func
18019 return $ac_func ();
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (ac_try="$ac_link"
18026 case "(($ac_try" in
18027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18028 *) ac_try_echo
=$ac_try;;
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_link") 2>conftest.er1
18033 grep -v '^ *+' conftest.er1
>conftest.err
18035 cat conftest.err
>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && {
18038 test -z "$ac_c_werror_flag" ||
18039 test ! -s conftest.err
18040 } && test -s conftest
$ac_exeext &&
18041 $as_test_x conftest
$ac_exeext; then
18042 eval "$as_ac_var=yes"
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.
$ac_ext >&5
18047 eval "$as_ac_var=no"
18050 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18051 conftest
$ac_exeext conftest.
$ac_ext
18053 ac_res
=`eval echo '${'$as_ac_var'}'`
18054 { echo "$as_me:$LINENO: result: $ac_res" >&5
18055 echo "${ECHO_T}$ac_res" >&6; }
18056 if test `eval echo '${'$as_ac_var'}'` = yes; then
18057 cat >>confdefs.h
<<_ACEOF
18058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18068 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18069 cat >conftest.
$ac_ext <<_ACEOF
18072 cat confdefs.h
>>conftest.
$ac_ext
18073 cat >>conftest.
$ac_ext <<_ACEOF
18074 /* end confdefs.h. */
18075 #include <setjmp.h>
18079 sigjmp_buf x; sigsetjmp(x, 1);
18084 rm -f conftest.
$ac_objext conftest
$ac_exeext
18085 if { (ac_try
="$ac_link"
18086 case "(($ac_try" in
18087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_link") 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } && {
18098 test -z "$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18100 } && test -s conftest$ac_exeext &&
18101 $as_test_x conftest$ac_exeext; then
18103 cat >>confdefs.h <<\_ACEOF
18104 #define HAVE_SIGSETJMP 1
18107 { echo "$as_me:$LINENO: result: yes" >&5
18108 echo "${ECHO_T}yes" >&6; }
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 { echo "$as_me:$LINENO: result: no" >&5
18114 echo "${ECHO_T}no" >&6; }
18117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18118 conftest$ac_exeext conftest.$ac_ext
18120 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18121 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18122 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 #include <signal.h>
18132 /* NetBSD declares sys_siglist in unistd.h. */
18133 #ifdef HAVE_UNISTD_H
18134 # include <unistd.h>
18141 #ifndef sys_siglist
18142 (void) sys_siglist;
18149 rm -f conftest.$ac_objext
18150 if { (ac_try="$ac_compile"
18151 case "(($ac_try" in
18152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18153 *) ac_try_echo
=$ac_try;;
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_compile") 2>conftest.er1
18158 grep -v '^ *+' conftest.er1
>conftest.err
18160 cat conftest.err
>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } && {
18163 test -z "$ac_c_werror_flag" ||
18164 test ! -s conftest.err
18165 } && test -s conftest.
$ac_objext; then
18166 ac_cv_have_decl_sys_siglist
=yes
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.
$ac_ext >&5
18171 ac_cv_have_decl_sys_siglist
=no
18174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18176 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18177 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18178 if test $ac_cv_have_decl_sys_siglist = yes; then
18180 cat >>confdefs.h
<<_ACEOF
18181 #define HAVE_DECL_SYS_SIGLIST 1
18186 cat >>confdefs.h
<<_ACEOF
18187 #define HAVE_DECL_SYS_SIGLIST 0
18196 { echo "$as_me:$LINENO: checking for syslog" >&5
18197 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18198 if test "${ac_cv_func_syslog+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 cat >conftest.
$ac_ext <<_ACEOF
18204 cat confdefs.h
>>conftest.
$ac_ext
18205 cat >>conftest.
$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18207 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18209 #define syslog innocuous_syslog
18211 /* System header to define __stub macros and hopefully few prototypes,
18212 which can conflict with char syslog (); below.
18213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18214 <limits.h> exists even on freestanding compilers. */
18217 # include <limits.h>
18219 # include <assert.h>
18224 /* Override any GCC internal prototype to avoid an error.
18225 Use char because int might match the return type of a GCC
18226 builtin and then its argument prototype would still apply. */
18231 /* The GNU C library defines this for functions which it implements
18232 to always fail with ENOSYS. Some functions are actually named
18233 something starting with __ and the normal name is an alias. */
18234 #if defined __stub_syslog || defined __stub___syslog
18246 rm -f conftest.
$ac_objext conftest
$ac_exeext
18247 if { (ac_try
="$ac_link"
18248 case "(($ac_try" in
18249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_link") 2>conftest.er1
18255 grep -v '^ *+' conftest.er1 >conftest.err
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } && {
18260 test -z "$ac_c_werror_flag" ||
18261 test ! -s conftest.err
18262 } && test -s conftest$ac_exeext &&
18263 $as_test_x conftest$ac_exeext; then
18264 ac_cv_func_syslog=yes
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18269 ac_cv_func_syslog=no
18272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18273 conftest$ac_exeext conftest.$ac_ext
18275 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18276 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18277 if test $ac_cv_func_syslog = yes; then
18278 if test "${ac_cv_header_syslog_h+set}" = set; then
18279 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18280 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18281 if test "${ac_cv_header_syslog_h+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18285 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18287 # Is the header compilable?
18288 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18289 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18290 cat >conftest.$ac_ext <<_ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 $ac_includes_default
18297 #include <syslog.h>
18299 rm -f conftest.$ac_objext
18300 if { (ac_try="$ac_compile"
18301 case "(($ac_try" in
18302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18303 *) ac_try_echo
=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_compile") 2>conftest.er1
18308 grep -v '^ *+' conftest.er1
>conftest.err
18310 cat conftest.err
>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } && {
18313 test -z "$ac_c_werror_flag" ||
18314 test ! -s conftest.err
18315 } && test -s conftest.
$ac_objext; then
18316 ac_header_compiler
=yes
18318 echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.
$ac_ext >&5
18321 ac_header_compiler
=no
18324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18326 echo "${ECHO_T}$ac_header_compiler" >&6; }
18328 # Is the header present?
18329 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18330 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18331 cat >conftest.
$ac_ext <<_ACEOF
18334 cat confdefs.h
>>conftest.
$ac_ext
18335 cat >>conftest.
$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 #include <syslog.h>
18339 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18340 case "(($ac_try" in
18341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18347 grep -v '^ *+' conftest.er1 >conftest.err
18349 cat conftest.err >&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } >/dev/null && {
18352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18353 test ! -s conftest.err
18355 ac_header_preproc=yes
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 ac_header_preproc=no
18363 rm -f conftest.err conftest.$ac_ext
18364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18365 echo "${ECHO_T}$ac_header_preproc" >&6; }
18367 # So? What about this header?
18368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18370 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18371 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18373 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18374 ac_header_preproc=yes
18377 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18378 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18379 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18380 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18382 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18383 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18384 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18385 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18386 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18387 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18388 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18390 ## ---------------------------------------- ##
18391 ## Report this to pgsql-bugs@postgresql.org ##
18392 ## ---------------------------------------- ##
18394 ) | sed "s/^/$as_me: WARNING: /" >&2
18397 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18398 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18399 if test "${ac_cv_header_syslog_h+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18402 ac_cv_header_syslog_h=$ac_header_preproc
18404 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18405 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18408 if test $ac_cv_header_syslog_h = yes; then
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE_SYSLOG 1
18420 { echo "$as_me:$LINENO: checking for optreset" >&5
18421 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18422 if test "${pgac_cv_var_int_optreset+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <unistd.h>
18435 extern int optreset; optreset = 1;
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18444 *) ac_try_echo
=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18449 grep -v '^ *+' conftest.er1
>conftest.err
18451 cat conftest.err
>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } && {
18454 test -z "$ac_c_werror_flag" ||
18455 test ! -s conftest.err
18456 } && test -s conftest
$ac_exeext &&
18457 $as_test_x conftest
$ac_exeext; then
18458 pgac_cv_var_int_optreset
=yes
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.
$ac_ext >&5
18463 pgac_cv_var_int_optreset
=no
18466 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18467 conftest
$ac_exeext conftest.
$ac_ext
18469 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18470 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18471 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
18473 cat >>confdefs.h
<<\_ACEOF
18474 #define HAVE_INT_OPTRESET 1
18481 for ac_func
in strtoll strtoq
18483 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18486 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 cat >conftest.
$ac_ext <<_ACEOF
18492 cat confdefs.h
>>conftest.
$ac_ext
18493 cat >>conftest.
$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18497 #define $ac_func innocuous_$ac_func
18499 /* System header to define __stub macros and hopefully few prototypes,
18500 which can conflict with char $ac_func (); below.
18501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18502 <limits.h> exists even on freestanding compilers. */
18505 # include <limits.h>
18507 # include <assert.h>
18512 /* Override any GCC internal prototype to avoid an error.
18513 Use char because int might match the return type of a GCC
18514 builtin and then its argument prototype would still apply. */
18519 /* The GNU C library defines this for functions which it implements
18520 to always fail with ENOSYS. Some functions are actually named
18521 something starting with __ and the normal name is an alias. */
18522 #if defined __stub_$ac_func || defined __stub___$ac_func
18529 return $ac_func ();
18534 rm -f conftest.
$ac_objext conftest
$ac_exeext
18535 if { (ac_try
="$ac_link"
18536 case "(($ac_try" in
18537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_link") 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } && {
18548 test -z "$ac_c_werror_flag" ||
18549 test ! -s conftest.err
18550 } && test -s conftest$ac_exeext &&
18551 $as_test_x conftest$ac_exeext; then
18552 eval "$as_ac_var=yes"
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 eval "$as_ac_var=no"
18560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18561 conftest$ac_exeext conftest.$ac_ext
18563 ac_res=`eval echo '${'$as_ac_var'}'`
18564 { echo "$as_me:$LINENO: result: $ac_res" >&5
18565 echo "${ECHO_T}$ac_res" >&6; }
18566 if test `eval echo '${'$as_ac_var'}'` = yes; then
18567 cat >>confdefs.h <<_ACEOF
18568 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18576 for ac_func in strtoull strtouq
18578 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 cat >conftest.$ac_ext <<_ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18592 #define $ac_func innocuous_$ac_func
18594 /* System header to define __stub macros and hopefully few prototypes,
18595 which can conflict with char $ac_func (); below.
18596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18597 <limits.h> exists even on freestanding compilers. */
18600 # include <limits.h>
18602 # include <assert.h>
18607 /* Override any GCC internal prototype to avoid an error.
18608 Use char because int might match the return type of a GCC
18609 builtin and then its argument prototype would still apply. */
18614 /* The GNU C library defines this for functions which it implements
18615 to always fail with ENOSYS. Some functions are actually named
18616 something starting with __ and the normal name is an alias. */
18617 #if defined __stub_$ac_func || defined __stub___$ac_func
18624 return $ac_func ();
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (ac_try="$ac_link"
18631 case "(($ac_try" in
18632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18633 *) ac_try_echo
=$ac_try;;
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_link") 2>conftest.er1
18638 grep -v '^ *+' conftest.er1
>conftest.err
18640 cat conftest.err
>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } && {
18643 test -z "$ac_c_werror_flag" ||
18644 test ! -s conftest.err
18645 } && test -s conftest
$ac_exeext &&
18646 $as_test_x conftest
$ac_exeext; then
18647 eval "$as_ac_var=yes"
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.
$ac_ext >&5
18652 eval "$as_ac_var=no"
18655 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18656 conftest
$ac_exeext conftest.
$ac_ext
18658 ac_res
=`eval echo '${'$as_ac_var'}'`
18659 { echo "$as_me:$LINENO: result: $ac_res" >&5
18660 echo "${ECHO_T}$ac_res" >&6; }
18661 if test `eval echo '${'$as_ac_var'}'` = yes; then
18662 cat >>confdefs.h
<<_ACEOF
18663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18670 # Check for one of atexit() or on_exit()
18672 for ac_func
in atexit
18674 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18677 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 cat >conftest.
$ac_ext <<_ACEOF
18683 cat confdefs.h
>>conftest.
$ac_ext
18684 cat >>conftest.
$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18688 #define $ac_func innocuous_$ac_func
18690 /* System header to define __stub macros and hopefully few prototypes,
18691 which can conflict with char $ac_func (); below.
18692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18693 <limits.h> exists even on freestanding compilers. */
18696 # include <limits.h>
18698 # include <assert.h>
18703 /* Override any GCC internal prototype to avoid an error.
18704 Use char because int might match the return type of a GCC
18705 builtin and then its argument prototype would still apply. */
18710 /* The GNU C library defines this for functions which it implements
18711 to always fail with ENOSYS. Some functions are actually named
18712 something starting with __ and the normal name is an alias. */
18713 #if defined __stub_$ac_func || defined __stub___$ac_func
18720 return $ac_func ();
18725 rm -f conftest.
$ac_objext conftest
$ac_exeext
18726 if { (ac_try
="$ac_link"
18727 case "(($ac_try" in
18728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } && {
18739 test -z "$ac_c_werror_flag" ||
18740 test ! -s conftest.err
18741 } && test -s conftest$ac_exeext &&
18742 $as_test_x conftest$ac_exeext; then
18743 eval "$as_ac_var=yes"
18745 echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 eval "$as_ac_var=no"
18751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18752 conftest$ac_exeext conftest.$ac_ext
18754 ac_res=`eval echo '${'$as_ac_var'}'`
18755 { echo "$as_me:$LINENO: result: $ac_res" >&5
18756 echo "${ECHO_T}$ac_res" >&6; }
18757 if test `eval echo '${'$as_ac_var'}'` = yes; then
18758 cat >>confdefs.h <<_ACEOF
18759 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18764 for ac_func in on_exit
18766 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 cat >conftest.$ac_ext <<_ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h. */
18778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18780 #define $ac_func innocuous_$ac_func
18782 /* System header to define __stub macros and hopefully few prototypes,
18783 which can conflict with char $ac_func (); below.
18784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18785 <limits.h> exists even on freestanding compilers. */
18788 # include <limits.h>
18790 # include <assert.h>
18795 /* Override any GCC internal prototype to avoid an error.
18796 Use char because int might match the return type of a GCC
18797 builtin and then its argument prototype would still apply. */
18802 /* The GNU C library defines this for functions which it implements
18803 to always fail with ENOSYS. Some functions are actually named
18804 something starting with __ and the normal name is an alias. */
18805 #if defined __stub_$ac_func || defined __stub___$ac_func
18812 return $ac_func ();
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (ac_try="$ac_link"
18819 case "(($ac_try" in
18820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18821 *) ac_try_echo
=$ac_try;;
18823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18824 (eval "$ac_link") 2>conftest.er1
18826 grep -v '^ *+' conftest.er1
>conftest.err
18828 cat conftest.err
>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && {
18831 test -z "$ac_c_werror_flag" ||
18832 test ! -s conftest.err
18833 } && test -s conftest
$ac_exeext &&
18834 $as_test_x conftest
$ac_exeext; then
18835 eval "$as_ac_var=yes"
18837 echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.
$ac_ext >&5
18840 eval "$as_ac_var=no"
18843 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18844 conftest
$ac_exeext conftest.
$ac_ext
18846 ac_res
=`eval echo '${'$as_ac_var'}'`
18847 { echo "$as_me:$LINENO: result: $ac_res" >&5
18848 echo "${ECHO_T}$ac_res" >&6; }
18849 if test `eval echo '${'$as_ac_var'}'` = yes; then
18850 cat >>confdefs.h
<<_ACEOF
18851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18855 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18856 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18857 { (exit 1); exit 1; }; }
18866 for ac_func
in fseeko
18868 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18871 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 cat >conftest.
$ac_ext <<_ACEOF
18877 cat confdefs.h
>>conftest.
$ac_ext
18878 cat >>conftest.
$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18882 #define $ac_func innocuous_$ac_func
18884 /* System header to define __stub macros and hopefully few prototypes,
18885 which can conflict with char $ac_func (); below.
18886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18887 <limits.h> exists even on freestanding compilers. */
18890 # include <limits.h>
18892 # include <assert.h>
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18904 /* The GNU C library defines this for functions which it implements
18905 to always fail with ENOSYS. Some functions are actually named
18906 something starting with __ and the normal name is an alias. */
18907 #if defined __stub_$ac_func || defined __stub___$ac_func
18914 return $ac_func ();
18919 rm -f conftest.
$ac_objext conftest
$ac_exeext
18920 if { (ac_try
="$ac_link"
18921 case "(($ac_try" in
18922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest$ac_exeext &&
18936 $as_test_x conftest$ac_exeext; then
18937 eval "$as_ac_var=yes"
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18942 eval "$as_ac_var=no"
18945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18946 conftest$ac_exeext conftest.$ac_ext
18948 ac_res=`eval echo '${'$as_ac_var'}'`
18949 { echo "$as_me:$LINENO: result: $ac_res" >&5
18950 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_var'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18957 case " $LIBOBJS " in
18958 *" $ac_func.$ac_objext "* ) ;;
18959 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18968 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18971 cat >>confdefs.h <<\_ACEOF
18972 #define HAVE_FSEEKO 1
18975 ac_cv_func_fseeko=yes;;
18977 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18978 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18979 if test "${ac_cv_sys_largefile_source+set}" = set; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18983 cat >conftest.$ac_ext <<_ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 #include <sys/types.h> /* for off_t */
18994 int (*fp) (FILE *, off_t, int) = fseeko;
18995 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19004 *) ac_try_echo
=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>conftest.er1
19009 grep -v '^ *+' conftest.er1
>conftest.err
19011 cat conftest.err
>&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } && {
19014 test -z "$ac_c_werror_flag" ||
19015 test ! -s conftest.err
19016 } && test -s conftest
$ac_exeext &&
19017 $as_test_x conftest
$ac_exeext; then
19018 ac_cv_sys_largefile_source
=no
; break
19020 echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.
$ac_ext >&5
19026 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19027 conftest
$ac_exeext conftest.
$ac_ext
19028 cat >conftest.
$ac_ext <<_ACEOF
19031 cat confdefs.h
>>conftest.
$ac_ext
19032 cat >>conftest.
$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 #define _LARGEFILE_SOURCE 1
19035 #include <sys/types.h> /* for off_t */
19040 int (*fp) (FILE *, off_t, int) = fseeko;
19041 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19046 rm -f conftest.
$ac_objext conftest
$ac_exeext
19047 if { (ac_try
="$ac_link"
19048 case "(($ac_try" in
19049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_link") 2>conftest.er1
19055 grep -v '^ *+' conftest.er1 >conftest.err
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } && {
19060 test -z "$ac_c_werror_flag" ||
19061 test ! -s conftest.err
19062 } && test -s conftest$ac_exeext &&
19063 $as_test_x conftest$ac_exeext; then
19064 ac_cv_sys_largefile_source=1; break
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073 conftest$ac_exeext conftest.$ac_ext
19074 ac_cv_sys_largefile_source=unknown
19078 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19079 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19080 case $ac_cv_sys_largefile_source in #(
19083 cat >>confdefs.h <<_ACEOF
19084 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19090 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19091 # in glibc 2.1.3, but that breaks too many other things.
19092 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19093 if test $ac_cv_sys_largefile_source != unknown; then
19095 cat >>confdefs.h <<\_ACEOF
19096 #define HAVE_FSEEKO 1
19107 # For each platform, we need to know about any special compile and link
19108 # libraries, and whether the normal C function names are thread-safe.
19109 # See the comment at the top of src/port/thread.c for more information.
19110 # WIN32 doesn't need the pthread tests; it always uses threads
19111 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19116 ac_cpp='$CPP $CPPFLAGS'
19117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19123 # We used to check for pthread.h first, but this fails if pthread.h
19124 # requires special compiler flags (e.g. on True64 or Sequent).
19125 # It gets checked for in the link test anyway.
19127 # First of all, check if the user has set any of the PTHREAD_LIBS,
19128 # etcetera environment variables, and if threads linking works using
19130 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19131 save_CFLAGS="$CFLAGS"
19132 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19134 LIBS="$PTHREAD_LIBS $LIBS"
19135 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19136 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19144 /* Override any GCC internal prototype to avoid an error.
19145 Use char because int might match the return type of a GCC
19146 builtin and then its argument prototype would still apply. */
19150 char pthread_join ();
19154 return pthread_join ();
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19163 *) ac_try_echo
=$ac_try;;
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19168 grep -v '^ *+' conftest.er1
>conftest.err
19170 cat conftest.err
>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest
$ac_exeext &&
19176 $as_test_x conftest
$ac_exeext; then
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.
$ac_ext >&5
19185 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19186 conftest
$ac_exeext conftest.
$ac_ext
19187 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19188 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19189 if test x
"$acx_pthread_ok" = xno
; then
19194 CFLAGS
="$save_CFLAGS"
19197 # We must check for the threads library under a number of different
19198 # names; the ordering is very important because some systems
19199 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19200 # libraries is broken (non-POSIX).
19202 # Create a list of thread flags to try. Items starting with a "-" are
19203 # C compiler flags, and other items are library names, except for "none"
19204 # which indicates that we try without any flags at all, and "pthread-config"
19205 # which is a program returning the flags for the Pth emulation library.
19207 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19209 # The ordering *is* (sometimes) important. Some notes on the
19210 # individual items follow:
19212 # pthreads: AIX (must check this before -lpthread)
19213 # none: in case threads are in libc; should be tried before -Kthread and
19214 # other compiler flags to prevent continual compiler warnings
19215 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19216 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19217 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19218 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19219 # -pthreads: Solaris/gcc
19220 # -mthreads: Mingw32/gcc, Lynx/gcc
19221 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19222 # doesn't hurt to check since this sometimes defines pthreads too;
19223 # also defines -D_REENTRANT)
19224 # pthread: Linux, etcetera
19225 # --thread-safe: KAI C++
19226 # pthread-config: use pthread-config program (for GNU Pth library)
19228 case "${host_cpu}-${host_os}" in
19231 # On Solaris (at least, for some versions), libc contains stubbed
19232 # (non-functional) versions of the pthreads routines, so link-based
19233 # tests will erroneously succeed. (We need to link with -pthread or
19234 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19235 # a function called by this macro, so we could check for that, but
19236 # who knows whether they'll stub that too in a future libc.) So,
19237 # we'll just look for -pthreads and -lpthread first:
19239 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
19243 if test x
"$acx_pthread_ok" = xno
; then
19244 for flag
in $acx_pthread_flags; do
19246 tryPTHREAD_CFLAGS
=""
19250 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19251 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19255 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19256 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19257 tryPTHREAD_CFLAGS
="$flag"
19261 # skip this if we already have flags defined, for PostgreSQL
19262 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
19263 # Extract the first word of "pthread-config", so it can be a program name with args.
19264 set dummy pthread-config
; ac_word
=$2
19265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19267 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 if test -n "$acx_pthread_config"; then
19271 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
19273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19274 for as_dir
in $PATH
19277 test -z "$as_dir" && as_dir
=.
19278 for ac_exec_ext
in '' $ac_executable_extensions; do
19279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19280 ac_cv_prog_acx_pthread_config
="yes"
19281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19288 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
19291 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
19292 if test -n "$acx_pthread_config"; then
19293 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19294 echo "${ECHO_T}$acx_pthread_config" >&6; }
19296 { echo "$as_me:$LINENO: result: no" >&5
19297 echo "${ECHO_T}no" >&6; }
19301 if test x
"$acx_pthread_config" = xno
; then continue; fi
19302 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
19303 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
19307 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19308 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19309 tryPTHREAD_LIBS
="-l$flag"
19314 save_CFLAGS
="$CFLAGS"
19315 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19316 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19318 # Check for various functions. We must include pthread.h,
19319 # since some functions may be macros. (On the Sequent, we
19320 # need a special flag -Kthread to make this header compile.)
19321 # We check for pthread_join because it is in -lpthread on IRIX
19322 # while pthread_create is in libc. We check for pthread_attr_init
19323 # due to DEC craziness with -lpthreads. We check for
19324 # pthread_cleanup_push because it is one of the few pthread
19325 # functions on Solaris that doesn't have a non-functional libc stub.
19326 # We try pthread_create on general principles.
19327 cat >conftest.
$ac_ext <<_ACEOF
19330 cat confdefs.h
>>conftest.
$ac_ext
19331 cat >>conftest.
$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19333 #include <pthread.h>
19337 pthread_t th; pthread_join(th, 0);
19338 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19339 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19344 rm -f conftest.
$ac_objext conftest
$ac_exeext
19345 if { (ac_try
="$ac_link"
19346 case "(($ac_try" in
19347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19348 *) ac_try_echo=$ac_try;;
19350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19351 (eval "$ac_link") 2>conftest.er1
19353 grep -v '^ *+' conftest.er1 >conftest.err
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } && {
19358 test -z "$ac_c_werror_flag" ||
19359 test ! -s conftest.err
19360 } && test -s conftest$ac_exeext &&
19361 $as_test_x conftest$ac_exeext; then
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19371 conftest$ac_exeext conftest.$ac_ext
19373 if test "x$acx_pthread_ok" = xyes; then
19374 # Don't use options that are ignored by the compiler.
19375 # We find them by checking stderror.
19376 cat >conftest.$ac_ext <<_ACEOF
19378 main (int argc, char **argv)
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19387 # we continue with more flags because Linux needs -lpthread
19388 # for libpq builds on PostgreSQL. The test above only
19389 # tests for building binaries, not shared libraries.
19390 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19391 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19392 else acx_pthread_ok=no
19397 CFLAGS="$save_CFLAGS"
19399 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19400 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19404 # Various other checks:
19405 if test "x$acx_pthread_ok" = xyes; then
19407 LIBS="$PTHREAD_LIBS $LIBS"
19408 save_CFLAGS="$CFLAGS"
19409 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19411 # Detect AIX lossage: threads are created detached by default
19412 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19413 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19414 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19415 cat >conftest.$ac_ext <<_ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 #include <pthread.h>
19425 int attr=PTHREAD_CREATE_JOINABLE;
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (ac_try="$ac_link"
19432 case "(($ac_try" in
19433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19434 *) ac_try_echo
=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_link") 2>conftest.er1
19439 grep -v '^ *+' conftest.er1
>conftest.err
19441 cat conftest.err
>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } && {
19444 test -z "$ac_c_werror_flag" ||
19445 test ! -s conftest.err
19446 } && test -s conftest
$ac_exeext &&
19447 $as_test_x conftest
$ac_exeext; then
19448 ok
=PTHREAD_CREATE_JOINABLE
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.
$ac_ext >&5
19456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19457 conftest
$ac_exeext conftest.
$ac_ext
19458 if test x
"$ok" = xunknown
; then
19459 cat >conftest.
$ac_ext <<_ACEOF
19462 cat confdefs.h
>>conftest.
$ac_ext
19463 cat >>conftest.
$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 #include <pthread.h>
19469 int attr=PTHREAD_CREATE_UNDETACHED;
19474 rm -f conftest.
$ac_objext conftest
$ac_exeext
19475 if { (ac_try
="$ac_link"
19476 case "(($ac_try" in
19477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_link") 2>conftest.er1
19483 grep -v '^ *+' conftest.er1 >conftest.err
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest$ac_exeext &&
19491 $as_test_x conftest$ac_exeext; then
19492 ok=PTHREAD_CREATE_UNDETACHED
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19501 conftest$ac_exeext conftest.$ac_ext
19503 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19505 cat >>confdefs.h <<\_ACEOF
19506 #define PTHREAD_CREATE_JOINABLE $ok
19510 { echo "$as_me:$LINENO: result: ${ok}" >&5
19511 echo "${ECHO_T}${ok}" >&6; }
19512 if test x"$ok" = xunknown; then
19513 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19514 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19517 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19518 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19520 # We always add these in PostgreSQL
19521 # case "${host_cpu}-${host_os}" in
19522 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19523 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19525 { echo "$as_me:$LINENO: result: ${flag}" >&5
19526 echo "${ECHO_T}${flag}" >&6; }
19527 if test "x$flag" != xno; then
19528 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19532 CFLAGS="$save_CFLAGS"
19534 # Supporting cc_r would require a special CC in all places that
19535 # use libpq, and that is ugly, so we don't do it. Users can still
19536 # define their compiler as cc_r to do thread builds of everything.
19537 # More AIX lossage: must compile with cc_r
19538 # Extract the first word of "cc_r", so it can be a program name with args.
19539 set dummy cc_r; ac_word=$2
19540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19542 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 if test -n "$PTHREAD_CC"; then
19546 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19549 for as_dir in $PATH
19552 test -z "$as_dir" && as_dir=.
19553 for ac_exec_ext in '' $ac_executable_extensions; do
19554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19555 ac_cv_prog_PTHREAD_CC="cc_r"
19556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19563 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19566 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19567 if test -n "$PTHREAD_CC"; then
19568 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19569 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19571 { echo "$as_me:$LINENO: result: no" >&5
19572 echo "${ECHO_T}no" >&6; }
19584 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19585 if test x"$acx_pthread_ok" = xyes; then
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE_PTHREAD 1
19597 ac_cpp='$CPP $CPPFLAGS'
19598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19604 # Some platforms use these, so just define them. They can't hurt if they
19605 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19606 # enables 5-arg getpwuid_r, among other things.
19607 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19610 # At this point, we don't want to muck with the compiler name for threading.
19611 # Let's see who fails, perhaps AIX. 2004-04-23
19612 if test "$PTHREAD_CC" != "$CC"; then
19613 { { echo "$as_me:$LINENO: error:
19614 PostgreSQL does not support platforms that require a special compiler
19615 for thread safety." >&5
19616 echo "$as_me: error:
19617 PostgreSQL does not support platforms that require a special compiler
19618 for thread safety." >&2;}
19619 { (exit 1); exit 1; }; }
19622 if test "$THREAD_SUPPORT" = no; then
19623 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19624 This platform is known to not support thread-safe programs. For details,
19625 compile and run src/bin/pg_thread_test." >&5
19626 echo "$as_me: error: cannot enable threads on this platform
19627 This platform is known to not support thread-safe programs. For details,
19628 compile and run src/bin/pg_thread_test." >&2;}
19629 { (exit 1); exit 1; }; }
19632 # Check for *_r functions
19635 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19636 LIBS="$LIBS $PTHREAD_LIBS"
19638 if test "$PORTNAME" != "win32"; then
19639 if test "${ac_cv_header_pthread_h+set}" = set; then
19640 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19641 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19642 if test "${ac_cv_header_pthread_h+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19646 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19648 # Is the header compilable?
19649 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19650 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19651 cat >conftest.$ac_ext <<_ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 $ac_includes_default
19658 #include <pthread.h>
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19664 *) ac_try_echo
=$ac_try;;
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_compile") 2>conftest.er1
19669 grep -v '^ *+' conftest.er1
>conftest.err
19671 cat conftest.err
>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); } && {
19674 test -z "$ac_c_werror_flag" ||
19675 test ! -s conftest.err
19676 } && test -s conftest.
$ac_objext; then
19677 ac_header_compiler
=yes
19679 echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.
$ac_ext >&5
19682 ac_header_compiler
=no
19685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19687 echo "${ECHO_T}$ac_header_compiler" >&6; }
19689 # Is the header present?
19690 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19691 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19692 cat >conftest.
$ac_ext <<_ACEOF
19695 cat confdefs.h
>>conftest.
$ac_ext
19696 cat >>conftest.
$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698 #include <pthread.h>
19700 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19701 case "(($ac_try" in
19702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } >/dev/null && {
19713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19716 ac_header_preproc=yes
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_header_preproc=no
19724 rm -f conftest.err conftest.$ac_ext
19725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19726 echo "${ECHO_T}$ac_header_preproc" >&6; }
19728 # So? What about this header?
19729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19731 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19732 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19733 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19734 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19735 ac_header_preproc=yes
19738 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19739 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19740 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19741 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19742 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19743 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19744 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19745 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19746 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19747 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19748 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19749 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19751 ## ---------------------------------------- ##
19752 ## Report this to pgsql-bugs@postgresql.org ##
19753 ## ---------------------------------------- ##
19755 ) | sed "s/^/$as_me: WARNING: /" >&2
19758 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19759 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19760 if test "${ac_cv_header_pthread_h+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 ac_cv_header_pthread_h=$ac_header_preproc
19765 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19766 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19769 if test $ac_cv_header_pthread_h = yes; then
19772 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19773 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19774 { (exit 1); exit 1; }; }
19783 for ac_func in strerror_r getpwuid_r gethostbyname_r
19785 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19791 cat >conftest.$ac_ext <<_ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19799 #define $ac_func innocuous_$ac_func
19801 /* System header to define __stub macros and hopefully few prototypes,
19802 which can conflict with char $ac_func (); below.
19803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19804 <limits.h> exists even on freestanding compilers. */
19807 # include <limits.h>
19809 # include <assert.h>
19814 /* Override any GCC internal prototype to avoid an error.
19815 Use char because int might match the return type of a GCC
19816 builtin and then its argument prototype would still apply. */
19821 /* The GNU C library defines this for functions which it implements
19822 to always fail with ENOSYS. Some functions are actually named
19823 something starting with __ and the normal name is an alias. */
19824 #if defined __stub_$ac_func || defined __stub___$ac_func
19831 return $ac_func ();
19836 rm -f conftest.$ac_objext conftest$ac_exeext
19837 if { (ac_try="$ac_link"
19838 case "(($ac_try" in
19839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19840 *) ac_try_echo
=$ac_try;;
19842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843 (eval "$ac_link") 2>conftest.er1
19845 grep -v '^ *+' conftest.er1
>conftest.err
19847 cat conftest.err
>&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } && {
19850 test -z "$ac_c_werror_flag" ||
19851 test ! -s conftest.err
19852 } && test -s conftest
$ac_exeext &&
19853 $as_test_x conftest
$ac_exeext; then
19854 eval "$as_ac_var=yes"
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.
$ac_ext >&5
19859 eval "$as_ac_var=no"
19862 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19863 conftest
$ac_exeext conftest.
$ac_ext
19865 ac_res
=`eval echo '${'$as_ac_var'}'`
19866 { echo "$as_me:$LINENO: result: $ac_res" >&5
19867 echo "${ECHO_T}$ac_res" >&6; }
19868 if test `eval echo '${'$as_ac_var'}'` = yes; then
19869 cat >>confdefs.h
<<_ACEOF
19870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19877 # Do test here with the proper thread flags
19878 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19879 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19880 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 cat >conftest.
$ac_ext <<_ACEOF
19886 cat confdefs.h
>>conftest.
$ac_ext
19887 cat >>conftest.
$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 #include <sys/types.h>
19895 struct passwd *space;
19898 struct passwd **result;
19899 getpwuid_r(uid, space, buf, bufsize, result);
19904 rm -f conftest.
$ac_objext
19905 if { (ac_try
="$ac_compile"
19906 case "(($ac_try" in
19907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911 (eval "$ac_compile") 2>conftest.er1
19913 grep -v '^ *+' conftest.er1 >conftest.err
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && {
19918 test -z "$ac_c_werror_flag" ||
19919 test ! -s conftest.err
19920 } && test -s conftest.$ac_objext; then
19921 pgac_cv_func_getpwuid_r_5arg=yes
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 pgac_cv_func_getpwuid_r_5arg=no
19929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19932 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19933 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19935 cat >>confdefs.h <<\_ACEOF
19936 #define GETPWUID_R_5ARG
19941 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19942 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19943 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 cat >conftest.$ac_ext <<_ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952 #include <string.h>
19957 int strerror_r(int, char *, size_t);
19959 /* Older AIX has 'int' for the third argument so we don't test the args. */
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19970 *) ac_try_echo
=$ac_try;;
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1
>conftest.err
19977 cat conftest.err
>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } && {
19980 test -z "$ac_c_werror_flag" ||
19981 test ! -s conftest.err
19982 } && test -s conftest.
$ac_objext; then
19983 pgac_cv_func_strerror_r_int
=yes
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.
$ac_ext >&5
19988 pgac_cv_func_strerror_r_int
=no
19991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19993 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19994 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19995 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
19997 cat >>confdefs.h
<<\_ACEOF
19998 #define STRERROR_R_INT
20008 # do not use values from template file
20017 # We can test for libldap_r only after we know PTHREAD_LIBS
20018 if test "$with_ldap" = yes ; then
20020 if test "$PORTNAME" != "win32"; then
20022 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20023 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20024 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 ac_check_lib_save_LIBS
=$LIBS
20028 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
20029 cat >conftest.
$ac_ext <<_ACEOF
20032 cat confdefs.h
>>conftest.
$ac_ext
20033 cat >>conftest.
$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20036 /* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20046 return ldap_bind ();
20051 rm -f conftest.
$ac_objext conftest
$ac_exeext
20052 if { (ac_try
="$ac_link"
20053 case "(($ac_try" in
20054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_link") 2>conftest.er1
20060 grep -v '^ *+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && {
20065 test -z "$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20067 } && test -s conftest$ac_exeext &&
20068 $as_test_x conftest$ac_exeext; then
20069 ac_cv_lib_ldap_ldap_bind=yes
20071 echo "$as_me: failed program was:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_cv_lib_ldap_ldap_bind=no
20077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20078 conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_check_lib_save_LIBS
20081 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20082 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20083 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20084 cat >>confdefs.h <<_ACEOF
20085 #define HAVE_LIBLDAP 1
20088 LIBS="-lldap $LIBS"
20091 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20092 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20093 { (exit 1); exit 1; }; }
20096 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20097 if test "$enable_thread_safety" = yes; then
20098 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20100 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20101 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20102 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 ac_check_lib_save_LIBS=$LIBS
20106 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20107 cat >conftest.$ac_ext <<_ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20120 char ldap_simple_bind ();
20124 return ldap_simple_bind ();
20129 rm -f conftest.$ac_objext conftest$ac_exeext
20130 if { (ac_try="$ac_link"
20131 case "(($ac_try" in
20132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20133 *) ac_try_echo
=$ac_try;;
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_link") 2>conftest.er1
20138 grep -v '^ *+' conftest.er1
>conftest.err
20140 cat conftest.err
>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && {
20143 test -z "$ac_c_werror_flag" ||
20144 test ! -s conftest.err
20145 } && test -s conftest
$ac_exeext &&
20146 $as_test_x conftest
$ac_exeext; then
20147 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.
$ac_ext >&5
20152 ac_cv_lib_ldap_r_ldap_simple_bind
=no
20155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20156 conftest
$ac_exeext conftest.
$ac_ext
20157 LIBS
=$ac_check_lib_save_LIBS
20159 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20160 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20161 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20162 cat >>confdefs.h
<<_ACEOF
20163 #define HAVE_LIBLDAP_R 1
20166 LIBS
="-lldap_r $LIBS"
20169 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20170 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20171 { (exit 1); exit 1; }; }
20174 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
20176 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
20180 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20181 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20182 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 ac_check_lib_save_LIBS
=$LIBS
20186 LIBS
="-lwldap32 $LIBS"
20187 cat >conftest.
$ac_ext <<_ACEOF
20190 cat confdefs.h
>>conftest.
$ac_ext
20191 cat >>conftest.
$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20194 /* Override any GCC internal prototype to avoid an error.
20195 Use char because int might match the return type of a GCC
20196 builtin and then its argument prototype would still apply. */
20204 return ldap_bind ();
20209 rm -f conftest.
$ac_objext conftest
$ac_exeext
20210 if { (ac_try
="$ac_link"
20211 case "(($ac_try" in
20212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>conftest.er1
20218 grep -v '^ *+' conftest.er1 >conftest.err
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest$ac_exeext &&
20226 $as_test_x conftest$ac_exeext; then
20227 ac_cv_lib_wldap32_ldap_bind=yes
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_cv_lib_wldap32_ldap_bind=no
20235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20240 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20241 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20242 cat >>confdefs.h <<_ACEOF
20243 #define HAVE_LIBWLDAP32 1
20246 LIBS="-lwldap32 $LIBS"
20249 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20250 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20251 { (exit 1); exit 1; }; }
20254 LDAP_LIBS_FE="-lwldap32"
20255 LDAP_LIBS_BE="-lwldap32"
20263 # This test makes sure that run tests work at all. Sometimes a shared
20264 # library is found by the linker, but the runtime linker can't find it.
20265 # This check should come after all modifications of compiler or linker
20266 # variables, and before any other run tests.
20267 { echo "$as_me:$LINENO: checking test program" >&5
20268 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20269 if test "$cross_compiling" = yes; then
20270 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20271 echo "${ECHO_T}cross-compiling" >&6; }
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20279 int main() { return 0; }
20281 rm -f conftest$ac_exeext
20282 if { (ac_try="$ac_link"
20283 case "(($ac_try" in
20284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20285 *) ac_try_echo
=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_link") 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20292 { (case "(($ac_try" in
20293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_try") 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 { echo "$as_me:$LINENO: result: ok" >&5
20302 echo "${ECHO_T}ok" >&6; }
20304 echo "$as_me: program exited with status $ac_status" >&5
20305 echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 ( exit $ac_status )
20309 { echo "$as_me:$LINENO: result: failed" >&5
20310 echo "${ECHO_T}failed" >&6; }
20311 { { echo "$as_me:$LINENO: error:
20312 Could not execute a simple test program. This may be a problem
20313 related to locating shared libraries. Check the file 'config.log'
20314 for the exact reason." >&5
20315 echo "$as_me: error:
20316 Could not execute a simple test program. This may be a problem
20317 related to locating shared libraries. Check the file 'config.log'
20318 for the exact reason." >&2;}
20319 { (exit 1); exit 1; }; }
20321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20326 # --------------------
20327 # Run tests below here
20328 # --------------------
20330 # Force use of our snprintf if system's doesn't do arg control
20331 # See comment above at snprintf test for details.
20332 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20333 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20334 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20335 if test "${pgac_cv_printf_arg_control+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 if test "$cross_compiling" = yes; then
20339 pgac_cv_printf_arg_control=cross
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20348 #include <string.h>
20354 /* can it swap arguments? */
20355 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20356 if (strcmp(buf, "4 3") != 0)
20361 rm -f conftest$ac_exeext
20362 if { (ac_try="$ac_link"
20363 case "(($ac_try" in
20364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20365 *) ac_try_echo
=$ac_try;;
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_link") 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20372 { (case "(($ac_try" in
20373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_try") 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 pgac_cv_printf_arg_control=yes
20383 echo "$as_me: program exited with status $ac_status" >&5
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ( exit $ac_status )
20388 pgac_cv_printf_arg_control=no
20390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20396 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20397 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20399 if test $pgac_cv_printf_arg_control != yes ; then
20400 pgac_need_repl_snprintf=yes
20406 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20407 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20408 if test "${pgac_cv_type_long_int_64+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 if test "$cross_compiling" = yes; then
20412 # If cross-compiling, check the size reported by the compiler and
20413 # trust that the arithmetic works.
20414 cat >conftest.$ac_ext <<_ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20424 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20431 rm -f conftest.$ac_objext
20432 if { (ac_try="$ac_compile"
20433 case "(($ac_try" in
20434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20435 *) ac_try_echo
=$ac_try;;
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_compile") 2>conftest.er1
20440 grep -v '^ *+' conftest.er1
>conftest.err
20442 cat conftest.err
>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } && {
20445 test -z "$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20447 } && test -s conftest.
$ac_objext; then
20448 pgac_cv_type_long_int_64
=yes
20450 echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.
$ac_ext >&5
20453 pgac_cv_type_long_int_64
=no
20456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20458 cat >conftest.
$ac_ext <<_ACEOF
20461 cat confdefs.h
>>conftest.
$ac_ext
20462 cat >>conftest.
$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 typedef long int ac_int64;
20467 * These are globals to discourage the compiler from folding all the
20468 * arithmetic tests down to compile-time constants.
20470 ac_int64 a = 20000001;
20471 ac_int64 b = 40000005;
20473 int does_int64_work()
20477 if (sizeof(ac_int64) != 8)
20478 return 0; /* definitely not the right size */
20480 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20488 exit(! does_int64_work());
20491 rm -f conftest
$ac_exeext
20492 if { (ac_try
="$ac_link"
20493 case "(($ac_try" in
20494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_link") 2>&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20502 { (case "(($ac_try" in
20503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20504 *) ac_try_echo
=$ac_try;;
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507 (eval "$ac_try") 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 pgac_cv_type_long_int_64
=yes
20513 echo "$as_me: program exited with status $ac_status" >&5
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.
$ac_ext >&5
20517 ( exit $ac_status )
20518 pgac_cv_type_long_int_64
=no
20520 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20525 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20526 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20528 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
20529 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
20531 cat >>confdefs.h
<<\_ACEOF
20532 #define HAVE_LONG_INT_64 1
20538 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
20539 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20540 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20541 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 if test "$cross_compiling" = yes; then
20545 # If cross-compiling, check the size reported by the compiler and
20546 # trust that the arithmetic works.
20547 cat >conftest.
$ac_ext <<_ACEOF
20550 cat confdefs.h
>>conftest.
$ac_ext
20551 cat >>conftest.
$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20557 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20564 rm -f conftest.
$ac_objext
20565 if { (ac_try
="$ac_compile"
20566 case "(($ac_try" in
20567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_compile") 2>conftest.er1
20573 grep -v '^ *+' conftest.er1 >conftest.err
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } && {
20578 test -z "$ac_c_werror_flag" ||
20579 test ! -s conftest.err
20580 } && test -s conftest.$ac_objext; then
20581 pgac_cv_type_long_long_int_64=yes
20583 echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20586 pgac_cv_type_long_long_int_64=no
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 typedef long long int ac_int64;
20600 * These are globals to discourage the compiler from folding all the
20601 * arithmetic tests down to compile-time constants.
20603 ac_int64 a = 20000001;
20604 ac_int64 b = 40000005;
20606 int does_int64_work()
20610 if (sizeof(ac_int64) != 8)
20611 return 0; /* definitely not the right size */
20613 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20621 exit(! does_int64_work());
20624 rm -f conftest$ac_exeext
20625 if { (ac_try="$ac_link"
20626 case "(($ac_try" in
20627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20628 *) ac_try_echo
=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_link") 2>&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20635 { (case "(($ac_try" in
20636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_try") 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 pgac_cv_type_long_long_int_64=yes
20646 echo "$as_me: program exited with status $ac_status" >&5
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ( exit $ac_status )
20651 pgac_cv_type_long_long_int_64=no
20653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20658 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20659 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20661 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20662 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20664 cat >>confdefs.h <<\_ACEOF
20665 #define HAVE_LONG_LONG_INT_64 1
20674 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20675 cat >conftest.$ac_ext <<_ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20682 #define INT64CONST(x) x##LL
20683 long long int foo = INT64CONST(0x1234567890123456);
20693 rm -f conftest.$ac_objext
20694 if { (ac_try="$ac_compile"
20695 case "(($ac_try" in
20696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20697 *) ac_try_echo
=$ac_try;;
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_compile") 2>conftest.er1
20702 grep -v '^ *+' conftest.er1
>conftest.err
20704 cat conftest.err
>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } && {
20707 test -z "$ac_c_werror_flag" ||
20708 test ! -s conftest.err
20709 } && test -s conftest.
$ac_objext; then
20711 cat >>confdefs.h
<<\_ACEOF
20712 #define HAVE_LL_CONSTANTS 1
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.
$ac_ext >&5
20722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20726 # If we found "long int" is 64 bits, assume snprintf handles it. If
20727 # we found we need to use "long long int", better check. We cope with
20728 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20729 # work, fall back to our own snprintf emulation (which we know uses %lld).
20731 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20732 if test $pgac_need_repl_snprintf = no
; then
20733 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20734 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20735 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 for pgac_format
in '%lld' '%qd' '%I64d'; do
20739 if test "$cross_compiling" = yes; then
20740 pgac_cv_snprintf_long_long_int_format
=cross
; break
20742 cat >conftest.
$ac_ext <<_ACEOF
20745 cat confdefs.h
>>conftest.
$ac_ext
20746 cat >>conftest.
$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20749 typedef long long int ac_int64;
20750 #define INT64_FORMAT "$pgac_format"
20752 ac_int64 a = 20000001;
20753 ac_int64 b = 40000005;
20755 int does_int64_snprintf_work()
20760 if (sizeof(ac_int64) != 8)
20761 return 0; /* doesn't look like the right size */
20764 snprintf(buf, 100, INT64_FORMAT, c);
20765 if (strcmp(buf, "800000140000005") != 0)
20766 return 0; /* either multiply or snprintf is busted */
20770 exit(! does_int64_snprintf_work());
20773 rm -f conftest
$ac_exeext
20774 if { (ac_try
="$ac_link"
20775 case "(($ac_try" in
20776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20784 { (case "(($ac_try" in
20785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20786 *) ac_try_echo
=$ac_try;;
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
20795 echo "$as_me: program exited with status $ac_status" >&5
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.
$ac_ext >&5
20800 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20807 LONG_LONG_INT_FORMAT
=''
20809 case $pgac_cv_snprintf_long_long_int_format in
20810 cross
) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20811 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20812 ?
*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20813 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20814 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
20815 *) { echo "$as_me:$LINENO: result: none" >&5
20816 echo "${ECHO_T}none" >&6; };;
20818 if test "$LONG_LONG_INT_FORMAT" = ""; then
20819 # Force usage of our own snprintf, since system snprintf is broken
20820 pgac_need_repl_snprintf
=yes
20821 LONG_LONG_INT_FORMAT
='%lld'
20824 # Here if we previously decided we needed to use our own snprintf
20825 LONG_LONG_INT_FORMAT
='%lld'
20827 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20828 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
20829 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
20831 # Here if we are not using 'long long int' at all
20832 INT64_FORMAT
='"%ld"'
20833 UINT64_FORMAT
='"%lu"'
20837 cat >>confdefs.h
<<_ACEOF
20838 #define INT64_FORMAT $INT64_FORMAT
20843 cat >>confdefs.h
<<_ACEOF
20844 #define UINT64_FORMAT $UINT64_FORMAT
20848 # Now we have checked all the reasons to replace snprintf
20849 if test $pgac_need_repl_snprintf = yes; then
20851 cat >>confdefs.h
<<\_ACEOF
20852 #define USE_REPL_SNPRINTF 1
20855 case " $LIBOBJS " in
20856 *" snprintf.$ac_objext "* ) ;;
20857 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
20863 # Need a #define for the size of Datum (unsigned long)
20864 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20865 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20866 if test "${ac_cv_type_unsigned_long+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 cat >conftest.
$ac_ext <<_ACEOF
20872 cat confdefs.h
>>conftest.
$ac_ext
20873 cat >>conftest.
$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 $ac_includes_default
20876 typedef unsigned long ac__type_new_;
20880 if ((ac__type_new_ *) 0)
20882 if (sizeof (ac__type_new_))
20888 rm -f conftest.
$ac_objext
20889 if { (ac_try
="$ac_compile"
20890 case "(($ac_try" in
20891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_compile") 2>conftest.er1
20897 grep -v '^ *+' conftest.er1 >conftest.err
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && {
20902 test -z "$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20904 } && test -s conftest.$ac_objext; then
20905 ac_cv_type_unsigned_long=yes
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20910 ac_cv_type_unsigned_long=no
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20916 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20918 # The cast to long int works around a bug in the HP C Compiler
20919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20920 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20921 # This bug is HP SR number 8606223364.
20922 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20923 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20924 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 if test "$cross_compiling" = yes; then
20928 # Depending upon the size, compute the lo and hi bounds.
20929 cat >conftest.$ac_ext <<_ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 $ac_includes_default
20936 typedef unsigned long ac__type_sizeof_;
20940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20947 rm -f conftest.$ac_objext
20948 if { (ac_try="$ac_compile"
20949 case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_compile") 2>conftest.er1
20956 grep -v '^
*+' conftest.er1 >conftest.err
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } && {
20961 test -z "$ac_c_werror_flag" ||
20962 test ! -s conftest.err
20963 } && test -s conftest.$ac_objext; then
20966 cat >conftest.$ac_ext <<_ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 $ac_includes_default
20973 typedef unsigned long ac__type_sizeof_;
20977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20993 grep -v '^
*+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.$ac_objext; then
21001 ac_hi=$ac_mid; break
21003 echo "$as_me: failed program was:" >&5
21004 sed 's
/^
/|
/' conftest.$ac_ext >&5
21006 ac_lo=`expr $ac_mid + 1`
21007 if test $ac_lo -le $ac_mid; then
21011 ac_mid=`expr 2 '*' $ac_mid + 1`
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 echo "$as_me: failed program was:" >&5
21018 sed 's
/^
/|
/' conftest.$ac_ext >&5
21020 cat >conftest.$ac_ext <<_ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h. */
21026 $ac_includes_default
21027 typedef unsigned long ac__type_sizeof_;
21031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21047 grep -v '^
*+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21063 $ac_includes_default
21064 typedef unsigned long ac__type_sizeof_;
21068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21075 rm -f conftest.$ac_objext
21076 if { (ac_try="$ac_compile"
21077 case "(($ac_try" in
21078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079 *) ac_try_echo=$ac_try;;
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21084 grep -v '^
*+' conftest.er1 >conftest.err
21086 cat conftest.err >&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092 ac_lo=$ac_mid; break
21094 echo "$as_me: failed program was:" >&5
21095 sed 's
/^
/|
/' conftest.$ac_ext >&5
21097 ac_hi=`expr '(' $ac_mid ')' - 1`
21098 if test $ac_mid -le $ac_hi; then
21102 ac_mid=`expr 2 '*' $ac_mid`
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 echo "$as_me: failed program was:" >&5
21109 sed 's
/^
/|
/' conftest.$ac_ext >&5
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21118 # Binary search between lo and hi bounds.
21119 while test "x$ac_lo" != "x$ac_hi"; do
21120 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21121 cat >conftest.$ac_ext <<_ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 $ac_includes_default
21128 typedef unsigned long ac__type_sizeof_;
21132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21139 rm -f conftest.$ac_objext
21140 if { (ac_try="$ac_compile"
21141 case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_compile") 2>conftest.er1
21148 grep -v '^
*+' conftest.er1 >conftest.err
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); } && {
21153 test -z "$ac_c_werror_flag" ||
21154 test ! -s conftest.err
21155 } && test -s conftest.$ac_objext; then
21158 echo "$as_me: failed program was:" >&5
21159 sed 's
/^
/|
/' conftest.$ac_ext >&5
21161 ac_lo=`expr '(' $ac_mid ')' + 1`
21164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21168 '') if test "$ac_cv_type_unsigned_long" = yes; then
21169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21170 See \`config.log' for more details.
" >&5
21171 echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
21172 See \
`config.log' for more details." >&2;}
21173 { (exit 77); exit 77; }; }
21175 ac_cv_sizeof_unsigned_long=0
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 $ac_includes_default
21186 typedef unsigned long ac__type_sizeof_;
21187 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21188 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21190 #include <stdlib.h>
21195 FILE *f = fopen ("conftest.val", "w");
21198 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21200 long int i = longval ();
21201 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21203 fprintf (f, "%ld\n", i);
21207 unsigned long int i = ulongval ();
21208 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21210 fprintf (f, "%lu\n", i);
21212 return ferror (f) || fclose (f) != 0;
21218 rm -f conftest$ac_exeext
21219 if { (ac_try="$ac_link"
21220 case "(($ac_try" in
21221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21222 *) ac_try_echo
=$ac_try;;
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_link") 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21229 { (case "(($ac_try" in
21230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_try") 2>&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; }; then
21238 ac_cv_sizeof_unsigned_long=`cat conftest.val
`
21240 echo "$as_me: program exited with status $ac_status" >&5
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ( exit $ac_status )
21245 if test "$ac_cv_type_unsigned_long" = yes; then
21246 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21247 See \`config.log
' for more details." >&5
21248 echo "$as_me: error: cannot compute sizeof (unsigned long)
21249 See \`config.log' for more details.
" >&2;}
21250 { (exit 77); exit 77; }; }
21252 ac_cv_sizeof_unsigned_long=0
21255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_unsigned_long" >&5
21260 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21264 cat >>confdefs.h <<_ACEOF
21265 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21270 # And one for the size of size_t (enables tweaks for > 32bit address space)
21271 { echo "$as_me:$LINENO: checking
for size_t
" >&5
21272 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
21273 if test "${ac_cv_type_size_t+set}" = set; then
21274 echo $ECHO_N "(cached
) $ECHO_C" >&6
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 $ac_includes_default
21283 typedef size_t ac__type_new_;
21287 if ((ac__type_new_ *) 0)
21289 if (sizeof (ac__type_new_))
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
21304 grep -v '^ *+' conftest.er1 >conftest.err
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest.$ac_objext; then
21312 ac_cv_type_size_t=yes
21314 echo "$as_me: failed program was
:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 ac_cv_type_size_t=no
21320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
21323 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21325 # The cast to long int works around a bug in the HP C Compiler
21326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21328 # This bug is HP SR number 8606223364.
21329 { echo "$as_me:$LINENO: checking size of size_t
" >&5
21330 echo $ECHO_N "checking size of size_t...
$ECHO_C" >&6; }
21331 if test "${ac_cv_sizeof_size_t+set}" = set; then
21332 echo $ECHO_N "(cached
) $ECHO_C" >&6
21334 if test "$cross_compiling" = yes; then
21335 # Depending upon the size, compute the lo and hi bounds.
21336 cat >conftest.$ac_ext <<_ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 $ac_includes_default
21343 typedef size_t ac__type_sizeof_;
21347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21354 rm -f conftest.$ac_objext
21355 if { (ac_try="$ac_compile"
21356 case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_compile") 2>conftest.er1
21363 grep -v '^ *+' conftest.er1 >conftest.err
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21367 (exit $ac_status); } && {
21368 test -z "$ac_c_werror_flag" ||
21369 test ! -s conftest.err
21370 } && test -s conftest.$ac_objext; then
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21380 typedef size_t ac__type_sizeof_;
21384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21408 ac_hi=$ac_mid; break
21410 echo "$as_me: failed program was
:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 ac_lo=`expr $ac_mid + 1`
21414 if test $ac_lo -le $ac_mid; then
21418 ac_mid=`expr 2 '*' $ac_mid + 1`
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21424 echo "$as_me: failed program was
:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 $ac_includes_default
21434 typedef size_t ac__type_sizeof_;
21438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21464 cat >conftest.$ac_ext <<_ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h. */
21470 $ac_includes_default
21471 typedef size_t ac__type_sizeof_;
21475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21482 rm -f conftest.$ac_objext
21483 if { (ac_try="$ac_compile"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_compile") 2>conftest.er1
21491 grep -v '^ *+' conftest.er1 >conftest.err
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21495 (exit $ac_status); } && {
21496 test -z "$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 } && test -s conftest.$ac_objext; then
21499 ac_lo=$ac_mid; break
21501 echo "$as_me: failed program was
:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 ac_hi=`expr '(' $ac_mid ')' - 1`
21505 if test $ac_mid -le $ac_hi; then
21509 ac_mid=`expr 2 '*' $ac_mid`
21512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515 echo "$as_me: failed program was
:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 # Binary search between lo and hi bounds.
21526 while test "x
$ac_lo" != "x
$ac_hi"; do
21527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21528 cat >conftest.$ac_ext <<_ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 $ac_includes_default
21535 typedef size_t ac__type_sizeof_;
21539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21546 rm -f conftest.$ac_objext
21547 if { (ac_try="$ac_compile"
21548 case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_compile") 2>conftest.er1
21555 grep -v '^ *+' conftest.er1 >conftest.err
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21559 (exit $ac_status); } && {
21560 test -z "$ac_c_werror_flag" ||
21561 test ! -s conftest.err
21562 } && test -s conftest.$ac_objext; then
21565 echo "$as_me: failed program was
:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 ac_lo=`expr '(' $ac_mid ')' + 1`
21571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21574 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21575 '') if test "$ac_cv_type_size_t" = yes; then
21576 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
21577 See \
`config.log' for more details." >&5
21578 echo "$as_me: error: cannot compute sizeof (size_t)
21579 See \`config.log
' for more details." >&2;}
21580 { (exit 77); exit 77; }; }
21582 ac_cv_sizeof_size_t=0
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 $ac_includes_default
21593 typedef size_t ac__type_sizeof_;
21594 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21595 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21597 #include <stdlib.h>
21602 FILE *f = fopen ("conftest.val", "w");
21605 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21607 long int i = longval ();
21608 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21610 fprintf (f, "%ld\n", i);
21614 unsigned long int i = ulongval ();
21615 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21617 fprintf (f, "%lu\n", i);
21619 return ferror (f) || fclose (f) != 0;
21625 rm -f conftest$ac_exeext
21626 if { (ac_try="$ac_link"
21627 case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_link") 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21636 { (case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_try") 2>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 ac_cv_sizeof_size_t=`cat conftest.val`
21647 echo "$as_me: program exited with status $ac_status" >&5
21648 echo "$as_me: failed program was:" >&5
21649 sed 's
/^
/|
/' conftest.$ac_ext >&5
21651 ( exit $ac_status )
21652 if test "$ac_cv_type_size_t" = yes; then
21653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21654 See \`config.log' for more details.
" >&5
21655 echo "$as_me: error
: cannot compute sizeof
(size_t
)
21656 See \
`config.log' for more details." >&2;}
21657 { (exit 77); exit 77; }; }
21659 ac_cv_sizeof_size_t=0
21662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21666 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21667 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21671 cat >>confdefs.h <<_ACEOF
21672 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21677 # Decide whether float4 is passed by value: user-selectable, enabled by default
21678 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21679 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21681 pgac_args="$pgac_args enable_float4_byval"
21683 # Check whether --enable-float4-byval was given.
21684 if test "${enable_float4_byval+set}" = set; then
21685 enableval=$enable_float4_byval;
21689 cat >>confdefs.h <<\_ACEOF
21690 #define USE_FLOAT4_BYVAL 1
21693 float4passbyval=true
21696 float4passbyval=false
21699 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21700 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21701 { (exit 1); exit 1; }; }
21706 enable_float4_byval=yes
21708 cat >>confdefs.h <<\_ACEOF
21709 #define USE_FLOAT4_BYVAL 1
21712 float4passbyval=true
21716 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21717 echo "${ECHO_T}$enable_float4_byval" >&6; }
21719 cat >>confdefs.h <<_ACEOF
21720 #define FLOAT4PASSBYVAL $float4passbyval
21724 # Decide whether float8 is passed by value.
21725 # Note: this setting also controls int8 and related types such as timestamp.
21726 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21727 # If not, trying to select it is an error.
21728 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21729 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21730 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21732 pgac_args="$pgac_args enable_float8_byval"
21734 # Check whether --enable-float8-byval was given.
21735 if test "${enable_float8_byval+set}" = set; then
21736 enableval=$enable_float8_byval;
21745 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21746 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21747 { (exit 1); exit 1; }; }
21752 enable_float8_byval=yes
21759 pgac_args="$pgac_args enable_float8_byval"
21761 # Check whether --enable-float8-byval was given.
21762 if test "${enable_float8_byval+set}" = set; then
21763 enableval=$enable_float8_byval;
21772 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21773 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21774 { (exit 1); exit 1; }; }
21779 enable_float8_byval=no
21784 if test "$enable_float8_byval" = yes ; then
21785 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21786 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21787 { (exit 1); exit 1; }; }
21790 if test "$enable_float8_byval" = yes ; then
21792 cat >>confdefs.h <<\_ACEOF
21793 #define USE_FLOAT8_BYVAL 1
21796 float8passbyval=true
21798 float8passbyval=false
21800 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21801 echo "${ECHO_T}$enable_float8_byval" >&6; }
21803 cat >>confdefs.h <<_ACEOF
21804 #define FLOAT8PASSBYVAL $float8passbyval
21808 # Determine memory alignment requirements for the basic C data types.
21810 { echo "$as_me:$LINENO: checking for short" >&5
21811 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21812 if test "${ac_cv_type_short+set}" = set; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 $ac_includes_default
21822 typedef short ac__type_new_;
21826 if ((ac__type_new_ *) 0)
21828 if (sizeof (ac__type_new_))
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21838 *) ac_try_echo
=$ac_try;;
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1
>conftest.err
21845 cat conftest.err
>&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } && {
21848 test -z "$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 } && test -s conftest.
$ac_objext; then
21851 ac_cv_type_short
=yes
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.
$ac_ext >&5
21856 ac_cv_type_short
=no
21859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21861 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21862 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21864 # The cast to long int works around a bug in the HP C Compiler,
21865 # see AC_CHECK_SIZEOF for more information.
21866 { echo "$as_me:$LINENO: checking alignment of short" >&5
21867 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21868 if test "${ac_cv_alignof_short+set}" = set; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
21871 if test "$cross_compiling" = yes; then
21872 # Depending upon the size, compute the lo and hi bounds.
21873 cat >conftest.
$ac_ext <<_ACEOF
21876 cat confdefs.h
>>conftest.
$ac_ext
21877 cat >>conftest.
$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21879 $ac_includes_default
21881 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21883 typedef struct { char x; short y; } ac__type_alignof_;
21887 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21894 rm -f conftest.
$ac_objext
21895 if { (ac_try
="$ac_compile"
21896 case "(($ac_try" in
21897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_compile") 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && {
21908 test -z "$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 } && test -s conftest.$ac_objext; then
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 $ac_includes_default
21921 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21923 typedef struct { char x; short y; } ac__type_alignof_;
21927 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21938 *) ac_try_echo
=$ac_try;;
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_compile") 2>conftest.er1
21943 grep -v '^ *+' conftest.er1
>conftest.err
21945 cat conftest.err
>&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest.
$ac_objext; then
21951 ac_hi
=$ac_mid; break
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.
$ac_ext >&5
21956 ac_lo
=`expr $ac_mid + 1`
21957 if test $ac_lo -le $ac_mid; then
21961 ac_mid
=`expr 2 '*' $ac_mid + 1`
21964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21967 echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.
$ac_ext >&5
21970 cat >conftest.
$ac_ext <<_ACEOF
21973 cat confdefs.h
>>conftest.
$ac_ext
21974 cat >>conftest.
$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 $ac_includes_default
21978 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21980 typedef struct { char x; short y; } ac__type_alignof_;
21984 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21991 rm -f conftest.
$ac_objext
21992 if { (ac_try
="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_compile") 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest.$ac_objext; then
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22018 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22020 typedef struct { char x; short y; } ac__type_alignof_;
22024 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22031 rm -f conftest.$ac_objext
22032 if { (ac_try="$ac_compile"
22033 case "(($ac_try" in
22034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22035 *) ac_try_echo
=$ac_try;;
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_compile") 2>conftest.er1
22040 grep -v '^ *+' conftest.er1
>conftest.err
22042 cat conftest.err
>&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest.
$ac_objext; then
22048 ac_lo
=$ac_mid; break
22050 echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.
$ac_ext >&5
22053 ac_hi
=`expr '(' $ac_mid ')' - 1`
22054 if test $ac_mid -le $ac_hi; then
22058 ac_mid
=`expr 2 '*' $ac_mid`
22061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22064 echo "$as_me: failed program was:" >&5
22065 sed 's/^/| /' conftest.
$ac_ext >&5
22070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22074 # Binary search between lo and hi bounds.
22075 while test "x$ac_lo" != "x$ac_hi"; do
22076 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22077 cat >conftest.
$ac_ext <<_ACEOF
22080 cat confdefs.h
>>conftest.
$ac_ext
22081 cat >>conftest.
$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 $ac_includes_default
22085 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22087 typedef struct { char x; short y; } ac__type_alignof_;
22091 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22098 rm -f conftest.
$ac_objext
22099 if { (ac_try
="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22107 grep -v '^ *+' conftest.er1 >conftest.err
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_c_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest.$ac_objext; then
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_lo=`expr '(' $ac_mid ')' + 1`
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22126 ?*) ac_cv_alignof_short=$ac_lo;;
22127 '') if test "$ac_cv_type_short" = yes; then
22128 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22129 See \`config.log
' for more details." >&5
22130 echo "$as_me: error: cannot compute alignment of short
22131 See \`config.log' for more details.
" >&2;}
22132 { (exit 77); exit 77; }; }
22134 ac_cv_alignof_short=0
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 $ac_includes_default
22146 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22148 typedef struct { char x; short y; } ac__type_alignof_;
22149 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22150 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22152 #include <stdlib.h>
22157 FILE *f = fopen ("conftest.val
", "w
");
22160 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22162 long int i = longval ();
22163 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22165 fprintf (f, "%ld
\n", i);
22169 unsigned long int i = ulongval ();
22170 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22172 fprintf (f, "%lu
\n", i);
22174 return ferror (f) || fclose (f) != 0;
22180 rm -f conftest$ac_exeext
22181 if { (ac_try="$ac_link"
22182 case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22187 (eval "$ac_link") 2>&5
22189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22191 { (case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_try") 2>&5
22198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 ac_cv_alignof_short=`cat conftest.val`
22202 echo "$as_me: program exited with status
$ac_status" >&5
22203 echo "$as_me: failed program was
:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22206 ( exit $ac_status )
22207 if test "$ac_cv_type_short" = yes; then
22208 { { echo "$as_me:$LINENO: error
: cannot compute alignment of short
22209 See \
`config.log' for more details." >&5
22210 echo "$as_me: error: cannot compute alignment of short
22211 See \`config.log
' for more details." >&2;}
22212 { (exit 77); exit 77; }; }
22214 ac_cv_alignof_short=0
22217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22221 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22222 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22226 cat >>confdefs.h <<_ACEOF
22227 #define ALIGNOF_SHORT $ac_cv_alignof_short
22231 { echo "$as_me:$LINENO: checking for int" >&5
22232 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22233 if test "${ac_cv_type_int+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 cat >conftest.$ac_ext <<_ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 $ac_includes_default
22243 typedef int ac__type_new_;
22247 if ((ac__type_new_ *) 0)
22249 if (sizeof (ac__type_new_))
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_compile") 2>conftest.er1
22264 grep -v '^
*+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest.$ac_objext; then
22274 echo "$as_me: failed program was:" >&5
22275 sed 's
/^
/|
/' conftest.$ac_ext >&5
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22282 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22283 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22285 # The cast to long int works around a bug in the HP C Compiler,
22286 # see AC_CHECK_SIZEOF for more information.
22287 { echo "$as_me:$LINENO: checking alignment of int" >&5
22288 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22289 if test "${ac_cv_alignof_int+set}" = set; then
22290 echo $ECHO_N "(cached) $ECHO_C" >&6
22292 if test "$cross_compiling" = yes; then
22293 # Depending upon the size, compute the lo and hi bounds.
22294 cat >conftest.$ac_ext <<_ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22300 $ac_includes_default
22302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22304 typedef struct { char x; int y; } ac__type_alignof_;
22308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22315 rm -f conftest.$ac_objext
22316 if { (ac_try="$ac_compile"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_compile") 2>conftest.er1
22324 grep -v '^
*+' conftest.er1 >conftest.err
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } && {
22329 test -z "$ac_c_werror_flag" ||
22330 test ! -s conftest.err
22331 } && test -s conftest.$ac_objext; then
22334 cat >conftest.$ac_ext <<_ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 $ac_includes_default
22342 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22344 typedef struct { char x; int y; } ac__type_alignof_;
22348 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22355 rm -f conftest.$ac_objext
22356 if { (ac_try="$ac_compile"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_compile") 2>conftest.er1
22364 grep -v '^
*+' conftest.er1 >conftest.err
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } && {
22369 test -z "$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 } && test -s conftest.$ac_objext; then
22372 ac_hi=$ac_mid; break
22374 echo "$as_me: failed program was:" >&5
22375 sed 's
/^
/|
/' conftest.$ac_ext >&5
22377 ac_lo=`expr $ac_mid + 1`
22378 if test $ac_lo -le $ac_mid; then
22382 ac_mid=`expr 2 '*' $ac_mid + 1`
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 echo "$as_me: failed program was:" >&5
22389 sed 's
/^
/|
/' conftest.$ac_ext >&5
22391 cat >conftest.$ac_ext <<_ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h. */
22397 $ac_includes_default
22399 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22401 typedef struct { char x; int y; } ac__type_alignof_;
22405 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22412 rm -f conftest.$ac_objext
22413 if { (ac_try="$ac_compile"
22414 case "(($ac_try" in
22415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416 *) ac_try_echo=$ac_try;;
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419 (eval "$ac_compile") 2>conftest.er1
22421 grep -v '^
*+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest.$ac_objext; then
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22439 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22441 typedef struct { char x; int y; } ac__type_alignof_;
22445 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_compile") 2>conftest.er1
22461 grep -v '^
*+' conftest.er1 >conftest.err
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest.$ac_objext; then
22469 ac_lo=$ac_mid; break
22471 echo "$as_me: failed program was:" >&5
22472 sed 's
/^
/|
/' conftest.$ac_ext >&5
22474 ac_hi=`expr '(' $ac_mid ')' - 1`
22475 if test $ac_mid -le $ac_hi; then
22479 ac_mid=`expr 2 '*' $ac_mid`
22482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 echo "$as_me: failed program was:" >&5
22486 sed 's
/^
/|
/' conftest.$ac_ext >&5
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 # Binary search between lo and hi bounds.
22496 while test "x$ac_lo" != "x$ac_hi"; do
22497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22498 cat >conftest.$ac_ext <<_ACEOF
22501 cat confdefs.h >>conftest.$ac_ext
22502 cat >>conftest.$ac_ext <<_ACEOF
22503 /* end confdefs.h. */
22504 $ac_includes_default
22506 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22508 typedef struct { char x; int y; } ac__type_alignof_;
22512 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22519 rm -f conftest.$ac_objext
22520 if { (ac_try="$ac_compile"
22521 case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_compile") 2>conftest.er1
22528 grep -v '^
*+' conftest.er1 >conftest.err
22530 cat conftest.err >&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } && {
22533 test -z "$ac_c_werror_flag" ||
22534 test ! -s conftest.err
22535 } && test -s conftest.$ac_objext; then
22538 echo "$as_me: failed program was:" >&5
22539 sed 's
/^
/|
/' conftest.$ac_ext >&5
22541 ac_lo=`expr '(' $ac_mid ')' + 1`
22544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547 ?*) ac_cv_alignof_int=$ac_lo;;
22548 '') if test "$ac_cv_type_int" = yes; then
22549 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22550 See \`config.log' for more details.
" >&5
22551 echo "$as_me: error
: cannot compute alignment of int
22552 See \
`config.log' for more details." >&2;}
22553 { (exit 77); exit 77; }; }
22555 ac_cv_alignof_int=0
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 $ac_includes_default
22567 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22569 typedef struct { char x; int y; } ac__type_alignof_;
22570 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22571 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22573 #include <stdlib.h>
22578 FILE *f = fopen ("conftest.val", "w");
22581 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22583 long int i = longval ();
22584 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22586 fprintf (f, "%ld\n", i);
22590 unsigned long int i = ulongval ();
22591 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22593 fprintf (f, "%lu\n", i);
22595 return ferror (f) || fclose (f) != 0;
22601 rm -f conftest$ac_exeext
22602 if { (ac_try="$ac_link"
22603 case "(($ac_try" in
22604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22605 *) ac_try_echo
=$ac_try;;
22607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_link") 2>&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; }; then
22621 ac_cv_alignof_int=`cat conftest.val
`
22623 echo "$as_me: program exited with status $ac_status" >&5
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ( exit $ac_status )
22628 if test "$ac_cv_type_int" = yes; then
22629 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22630 See \`config.log
' for more details." >&5
22631 echo "$as_me: error: cannot compute alignment of int
22632 See \`config.log' for more details.
" >&2;}
22633 { (exit 77); exit 77; }; }
22635 ac_cv_alignof_int=0
22638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22642 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_int" >&5
22643 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22647 cat >>confdefs.h <<_ACEOF
22648 #define ALIGNOF_INT $ac_cv_alignof_int
22652 { echo "$as_me:$LINENO: checking
for long
" >&5
22653 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
22654 if test "${ac_cv_type_long+set}" = set; then
22655 echo $ECHO_N "(cached
) $ECHO_C" >&6
22657 cat >conftest.$ac_ext <<_ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 $ac_includes_default
22664 typedef long ac__type_new_;
22668 if ((ac__type_new_ *) 0)
22670 if (sizeof (ac__type_new_))
22676 rm -f conftest.$ac_objext
22677 if { (ac_try="$ac_compile"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_compile") 2>conftest.er1
22685 grep -v '^ *+' conftest.er1 >conftest.err
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22689 (exit $ac_status); } && {
22690 test -z "$ac_c_werror_flag" ||
22691 test ! -s conftest.err
22692 } && test -s conftest.$ac_objext; then
22693 ac_cv_type_long=yes
22695 echo "$as_me: failed program was
:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
22704 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22706 # The cast to long int works around a bug in the HP C Compiler,
22707 # see AC_CHECK_SIZEOF for more information.
22708 { echo "$as_me:$LINENO: checking alignment of long
" >&5
22709 echo $ECHO_N "checking alignment of long...
$ECHO_C" >&6; }
22710 if test "${ac_cv_alignof_long+set}" = set; then
22711 echo $ECHO_N "(cached
) $ECHO_C" >&6
22713 if test "$cross_compiling" = yes; then
22714 # Depending upon the size, compute the lo and hi bounds.
22715 cat >conftest.$ac_ext <<_ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h. */
22721 $ac_includes_default
22723 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22725 typedef struct { char x; long y; } ac__type_alignof_;
22729 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_compile") 2>conftest.er1
22745 grep -v '^ *+' conftest.er1 >conftest.err
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22749 (exit $ac_status); } && {
22750 test -z "$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 } && test -s conftest.$ac_objext; then
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22761 $ac_includes_default
22763 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22765 typedef struct { char x; long y; } ac__type_alignof_;
22769 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_compile") 2>conftest.er1
22785 grep -v '^ *+' conftest.er1 >conftest.err
22787 cat conftest.err >&5
22788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest.$ac_objext; then
22793 ac_hi=$ac_mid; break
22795 echo "$as_me: failed program was
:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22798 ac_lo=`expr $ac_mid + 1`
22799 if test $ac_lo -le $ac_mid; then
22803 ac_mid=`expr 2 '*' $ac_mid + 1`
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809 echo "$as_me: failed program was
:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 cat >conftest.$ac_ext <<_ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 $ac_includes_default
22820 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22822 typedef struct { char x; long y; } ac__type_alignof_;
22826 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 $ac_includes_default
22860 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22862 typedef struct { char x; long y; } ac__type_alignof_;
22866 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877 *) ac_try_echo=$ac_try;;
22879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22880 (eval "$ac_compile") 2>conftest.er1
22882 grep -v '^ *+' conftest.er1 >conftest.err
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest.$ac_objext; then
22890 ac_lo=$ac_mid; break
22892 echo "$as_me: failed program was
:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22895 ac_hi=`expr '(' $ac_mid ')' - 1`
22896 if test $ac_mid -le $ac_hi; then
22900 ac_mid=`expr 2 '*' $ac_mid`
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 echo "$as_me: failed program was
:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 # Binary search between lo and hi bounds.
22917 while test "x
$ac_lo" != "x
$ac_hi"; do
22918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22919 cat >conftest.$ac_ext <<_ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 $ac_includes_default
22927 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22929 typedef struct { char x; long y; } ac__type_alignof_;
22933 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22940 rm -f conftest.$ac_objext
22941 if { (ac_try="$ac_compile"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_compile") 2>conftest.er1
22949 grep -v '^ *+' conftest.er1 >conftest.err
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22953 (exit $ac_status); } && {
22954 test -z "$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22956 } && test -s conftest.$ac_objext; then
22959 echo "$as_me: failed program was
:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 ac_lo=`expr '(' $ac_mid ')' + 1`
22965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 ?*) ac_cv_alignof_long=$ac_lo;;
22969 '') if test "$ac_cv_type_long" = yes; then
22970 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
22971 See \
`config.log' for more details." >&5
22972 echo "$as_me: error: cannot compute alignment of long
22973 See \`config.log
' for more details." >&2;}
22974 { (exit 77); exit 77; }; }
22976 ac_cv_alignof_long=0
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 $ac_includes_default
22988 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22990 typedef struct { char x; long y; } ac__type_alignof_;
22991 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22992 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22994 #include <stdlib.h>
22999 FILE *f = fopen ("conftest.val", "w");
23002 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23004 long int i = longval ();
23005 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23007 fprintf (f, "%ld\n", i);
23011 unsigned long int i = ulongval ();
23012 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23014 fprintf (f, "%lu\n", i);
23016 return ferror (f) || fclose (f) != 0;
23022 rm -f conftest$ac_exeext
23023 if { (ac_try="$ac_link"
23024 case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_link") 2>&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23033 { (case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_try") 2>&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; }; then
23042 ac_cv_alignof_long=`cat conftest.val`
23044 echo "$as_me: program exited with status $ac_status" >&5
23045 echo "$as_me: failed program was:" >&5
23046 sed 's
/^
/|
/' conftest.$ac_ext >&5
23048 ( exit $ac_status )
23049 if test "$ac_cv_type_long" = yes; then
23050 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23051 See \`config.log' for more details.
" >&5
23052 echo "$as_me: error
: cannot compute alignment of long
23053 See \
`config.log' for more details." >&2;}
23054 { (exit 77); exit 77; }; }
23056 ac_cv_alignof_long=0
23059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23063 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23064 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23068 cat >>confdefs.h <<_ACEOF
23069 #define ALIGNOF_LONG $ac_cv_alignof_long
23073 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23074 { echo "$as_me:$LINENO: checking for long long int" >&5
23075 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23076 if test "${ac_cv_type_long_long_int+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23079 cat >conftest.$ac_ext <<_ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 $ac_includes_default
23086 typedef long long int ac__type_new_;
23090 if ((ac__type_new_ *) 0)
23092 if (sizeof (ac__type_new_))
23098 rm -f conftest.$ac_objext
23099 if { (ac_try="$ac_compile"
23100 case "(($ac_try" in
23101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23102 *) ac_try_echo
=$ac_try;;
23104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23105 (eval "$ac_compile") 2>conftest.er1
23107 grep -v '^ *+' conftest.er1
>conftest.err
23109 cat conftest.err
>&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } && {
23112 test -z "$ac_c_werror_flag" ||
23113 test ! -s conftest.err
23114 } && test -s conftest.
$ac_objext; then
23115 ac_cv_type_long_long_int
=yes
23117 echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.
$ac_ext >&5
23120 ac_cv_type_long_long_int
=no
23123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23125 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23126 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23128 # The cast to long int works around a bug in the HP C Compiler,
23129 # see AC_CHECK_SIZEOF for more information.
23130 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23131 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23132 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 if test "$cross_compiling" = yes; then
23136 # Depending upon the size, compute the lo and hi bounds.
23137 cat >conftest.
$ac_ext <<_ACEOF
23140 cat confdefs.h
>>conftest.
$ac_ext
23141 cat >>conftest.
$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 $ac_includes_default
23145 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23147 typedef struct { char x; long long int y; } ac__type_alignof_;
23151 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23158 rm -f conftest.
$ac_objext
23159 if { (ac_try
="$ac_compile"
23160 case "(($ac_try" in
23161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23165 (eval "$ac_compile") 2>conftest.er1
23167 grep -v '^ *+' conftest.er1 >conftest.err
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } && {
23172 test -z "$ac_c_werror_flag" ||
23173 test ! -s conftest.err
23174 } && test -s conftest.$ac_objext; then
23177 cat >conftest.$ac_ext <<_ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23183 $ac_includes_default
23185 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23187 typedef struct { char x; long long int y; } ac__type_alignof_;
23191 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23198 rm -f conftest.$ac_objext
23199 if { (ac_try="$ac_compile"
23200 case "(($ac_try" in
23201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23202 *) ac_try_echo
=$ac_try;;
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_compile") 2>conftest.er1
23207 grep -v '^ *+' conftest.er1
>conftest.err
23209 cat conftest.err
>&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && {
23212 test -z "$ac_c_werror_flag" ||
23213 test ! -s conftest.err
23214 } && test -s conftest.
$ac_objext; then
23215 ac_hi
=$ac_mid; break
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.
$ac_ext >&5
23220 ac_lo
=`expr $ac_mid + 1`
23221 if test $ac_lo -le $ac_mid; then
23225 ac_mid
=`expr 2 '*' $ac_mid + 1`
23228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23231 echo "$as_me: failed program was:" >&5
23232 sed 's/^/| /' conftest.
$ac_ext >&5
23234 cat >conftest.
$ac_ext <<_ACEOF
23237 cat confdefs.h
>>conftest.
$ac_ext
23238 cat >>conftest.
$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 $ac_includes_default
23242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23244 typedef struct { char x; long long int y; } ac__type_alignof_;
23248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23255 rm -f conftest.
$ac_objext
23256 if { (ac_try
="$ac_compile"
23257 case "(($ac_try" in
23258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23264 grep -v '^ *+' conftest.er1 >conftest.err
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.$ac_objext; then
23274 cat >conftest.$ac_ext <<_ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h. */
23280 $ac_includes_default
23282 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23284 typedef struct { char x; long long int y; } ac__type_alignof_;
23288 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23299 *) ac_try_echo
=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_compile") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1
>conftest.err
23306 cat conftest.err
>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest.
$ac_objext; then
23312 ac_lo
=$ac_mid; break
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.
$ac_ext >&5
23317 ac_hi
=`expr '(' $ac_mid ')' - 1`
23318 if test $ac_mid -le $ac_hi; then
23322 ac_mid
=`expr 2 '*' $ac_mid`
23325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.
$ac_ext >&5
23334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23338 # Binary search between lo and hi bounds.
23339 while test "x$ac_lo" != "x$ac_hi"; do
23340 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23341 cat >conftest.
$ac_ext <<_ACEOF
23344 cat confdefs.h
>>conftest.
$ac_ext
23345 cat >>conftest.
$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23347 $ac_includes_default
23349 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23351 typedef struct { char x; long long int y; } ac__type_alignof_;
23355 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23362 rm -f conftest.
$ac_objext
23363 if { (ac_try
="$ac_compile"
23364 case "(($ac_try" in
23365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_compile") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); } && {
23376 test -z "$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23378 } && test -s conftest.$ac_objext; then
23381 echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_lo=`expr '(' $ac_mid ')' + 1`
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23391 '') if test "$ac_cv_type_long_long_int" = yes; then
23392 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23393 See \`config.log
' for more details." >&5
23394 echo "$as_me: error: cannot compute alignment of long long int
23395 See \`config.log' for more details.
" >&2;}
23396 { (exit 77); exit 77; }; }
23398 ac_cv_alignof_long_long_int=0
23402 cat >conftest.$ac_ext <<_ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23408 $ac_includes_default
23410 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23412 typedef struct { char x; long long int y; } ac__type_alignof_;
23413 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23414 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23416 #include <stdlib.h>
23421 FILE *f = fopen ("conftest.val
", "w
");
23424 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23426 long int i = longval ();
23427 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23429 fprintf (f, "%ld
\n", i);
23433 unsigned long int i = ulongval ();
23434 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23436 fprintf (f, "%lu
\n", i);
23438 return ferror (f) || fclose (f) != 0;
23444 rm -f conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>&5
23453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23455 { (case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_try") 2>&5
23462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ac_cv_alignof_long_long_int=`cat conftest.val`
23466 echo "$as_me: program exited with status
$ac_status" >&5
23467 echo "$as_me: failed program was
:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ( exit $ac_status )
23471 if test "$ac_cv_type_long_long_int" = yes; then
23472 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long long int
23473 See \
`config.log' for more details." >&5
23474 echo "$as_me: error: cannot compute alignment of long long int
23475 See \`config.log
' for more details." >&2;}
23476 { (exit 77); exit 77; }; }
23478 ac_cv_alignof_long_long_int=0
23481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23485 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23486 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23490 cat >>confdefs.h <<_ACEOF
23491 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23496 { echo "$as_me:$LINENO: checking for double" >&5
23497 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23498 if test "${ac_cv_type_double+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23501 cat >conftest.$ac_ext <<_ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 $ac_includes_default
23508 typedef double ac__type_new_;
23512 if ((ac__type_new_ *) 0)
23514 if (sizeof (ac__type_new_))
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_compile") 2>conftest.er1
23529 grep -v '^
*+' conftest.er1 >conftest.err
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } && {
23534 test -z "$ac_c_werror_flag" ||
23535 test ! -s conftest.err
23536 } && test -s conftest.$ac_objext; then
23537 ac_cv_type_double=yes
23539 echo "$as_me: failed program was:" >&5
23540 sed 's
/^
/|
/' conftest.$ac_ext >&5
23542 ac_cv_type_double=no
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23548 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23550 # The cast to long int works around a bug in the HP C Compiler,
23551 # see AC_CHECK_SIZEOF for more information.
23552 { echo "$as_me:$LINENO: checking alignment of double" >&5
23553 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23554 if test "${ac_cv_alignof_double+set}" = set; then
23555 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 if test "$cross_compiling" = yes; then
23558 # Depending upon the size, compute the lo and hi bounds.
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23565 $ac_includes_default
23567 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23569 typedef struct { char x; double y; } ac__type_alignof_;
23573 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23580 rm -f conftest.$ac_objext
23581 if { (ac_try="$ac_compile"
23582 case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_compile") 2>conftest.er1
23589 grep -v '^
*+' conftest.er1 >conftest.err
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest.$ac_objext; then
23599 cat >conftest.$ac_ext <<_ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23605 $ac_includes_default
23607 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23609 typedef struct { char x; double y; } ac__type_alignof_;
23613 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_compile") 2>conftest.er1
23629 grep -v '^
*+' conftest.er1 >conftest.err
23631 cat conftest.err >&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } && {
23634 test -z "$ac_c_werror_flag" ||
23635 test ! -s conftest.err
23636 } && test -s conftest.$ac_objext; then
23637 ac_hi=$ac_mid; break
23639 echo "$as_me: failed program was:" >&5
23640 sed 's
/^
/|
/' conftest.$ac_ext >&5
23642 ac_lo=`expr $ac_mid + 1`
23643 if test $ac_lo -le $ac_mid; then
23647 ac_mid=`expr 2 '*' $ac_mid + 1`
23650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23653 echo "$as_me: failed program was:" >&5
23654 sed 's
/^
/|
/' conftest.$ac_ext >&5
23656 cat >conftest.$ac_ext <<_ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h. */
23662 $ac_includes_default
23664 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23666 typedef struct { char x; double y; } ac__type_alignof_;
23670 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23677 rm -f conftest.$ac_objext
23678 if { (ac_try="$ac_compile"
23679 case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_compile") 2>conftest.er1
23686 grep -v '^
*+' conftest.er1 >conftest.err
23688 cat conftest.err >&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && {
23691 test -z "$ac_c_werror_flag" ||
23692 test ! -s conftest.err
23693 } && test -s conftest.$ac_objext; then
23696 cat >conftest.$ac_ext <<_ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702 $ac_includes_default
23704 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23706 typedef struct { char x; double y; } ac__type_alignof_;
23710 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724 (eval "$ac_compile") 2>conftest.er1
23726 grep -v '^
*+' conftest.er1 >conftest.err
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } && {
23731 test -z "$ac_c_werror_flag" ||
23732 test ! -s conftest.err
23733 } && test -s conftest.$ac_objext; then
23734 ac_lo=$ac_mid; break
23736 echo "$as_me: failed program was:" >&5
23737 sed 's
/^
/|
/' conftest.$ac_ext >&5
23739 ac_hi=`expr '(' $ac_mid ')' - 1`
23740 if test $ac_mid -le $ac_hi; then
23744 ac_mid=`expr 2 '*' $ac_mid`
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23750 echo "$as_me: failed program was:" >&5
23751 sed 's
/^
/|
/' conftest.$ac_ext >&5
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 # Binary search between lo and hi bounds.
23761 while test "x$ac_lo" != "x$ac_hi"; do
23762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 $ac_includes_default
23771 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23773 typedef struct { char x; double y; } ac__type_alignof_;
23777 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23784 rm -f conftest.$ac_objext
23785 if { (ac_try="$ac_compile"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791 (eval "$ac_compile") 2>conftest.er1
23793 grep -v '^
*+' conftest.er1 >conftest.err
23795 cat conftest.err >&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && {
23798 test -z "$ac_c_werror_flag" ||
23799 test ! -s conftest.err
23800 } && test -s conftest.$ac_objext; then
23803 echo "$as_me: failed program was:" >&5
23804 sed 's
/^
/|
/' conftest.$ac_ext >&5
23806 ac_lo=`expr '(' $ac_mid ')' + 1`
23809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812 ?*) ac_cv_alignof_double=$ac_lo;;
23813 '') if test "$ac_cv_type_double" = yes; then
23814 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23815 See \`config.log' for more details.
" >&5
23816 echo "$as_me: error
: cannot compute alignment of double
23817 See \
`config.log' for more details." >&2;}
23818 { (exit 77); exit 77; }; }
23820 ac_cv_alignof_double=0
23824 cat >conftest.$ac_ext <<_ACEOF
23827 cat confdefs.h >>conftest.$ac_ext
23828 cat >>conftest.$ac_ext <<_ACEOF
23829 /* end confdefs.h. */
23830 $ac_includes_default
23832 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23834 typedef struct { char x; double y; } ac__type_alignof_;
23835 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23836 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23838 #include <stdlib.h>
23843 FILE *f = fopen ("conftest.val", "w");
23846 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23848 long int i = longval ();
23849 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23851 fprintf (f, "%ld\n", i);
23855 unsigned long int i = ulongval ();
23856 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23858 fprintf (f, "%lu\n", i);
23860 return ferror (f) || fclose (f) != 0;
23866 rm -f conftest$ac_exeext
23867 if { (ac_try="$ac_link"
23868 case "(($ac_try" in
23869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23870 *) ac_try_echo
=$ac_try;;
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873 (eval "$ac_link") 2>&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23877 { (case "(($ac_try" in
23878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23879 *) ac_try_echo=$ac_try;;
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882 (eval "$ac_try") 2>&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; }; then
23886 ac_cv_alignof_double=`cat conftest.val
`
23888 echo "$as_me: program exited with status $ac_status" >&5
23889 echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23892 ( exit $ac_status )
23893 if test "$ac_cv_type_double" = yes; then
23894 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23895 See \`config.log
' for more details." >&5
23896 echo "$as_me: error: cannot compute alignment of double
23897 See \`config.log' for more details.
" >&2;}
23898 { (exit 77); exit 77; }; }
23900 ac_cv_alignof_double=0
23903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23907 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_double" >&5
23908 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23912 cat >>confdefs.h <<_ACEOF
23913 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23918 # Compute maximum alignment of any basic type.
23919 # We assume long's alignment is at least as strong as char, short, or int;
23920 # but we must check long long (if it exists) and double.
23922 MAX_ALIGNOF=$ac_cv_alignof_long
23923 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23924 MAX_ALIGNOF=$ac_cv_alignof_double
23926 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23927 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23930 cat >>confdefs.h <<_ACEOF
23931 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23936 # Some platforms predefine the types int8, int16, etc. Only check
23937 # a (hopefully) representative subset.
23938 { echo "$as_me:$LINENO: checking
for int8
" >&5
23939 echo $ECHO_N "checking
for int8...
$ECHO_C" >&6; }
23940 if test "${ac_cv_type_int8+set}" = set; then
23941 echo $ECHO_N "(cached
) $ECHO_C" >&6
23943 cat >conftest.$ac_ext <<_ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h. */
23950 #ifdef HAVE_SUPPORTDEFS_H
23951 #include <SupportDefs.h>
23954 typedef int8 ac__type_new_;
23958 if ((ac__type_new_ *) 0)
23960 if (sizeof (ac__type_new_))
23966 rm -f conftest.$ac_objext
23967 if { (ac_try="$ac_compile"
23968 case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23973 (eval "$ac_compile") 2>conftest.er1
23975 grep -v '^ *+' conftest.er1 >conftest.err
23977 cat conftest.err >&5
23978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23979 (exit $ac_status); } && {
23980 test -z "$ac_c_werror_flag" ||
23981 test ! -s conftest.err
23982 } && test -s conftest.$ac_objext; then
23983 ac_cv_type_int8=yes
23985 echo "$as_me: failed program was
:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23993 { echo "$as_me:$LINENO: result
: $ac_cv_type_int8" >&5
23994 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23995 if test $ac_cv_type_int8 = yes; then
23997 cat >>confdefs.h <<_ACEOF
23998 #define HAVE_INT8 1
24003 { echo "$as_me:$LINENO: checking
for uint8
" >&5
24004 echo $ECHO_N "checking
for uint8...
$ECHO_C" >&6; }
24005 if test "${ac_cv_type_uint8+set}" = set; then
24006 echo $ECHO_N "(cached
) $ECHO_C" >&6
24008 cat >conftest.$ac_ext <<_ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24015 #ifdef HAVE_SUPPORTDEFS_H
24016 #include <SupportDefs.h>
24019 typedef uint8 ac__type_new_;
24023 if ((ac__type_new_ *) 0)
24025 if (sizeof (ac__type_new_))
24031 rm -f conftest.$ac_objext
24032 if { (ac_try="$ac_compile"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_compile") 2>conftest.er1
24040 grep -v '^ *+' conftest.er1 >conftest.err
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24044 (exit $ac_status); } && {
24045 test -z "$ac_c_werror_flag" ||
24046 test ! -s conftest.err
24047 } && test -s conftest.$ac_objext; then
24048 ac_cv_type_uint8=yes
24050 echo "$as_me: failed program was
:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 ac_cv_type_uint8=no
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint8" >&5
24059 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24060 if test $ac_cv_type_uint8 = yes; then
24062 cat >>confdefs.h <<_ACEOF
24063 #define HAVE_UINT8 1
24068 { echo "$as_me:$LINENO: checking
for int64
" >&5
24069 echo $ECHO_N "checking
for int64...
$ECHO_C" >&6; }
24070 if test "${ac_cv_type_int64+set}" = set; then
24071 echo $ECHO_N "(cached
) $ECHO_C" >&6
24073 cat >conftest.$ac_ext <<_ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24080 #ifdef HAVE_SUPPORTDEFS_H
24081 #include <SupportDefs.h>
24084 typedef int64 ac__type_new_;
24088 if ((ac__type_new_ *) 0)
24090 if (sizeof (ac__type_new_))
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_compile") 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest.$ac_objext; then
24113 ac_cv_type_int64=yes
24115 echo "$as_me: failed program was
:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 ac_cv_type_int64=no
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64" >&5
24124 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24125 if test $ac_cv_type_int64 = yes; then
24127 cat >>confdefs.h <<_ACEOF
24128 #define HAVE_INT64 1
24133 { echo "$as_me:$LINENO: checking
for uint64
" >&5
24134 echo $ECHO_N "checking
for uint64...
$ECHO_C" >&6; }
24135 if test "${ac_cv_type_uint64+set}" = set; then
24136 echo $ECHO_N "(cached
) $ECHO_C" >&6
24138 cat >conftest.$ac_ext <<_ACEOF
24141 cat confdefs.h >>conftest.$ac_ext
24142 cat >>conftest.$ac_ext <<_ACEOF
24143 /* end confdefs.h. */
24145 #ifdef HAVE_SUPPORTDEFS_H
24146 #include <SupportDefs.h>
24149 typedef uint64 ac__type_new_;
24153 if ((ac__type_new_ *) 0)
24155 if (sizeof (ac__type_new_))
24161 rm -f conftest.$ac_objext
24162 if { (ac_try="$ac_compile"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24168 (eval "$ac_compile") 2>conftest.er1
24170 grep -v '^ *+' conftest.er1 >conftest.err
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24174 (exit $ac_status); } && {
24175 test -z "$ac_c_werror_flag" ||
24176 test ! -s conftest.err
24177 } && test -s conftest.$ac_objext; then
24178 ac_cv_type_uint64=yes
24180 echo "$as_me: failed program was
:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24183 ac_cv_type_uint64=no
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24188 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64" >&5
24189 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24190 if test $ac_cv_type_uint64 = yes; then
24192 cat >>confdefs.h <<_ACEOF
24193 #define HAVE_UINT64 1
24200 # We also check for sig_atomic_t, which *should* be defined per ANSI
24201 # C, but is missing on some old platforms.
24202 { echo "$as_me:$LINENO: checking
for sig_atomic_t
" >&5
24203 echo $ECHO_N "checking
for sig_atomic_t...
$ECHO_C" >&6; }
24204 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24205 echo $ECHO_N "(cached
) $ECHO_C" >&6
24207 cat >conftest.$ac_ext <<_ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 #include <signal.h>
24215 typedef sig_atomic_t ac__type_new_;
24219 if ((ac__type_new_ *) 0)
24221 if (sizeof (ac__type_new_))
24227 rm -f conftest.$ac_objext
24228 if { (ac_try="$ac_compile"
24229 case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_compile") 2>conftest.er1
24236 grep -v '^ *+' conftest.er1 >conftest.err
24238 cat conftest.err >&5
24239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24240 (exit $ac_status); } && {
24241 test -z "$ac_c_werror_flag" ||
24242 test ! -s conftest.err
24243 } && test -s conftest.$ac_objext; then
24244 ac_cv_type_sig_atomic_t=yes
24246 echo "$as_me: failed program was
:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24249 ac_cv_type_sig_atomic_t=no
24252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24254 { echo "$as_me:$LINENO: result
: $ac_cv_type_sig_atomic_t" >&5
24255 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24256 if test $ac_cv_type_sig_atomic_t = yes; then
24258 cat >>confdefs.h <<_ACEOF
24259 #define HAVE_SIG_ATOMIC_T 1
24267 # If the user did not disable integer datetimes, check that
24268 # there is a working 64-bit integral type to use.
24269 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24270 test x"$HAVE_LONG_INT_64" = x"no
" &&
24271 test x"$HAVE_LONG_LONG_INT_64" = x"no
" &&
24272 test x"$HAVE_INT64" = x"no
" ; then
24273 { { echo "$as_me:$LINENO: error
:
24274 Integer-based datetime support requires a
64-bit integer
type,
24275 but no such
type could be found. The
--disable-integer-datetimes
24276 configure option can be used to disable integer-based storage
24277 of datetime values.
" >&5
24278 echo "$as_me: error
:
24279 Integer-based datetime support requires a
64-bit integer
type,
24280 but no such
type could be found. The
--disable-integer-datetimes
24281 configure option can be used to disable integer-based storage
24282 of datetime values.
" >&2;}
24283 { (exit 1); exit 1; }; }
24287 if test "$PORTNAME" != "win32
"
24289 { echo "$as_me:$LINENO: checking
for POSIX signal interface
" >&5
24290 echo $ECHO_N "checking
for POSIX signal interface...
$ECHO_C" >&6; }
24291 if test "${pgac_cv_func_posix_signals+set}" = set; then
24292 echo $ECHO_N "(cached
) $ECHO_C" >&6
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 #include <signal.h>
24305 struct sigaction act, oact;
24306 sigemptyset(&act.sa_mask);
24307 act.sa_flags = SA_RESTART;
24308 sigaction(0, &act, &oact);
24313 rm -f conftest.$ac_objext conftest$ac_exeext
24314 if { (ac_try="$ac_link"
24315 case "(($ac_try" in
24316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317 *) ac_try_echo=$ac_try;;
24319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24320 (eval "$ac_link") 2>conftest.er1
24322 grep -v '^ *+' conftest.er1 >conftest.err
24324 cat conftest.err >&5
24325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24326 (exit $ac_status); } && {
24327 test -z "$ac_c_werror_flag" ||
24328 test ! -s conftest.err
24329 } && test -s conftest$ac_exeext &&
24330 $as_test_x conftest$ac_exeext; then
24331 pgac_cv_func_posix_signals=yes
24333 echo "$as_me: failed program was
:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24336 pgac_cv_func_posix_signals=no
24339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24340 conftest$ac_exeext conftest.$ac_ext
24342 { echo "$as_me:$LINENO: result
: $pgac_cv_func_posix_signals" >&5
24343 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24344 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24346 cat >>confdefs.h <<\_ACEOF
24347 #define HAVE_POSIX_SIGNALS
24351 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24353 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24354 { { echo "$as_me:$LINENO: error
:
24355 Thread-safety requires POSIX signals
, which are not supported by this
24356 operating system.
" >&5
24357 echo "$as_me: error
:
24358 Thread-safety requires POSIX signals
, which are not supported by this
24359 operating system.
" >&2;}
24360 { (exit 1); exit 1; }; }
24364 if test $ac_cv_func_fseeko = yes; then
24365 # Check whether --enable-largefile was given.
24366 if test "${enable_largefile+set}" = set; then
24367 enableval=$enable_largefile;
24370 if test "$enable_largefile" != no; then
24372 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
24373 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
24374 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24375 echo $ECHO_N "(cached
) $ECHO_C" >&6
24377 ac_cv_sys_largefile_CC=no
24378 if test "$GCC" != yes; then
24381 # IRIX 6.2 and later do not support large files by default,
24382 # so use the C compiler's -n32 option if that helps.
24383 cat >conftest.$ac_ext <<_ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h. */
24389 #include <sys/types.h>
24390 /* Check that off_t can represent 2**63 - 1 correctly.
24391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24392 since some C++ compilers masquerading as C compilers
24393 incorrectly reject 9223372036854775807. */
24394 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24396 && LARGE_OFF_T % 2147483647 == 1)
24406 rm -f conftest.$ac_objext
24407 if { (ac_try="$ac_compile"
24408 case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_compile") 2>conftest.er1
24415 grep -v '^ *+' conftest.er1 >conftest.err
24417 cat conftest.err >&5
24418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24419 (exit $ac_status); } && {
24420 test -z "$ac_c_werror_flag" ||
24421 test ! -s conftest.err
24422 } && test -s conftest.$ac_objext; then
24425 echo "$as_me: failed program was
:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24431 rm -f core conftest.err conftest.$ac_objext
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_compile") 2>conftest.er1
24442 grep -v '^ *+' conftest.er1 >conftest.err
24444 cat conftest.err >&5
24445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24446 (exit $ac_status); } && {
24447 test -z "$ac_c_werror_flag" ||
24448 test ! -s conftest.err
24449 } && test -s conftest.$ac_objext; then
24450 ac_cv_sys_largefile_CC=' -n32'; break
24452 echo "$as_me: failed program was
:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24458 rm -f core conftest.err conftest.$ac_objext
24462 rm -f conftest.$ac_ext
24465 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
24466 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24467 if test "$ac_cv_sys_largefile_CC" != no; then
24468 CC=$CC$ac_cv_sys_largefile_CC
24471 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
24472 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
24473 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24474 echo $ECHO_N "(cached
) $ECHO_C" >&6
24477 cat >conftest.$ac_ext <<_ACEOF
24480 cat confdefs.h >>conftest.$ac_ext
24481 cat >>conftest.$ac_ext <<_ACEOF
24482 /* end confdefs.h. */
24483 #include <sys/types.h>
24484 /* Check that off_t can represent 2**63 - 1 correctly.
24485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24486 since some C++ compilers masquerading as C compilers
24487 incorrectly reject 9223372036854775807. */
24488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24490 && LARGE_OFF_T % 2147483647 == 1)
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_compile") 2>conftest.er1
24509 grep -v '^ *+' conftest.er1 >conftest.err
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest.$ac_objext; then
24517 ac_cv_sys_file_offset_bits=no; break
24519 echo "$as_me: failed program was
:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526 cat >conftest.$ac_ext <<_ACEOF
24529 cat confdefs.h >>conftest.$ac_ext
24530 cat >>conftest.$ac_ext <<_ACEOF
24531 /* end confdefs.h. */
24532 #define _FILE_OFFSET_BITS 64
24533 #include <sys/types.h>
24534 /* Check that off_t can represent 2**63 - 1 correctly.
24535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24536 since some C++ compilers masquerading as C compilers
24537 incorrectly reject 9223372036854775807. */
24538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24540 && LARGE_OFF_T % 2147483647 == 1)
24550 rm -f conftest.$ac_objext
24551 if { (ac_try="$ac_compile"
24552 case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24557 (eval "$ac_compile") 2>conftest.er1
24559 grep -v '^ *+' conftest.er1 >conftest.err
24561 cat conftest.err >&5
24562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24563 (exit $ac_status); } && {
24564 test -z "$ac_c_werror_flag" ||
24565 test ! -s conftest.err
24566 } && test -s conftest.$ac_objext; then
24567 ac_cv_sys_file_offset_bits=64; break
24569 echo "$as_me: failed program was
:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24576 ac_cv_sys_file_offset_bits=unknown
24580 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
24581 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24582 case $ac_cv_sys_file_offset_bits in #(
24585 cat >>confdefs.h <<_ACEOF
24586 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24591 if test $ac_cv_sys_file_offset_bits = unknown; then
24592 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
24593 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
24594 if test "${ac_cv_sys_large_files+set}" = set; then
24595 echo $ECHO_N "(cached
) $ECHO_C" >&6
24598 cat >conftest.$ac_ext <<_ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h. */
24604 #include <sys/types.h>
24605 /* Check that off_t can represent 2**63 - 1 correctly.
24606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24607 since some C++ compilers masquerading as C compilers
24608 incorrectly reject 9223372036854775807. */
24609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24611 && LARGE_OFF_T % 2147483647 == 1)
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_compile") 2>conftest.er1
24630 grep -v '^ *+' conftest.er1 >conftest.err
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24634 (exit $ac_status); } && {
24635 test -z "$ac_c_werror_flag" ||
24636 test ! -s conftest.err
24637 } && test -s conftest.$ac_objext; then
24638 ac_cv_sys_large_files=no; break
24640 echo "$as_me: failed program was
:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24647 cat >conftest.$ac_ext <<_ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h. */
24653 #define _LARGE_FILES 1
24654 #include <sys/types.h>
24655 /* Check that off_t can represent 2**63 - 1 correctly.
24656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24657 since some C++ compilers masquerading as C compilers
24658 incorrectly reject 9223372036854775807. */
24659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24661 && LARGE_OFF_T % 2147483647 == 1)
24671 rm -f conftest.$ac_objext
24672 if { (ac_try="$ac_compile"
24673 case "(($ac_try" in
24674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_compile") 2>conftest.er1
24680 grep -v '^ *+' conftest.er1 >conftest.err
24682 cat conftest.err >&5
24683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24684 (exit $ac_status); } && {
24685 test -z "$ac_c_werror_flag" ||
24686 test ! -s conftest.err
24687 } && test -s conftest.$ac_objext; then
24688 ac_cv_sys_large_files=1; break
24690 echo "$as_me: failed program was
:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24697 ac_cv_sys_large_files=unknown
24701 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
24702 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24703 case $ac_cv_sys_large_files in #(
24706 cat >>confdefs.h <<_ACEOF
24707 #define _LARGE_FILES $ac_cv_sys_large_files
24717 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24718 { echo "$as_me:$LINENO: checking
for off_t
" >&5
24719 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
24720 if test "${ac_cv_type_off_t+set}" = set; then
24721 echo $ECHO_N "(cached
) $ECHO_C" >&6
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 $ac_includes_default
24730 typedef off_t ac__type_new_;
24734 if ((ac__type_new_ *) 0)
24736 if (sizeof (ac__type_new_))
24742 rm -f conftest.$ac_objext
24743 if { (ac_try="$ac_compile"
24744 case "(($ac_try" in
24745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746 *) ac_try_echo=$ac_try;;
24748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24749 (eval "$ac_compile") 2>conftest.er1
24751 grep -v '^ *+' conftest.er1 >conftest.err
24753 cat conftest.err >&5
24754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24755 (exit $ac_status); } && {
24756 test -z "$ac_c_werror_flag" ||
24757 test ! -s conftest.err
24758 } && test -s conftest.$ac_objext; then
24759 ac_cv_type_off_t=yes
24761 echo "$as_me: failed program was
:" >&5
24762 sed 's/^/| /' conftest.$ac_ext >&5
24764 ac_cv_type_off_t=no
24767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24769 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
24770 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24772 # The cast to long int works around a bug in the HP C Compiler
24773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24775 # This bug is HP SR number 8606223364.
24776 { echo "$as_me:$LINENO: checking size of off_t
" >&5
24777 echo $ECHO_N "checking size of off_t...
$ECHO_C" >&6; }
24778 if test "${ac_cv_sizeof_off_t+set}" = set; then
24779 echo $ECHO_N "(cached
) $ECHO_C" >&6
24781 if test "$cross_compiling" = yes; then
24782 # Depending upon the size, compute the lo and hi bounds.
24783 cat >conftest.$ac_ext <<_ACEOF
24786 cat confdefs.h >>conftest.$ac_ext
24787 cat >>conftest.$ac_ext <<_ACEOF
24788 /* end confdefs.h. */
24789 $ac_includes_default
24790 typedef off_t ac__type_sizeof_;
24794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24801 rm -f conftest.$ac_objext
24802 if { (ac_try="$ac_compile"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24808 (eval "$ac_compile") 2>conftest.er1
24810 grep -v '^ *+' conftest.er1 >conftest.err
24812 cat conftest.err >&5
24813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24814 (exit $ac_status); } && {
24815 test -z "$ac_c_werror_flag" ||
24816 test ! -s conftest.err
24817 } && test -s conftest.$ac_objext; then
24820 cat >conftest.$ac_ext <<_ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h. */
24826 $ac_includes_default
24827 typedef off_t ac__type_sizeof_;
24831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24838 rm -f conftest.$ac_objext
24839 if { (ac_try="$ac_compile"
24840 case "(($ac_try" in
24841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842 *) ac_try_echo=$ac_try;;
24844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24845 (eval "$ac_compile") 2>conftest.er1
24847 grep -v '^ *+' conftest.er1 >conftest.err
24849 cat conftest.err >&5
24850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24851 (exit $ac_status); } && {
24852 test -z "$ac_c_werror_flag" ||
24853 test ! -s conftest.err
24854 } && test -s conftest.$ac_objext; then
24855 ac_hi=$ac_mid; break
24857 echo "$as_me: failed program was
:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24860 ac_lo=`expr $ac_mid + 1`
24861 if test $ac_lo -le $ac_mid; then
24865 ac_mid=`expr 2 '*' $ac_mid + 1`
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24871 echo "$as_me: failed program was
:" >&5
24872 sed 's/^/| /' conftest.$ac_ext >&5
24874 cat >conftest.$ac_ext <<_ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h. */
24880 $ac_includes_default
24881 typedef off_t ac__type_sizeof_;
24885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24892 rm -f conftest.$ac_objext
24893 if { (ac_try="$ac_compile"
24894 case "(($ac_try" in
24895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896 *) ac_try_echo=$ac_try;;
24898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24899 (eval "$ac_compile") 2>conftest.er1
24901 grep -v '^ *+' conftest.er1 >conftest.err
24903 cat conftest.err >&5
24904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24905 (exit $ac_status); } && {
24906 test -z "$ac_c_werror_flag" ||
24907 test ! -s conftest.err
24908 } && test -s conftest.$ac_objext; then
24911 cat >conftest.$ac_ext <<_ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h. */
24917 $ac_includes_default
24918 typedef off_t ac__type_sizeof_;
24922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24929 rm -f conftest.$ac_objext
24930 if { (ac_try="$ac_compile"
24931 case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_compile") 2>conftest.er1
24938 grep -v '^ *+' conftest.er1 >conftest.err
24940 cat conftest.err >&5
24941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24942 (exit $ac_status); } && {
24943 test -z "$ac_c_werror_flag" ||
24944 test ! -s conftest.err
24945 } && test -s conftest.$ac_objext; then
24946 ac_lo=$ac_mid; break
24948 echo "$as_me: failed program was
:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 ac_hi=`expr '(' $ac_mid ')' - 1`
24952 if test $ac_mid -le $ac_hi; then
24956 ac_mid=`expr 2 '*' $ac_mid`
24959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24962 echo "$as_me: failed program was
:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24972 # Binary search between lo and hi bounds.
24973 while test "x
$ac_lo" != "x
$ac_hi"; do
24974 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24975 cat >conftest.$ac_ext <<_ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24981 $ac_includes_default
24982 typedef off_t ac__type_sizeof_;
24986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24993 rm -f conftest.$ac_objext
24994 if { (ac_try="$ac_compile"
24995 case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25000 (eval "$ac_compile") 2>conftest.er1
25002 grep -v '^ *+' conftest.er1 >conftest.err
25004 cat conftest.err >&5
25005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25006 (exit $ac_status); } && {
25007 test -z "$ac_c_werror_flag" ||
25008 test ! -s conftest.err
25009 } && test -s conftest.$ac_objext; then
25012 echo "$as_me: failed program was
:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25015 ac_lo=`expr '(' $ac_mid ')' + 1`
25018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25021 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25022 '') if test "$ac_cv_type_off_t" = yes; then
25023 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
25024 See \
`config.log' for more details." >&5
25025 echo "$as_me: error: cannot compute sizeof (off_t)
25026 See \`config.log
' for more details." >&2;}
25027 { (exit 77); exit 77; }; }
25029 ac_cv_sizeof_off_t=0
25033 cat >conftest.$ac_ext <<_ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25039 $ac_includes_default
25040 typedef off_t ac__type_sizeof_;
25041 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25042 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25044 #include <stdlib.h>
25049 FILE *f = fopen ("conftest.val", "w");
25052 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25054 long int i = longval ();
25055 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25057 fprintf (f, "%ld\n", i);
25061 unsigned long int i = ulongval ();
25062 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25064 fprintf (f, "%lu\n", i);
25066 return ferror (f) || fclose (f) != 0;
25072 rm -f conftest$ac_exeext
25073 if { (ac_try="$ac_link"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_link") 2>&5
25081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25083 { (case "(($ac_try" in
25084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085 *) ac_try_echo=$ac_try;;
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088 (eval "$ac_try") 2>&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); }; }; then
25092 ac_cv_sizeof_off_t=`cat conftest.val`
25094 echo "$as_me: program exited with status $ac_status" >&5
25095 echo "$as_me: failed program was:" >&5
25096 sed 's
/^
/|
/' conftest.$ac_ext >&5
25098 ( exit $ac_status )
25099 if test "$ac_cv_type_off_t" = yes; then
25100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25101 See \`config.log' for more details.
" >&5
25102 echo "$as_me: error
: cannot compute sizeof
(off_t
)
25103 See \
`config.log' for more details." >&2;}
25104 { (exit 77); exit 77; }; }
25106 ac_cv_sizeof_off_t=0
25109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25113 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25114 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25118 cat >>confdefs.h <<_ACEOF
25119 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25124 # If we don't have largefile support, can't handle segsize >= 2GB.
25125 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25126 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25127 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25128 { (exit 1); exit 1; }; }
25131 # SunOS doesn't handle negative byte comparisons properly with +/- return
25132 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25133 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25134 if test "${ac_cv_func_memcmp_working+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
25137 if test "$cross_compiling" = yes; then
25138 ac_cv_func_memcmp_working=no
25140 cat >conftest.$ac_ext <<_ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 $ac_includes_default
25151 /* Some versions of memcmp are not 8-bit clean. */
25152 char c0 = '\100', c1 = '\200', c2 = '\201';
25153 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25156 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25157 or more and with at least one buffer not starting on a 4-byte boundary.
25158 William Lewis provided this test program. */
25163 for (i = 0; i < 4; i++)
25167 strcpy (a, "--------01111111");
25168 strcpy (b, "--------10000000");
25169 if (memcmp (a, b, 16) >= 0)
25179 rm -f conftest$ac_exeext
25180 if { (ac_try="$ac_link"
25181 case "(($ac_try" in
25182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25183 *) ac_try_echo
=$ac_try;;
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186 (eval "$ac_link") 2>&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25190 { (case "(($ac_try" in
25191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25192 *) ac_try_echo=$ac_try;;
25194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25195 (eval "$ac_try") 2>&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25199 ac_cv_func_memcmp_working=yes
25201 echo "$as_me: program exited with status $ac_status" >&5
25202 echo "$as_me: failed program was:" >&5
25203 sed 's/^/| /' conftest.$ac_ext >&5
25205 ( exit $ac_status )
25206 ac_cv_func_memcmp_working=no
25208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25213 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25214 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25215 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25216 *" memcmp.$ac_objext "* ) ;;
25217 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25224 # Select semaphore implementation type.
25225 if test "$PORTNAME" != "win32"; then
25226 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25228 cat >>confdefs.h <<\_ACEOF
25229 #define USE_NAMED_POSIX_SEMAPHORES 1
25232 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25234 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25236 cat >>confdefs.h <<\_ACEOF
25237 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25240 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25243 cat >>confdefs.h <<\_ACEOF
25244 #define USE_SYSV_SEMAPHORES 1
25247 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25252 cat >>confdefs.h <<\_ACEOF
25253 #define USE_WIN32_SEMAPHORES 1
25256 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25260 # Select shared-memory implementation type.
25261 if test "$PORTNAME" != "win32"; then
25263 cat >>confdefs.h <<\_ACEOF
25264 #define USE_SYSV_SHARED_MEMORY 1
25267 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25270 cat >>confdefs.h <<\_ACEOF
25271 #define USE_WIN32_SHARED_MEMORY 1
25274 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25277 # If not set in template file, set bytes to use libc memset()
25278 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25279 MEMSET_LOOP_LIMIT=1024
25282 cat >>confdefs.h <<_ACEOF
25283 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25288 if test "$enable_nls" = yes ; then
25290 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25291 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25292 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25295 ac_func_search_save_LIBS=$LIBS
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25303 /* Override any GCC internal prototype to avoid an error.
25304 Use char because int might match the return type of a GCC
25305 builtin and then its argument prototype would still apply. */
25309 char bind_textdomain_codeset ();
25313 return bind_textdomain_codeset ();
25318 for ac_lib in '' intl; do
25319 if test -z "$ac_lib"; then
25320 ac_res="none required"
25323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25325 rm -f conftest.$ac_objext conftest$ac_exeext
25326 if { (ac_try="$ac_link"
25327 case "(($ac_try" in
25328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25329 *) ac_try_echo
=$ac_try;;
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332 (eval "$ac_link") 2>conftest.er1
25334 grep -v '^ *+' conftest.er1
>conftest.err
25336 cat conftest.err
>&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } && {
25339 test -z "$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25341 } && test -s conftest
$ac_exeext &&
25342 $as_test_x conftest
$ac_exeext; then
25343 ac_cv_search_bind_textdomain_codeset
=$ac_res
25345 echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.
$ac_ext >&5
25351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25353 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25357 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25360 ac_cv_search_bind_textdomain_codeset
=no
25362 rm conftest.
$ac_ext
25363 LIBS
=$ac_func_search_save_LIBS
25365 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25366 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25367 ac_res
=$ac_cv_search_bind_textdomain_codeset
25368 if test "$ac_res" != no
; then
25369 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25372 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25373 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25374 { (exit 1); exit 1; }; }
25377 if test "${ac_cv_header_libintl_h+set}" = set; then
25378 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25379 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25380 if test "${ac_cv_header_libintl_h+set}" = set; then
25381 echo $ECHO_N "(cached) $ECHO_C" >&6
25383 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25384 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25386 # Is the header compilable?
25387 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25388 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25389 cat >conftest.
$ac_ext <<_ACEOF
25392 cat confdefs.h
>>conftest.
$ac_ext
25393 cat >>conftest.
$ac_ext <<_ACEOF
25394 /* end confdefs.h. */
25395 $ac_includes_default
25396 #include <libintl.h>
25398 rm -f conftest.
$ac_objext
25399 if { (ac_try
="$ac_compile"
25400 case "(($ac_try" in
25401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25402 *) ac_try_echo=$ac_try;;
25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25405 (eval "$ac_compile") 2>conftest.er1
25407 grep -v '^ *+' conftest.er1 >conftest.err
25409 cat conftest.err >&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } && {
25412 test -z "$ac_c_werror_flag" ||
25413 test ! -s conftest.err
25414 } && test -s conftest.$ac_objext; then
25415 ac_header_compiler=yes
25417 echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 ac_header_compiler=no
25423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25425 echo "${ECHO_T}$ac_header_compiler" >&6; }
25427 # Is the header present?
25428 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25429 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25430 cat >conftest.$ac_ext <<_ACEOF
25433 cat confdefs.h >>conftest.$ac_ext
25434 cat >>conftest.$ac_ext <<_ACEOF
25435 /* end confdefs.h. */
25436 #include <libintl.h>
25438 if { (ac_try="$ac_cpp conftest.$ac_ext"
25439 case "(($ac_try" in
25440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25441 *) ac_try_echo
=$ac_try;;
25443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25446 grep -v '^ *+' conftest.er1
>conftest.err
25448 cat conftest.err
>&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } >/dev
/null
&& {
25451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25452 test ! -s conftest.err
25454 ac_header_preproc
=yes
25456 echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.
$ac_ext >&5
25459 ac_header_preproc
=no
25462 rm -f conftest.err conftest.
$ac_ext
25463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25464 echo "${ECHO_T}$ac_header_preproc" >&6; }
25466 # So? What about this header?
25467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25469 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25470 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25471 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25472 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25473 ac_header_preproc
=yes
25476 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25477 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25478 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25479 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25480 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25481 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25482 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25483 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25484 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25485 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25486 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25487 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25489 ## ---------------------------------------- ##
25490 ## Report this to pgsql-bugs@postgresql.org ##
25491 ## ---------------------------------------- ##
25493 ) |
sed "s/^/$as_me: WARNING: /" >&2
25496 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25497 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25498 if test "${ac_cv_header_libintl_h+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25501 ac_cv_header_libintl_h
=$ac_header_preproc
25503 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25504 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25507 if test $ac_cv_header_libintl_h = yes; then
25510 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25511 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25512 { (exit 1); exit 1; }; }
25516 for ac_prog
in msgfmt
25518 # Extract the first word of "$ac_prog", so it can be a program name with args.
25519 set dummy
$ac_prog; ac_word
=$2
25520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25522 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25523 echo $ECHO_N "(cached) $ECHO_C" >&6
25525 if test -n "$MSGFMT"; then
25526 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
25528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25529 for as_dir
in $PATH
25532 test -z "$as_dir" && as_dir
=.
25533 for ac_exec_ext
in '' $ac_executable_extensions; do
25534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25535 ac_cv_prog_MSGFMT
="$ac_prog"
25536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25545 MSGFMT
=$ac_cv_prog_MSGFMT
25546 if test -n "$MSGFMT"; then
25547 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25548 echo "${ECHO_T}$MSGFMT" >&6; }
25550 { echo "$as_me:$LINENO: result: no" >&5
25551 echo "${ECHO_T}no" >&6; }
25555 test -n "$MSGFMT" && break
25558 if test -z "$MSGFMT"; then
25559 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25560 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25561 { (exit 1); exit 1; }; }
25563 for ac_prog
in msgmerge
25565 # Extract the first word of "$ac_prog", so it can be a program name with args.
25566 set dummy
$ac_prog; ac_word
=$2
25567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25569 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25570 echo $ECHO_N "(cached) $ECHO_C" >&6
25572 if test -n "$MSGMERGE"; then
25573 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
25575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25576 for as_dir
in $PATH
25579 test -z "$as_dir" && as_dir
=.
25580 for ac_exec_ext
in '' $ac_executable_extensions; do
25581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25582 ac_cv_prog_MSGMERGE
="$ac_prog"
25583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25592 MSGMERGE
=$ac_cv_prog_MSGMERGE
25593 if test -n "$MSGMERGE"; then
25594 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25595 echo "${ECHO_T}$MSGMERGE" >&6; }
25597 { echo "$as_me:$LINENO: result: no" >&5
25598 echo "${ECHO_T}no" >&6; }
25602 test -n "$MSGMERGE" && break
25605 for ac_prog
in xgettext
25607 # Extract the first word of "$ac_prog", so it can be a program name with args.
25608 set dummy
$ac_prog; ac_word
=$2
25609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25611 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25614 if test -n "$XGETTEXT"; then
25615 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
25617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25618 for as_dir
in $PATH
25621 test -z "$as_dir" && as_dir
=.
25622 for ac_exec_ext
in '' $ac_executable_extensions; do
25623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25624 ac_cv_prog_XGETTEXT
="$ac_prog"
25625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25634 XGETTEXT
=$ac_cv_prog_XGETTEXT
25635 if test -n "$XGETTEXT"; then
25636 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25637 echo "${ECHO_T}$XGETTEXT" >&6; }
25639 { echo "$as_me:$LINENO: result: no" >&5
25640 echo "${ECHO_T}no" >&6; }
25644 test -n "$XGETTEXT" && break
25650 # Check for Tcl configuration script tclConfig.sh
25651 if test "$with_tcl" = yes; then
25652 for ac_prog
in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25654 # Extract the first word of "$ac_prog", so it can be a program name with args.
25655 set dummy
$ac_prog; ac_word
=$2
25656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25658 if test "${ac_cv_path_TCLSH+set}" = set; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25663 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
25666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25667 for as_dir
in $PATH
25670 test -z "$as_dir" && as_dir
=.
25671 for ac_exec_ext
in '' $ac_executable_extensions; do
25672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25673 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
25674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25684 TCLSH
=$ac_cv_path_TCLSH
25685 if test -n "$TCLSH"; then
25686 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25687 echo "${ECHO_T}$TCLSH" >&6; }
25689 { echo "$as_me:$LINENO: result: no" >&5
25690 echo "${ECHO_T}no" >&6; }
25694 test -n "$TCLSH" && break
25697 if test x
"$TCLSH" = x
""; then
25698 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25699 echo "$as_me: error: Tcl shell not found" >&2;}
25700 { (exit 1); exit 1; }; }
25703 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25704 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25705 # Let user override test
25706 if test -z "$TCL_CONFIG_SH"; then
25707 pgac_test_dirs
="$with_tclconfig"
25709 set X
$pgac_test_dirs; shift
25710 if test $# -eq 0; then
25711 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25712 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25713 { (exit 1); exit 1; }; }
25714 set X
`echo 'puts $auto_path' | $TCLSH`; shift
25718 if test -r "$pgac_dir/tclConfig.sh"; then
25719 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
25725 if test -z "$TCL_CONFIG_SH"; then
25726 { echo "$as_me:$LINENO: result: no" >&5
25727 echo "${ECHO_T}no" >&6; }
25728 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25729 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25730 { (exit 1); exit 1; }; }
25732 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25733 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25739 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
25740 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
25741 eval TCL_LIBS
=\"$TCL_LIBS\"
25742 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
25743 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
25745 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25746 ac_save_CPPFLAGS
=$CPPFLAGS
25747 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
25748 if test "${ac_cv_header_tcl_h+set}" = set; then
25749 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25750 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25751 if test "${ac_cv_header_tcl_h+set}" = set; then
25752 echo $ECHO_N "(cached) $ECHO_C" >&6
25754 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25755 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25757 # Is the header compilable?
25758 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25759 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25760 cat >conftest.
$ac_ext <<_ACEOF
25763 cat confdefs.h
>>conftest.
$ac_ext
25764 cat >>conftest.
$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25766 $ac_includes_default
25769 rm -f conftest.
$ac_objext
25770 if { (ac_try
="$ac_compile"
25771 case "(($ac_try" in
25772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25773 *) ac_try_echo=$ac_try;;
25775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25776 (eval "$ac_compile") 2>conftest.er1
25778 grep -v '^ *+' conftest.er1 >conftest.err
25780 cat conftest.err >&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); } && {
25783 test -z "$ac_c_werror_flag" ||
25784 test ! -s conftest.err
25785 } && test -s conftest.$ac_objext; then
25786 ac_header_compiler=yes
25788 echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25791 ac_header_compiler=no
25794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25796 echo "${ECHO_T}$ac_header_compiler" >&6; }
25798 # Is the header present?
25799 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25800 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25801 cat >conftest.$ac_ext <<_ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h. */
25809 if { (ac_try="$ac_cpp conftest.$ac_ext"
25810 case "(($ac_try" in
25811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25812 *) ac_try_echo
=$ac_try;;
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25817 grep -v '^ *+' conftest.er1
>conftest.err
25819 cat conftest.err
>&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } >/dev
/null
&& {
25822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25823 test ! -s conftest.err
25825 ac_header_preproc
=yes
25827 echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.
$ac_ext >&5
25830 ac_header_preproc
=no
25833 rm -f conftest.err conftest.
$ac_ext
25834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25835 echo "${ECHO_T}$ac_header_preproc" >&6; }
25837 # So? What about this header?
25838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25840 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25841 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25843 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25844 ac_header_preproc
=yes
25847 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25848 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25849 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25850 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25851 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25852 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25853 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25854 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25855 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25856 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25857 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25858 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25860 ## ---------------------------------------- ##
25861 ## Report this to pgsql-bugs@postgresql.org ##
25862 ## ---------------------------------------- ##
25864 ) |
sed "s/^/$as_me: WARNING: /" >&2
25867 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25868 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25869 if test "${ac_cv_header_tcl_h+set}" = set; then
25870 echo $ECHO_N "(cached) $ECHO_C" >&6
25872 ac_cv_header_tcl_h
=$ac_header_preproc
25874 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25875 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25878 if test $ac_cv_header_tcl_h = yes; then
25881 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25882 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25883 { (exit 1); exit 1; }; }
25887 CPPFLAGS
=$ac_save_CPPFLAGS
25891 # Check for DocBook and tools
25893 for ac_prog
in onsgmls nsgmls
25895 # Extract the first word of "$ac_prog", so it can be a program name with args.
25896 set dummy
$ac_prog; ac_word
=$2
25897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25899 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 if test -n "$NSGMLS"; then
25903 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
25905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25906 for as_dir
in $PATH
25909 test -z "$as_dir" && as_dir
=.
25910 for ac_exec_ext
in '' $ac_executable_extensions; do
25911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25912 ac_cv_prog_NSGMLS
="$ac_prog"
25913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25922 NSGMLS
=$ac_cv_prog_NSGMLS
25923 if test -n "$NSGMLS"; then
25924 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25925 echo "${ECHO_T}$NSGMLS" >&6; }
25927 { echo "$as_me:$LINENO: result: no" >&5
25928 echo "${ECHO_T}no" >&6; }
25932 test -n "$NSGMLS" && break
25935 for ac_prog
in openjade jade
25937 # Extract the first word of "$ac_prog", so it can be a program name with args.
25938 set dummy
$ac_prog; ac_word
=$2
25939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25941 if test "${ac_cv_prog_JADE+set}" = set; then
25942 echo $ECHO_N "(cached) $ECHO_C" >&6
25944 if test -n "$JADE"; then
25945 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
25947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25948 for as_dir
in $PATH
25951 test -z "$as_dir" && as_dir
=.
25952 for ac_exec_ext
in '' $ac_executable_extensions; do
25953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25954 ac_cv_prog_JADE
="$ac_prog"
25955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25964 JADE
=$ac_cv_prog_JADE
25965 if test -n "$JADE"; then
25966 { echo "$as_me:$LINENO: result: $JADE" >&5
25967 echo "${ECHO_T}$JADE" >&6; }
25969 { echo "$as_me:$LINENO: result: no" >&5
25970 echo "${ECHO_T}no" >&6; }
25974 test -n "$JADE" && break
25978 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25979 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25980 if test "${pgac_cv_check_docbook+set}" = set; then
25981 echo $ECHO_N "(cached) $ECHO_C" >&6
25983 cat >conftest.sgml
<<EOF
25984 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25986 <title>test</title>
25988 <title>random</title>
25990 <title>testsect</title>
25997 pgac_cv_check_docbook
=no
25999 if test -n "$NSGMLS"; then
26000 $NSGMLS -s conftest.sgml
1>&5 2>&1
26001 if test $?
-eq 0; then
26002 pgac_cv_check_docbook
=yes
26005 rm -f conftest.sgml
26007 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26008 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26010 have_docbook
=$pgac_cv_check_docbook
26013 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26014 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26015 if test "${pgac_cv_path_stylesheets+set}" = set; then
26016 echo $ECHO_N "(cached) $ECHO_C" >&6
26018 if test -n "$DOCBOOKSTYLE"; then
26019 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
26021 for pgac_prefix
in /usr
/usr
/local /opt
/sw
; do
26022 for pgac_infix
in share lib
; do
26023 for pgac_postfix
in \
26024 sgml
/stylesheets
/nwalsh-modular \
26025 sgml
/stylesheets
/docbook \
26026 sgml
/stylesheets
/dsssl
/docbook \
26027 sgml
/docbook-dsssl \
26028 sgml
/docbook
/dsssl
/modular \
26029 sgml
/docbook
/stylesheet
/dsssl
/modular \
26030 sgml
/docbook
/dsssl-stylesheets \
26031 sgml
/dsssl
/docbook-dsssl-nwalsh
26033 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
26034 if test -r "$pgac_candidate/html/docbook.dsl" \
26035 && test -r "$pgac_candidate/print/docbook.dsl"
26037 pgac_cv_path_stylesheets
=$pgac_candidate
26046 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
26048 if test -n "$DOCBOOKSTYLE"; then
26049 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26050 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26052 { echo "$as_me:$LINENO: result: no" >&5
26053 echo "${ECHO_T}no" >&6; }
26055 if test -n "$DOCBOOKSTYLE"; then
26056 for ac_prog
in collateindex.pl
26058 # Extract the first word of "$ac_prog", so it can be a program name with args.
26059 set dummy
$ac_prog; ac_word
=$2
26060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26062 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26063 echo $ECHO_N "(cached) $ECHO_C" >&6
26065 case $COLLATEINDEX in
26067 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
26070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26071 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
26074 test -z "$as_dir" && as_dir
=.
26075 for ac_exec_ext
in '' $ac_executable_extensions; do
26076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26077 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
26078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26088 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
26089 if test -n "$COLLATEINDEX"; then
26090 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26091 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26093 { echo "$as_me:$LINENO: result: no" >&5
26094 echo "${ECHO_T}no" >&6; }
26098 test -n "$COLLATEINDEX" && break
26102 for ac_prog
in collateindex.pl
26104 # Extract the first word of "$ac_prog", so it can be a program name with args.
26105 set dummy
$ac_prog; ac_word
=$2
26106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26108 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 case $COLLATEINDEX in
26113 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
26116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26117 for as_dir
in $PATH
26120 test -z "$as_dir" && as_dir
=.
26121 for ac_exec_ext
in '' $ac_executable_extensions; do
26122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26123 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
26124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26134 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
26135 if test -n "$COLLATEINDEX"; then
26136 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26137 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26139 { echo "$as_me:$LINENO: result: no" >&5
26140 echo "${ECHO_T}no" >&6; }
26144 test -n "$COLLATEINDEX" && break
26148 for ac_prog
in sgmlspl
26150 # Extract the first word of "$ac_prog", so it can be a program name with args.
26151 set dummy
$ac_prog; ac_word
=$2
26152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26154 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26155 echo $ECHO_N "(cached) $ECHO_C" >&6
26157 if test -n "$SGMLSPL"; then
26158 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
26160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26161 for as_dir
in $PATH
26164 test -z "$as_dir" && as_dir
=.
26165 for ac_exec_ext
in '' $ac_executable_extensions; do
26166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26167 ac_cv_prog_SGMLSPL
="$ac_prog"
26168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26177 SGMLSPL
=$ac_cv_prog_SGMLSPL
26178 if test -n "$SGMLSPL"; then
26179 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26180 echo "${ECHO_T}$SGMLSPL" >&6; }
26182 { echo "$as_me:$LINENO: result: no" >&5
26183 echo "${ECHO_T}no" >&6; }
26187 test -n "$SGMLSPL" && break
26190 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26191 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26192 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26193 echo $ECHO_N "(cached) $ECHO_C" >&6
26195 if test -z "$DOCBOOK2MAN"; then
26196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26197 for as_dir
in $PATH
26200 test -z "$as_dir" && as_dir
=.
26201 for ac_prog
in docbook2x-man db2x_docbook2man docbook2man
; do
26202 ac_path
="$as_dir/$ac_prog"
26203 { test -f "$ac_path" && $as_test_x "$ac_path"; } ||
continue
26204 if "$ac_path" --version 2>/dev
/null |
$GREP docbook2x
>/dev
/null
2>&1; then
26205 ac_cv_path_DOCBOOK2MAN
=$ac_path
26213 ac_cv_path_DOCBOOK2MAN
=$DOCBOOK2MAN
26216 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26217 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26218 DOCBOOK2MAN
=$ac_cv_path_DOCBOOK2MAN
26224 # We have to run the thread test near the end so we have all our symbols
26225 # defined. Cross compiling throws a warning.
26227 if test "$enable_thread_safety_force" = yes; then
26228 if test "$PORTNAME" != "win32"
26230 { echo "$as_me:$LINENO: WARNING:
26231 *** Skipping thread test program. --enable-thread-safety-force was used.
26232 *** Run the program in src/test/thread on the your machine and add proper
26233 *** locking function calls to your applications to guarantee thread safety.
26235 echo "$as_me: WARNING:
26236 *** Skipping thread test program. --enable-thread-safety-force was used.
26237 *** Run the program in src/test/thread on the your machine and add proper
26238 *** locking function calls to your applications to guarantee thread safety.
26241 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26242 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26244 elif test "$enable_thread_safety" = yes; then
26245 if test "$PORTNAME" != "win32"
26247 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26248 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26252 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26253 LIBS
="$LIBS $PTHREAD_LIBS"
26254 if test "$cross_compiling" = yes; then
26255 { echo "$as_me:$LINENO: result: maybe" >&5
26256 echo "${ECHO_T}maybe" >&6; }
26257 { echo "$as_me:$LINENO: WARNING:
26258 *** Skipping thread test program because of cross-compile build.
26259 *** Run the program in src/test/thread on the target machine.
26261 echo "$as_me: WARNING:
26262 *** Skipping thread test program because of cross-compile build.
26263 *** Run the program in src/test/thread on the target machine.
26266 cat >conftest.
$ac_ext <<_ACEOF
26269 cat confdefs.h
>>conftest.
$ac_ext
26270 cat >>conftest.
$ac_ext <<_ACEOF
26271 /* end confdefs.h. */
26272 #include "$srcdir/src/test/thread/thread_test.c"
26274 rm -f conftest
$ac_exeext
26275 if { (ac_try
="$ac_link"
26276 case "(($ac_try" in
26277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26278 *) ac_try_echo=$ac_try;;
26280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26281 (eval "$ac_link") 2>&5
26283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26285 { (case "(($ac_try" in
26286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26287 *) ac_try_echo
=$ac_try;;
26289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26290 (eval "$ac_try") 2>&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); }; }; then
26294 { echo "$as_me:$LINENO: result: yes" >&5
26295 echo "${ECHO_T}yes" >&6; }
26297 echo "$as_me: program exited with status $ac_status" >&5
26298 echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.
$ac_ext >&5
26301 ( exit $ac_status )
26302 { echo "$as_me:$LINENO: result: no" >&5
26303 echo "${ECHO_T}no" >&6; }
26304 { { echo "$as_me:$LINENO: error: thread test program failed
26305 This platform is not thread-safe. Check the file 'config.log' for the
26308 You can use the configure option --enable-thread-safety-force to force
26309 threads to be enabled. But you must then run the program in
26310 src/test/thread and add locking function calls to your applications to
26311 guarantee thread safety." >&5
26312 echo "$as_me: error: thread test program failed
26313 This platform is not thread-safe. Check the file 'config.log' for the
26316 You can use the configure option --enable-thread-safety-force to force
26317 threads to be enabled. But you must then run the program in
26318 src/test/thread and add locking function calls to your applications to
26319 guarantee thread safety." >&2;}
26320 { (exit 1); exit 1; }; }
26322 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26329 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26330 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26334 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26335 # This is much easier than trying to filter LIBS to the minimum for each
26336 # executable. (Note that shared library links won't use this switch, though.)
26337 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26338 # libreadline; therefore we postpone testing it until we know what library
26339 # dependencies readline has. The test code will try to link with $LIBS.
26340 if test "$with_readline" = yes; then
26341 link_test_func
=readline
26343 link_test_func
=exit
26345 if test "$PORTNAME" != "darwin"; then
26346 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26347 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26348 pgac_save_LDFLAGS
=$LDFLAGS
26349 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
26350 if test "$cross_compiling" = yes; then
26351 LDFLAGS
="$pgac_save_LDFLAGS"
26352 { echo "$as_me:$LINENO: result: assuming no" >&5
26353 echo "${ECHO_T}assuming no" >&6; }
26355 cat >conftest.
$ac_ext <<_ACEOF
26358 cat confdefs.h
>>conftest.
$ac_ext
26359 cat >>conftest.
$ac_ext <<_ACEOF
26360 /* end confdefs.h. */
26361 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26370 rm -f conftest
$ac_exeext
26371 if { (ac_try
="$ac_link"
26372 case "(($ac_try" in
26373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_link") 2>&5
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26381 { (case "(($ac_try" in
26382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26383 *) ac_try_echo
=$ac_try;;
26385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26386 (eval "$ac_try") 2>&5
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390 { echo "$as_me:$LINENO: result: yes" >&5
26391 echo "${ECHO_T}yes" >&6; }
26393 echo "$as_me: program exited with status $ac_status" >&5
26394 echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.
$ac_ext >&5
26397 ( exit $ac_status )
26398 LDFLAGS
="$pgac_save_LDFLAGS"
26399 { echo "$as_me:$LINENO: result: no" >&5
26400 echo "${ECHO_T}no" >&6; }
26402 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26408 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26409 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26410 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26411 pgac_save_LDFLAGS
=$LDFLAGS
26412 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26413 if test "$cross_compiling" = yes; then
26414 LDFLAGS
="$pgac_save_LDFLAGS"
26415 { echo "$as_me:$LINENO: result: assuming no" >&5
26416 echo "${ECHO_T}assuming no" >&6; }
26418 cat >conftest.
$ac_ext <<_ACEOF
26421 cat confdefs.h
>>conftest.
$ac_ext
26422 cat >>conftest.
$ac_ext <<_ACEOF
26423 /* end confdefs.h. */
26424 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26433 rm -f conftest
$ac_exeext
26434 if { (ac_try
="$ac_link"
26435 case "(($ac_try" in
26436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26437 *) ac_try_echo=$ac_try;;
26439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440 (eval "$ac_link") 2>&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26444 { (case "(($ac_try" in
26445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26446 *) ac_try_echo
=$ac_try;;
26448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26449 (eval "$ac_try") 2>&5
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; }; then
26453 { echo "$as_me:$LINENO: result: yes" >&5
26454 echo "${ECHO_T}yes" >&6; }
26456 echo "$as_me: program exited with status $ac_status" >&5
26457 echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.
$ac_ext >&5
26460 ( exit $ac_status )
26461 LDFLAGS
="$pgac_save_LDFLAGS"
26462 { echo "$as_me:$LINENO: result: no" >&5
26463 echo "${ECHO_T}no" >&6; }
26465 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26473 # Begin output steps
26475 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26476 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26477 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26478 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26479 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26480 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26482 # prepare build tree if outside source tree
26483 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26484 # Note 2: /bin/pwd might be better than shell's built-in at getting
26485 # a symlink-free name.
26486 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26490 if test "$no_create" != yes; then
26491 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26492 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
26493 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26494 ||
{ { echo "$as_me:$LINENO: error: failed" >&5
26495 echo "$as_me: error: failed" >&2;}
26496 { (exit 1); exit 1; }; }
26497 { echo "$as_me:$LINENO: result: done" >&5
26498 echo "${ECHO_T}done" >&6; }
26504 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
26507 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}"
26510 if test "$PORTNAME" = "win32"; then
26511 ac_config_commands
="$ac_config_commands check_win32_symlinks"
26515 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
26518 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26521 cat >confcache
<<\_ACEOF
26522 # This file is a shell script that caches the results of configure
26523 # tests run on this system so they can be shared between configure
26524 # scripts and configure runs, see configure's option --config-cache.
26525 # It is not useful on other systems. If it contains results you don't
26526 # want to keep, you may remove or edit it.
26528 # config.status only pays attention to the cache file if you give it
26529 # the --recheck option to rerun configure.
26531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26533 # following values.
26537 # The following way of writing the cache mishandles newlines in values,
26538 # but we know of no workaround that is simple, portable, and efficient.
26539 # So, we kill variables containing newlines.
26540 # Ultrix sh set writes to stderr and can't be redirected directly,
26541 # and sets the high bit in the cache file unless we assign to the vars.
26543 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26544 eval ac_val
=\$
$ac_var
26548 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26549 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26552 _ | IFS | as_nl
) ;; #(
26553 *) $as_unset $ac_var ;;
26559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26560 *${as_nl}ac_space
=\
*)
26561 # `set' does not quote correctly, so add quotes (double-quote
26562 # substitution turns \\\\ into \\, and sed turns \\ into \).
26565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26568 # `set' quotes correctly as required by POSIX, so do not add quotes.
26569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26582 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26583 if test -w "$cache_file"; then
26584 test "x$cache_file" != "x/dev/null" &&
26585 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26586 echo "$as_me: updating cache $cache_file" >&6;}
26587 cat confcache
>$cache_file
26589 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26590 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26595 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26596 # Let make expand exec_prefix.
26597 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26599 DEFS
=-DHAVE_CONFIG_H
26603 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26604 # 1. Remove the extension, and $U if already installed.
26605 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26606 ac_i
=`echo "$ac_i" | sed "$ac_script"`
26607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26608 # will be set to the directory where LIBOBJS objects are built.
26609 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26610 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26612 LIBOBJS
=$ac_libobjs
26614 LTLIBOBJS
=$ac_ltlibobjs
26618 : ${CONFIG_STATUS=./config.status}
26619 ac_clean_files_save
=$ac_clean_files
26620 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26623 cat >$CONFIG_STATUS <<_ACEOF
26625 # Generated by $as_me.
26626 # Run this file to recreate the current configuration.
26627 # Compiler output produced by configure, useful for debugging
26628 # configure, is in config.log if it exists.
26631 ac_cs_recheck=false
26633 SHELL=\${CONFIG_SHELL-$SHELL}
26636 cat >>$CONFIG_STATUS <<\_ACEOF
26637 ## --------------------- ##
26638 ## M4sh Initialization. ##
26639 ## --------------------- ##
26641 # Be more Bourne compatible
26642 DUALCASE
=1; export DUALCASE
# for MKS sh
26643 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26646 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26647 # is contrary to our usage. Disable this feature.
26648 alias -g '${1+"$@"}'='"$@"'
26649 setopt NO_GLOB_SUBST
26651 case `(set -o) 2>/dev/null` in
26652 *posix
*) set -o posix
;;
26661 # Avoid depending upon Character Ranges.
26662 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26663 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26664 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26665 as_cr_digits
='0123456789'
26666 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26668 # The user is always right.
26669 if test "${PATH_SEPARATOR+set}" != set; then
26670 echo "#! /bin/sh" >conf$$.sh
26671 echo "exit 0" >>conf$$.sh
26673 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26681 # Support unset when possible.
26682 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26690 # We need space, tab and new line, in precisely that order. Quoting is
26691 # there to prevent editors from complaining about space-tab.
26692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26693 # splitting by setting IFS to empty value.)
26698 # Find who we are. Look in the path if we contain no directory separator.
26700 *[\\/]* ) as_myself
=$0 ;;
26701 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26702 for as_dir
in $PATH
26705 test -z "$as_dir" && as_dir
=.
26706 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26712 # We did not find ourselves, most probably we were run as `sh COMMAND'
26713 # in which case we are not to be found in the path.
26714 if test "x$as_myself" = x
; then
26717 if test ! -f "$as_myself"; then
26718 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26719 { (exit 1); exit 1; }
26722 # Work around bugs in pre-3.0 UWIN ksh.
26723 for as_var
in ENV MAIL MAILPATH
26724 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26732 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26733 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26734 LC_TELEPHONE LC_TIME
26736 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26737 eval $as_var=C
; export $as_var
26739 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26743 # Required to use basename.
26744 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26745 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26751 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26752 as_basename
=basename
26758 # Name of the executable.
26759 as_me
=`$as_basename -- "$0" ||
26760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26761 X"$0" : 'X\(//\)$' \| \
26762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26764 sed '/^.*\/\([^/][^/]*\)\/*$/{
26783 as_lineno_1
=$LINENO
26784 as_lineno_2
=$LINENO
26785 test "x$as_lineno_1" != "x$as_lineno_2" &&
26786 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26788 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26789 # uniformly replaced by the line number. The first 'sed' inserts a
26790 # line-number line after each line using $LINENO; the second 'sed'
26791 # does the real work. The second script uses 'N' to pair each
26792 # line-number line with the line containing $LINENO, and appends
26793 # trailing '-' during substitution so that $LINENO is not a special
26794 # case at line end.
26795 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26796 # scripts with optimization help from Paolo Bonzini. Blame Lee
26797 # E. McMahon (1931-1989) for sed's syntax. :-)
26809 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26812 ' >$as_me.lineno
&&
26813 chmod +x
"$as_me.lineno" ||
26814 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26815 { (exit 1); exit 1; }; }
26817 # Don't try to exec as it changes $[0], causing all sort of problems
26818 # (the dirname of $[0] is not the place where we might find the
26819 # original and so on. Autoconf is especially sensitive to this).
26820 .
"./$as_me.lineno"
26821 # Exit status is that of the last command.
26826 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26832 ECHO_C
= ECHO_N
= ECHO_T
=
26833 case `echo -n x` in
26835 case `echo 'x\c'` in
26836 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26843 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26844 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26850 rm -f conf$$ conf$$.exe conf$$.
file
26851 if test -d conf$$.dir
; then
26852 rm -f conf$$.dir
/conf$$.
file
26858 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26860 # ... but there are two gotchas:
26861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26863 # In both cases, we have to default to `cp -p'.
26864 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26866 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26871 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26872 rmdir conf$$.dir
2>/dev
/null
26874 if mkdir
-p .
2>/dev
/null
; then
26877 test -d .
/-p && rmdir .
/-p
26881 if test -x / >/dev
/null
2>&1; then
26882 as_test_x
='test -x'
26884 if ls -dL / >/dev
/null
2>&1; then
26891 if test -d "$1"; then
26897 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26898 ???[sx]*):;;*)false;;esac;fi
26902 as_executable_p
=$as_test_x
26904 # Sed expression to map a string onto a valid CPP name.
26905 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26907 # Sed expression to map a string onto a valid variable name.
26908 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26913 # Save the log message, to keep $[0] and so on meaningful, and to
26914 # report actual input values of CONFIG_FILES etc. instead of their
26915 # values after options handling.
26917 This file was extended by PostgreSQL $as_me 8.4devel, which was
26918 generated by GNU Autoconf 2.61. Invocation command line was
26920 CONFIG_FILES = $CONFIG_FILES
26921 CONFIG_HEADERS = $CONFIG_HEADERS
26922 CONFIG_LINKS = $CONFIG_LINKS
26923 CONFIG_COMMANDS = $CONFIG_COMMANDS
26926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26931 cat >>$CONFIG_STATUS <<_ACEOF
26932 # Files that config.status was made for.
26933 config_files="$ac_config_files"
26934 config_headers="$ac_config_headers"
26935 config_links="$ac_config_links"
26936 config_commands="$ac_config_commands"
26940 cat >>$CONFIG_STATUS <<\_ACEOF
26942 \`$as_me' instantiates files from templates according to the
26943 current configuration.
26945 Usage: $0 [OPTIONS] [FILE]...
26947 -h, --help print this help, then exit
26948 -V, --version print version number and configuration settings, then exit
26949 -q, --quiet do not print progress messages
26950 -d, --debug don't remove temporary files
26951 --recheck update $as_me by reconfiguring in the same conditions
26952 --file=FILE[:TEMPLATE]
26953 instantiate the configuration file FILE
26954 --header=FILE[:TEMPLATE]
26955 instantiate the configuration header FILE
26957 Configuration files:
26960 Configuration headers:
26963 Configuration links:
26966 Configuration commands:
26969 Report bugs to <bug-autoconf@gnu.org>."
26972 cat >>$CONFIG_STATUS <<_ACEOF
26974 PostgreSQL config.status 8.4devel
26975 configured by $0, generated by GNU Autoconf 2.61,
26976 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26978 Copyright (C) 2006 Free Software Foundation, Inc.
26979 This config.status script is free software; the Free Software Foundation
26980 gives unlimited permission to copy, distribute and modify it."
26986 cat >>$CONFIG_STATUS <<\_ACEOF
26987 # If no file are specified by the user, then we need to provide default
26988 # value. By we need to know if files were specified by the user.
26994 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26995 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27006 # Handling of the options.
27007 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27009 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27010 echo "$ac_cs_version"; exit ;;
27011 --debug |
--debu |
--deb |
--de |
--d |
-d )
27013 --file |
--fil |
--fi |
--f )
27015 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27016 ac_need_defaults
=false
;;
27017 --header |
--heade |
--head |
--hea )
27019 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27020 ac_need_defaults
=false
;;
27022 # Conflict between --help and --header
27023 { echo "$as_me: error: ambiguous option: $1
27024 Try \`$0 --help' for more information." >&2
27025 { (exit 1); exit 1; }; };;
27026 --help |
--hel |
-h )
27027 echo "$ac_cs_usage"; exit ;;
27028 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27029 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27032 # This is an error.
27033 -*) { echo "$as_me: error: unrecognized option: $1
27034 Try \`$0 --help' for more information." >&2
27035 { (exit 1); exit 1; }; } ;;
27037 *) ac_config_targets
="$ac_config_targets $1"
27038 ac_need_defaults
=false
;;
27044 ac_configure_extra_args
=
27046 if $ac_cs_silent; then
27048 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27052 cat >>$CONFIG_STATUS <<_ACEOF
27053 if \$ac_cs_recheck; then
27054 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27055 CONFIG_SHELL=$SHELL
27056 export CONFIG_SHELL
27057 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27061 cat >>$CONFIG_STATUS <<\_ACEOF
27065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27066 ## Running $as_me. ##
27072 cat >>$CONFIG_STATUS <<_ACEOF
27075 cat >>$CONFIG_STATUS <<\_ACEOF
27077 # Handling of arguments.
27078 for ac_config_target
in $ac_config_targets
27080 case $ac_config_target in
27081 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27082 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
27083 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
27084 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27085 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27086 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27087 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27088 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27089 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27090 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
27091 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
27092 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27094 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27095 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27096 { (exit 1); exit 1; }; };;
27101 # If the user did not use the arguments to specify the items to instantiate,
27102 # then the envvar interface is used. Set only those that are not.
27103 # We use the long form for the default assignment because of an extremely
27104 # bizarre bug on SunOS 4.1.3.
27105 if $ac_need_defaults; then
27106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27108 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
27109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27112 # Have a temporary directory for convenience. Make it in the build tree
27113 # simply because there is no reason against having it here, and in addition,
27114 # creating and moving files from /tmp can sometimes cause problems.
27115 # Hook for its removal unless debugging.
27116 # Note that there is a small window in which the directory will not be cleaned:
27117 # after its creation but before its name has been assigned to `$tmp'.
27121 trap 'exit_status=$?
27122 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27124 trap '{ (exit 1); exit 1; }' 1 2 13 15
27126 # Create a (secure) tmp directory for tmp files.
27129 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27130 test -n "$tmp" && test -d "$tmp"
27133 tmp
=.
/conf$$
-$RANDOM
27134 (umask 077 && mkdir
"$tmp")
27137 echo "$me: cannot create a temporary directory in ." >&2
27138 { (exit 1); exit 1; }
27142 # Set up the sed scripts for CONFIG_FILES section.
27145 # No need to generate the scripts if there are no CONFIG_FILES.
27146 # This happens for instance when ./config.status config.h
27147 if test -n "$CONFIG_FILES"; then
27154 for ac_last_try
in false false false false false
:; do
27155 cat >conf$
$subs.
sed <<_ACEOF
27156 SHELL!$SHELL$ac_delim
27157 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27158 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27159 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27160 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27161 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27162 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27163 exec_prefix!$exec_prefix$ac_delim
27164 prefix!$prefix$ac_delim
27165 program_transform_name!$program_transform_name$ac_delim
27166 bindir!$bindir$ac_delim
27167 sbindir!$sbindir$ac_delim
27168 libexecdir!$libexecdir$ac_delim
27169 datarootdir!$datarootdir$ac_delim
27170 datadir!$datadir$ac_delim
27171 sysconfdir!$sysconfdir$ac_delim
27172 sharedstatedir!$sharedstatedir$ac_delim
27173 localstatedir!$localstatedir$ac_delim
27174 includedir!$includedir$ac_delim
27175 oldincludedir!$oldincludedir$ac_delim
27176 docdir!$docdir$ac_delim
27177 infodir!$infodir$ac_delim
27178 htmldir!$htmldir$ac_delim
27179 dvidir!$dvidir$ac_delim
27180 pdfdir!$pdfdir$ac_delim
27181 psdir!$psdir$ac_delim
27182 libdir!$libdir$ac_delim
27183 localedir!$localedir$ac_delim
27184 mandir!$mandir$ac_delim
27185 DEFS!$DEFS$ac_delim
27186 ECHO_C!$ECHO_C$ac_delim
27187 ECHO_N!$ECHO_N$ac_delim
27188 ECHO_T!$ECHO_T$ac_delim
27189 LIBS!$LIBS$ac_delim
27190 build_alias!$build_alias$ac_delim
27191 host_alias!$host_alias$ac_delim
27192 target_alias!$target_alias$ac_delim
27193 configure_args!$configure_args$ac_delim
27194 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27195 build!$build$ac_delim
27196 build_cpu!$build_cpu$ac_delim
27197 build_vendor!$build_vendor$ac_delim
27198 build_os!$build_os$ac_delim
27199 host!$host$ac_delim
27200 host_cpu!$host_cpu$ac_delim
27201 host_vendor!$host_vendor$ac_delim
27202 host_os!$host_os$ac_delim
27203 PORTNAME!$PORTNAME$ac_delim
27204 enable_nls!$enable_nls$ac_delim
27205 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27206 default_port!$default_port$ac_delim
27207 enable_shared!$enable_shared$ac_delim
27208 enable_rpath!$enable_rpath$ac_delim
27209 enable_debug!$enable_debug$ac_delim
27210 enable_profiling!$enable_profiling$ac_delim
27211 GCOV!$GCOV$ac_delim
27212 LCOV!$LCOV$ac_delim
27213 GENHTML!$GENHTML$ac_delim
27214 enable_coverage!$enable_coverage$ac_delim
27215 DTRACE!$DTRACE$ac_delim
27216 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27217 enable_dtrace!$enable_dtrace$ac_delim
27219 CFLAGS!$CFLAGS$ac_delim
27220 LDFLAGS!$LDFLAGS$ac_delim
27221 CPPFLAGS!$CPPFLAGS$ac_delim
27222 ac_ct_CC!$ac_ct_CC$ac_delim
27223 EXEEXT!$EXEEXT$ac_delim
27224 OBJEXT!$OBJEXT$ac_delim
27225 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27229 autodepend!$autodepend$ac_delim
27230 INCLUDES!$INCLUDES$ac_delim
27231 enable_thread_safety!$enable_thread_safety$ac_delim
27232 with_tcl!$with_tcl$ac_delim
27233 with_perl!$with_perl$ac_delim
27234 with_python!$with_python$ac_delim
27235 with_gssapi!$with_gssapi$ac_delim
27236 with_krb5!$with_krb5$ac_delim
27237 krb_srvtab!$krb_srvtab$ac_delim
27238 with_pam!$with_pam$ac_delim
27239 with_ldap!$with_ldap$ac_delim
27240 with_bonjour!$with_bonjour$ac_delim
27241 with_openssl!$with_openssl$ac_delim
27242 with_ossp_uuid!$with_ossp_uuid$ac_delim
27243 XML2_CONFIG!$XML2_CONFIG$ac_delim
27244 with_libxml!$with_libxml$ac_delim
27245 with_libxslt!$with_libxslt$ac_delim
27246 with_system_tzdata!$with_system_tzdata$ac_delim
27247 with_zlib!$with_zlib$ac_delim
27248 GREP!$GREP$ac_delim
27249 EGREP!$EGREP$ac_delim
27250 ELF_SYS!$ELF_SYS$ac_delim
27251 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27255 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27257 elif $ac_last_try; then
27258 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27259 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27260 { (exit 1); exit 1; }; }
27262 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27266 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27267 if test -n "$ac_eof"; then
27268 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27269 ac_eof
=`expr $ac_eof + 1`
27272 cat >>$CONFIG_STATUS <<_ACEOF
27273 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27277 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27278 s/^/s,@/; s/!/@,|#_!!_#|/
27281 s/'"$ac_delim"'$/,g/; t
27283 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27284 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27285 rm -f conf$
$subs.
sed
27286 cat >>$CONFIG_STATUS <<_ACEOF
27292 for ac_last_try
in false false false false false
:; do
27293 cat >conf$
$subs.
sed <<_ACEOF
27294 with_gnu_ld!$with_gnu_ld$ac_delim
27295 ld_R_works!$ld_R_works$ac_delim
27296 RANLIB!$RANLIB$ac_delim
27297 STRIP!$STRIP$ac_delim
27298 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27299 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27301 DLLTOOL!$DLLTOOL$ac_delim
27302 DLLWRAP!$DLLWRAP$ac_delim
27303 WINDRES!$WINDRES$ac_delim
27305 LN_S!$LN_S$ac_delim
27307 BISON!$BISON$ac_delim
27308 BISONFLAGS!$BISONFLAGS$ac_delim
27309 FLEX!$FLEX$ac_delim
27310 FLEXFLAGS!$FLEXFLAGS$ac_delim
27311 PERL!$PERL$ac_delim
27312 perl_archlibexp!$perl_archlibexp$ac_delim
27313 perl_privlibexp!$perl_privlibexp$ac_delim
27314 perl_useshrplib!$perl_useshrplib$ac_delim
27315 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27316 PYTHON!$PYTHON$ac_delim
27317 python_version!$python_version$ac_delim
27318 python_configdir!$python_configdir$ac_delim
27319 python_includespec!$python_includespec$ac_delim
27320 python_libdir!$python_libdir$ac_delim
27321 python_libspec!$python_libspec$ac_delim
27322 python_additional_libs!$python_additional_libs$ac_delim
27323 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27324 HAVE_IPV6!$HAVE_IPV6$ac_delim
27325 LIBOBJS!$LIBOBJS$ac_delim
27326 acx_pthread_config!$acx_pthread_config$ac_delim
27327 PTHREAD_CC!$PTHREAD_CC$ac_delim
27328 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27329 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27330 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27331 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27332 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27333 MSGFMT!$MSGFMT$ac_delim
27334 MSGMERGE!$MSGMERGE$ac_delim
27335 XGETTEXT!$XGETTEXT$ac_delim
27336 TCLSH!$TCLSH$ac_delim
27337 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27338 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27339 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27340 TCL_LIBS!$TCL_LIBS$ac_delim
27341 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27342 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27343 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27344 NSGMLS!$NSGMLS$ac_delim
27345 JADE!$JADE$ac_delim
27346 have_docbook!$have_docbook$ac_delim
27347 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27348 COLLATEINDEX!$COLLATEINDEX$ac_delim
27349 SGMLSPL!$SGMLSPL$ac_delim
27350 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27351 vpath_build!$vpath_build$ac_delim
27352 LTLIBOBJS!$LTLIBOBJS$ac_delim
27355 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
27357 elif $ac_last_try; then
27358 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27359 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27360 { (exit 1); exit 1; }; }
27362 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27366 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27367 if test -n "$ac_eof"; then
27368 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27369 ac_eof
=`expr $ac_eof + 1`
27372 cat >>$CONFIG_STATUS <<_ACEOF
27373 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27377 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27378 s/^/s,@/; s/!/@,|#_!!_#|/
27381 s/'"$ac_delim"'$/,g/; t
27383 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27384 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27385 rm -f conf$
$subs.
sed
27386 cat >>$CONFIG_STATUS <<_ACEOF
27393 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27394 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27395 # trailing colons and then remove the whole line if VPATH becomes empty
27396 # (actually we leave an empty line to preserve line numbers).
27397 if test "x$srcdir" = x.
; then
27398 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27399 s/:*\$(srcdir):*/:/
27400 s/:*\${srcdir}:*/:/
27402 s/^\([^=]*=[ ]*\):*/\1/
27408 cat >>$CONFIG_STATUS <<\_ACEOF
27409 fi # test -n "$CONFIG_FILES"
27412 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
27415 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27417 case $ac_mode$ac_tag in
27419 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27420 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27421 { (exit 1); exit 1; }; };;
27422 :[FH
]-) ac_tag
=-:-;;
27423 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27440 -) ac_f
="$tmp/stdin";;
27441 *) # Look for the file first in the build tree, then in the source tree
27442 # (if the path is not absolute). The absolute path cannot be DOS-style,
27443 # because $ac_f cannot contain `:'.
27447 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27449 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27450 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27451 { (exit 1); exit 1; }; };;
27453 ac_file_inputs
="$ac_file_inputs $ac_f"
27456 # Let's still pretend it is `configure' which instantiates (i.e., don't
27457 # use $as_me), people would be surprised to read:
27458 # /* config.h. Generated by config.status. */
27459 configure_input
="Generated from "`IFS=:
27460 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27461 if test x
"$ac_file" != x-
; then
27462 configure_input
="$ac_file. $configure_input"
27463 { echo "$as_me:$LINENO: creating $ac_file" >&5
27464 echo "$as_me: creating $ac_file" >&6;}
27468 *:-:* |
*:-) cat >"$tmp/stdin";;
27473 ac_dir
=`$as_dirname -- "$ac_file" ||
27474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27475 X"$ac_file" : 'X\(//\)[^/]' \| \
27476 X"$ac_file" : 'X\(//\)$' \| \
27477 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27483 /^X\(\/\/\)[^/].*/{
27498 -*) as_dir
=.
/$as_dir;;
27500 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27504 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27505 *) as_qdir
=$as_dir;;
27507 as_dirs
="'$as_qdir' $as_dirs"
27508 as_dir
=`$as_dirname -- "$as_dir" ||
27509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27510 X"$as_dir" : 'X\(//\)[^/]' \| \
27511 X"$as_dir" : 'X\(//\)$' \| \
27512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27518 /^X\(\/\/\)[^/].*/{
27531 test -d "$as_dir" && break
27533 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27534 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27535 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27536 { (exit 1); exit 1; }; }; }
27540 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27542 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27543 # A ".." for each directory in $ac_dir_suffix.
27544 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27545 case $ac_top_builddir_sub in
27546 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27547 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27550 ac_abs_top_builddir
=$ac_pwd
27551 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27552 # for backward compatibility:
27553 ac_top_builddir
=$ac_top_build_prefix
27556 .
) # We are building in place.
27558 ac_top_srcdir
=$ac_top_builddir_sub
27559 ac_abs_top_srcdir
=$ac_pwd ;;
27560 [\\/]* | ?
:[\\/]* ) # Absolute name.
27561 ac_srcdir
=$srcdir$ac_dir_suffix;
27562 ac_top_srcdir
=$srcdir
27563 ac_abs_top_srcdir
=$srcdir ;;
27564 *) # Relative name.
27565 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27566 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27567 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27569 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27580 cat >>$CONFIG_STATUS <<\_ACEOF
27581 # If the template does not know about datarootdir, expand it.
27582 # FIXME: This hack should be removed a few years after 2.60.
27583 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27585 case `sed -n '/datarootdir/ {
27594 ' $ac_file_inputs` in
27595 *datarootdir
*) ac_datarootdir_seen
=yes;;
27596 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27597 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27598 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27600 cat >>$CONFIG_STATUS <<_ACEOF
27601 ac_datarootdir_hack='
27602 s&@datadir@&$datadir&g
27603 s&@docdir@&$docdir&g
27604 s&@infodir@&$infodir&g
27605 s&@localedir@&$localedir&g
27606 s&@mandir@&$mandir&g
27607 s&\\\${datarootdir}&$datarootdir&g' ;;
27611 # Neutralize VPATH when `$srcdir' = `.'.
27612 # Shell code in configure.ac might set extrasub.
27613 # FIXME: do we really want to maintain this feature?
27614 cat >>$CONFIG_STATUS <<_ACEOF
27618 cat >>$CONFIG_STATUS <<\_ACEOF
27620 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27621 s
&@configure_input@
&$configure_input&;t t
27622 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27623 s
&@srcdir@
&$ac_srcdir&;t t
27624 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27625 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27626 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27627 s
&@builddir@
&$ac_builddir&;t t
27628 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27629 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27630 $ac_datarootdir_hack
27631 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27633 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27634 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27635 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27636 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27637 which seems to be undefined. Please make sure it is defined." >&5
27638 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27639 which seems to be undefined. Please make sure it is defined." >&2;}
27643 -) cat "$tmp/out"; rm -f "$tmp/out";;
27644 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27653 # Transform confdefs.h into a sed script `conftest.defines', that
27654 # substitutes the proper values into config.h.in to produce config.h.
27655 rm -f conftest.defines conftest.
tail
27656 # First, append a space to every undef/define line, to ease matching.
27657 echo 's/$/ /' >conftest.defines
27658 # Then, protect against being on the right side of a sed subst, or in
27659 # an unquoted here document, in config.status. If some macros were
27660 # called several times there might be several #defines for the same
27661 # symbol, which is useless. But do not sort them, since the last
27662 # AC_DEFINE must be honored.
27663 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27664 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27665 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27666 # PARAMS is the parameter list in the macro definition--in most cases, it's
27667 # just an empty string.
27668 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27669 ac_dB
='\\)[ (].*,\\1define\\2'
27677 s/^[ ]*#[ ]*define[ ][ ]*//
27682 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27683 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27684 ' >>conftest.defines
27686 # Remove the space that was appended to ease matching.
27687 # Then replace #undef with comments. This is necessary, for
27688 # example, in the case of _POSIX_SOURCE, which is predefined and required
27689 # on some systems where configure will not decide to define it.
27690 # (The regexp can be short, since the line contains either #define or #undef.)
27692 s,^[ #]*u.*,/* & */,' >>conftest.defines
27694 # Break up conftest.defines:
27695 ac_max_sed_lines
=50
27697 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27698 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27699 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27701 ac_in
='$ac_file_inputs'
27702 ac_out
='"$tmp/out1"'
27703 ac_nxt
='"$tmp/out2"'
27707 # Write a here document:
27708 cat >>$CONFIG_STATUS <<_ACEOF
27709 # First, check the format of the line:
27710 cat >"\$tmp/defines.sed" <<\\CEOF
27711 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27712 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27716 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27718 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27719 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27720 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27721 grep . conftest.
tail >/dev
/null ||
break
27722 rm -f conftest.defines
27723 mv conftest.
tail conftest.defines
27725 rm -f conftest.defines conftest.
tail
27727 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27728 cat >>$CONFIG_STATUS <<\_ACEOF
27729 if test x
"$ac_file" != x-
; then
27730 echo "/* $configure_input */" >"$tmp/config.h"
27731 cat "$ac_result" >>"$tmp/config.h"
27732 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27733 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27734 echo "$as_me: $ac_file is unchanged" >&6;}
27737 mv "$tmp/config.h" $ac_file
27740 echo "/* $configure_input */"
27750 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27751 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27753 if test ! -r "$srcdir/$ac_source"; then
27754 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27755 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27756 { (exit 1); exit 1; }; }
27760 # Try a relative symlink, then a hard link, then a copy.
27762 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
27763 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
27765 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
27766 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
27767 cp -p "$srcdir/$ac_source" "$ac_file" ||
27768 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27769 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27770 { (exit 1); exit 1; }; }
27772 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27773 echo "$as_me: executing $ac_file commands" >&6;}
27778 case $ac_file$ac_mode in
27779 "check_win32_symlinks":C
)
27780 # Links sometimes fail undetected on Mingw -
27781 # so here we detect it and warn the user
27782 for FILE
in $CONFIG_LINKS
27784 # test -e works for symlinks in the MinGW console
27785 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27786 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27789 "src/include/pg_config.h":H
)
27790 # Update timestamp for pg_config.h (see Makefile.global)
27791 echo >src
/include
/stamp-h
27798 { (exit 0); exit 0; }
27800 chmod +x
$CONFIG_STATUS
27801 ac_clean_files
=$ac_clean_files_save
27804 # configure is writing to config.log, and then calls config.status.
27805 # config.status does its own redirection, appending to config.log.
27806 # Unfortunately, on DOS this fails, as config.log is still kept open
27807 # by configure, so config.status won't be able to write to it; its
27808 # output is simply discarded. So we exec the FD to /dev/null,
27809 # effectively closing config.log, so it can be properly (re)opened and
27810 # appended to by config.status. When coming back to configure, we
27811 # need to make the FD available again.
27812 if test "$no_create" != yes; then
27814 ac_config_status_args
=
27815 test "$silent" = yes &&
27816 ac_config_status_args
="$ac_config_status_args --quiet"
27818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27821 # would make configure fail if this is the last instruction.
27822 $ac_cs_success ||
{ (exit 1); exit 1; }
27826 # Warn about unknown options
27827 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27828 for pgac_arg
in $pgac_args with_gnu_ld
; do
27829 if test "$pgac_var" = "$pgac_arg"; then
27833 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
27834 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27835 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}