2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2008, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix
*) set -o posix
;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits
='0123456789'
42 as_cr_alnum
=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
57 # Support unset when possible.
58 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself
=$0 ;;
77 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir
=.
82 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x
; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var
in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C
; export $as_var
115 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me
=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x
; then
159 if (eval ":") 2>/dev
/null
; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev
/null
; then
225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
226 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir
=.
232 for as_base
in sh bash ksh sh5
; do
233 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
240 for as_shell
in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix
*) set -o posix
;;
262 CONFIG_SHELL
=$as_shell
264 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix
*) set -o posix
;;
290 as_func_ret_success
() {
293 as_func_ret_failure
() {
298 if as_func_success
; then
302 echo as_func_success failed.
305 if as_func_failure
; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success
; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure
; then
319 echo as_func_ret_failure succeeded.
322 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) ||
{ (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x
; then
347 for as_var
in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no
; then
356 echo This
script requires a shell
more modern than all the
357 echo shells that I found on your system. Please
install a
358 echo modern shell
, or manually run the
script under such a
359 echo shell
if you
do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") ||
{
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system
,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
476 ECHO_C
= ECHO_N
= ECHO_T
=
480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
487 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
494 rm -f conf$$ conf$$.exe conf$$.
file
495 if test -d conf$$.dir
; then
496 rm -f conf$$.dir
/conf$$.
file
502 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
515 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
516 rmdir conf$$.dir
2>/dev
/null
518 if mkdir
-p .
2>/dev
/null
; then
521 test -d .
/-p && rmdir .
/-p
525 if test -x / >/dev
/null
2>&1; then
528 if ls -dL / >/dev
/null
2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p
=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev
/null
6>&1
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 ac_default_prefix
=/usr
/local
568 ac_config_libobj_dir
=.
574 SHELL
=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME
='PostgreSQL'
578 PACKAGE_TARNAME
='postgresql'
579 PACKAGE_VERSION
='8.4devel'
580 PACKAGE_STRING
='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT
='pgsql-bugs@postgresql.org'
583 ac_unique_file
="src/backend/access/common/heaptuple.c"
584 ac_default_prefix
=/usr
/local
/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
630 program_transform_name
741 python_additional_libs
772 ac_precious_vars
='build_alias
785 # Initialize some variables set by options.
787 ac_init_version
=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name
=s
,x
,x
,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir
='${exec_prefix}/bin'
812 sbindir
='${exec_prefix}/sbin'
813 libexecdir
='${exec_prefix}/libexec'
814 datarootdir
='${prefix}/share'
815 datadir
='${datarootdir}'
816 sysconfdir
='${prefix}/etc'
817 sharedstatedir
='${prefix}/com'
818 localstatedir
='${prefix}/var'
819 includedir
='${prefix}/include'
820 oldincludedir
='/usr/include'
821 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir
='${datarootdir}/info'
827 libdir
='${exec_prefix}/lib'
828 localedir
='${datarootdir}/locale'
829 mandir
='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\
$ac_option
843 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
855 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
858 -build |
--build |
--buil |
--bui |
--bu)
859 ac_prev
=build_alias
;;
860 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
861 build_alias
=$ac_optarg ;;
863 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
864 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
865 ac_prev
=cache_file
;;
866 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
867 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
868 cache_file
=$ac_optarg ;;
871 cache_file
=config.cache
;;
873 -datadir |
--datadir |
--datadi |
--datad)
875 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
876 datadir
=$ac_optarg ;;
878 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
879 |
--dataroo |
--dataro |
--datar)
880 ac_prev
=datarootdir
;;
881 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
882 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
883 datarootdir
=$ac_optarg ;;
885 -disable-* |
--disable-*)
886 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
889 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890 { (exit 1); exit 1; }; }
891 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
892 eval enable_
$ac_feature=no
;;
894 -docdir |
--docdir |
--docdi |
--doc |
--do)
896 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
899 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
901 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
904 -enable-* |
--enable-*)
905 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
911 eval enable_
$ac_feature=\
$ac_optarg ;;
913 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
914 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
915 |
--exec |
--exe |
--ex)
916 ac_prev
=exec_prefix
;;
917 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
918 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
919 |
--exec=* |
--exe=* |
--ex=*)
920 exec_prefix
=$ac_optarg ;;
922 -gas |
--gas |
--ga |
--g)
923 # Obsolete; use --with-gas.
926 -help |
--help |
--hel |
--he |
-h)
928 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
929 ac_init_help
=recursive
;;
930 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
931 ac_init_help
=short
;;
933 -host |
--host |
--hos |
--ho)
934 ac_prev
=host_alias
;;
935 -host=* |
--host=* |
--hos=* |
--ho=*)
936 host_alias
=$ac_optarg ;;
938 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
940 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
942 htmldir
=$ac_optarg ;;
944 -includedir |
--includedir |
--includedi |
--included |
--include \
945 |
--includ |
--inclu |
--incl |
--inc)
946 ac_prev
=includedir
;;
947 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
948 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
949 includedir
=$ac_optarg ;;
951 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
953 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
954 infodir
=$ac_optarg ;;
956 -libdir |
--libdir |
--libdi |
--libd)
958 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
961 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
962 |
--libexe |
--libex |
--libe)
963 ac_prev
=libexecdir
;;
964 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
965 |
--libexe=* |
--libex=* |
--libe=*)
966 libexecdir
=$ac_optarg ;;
968 -localedir |
--localedir |
--localedi |
--localed |
--locale)
970 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
971 localedir
=$ac_optarg ;;
973 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
974 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
975 ac_prev
=localstatedir
;;
976 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
977 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
978 localstatedir
=$ac_optarg ;;
980 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
982 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
986 # Obsolete; use --without-fp.
989 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
990 |
--no-cr |
--no-c |
-n)
993 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
994 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
997 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
998 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
999 |
--oldin |
--oldi |
--old |
--ol |
--o)
1000 ac_prev
=oldincludedir
;;
1001 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1002 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1003 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1004 oldincludedir
=$ac_optarg ;;
1006 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1008 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1009 prefix
=$ac_optarg ;;
1011 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1012 |
--program-pre |
--program-pr |
--program-p)
1013 ac_prev
=program_prefix
;;
1014 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1015 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1016 program_prefix
=$ac_optarg ;;
1018 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1019 |
--program-suf |
--program-su |
--program-s)
1020 ac_prev
=program_suffix
;;
1021 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1022 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1023 program_suffix
=$ac_optarg ;;
1025 -program-transform-name |
--program-transform-name \
1026 |
--program-transform-nam |
--program-transform-na \
1027 |
--program-transform-n |
--program-transform- \
1028 |
--program-transform |
--program-transfor \
1029 |
--program-transfo |
--program-transf \
1030 |
--program-trans |
--program-tran \
1031 |
--progr-tra |
--program-tr |
--program-t)
1032 ac_prev
=program_transform_name
;;
1033 -program-transform-name=* |
--program-transform-name=* \
1034 |
--program-transform-nam=* |
--program-transform-na=* \
1035 |
--program-transform-n=* |
--program-transform-=* \
1036 |
--program-transform=* |
--program-transfor=* \
1037 |
--program-transfo=* |
--program-transf=* \
1038 |
--program-trans=* |
--program-tran=* \
1039 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1040 program_transform_name
=$ac_optarg ;;
1042 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1044 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1045 pdfdir
=$ac_optarg ;;
1047 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1049 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1053 |
-silent |
--silent |
--silen |
--sile |
--sil)
1056 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1058 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1060 sbindir
=$ac_optarg ;;
1062 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1063 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1064 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1066 ac_prev
=sharedstatedir
;;
1067 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1068 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1069 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1071 sharedstatedir
=$ac_optarg ;;
1073 -site |
--site |
--sit)
1075 -site=* |
--site=* |
--sit=*)
1078 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1080 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1081 srcdir
=$ac_optarg ;;
1083 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1084 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1085 ac_prev
=sysconfdir
;;
1086 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1087 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1088 sysconfdir
=$ac_optarg ;;
1090 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1091 ac_prev
=target_alias
;;
1092 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1093 target_alias
=$ac_optarg ;;
1095 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1098 -version |
--version |
--versio |
--versi |
--vers |
-V)
1099 ac_init_version
=: ;;
1102 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1108 eval with_
$ac_package=\
$ac_optarg ;;
1110 -without-* |
--without-*)
1111 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_
$ac_package=no
;;
1120 # Obsolete; use --with-x.
1123 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1124 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1125 ac_prev
=x_includes
;;
1126 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1127 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1128 x_includes
=$ac_optarg ;;
1130 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1131 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1132 ac_prev
=x_libraries
;;
1133 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1134 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1135 x_libraries
=$ac_optarg ;;
1137 -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1143 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1146 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\
$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1155 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 if test -n "$ac_prev"; then
1163 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1164 { echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 # Be sure to have absolute directory names.
1169 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1174 eval ac_val
=\$
$ac_var
1176 [\\/$
]* | ?
:[\\/]* ) continue;;
1177 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1179 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target
=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x
; then
1192 if test "x$build_alias" = x
; then
1193 cross_compiling
=maybe
1194 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1202 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1204 test "$silent" = yes && exec 6>/dev
/null
1207 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di
=`ls -di .` &&
1209 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1210 { echo "$as_me: error: Working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted
=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir
=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$0" : 'X\(//\)[^/]' \| \
1224 X"$0" : 'X\(//\)$' \| \
1225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1249 ac_srcdir_defaulted
=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1253 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1269 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 for ac_var
in $ac_precious_vars; do
1272 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1274 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1285 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1343 --build=BUILD configure
for building on BUILD
[guessed
]
1344 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive
) echo "Configuration of PostgreSQL 8.4devel:";;
1355 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1356 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1357 --disable-integer-datetimes
1358 disable
64-bit integer date
/time support
1359 --enable-nls[=LANGUAGES
]
1360 enable Native Language Support
1361 --disable-shared do not build shared libraries
1362 --disable-rpath do not embed shared library search path
in
1364 --disable-spinlocks do not use spinlocks
1365 --enable-debug build with debugging symbols
(-g)
1366 --enable-profiling build with profiling enabled
1367 --enable-coverage build with coverage testing instrumentation
1368 --enable-dtrace build with DTrace support
1369 --enable-depend turn on automatic dependency tracking
1370 --enable-cassert enable assertion checks
(for debugging
)
1371 --enable-thread-safety make client libraries thread-safe
1372 --enable-thread-safety-force
1373 force thread-safety despite thread
test failure
1374 --disable-float4-byval disable float4 passed by value
1375 --disable-float8-byval disable float8 passed by value
1376 --disable-largefile omit support
for large files
1379 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1380 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1381 --with-template=NAME override operating system template
1382 --with-includes=DIRS
look for additional header files
in DIRS
1383 --with-libraries=DIRS
look for additional libraries
in DIRS
1384 --with-libs=DIRS alternative spelling of
--with-libraries
1385 --with-pgport=PORTNUM
set default port number
[5432]
1386 --with-blocksize=BLOCKSIZE
1387 set table block size
in kB
[8]
1388 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1389 --with-wal-blocksize=BLOCKSIZE
1390 set WAL block size
in kB
[8]
1391 --with-wal-segsize=SEGSIZE
1392 set WAL segment size
in MB
[16]
1393 --with-CC=CMD
set compiler
(deprecated
)
1394 --with-tcl build Tcl modules
(PL
/Tcl
)
1395 --with-tclconfig=DIR tclConfig.sh is
in DIR
1396 --with-perl build Perl modules
(PL
/Perl
)
1397 --with-python build Python modules
(PL
/Python
)
1398 --with-gssapi build with GSSAPI support
1399 --with-krb5 build with Kerberos
5 support
1400 --with-krb-srvnam=NAME default service principal name
in Kerberos
1402 --with-pam build with PAM support
1403 --with-ldap build with LDAP support
1404 --with-bonjour build with Bonjour support
1405 --with-openssl build with OpenSSL support
1406 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1407 --with-libedit-preferred
1408 prefer BSD Libedit over GNU Readline
1409 --with-ossp-uuid use OSSP UUID library when building
1411 --with-libxml build with XML support
1412 --with-libxslt use XSLT support when building contrib
/xml2
1413 --with-system-tzdata=DIR
1414 use system
time zone data
in DIR
1415 --without-zlib do not use Zlib
1416 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1418 Some influential environment variables
:
1419 CC C compiler
command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1422 nonstandard directory
<lib dir
>
1423 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1424 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1425 you have headers
in a nonstandard directory
<include dir
>
1429 location of DocBook stylesheets
1431 Use these variables to override the choices made by
`configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to <pgsql-bugs@postgresql.org>.
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" || continue
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1495 PostgreSQL configure 8.4devel
1496 generated by GNU Autoconf 2.61
1498 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1503 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1507 cat >config.log <<_ACEOF
1508 This file contains any messages produced by compilers while
1509 running configure, to aid debugging if configure makes a mistake.
1511 It was created by PostgreSQL $as_me 8.4devel, which was
1512 generated by GNU Autoconf 2.61. Invocation command line was
1524 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1525 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1526 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1527 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1528 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1530 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1531 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1533 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1534 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1535 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1536 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1537 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1538 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1539 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 echo "PATH: $as_dir"
1564 # Keep a trace of the command line.
1565 # Strip out --no-create and --no-recursion so they do not pile up.
1566 # Strip out --silent because we don't want to record it for future runs.
1567 # Also quote any args containing shell meta-characters.
1568 # Make two passes to allow for proper duplicate-argument suppression.
1572 ac_must_keep_next=false
1578 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1580 | -silent | --silent | --silen | --sile | --sil)
1583 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1586 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1588 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1589 if test $ac_must_keep_next = true; then
1590 ac_must_keep_next=false # Got value, back to normal.
1593 *=* | --config-cache | -C | -disable-* | --disable-* \
1594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1596 | -with-* | --with-* | -without-* | --without-* | --x)
1597 case "$ac_configure_args0 " in
1598 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1601 -* ) ac_must_keep_next=true ;;
1604 ac_configure_args="$ac_configure_args '$ac_arg'"
1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1612 # When interrupted or exit'd, cleanup temporary files, and complete
1613 # config.log. We remove comments because anyway the quotes in there
1614 # would cause problems or look ugly.
1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1617 trap 'exit_status=$?
1618 # Save into config.log some information that might help in debugging.
1623 ## ---------------- ##
1624 ## Cache variables. ##
1625 ## ---------------- ##
1628 # The following way of writing the cache mishandles newlines in values,
1630 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1631 eval ac_val=\$$ac_var
1635 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1639 _ | IFS | as_nl) ;; #(
1640 *) $as_unset $ac_var ;;
1645 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1646 *${as_nl}ac_space=\ *)
1648 "s/'\''/'\''\\\\'\'''\''/g;
1649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1660 ## ----------------- ##
1661 ## Output variables. ##
1662 ## ----------------- ##
1665 for ac_var in $ac_subst_vars
1667 eval ac_val=\$$ac_var
1669 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1671 echo "$ac_var='\''$ac_val'\''"
1675 if test -n "$ac_subst_files"; then
1677 ## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##
1682 for ac_var in $ac_subst_files
1684 eval ac_val=\$$ac_var
1686 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1688 echo "$ac_var='\''$ac_val'\''"
1693 if test -s confdefs.h; then
1703 test "$ac_signal" != 0 &&
1704 echo "$as_me: caught signal $ac_signal"
1705 echo "$as_me: exit $exit_status"
1707 rm -f core *.core core.conftest.* &&
1708 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1711 for ac_signal in 1 2 13 15; do
1712 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1717 rm -f -r conftest* confdefs.h
1719 # Predefined preprocessor variables.
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_NAME "$PACKAGE_NAME"
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_STRING "$PACKAGE_STRING"
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1746 # Let the site file select an alternate cache file if it wants to.
1747 # Prefer explicitly selected file to automatically selected ones.
1748 if test -n "$CONFIG_SITE"; then
1749 set x "$CONFIG_SITE"
1750 elif test "x$prefix" != xNONE; then
1751 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1753 set x "$ac_default_prefix/share/config.site" \
1754 "$ac_default_prefix/etc/config.site"
1759 if test -r "$ac_site_file"; then
1760 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1761 echo "$as_me: loading site script $ac_site_file" >&6;}
1762 sed 's/^/| /' "$ac_site_file" >&5
1767 if test -r "$cache_file"; then
1768 # Some versions of bash will fail to source /dev/null (special
1769 # files actually), so we avoid doing that.
1770 if test -f "$cache_file"; then
1771 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1772 echo "$as_me: loading cache $cache_file" >&6;}
1774 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1775 *) . "./$cache_file";;
1779 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1780 echo "$as_me: creating cache $cache_file" >&6;}
1784 # Check that the precious variables saved in the cache have kept the same
1786 ac_cache_corrupted=false
1787 for ac_var in $ac_precious_vars; do
1788 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1789 eval ac_new_set=\$ac_env_${ac_var}_set
1790 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1791 eval ac_new_val=\$ac_env_${ac_var}_value
1792 case $ac_old_set,$ac_new_set in
1794 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1795 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1796 ac_cache_corrupted=: ;;
1798 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1799 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1800 ac_cache_corrupted=: ;;
1803 if test "x$ac_old_val" != "x$ac_new_val"; then
1804 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1805 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1806 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1807 echo "$as_me: former value
: $ac_old_val" >&2;}
1808 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1809 echo "$as_me: current value
: $ac_new_val" >&2;}
1810 ac_cache_corrupted=:
1813 # Pass precious variables to config.status.
1814 if test "$ac_new_set" = set; then
1816 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1817 *) ac_arg=$ac_var=$ac_new_val ;;
1819 case " $ac_configure_args " in
1820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1821 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1825 if $ac_cache_corrupted; then
1826 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1827 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1828 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1829 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1830 { (exit 1); exit 1; }; }
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 for ac_dir in config "$srcdir"/config; do
1870 if test -f "$ac_dir/install-sh"; then
1872 ac_install_sh="$ac_aux_dir/install-sh -c"
1874 elif test -f "$ac_dir/install.sh"; then
1876 ac_install_sh="$ac_aux_dir/install.sh -c"
1878 elif test -f "$ac_dir/shtool"; then
1880 ac_install_sh="$ac_aux_dir/shtool install -c"
1884 if test -z "$ac_aux_dir"; then
1885 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1887 { (exit 1); exit 1; }; }
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1900 configure_args=$ac_configure_args
1904 cat >>confdefs.h <<_ACEOF
1905 #define PG_VERSION "$PACKAGE_VERSION"
1909 # Make sure we can run config.sub.
1910 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1911 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1912 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1913 { (exit 1); exit 1; }; }
1915 { echo "$as_me:$LINENO: checking build system type" >&5
1916 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1917 if test "${ac_cv_build+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 ac_build_alias=$build_alias
1921 test "x$ac_build_alias" = x &&
1922 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1923 test "x$ac_build_alias" = x &&
1924 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1925 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1926 { (exit 1); exit 1; }; }
1927 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1928 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1929 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1930 { (exit 1); exit 1; }; }
1933 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1934 echo "${ECHO_T}$ac_cv_build" >&6; }
1935 case $ac_cv_build in
1937 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1938 echo "$as_me: error: invalid value of canonical build" >&2;}
1939 { (exit 1); exit 1; }; };;
1942 ac_save_IFS=$IFS; IFS='-'
1948 # Remember, the first character of IFS is used to create $*,
1949 # except with old shells:
1952 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1955 { echo "$as_me:$LINENO: checking host system type" >&5
1956 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1957 if test "${ac_cv_host+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test "x$host_alias" = x; then
1961 ac_cv_host=$ac_cv_build
1963 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1964 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1965 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1966 { (exit 1); exit 1; }; }
1970 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1971 echo "${ECHO_T}$ac_cv_host" >&6; }
1974 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1975 echo "$as_me: error: invalid value of canonical host" >&2;}
1976 { (exit 1); exit 1; }; };;
1979 ac_save_IFS=$IFS; IFS='-'
1985 # Remember, the first character of IFS is used to create $*,
1986 # except with old shells:
1989 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1994 { echo "$as_me:$LINENO: checking which template to use" >&5
1995 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1998 pgac_args="$pgac_args with_template"
2001 # Check whether --with-template was given.
2002 if test "${with_template+set}" = set; then
2003 withval=$with_template;
2006 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2007 echo "$as_me: error: argument required for --with-template option" >&2;}
2008 { (exit 1); exit 1; }; }
2011 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2012 echo "$as_me: error: argument required for --with-template option" >&2;}
2013 { (exit 1); exit 1; }; }
2018 list) echo; ls "$srcdir/src/template"; exit;;
2019 *) if test -f "$srcdir/src/template/$with_template" ; then
2022 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2023 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2024 { (exit 1); exit 1; }; }
2033 # --with-template not given
2036 aix*) template=aix ;;
2037 bsdi*) template=bsdi ;;
2038 cygwin*) template=cygwin ;;
2039 darwin*) template=darwin ;;
2040 dgux*) template=dgux ;;
2041 freebsd*) template=freebsd ;;
2042 hpux*) template=hpux ;;
2043 irix*) template=irix ;;
2044 linux*|gnu*|k*bsd*-gnu)
2046 mingw*) template=win32 ;;
2047 netbsd*) template=netbsd ;;
2048 nextstep*) template=nextstep ;;
2049 openbsd*) template=openbsd ;;
2050 osf*) template=osf ;;
2051 sco*) template=sco ;;
2052 solaris*) template=solaris ;;
2053 sunos*) template=sunos4 ;;
2055 case $host_vendor in
2056 univel) template=univel ;;
2058 sysv4*) template=svr4 ;;
2059 sysv5*) template=unixware ;;
2060 ultrix*) template=ultrix4 ;;
2063 if test x"$template" = x"" ; then
2064 { { echo "$as_me:$LINENO: error:
2065 *******************************************************************
2066 PostgreSQL has apparently not been ported to your platform yet.
2067 To try a manual configuration, look into the src/template directory
2068 for a similar platform and use the '--with-template=' option.
2070 Please also contact <pgsql-ports@postgresql.org> to see about
2071 rectifying this. Include the above 'checking host system type...'
2073 *******************************************************************
2075 echo "$as_me: error:
2076 *******************************************************************
2077 PostgreSQL has apparently not been ported to your platform yet.
2078 To try a manual configuration, look into the src/template directory
2079 for a similar platform and use the '--with-template=' option.
2081 Please also contact <pgsql-ports@postgresql.org> to see about
2082 rectifying this. Include the above 'checking host system type...'
2084 *******************************************************************
2086 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: result: $template" >&5
2095 echo "${ECHO_T}$template" >&6; }
2100 # Initialize default assumption that we do not need separate assembly code
2101 # for TAS (test-and-set). This can be overridden by the template file
2102 # when it's executed.
2109 ## Command line options
2113 # Add non-standard directories to the include path
2116 pgac_args="$pgac_args with_includes"
2119 # Check whether --with-includes was given.
2120 if test "${with_includes+set}" = set; then
2121 withval=$with_includes;
2124 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2125 echo "$as_me: error: argument required for --with-includes option" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2130 echo "$as_me: error: argument required for --with-includes option" >&2;}
2131 { (exit 1); exit 1; }; }
2144 # Add non-standard directories to the library search path
2147 pgac_args="$pgac_args with_libraries"
2150 # Check whether --with-libraries was given.
2151 if test "${with_libraries+set}" = set; then
2152 withval=$with_libraries;
2155 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2156 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2157 { (exit 1); exit 1; }; }
2160 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2161 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2162 { (exit 1); exit 1; }; }
2165 LIBRARY_DIRS=$withval
2174 pgac_args="$pgac_args with_libs"
2177 # Check whether --with-libs was given.
2178 if test "${with_libs+set}" = set; then
2182 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2183 echo "$as_me: error: argument required for --with-libs option" >&2;}
2184 { (exit 1); exit 1; }; }
2187 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2188 echo "$as_me: error: argument required for --with-libs option" >&2;}
2189 { (exit 1); exit 1; }; }
2192 LIBRARY_DIRS=$withval
2202 # 64-bit integer date/time storage: enabled by default.
2204 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2205 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2207 pgac_args="$pgac_args enable_integer_datetimes"
2209 # Check whether --enable-integer-datetimes was given.
2210 if test "${enable_integer_datetimes+set}" = set; then
2211 enableval=$enable_integer_datetimes;
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2224 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2225 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2226 { (exit 1); exit 1; }; }
2231 enable_integer_datetimes=yes
2233 cat >>confdefs.h <<\_ACEOF
2234 #define USE_INTEGER_DATETIMES 1
2240 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2241 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2247 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2248 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2250 pgac_args="$pgac_args enable_nls"
2252 # Check whether --enable-nls was given.
2253 if test "${enable_nls+set}" = set; then
2254 enableval=$enable_nls;
2264 WANTED_LANGUAGES=$enableval
2274 if test "$enable_nls" = yes; then
2276 cat >>confdefs.h <<\_ACEOF
2277 #define ENABLE_NLS 1
2282 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2283 echo "${ECHO_T}$enable_nls" >&6; }
2288 # Default port number (--with-pgport), default 5432
2290 { echo "$as_me:$LINENO: checking for default port number" >&5
2291 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2293 pgac_args="$pgac_args with_pgport"
2296 # Check whether --with-pgport was given.
2297 if test "${with_pgport+set}" = set; then
2298 withval=$with_pgport;
2301 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2302 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2303 { (exit 1); exit 1; }; }
2306 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2307 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2308 { (exit 1); exit 1; }; }
2311 default_port=$withval
2320 { echo "$as_me:$LINENO: result: $default_port" >&5
2321 echo "${ECHO_T}$default_port" >&6; }
2322 # Need both of these because some places want an integer and some a string
2324 cat >>confdefs.h <<_ACEOF
2325 #define DEF_PGPORT ${default_port}
2329 cat >>confdefs.h <<_ACEOF
2330 #define DEF_PGPORT_STR "${default_port}"
2336 # Option to disable shared libraries
2339 pgac_args="$pgac_args enable_shared"
2341 # Check whether --enable-shared was given.
2342 if test "${enable_shared+set}" = set; then
2343 enableval=$enable_shared;
2352 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2353 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2354 { (exit 1); exit 1; }; }
2367 # '-rpath'-like feature can be disabled
2370 pgac_args="$pgac_args enable_rpath"
2372 # Check whether --enable-rpath was given.
2373 if test "${enable_rpath+set}" = set; then
2374 enableval=$enable_rpath;
2383 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2384 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2385 { (exit 1); exit 1; }; }
2401 pgac_args="$pgac_args enable_spinlocks"
2403 # Check whether --enable-spinlocks was given.
2404 if test "${enable_spinlocks+set}" = set; then
2405 enableval=$enable_spinlocks;
2414 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2415 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2416 { (exit 1); exit 1; }; }
2421 enable_spinlocks=yes
2428 # --enable-debug adds -g to compiler flags
2431 pgac_args="$pgac_args enable_debug"
2433 # Check whether --enable-debug was given.
2434 if test "${enable_debug+set}" = set; then
2435 enableval=$enable_debug;
2444 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2445 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2446 { (exit 1); exit 1; }; }
2459 # --enable-profiling enables gcc profiling
2462 pgac_args="$pgac_args enable_profiling"
2464 # Check whether --enable-profiling was given.
2465 if test "${enable_profiling+set}" = set; then
2466 enableval=$enable_profiling;
2475 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2476 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2477 { (exit 1); exit 1; }; }
2490 # --enable-coverage enables generation of code coverage metrics with gcov
2493 pgac_args="$pgac_args enable_coverage"
2495 # Check whether --enable-coverage was given.
2496 if test "${enable_coverage+set}" = set; then
2497 enableval=$enable_coverage;
2502 # Extract the first word of "$ac_prog", so it can be a program name with args.
2503 set dummy $ac_prog; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_GCOV+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$GCOV"; then
2510 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_GCOV="$ac_prog"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 GCOV=$ac_cv_prog_GCOV
2530 if test -n "$GCOV"; then
2531 { echo "$as_me:$LINENO: result: $GCOV" >&5
2532 echo "${ECHO_T}$GCOV" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2539 test -n "$GCOV" && break
2542 if test -z "$GCOV"; then
2543 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2544 echo "$as_me: error: gcov not found" >&2;}
2545 { (exit 1); exit 1; }; }
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_LCOV+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$LCOV"; then
2557 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_LCOV="$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 LCOV=$ac_cv_prog_LCOV
2577 if test -n "$LCOV"; then
2578 { echo "$as_me:$LINENO: result: $LCOV" >&5
2579 echo "${ECHO_T}$LCOV" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2586 test -n "$LCOV" && break
2589 if test -z "$LCOV"; then
2590 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2591 echo "$as_me: error: lcov not found" >&2;}
2592 { (exit 1); exit 1; }; }
2594 for ac_prog in genhtml
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_GENHTML+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$GENHTML"; then
2604 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_GENHTML="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 GENHTML=$ac_cv_prog_GENHTML
2624 if test -n "$GENHTML"; then
2625 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2626 echo "${ECHO_T}$GENHTML" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2633 test -n "$GENHTML" && break
2636 if test -z "$GENHTML"; then
2637 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2638 echo "$as_me: error: genhtml not found" >&2;}
2639 { (exit 1); exit 1; }; }
2646 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2647 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2648 { (exit 1); exit 1; }; }
2664 pgac_args="$pgac_args enable_dtrace"
2666 # Check whether --enable-dtrace was given.
2667 if test "${enable_dtrace+set}" = set; then
2668 enableval=$enable_dtrace;
2672 cat >>confdefs.h <<\_ACEOF
2673 #define ENABLE_DTRACE 1
2676 for ac_prog in dtrace
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_DTRACE+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if test -n "$DTRACE"; then
2686 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_DTRACE="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 DTRACE=$ac_cv_prog_DTRACE
2706 if test -n "$DTRACE"; then
2707 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2708 echo "${ECHO_T}$DTRACE" >&6; }
2710 { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2715 test -n "$DTRACE" && break
2718 if test -z "$DTRACE"; then
2719 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2720 echo "$as_me: error: dtrace not found" >&2;}
2721 { (exit 1); exit 1; }; }
2729 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2730 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2731 { (exit 1); exit 1; }; }
2746 { echo "$as_me:$LINENO: checking for block size" >&5
2747 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2749 pgac_args="$pgac_args with_blocksize"
2752 # Check whether --with-blocksize was given.
2753 if test "${with_blocksize+set}" = set; then
2754 withval=$with_blocksize;
2757 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2758 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2759 { (exit 1); exit 1; }; }
2762 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2763 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2764 { (exit 1); exit 1; }; }
2776 case ${blocksize} in
2783 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2784 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2785 { (exit 1); exit 1; }; }
2787 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2788 echo "${ECHO_T}${blocksize}kB" >&6; }
2791 cat >>confdefs.h <<_ACEOF
2792 #define BLCKSZ ${BLCKSZ}
2797 # Relation segment size
2799 { echo "$as_me:$LINENO: checking for segment size" >&5
2800 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2802 pgac_args="$pgac_args with_segsize"
2805 # Check whether --with-segsize was given.
2806 if test "${with_segsize+set}" = set; then
2807 withval=$with_segsize;
2810 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2811 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2812 { (exit 1); exit 1; }; }
2815 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2816 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2817 { (exit 1); exit 1; }; }
2829 # this expression is set up to avoid unnecessary integer overflow
2830 # blocksize is already guaranteed to be a factor of 1024
2831 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2832 test $? -eq 0 || exit 1
2833 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2834 echo "${ECHO_T}${segsize}GB" >&6; }
2837 cat >>confdefs.h <<_ACEOF
2838 #define RELSEG_SIZE ${RELSEG_SIZE}
2845 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2846 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2848 pgac_args="$pgac_args with_wal_blocksize"
2851 # Check whether --with-wal-blocksize was given.
2852 if test "${with_wal_blocksize+set}" = set; then
2853 withval=$with_wal_blocksize;
2856 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2857 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2858 { (exit 1); exit 1; }; }
2861 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2862 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2863 { (exit 1); exit 1; }; }
2866 wal_blocksize=$withval
2875 case ${wal_blocksize} in
2876 1) XLOG_BLCKSZ=1024;;
2877 2) XLOG_BLCKSZ=2048;;
2878 4) XLOG_BLCKSZ=4096;;
2879 8) XLOG_BLCKSZ=8192;;
2880 16) XLOG_BLCKSZ=16384;;
2881 32) XLOG_BLCKSZ=32768;;
2882 64) XLOG_BLCKSZ=65536;;
2883 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2884 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2885 { (exit 1); exit 1; }; }
2887 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2888 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2891 cat >>confdefs.h <<_ACEOF
2892 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2899 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2900 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2902 pgac_args="$pgac_args with_wal_segsize"
2905 # Check whether --with-wal-segsize was given.
2906 if test "${with_wal_segsize+set}" = set; then
2907 withval=$with_wal_segsize;
2910 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2911 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2912 { (exit 1); exit 1; }; }
2915 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2916 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2917 { (exit 1); exit 1; }; }
2920 wal_segsize=$withval
2929 case ${wal_segsize} in
2937 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2938 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2939 { (exit 1); exit 1; }; }
2941 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2942 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2945 cat >>confdefs.h <<_ACEOF
2946 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2954 # For historical reasons you can also use --with-CC to specify the C compiler
2955 # to use, although the standard way to do this is to set the CC environment
2958 pgac_args="$pgac_args with_CC"
2961 # Check whether --with-CC was given.
2962 if test "${with_CC+set}" = set; then
2966 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2967 echo "$as_me: error: argument required for --with-CC option" >&2;}
2968 { (exit 1); exit 1; }; }
2971 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2972 echo "$as_me: error: argument required for --with-CC option" >&2;}
2973 { (exit 1); exit 1; }; }
2985 aix) pgac_cc_list="gcc xlc";;
2986 irix) pgac_cc_list="cc";; # no gcc
2987 *) pgac_cc_list="gcc cc";;
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996 for ac_prog in $pgac_cc_list
2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 if test -n "$CC"; then
3027 { echo "$as_me:$LINENO: result: $CC" >&5
3028 echo "${ECHO_T}$CC" >&6; }
3030 { echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6; }
3035 test -n "$CC" && break
3038 if test -z "$CC"; then
3040 for ac_prog in $pgac_cc_list
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="$ac_prog"
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6; }
3074 { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3079 test -n "$ac_ct_CC" && break
3082 if test "x$ac_ct_CC" = x; then
3085 case $cross_compiling:$ac_tool_warned in
3087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet. If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&5
3090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3091 whose name does not start with the host triplet. If you think this
3092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3093 ac_tool_warned=yes ;;
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log
' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details.
" >&2;}
3104 { (exit 1); exit 1; }; }
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compiler --version >&5") 2>&5
3117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3118 (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compiler -v >&5") 2>&5
3127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3128 (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compiler -V >&5") 2>&5
3137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3138 (exit $ac_status); }
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3160 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3161 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort. b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions. Remove them first so a
3171 # subsequent execution test works.
3173 for ac_file in $ac_files
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 if { (ac_try="$ac_link_default"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_link_default") 2>&5
3190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3191 (exit $ac_status); }; then
3192 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3197 for ac_file in $ac_files ''
3199 test -f "$ac_file" || continue
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3204 # We found the default executable, but exeext='' is most
3208 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 # We set ac_cv_exeext here because the later test for it is not
3213 # safe: cross compilers may not add the suffix if given an `-o'
3214 # argument, so we may need to know it at that point already.
3215 # Even if this section looks crufty: it has the advantage of
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3228 { echo "$as_me:$LINENO: result
: $ac_file" >&5
3229 echo "${ECHO_T}$ac_file" >&6; }
3230 if test -z "$ac_file"; then
3231 echo "$as_me: failed program was
:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3235 See \
`config.log' for more details." >&5
3236 echo "$as_me: error: C compiler cannot create executables
3237 See \`config.log
' for more details." >&2;}
3238 { (exit 77); exit 77; }; }
3241 ac_exeext=$ac_cv_exeext
3243 # Check that the compiler produces executables we can run. If not, either
3244 # the compiler is broken, or we cross compile.
3245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3248 # If not cross compiling, check that we can run a simple program.
3249 if test "$cross_compiling" != yes; then
3250 if { ac_try='.
/$ac_file'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3262 if test "$cross_compiling" = maybe; then
3265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3266 If you meant to cross compile, use \`--host'.
3267 See \
`config.log' for more details." >&5
3268 echo "$as_me: error: cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details.
" >&2;}
3271 { (exit 1); exit 1; }; }
3275 { echo "$as_me:$LINENO: result
: yes" >&5
3276 echo "${ECHO_T}yes" >&6; }
3278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3283 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3284 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3285 echo "${ECHO_T}$cross_compiling" >&6; }
3287 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3288 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3289 if { (ac_try="$ac_link"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_link") 2>&5
3297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3298 (exit $ac_status); }; then
3299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3303 for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3314 See \
`config.log' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3316 See \`config.log
' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3320 rm -f conftest$ac_cv_exeext
3321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3324 rm -f conftest.$ac_ext
3325 EXEEXT=$ac_cv_exeext
3327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3329 if test "${ac_cv_objext+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3347 rm -f conftest.o conftest.obj
3348 if { (ac_try="$ac_compile"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 for ac_file in conftest.o conftest.obj conftest.*; do
3359 test -f "$ac_file" || continue;
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3362 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3367 echo "$as_me: failed program was:" >&5
3368 sed 's
/^
/|
/' conftest.$ac_ext >&5
3370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3371 See \`config.log' for more details.
" >&5
3372 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3373 See \
`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3380 echo "${ECHO_T}$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3410 *) ac_try_echo
=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compile") 2>conftest.er1
3415 grep -v '^ *+' conftest.er1
>conftest.err
3417 cat conftest.err
>&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } && {
3420 test -z "$ac_c_werror_flag" ||
3421 test ! -s conftest.err
3422 } && test -s conftest.
$ac_objext; then
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.
$ac_ext >&5
3431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3432 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3435 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3436 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3437 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3438 ac_test_CFLAGS
=${CFLAGS+set}
3439 ac_save_CFLAGS
=$CFLAGS
3440 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_cc_g+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 ac_save_c_werror_flag
=$ac_c_werror_flag
3446 ac_c_werror_flag
=yes
3449 cat >conftest.
$ac_ext <<_ACEOF
3452 cat confdefs.h
>>conftest.
$ac_ext
3453 cat >>conftest.
$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3464 rm -f conftest.
$ac_objext
3465 if { (ac_try
="$ac_compile"
3467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3473 grep -v '^ *+' conftest.er1 >conftest.err
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3506 *) ac_try_echo
=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1
>conftest.err
3513 cat conftest.err
>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.
$ac_objext; then
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.
$ac_ext >&5
3524 ac_c_werror_flag
=$ac_save_c_werror_flag
3526 cat >conftest.
$ac_ext <<_ACEOF
3529 cat confdefs.h
>>conftest.
$ac_ext
3530 cat >>conftest.
$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3541 rm -f conftest.
$ac_objext
3542 if { (ac_try
="$ac_compile"
3544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_compile") 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } && {
3555 test -z "$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 } && test -s conftest.$ac_objext; then
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_c_werror_flag=$ac_save_c_werror_flag
3575 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3576 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3577 if test "$ac_test_CFLAGS" = set; then
3578 CFLAGS=$ac_save_CFLAGS
3579 elif test $ac_cv_prog_cc_g = yes; then
3580 if test "$GCC" = yes; then
3586 if test "$GCC" = yes; then
3592 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3593 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3594 if test "${ac_cv_prog_cc_c89+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_cv_prog_cc_c89=no
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3607 #include <sys/types.h>
3608 #include <sys/stat.h>
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3623 s = g (p, va_arg (v,int));
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3629 function prototypes and stuff, but not '\xHH' hex character constants.
3630 These don't provoke an error unfortunately, instead are silently treated
3631 as 'x'. The following induces an error, until -std is added to get
3632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3633 array size at least. It's necessary to write '\x00'==0 to get something
3634 that's true only with -std. */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638 inside strings and character constants. */
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 CC="$ac_save_CC $ac_arg"
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3664 *) ac_try_echo
=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1
>conftest.err
3671 cat conftest.err
>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.
$ac_objext; then
3677 ac_cv_prog_cc_c89
=$ac_arg
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.
$ac_ext >&5
3685 rm -f core conftest.err conftest.
$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 rm -f conftest.
$ac_ext
3693 case "x$ac_cv_prog_cc_c89" in
3695 { echo "$as_me:$LINENO: result: none needed" >&5
3696 echo "${ECHO_T}none needed" >&6; } ;;
3698 { echo "$as_me:$LINENO: result: unsupported" >&5
3699 echo "${ECHO_T}unsupported" >&6; } ;;
3701 CC
="$CC $ac_cv_prog_cc_c89"
3702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3708 ac_cpp
='$CPP $CPPFLAGS'
3709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3714 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3715 # but has idiosyncrasies of its own. We assume icc will define
3716 # __INTEL_COMPILER regardless of CFLAGS.
3718 cat >conftest.
$ac_ext <<_ACEOF
3721 cat confdefs.h
>>conftest.
$ac_ext
3722 cat >>conftest.
$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3728 #ifndef __INTEL_COMPILER
3735 rm -f conftest.
$ac_objext
3736 if { (ac_try
="$ac_compile"
3738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 # Check if it's Sun Studio compiler. We assume that
3763 # __SUNPRO_C will be defined for Sun Studio compilers
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3785 *) ac_try_echo
=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compile") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1
>conftest.err
3792 cat conftest.err
>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest.
$ac_objext; then
3800 echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.
$ac_ext >&5
3806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3815 .
"$srcdir/src/template/$template" ||
exit
3817 # CFLAGS are selected so:
3818 # If the user specifies something in the environment, that is used.
3819 # else: If the template file set something, that is used.
3820 # else: If coverage was enabled, don't set anything.
3821 # else: If the compiler is GCC, then we use -O2.
3822 # else: If the compiler is something else, then we use -O.
3824 if test "$ac_env_CFLAGS_set" = set; then
3825 CFLAGS
=$ac_env_CFLAGS_value
3826 elif test "${CFLAGS+set}" = set; then
3827 : # (keep what template set)
3828 elif test "$enable_coverage" = yes; then
3829 : # no optimization by default
3830 elif test "$GCC" = yes; then
3833 # if the user selected debug mode, don't use -O
3834 if test "$enable_debug" != yes; then
3839 # Some versions of GCC support some additional useful warning flags.
3840 # Check whether they are supported, and add them to CFLAGS if so.
3841 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3843 if test "$GCC" = yes -a "$ICC" = no
; then
3844 CFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3845 # These work in some but not all gcc versions
3846 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3847 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3848 pgac_save_CFLAGS
=$CFLAGS
3849 CFLAGS
="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3850 cat >conftest.
$ac_ext <<_ACEOF
3853 cat confdefs.h
>>conftest.
$ac_ext
3854 cat >>conftest.
$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3865 rm -f conftest.
$ac_objext
3866 if { (ac_try
="$ac_compile"
3868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1 >conftest.err
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3882 { echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6; }
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 CFLAGS="$pgac_save_CFLAGS"
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3896 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3897 pgac_save_CFLAGS=$CFLAGS
3898 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3918 *) ac_try_echo
=$ac_try;;
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3923 grep -v '^ *+' conftest.er1
>conftest.err
3925 cat conftest.err
>&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.
$ac_objext; then
3931 { echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6; }
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.
$ac_ext >&5
3937 CFLAGS
="$pgac_save_CFLAGS"
3938 { echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6; }
3942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3944 # Disable strict-aliasing rules; needed for gcc 3.3+
3945 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3946 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3947 pgac_save_CFLAGS
=$CFLAGS
3948 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3949 cat >conftest.
$ac_ext <<_ACEOF
3952 cat confdefs.h
>>conftest.
$ac_ext
3953 cat >>conftest.
$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3964 rm -f conftest.
$ac_objext
3965 if { (ac_try
="$ac_compile"
3967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_compile") 2>conftest.er1
3973 grep -v '^ *+' conftest.er1 >conftest.err
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && {
3978 test -z "$ac_c_werror_flag" ||
3979 test ! -s conftest.err
3980 } && test -s conftest.$ac_objext; then
3981 { echo "$as_me:$LINENO: result: yes" >&5
3982 echo "${ECHO_T}yes" >&6; }
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 CFLAGS="$pgac_save_CFLAGS"
3988 { echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; }
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 # Disable optimizations that assume no overflow; needed for gcc 4.3+
3995 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3996 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3997 pgac_save_CFLAGS=$CFLAGS
3998 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4018 *) ac_try_echo
=$ac_try;;
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4023 grep -v '^ *+' conftest.er1
>conftest.err
4025 cat conftest.err
>&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.
$ac_objext; then
4031 { echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6; }
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.
$ac_ext >&5
4037 CFLAGS
="$pgac_save_CFLAGS"
4038 { echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6; }
4042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4044 elif test "$ICC" = yes; then
4045 # Intel's compiler has a bug/misoptimization in checking for
4046 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4047 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4048 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4049 pgac_save_CFLAGS
=$CFLAGS
4050 CFLAGS
="$pgac_save_CFLAGS -mp1"
4051 cat >conftest.
$ac_ext <<_ACEOF
4054 cat confdefs.h
>>conftest.
$ac_ext
4055 cat >>conftest.
$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4066 rm -f conftest.
$ac_objext
4067 if { (ac_try
="$ac_compile"
4069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest.$ac_objext; then
4083 { echo "$as_me:$LINENO: result: yes" >&5
4084 echo "${ECHO_T}yes" >&6; }
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 CFLAGS="$pgac_save_CFLAGS"
4090 { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 # Make sure strict aliasing is off (though this is said to be the default)
4097 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4098 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4099 pgac_save_CFLAGS=$CFLAGS
4100 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4101 cat >conftest.$ac_ext <<_ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h. */
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4120 *) ac_try_echo
=$ac_try;;
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1
>conftest.err
4127 cat conftest.err
>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest.
$ac_objext; then
4133 { echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6; }
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.
$ac_ext >&5
4139 CFLAGS
="$pgac_save_CFLAGS"
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4146 elif test x
"${CC}" = x
"xlc"; then
4147 # AIX xlc has to have strict aliasing turned off too
4148 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4149 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4150 pgac_save_CFLAGS
=$CFLAGS
4151 CFLAGS
="$pgac_save_CFLAGS -qnoansialias"
4152 cat >conftest.
$ac_ext <<_ACEOF
4155 cat confdefs.h
>>conftest.
$ac_ext
4156 cat >>conftest.
$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4167 rm -f conftest.
$ac_objext
4168 if { (ac_try
="$ac_compile"
4170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4184 { echo "$as_me:$LINENO: result: yes" >&5
4185 echo "${ECHO_T}yes" >&6; }
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 CFLAGS="$pgac_save_CFLAGS"
4191 { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 # supply -g if --enable-debug
4200 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4204 # enable code coverage if --enable-coverage
4205 if test "$enable_coverage" = yes; then
4206 if test "$GCC" = yes; then
4207 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4209 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4210 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4211 { (exit 1); exit 1; }; }
4215 # enable profiling if --enable-profiling
4216 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4217 if test "$GCC" = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define PROFILE_PID_DIR 1
4223 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4225 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4226 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4227 { (exit 1); exit 1; }; }
4231 # We already have this in Makefile.win32, but configure needs it too
4232 if test "$PORTNAME" = "win32"; then
4233 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4236 # Check if the compiler still works with the template settings
4237 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4238 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (ac_try="$ac_link"
4257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4258 *) ac_try_echo
=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_link") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1
>conftest.err
4265 cat conftest.err
>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest
$ac_exeext &&
4271 $as_test_x conftest
$ac_exeext; then
4272 { echo "$as_me:$LINENO: result: yes" >&5
4273 echo "${ECHO_T}yes" >&6; }
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.
$ac_ext >&5
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4281 echo "$as_me: error: cannot proceed" >&2;}
4282 { (exit 1); exit 1; }; }
4285 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4286 conftest
$ac_exeext conftest.
$ac_ext
4288 # Defend against gcc -ffast-math
4289 if test "$GCC" = yes; then
4290 cat >conftest.
$ac_ext <<_ACEOF
4293 cat confdefs.h
>>conftest.
$ac_ext
4294 cat >>conftest.
$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4300 #ifdef __FAST_MATH__
4307 rm -f conftest.
$ac_objext
4308 if { (ac_try
="$ac_compile"
4310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_compile") 2>conftest.er1
4316 grep -v '^ *+' conftest.er1 >conftest.err
4318 cat conftest.err >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && {
4321 test -z "$ac_c_werror_flag" ||
4322 test ! -s conftest.err
4323 } && test -s conftest.$ac_objext; then
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4330 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4331 { (exit 1); exit 1; }; }
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4344 # On Suns, sometimes $CPP names a directory.
4345 if test -n "$CPP" && test -d "$CPP"; then
4348 if test -z "$CPP"; then
4349 if test "${ac_cv_prog_CPP+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # Double quotes because CPP needs to be expanded
4353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4356 for ac_c_preproc_warn_flag in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 # <limits.h> exists even on freestanding compilers.
4362 # On the NeXT, cc -E runs the code through the compiler's parser,
4363 # not just through cpp. "Syntax error" is here to catch this case.
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4371 # include <limits.h>
4373 # include <assert.h>
4377 if { (ac_try="$ac_cpp conftest.$ac_ext"
4379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4380 *) ac_try_echo
=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1
>conftest.err
4387 cat conftest.err
>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev
/null
&& {
4390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.
$ac_ext >&5
4398 # Broken: fails on valid input.
4402 rm -f conftest.err conftest.
$ac_ext
4404 # OK, works on sane cases. Now check whether nonexistent headers
4405 # can be detected and how.
4406 cat >conftest.
$ac_ext <<_ACEOF
4409 cat confdefs.h
>>conftest.
$ac_ext
4410 cat >>conftest.
$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 #include <ac_nonexistent.h>
4414 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } >/dev/null && {
4427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4430 # Broken: success on invalid input.
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 # Passes both tests.
4441 rm -f conftest.err conftest.$ac_ext
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.err conftest.
$ac_ext
4446 if $ac_preproc_ok; then
4458 { echo "$as_me:$LINENO: result: $CPP" >&5
4459 echo "${ECHO_T}$CPP" >&6; }
4461 for ac_c_preproc_warn_flag
in '' yes
4463 # Use a header file that comes with gcc, so configuring glibc
4464 # with a fresh cross-compiler works.
4465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4466 # <limits.h> exists even on freestanding compilers.
4467 # On the NeXT, cc -E runs the code through the compiler's parser,
4468 # not just through cpp. "Syntax error" is here to catch this case.
4469 cat >conftest.
$ac_ext <<_ACEOF
4472 cat confdefs.h
>>conftest.
$ac_ext
4473 cat >>conftest.
$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4476 # include <limits.h>
4478 # include <assert.h>
4482 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null && {
4495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 # Broken: fails on valid input.
4507 rm -f conftest.err conftest.$ac_ext
4509 # OK, works on sane cases. Now check whether nonexistent headers
4510 # can be detected and how.
4511 cat >conftest.$ac_ext <<_ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4519 if { (ac_try="$ac_cpp conftest.$ac_ext"
4521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4522 *) ac_try_echo
=$ac_try;;
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4527 grep -v '^ *+' conftest.er1
>conftest.err
4529 cat conftest.err
>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } >/dev
/null
&& {
4532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4533 test ! -s conftest.err
4535 # Broken: success on invalid input.
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.
$ac_ext >&5
4541 # Passes both tests.
4546 rm -f conftest.err conftest.
$ac_ext
4549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4550 rm -f conftest.err conftest.
$ac_ext
4551 if $ac_preproc_ok; then
4554 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4555 See \`config.log' for more details." >&5
4556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4557 See \`config.log' for more details." >&2;}
4558 { (exit 1); exit 1; }; }
4562 ac_cpp
='$CPP $CPPFLAGS'
4563 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4569 # Create compiler version string
4570 if test x
"$GCC" = x
"yes" ; then
4571 cc_string
="GCC `${CC} --version | sed q`"
4576 cat >>confdefs.h
<<_ACEOF
4577 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4583 # Set up TAS assembly code if needed; the template file has now had its
4584 # chance to request this.
4586 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4589 if test "$need_tas" = yes ; then
4598 # Automatic dependency tracking
4601 pgac_args
="$pgac_args enable_depend"
4603 # Check whether --enable-depend was given.
4604 if test "${enable_depend+set}" = set; then
4605 enableval
=$enable_depend;
4614 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4615 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4616 { (exit 1); exit 1; }; }
4630 # Enable assert checks
4633 pgac_args
="$pgac_args enable_cassert"
4635 # Check whether --enable-cassert was given.
4636 if test "${enable_cassert+set}" = set; then
4637 enableval
=$enable_cassert;
4641 cat >>confdefs.h
<<\_ACEOF
4642 #define USE_ASSERT_CHECKING 1
4650 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4651 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4652 { (exit 1); exit 1; }; }
4665 # Include directories
4668 IFS
="${IFS}${PATH_SEPARATOR}"
4669 # SRCH_INC comes from the template file
4670 for dir
in $with_includes $SRCH_INC; do
4671 if test -d "$dir"; then
4672 INCLUDES
="$INCLUDES -I$dir"
4674 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4675 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4683 # Library directories
4686 IFS
="${IFS}${PATH_SEPARATOR}"
4687 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4688 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4689 if test -d "$dir"; then
4690 LIBDIRS
="$LIBDIRS -L$dir"
4692 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4693 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4699 # Enable thread-safe client libraries
4701 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4702 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4703 if test "$PORTNAME" != "win32"; then
4705 pgac_args
="$pgac_args enable_thread_safety"
4707 # Check whether --enable-thread-safety was given.
4708 if test "${enable_thread_safety+set}" = set; then
4709 enableval
=$enable_thread_safety;
4718 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4719 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4720 { (exit 1); exit 1; }; }
4725 enable_thread_safety
=no
4731 # Win32 should always use threads
4733 pgac_args
="$pgac_args enable_thread_safety"
4735 # Check whether --enable-thread-safety was given.
4736 if test "${enable_thread_safety+set}" = set; then
4737 enableval
=$enable_thread_safety;
4746 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4747 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4748 { (exit 1); exit 1; }; }
4753 enable_thread_safety
=yes
4761 pgac_args
="$pgac_args enable_thread_safety_force"
4763 # Check whether --enable-thread-safety-force was given.
4764 if test "${enable_thread_safety_force+set}" = set; then
4765 enableval
=$enable_thread_safety_force;
4774 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4775 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4776 { (exit 1); exit 1; }; }
4781 enable_thread_safety_force
=no
4786 if test "$enable_thread_safety" = yes -o \
4787 "$enable_thread_safety_force" = yes; then
4788 enable_thread_safety
="yes" # for 'force'
4790 cat >>confdefs.h
<<\_ACEOF
4791 #define ENABLE_THREAD_SAFETY 1
4795 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4796 echo "${ECHO_T}$enable_thread_safety" >&6; }
4800 # Optionally build Tcl modules (PL/Tcl)
4802 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4803 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4805 pgac_args
="$pgac_args with_tcl"
4808 # Check whether --with-tcl was given.
4809 if test "${with_tcl+set}" = set; then
4819 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4820 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4821 { (exit 1); exit 1; }; }
4831 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4832 echo "${ECHO_T}$with_tcl" >&6; }
4835 # We see if the path to the Tcl/Tk configuration scripts is specified.
4836 # This will override the use of tclsh to find the paths to search.
4839 pgac_args
="$pgac_args with_tclconfig"
4842 # Check whether --with-tclconfig was given.
4843 if test "${with_tclconfig+set}" = set; then
4844 withval
=$with_tclconfig;
4847 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4848 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4849 { (exit 1); exit 1; }; }
4852 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4853 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4854 { (exit 1); exit 1; }; }
4866 # Optionally build Perl modules (PL/Perl)
4868 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4869 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4871 pgac_args
="$pgac_args with_perl"
4874 # Check whether --with-perl was given.
4875 if test "${with_perl+set}" = set; then
4885 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4886 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4887 { (exit 1); exit 1; }; }
4897 { echo "$as_me:$LINENO: result: $with_perl" >&5
4898 echo "${ECHO_T}$with_perl" >&6; }
4902 # Optionally build Python modules (PL/Python)
4904 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4905 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4907 pgac_args
="$pgac_args with_python"
4910 # Check whether --with-python was given.
4911 if test "${with_python+set}" = set; then
4912 withval
=$with_python;
4921 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4922 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4923 { (exit 1); exit 1; }; }
4933 { echo "$as_me:$LINENO: result: $with_python" >&5
4934 echo "${ECHO_T}$with_python" >&6; }
4940 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4941 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4943 pgac_args
="$pgac_args with_gssapi"
4946 # Check whether --with-gssapi was given.
4947 if test "${with_gssapi+set}" = set; then
4948 withval
=$with_gssapi;
4953 cat >>confdefs.h
<<\_ACEOF
4954 #define ENABLE_GSS 1
4957 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4964 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4965 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4966 { (exit 1); exit 1; }; }
4976 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4977 echo "${ECHO_T}$with_gssapi" >&6; }
4983 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4984 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4986 pgac_args
="$pgac_args with_krb5"
4989 # Check whether --with-krb5 was given.
4990 if test "${with_krb5+set}" = set; then
4996 cat >>confdefs.h
<<\_ACEOF
5000 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5007 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5008 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5009 { (exit 1); exit 1; }; }
5019 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5020 echo "${ECHO_T}$with_krb5" >&6; }
5028 # Kerberos configuration parameters
5031 pgac_args
="$pgac_args with_krb_srvnam"
5034 # Check whether --with-krb-srvnam was given.
5035 if test "${with_krb_srvnam+set}" = set; then
5036 withval
=$with_krb_srvnam;
5039 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5040 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5041 { (exit 1); exit 1; }; }
5044 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5045 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5046 { (exit 1); exit 1; }; }
5054 with_krb_srvnam
="postgres"
5059 cat >>confdefs.h
<<_ACEOF
5060 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5068 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5069 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5071 pgac_args
="$pgac_args with_pam"
5074 # Check whether --with-pam was given.
5075 if test "${with_pam+set}" = set; then
5080 cat >>confdefs.h
<<\_ACEOF
5089 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5090 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5091 { (exit 1); exit 1; }; }
5101 { echo "$as_me:$LINENO: result: $with_pam" >&5
5102 echo "${ECHO_T}$with_pam" >&6; }
5109 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5110 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5112 pgac_args
="$pgac_args with_ldap"
5115 # Check whether --with-ldap was given.
5116 if test "${with_ldap+set}" = set; then
5121 cat >>confdefs.h
<<\_ACEOF
5130 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5131 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5132 { (exit 1); exit 1; }; }
5142 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5143 echo "${ECHO_T}$with_ldap" >&6; }
5150 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5151 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5153 pgac_args
="$pgac_args with_bonjour"
5156 # Check whether --with-bonjour was given.
5157 if test "${with_bonjour+set}" = set; then
5158 withval
=$with_bonjour;
5162 cat >>confdefs.h
<<\_ACEOF
5163 #define USE_BONJOUR 1
5171 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5172 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5173 { (exit 1); exit 1; }; }
5183 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5184 echo "${ECHO_T}$with_bonjour" >&6; }
5191 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5192 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5194 pgac_args
="$pgac_args with_openssl"
5197 # Check whether --with-openssl was given.
5198 if test "${with_openssl+set}" = set; then
5199 withval
=$with_openssl;
5203 cat >>confdefs.h
<<\_ACEOF
5212 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5213 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5214 { (exit 1); exit 1; }; }
5224 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5225 echo "${ECHO_T}$with_openssl" >&6; }
5233 pgac_args
="$pgac_args with_readline"
5236 # Check whether --with-readline was given.
5237 if test "${with_readline+set}" = set; then
5238 withval
=$with_readline;
5247 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5248 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5249 { (exit 1); exit 1; }; }
5259 # readline on MinGW has problems with backslashes in psql and other bugs.
5260 # This is particularly a problem with non-US code pages.
5261 # Therefore disable its use until we understand the cause. 2004-07-20
5262 if test "$PORTNAME" = "win32"; then
5263 if test "$with_readline" = yes; then
5264 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5265 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5275 pgac_args
="$pgac_args with_libedit_preferred"
5278 # Check whether --with-libedit-preferred was given.
5279 if test "${with_libedit_preferred+set}" = set; then
5280 withval
=$with_libedit_preferred;
5289 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5290 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5291 { (exit 1); exit 1; }; }
5296 with_libedit_preferred
=no
5307 pgac_args
="$pgac_args with_ossp_uuid"
5310 # Check whether --with-ossp-uuid was given.
5311 if test "${with_ossp_uuid+set}" = set; then
5312 withval
=$with_ossp_uuid;
5321 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5322 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5323 { (exit 1); exit 1; }; }
5340 pgac_args
="$pgac_args with_libxml"
5343 # Check whether --with-libxml was given.
5344 if test "${with_libxml+set}" = set; then
5345 withval
=$with_libxml;
5349 cat >>confdefs.h
<<\_ACEOF
5350 #define USE_LIBXML 1
5358 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5359 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5360 { (exit 1); exit 1; }; }
5371 if test "$with_libxml" = yes ; then
5372 for ac_prog
in xml2-config
5374 # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy
$ac_prog; ac_word
=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 if test -n "$XML2_CONFIG"; then
5382 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir
=.
5389 for ac_exec_ext
in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5402 if test -n "$XML2_CONFIG"; then
5403 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5404 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5406 { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5411 test -n "$XML2_CONFIG" && break
5414 if test -n "$XML2_CONFIG"; then
5415 for pgac_option
in `$XML2_CONFIG --cflags`; do
5416 case $pgac_option in
5417 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5420 for pgac_option
in `$XML2_CONFIG --libs`; do
5421 case $pgac_option in
5422 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5434 pgac_args
="$pgac_args with_libxslt"
5437 # Check whether --with-libxslt was given.
5438 if test "${with_libxslt+set}" = set; then
5439 withval
=$with_libxslt;
5443 cat >>confdefs.h
<<\_ACEOF
5444 #define USE_LIBXSLT 1
5452 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5453 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5454 { (exit 1); exit 1; }; }
5472 pgac_args
="$pgac_args with_system_tzdata"
5475 # Check whether --with-system-tzdata was given.
5476 if test "${with_system_tzdata+set}" = set; then
5477 withval
=$with_system_tzdata;
5480 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5481 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5482 { (exit 1); exit 1; }; }
5485 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5486 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5487 { (exit 1); exit 1; }; }
5503 pgac_args
="$pgac_args with_zlib"
5506 # Check whether --with-zlib was given.
5507 if test "${with_zlib+set}" = set; then
5517 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5518 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5519 { (exit 1); exit 1; }; }
5535 # Assume system is ELF if it predefines __ELF__ as 1,
5536 # otherwise believe host_os based default.
5538 freebsd1
*|freebsd2
*) elf
=no
;;
5539 freebsd3
*|freebsd4
*) elf
=yes;;
5543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5545 if test "${ac_cv_path_GREP+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 # Extract the first word of "grep ggrep" to use in msg output
5549 if test -z "$GREP"; then
5550 set dummy
grep ggrep
; ac_prog_name
=$2
5551 if test "${ac_cv_path_GREP+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 ac_path_GREP_found
=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5557 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5560 test -z "$as_dir" && as_dir
=.
5561 for ac_prog
in grep ggrep
; do
5562 for ac_exec_ext
in '' $ac_executable_extensions; do
5563 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5564 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5565 # Check for GNU ac_path_GREP and select it if it is found.
5566 # Check for GNU $ac_path_GREP
5567 case `"$ac_path_GREP" --version 2>&1` in
5569 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 echo 'GREP' >> "conftest.nl"
5579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5580 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5581 ac_count
=`expr $ac_count + 1`
5582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_GREP
="$ac_path_GREP"
5585 ac_path_GREP_max
=$ac_count
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5590 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5594 $ac_path_GREP_found && break 3
5604 GREP
="$ac_cv_path_GREP"
5605 if test -z "$GREP"; then
5606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608 { (exit 1); exit 1; }; }
5612 ac_cv_path_GREP
=$GREP
5617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5619 GREP
="$ac_cv_path_GREP"
5622 { echo "$as_me:$LINENO: checking for egrep" >&5
5623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5624 if test "${ac_cv_path_EGREP+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5628 then ac_cv_path_EGREP
="$GREP -E"
5630 # Extract the first word of "egrep" to use in msg output
5631 if test -z "$EGREP"; then
5632 set dummy
egrep; ac_prog_name
=$2
5633 if test "${ac_cv_path_EGREP+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 ac_path_EGREP_found
=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5639 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5642 test -z "$as_dir" && as_dir
=.
5643 for ac_prog
in egrep; do
5644 for ac_exec_ext
in '' $ac_executable_extensions; do
5645 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5647 # Check for GNU ac_path_EGREP and select it if it is found.
5648 # Check for GNU $ac_path_EGREP
5649 case `"$ac_path_EGREP" --version 2>&1` in
5651 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5654 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 echo 'EGREP' >> "conftest.nl"
5661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5662 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5663 ac_count
=`expr $ac_count + 1`
5664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_EGREP
="$ac_path_EGREP"
5667 ac_path_EGREP_max
=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5672 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5676 $ac_path_EGREP_found && break 3
5686 EGREP
="$ac_cv_path_EGREP"
5687 if test -z "$EGREP"; then
5688 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5690 { (exit 1); exit 1; }; }
5694 ac_cv_path_EGREP
=$EGREP
5700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5702 EGREP
="$ac_cv_path_EGREP"
5705 cat >conftest.
$ac_ext <<_ACEOF
5708 cat confdefs.h
>>conftest.
$ac_ext
5709 cat >>conftest.
$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717 $EGREP "yes" >/dev
/null
2>&1; then
5720 if test "X$elf" = "Xyes" ; then
5734 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5735 LDFLAGS
="$LDFLAGS $LIBDIRS"
5740 # Check whether --with-gnu-ld was given.
5741 if test "${with_gnu_ld+set}" = set; then
5742 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5748 if test "$GCC" = yes; then
5749 # Check if gcc -print-prog-name=ld gives a path.
5750 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5751 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5754 # gcc leaves a trailing carriage return which upsets mingw
5755 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5757 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5760 # Accept absolute paths.
5761 [\\/]* |
[A-Za-z
]:[\\/]*)
5762 re_direlt
='/[^/][^/]*/\.\./'
5763 # Canonicalize the path of ld
5764 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5765 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5766 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5768 test -z "$LD" && LD
="$ac_prog"
5771 # If it fails, then pretend we aren't using GCC.
5775 # If it is relative, then search for the first ld in PATH.
5779 elif test "$with_gnu_ld" = yes; then
5780 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5783 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5786 if test "${ac_cv_path_LD+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 if test -z "$LD"; then
5790 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5791 for ac_dir
in $PATH; do
5792 test -z "$ac_dir" && ac_dir
=.
5793 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5794 ac_cv_path_LD
="$ac_dir/$ac_prog"
5795 # Check to see if the program is GNU ld. I'd rather use --version,
5796 # but apparently some GNU ld's only accept -v.
5797 # Break only if it was the GNU/non-GNU ld that we prefer.
5798 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5799 test "$with_gnu_ld" != no
&& break
5801 test "$with_gnu_ld" != yes && break
5807 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5812 if test -n "$LD"; then
5813 { echo "$as_me:$LINENO: result: $LD" >&5
5814 echo "${ECHO_T}$LD" >&6; }
5816 { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5821 { (exit 1); exit 1; }; }
5822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5824 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5828 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5829 ac_cv_prog_gnu_ld
=yes
5831 ac_cv_prog_gnu_ld
=no
5834 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5835 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld
=$ac_cv_prog_gnu_ld
5841 case $host_os in sysv5
*)
5842 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5843 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5844 if test "${pgac_cv_prog_ld_R+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5849 cat >conftest.
$ac_ext <<_ACEOF
5852 cat confdefs.h
>>conftest.
$ac_ext
5853 cat >>conftest.
$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5864 rm -f conftest.
$ac_objext conftest
$ac_exeext
5865 if { (ac_try
="$ac_link"
5867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_link") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1 >conftest.err
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest$ac_exeext &&
5881 $as_test_x conftest$ac_exeext; then
5882 pgac_cv_prog_ld_R=yes
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 pgac_cv_prog_ld_R=no
5890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5891 conftest$ac_exeext conftest.$ac_ext
5892 LDFLAGS=$pgac_save_LDFLAGS
5895 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5896 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5897 ld_R_works=$pgac_cv_prog_ld_R
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test -n "$RANLIB"; then
5909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6; }
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940 ac_ct_RANLIB=$RANLIB
5941 # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 if test -n "$ac_ct_RANLIB"; then
5949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_RANLIB="ranlib"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5973 { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5977 if test "x$ac_ct_RANLIB" = x; then
5980 case $cross_compiling:$ac_tool_warned in
5982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet. If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5990 RANLIB=$ac_ct_RANLIB
5993 RANLIB="$ac_cv_prog_RANLIB"
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 if test -n "$STRIP"; then
6006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027 { echo "$as_me:$LINENO: result: $STRIP" >&5
6028 echo "${ECHO_T}$STRIP" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6036 if test -z "$ac_cv_prog_STRIP"; then
6038 # Extract the first word of "strip", so it can be a program name with args.
6039 set dummy strip; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 if test -n "$ac_ct_STRIP"; then
6046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_STRIP="strip"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066 if test -n "$ac_ct_STRIP"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6068 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6074 if test "x$ac_ct_STRIP" = x; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet. If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6090 STRIP="$ac_cv_prog_STRIP"
6094 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6095 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6096 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6097 STRIP_STATIC_LIB="$STRIP -x"
6098 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6099 { echo "$as_me:$LINENO: result: yes" >&5
6100 echo "${ECHO_T}yes" >&6; }
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6111 # Extract the first word of "tar", so it can be a program name with args.
6112 set dummy tar; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_TAR+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 if test -n "$TAR"; then
6143 { echo "$as_me:$LINENO: result: $TAR" >&5
6144 echo "${ECHO_T}$TAR" >&6; }
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6151 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6152 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6154 if test "$LN_S" = "ln -s"; then
6155 { echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6; }
6158 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6159 echo "${ECHO_T}no, using $LN_S" >&6; }
6162 for ac_prog in gawk mawk nawk awk
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; 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_AWK+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 if test -n "$AWK"; then
6172 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 if test -n "$AWK"; then
6193 { echo "$as_me:$LINENO: result: $AWK" >&5
6194 echo "${ECHO_T}$AWK" >&6; }
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6201 test -n "$AWK" && break
6205 # Let the user override the search
6206 if test -z "$BISON"; then
6207 for ac_prog in bison
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_BISON+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 if test -n "$BISON"; then
6217 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_BISON="$ac_prog"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 BISON=$ac_cv_prog_BISON
6237 if test -n "$BISON"; then
6238 { echo "$as_me:$LINENO: result: $BISON" >&5
6239 echo "${ECHO_T}$BISON" >&6; }
6241 { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6246 test -n "$BISON" && break
6251 if test "$BISON"; then
6252 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6253 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6254 echo "$as_me: using $pgac_bison_version" >&6;}
6255 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6257 { echo "$as_me:$LINENO: WARNING:
6258 *** The installed version of Bison is too old to use with PostgreSQL.
6259 *** Bison version 1.875 or later is required." >&5
6260 echo "$as_me: WARNING:
6261 *** The installed version of Bison is too old to use with PostgreSQL.
6262 *** Bison version 1.875 or later is required." >&2;}
6267 if test -z "$BISON"; then
6268 { echo "$as_me:$LINENO: WARNING:
6269 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6270 *** change any of the parser definition files. You can obtain Bison from
6271 *** a GNU mirror site. (If you are using the official distribution of
6272 *** PostgreSQL then you do not need to worry about this, because the Bison
6273 *** output is pre-generated.)" >&5
6274 echo "$as_me: WARNING:
6275 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6276 *** change any of the parser definition files. You can obtain Bison from
6277 *** a GNU mirror site. (If you are using the official distribution of
6278 *** PostgreSQL then you do not need to worry about this, because the Bison
6279 *** output is pre-generated.)" >&2;}
6281 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6284 { echo "$as_me:$LINENO: checking for flex" >&5
6285 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6286 if test "${pgac_cv_path_flex+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 # Let the user override the test
6290 if test -n "$FLEX"; then
6291 pgac_cv_path_flex=$FLEX
6295 for pgac_dir in $PATH; do
6297 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6300 for pgac_prog in flex lex; do
6301 pgac_candidate="$pgac_dir/$pgac_prog"
6302 if test -f "$pgac_candidate" \
6303 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6305 echo '%%' > conftest.l
6306 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6307 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6308 pgac_broken_flex=$pgac_candidate
6312 pgac_cv_path_flex=$pgac_candidate
6318 rm -f conftest.l lex.yy.c
6319 : ${pgac_cv_path_flex=no}
6323 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6324 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6325 if test x"$pgac_cv_path_flex" = x"no"; then
6326 if test -n "$pgac_broken_flex"; then
6327 { echo "$as_me:$LINENO: WARNING:
6328 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6329 *** should get version 2.5.4 or later." >&5
6330 echo "$as_me: WARNING:
6331 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6332 *** should get version 2.5.4 or later." >&2;}
6335 { echo "$as_me:$LINENO: WARNING:
6336 *** Without Flex you will not be able to build PostgreSQL from CVS or
6337 *** change any of the scanner definition files. You can obtain Flex from
6338 *** a GNU mirror site. (If you are using the official distribution of
6339 *** PostgreSQL then you do not need to worry about this because the Flex
6340 *** output is pre-generated.)" >&5
6341 echo "$as_me: WARNING:
6342 *** Without Flex you will not be able to build PostgreSQL from CVS or
6343 *** change any of the scanner definition files. You can obtain Flex from
6344 *** a GNU mirror site. (If you are using the official distribution of
6345 *** PostgreSQL then you do not need to worry about this because the Flex
6346 *** output is pre-generated.)" >&2;}
6350 FLEX=$pgac_cv_path_flex
6351 pgac_flex_version=`$FLEX -V 2>/dev
/null
`
6352 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6353 echo "$as_me: using $pgac_flex_version" >&6;}
6360 # Extract the first word of "perl", so it can be a program name with args.
6361 set dummy perl; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_PERL+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 PERL=$ac_cv_path_PERL
6391 if test -n "$PERL"; then
6392 { echo "$as_me:$LINENO: result: $PERL" >&5
6393 echo "${ECHO_T}$PERL" >&6; }
6395 { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6400 if test "$with_perl" = yes; then
6402 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6403 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6404 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6405 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6406 echo "${ECHO_T}$perl_archlibexp" >&6; }
6407 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6408 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6409 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6410 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6411 echo "${ECHO_T}$perl_privlibexp" >&6; }
6412 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6413 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6414 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6415 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6416 echo "${ECHO_T}$perl_useshrplib" >&6; }
6418 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6419 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6420 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6421 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6422 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed "s/^X//;s%$pgac_tmp2%%"`
6423 if test -z "$perl_embed_ldflags" ; then
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6427 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6429 echo "$as_me: error: could not determine flags for linking embedded Perl.
6430 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6432 { (exit 1); exit 1; }; }
6434 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6435 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6440 if test "$with_python" = yes; then
6441 # Extract the first word of "python", so it can be a program name with args.
6442 set dummy python; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_path_PYTHON+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 PYTHON=$ac_cv_path_PYTHON
6472 if test -n "$PYTHON"; then
6473 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6474 echo "${ECHO_T}$PYTHON" >&6; }
6476 { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6481 if test x"$PYTHON" = x""; then
6482 { { echo "$as_me:$LINENO: error: Python not found" >&5
6483 echo "$as_me: error: Python not found" >&2;}
6484 { (exit 1); exit 1; }; }
6488 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6489 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6490 if "${PYTHON}" 2>&- -c 'import distutils'
6492 { echo "$as_me:$LINENO: result: yes" >&5
6493 echo "${ECHO_T}yes" >&6; }
6495 { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6497 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6498 echo "$as_me: error: distutils module not found" >&2;}
6499 { (exit 1); exit 1; }; }
6501 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6502 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6503 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6504 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')"`
6505 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6507 # This should be enough of a message.
6508 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6509 echo "${ECHO_T}$python_configdir" >&6; }
6512 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6513 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6515 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6516 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6517 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6518 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
6520 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6522 # New way: use the official shared library
6523 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
6524 python_libspec="-L${python_libdir} -l${ldlibrary}"
6526 # Old way: use libpython from python_configdir
6527 python_libdir="${python_configdir}"
6528 python_libspec="-L${python_libdir} -lpython${python_version}"
6531 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6533 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6534 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6537 # threaded python is not supported on bsd's
6538 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6539 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6540 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6541 if test "$pythreads" = "1"; then
6542 { echo "$as_me:$LINENO: result: yes" >&5
6543 echo "${ECHO_T}yes" >&6; }
6546 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6547 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6548 { (exit 1); exit 1; }; }
6552 { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6559 # Supply a numeric version string for use by 3rd party add-ons
6560 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6561 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
6563 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6565 cat >>confdefs.h <<_ACEOF
6566 #define PG_VERSION_NUM $PG_VERSION_NUM
6573 ## Most libraries are included only if they demonstrably provide a function
6574 ## we need, but libm is an exception: always include it, because there are
6575 ## too many compilers that play cute optimization games that will break
6576 ## probes for standard functions such as pow().
6580 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6581 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6582 if test "${ac_cv_lib_m_main+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 ac_check_lib_save_LIBS=$LIBS
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6607 *) ac_try_echo
=$ac_try;;
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_link") 2>conftest.er1
6612 grep -v '^ *+' conftest.er1
>conftest.err
6614 cat conftest.err
>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest
$ac_exeext &&
6620 $as_test_x conftest
$ac_exeext; then
6621 ac_cv_lib_m_main
=yes
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.
$ac_ext >&5
6629 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6630 conftest
$ac_exeext conftest.
$ac_ext
6631 LIBS
=$ac_check_lib_save_LIBS
6633 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6634 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6635 if test $ac_cv_lib_m_main = yes; then
6636 cat >>confdefs.h
<<_ACEOF
6644 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6645 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6646 if test "${ac_cv_search_setproctitle+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 ac_func_search_save_LIBS
=$LIBS
6650 cat >conftest.
$ac_ext <<_ACEOF
6653 cat confdefs.h
>>conftest.
$ac_ext
6654 cat >>conftest.
$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6657 /* Override any GCC internal prototype to avoid an error.
6658 Use char because int might match the return type of a GCC
6659 builtin and then its argument prototype would still apply. */
6663 char setproctitle ();
6667 return setproctitle ();
6672 for ac_lib
in '' util
; do
6673 if test -z "$ac_lib"; then
6674 ac_res
="none required"
6677 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6679 rm -f conftest.
$ac_objext conftest
$ac_exeext
6680 if { (ac_try
="$ac_link"
6682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686 (eval "$ac_link") 2>conftest.er1
6688 grep -v '^ *+' conftest.er1 >conftest.err
6690 cat conftest.err >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } && {
6693 test -z "$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6695 } && test -s conftest$ac_exeext &&
6696 $as_test_x conftest$ac_exeext; then
6697 ac_cv_search_setproctitle=$ac_res
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6707 if test "${ac_cv_search_setproctitle+set}" = set; then
6711 if test "${ac_cv_search_setproctitle+set}" = set; then
6714 ac_cv_search_setproctitle=no
6717 LIBS=$ac_func_search_save_LIBS
6719 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6720 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6721 ac_res=$ac_cv_search_setproctitle
6722 if test "$ac_res" != no; then
6723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6727 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6728 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6729 if test "${ac_cv_search_dlopen+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_func_search_save_LIBS=$LIBS
6733 cat >conftest.$ac_ext <<_ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 /* Override any GCC internal prototype to avoid an error.
6741 Use char because int might match the return type of a GCC
6742 builtin and then its argument prototype would still apply. */
6755 for ac_lib in '' dl; do
6756 if test -z "$ac_lib"; then
6757 ac_res="none required"
6760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (ac_try="$ac_link"
6765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6766 *) ac_try_echo
=$ac_try;;
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_link") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1
>conftest.err
6773 cat conftest.err
>&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest
$ac_exeext &&
6779 $as_test_x conftest
$ac_exeext; then
6780 ac_cv_search_dlopen
=$ac_res
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.
$ac_ext >&5
6788 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6790 if test "${ac_cv_search_dlopen+set}" = set; then
6794 if test "${ac_cv_search_dlopen+set}" = set; then
6797 ac_cv_search_dlopen
=no
6800 LIBS
=$ac_func_search_save_LIBS
6802 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6803 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6804 ac_res
=$ac_cv_search_dlopen
6805 if test "$ac_res" != no
; then
6806 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6810 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6811 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6812 if test "${ac_cv_search_socket+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_func_search_save_LIBS
=$LIBS
6816 cat >conftest.
$ac_ext <<_ACEOF
6819 cat confdefs.h
>>conftest.
$ac_ext
6820 cat >>conftest.
$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6823 /* Override any GCC internal prototype to avoid an error.
6824 Use char because int might match the return type of a GCC
6825 builtin and then its argument prototype would still apply. */
6838 for ac_lib
in '' socket wsock32
; do
6839 if test -z "$ac_lib"; then
6840 ac_res
="none required"
6843 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6845 rm -f conftest.
$ac_objext conftest
$ac_exeext
6846 if { (ac_try
="$ac_link"
6848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_link") 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest$ac_exeext &&
6862 $as_test_x conftest$ac_exeext; then
6863 ac_cv_search_socket=$ac_res
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6873 if test "${ac_cv_search_socket+set}" = set; then
6877 if test "${ac_cv_search_socket+set}" = set; then
6880 ac_cv_search_socket=no
6883 LIBS=$ac_func_search_save_LIBS
6885 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6886 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6887 ac_res=$ac_cv_search_socket
6888 if test "$ac_res" != no; then
6889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6893 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6894 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6895 if test "${ac_cv_search_shl_load+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 ac_func_search_save_LIBS=$LIBS
6899 cat >conftest.$ac_ext <<_ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6906 /* Override any GCC internal prototype to avoid an error.
6907 Use char because int might match the return type of a GCC
6908 builtin and then its argument prototype would still apply. */
6921 for ac_lib in '' dld; do
6922 if test -z "$ac_lib"; then
6923 ac_res="none required"
6926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6928 rm -f conftest.$ac_objext conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6932 *) ac_try_echo
=$ac_try;;
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>conftest.er1
6937 grep -v '^ *+' conftest.er1
>conftest.err
6939 cat conftest.err
>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest
$ac_exeext &&
6945 $as_test_x conftest
$ac_exeext; then
6946 ac_cv_search_shl_load
=$ac_res
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.
$ac_ext >&5
6954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6956 if test "${ac_cv_search_shl_load+set}" = set; then
6960 if test "${ac_cv_search_shl_load+set}" = set; then
6963 ac_cv_search_shl_load
=no
6966 LIBS
=$ac_func_search_save_LIBS
6968 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6969 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6970 ac_res
=$ac_cv_search_shl_load
6971 if test "$ac_res" != no
; then
6972 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6976 # We only use libld in port/dynloader/aix.c
6979 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6980 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6981 if test "${ac_cv_search_ldopen+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 ac_func_search_save_LIBS
=$LIBS
6985 cat >conftest.
$ac_ext <<_ACEOF
6988 cat confdefs.h
>>conftest.
$ac_ext
6989 cat >>conftest.
$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6992 /* Override any GCC internal prototype to avoid an error.
6993 Use char because int might match the return type of a GCC
6994 builtin and then its argument prototype would still apply. */
7007 for ac_lib
in '' ld
; do
7008 if test -z "$ac_lib"; then
7009 ac_res
="none required"
7012 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7014 rm -f conftest.
$ac_objext conftest
$ac_exeext
7015 if { (ac_try
="$ac_link"
7017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_link") 2>conftest.er1
7023 grep -v '^ *+' conftest.er1 >conftest.err
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest$ac_exeext &&
7031 $as_test_x conftest$ac_exeext; then
7032 ac_cv_search_ldopen=$ac_res
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7042 if test "${ac_cv_search_ldopen+set}" = set; then
7046 if test "${ac_cv_search_ldopen+set}" = set; then
7049 ac_cv_search_ldopen=no
7052 LIBS=$ac_func_search_save_LIBS
7054 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7055 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7056 ac_res=$ac_cv_search_ldopen
7057 if test "$ac_res" != no; then
7058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7064 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7065 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7066 if test "${ac_cv_search_getopt_long+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 ac_func_search_save_LIBS=$LIBS
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7077 /* Override any GCC internal prototype to avoid an error.
7078 Use char because int might match the return type of a GCC
7079 builtin and then its argument prototype would still apply. */
7083 char getopt_long ();
7087 return getopt_long ();
7092 for ac_lib in '' getopt gnugetopt; do
7093 if test -z "$ac_lib"; then
7094 ac_res="none required"
7097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7103 *) ac_try_echo
=$ac_try;;
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_link") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1
>conftest.err
7110 cat conftest.err
>&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest
$ac_exeext &&
7116 $as_test_x conftest
$ac_exeext; then
7117 ac_cv_search_getopt_long
=$ac_res
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.
$ac_ext >&5
7125 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7127 if test "${ac_cv_search_getopt_long+set}" = set; then
7131 if test "${ac_cv_search_getopt_long+set}" = set; then
7134 ac_cv_search_getopt_long
=no
7137 LIBS
=$ac_func_search_save_LIBS
7139 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7140 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7141 ac_res
=$ac_cv_search_getopt_long
7142 if test "$ac_res" != no
; then
7143 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7147 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7148 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7149 if test "${ac_cv_search_crypt+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 ac_func_search_save_LIBS
=$LIBS
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7160 /* Override any GCC internal prototype to avoid an error.
7161 Use char because int might match the return type of a GCC
7162 builtin and then its argument prototype would still apply. */
7175 for ac_lib
in '' crypt; do
7176 if test -z "$ac_lib"; then
7177 ac_res
="none required"
7180 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7182 rm -f conftest.
$ac_objext conftest
$ac_exeext
7183 if { (ac_try
="$ac_link"
7185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_link") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1 >conftest.err
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest$ac_exeext &&
7199 $as_test_x conftest$ac_exeext; then
7200 ac_cv_search_crypt=$ac_res
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7210 if test "${ac_cv_search_crypt+set}" = set; then
7214 if test "${ac_cv_search_crypt+set}" = set; then
7217 ac_cv_search_crypt=no
7220 LIBS=$ac_func_search_save_LIBS
7222 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7223 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7224 ac_res=$ac_cv_search_crypt
7225 if test "$ac_res" != no; then
7226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7231 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7232 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7233 if test "${ac_cv_search_fdatasync+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 ac_func_search_save_LIBS=$LIBS
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7244 /* Override any GCC internal prototype to avoid an error.
7245 Use char because int might match the return type of a GCC
7246 builtin and then its argument prototype would still apply. */
7254 return fdatasync ();
7259 for ac_lib in '' rt posix4; do
7260 if test -z "$ac_lib"; then
7261 ac_res="none required"
7264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7266 rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (ac_try="$ac_link"
7269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7270 *) ac_try_echo
=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_link") 2>conftest.er1
7275 grep -v '^ *+' conftest.er1
>conftest.err
7277 cat conftest.err
>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest
$ac_exeext &&
7283 $as_test_x conftest
$ac_exeext; then
7284 ac_cv_search_fdatasync
=$ac_res
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.
$ac_ext >&5
7292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7294 if test "${ac_cv_search_fdatasync+set}" = set; then
7298 if test "${ac_cv_search_fdatasync+set}" = set; then
7301 ac_cv_search_fdatasync
=no
7304 LIBS
=$ac_func_search_save_LIBS
7306 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7307 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7308 ac_res
=$ac_cv_search_fdatasync
7309 if test "$ac_res" != no
; then
7310 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7315 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7316 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7317 if test "${ac_cv_search_shmget+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_func_search_save_LIBS
=$LIBS
7321 cat >conftest.
$ac_ext <<_ACEOF
7324 cat confdefs.h
>>conftest.
$ac_ext
7325 cat >>conftest.
$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7328 /* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7343 for ac_lib
in '' cygipc
; do
7344 if test -z "$ac_lib"; then
7345 ac_res
="none required"
7348 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7350 rm -f conftest.
$ac_objext conftest
$ac_exeext
7351 if { (ac_try
="$ac_link"
7353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_link") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest$ac_exeext &&
7367 $as_test_x conftest$ac_exeext; then
7368 ac_cv_search_shmget=$ac_res
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7378 if test "${ac_cv_search_shmget+set}" = set; then
7382 if test "${ac_cv_search_shmget+set}" = set; then
7385 ac_cv_search_shmget=no
7388 LIBS=$ac_func_search_save_LIBS
7390 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7391 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7392 ac_res=$ac_cv_search_shmget
7393 if test "$ac_res" != no; then
7394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7399 if test "$with_readline" = yes; then
7402 if test "${pgac_cv_check_readline+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 pgac_cv_check_readline=no
7406 pgac_save_LIBS=$LIBS
7407 if test x"$with_libedit_preferred" != x"yes"
7408 then READLINE_ORDER="-lreadline -ledit"
7409 else READLINE_ORDER="-ledit -lreadline"
7411 for pgac_rllib in $READLINE_ORDER ; do
7412 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7413 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7414 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7415 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7416 cat >conftest.$ac_ext <<_ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7423 /* Override any GCC internal prototype to avoid an error.
7424 Use char because int might match the return type of a GCC
7425 builtin and then its argument prototype would still apply. */
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (ac_try="$ac_link"
7441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7442 *) ac_try_echo
=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_link") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1
>conftest.err
7449 cat conftest.err
>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest
$ac_exeext &&
7455 $as_test_x conftest
$ac_exeext; then
7457 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7458 # recognize dependent libraries; assume curses is needed if we didn't
7459 # find any dependency.
7461 netbsd
* | openbsd
* | irix
*)
7462 if test x
"$pgac_lib" = x
"" ; then
7463 pgac_lib
=" -lcurses"
7467 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.
$ac_ext >&5
7477 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7478 conftest
$ac_exeext conftest.
$ac_ext
7480 if test "$pgac_cv_check_readline" != no
; then
7481 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7482 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7489 LIBS
=$pgac_save_LIBS
7493 if test "$pgac_cv_check_readline" != no
; then
7494 LIBS
="$pgac_cv_check_readline $LIBS"
7496 cat >>confdefs.h
<<\_ACEOF
7497 #define HAVE_LIBREADLINE 1
7503 if test x
"$pgac_cv_check_readline" = x
"no"; then
7504 { { echo "$as_me:$LINENO: error: readline library not found
7505 If you have readline already installed, see config.log for details on the
7506 failure. It is possible the compiler isn't looking in the proper directory.
7507 Use --without-readline to disable readline support." >&5
7508 echo "$as_me: error: readline library not found
7509 If you have readline already installed, see config.log for details on the
7510 failure. It is possible the compiler isn't looking in the proper directory.
7511 Use --without-readline to disable readline support." >&2;}
7512 { (exit 1); exit 1; }; }
7516 if test "$with_zlib" = yes; then
7518 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7519 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7520 if test "${ac_cv_lib_z_inflate+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 ac_check_lib_save_LIBS
=$LIBS
7525 cat >conftest.
$ac_ext <<_ACEOF
7528 cat confdefs.h
>>conftest.
$ac_ext
7529 cat >>conftest.
$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7532 /* Override any GCC internal prototype to avoid an error.
7533 Use char because int might match the return type of a GCC
7534 builtin and then its argument prototype would still apply. */
7547 rm -f conftest.
$ac_objext conftest
$ac_exeext
7548 if { (ac_try
="$ac_link"
7550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7551 *) ac_try_echo=$ac_try;;
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554 (eval "$ac_link") 2>conftest.er1
7556 grep -v '^ *+' conftest.er1 >conftest.err
7558 cat conftest.err >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest$ac_exeext &&
7564 $as_test_x conftest$ac_exeext; then
7565 ac_cv_lib_z_inflate=yes
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 ac_cv_lib_z_inflate=no
7573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7574 conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7577 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7578 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7579 if test $ac_cv_lib_z_inflate = yes; then
7580 cat >>confdefs.h <<_ACEOF
7587 { { echo "$as_me:$LINENO: error: zlib library not found
7588 If you have zlib already installed, see config.log for details on the
7589 failure. It is possible the compiler isn't looking in the proper directory.
7590 Use --without-zlib to disable zlib support." >&5
7591 echo "$as_me: error: zlib library not found
7592 If you have zlib already installed, see config.log for details on the
7593 failure. It is possible the compiler isn't looking in the proper directory.
7594 Use --without-zlib to disable zlib support." >&2;}
7595 { (exit 1); exit 1; }; }
7600 if test "$enable_spinlocks" = yes; then
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_SPINLOCKS 1
7607 { echo "$as_me:$LINENO: WARNING:
7608 *** Not using spinlocks will cause poor performance." >&5
7609 echo "$as_me: WARNING:
7610 *** Not using spinlocks will cause poor performance." >&2;}
7613 if test "$with_gssapi" = yes ; then
7614 if test "$PORTNAME" != "win32"; then
7615 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7616 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7617 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 ac_func_search_save_LIBS=$LIBS
7621 cat >conftest.$ac_ext <<_ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7628 /* Override any GCC internal prototype to avoid an error.
7629 Use char because int might match the return type of a GCC
7630 builtin and then its argument prototype would still apply. */
7634 char gss_init_sec_context ();
7638 return gss_init_sec_context ();
7643 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7644 if test -z "$ac_lib"; then
7645 ac_res="none required"
7648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7650 rm -f conftest.$ac_objext conftest$ac_exeext
7651 if { (ac_try="$ac_link"
7653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7654 *) ac_try_echo
=$ac_try;;
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_link") 2>conftest.er1
7659 grep -v '^ *+' conftest.er1
>conftest.err
7661 cat conftest.err
>&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } && {
7664 test -z "$ac_c_werror_flag" ||
7665 test ! -s conftest.err
7666 } && test -s conftest
$ac_exeext &&
7667 $as_test_x conftest
$ac_exeext; then
7668 ac_cv_search_gss_init_sec_context
=$ac_res
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.
$ac_ext >&5
7676 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7678 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7682 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7685 ac_cv_search_gss_init_sec_context
=no
7688 LIBS
=$ac_func_search_save_LIBS
7690 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7691 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7692 ac_res
=$ac_cv_search_gss_init_sec_context
7693 if test "$ac_res" != no
; then
7694 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7697 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7698 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7699 { (exit 1); exit 1; }; }
7703 LIBS
="$LIBS -lgssapi32"
7707 if test "$with_krb5" = yes ; then
7708 if test "$PORTNAME" != "win32"; then
7709 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7710 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7711 if test "${ac_cv_search_com_err+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_func_search_save_LIBS
=$LIBS
7715 cat >conftest.
$ac_ext <<_ACEOF
7718 cat confdefs.h
>>conftest.
$ac_ext
7719 cat >>conftest.
$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7737 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken' com_err
; do
7738 if test -z "$ac_lib"; then
7739 ac_res
="none required"
7742 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7744 rm -f conftest.
$ac_objext conftest
$ac_exeext
7745 if { (ac_try
="$ac_link"
7747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>conftest.er1
7753 grep -v '^ *+' conftest.er1 >conftest.err
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest$ac_exeext &&
7761 $as_test_x conftest$ac_exeext; then
7762 ac_cv_search_com_err=$ac_res
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7772 if test "${ac_cv_search_com_err+set}" = set; then
7776 if test "${ac_cv_search_com_err+set}" = set; then
7779 ac_cv_search_com_err=no
7782 LIBS=$ac_func_search_save_LIBS
7784 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7785 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7786 ac_res=$ac_cv_search_com_err
7787 if test "$ac_res" != no; then
7788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7791 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7792 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7793 { (exit 1); exit 1; }; }
7796 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7797 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7798 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_func_search_save_LIBS=$LIBS
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7809 /* Override any GCC internal prototype to avoid an error.
7810 Use char because int might match the return type of a GCC
7811 builtin and then its argument prototype would still apply. */
7815 char krb5_sendauth ();
7819 return krb5_sendauth ();
7824 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7825 if test -z "$ac_lib"; then
7826 ac_res="none required"
7829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (ac_try="$ac_link"
7834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7835 *) ac_try_echo
=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_link") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1
>conftest.err
7842 cat conftest.err
>&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest
$ac_exeext &&
7848 $as_test_x conftest
$ac_exeext; then
7849 ac_cv_search_krb5_sendauth
=$ac_res
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.
$ac_ext >&5
7857 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7859 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7863 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7866 ac_cv_search_krb5_sendauth
=no
7869 LIBS
=$ac_func_search_save_LIBS
7871 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7872 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7873 ac_res
=$ac_cv_search_krb5_sendauth
7874 if test "$ac_res" != no
; then
7875 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7878 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7879 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7880 { (exit 1); exit 1; }; }
7884 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7885 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7886 if test "${ac_cv_search_com_err+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_func_search_save_LIBS
=$LIBS
7890 cat >conftest.
$ac_ext <<_ACEOF
7893 cat confdefs.h
>>conftest.
$ac_ext
7894 cat >>conftest.
$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7897 /* Override any GCC internal prototype to avoid an error.
7898 Use char because int might match the return type of a GCC
7899 builtin and then its argument prototype would still apply. */
7912 for ac_lib
in '' 'comerr32 -lkrb5_32'; do
7913 if test -z "$ac_lib"; then
7914 ac_res
="none required"
7917 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7919 rm -f conftest.
$ac_objext conftest
$ac_exeext
7920 if { (ac_try
="$ac_link"
7922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext &&
7936 $as_test_x conftest$ac_exeext; then
7937 ac_cv_search_com_err=$ac_res
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7947 if test "${ac_cv_search_com_err+set}" = set; then
7951 if test "${ac_cv_search_com_err+set}" = set; then
7954 ac_cv_search_com_err=no
7957 LIBS=$ac_func_search_save_LIBS
7959 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7960 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7961 ac_res=$ac_cv_search_com_err
7962 if test "$ac_res" != no; then
7963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7966 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7967 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7968 { (exit 1); exit 1; }; }
7974 if test "$with_openssl" = yes ; then
7975 if test "$PORTNAME" != "win32"; then
7977 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7978 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7979 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7982 ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lcrypto $LIBS"
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7991 /* Override any GCC internal prototype to avoid an error.
7992 Use char because int might match the return type of a GCC
7993 builtin and then its argument prototype would still apply. */
7997 char CRYPTO_new_ex_data ();
8001 return CRYPTO_new_ex_data ();
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (ac_try="$ac_link"
8009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8010 *) ac_try_echo
=$ac_try;;
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_link") 2>conftest.er1
8015 grep -v '^ *+' conftest.er1
>conftest.err
8017 cat conftest.err
>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest
$ac_exeext &&
8023 $as_test_x conftest
$ac_exeext; then
8024 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.
$ac_ext >&5
8029 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
8032 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8033 conftest
$ac_exeext conftest.
$ac_ext
8034 LIBS
=$ac_check_lib_save_LIBS
8036 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8037 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8038 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8039 cat >>confdefs.h
<<_ACEOF
8040 #define HAVE_LIBCRYPTO 1
8043 LIBS
="-lcrypto $LIBS"
8046 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8047 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8048 { (exit 1); exit 1; }; }
8052 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8053 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8054 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 ac_check_lib_save_LIBS
=$LIBS
8059 cat >conftest.
$ac_ext <<_ACEOF
8062 cat confdefs.h
>>conftest.
$ac_ext
8063 cat >>conftest.
$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8066 /* Override any GCC internal prototype to avoid an error.
8067 Use char because int might match the return type of a GCC
8068 builtin and then its argument prototype would still apply. */
8072 char SSL_library_init ();
8076 return SSL_library_init ();
8081 rm -f conftest.
$ac_objext conftest
$ac_exeext
8082 if { (ac_try
="$ac_link"
8084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest$ac_exeext &&
8098 $as_test_x conftest$ac_exeext; then
8099 ac_cv_lib_ssl_SSL_library_init=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 ac_cv_lib_ssl_SSL_library_init=no
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8111 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8112 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8113 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8114 cat >>confdefs.h <<_ACEOF
8115 #define HAVE_LIBSSL 1
8121 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8122 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8123 { (exit 1); exit 1; }; }
8128 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8129 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8130 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-leay32 $LIBS"
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8142 /* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8148 char CRYPTO_new_ex_data ();
8152 return CRYPTO_new_ex_data ();
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8161 *) ac_try_echo
=$ac_try;;
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_link") 2>conftest.er1
8166 grep -v '^ *+' conftest.er1
>conftest.err
8168 cat conftest.err
>&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && {
8171 test -z "$ac_c_werror_flag" ||
8172 test ! -s conftest.err
8173 } && test -s conftest
$ac_exeext &&
8174 $as_test_x conftest
$ac_exeext; then
8175 ac_cv_lib_eay32_CRYPTO_new_ex_data
=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.
$ac_ext >&5
8180 ac_cv_lib_eay32_CRYPTO_new_ex_data
=no
8183 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8184 conftest
$ac_exeext conftest.
$ac_ext
8185 LIBS
=$ac_check_lib_save_LIBS
8187 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8188 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8189 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8190 cat >>confdefs.h
<<_ACEOF
8191 #define HAVE_LIBEAY32 1
8194 LIBS
="-leay32 $LIBS"
8197 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8198 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8199 { (exit 1); exit 1; }; }
8203 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8204 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8205 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 ac_check_lib_save_LIBS
=$LIBS
8209 LIBS
="-lssleay32 $LIBS"
8210 cat >conftest.
$ac_ext <<_ACEOF
8213 cat confdefs.h
>>conftest.
$ac_ext
8214 cat >>conftest.
$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8223 char SSL_library_init ();
8227 return SSL_library_init ();
8232 rm -f conftest.
$ac_objext conftest
$ac_exeext
8233 if { (ac_try
="$ac_link"
8235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_link") 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest$ac_exeext &&
8249 $as_test_x conftest$ac_exeext; then
8250 ac_cv_lib_ssleay32_SSL_library_init=yes
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_cv_lib_ssleay32_SSL_library_init=no
8258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8259 conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8262 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8263 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8264 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8265 cat >>confdefs.h <<_ACEOF
8266 #define HAVE_LIBSSLEAY32 1
8269 LIBS="-lssleay32 $LIBS"
8272 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8273 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8274 { (exit 1); exit 1; }; }
8280 if test "$with_pam" = yes ; then
8282 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8283 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8284 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 ac_check_lib_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. */
8306 return pam_start ();
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8315 *) ac_try_echo
=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_link") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1
>conftest.err
8322 cat conftest.err
>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest
$ac_exeext &&
8328 $as_test_x conftest
$ac_exeext; then
8329 ac_cv_lib_pam_pam_start
=yes
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.
$ac_ext >&5
8334 ac_cv_lib_pam_pam_start
=no
8337 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8338 conftest
$ac_exeext conftest.
$ac_ext
8339 LIBS
=$ac_check_lib_save_LIBS
8341 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8342 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8343 if test $ac_cv_lib_pam_pam_start = yes; then
8344 cat >>confdefs.h
<<_ACEOF
8345 #define HAVE_LIBPAM 1
8351 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8352 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8353 { (exit 1); exit 1; }; }
8358 if test "$with_libxml" = yes ; then
8360 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8361 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8362 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 ac_check_lib_save_LIBS
=$LIBS
8367 cat >conftest.
$ac_ext <<_ACEOF
8370 cat confdefs.h
>>conftest.
$ac_ext
8371 cat >>conftest.
$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8374 /* Override any GCC internal prototype to avoid an error.
8375 Use char because int might match the return type of a GCC
8376 builtin and then its argument prototype would still apply. */
8380 char xmlSaveToBuffer ();
8384 return xmlSaveToBuffer ();
8389 rm -f conftest.
$ac_objext conftest
$ac_exeext
8390 if { (ac_try
="$ac_link"
8392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_link") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest$ac_exeext &&
8406 $as_test_x conftest$ac_exeext; then
8407 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_cv_lib_xml2_xmlSaveToBuffer=no
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8419 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8420 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8421 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define HAVE_LIBXML2 1
8429 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8430 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8431 { (exit 1); exit 1; }; }
8436 if test "$with_libxslt" = yes ; then
8438 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8439 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8440 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 ac_check_lib_save_LIBS=$LIBS
8445 cat >conftest.$ac_ext <<_ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8452 /* Override any GCC internal prototype to avoid an error.
8453 Use char because int might match the return type of a GCC
8454 builtin and then its argument prototype would still apply. */
8458 char xsltCleanupGlobals ();
8462 return xsltCleanupGlobals ();
8467 rm -f conftest.$ac_objext conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8471 *) ac_try_echo
=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_link") 2>conftest.er1
8476 grep -v '^ *+' conftest.er1
>conftest.err
8478 cat conftest.err
>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest
$ac_exeext &&
8484 $as_test_x conftest
$ac_exeext; then
8485 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.
$ac_ext >&5
8490 ac_cv_lib_xslt_xsltCleanupGlobals
=no
8493 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8494 conftest
$ac_exeext conftest.
$ac_ext
8495 LIBS
=$ac_check_lib_save_LIBS
8497 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8498 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8499 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8500 cat >>confdefs.h
<<_ACEOF
8501 #define HAVE_LIBXSLT 1
8507 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8508 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8509 { (exit 1); exit 1; }; }
8514 # for contrib/uuid-ossp
8515 if test "$with_ossp_uuid" = yes ; then
8516 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8517 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8518 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_check_lib_save_LIBS
=$LIBS
8522 LIBS
="-lossp-uuid $LIBS"
8523 cat >conftest.
$ac_ext <<_ACEOF
8526 cat confdefs.h
>>conftest.
$ac_ext
8527 cat >>conftest.
$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any GCC internal prototype to avoid an error.
8531 Use char because int might match the return type of a GCC
8532 builtin and then its argument prototype would still apply. */
8536 char uuid_export ();
8540 return uuid_export ();
8545 rm -f conftest.
$ac_objext conftest
$ac_exeext
8546 if { (ac_try
="$ac_link"
8548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_link") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest$ac_exeext &&
8562 $as_test_x conftest$ac_exeext; then
8563 ac_cv_lib_ossp_uuid_uuid_export=yes
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 ac_cv_lib_ossp_uuid_uuid_export=no
8571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572 conftest$ac_exeext conftest.$ac_ext
8573 LIBS=$ac_check_lib_save_LIBS
8575 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8576 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8577 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8578 OSSP_UUID_LIBS="-lossp-uuid"
8580 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8581 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8582 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 ac_check_lib_save_LIBS=$LIBS
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 /* Override any GCC internal prototype to avoid an error.
8595 Use char because int might match the return type of a GCC
8596 builtin and then its argument prototype would still apply. */
8600 char uuid_export ();
8604 return uuid_export ();
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (ac_try="$ac_link"
8612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8613 *) ac_try_echo
=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_link") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1
>conftest.err
8620 cat conftest.err
>&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest
$ac_exeext &&
8626 $as_test_x conftest
$ac_exeext; then
8627 ac_cv_lib_uuid_uuid_export
=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.
$ac_ext >&5
8632 ac_cv_lib_uuid_uuid_export
=no
8635 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8636 conftest
$ac_exeext conftest.
$ac_ext
8637 LIBS
=$ac_check_lib_save_LIBS
8639 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8640 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8641 if test $ac_cv_lib_uuid_uuid_export = yes; then
8642 OSSP_UUID_LIBS
="-luuid"
8644 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8645 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8646 { (exit 1); exit 1; }; }
8659 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8660 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8661 if test "${ac_cv_header_stdc+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.
$ac_ext <<_ACEOF
8667 cat confdefs.h
>>conftest.
$ac_ext
8668 cat >>conftest.
$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8683 rm -f conftest.
$ac_objext
8684 if { (ac_try
="$ac_compile"
8686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_cv_header_stdc=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_cv_header_stdc=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 if test $ac_cv_header_stdc = yes; then
8711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8712 cat >conftest.$ac_ext <<_ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722 $EGREP "memchr" >/dev/null 2>&1; then
8725 ac_cv_header_stdc=no
8731 if test $ac_cv_header_stdc = yes; then
8732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 $EGREP "free" >/dev/null 2>&1; then
8746 ac_cv_header_stdc=no
8752 if test $ac_cv_header_stdc = yes; then
8753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8754 if test "$cross_compiling" = yes; then
8757 cat >conftest.$ac_ext <<_ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8765 #if ((' ' & 0x0FF) == 0x020)
8766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8769 # define ISLOWER(c) \
8770 (('a' <= (c) && (c) <= 'i') \
8771 || ('j' <= (c) && (c) <= 'r') \
8772 || ('s' <= (c) && (c) <= 'z'))
8773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8781 for (i = 0; i < 256; i++)
8782 if (XOR (islower (i), ISLOWER (i))
8783 || toupper (i) != TOUPPER (i))
8788 rm -f 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>&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8799 { (case "(($ac_try" in
8800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_try") 2>&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8810 echo "$as_me: program exited with status $ac_status" >&5
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8815 ac_cv_header_stdc=no
8817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8823 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8824 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8825 if test $ac_cv_header_stdc = yes; then
8827 cat >>confdefs.h <<\_ACEOF
8828 #define STDC_HEADERS 1
8833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8844 inttypes.h stdint.h unistd.h
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8860 #include <$ac_header>
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8866 *) ac_try_echo
=$ac_try;;
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8871 grep -v '^ *+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.
$ac_objext; then
8879 eval "$as_ac_Header=yes"
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.
$ac_ext >&5
8884 eval "$as_ac_Header=no"
8887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8889 ac_res
=`eval echo '${'$as_ac_Header'}'`
8890 { echo "$as_me:$LINENO: result: $ac_res" >&5
8891 echo "${ECHO_T}$ac_res" >&6; }
8892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893 cat >>confdefs.h
<<_ACEOF
8894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8928 for ac_header
in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h
pwd.h sys
/ipc.h sys
/poll.h sys
/pstat.h sys
/resource.h sys
/select.h sys
/sem.h sys
/socket.h sys
/shm.h sys
/tas.h sys
/time.h sys
/un.h termios.h utime.h wchar.h wctype.h kernel
/OS.h kernel
/image.h SupportDefs.h
8930 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8931 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8934 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 ac_res
=`eval echo '${'$as_ac_Header'}'`
8938 { echo "$as_me:$LINENO: result: $ac_res" >&5
8939 echo "${ECHO_T}$ac_res" >&6; }
8941 # Is the header compilable?
8942 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8944 cat >conftest.
$ac_ext <<_ACEOF
8947 cat confdefs.h
>>conftest.
$ac_ext
8948 cat >>conftest.
$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 $ac_includes_default
8951 #include <$ac_header>
8953 rm -f conftest.
$ac_objext
8954 if { (ac_try
="$ac_compile"
8956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8962 grep -v '^ *+' conftest.er1 >conftest.err
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } && {
8967 test -z "$ac_c_werror_flag" ||
8968 test ! -s conftest.err
8969 } && test -s conftest.$ac_objext; then
8970 ac_header_compiler=yes
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8975 ac_header_compiler=no
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8980 echo "${ECHO_T}$ac_header_compiler" >&6; }
8982 # Is the header present?
8983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991 #include <$ac_header>
8993 if { (ac_try="$ac_cpp conftest.$ac_ext"
8995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8996 *) ac_try_echo
=$ac_try;;
8998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9001 grep -v '^ *+' conftest.er1
>conftest.err
9003 cat conftest.err
>&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } >/dev
/null
&& {
9006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9009 ac_header_preproc
=yes
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.
$ac_ext >&5
9014 ac_header_preproc
=no
9017 rm -f conftest.err conftest.
$ac_ext
9018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019 echo "${ECHO_T}$ac_header_preproc" >&6; }
9021 # So? What about this header?
9022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9028 ac_header_preproc
=yes
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9044 ## ---------------------------------------- ##
9045 ## Report this to pgsql-bugs@postgresql.org ##
9046 ## ---------------------------------------- ##
9048 ) |
sed "s/^/$as_me: WARNING: /" >&2
9051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9053 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 eval "$as_ac_Header=\$ac_header_preproc"
9058 ac_res
=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h
<<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9074 # netinet/in.h is included first.
9076 for ac_header
in netinet
/in.h
9078 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9079 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9082 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 ac_res
=`eval echo '${'$as_ac_Header'}'`
9086 { echo "$as_me:$LINENO: result: $ac_res" >&5
9087 echo "${ECHO_T}$ac_res" >&6; }
9089 # Is the header compilable?
9090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9092 cat >conftest.
$ac_ext <<_ACEOF
9095 cat confdefs.h
>>conftest.
$ac_ext
9096 cat >>conftest.
$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9099 #include <$ac_header>
9101 rm -f conftest.
$ac_objext
9102 if { (ac_try
="$ac_compile"
9104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_compile") 2>conftest.er1
9110 grep -v '^ *+' conftest.er1 >conftest.err
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && {
9115 test -z "$ac_c_werror_flag" ||
9116 test ! -s conftest.err
9117 } && test -s conftest.$ac_objext; then
9118 ac_header_compiler=yes
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9123 ac_header_compiler=no
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9128 echo "${ECHO_T}$ac_header_compiler" >&6; }
9130 # Is the header present?
9131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9133 cat >conftest.$ac_ext <<_ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 #include <$ac_header>
9141 if { (ac_try="$ac_cpp conftest.$ac_ext"
9143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9144 *) ac_try_echo
=$ac_try;;
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9149 grep -v '^ *+' conftest.er1
>conftest.err
9151 cat conftest.err
>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } >/dev
/null
&& {
9154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9157 ac_header_preproc
=yes
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.
$ac_ext >&5
9162 ac_header_preproc
=no
9165 rm -f conftest.err conftest.
$ac_ext
9166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9167 echo "${ECHO_T}$ac_header_preproc" >&6; }
9169 # So? What about this header?
9170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9176 ac_header_preproc
=yes
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9192 ## ---------------------------------------- ##
9193 ## Report this to pgsql-bugs@postgresql.org ##
9194 ## ---------------------------------------- ##
9196 ) |
sed "s/^/$as_me: WARNING: /" >&2
9199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9201 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 eval "$as_ac_Header=\$ac_header_preproc"
9206 ac_res
=`eval echo '${'$as_ac_Header'}'`
9207 { echo "$as_me:$LINENO: result: $ac_res" >&5
9208 echo "${ECHO_T}$ac_res" >&6; }
9211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9212 cat >>confdefs.h
<<_ACEOF
9213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9221 for ac_header
in netinet
/tcp.h
9223 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9226 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.
$ac_ext <<_ACEOF
9232 cat confdefs.h
>>conftest.
$ac_ext
9233 cat >>conftest.
$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 $ac_includes_default
9236 #ifdef HAVE_NETINET_IN_H
9237 #include <netinet/in.h>
9241 #include <$ac_header>
9243 rm -f conftest.
$ac_objext
9244 if { (ac_try
="$ac_compile"
9246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_compile") 2>conftest.er1
9252 grep -v '^ *+' conftest.er1 >conftest.err
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && {
9257 test -z "$ac_c_werror_flag" ||
9258 test ! -s conftest.err
9259 } && test -s conftest.$ac_objext; then
9260 eval "$as_ac_Header=yes"
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 eval "$as_ac_Header=no"
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 ac_res=`eval echo '${'$as_ac_Header'}'`
9271 { echo "$as_me:$LINENO: result: $ac_res" >&5
9272 echo "${ECHO_T}$ac_res" >&6; }
9273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9274 cat >>confdefs.h <<_ACEOF
9275 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9283 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9285 for ac_header in readline/readline.h
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 ac_res=`eval echo '${'$as_ac_Header'}'`
9295 { echo "$as_me:$LINENO: result: $ac_res" >&5
9296 echo "${ECHO_T}$ac_res" >&6; }
9298 # Is the header compilable?
9299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 $ac_includes_default
9308 #include <$ac_header>
9310 rm -f conftest.$ac_objext
9311 if { (ac_try="$ac_compile"
9313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9314 *) ac_try_echo
=$ac_try;;
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_compile") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1
>conftest.err
9321 cat conftest.err
>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest.
$ac_objext; then
9327 ac_header_compiler
=yes
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.
$ac_ext >&5
9332 ac_header_compiler
=no
9335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9337 echo "${ECHO_T}$ac_header_compiler" >&6; }
9339 # Is the header present?
9340 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9342 cat >conftest.
$ac_ext <<_ACEOF
9345 cat confdefs.h
>>conftest.
$ac_ext
9346 cat >>conftest.
$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #include <$ac_header>
9350 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } >/dev/null && {
9363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9366 ac_header_preproc=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_header_preproc=no
9374 rm -f conftest.err conftest.$ac_ext
9375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9376 echo "${ECHO_T}$ac_header_preproc" >&6; }
9378 # So? What about this header?
9379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9385 ac_header_preproc=yes
9388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9395 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9401 ## ---------------------------------------- ##
9402 ## Report this to pgsql-bugs@postgresql.org ##
9403 ## ---------------------------------------- ##
9405 ) | sed "s/^/$as_me: WARNING: /" >&2
9408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 eval "$as_ac_Header=\$ac_header_preproc"
9415 ac_res=`eval echo '${'$as_ac_Header'}'`
9416 { echo "$as_me:$LINENO: result: $ac_res" >&5
9417 echo "${ECHO_T}$ac_res" >&6; }
9420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9421 cat >>confdefs.h <<_ACEOF
9422 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9427 for ac_header in readline.h
9429 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 ac_res=`eval echo '${'$as_ac_Header'}'`
9437 { echo "$as_me:$LINENO: result: $ac_res" >&5
9438 echo "${ECHO_T}$ac_res" >&6; }
9440 # Is the header compilable?
9441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9443 cat >conftest.$ac_ext <<_ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 #include <$ac_header>
9452 rm -f conftest.$ac_objext
9453 if { (ac_try="$ac_compile"
9455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9456 *) ac_try_echo
=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_compile") 2>conftest.er1
9461 grep -v '^ *+' conftest.er1
>conftest.err
9463 cat conftest.err
>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } && {
9466 test -z "$ac_c_werror_flag" ||
9467 test ! -s conftest.err
9468 } && test -s conftest.
$ac_objext; then
9469 ac_header_compiler
=yes
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.
$ac_ext >&5
9474 ac_header_compiler
=no
9477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9479 echo "${ECHO_T}$ac_header_compiler" >&6; }
9481 # Is the header present?
9482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9484 cat >conftest.
$ac_ext <<_ACEOF
9487 cat confdefs.h
>>conftest.
$ac_ext
9488 cat >>conftest.
$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 #include <$ac_header>
9492 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } >/dev/null && {
9505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9508 ac_header_preproc=yes
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_header_preproc=no
9516 rm -f conftest.err conftest.$ac_ext
9517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9518 echo "${ECHO_T}$ac_header_preproc" >&6; }
9520 # So? What about this header?
9521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9527 ac_header_preproc=yes
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9543 ## ---------------------------------------- ##
9544 ## Report this to pgsql-bugs@postgresql.org ##
9545 ## ---------------------------------------- ##
9547 ) | sed "s/^/$as_me: WARNING: /" >&2
9550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 eval "$as_ac_Header=\$ac_header_preproc"
9557 ac_res=`eval echo '${'$as_ac_Header'}'`
9558 { echo "$as_me:$LINENO: result: $ac_res" >&5
9559 echo "${ECHO_T}$ac_res" >&6; }
9562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9563 cat >>confdefs.h <<_ACEOF
9564 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9568 { { echo "$as_me:$LINENO: error: readline header not found
9569 If you have readline already installed, see config.log for details on the
9570 failure. It is possible the compiler isn't looking in the proper directory.
9571 Use --without-readline to disable readline support." >&5
9572 echo "$as_me: error: readline header not found
9573 If you have readline already installed, see config.log for details on the
9574 failure. It is possible the compiler isn't looking in the proper directory.
9575 Use --without-readline to disable readline support." >&2;}
9576 { (exit 1); exit 1; }; }
9586 for ac_header in readline/history.h
9588 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 ac_res=`eval echo '${'$as_ac_Header'}'`
9596 { echo "$as_me:$LINENO: result: $ac_res" >&5
9597 echo "${ECHO_T}$ac_res" >&6; }
9599 # Is the header compilable?
9600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9602 cat >conftest.$ac_ext <<_ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 $ac_includes_default
9609 #include <$ac_header>
9611 rm -f conftest.$ac_objext
9612 if { (ac_try="$ac_compile"
9614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9615 *) ac_try_echo
=$ac_try;;
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_compile") 2>conftest.er1
9620 grep -v '^ *+' conftest.er1
>conftest.err
9622 cat conftest.err
>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && {
9625 test -z "$ac_c_werror_flag" ||
9626 test ! -s conftest.err
9627 } && test -s conftest.
$ac_objext; then
9628 ac_header_compiler
=yes
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.
$ac_ext >&5
9633 ac_header_compiler
=no
9636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9638 echo "${ECHO_T}$ac_header_compiler" >&6; }
9640 # Is the header present?
9641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9643 cat >conftest.
$ac_ext <<_ACEOF
9646 cat confdefs.h
>>conftest.
$ac_ext
9647 cat >>conftest.
$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <$ac_header>
9651 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9659 grep -v '^ *+' conftest.er1 >conftest.err
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } >/dev/null && {
9664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9667 ac_header_preproc=yes
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_header_preproc=no
9675 rm -f conftest.err conftest.$ac_ext
9676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9677 echo "${ECHO_T}$ac_header_preproc" >&6; }
9679 # So? What about this header?
9680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9686 ac_header_preproc=yes
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9702 ## ---------------------------------------- ##
9703 ## Report this to pgsql-bugs@postgresql.org ##
9704 ## ---------------------------------------- ##
9706 ) | sed "s/^/$as_me: WARNING: /" >&2
9709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 eval "$as_ac_Header=\$ac_header_preproc"
9716 ac_res=`eval echo '${'$as_ac_Header'}'`
9717 { echo "$as_me:$LINENO: result: $ac_res" >&5
9718 echo "${ECHO_T}$ac_res" >&6; }
9721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9722 cat >>confdefs.h <<_ACEOF
9723 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9728 for ac_header in history.h
9730 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 ac_res=`eval echo '${'$as_ac_Header'}'`
9738 { echo "$as_me:$LINENO: result: $ac_res" >&5
9739 echo "${ECHO_T}$ac_res" >&6; }
9741 # Is the header compilable?
9742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9751 #include <$ac_header>
9753 rm -f conftest.$ac_objext
9754 if { (ac_try="$ac_compile"
9756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9757 *) ac_try_echo
=$ac_try;;
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_compile") 2>conftest.er1
9762 grep -v '^ *+' conftest.er1
>conftest.err
9764 cat conftest.err
>&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest.
$ac_objext; then
9770 ac_header_compiler
=yes
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.
$ac_ext >&5
9775 ac_header_compiler
=no
9778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9779 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9780 echo "${ECHO_T}$ac_header_compiler" >&6; }
9782 # Is the header present?
9783 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9785 cat >conftest.
$ac_ext <<_ACEOF
9788 cat confdefs.h
>>conftest.
$ac_ext
9789 cat >>conftest.
$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 #include <$ac_header>
9793 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9801 grep -v '^ *+' conftest.er1 >conftest.err
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } >/dev/null && {
9806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9809 ac_header_preproc=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 ac_header_preproc=no
9817 rm -f conftest.err conftest.$ac_ext
9818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9819 echo "${ECHO_T}$ac_header_preproc" >&6; }
9821 # So? What about this header?
9822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9828 ac_header_preproc=yes
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9844 ## ---------------------------------------- ##
9845 ## Report this to pgsql-bugs@postgresql.org ##
9846 ## ---------------------------------------- ##
9848 ) | sed "s/^/$as_me: WARNING: /" >&2
9851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 eval "$as_ac_Header=\$ac_header_preproc"
9858 ac_res=`eval echo '${'$as_ac_Header'}'`
9859 { echo "$as_me:$LINENO: result: $ac_res" >&5
9860 echo "${ECHO_T}$ac_res" >&6; }
9863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9864 cat >>confdefs.h <<_ACEOF
9865 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9869 { { echo "$as_me:$LINENO: error: history header not found
9870 If you have readline already installed, see config.log for details on the
9871 failure. It is possible the compiler isn't looking in the proper directory.
9872 Use --without-readline to disable readline support." >&5
9873 echo "$as_me: error: history header not found
9874 If you have readline already installed, see config.log for details on the
9875 failure. It is possible the compiler isn't looking in the proper directory.
9876 Use --without-readline to disable readline support." >&2;}
9877 { (exit 1); exit 1; }; }
9888 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9889 # Some installations of libedit usurp /usr/include/readline/, which seems
9890 # bad practice, since in combined installations readline will have its headers
9891 # there. We might have to resort to AC_EGREP checks to make sure we found
9892 # the proper header...
9894 for ac_header in editline/readline.h
9896 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 ac_res=`eval echo '${'$as_ac_Header'}'`
9904 { echo "$as_me:$LINENO: result: $ac_res" >&5
9905 echo "${ECHO_T}$ac_res" >&6; }
9907 # Is the header compilable?
9908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 $ac_includes_default
9917 #include <$ac_header>
9919 rm -f conftest.$ac_objext
9920 if { (ac_try="$ac_compile"
9922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9923 *) ac_try_echo
=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9928 grep -v '^ *+' conftest.er1
>conftest.err
9930 cat conftest.err
>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.
$ac_objext; then
9936 ac_header_compiler
=yes
9938 echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.
$ac_ext >&5
9941 ac_header_compiler
=no
9944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9946 echo "${ECHO_T}$ac_header_compiler" >&6; }
9948 # Is the header present?
9949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9951 cat >conftest.
$ac_ext <<_ACEOF
9954 cat confdefs.h
>>conftest.
$ac_ext
9955 cat >>conftest.
$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 #include <$ac_header>
9959 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9967 grep -v '^ *+' conftest.er1 >conftest.err
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } >/dev/null && {
9972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9973 test ! -s conftest.err
9975 ac_header_preproc=yes
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_header_preproc=no
9983 rm -f conftest.err conftest.$ac_ext
9984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9985 echo "${ECHO_T}$ac_header_preproc" >&6; }
9987 # So? What about this header?
9988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9994 ac_header_preproc=yes
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10010 ## ---------------------------------------- ##
10011 ## Report this to pgsql-bugs@postgresql.org ##
10012 ## ---------------------------------------- ##
10014 ) | sed "s/^/$as_me: WARNING: /" >&2
10017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 eval "$as_ac_Header=\$ac_header_preproc"
10024 ac_res=`eval echo '${'$as_ac_Header'}'`
10025 { echo "$as_me:$LINENO: result: $ac_res" >&5
10026 echo "${ECHO_T}$ac_res" >&6; }
10029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10030 cat >>confdefs.h <<_ACEOF
10031 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10036 for ac_header in readline.h
10038 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
10045 ac_res=`eval echo '${'$as_ac_Header'}'`
10046 { echo "$as_me:$LINENO: result: $ac_res" >&5
10047 echo "${ECHO_T}$ac_res" >&6; }
10049 # Is the header compilable?
10050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 $ac_includes_default
10059 #include <$ac_header>
10061 rm -f conftest.$ac_objext
10062 if { (ac_try="$ac_compile"
10063 case "(($ac_try" in
10064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10065 *) ac_try_echo
=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_compile") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1
>conftest.err
10072 cat conftest.err
>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest.
$ac_objext; then
10078 ac_header_compiler
=yes
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.
$ac_ext >&5
10083 ac_header_compiler
=no
10086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10088 echo "${ECHO_T}$ac_header_compiler" >&6; }
10090 # Is the header present?
10091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10093 cat >conftest.
$ac_ext <<_ACEOF
10096 cat confdefs.h
>>conftest.
$ac_ext
10097 cat >>conftest.
$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 #include <$ac_header>
10101 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10102 case "(($ac_try" in
10103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } >/dev/null && {
10114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10117 ac_header_preproc=yes
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 ac_header_preproc=no
10125 rm -f conftest.err conftest.$ac_ext
10126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10127 echo "${ECHO_T}$ac_header_preproc" >&6; }
10129 # So? What about this header?
10130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10136 ac_header_preproc=yes
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10152 ## ---------------------------------------- ##
10153 ## Report this to pgsql-bugs@postgresql.org ##
10154 ## ---------------------------------------- ##
10156 ) | sed "s/^/$as_me: WARNING: /" >&2
10159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 eval "$as_ac_Header=\$ac_header_preproc"
10166 ac_res=`eval echo '${'$as_ac_Header'}'`
10167 { echo "$as_me:$LINENO: result: $ac_res" >&5
10168 echo "${ECHO_T}$ac_res" >&6; }
10171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10172 cat >>confdefs.h <<_ACEOF
10173 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10178 for ac_header in readline/readline.h
10180 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 ac_res=`eval echo '${'$as_ac_Header'}'`
10188 { echo "$as_me:$LINENO: result: $ac_res" >&5
10189 echo "${ECHO_T}$ac_res" >&6; }
10191 # Is the header compilable?
10192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10194 cat >conftest.$ac_ext <<_ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 $ac_includes_default
10201 #include <$ac_header>
10203 rm -f conftest.$ac_objext
10204 if { (ac_try="$ac_compile"
10205 case "(($ac_try" in
10206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10207 *) ac_try_echo
=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_compile") 2>conftest.er1
10212 grep -v '^ *+' conftest.er1
>conftest.err
10214 cat conftest.err
>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest.
$ac_objext; then
10220 ac_header_compiler
=yes
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.
$ac_ext >&5
10225 ac_header_compiler
=no
10228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10230 echo "${ECHO_T}$ac_header_compiler" >&6; }
10232 # Is the header present?
10233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10235 cat >conftest.
$ac_ext <<_ACEOF
10238 cat confdefs.h
>>conftest.
$ac_ext
10239 cat >>conftest.
$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 #include <$ac_header>
10243 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10244 case "(($ac_try" in
10245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } >/dev/null && {
10256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10259 ac_header_preproc=yes
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_header_preproc=no
10267 rm -f conftest.err conftest.$ac_ext
10268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10269 echo "${ECHO_T}$ac_header_preproc" >&6; }
10271 # So? What about this header?
10272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10278 ac_header_preproc=yes
10281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10294 ## ---------------------------------------- ##
10295 ## Report this to pgsql-bugs@postgresql.org ##
10296 ## ---------------------------------------- ##
10298 ) | sed "s/^/$as_me: WARNING: /" >&2
10301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 eval "$as_ac_Header=\$ac_header_preproc"
10308 ac_res=`eval echo '${'$as_ac_Header'}'`
10309 { echo "$as_me:$LINENO: result: $ac_res" >&5
10310 echo "${ECHO_T}$ac_res" >&6; }
10313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10314 cat >>confdefs.h <<_ACEOF
10315 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10319 { { echo "$as_me:$LINENO: error: readline header not found
10320 If you have libedit already installed, see config.log for details on the
10321 failure. It is possible the compiler isn't looking in the proper directory.
10322 Use --without-readline to disable libedit support." >&5
10323 echo "$as_me: error: readline header not found
10324 If you have libedit already installed, see config.log for details on the
10325 failure. It is possible the compiler isn't looking in the proper directory.
10326 Use --without-readline to disable libedit support." >&2;}
10327 { (exit 1); exit 1; }; }
10340 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10341 # not be there at all. Hence, don't complain if not found. We must check
10342 # though, since in yet other versions it is an independent header.
10344 for ac_header in editline/history.h
10346 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 ac_res=`eval echo '${'$as_ac_Header'}'`
10354 { echo "$as_me:$LINENO: result: $ac_res" >&5
10355 echo "${ECHO_T}$ac_res" >&6; }
10357 # Is the header compilable?
10358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 #include <$ac_header>
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10373 *) ac_try_echo
=$ac_try;;
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_compile") 2>conftest.er1
10378 grep -v '^ *+' conftest.er1
>conftest.err
10380 cat conftest.err
>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest.
$ac_objext; then
10386 ac_header_compiler
=yes
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.
$ac_ext >&5
10391 ac_header_compiler
=no
10394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10396 echo "${ECHO_T}$ac_header_compiler" >&6; }
10398 # Is the header present?
10399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10401 cat >conftest.
$ac_ext <<_ACEOF
10404 cat confdefs.h
>>conftest.
$ac_ext
10405 cat >>conftest.
$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 #include <$ac_header>
10409 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10410 case "(($ac_try" in
10411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10417 grep -v '^ *+' conftest.er1 >conftest.err
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } >/dev/null && {
10422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10425 ac_header_preproc=yes
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_header_preproc=no
10433 rm -f conftest.err conftest.$ac_ext
10434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10435 echo "${ECHO_T}$ac_header_preproc" >&6; }
10437 # So? What about this header?
10438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10444 ac_header_preproc=yes
10447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10460 ## ---------------------------------------- ##
10461 ## Report this to pgsql-bugs@postgresql.org ##
10462 ## ---------------------------------------- ##
10464 ) | sed "s/^/$as_me: WARNING: /" >&2
10467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 eval "$as_ac_Header=\$ac_header_preproc"
10474 ac_res=`eval echo '${'$as_ac_Header'}'`
10475 { echo "$as_me:$LINENO: result: $ac_res" >&5
10476 echo "${ECHO_T}$ac_res" >&6; }
10479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10486 for ac_header in history.h
10488 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10495 ac_res=`eval echo '${'$as_ac_Header'}'`
10496 { echo "$as_me:$LINENO: result: $ac_res" >&5
10497 echo "${ECHO_T}$ac_res" >&6; }
10499 # Is the header compilable?
10500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 #include <$ac_header>
10511 rm -f conftest.$ac_objext
10512 if { (ac_try="$ac_compile"
10513 case "(($ac_try" in
10514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10515 *) ac_try_echo
=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_compile") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1
>conftest.err
10522 cat conftest.err
>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest.
$ac_objext; then
10528 ac_header_compiler
=yes
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.
$ac_ext >&5
10533 ac_header_compiler
=no
10536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10538 echo "${ECHO_T}$ac_header_compiler" >&6; }
10540 # Is the header present?
10541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10543 cat >conftest.
$ac_ext <<_ACEOF
10546 cat confdefs.h
>>conftest.
$ac_ext
10547 cat >>conftest.
$ac_ext <<_ACEOF
10548 /* end confdefs.h. */
10549 #include <$ac_header>
10551 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10552 case "(($ac_try" in
10553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10559 grep -v '^ *+' conftest.er1 >conftest.err
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } >/dev/null && {
10564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10567 ac_header_preproc=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_preproc=no
10575 rm -f conftest.err conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 echo "${ECHO_T}$ac_header_preproc" >&6; }
10579 # So? What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc=yes
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602 ## ---------------------------------------- ##
10603 ## Report this to pgsql-bugs@postgresql.org ##
10604 ## ---------------------------------------- ##
10606 ) | sed "s/^/$as_me: WARNING: /" >&2
10609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 eval "$as_ac_Header=\$ac_header_preproc"
10616 ac_res=`eval echo '${'$as_ac_Header'}'`
10617 { echo "$as_me:$LINENO: result: $ac_res" >&5
10618 echo "${ECHO_T}$ac_res" >&6; }
10621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10622 cat >>confdefs.h <<_ACEOF
10623 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10628 for ac_header in readline/history.h
10630 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 ac_res=`eval echo '${'$as_ac_Header'}'`
10638 { echo "$as_me:$LINENO: result: $ac_res" >&5
10639 echo "${ECHO_T}$ac_res" >&6; }
10641 # Is the header compilable?
10642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 $ac_includes_default
10651 #include <$ac_header>
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10657 *) ac_try_echo
=$ac_try;;
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_compile") 2>conftest.er1
10662 grep -v '^ *+' conftest.er1
>conftest.err
10664 cat conftest.err
>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && {
10667 test -z "$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10669 } && test -s conftest.
$ac_objext; then
10670 ac_header_compiler
=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.
$ac_ext >&5
10675 ac_header_compiler
=no
10678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10680 echo "${ECHO_T}$ac_header_compiler" >&6; }
10682 # Is the header present?
10683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10685 cat >conftest.
$ac_ext <<_ACEOF
10688 cat confdefs.h
>>conftest.
$ac_ext
10689 cat >>conftest.
$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 #include <$ac_header>
10693 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10694 case "(($ac_try" in
10695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1 >conftest.err
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } >/dev/null && {
10706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10709 ac_header_preproc=yes
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10714 ac_header_preproc=no
10717 rm -f conftest.err conftest.$ac_ext
10718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10719 echo "${ECHO_T}$ac_header_preproc" >&6; }
10721 # So? What about this header?
10722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10728 ac_header_preproc=yes
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10744 ## ---------------------------------------- ##
10745 ## Report this to pgsql-bugs@postgresql.org ##
10746 ## ---------------------------------------- ##
10748 ) | sed "s/^/$as_me: WARNING: /" >&2
10751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 eval "$as_ac_Header=\$ac_header_preproc"
10758 ac_res=`eval echo '${'$as_ac_Header'}'`
10759 { echo "$as_me:$LINENO: result: $ac_res" >&5
10760 echo "${ECHO_T}$ac_res" >&6; }
10763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10764 cat >>confdefs.h <<_ACEOF
10765 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10782 if test "$with_zlib" = yes; then
10783 if test "${ac_cv_header_zlib_h+set}" = set; then
10784 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10785 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10786 if test "${ac_cv_header_zlib_h+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10790 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10792 # Is the header compilable?
10793 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10794 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10795 cat >conftest.$ac_ext <<_ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h. */
10801 $ac_includes_default
10804 rm -f conftest.$ac_objext
10805 if { (ac_try="$ac_compile"
10806 case "(($ac_try" in
10807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10808 *) ac_try_echo
=$ac_try;;
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_compile") 2>conftest.er1
10813 grep -v '^ *+' conftest.er1
>conftest.err
10815 cat conftest.err
>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } && {
10818 test -z "$ac_c_werror_flag" ||
10819 test ! -s conftest.err
10820 } && test -s conftest.
$ac_objext; then
10821 ac_header_compiler
=yes
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.
$ac_ext >&5
10826 ac_header_compiler
=no
10829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10831 echo "${ECHO_T}$ac_header_compiler" >&6; }
10833 # Is the header present?
10834 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10835 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10836 cat >conftest.
$ac_ext <<_ACEOF
10839 cat confdefs.h
>>conftest.
$ac_ext
10840 cat >>conftest.
$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10844 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10845 case "(($ac_try" in
10846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } >/dev/null && {
10857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10858 test ! -s conftest.err
10860 ac_header_preproc=yes
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_header_preproc=no
10868 rm -f conftest.err conftest.$ac_ext
10869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10870 echo "${ECHO_T}$ac_header_preproc" >&6; }
10872 # So? What about this header?
10873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10876 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10878 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10879 ac_header_preproc=yes
10882 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10883 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10885 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10887 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10889 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10891 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10893 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10895 ## ---------------------------------------- ##
10896 ## Report this to pgsql-bugs@postgresql.org ##
10897 ## ---------------------------------------- ##
10899 ) | sed "s/^/$as_me: WARNING: /" >&2
10902 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10903 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10904 if test "${ac_cv_header_zlib_h+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 ac_cv_header_zlib_h=$ac_header_preproc
10909 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10910 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10913 if test $ac_cv_header_zlib_h = yes; then
10916 { { echo "$as_me:$LINENO: error: zlib header not found
10917 If you have zlib already installed, see config.log for details on the
10918 failure. It is possible the compiler isn't looking in the proper directory.
10919 Use --without-zlib to disable zlib support." >&5
10920 echo "$as_me: error: zlib header not found
10921 If you have zlib already installed, see config.log for details on the
10922 failure. It is possible the compiler isn't looking in the proper directory.
10923 Use --without-zlib to disable zlib support." >&2;}
10924 { (exit 1); exit 1; }; }
10930 if test "$with_gssapi" = yes ; then
10932 for ac_header in gssapi/gssapi.h
10934 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 ac_res=`eval echo '${'$as_ac_Header'}'`
10942 { echo "$as_me:$LINENO: result: $ac_res" >&5
10943 echo "${ECHO_T}$ac_res" >&6; }
10945 # Is the header compilable?
10946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 $ac_includes_default
10955 #include <$ac_header>
10957 rm -f conftest.$ac_objext
10958 if { (ac_try="$ac_compile"
10959 case "(($ac_try" in
10960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10961 *) ac_try_echo
=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_compile") 2>conftest.er1
10966 grep -v '^ *+' conftest.er1
>conftest.err
10968 cat conftest.err
>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } && {
10971 test -z "$ac_c_werror_flag" ||
10972 test ! -s conftest.err
10973 } && test -s conftest.
$ac_objext; then
10974 ac_header_compiler
=yes
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.
$ac_ext >&5
10979 ac_header_compiler
=no
10982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10984 echo "${ECHO_T}$ac_header_compiler" >&6; }
10986 # Is the header present?
10987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10989 cat >conftest.
$ac_ext <<_ACEOF
10992 cat confdefs.h
>>conftest.
$ac_ext
10993 cat >>conftest.
$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 #include <$ac_header>
10997 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10998 case "(($ac_try" in
10999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11005 grep -v '^ *+' conftest.er1 >conftest.err
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } >/dev/null && {
11010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11013 ac_header_preproc=yes
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 ac_header_preproc=no
11021 rm -f conftest.err conftest.$ac_ext
11022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11023 echo "${ECHO_T}$ac_header_preproc" >&6; }
11025 # So? What about this header?
11026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11032 ac_header_preproc=yes
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11048 ## ---------------------------------------- ##
11049 ## Report this to pgsql-bugs@postgresql.org ##
11050 ## ---------------------------------------- ##
11052 ) | sed "s/^/$as_me: WARNING: /" >&2
11055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 eval "$as_ac_Header=\$ac_header_preproc"
11062 ac_res=`eval echo '${'$as_ac_Header'}'`
11063 { echo "$as_me:$LINENO: result: $ac_res" >&5
11064 echo "${ECHO_T}$ac_res" >&6; }
11067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11068 cat >>confdefs.h <<_ACEOF
11069 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11074 for ac_header in gssapi.h
11076 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 ac_res=`eval echo '${'$as_ac_Header'}'`
11084 { echo "$as_me:$LINENO: result: $ac_res" >&5
11085 echo "${ECHO_T}$ac_res" >&6; }
11087 # Is the header compilable?
11088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11090 cat >conftest.$ac_ext <<_ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 $ac_includes_default
11097 #include <$ac_header>
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11103 *) ac_try_echo
=$ac_try;;
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1
>conftest.err
11110 cat conftest.err
>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.
$ac_objext; then
11116 ac_header_compiler
=yes
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.
$ac_ext >&5
11121 ac_header_compiler
=no
11124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126 echo "${ECHO_T}$ac_header_compiler" >&6; }
11128 # Is the header present?
11129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11131 cat >conftest.
$ac_ext <<_ACEOF
11134 cat confdefs.h
>>conftest.
$ac_ext
11135 cat >>conftest.
$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <$ac_header>
11139 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11140 case "(($ac_try" in
11141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147 grep -v '^ *+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null && {
11152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11153 test ! -s conftest.err
11155 ac_header_preproc=yes
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 ac_header_preproc=no
11163 rm -f conftest.err conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11165 echo "${ECHO_T}$ac_header_preproc" >&6; }
11167 # So? What about this header?
11168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11174 ac_header_preproc=yes
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11190 ## ---------------------------------------- ##
11191 ## Report this to pgsql-bugs@postgresql.org ##
11192 ## ---------------------------------------- ##
11194 ) | sed "s/^/$as_me: WARNING: /" >&2
11197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 eval "$as_ac_Header=\$ac_header_preproc"
11204 ac_res=`eval echo '${'$as_ac_Header'}'`
11205 { echo "$as_me:$LINENO: result: $ac_res" >&5
11206 echo "${ECHO_T}$ac_res" >&6; }
11209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11210 cat >>confdefs.h <<_ACEOF
11211 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11215 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11216 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11217 { (exit 1); exit 1; }; }
11228 if test "$with_krb5" = yes ; then
11229 if test "${ac_cv_header_krb5_h+set}" = set; then
11230 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11231 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11232 if test "${ac_cv_header_krb5_h+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11236 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11238 # Is the header compilable?
11239 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11240 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11254 *) ac_try_echo
=$ac_try;;
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11259 grep -v '^ *+' conftest.er1
>conftest.err
11261 cat conftest.err
>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest.
$ac_objext; then
11267 ac_header_compiler
=yes
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.
$ac_ext >&5
11272 ac_header_compiler
=no
11275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11277 echo "${ECHO_T}$ac_header_compiler" >&6; }
11279 # Is the header present?
11280 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11281 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11282 cat >conftest.
$ac_ext <<_ACEOF
11285 cat confdefs.h
>>conftest.
$ac_ext
11286 cat >>conftest.
$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11290 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11291 case "(($ac_try" in
11292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11298 grep -v '^ *+' conftest.er1 >conftest.err
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } >/dev/null && {
11303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11304 test ! -s conftest.err
11306 ac_header_preproc=yes
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_header_preproc=no
11314 rm -f conftest.err conftest.$ac_ext
11315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11316 echo "${ECHO_T}$ac_header_preproc" >&6; }
11318 # So? What about this header?
11319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11321 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11322 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11324 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11325 ac_header_preproc=yes
11328 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11329 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11331 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11333 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11335 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11337 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11339 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11341 ## ---------------------------------------- ##
11342 ## Report this to pgsql-bugs@postgresql.org ##
11343 ## ---------------------------------------- ##
11345 ) | sed "s/^/$as_me: WARNING: /" >&2
11348 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11349 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11350 if test "${ac_cv_header_krb5_h+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 ac_cv_header_krb5_h=$ac_header_preproc
11355 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11356 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11359 if test $ac_cv_header_krb5_h = yes; then
11362 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11363 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11364 { (exit 1); exit 1; }; }
11370 if test "$with_openssl" = yes ; then
11371 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11372 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11373 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11374 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11378 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11380 # Is the header compilable?
11381 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11382 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11383 cat >conftest.$ac_ext <<_ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 $ac_includes_default
11390 #include <openssl/ssl.h>
11392 rm -f conftest.$ac_objext
11393 if { (ac_try="$ac_compile"
11394 case "(($ac_try" in
11395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11396 *) ac_try_echo
=$ac_try;;
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_compile") 2>conftest.er1
11401 grep -v '^ *+' conftest.er1
>conftest.err
11403 cat conftest.err
>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } && {
11406 test -z "$ac_c_werror_flag" ||
11407 test ! -s conftest.err
11408 } && test -s conftest.
$ac_objext; then
11409 ac_header_compiler
=yes
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.
$ac_ext >&5
11414 ac_header_compiler
=no
11417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421 # Is the header present?
11422 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11423 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11424 cat >conftest.
$ac_ext <<_ACEOF
11427 cat confdefs.h
>>conftest.
$ac_ext
11428 cat >>conftest.
$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <openssl/ssl.h>
11432 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1 >conftest.err
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } >/dev/null && {
11445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11448 ac_header_preproc=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_header_preproc=no
11456 rm -f conftest.err conftest.$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6; }
11460 # So? What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11470 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11483 ## ---------------------------------------- ##
11484 ## Report this to pgsql-bugs@postgresql.org ##
11485 ## ---------------------------------------- ##
11487 ) | sed "s/^/$as_me: WARNING: /" >&2
11490 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11491 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11492 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 ac_cv_header_openssl_ssl_h=$ac_header_preproc
11497 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11498 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11501 if test $ac_cv_header_openssl_ssl_h = yes; then
11504 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11505 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11506 { (exit 1); exit 1; }; }
11510 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11511 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11512 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11513 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11517 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11519 # Is the header compilable?
11520 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11521 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11522 cat >conftest.$ac_ext <<_ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h. */
11528 $ac_includes_default
11529 #include <openssl/err.h>
11531 rm -f conftest.$ac_objext
11532 if { (ac_try="$ac_compile"
11533 case "(($ac_try" in
11534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11535 *) ac_try_echo
=$ac_try;;
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11540 grep -v '^ *+' conftest.er1
>conftest.err
11542 cat conftest.err
>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.
$ac_objext; then
11548 ac_header_compiler
=yes
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.
$ac_ext >&5
11553 ac_header_compiler
=no
11556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11558 echo "${ECHO_T}$ac_header_compiler" >&6; }
11560 # Is the header present?
11561 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11562 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11563 cat >conftest.
$ac_ext <<_ACEOF
11566 cat confdefs.h
>>conftest.
$ac_ext
11567 cat >>conftest.
$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <openssl/err.h>
11571 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11572 case "(($ac_try" in
11573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } >/dev/null && {
11584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11585 test ! -s conftest.err
11587 ac_header_preproc=yes
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 ac_header_preproc=no
11595 rm -f conftest.err conftest.$ac_ext
11596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11597 echo "${ECHO_T}$ac_header_preproc" >&6; }
11599 # So? What about this header?
11600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11602 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11603 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11605 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11606 ac_header_preproc=yes
11609 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11610 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11612 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11614 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11616 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11618 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11620 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11622 ## ---------------------------------------- ##
11623 ## Report this to pgsql-bugs@postgresql.org ##
11624 ## ---------------------------------------- ##
11626 ) | sed "s/^/$as_me: WARNING: /" >&2
11629 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11630 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11631 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 ac_cv_header_openssl_err_h=$ac_header_preproc
11636 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11637 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11640 if test $ac_cv_header_openssl_err_h = yes; then
11643 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11644 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11645 { (exit 1); exit 1; }; }
11650 for ac_func in ERR_set_mark
11652 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11666 #define $ac_func innocuous_$ac_func
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below.
11670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671 <limits.h> exists even on freestanding compilers. */
11674 # include <limits.h>
11676 # include <assert.h>
11681 /* Override any GCC internal prototype to avoid an error.
11682 Use char because int might match the return type of a GCC
11683 builtin and then its argument prototype would still apply. */
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11698 return $ac_func ();
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11707 *) ac_try_echo
=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_link") 2>conftest.er1
11712 grep -v '^ *+' conftest.er1
>conftest.err
11714 cat conftest.err
>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest
$ac_exeext &&
11720 $as_test_x conftest
$ac_exeext; then
11721 eval "$as_ac_var=yes"
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.
$ac_ext >&5
11726 eval "$as_ac_var=no"
11729 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11730 conftest
$ac_exeext conftest.
$ac_ext
11732 ac_res
=`eval echo '${'$as_ac_var'}'`
11733 { echo "$as_me:$LINENO: result: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h
<<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11745 if test "$with_pam" = yes ; then
11747 for ac_header
in security
/pam_appl.h
11749 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11750 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11753 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 ac_res
=`eval echo '${'$as_ac_Header'}'`
11757 { echo "$as_me:$LINENO: result: $ac_res" >&5
11758 echo "${ECHO_T}$ac_res" >&6; }
11760 # Is the header compilable?
11761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11763 cat >conftest.
$ac_ext <<_ACEOF
11766 cat confdefs.h
>>conftest.
$ac_ext
11767 cat >>conftest.
$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 $ac_includes_default
11770 #include <$ac_header>
11772 rm -f conftest.
$ac_objext
11773 if { (ac_try
="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11781 grep -v '^ *+' conftest.er1 >conftest.err
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11789 ac_header_compiler=yes
11791 echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11794 ac_header_compiler=no
11797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799 echo "${ECHO_T}$ac_header_compiler" >&6; }
11801 # Is the header present?
11802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <$ac_header>
11812 if { (ac_try="$ac_cpp conftest.$ac_ext"
11813 case "(($ac_try" in
11814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11815 *) ac_try_echo
=$ac_try;;
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11820 grep -v '^ *+' conftest.er1
>conftest.err
11822 cat conftest.err
>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev
/null
&& {
11825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11826 test ! -s conftest.err
11828 ac_header_preproc
=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.
$ac_ext >&5
11833 ac_header_preproc
=no
11836 rm -f conftest.err conftest.
$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11838 echo "${ECHO_T}$ac_header_preproc" >&6; }
11840 # So? What about this header?
11841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11847 ac_header_preproc
=yes
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11863 ## ---------------------------------------- ##
11864 ## Report this to pgsql-bugs@postgresql.org ##
11865 ## ---------------------------------------- ##
11867 ) |
sed "s/^/$as_me: WARNING: /" >&2
11870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11872 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 eval "$as_ac_Header=\$ac_header_preproc"
11877 ac_res
=`eval echo '${'$as_ac_Header'}'`
11878 { echo "$as_me:$LINENO: result: $ac_res" >&5
11879 echo "${ECHO_T}$ac_res" >&6; }
11882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11883 cat >>confdefs.h
<<_ACEOF
11884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11889 for ac_header
in pam
/pam_appl.h
11891 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11892 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11895 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 ac_res
=`eval echo '${'$as_ac_Header'}'`
11899 { echo "$as_me:$LINENO: result: $ac_res" >&5
11900 echo "${ECHO_T}$ac_res" >&6; }
11902 # Is the header compilable?
11903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11905 cat >conftest.
$ac_ext <<_ACEOF
11908 cat confdefs.h
>>conftest.
$ac_ext
11909 cat >>conftest.
$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911 $ac_includes_default
11912 #include <$ac_header>
11914 rm -f conftest.
$ac_objext
11915 if { (ac_try
="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 ac_header_compiler=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_header_compiler=no
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11941 echo "${ECHO_T}$ac_header_compiler" >&6; }
11943 # Is the header present?
11944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 #include <$ac_header>
11954 if { (ac_try="$ac_cpp conftest.$ac_ext"
11955 case "(($ac_try" in
11956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11957 *) ac_try_echo
=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11962 grep -v '^ *+' conftest.er1
>conftest.err
11964 cat conftest.err
>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } >/dev
/null
&& {
11967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11970 ac_header_preproc
=yes
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.
$ac_ext >&5
11975 ac_header_preproc
=no
11978 rm -f conftest.err conftest.
$ac_ext
11979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11980 echo "${ECHO_T}$ac_header_preproc" >&6; }
11982 # So? What about this header?
11983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11989 ac_header_preproc
=yes
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12005 ## ---------------------------------------- ##
12006 ## Report this to pgsql-bugs@postgresql.org ##
12007 ## ---------------------------------------- ##
12009 ) |
sed "s/^/$as_me: WARNING: /" >&2
12012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12014 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 eval "$as_ac_Header=\$ac_header_preproc"
12019 ac_res
=`eval echo '${'$as_ac_Header'}'`
12020 { echo "$as_me:$LINENO: result: $ac_res" >&5
12021 echo "${ECHO_T}$ac_res" >&6; }
12024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12025 cat >>confdefs.h
<<_ACEOF
12026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12031 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12032 { (exit 1); exit 1; }; }
12043 if test "$with_libxml" = yes ; then
12044 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12045 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12046 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12047 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12051 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12053 # Is the header compilable?
12054 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12055 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12056 cat >conftest.
$ac_ext <<_ACEOF
12059 cat confdefs.h
>>conftest.
$ac_ext
12060 cat >>conftest.
$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12062 $ac_includes_default
12063 #include <libxml/parser.h>
12065 rm -f conftest.
$ac_objext
12066 if { (ac_try
="$ac_compile"
12067 case "(($ac_try" in
12068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_compile") 2>conftest.er1
12074 grep -v '^ *+' conftest.er1 >conftest.err
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } && {
12079 test -z "$ac_c_werror_flag" ||
12080 test ! -s conftest.err
12081 } && test -s conftest.$ac_objext; then
12082 ac_header_compiler=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_header_compiler=no
12090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12092 echo "${ECHO_T}$ac_header_compiler" >&6; }
12094 # Is the header present?
12095 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12096 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 #include <libxml/parser.h>
12105 if { (ac_try="$ac_cpp conftest.$ac_ext"
12106 case "(($ac_try" in
12107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12108 *) ac_try_echo
=$ac_try;;
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12113 grep -v '^ *+' conftest.er1
>conftest.err
12115 cat conftest.err
>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } >/dev
/null
&& {
12118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12121 ac_header_preproc
=yes
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.
$ac_ext >&5
12126 ac_header_preproc
=no
12129 rm -f conftest.err conftest.
$ac_ext
12130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12131 echo "${ECHO_T}$ac_header_preproc" >&6; }
12133 # So? What about this header?
12134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12136 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12137 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12139 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12140 ac_header_preproc
=yes
12143 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12144 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12146 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12148 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12150 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12152 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12154 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12156 ## ---------------------------------------- ##
12157 ## Report this to pgsql-bugs@postgresql.org ##
12158 ## ---------------------------------------- ##
12160 ) |
sed "s/^/$as_me: WARNING: /" >&2
12163 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12164 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12165 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 ac_cv_header_libxml_parser_h
=$ac_header_preproc
12170 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12171 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12174 if test $ac_cv_header_libxml_parser_h = yes; then
12177 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12178 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12179 { (exit 1); exit 1; }; }
12185 if test "$with_libxslt" = yes ; then
12186 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12187 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12188 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12189 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12193 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12195 # Is the header compilable?
12196 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12197 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12198 cat >conftest.
$ac_ext <<_ACEOF
12201 cat confdefs.h
>>conftest.
$ac_ext
12202 cat >>conftest.
$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12205 #include <libxslt/xslt.h>
12207 rm -f conftest.
$ac_objext
12208 if { (ac_try
="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest.$ac_objext; then
12224 ac_header_compiler=yes
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_header_compiler=no
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12234 echo "${ECHO_T}$ac_header_compiler" >&6; }
12236 # Is the header present?
12237 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12238 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12245 #include <libxslt/xslt.h>
12247 if { (ac_try="$ac_cpp conftest.$ac_ext"
12248 case "(($ac_try" in
12249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12250 *) ac_try_echo
=$ac_try;;
12252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12255 grep -v '^ *+' conftest.er1
>conftest.err
12257 cat conftest.err
>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } >/dev
/null
&& {
12260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12263 ac_header_preproc
=yes
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.
$ac_ext >&5
12268 ac_header_preproc
=no
12271 rm -f conftest.err conftest.
$ac_ext
12272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12273 echo "${ECHO_T}$ac_header_preproc" >&6; }
12275 # So? What about this header?
12276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12278 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12279 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12281 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12282 ac_header_preproc
=yes
12285 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12286 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12287 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12288 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12290 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12292 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12294 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12296 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12298 ## ---------------------------------------- ##
12299 ## Report this to pgsql-bugs@postgresql.org ##
12300 ## ---------------------------------------- ##
12302 ) |
sed "s/^/$as_me: WARNING: /" >&2
12305 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12306 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12307 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
12312 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12313 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12316 if test $ac_cv_header_libxslt_xslt_h = yes; then
12319 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12320 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12321 { (exit 1); exit 1; }; }
12327 if test "$with_ldap" = yes ; then
12328 if test "$PORTNAME" != "win32"; then
12330 for ac_header
in ldap.h
12332 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12336 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 ac_res
=`eval echo '${'$as_ac_Header'}'`
12340 { echo "$as_me:$LINENO: result: $ac_res" >&5
12341 echo "${ECHO_T}$ac_res" >&6; }
12343 # Is the header compilable?
12344 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12345 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12353 #include <$ac_header>
12355 rm -f conftest.
$ac_objext
12356 if { (ac_try
="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_compile") 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && {
12369 test -z "$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12371 } && test -s conftest.$ac_objext; then
12372 ac_header_compiler=yes
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_header_compiler=no
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12382 echo "${ECHO_T}$ac_header_compiler" >&6; }
12384 # Is the header present?
12385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 #include <$ac_header>
12395 if { (ac_try="$ac_cpp conftest.$ac_ext"
12396 case "(($ac_try" in
12397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12398 *) ac_try_echo
=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12403 grep -v '^ *+' conftest.er1
>conftest.err
12405 cat conftest.err
>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } >/dev
/null
&& {
12408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12411 ac_header_preproc
=yes
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.
$ac_ext >&5
12416 ac_header_preproc
=no
12419 rm -f conftest.err conftest.
$ac_ext
12420 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12421 echo "${ECHO_T}$ac_header_preproc" >&6; }
12423 # So? What about this header?
12424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12430 ac_header_preproc
=yes
12433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12446 ## ---------------------------------------- ##
12447 ## Report this to pgsql-bugs@postgresql.org ##
12448 ## ---------------------------------------- ##
12450 ) |
sed "s/^/$as_me: WARNING: /" >&2
12453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12455 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 eval "$as_ac_Header=\$ac_header_preproc"
12460 ac_res
=`eval echo '${'$as_ac_Header'}'`
12461 { echo "$as_me:$LINENO: result: $ac_res" >&5
12462 echo "${ECHO_T}$ac_res" >&6; }
12465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12466 cat >>confdefs.h
<<_ACEOF
12467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12471 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12472 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12473 { (exit 1); exit 1; }; }
12480 for ac_header
in winldap.h
12482 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12485 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 cat >conftest.
$ac_ext <<_ACEOF
12491 cat confdefs.h
>>conftest.
$ac_ext
12492 cat >>conftest.
$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 $ac_includes_default
12495 #include <windows.h>
12498 #include <$ac_header>
12500 rm -f conftest.
$ac_objext
12501 if { (ac_try
="$ac_compile"
12502 case "(($ac_try" in
12503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_compile") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && {
12514 test -z "$ac_c_werror_flag" ||
12515 test ! -s conftest.err
12516 } && test -s conftest.$ac_objext; then
12517 eval "$as_ac_Header=yes"
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 eval "$as_ac_Header=no"
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 ac_res=`eval echo '${'$as_ac_Header'}'`
12528 { echo "$as_me:$LINENO: result: $ac_res" >&5
12529 echo "${ECHO_T}$ac_res" >&6; }
12530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12531 cat >>confdefs.h <<_ACEOF
12532 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12536 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12537 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12538 { (exit 1); exit 1; }; }
12546 if test "$with_bonjour" = yes ; then
12547 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12548 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12549 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12550 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12554 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12556 # Is the header compilable?
12557 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12558 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 $ac_includes_default
12566 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12572 *) ac_try_echo
=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_compile") 2>conftest.er1
12577 grep -v '^ *+' conftest.er1
>conftest.err
12579 cat conftest.err
>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest.
$ac_objext; then
12585 ac_header_compiler
=yes
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.
$ac_ext >&5
12590 ac_header_compiler
=no
12593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12595 echo "${ECHO_T}$ac_header_compiler" >&6; }
12597 # Is the header present?
12598 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12599 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12600 cat >conftest.
$ac_ext <<_ACEOF
12603 cat confdefs.h
>>conftest.
$ac_ext
12604 cat >>conftest.
$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12608 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
12621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12624 ac_header_preproc=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12629 ac_header_preproc=no
12632 rm -f conftest.err conftest.$ac_ext
12633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12634 echo "${ECHO_T}$ac_header_preproc" >&6; }
12636 # So? What about this header?
12637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12639 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12640 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12641 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12642 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12643 ac_header_preproc=yes
12646 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12647 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
12649 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
12650 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12651 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
12653 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
12654 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12655 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12656 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12657 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12659 ## ---------------------------------------- ##
12660 ## Report this to pgsql-bugs@postgresql.org ##
12661 ## ---------------------------------------- ##
12663 ) | sed "s/^/$as_me: WARNING: /" >&2
12666 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12667 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12668 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12673 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12674 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12677 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12680 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12681 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12682 { (exit 1); exit 1; }; }
12688 # for contrib/uuid-ossp
12689 if test "$with_ossp_uuid" = yes ; then
12691 for ac_header in ossp/uuid.h
12693 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 ac_res=`eval echo '${'$as_ac_Header'}'`
12701 { echo "$as_me:$LINENO: result: $ac_res" >&5
12702 echo "${ECHO_T}$ac_res" >&6; }
12704 # Is the header compilable?
12705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 $ac_includes_default
12714 #include <$ac_header>
12716 rm -f conftest.$ac_objext
12717 if { (ac_try="$ac_compile"
12718 case "(($ac_try" in
12719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12720 *) ac_try_echo
=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_compile") 2>conftest.er1
12725 grep -v '^ *+' conftest.er1
>conftest.err
12727 cat conftest.err
>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && {
12730 test -z "$ac_c_werror_flag" ||
12731 test ! -s conftest.err
12732 } && test -s conftest.
$ac_objext; then
12733 ac_header_compiler
=yes
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.
$ac_ext >&5
12738 ac_header_compiler
=no
12741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12743 echo "${ECHO_T}$ac_header_compiler" >&6; }
12745 # Is the header present?
12746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12748 cat >conftest.
$ac_ext <<_ACEOF
12751 cat confdefs.h
>>conftest.
$ac_ext
12752 cat >>conftest.
$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 #include <$ac_header>
12756 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
12769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12772 ac_header_preproc=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_header_preproc=no
12780 rm -f conftest.err conftest.$ac_ext
12781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12782 echo "${ECHO_T}$ac_header_preproc" >&6; }
12784 # So? What about this header?
12785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12791 ac_header_preproc=yes
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12807 ## ---------------------------------------- ##
12808 ## Report this to pgsql-bugs@postgresql.org ##
12809 ## ---------------------------------------- ##
12811 ) | sed "s/^/$as_me: WARNING: /" >&2
12814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 eval "$as_ac_Header=\$ac_header_preproc"
12821 ac_res=`eval echo '${'$as_ac_Header'}'`
12822 { echo "$as_me:$LINENO: result: $ac_res" >&5
12823 echo "${ECHO_T}$ac_res" >&6; }
12826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12827 cat >>confdefs.h <<_ACEOF
12828 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12834 for ac_header in uuid.h
12836 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 ac_res=`eval echo '${'$as_ac_Header'}'`
12844 { echo "$as_me:$LINENO: result: $ac_res" >&5
12845 echo "${ECHO_T}$ac_res" >&6; }
12847 # Is the header compilable?
12848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 $ac_includes_default
12857 #include <$ac_header>
12859 rm -f conftest.$ac_objext
12860 if { (ac_try="$ac_compile"
12861 case "(($ac_try" in
12862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12863 *) ac_try_echo
=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_compile") 2>conftest.er1
12868 grep -v '^ *+' conftest.er1
>conftest.err
12870 cat conftest.err
>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } && {
12873 test -z "$ac_c_werror_flag" ||
12874 test ! -s conftest.err
12875 } && test -s conftest.
$ac_objext; then
12876 ac_header_compiler
=yes
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.
$ac_ext >&5
12881 ac_header_compiler
=no
12884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12886 echo "${ECHO_T}$ac_header_compiler" >&6; }
12888 # Is the header present?
12889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12891 cat >conftest.
$ac_ext <<_ACEOF
12894 cat confdefs.h
>>conftest.
$ac_ext
12895 cat >>conftest.
$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 #include <$ac_header>
12899 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12900 case "(($ac_try" in
12901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12902 *) ac_try_echo=$ac_try;;
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12907 grep -v '^ *+' conftest.er1 >conftest.err
12909 cat conftest.err >&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } >/dev/null && {
12912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12913 test ! -s conftest.err
12915 ac_header_preproc=yes
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 ac_header_preproc=no
12923 rm -f conftest.err conftest.$ac_ext
12924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12925 echo "${ECHO_T}$ac_header_preproc" >&6; }
12927 # So? What about this header?
12928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12934 ac_header_preproc=yes
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12950 ## ---------------------------------------- ##
12951 ## Report this to pgsql-bugs@postgresql.org ##
12952 ## ---------------------------------------- ##
12954 ) | sed "s/^/$as_me: WARNING: /" >&2
12957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 eval "$as_ac_Header=\$ac_header_preproc"
12964 ac_res=`eval echo '${'$as_ac_Header'}'`
12965 { echo "$as_me:$LINENO: result: $ac_res" >&5
12966 echo "${ECHO_T}$ac_res" >&6; }
12969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12970 cat >>confdefs.h <<_ACEOF
12971 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12975 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12976 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12977 { (exit 1); exit 1; }; }
12990 ## Types, structures, compiler characteristics
12993 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12994 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12995 if test "${ac_cv_c_bigendian+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 # See if sys/param.h defines the BYTE_ORDER macro.
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <sys/types.h>
13006 #include <sys/param.h>
13011 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13012 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13013 bogus endian macros
13020 rm -f conftest.$ac_objext
13021 if { (ac_try="$ac_compile"
13022 case "(($ac_try" in
13023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13024 *) ac_try_echo
=$ac_try;;
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_compile") 2>conftest.er1
13029 grep -v '^ *+' conftest.er1
>conftest.err
13031 cat conftest.err
>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } && {
13034 test -z "$ac_c_werror_flag" ||
13035 test ! -s conftest.err
13036 } && test -s conftest.
$ac_objext; then
13037 # It does; now see whether it defined to BIG_ENDIAN or not.
13038 cat >conftest.
$ac_ext <<_ACEOF
13041 cat confdefs.h
>>conftest.
$ac_ext
13042 cat >>conftest.
$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 #include <sys/types.h>
13045 #include <sys/param.h>
13050 #if BYTE_ORDER != BIG_ENDIAN
13058 rm -f conftest.
$ac_objext
13059 if { (ac_try
="$ac_compile"
13060 case "(($ac_try" in
13061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_compile") 2>conftest.er1
13067 grep -v '^ *+' conftest.er1 >conftest.err
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest.$ac_objext; then
13075 ac_cv_c_bigendian=yes
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_cv_c_bigendian=no
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13088 # It does not; compile a test program.
13089 if test "$cross_compiling" = yes; then
13090 # try to guess the endianness by grepping values into an object file
13091 ac_cv_c_bigendian=unknown
13092 cat >conftest.$ac_ext <<_ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13099 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13100 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13101 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13102 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13103 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13107 _ascii (); _ebcdic ();
13112 rm -f conftest.$ac_objext
13113 if { (ac_try="$ac_compile"
13114 case "(($ac_try" in
13115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13116 *) ac_try_echo
=$ac_try;;
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_compile") 2>conftest.er1
13121 grep -v '^ *+' conftest.er1
>conftest.err
13123 cat conftest.err
>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } && {
13126 test -z "$ac_c_werror_flag" ||
13127 test ! -s conftest.err
13128 } && test -s conftest.
$ac_objext; then
13129 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13130 ac_cv_c_bigendian
=yes
13132 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13133 if test "$ac_cv_c_bigendian" = unknown
; then
13134 ac_cv_c_bigendian
=no
13136 # finding both strings is unlikely to happen, but who knows?
13137 ac_cv_c_bigendian
=unknown
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.
$ac_ext >&5
13147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13149 cat >conftest.
$ac_ext <<_ACEOF
13152 cat confdefs.h
>>conftest.
$ac_ext
13153 cat >>conftest.
$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13160 /* Are we little or big endian? From Harbison&Steele. */
13164 char c[sizeof (long int)];
13167 return u.c[sizeof (long int) - 1] == 1;
13173 rm -f conftest
$ac_exeext
13174 if { (ac_try
="$ac_link"
13175 case "(($ac_try" in
13176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_link") 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13184 { (case "(($ac_try" in
13185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13186 *) ac_try_echo
=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_cv_c_bigendian
=no
13195 echo "$as_me: program exited with status $ac_status" >&5
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.
$ac_ext >&5
13199 ( exit $ac_status )
13200 ac_cv_c_bigendian
=yes
13202 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13210 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13211 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13212 case $ac_cv_c_bigendian in
13215 cat >>confdefs.h
<<\_ACEOF
13216 #define WORDS_BIGENDIAN 1
13222 { { echo "$as_me:$LINENO: error: unknown endianness
13223 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13224 echo "$as_me: error: unknown endianness
13225 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13226 { (exit 1); exit 1; }; } ;;
13229 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13230 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13231 if test "${ac_cv_c_const+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 cat >conftest.
$ac_ext <<_ACEOF
13237 cat confdefs.h
>>conftest.
$ac_ext
13238 cat >>conftest.
$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13244 /* FIXME: Include the comments suggested by Paul. */
13245 #ifndef __cplusplus
13246 /* Ultrix mips cc rejects this. */
13247 typedef int charset[2];
13249 /* SunOS 4.1.1 cc rejects this. */
13250 char const *const *pcpcc;
13252 /* NEC SVR4.0.2 mips cc rejects this. */
13253 struct point {int x, y;};
13254 static struct point const zero = {0,0};
13255 /* AIX XL C 1.02.0.0 rejects this.
13256 It does not let you subtract one const X* pointer from another in
13257 an arm of an if-expression whose if-part is not a constant
13259 const char *g = "string";
13260 pcpcc = &g + (g ? g-g : 0);
13261 /* HPUX 7.0 cc rejects these. */
13263 ppc = (char**) pcpcc;
13264 pcpcc = (char const *const *) ppc;
13265 { /* SCO 3.2v4 cc rejects this. */
13267 char const *s = 0 ? (char *) 0 : (char const *) 0;
13272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13273 int x[] = {25, 17};
13274 const int *foo = &x[0];
13277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13278 typedef const int *iptr;
13282 { /* AIX XL C 1.02.0.0 rejects this saying
13283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13284 struct s { int j; const int *ap[3]; };
13285 struct s *b; b->j = 5;
13287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13288 const int foo = 10;
13289 if (!foo) return 0;
13291 return !cs[0] && !zero.x;
13298 rm -f conftest.
$ac_objext
13299 if { (ac_try
="$ac_compile"
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_compile") 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); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13326 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13327 if test $ac_cv_c_const = no; then
13329 cat >>confdefs.h <<\_ACEOF
13335 { echo "$as_me:$LINENO: checking for inline" >&5
13336 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13337 if test "${ac_cv_c_inline+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 for ac_kw in inline __inline__ __inline; do
13342 cat >conftest.$ac_ext <<_ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 #ifndef __cplusplus
13350 static $ac_kw foo_t static_foo () {return 0; }
13351 $ac_kw foo_t foo () {return 0; }
13355 rm -f conftest.$ac_objext
13356 if { (ac_try="$ac_compile"
13357 case "(($ac_try" in
13358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13359 *) ac_try_echo
=$ac_try;;
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_compile") 2>conftest.er1
13364 grep -v '^ *+' conftest.er1
>conftest.err
13366 cat conftest.err
>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } && {
13369 test -z "$ac_c_werror_flag" ||
13370 test ! -s conftest.err
13371 } && test -s conftest.
$ac_objext; then
13372 ac_cv_c_inline
=$ac_kw
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.
$ac_ext >&5
13380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13381 test "$ac_cv_c_inline" != no
&& break
13385 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13386 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13389 case $ac_cv_c_inline in
13392 case $ac_cv_c_inline in
13394 *) ac_val
=$ac_cv_c_inline;;
13396 cat >>confdefs.h
<<_ACEOF
13397 #ifndef __cplusplus
13398 #define inline $ac_val
13404 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13405 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13406 if test "${ac_cv_c_stringize+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 cat >conftest.
$ac_ext <<_ACEOF
13412 cat confdefs.h
>>conftest.
$ac_ext
13413 cat >>conftest.
$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13417 char *s = x(teststring);
13419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13420 $EGREP "#teststring" >/dev
/null
2>&1; then
13421 ac_cv_c_stringize
=no
13423 ac_cv_c_stringize
=yes
13428 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13429 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13430 if test $ac_cv_c_stringize = yes; then
13432 cat >>confdefs.h
<<\_ACEOF
13433 #define HAVE_STRINGIZE 1
13438 { echo "$as_me:$LINENO: checking for signed types" >&5
13439 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13440 if test "${pgac_cv_c_signed+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 cat >conftest.
$ac_ext <<_ACEOF
13446 cat confdefs.h
>>conftest.
$ac_ext
13447 cat >>conftest.
$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13453 signed char c; signed short s; signed int i;
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 pgac_cv_c_signed=yes
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13480 pgac_cv_c_signed=no
13483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13486 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13487 if test x"$pgac_cv_c_signed" = xno ; then
13489 cat >>confdefs.h <<\_ACEOF
13494 { echo "$as_me:$LINENO: checking for working volatile" >&5
13495 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13496 if test "${ac_cv_c_volatile+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13511 int * volatile y = (int *) 0;
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13521 *) ac_try_echo
=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_compile") 2>conftest.er1
13526 grep -v '^ *+' conftest.er1
>conftest.err
13528 cat conftest.err
>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest.
$ac_objext; then
13534 ac_cv_c_volatile
=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.
$ac_ext >&5
13539 ac_cv_c_volatile
=no
13542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13545 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13546 if test $ac_cv_c_volatile = no
; then
13548 cat >>confdefs.h
<<\_ACEOF
13554 { echo "$as_me:$LINENO: checking for __func__" >&5
13555 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13556 if test "${pgac_cv_funcname_func_support+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 cat >conftest.
$ac_ext <<_ACEOF
13562 cat confdefs.h
>>conftest.
$ac_ext
13563 cat >>conftest.
$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13569 printf("%s\n", __func__);
13574 rm -f conftest.
$ac_objext
13575 if { (ac_try
="$ac_compile"
13576 case "(($ac_try" in
13577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13583 grep -v '^ *+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
13591 pgac_cv_funcname_func_support=yes
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 pgac_cv_funcname_func_support=no
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13602 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13603 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13605 cat >>confdefs.h <<\_ACEOF
13606 #define HAVE_FUNCNAME__FUNC 1
13610 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13611 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13612 if test "${pgac_cv_funcname_function_support+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 cat >conftest.$ac_ext <<_ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13625 printf("%s\n", __FUNCTION__);
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13634 *) ac_try_echo
=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13639 grep -v '^ *+' conftest.er1
>conftest.err
13641 cat conftest.err
>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.
$ac_objext; then
13647 pgac_cv_funcname_function_support
=yes
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.
$ac_ext >&5
13652 pgac_cv_funcname_function_support
=no
13655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13657 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13658 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13659 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
13661 cat >>confdefs.h
<<\_ACEOF
13662 #define HAVE_FUNCNAME__FUNCTION 1
13667 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13668 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13669 if test "${ac_cv_struct_tm+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 cat >conftest.
$ac_ext <<_ACEOF
13675 cat confdefs.h
>>conftest.
$ac_ext
13676 cat >>conftest.
$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #include <sys/types.h>
13685 int *p = &tm.tm_sec;
13691 rm -f conftest.
$ac_objext
13692 if { (ac_try
="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_cv_struct_tm=time.h
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 ac_cv_struct_tm=sys/time.h
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13719 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13720 if test $ac_cv_struct_tm = sys/time.h; then
13722 cat >>confdefs.h <<\_ACEOF
13723 #define TM_IN_SYS_TIME 1
13728 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13729 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13730 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 cat >conftest.$ac_ext <<_ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 #include <sys/types.h>
13740 #include <$ac_cv_struct_tm>
13746 static struct tm ac_aggr;
13747 if (ac_aggr.tm_zone)
13753 rm -f conftest.$ac_objext
13754 if { (ac_try="$ac_compile"
13755 case "(($ac_try" in
13756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13757 *) ac_try_echo
=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_compile") 2>conftest.er1
13762 grep -v '^ *+' conftest.er1
>conftest.err
13764 cat conftest.err
>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } && {
13767 test -z "$ac_c_werror_flag" ||
13768 test ! -s conftest.err
13769 } && test -s conftest.
$ac_objext; then
13770 ac_cv_member_struct_tm_tm_zone
=yes
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.
$ac_ext >&5
13775 cat >conftest.
$ac_ext <<_ACEOF
13778 cat confdefs.h
>>conftest.
$ac_ext
13779 cat >>conftest.
$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 #include <sys/types.h>
13782 #include <$ac_cv_struct_tm>
13788 static struct tm ac_aggr;
13789 if (sizeof ac_aggr.tm_zone)
13795 rm -f conftest.
$ac_objext
13796 if { (ac_try
="$ac_compile"
13797 case "(($ac_try" in
13798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_compile") 2>conftest.er1
13804 grep -v '^ *+' conftest.er1 >conftest.err
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } && {
13809 test -z "$ac_c_werror_flag" ||
13810 test ! -s conftest.err
13811 } && test -s conftest.$ac_objext; then
13812 ac_cv_member_struct_tm_tm_zone=yes
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 ac_cv_member_struct_tm_tm_zone=no
13820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13826 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13827 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_STRUCT_TM_TM_ZONE 1
13836 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13838 cat >>confdefs.h <<\_ACEOF
13839 #define HAVE_TM_ZONE 1
13843 { echo "$as_me:$LINENO: checking for tzname" >&5
13844 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13845 if test "${ac_cv_var_tzname+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 #ifndef tzname /* For SGI. */
13856 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13871 *) ac_try_echo
=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_link") 2>conftest.er1
13876 grep -v '^ *+' conftest.er1
>conftest.err
13878 cat conftest.err
>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } && {
13881 test -z "$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13883 } && test -s conftest
$ac_exeext &&
13884 $as_test_x conftest
$ac_exeext; then
13885 ac_cv_var_tzname
=yes
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.
$ac_ext >&5
13890 ac_cv_var_tzname
=no
13893 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13894 conftest
$ac_exeext conftest.
$ac_ext
13896 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13897 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13898 if test $ac_cv_var_tzname = yes; then
13900 cat >>confdefs.h
<<\_ACEOF
13901 #define HAVE_TZNAME 1
13906 { echo "$as_me:$LINENO: checking for union semun" >&5
13907 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13908 if test "${ac_cv_type_union_semun+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 cat >conftest.
$ac_ext <<_ACEOF
13914 cat confdefs.h
>>conftest.
$ac_ext
13915 cat >>conftest.
$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 #include <sys/types.h>
13918 #include <sys/ipc.h>
13919 #include <sys/sem.h>
13921 typedef union semun ac__type_new_;
13925 if ((ac__type_new_ *) 0)
13927 if (sizeof (ac__type_new_))
13933 rm -f conftest.
$ac_objext
13934 if { (ac_try
="$ac_compile"
13935 case "(($ac_try" in
13936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_compile") 2>conftest.er1
13942 grep -v '^ *+' conftest.er1 >conftest.err
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest.$ac_objext; then
13950 ac_cv_type_union_semun=yes
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13955 ac_cv_type_union_semun=no
13958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13961 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13962 if test $ac_cv_type_union_semun = yes; then
13964 cat >>confdefs.h <<_ACEOF
13965 #define HAVE_UNION_SEMUN 1
13971 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13972 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13973 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 cat >conftest.$ac_ext <<_ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #include <sys/types.h>
13983 #ifdef HAVE_SYS_UN_H
13984 #include <sys/un.h>
13988 typedef struct sockaddr_un ac__type_new_;
13992 if ((ac__type_new_ *) 0)
13994 if (sizeof (ac__type_new_))
14000 rm -f conftest.$ac_objext
14001 if { (ac_try="$ac_compile"
14002 case "(($ac_try" in
14003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14004 *) ac_try_echo
=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_compile") 2>conftest.er1
14009 grep -v '^ *+' conftest.er1
>conftest.err
14011 cat conftest.err
>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest.
$ac_objext; then
14017 ac_cv_type_struct_sockaddr_un
=yes
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.
$ac_ext >&5
14022 ac_cv_type_struct_sockaddr_un
=no
14025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14027 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14028 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14029 if test $ac_cv_type_struct_sockaddr_un = yes; then
14031 cat >>confdefs.h
<<_ACEOF
14032 #define HAVE_STRUCT_SOCKADDR_UN 1
14036 cat >>confdefs.h
<<\_ACEOF
14037 #define HAVE_UNIX_SOCKETS 1
14042 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14043 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14044 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 cat >conftest.
$ac_ext <<_ACEOF
14050 cat confdefs.h
>>conftest.
$ac_ext
14051 cat >>conftest.
$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 #include <sys/types.h>
14054 #ifdef HAVE_SYS_SOCKET_H
14055 #include <sys/socket.h>
14059 typedef struct sockaddr_storage ac__type_new_;
14063 if ((ac__type_new_ *) 0)
14065 if (sizeof (ac__type_new_))
14071 rm -f conftest.
$ac_objext
14072 if { (ac_try
="$ac_compile"
14073 case "(($ac_try" in
14074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_compile") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } && {
14085 test -z "$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14087 } && test -s conftest.$ac_objext; then
14088 ac_cv_type_struct_sockaddr_storage=yes
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ac_cv_type_struct_sockaddr_storage=no
14096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14099 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14100 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14102 cat >>confdefs.h <<_ACEOF
14103 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14109 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14110 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14111 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 cat >conftest.$ac_ext <<_ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14120 #include <sys/types.h>
14121 #ifdef HAVE_SYS_SOCKET_H
14122 #include <sys/socket.h>
14129 static struct sockaddr_storage ac_aggr;
14130 if (ac_aggr.ss_family)
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14140 *) ac_try_echo
=$ac_try;;
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_compile") 2>conftest.er1
14145 grep -v '^ *+' conftest.er1
>conftest.err
14147 cat conftest.err
>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest.
$ac_objext; then
14153 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.
$ac_ext >&5
14158 cat >conftest.
$ac_ext <<_ACEOF
14161 cat confdefs.h
>>conftest.
$ac_ext
14162 cat >>conftest.
$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 #include <sys/types.h>
14165 #ifdef HAVE_SYS_SOCKET_H
14166 #include <sys/socket.h>
14173 static struct sockaddr_storage ac_aggr;
14174 if (sizeof ac_aggr.ss_family)
14180 rm -f conftest.
$ac_objext
14181 if { (ac_try
="$ac_compile"
14182 case "(($ac_try" in
14183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14187 (eval "$ac_compile") 2>conftest.er1
14189 grep -v '^ *+' conftest.er1 >conftest.err
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } && {
14194 test -z "$ac_c_werror_flag" ||
14195 test ! -s conftest.err
14196 } && test -s conftest.$ac_objext; then
14197 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14202 ac_cv_member_struct_sockaddr_storage_ss_family=no
14205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14211 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14212 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14214 cat >>confdefs.h <<_ACEOF
14215 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14220 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14221 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14222 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 cat >conftest.$ac_ext <<_ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <sys/types.h>
14232 #ifdef HAVE_SYS_SOCKET_H
14233 #include <sys/socket.h>
14240 static struct sockaddr_storage ac_aggr;
14241 if (ac_aggr.__ss_family)
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14251 *) ac_try_echo
=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1
>conftest.err
14258 cat conftest.err
>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.
$ac_objext; then
14264 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.
$ac_ext >&5
14269 cat >conftest.
$ac_ext <<_ACEOF
14272 cat confdefs.h
>>conftest.
$ac_ext
14273 cat >>conftest.
$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 #include <sys/types.h>
14276 #ifdef HAVE_SYS_SOCKET_H
14277 #include <sys/socket.h>
14284 static struct sockaddr_storage ac_aggr;
14285 if (sizeof ac_aggr.__ss_family)
14291 rm -f conftest.
$ac_objext
14292 if { (ac_try
="$ac_compile"
14293 case "(($ac_try" in
14294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_compile") 2>conftest.er1
14300 grep -v '^ *+' conftest.er1 >conftest.err
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } && {
14305 test -z "$ac_c_werror_flag" ||
14306 test ! -s conftest.err
14307 } && test -s conftest.$ac_objext; then
14308 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14310 echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14313 ac_cv_member_struct_sockaddr_storage___ss_family=no
14316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14322 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14323 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14325 cat >>confdefs.h <<_ACEOF
14326 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14331 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14332 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14333 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 cat >conftest.$ac_ext <<_ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 #include <sys/types.h>
14343 #ifdef HAVE_SYS_SOCKET_H
14344 #include <sys/socket.h>
14351 static struct sockaddr_storage ac_aggr;
14352 if (ac_aggr.ss_len)
14358 rm -f conftest.$ac_objext
14359 if { (ac_try="$ac_compile"
14360 case "(($ac_try" in
14361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14362 *) ac_try_echo
=$ac_try;;
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_compile") 2>conftest.er1
14367 grep -v '^ *+' conftest.er1
>conftest.err
14369 cat conftest.err
>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && {
14372 test -z "$ac_c_werror_flag" ||
14373 test ! -s conftest.err
14374 } && test -s conftest.
$ac_objext; then
14375 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
14377 echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.
$ac_ext >&5
14380 cat >conftest.
$ac_ext <<_ACEOF
14383 cat confdefs.h
>>conftest.
$ac_ext
14384 cat >>conftest.
$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14386 #include <sys/types.h>
14387 #ifdef HAVE_SYS_SOCKET_H
14388 #include <sys/socket.h>
14395 static struct sockaddr_storage ac_aggr;
14396 if (sizeof ac_aggr.ss_len)
14402 rm -f conftest.
$ac_objext
14403 if { (ac_try
="$ac_compile"
14404 case "(($ac_try" in
14405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_compile") 2>conftest.er1
14411 grep -v '^ *+' conftest.er1 >conftest.err
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } && {
14416 test -z "$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 } && test -s conftest.$ac_objext; then
14419 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14424 ac_cv_member_struct_sockaddr_storage_ss_len=no
14427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14433 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14434 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14442 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14443 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14444 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+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>
14462 static struct sockaddr_storage ac_aggr;
14463 if (ac_aggr.__ss_len)
14469 rm -f conftest.$ac_objext
14470 if { (ac_try="$ac_compile"
14471 case "(($ac_try" in
14472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14473 *) ac_try_echo
=$ac_try;;
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_compile") 2>conftest.er1
14478 grep -v '^ *+' conftest.er1
>conftest.err
14480 cat conftest.err
>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest.
$ac_objext; then
14486 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.
$ac_ext >&5
14491 cat >conftest.
$ac_ext <<_ACEOF
14494 cat confdefs.h
>>conftest.
$ac_ext
14495 cat >>conftest.
$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <sys/types.h>
14498 #ifdef HAVE_SYS_SOCKET_H
14499 #include <sys/socket.h>
14506 static struct sockaddr_storage ac_aggr;
14507 if (sizeof ac_aggr.__ss_len)
14513 rm -f conftest.
$ac_objext
14514 if { (ac_try
="$ac_compile"
14515 case "(($ac_try" in
14516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_compile") 2>conftest.er1
14522 grep -v '^ *+' conftest.er1 >conftest.err
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } && {
14527 test -z "$ac_c_werror_flag" ||
14528 test ! -s conftest.err
14529 } && test -s conftest.$ac_objext; then
14530 ac_cv_member_struct_sockaddr_storage___ss_len=yes
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_cv_member_struct_sockaddr_storage___ss_len=no
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14544 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14545 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14553 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14554 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14555 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
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 ac_aggr;
14574 if (ac_aggr.sa_len)
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_sa_len
=yes
14599 echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.
$ac_ext >&5
14602 cat >conftest.
$ac_ext <<_ACEOF
14605 cat confdefs.h
>>conftest.
$ac_ext
14606 cat >>conftest.
$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 #include <sys/types.h>
14609 #ifdef HAVE_SYS_SOCKET_H
14610 #include <sys/socket.h>
14617 static struct sockaddr ac_aggr;
14618 if (sizeof ac_aggr.sa_len)
14624 rm -f conftest.
$ac_objext
14625 if { (ac_try
="$ac_compile"
14626 case "(($ac_try" in
14627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_compile") 2>conftest.er1
14633 grep -v '^ *+' conftest.er1 >conftest.err
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } && {
14638 test -z "$ac_c_werror_flag" ||
14639 test ! -s conftest.err
14640 } && test -s conftest.$ac_objext; then
14641 ac_cv_member_struct_sockaddr_sa_len=yes
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_cv_member_struct_sockaddr_sa_len=no
14649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14655 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14656 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14658 cat >>confdefs.h <<_ACEOF
14659 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14665 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14666 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14667 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 cat >conftest.$ac_ext <<_ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <sys/types.h>
14677 #include <sys/socket.h>
14681 typedef struct addrinfo ac__type_new_;
14685 if ((ac__type_new_ *) 0)
14687 if (sizeof (ac__type_new_))
14693 rm -f conftest.$ac_objext
14694 if { (ac_try="$ac_compile"
14695 case "(($ac_try" in
14696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14697 *) ac_try_echo
=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_compile") 2>conftest.er1
14702 grep -v '^ *+' conftest.er1
>conftest.err
14704 cat conftest.err
>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest.
$ac_objext; then
14710 ac_cv_type_struct_addrinfo
=yes
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.
$ac_ext >&5
14715 ac_cv_type_struct_addrinfo
=no
14718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14720 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14721 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14722 if test $ac_cv_type_struct_addrinfo = yes; then
14724 cat >>confdefs.h
<<_ACEOF
14725 #define HAVE_STRUCT_ADDRINFO 1
14732 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14733 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14734 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 cat >conftest.
$ac_ext <<_ACEOF
14740 cat confdefs.h
>>conftest.
$ac_ext
14741 cat >>conftest.
$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 #include <sys/param.h>
14744 #include <sys/types.h>
14745 #include <sys/socket.h>
14746 #include <sys/ucred.h>
14748 typedef struct cmsgcred ac__type_new_;
14752 if ((ac__type_new_ *) 0)
14754 if (sizeof (ac__type_new_))
14760 rm -f conftest.
$ac_objext
14761 if { (ac_try
="$ac_compile"
14762 case "(($ac_try" in
14763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest.$ac_objext; then
14777 ac_cv_type_struct_cmsgcred=yes
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_type_struct_cmsgcred=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14788 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14789 if test $ac_cv_type_struct_cmsgcred = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define HAVE_STRUCT_CMSGCRED 1
14797 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14798 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14799 if test "${ac_cv_type_struct_fcred+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14802 cat >conftest.$ac_ext <<_ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 #include <sys/param.h>
14809 #include <sys/types.h>
14810 #include <sys/socket.h>
14811 #include <sys/ucred.h>
14813 typedef struct fcred ac__type_new_;
14817 if ((ac__type_new_ *) 0)
14819 if (sizeof (ac__type_new_))
14825 rm -f conftest.$ac_objext
14826 if { (ac_try="$ac_compile"
14827 case "(($ac_try" in
14828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14829 *) ac_try_echo
=$ac_try;;
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_compile") 2>conftest.er1
14834 grep -v '^ *+' conftest.er1
>conftest.err
14836 cat conftest.err
>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && {
14839 test -z "$ac_c_werror_flag" ||
14840 test ! -s conftest.err
14841 } && test -s conftest.
$ac_objext; then
14842 ac_cv_type_struct_fcred
=yes
14844 echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.
$ac_ext >&5
14847 ac_cv_type_struct_fcred
=no
14850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14853 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14854 if test $ac_cv_type_struct_fcred = yes; then
14856 cat >>confdefs.h
<<_ACEOF
14857 #define HAVE_STRUCT_FCRED 1
14862 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14863 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14864 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 cat >conftest.
$ac_ext <<_ACEOF
14870 cat confdefs.h
>>conftest.
$ac_ext
14871 cat >>conftest.
$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <sys/param.h>
14874 #include <sys/types.h>
14875 #include <sys/socket.h>
14876 #include <sys/ucred.h>
14878 typedef struct sockcred ac__type_new_;
14882 if ((ac__type_new_ *) 0)
14884 if (sizeof (ac__type_new_))
14890 rm -f conftest.
$ac_objext
14891 if { (ac_try
="$ac_compile"
14892 case "(($ac_try" in
14893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_compile") 2>conftest.er1
14899 grep -v '^ *+' conftest.er1 >conftest.err
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } && {
14904 test -z "$ac_c_werror_flag" ||
14905 test ! -s conftest.err
14906 } && test -s conftest.$ac_objext; then
14907 ac_cv_type_struct_sockcred=yes
14909 echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14912 ac_cv_type_struct_sockcred=no
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14918 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14919 if test $ac_cv_type_struct_sockcred = yes; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define HAVE_STRUCT_SOCKCRED 1
14929 { echo "$as_me:$LINENO: checking for struct option" >&5
14930 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14931 if test "${ac_cv_type_struct_option+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 cat >conftest.$ac_ext <<_ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #ifdef HAVE_GETOPT_H
14941 #include <getopt.h>
14944 typedef struct option ac__type_new_;
14948 if ((ac__type_new_ *) 0)
14950 if (sizeof (ac__type_new_))
14956 rm -f conftest.$ac_objext
14957 if { (ac_try="$ac_compile"
14958 case "(($ac_try" in
14959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14960 *) ac_try_echo
=$ac_try;;
14962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14963 (eval "$ac_compile") 2>conftest.er1
14965 grep -v '^ *+' conftest.er1
>conftest.err
14967 cat conftest.err
>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } && {
14970 test -z "$ac_c_werror_flag" ||
14971 test ! -s conftest.err
14972 } && test -s conftest.
$ac_objext; then
14973 ac_cv_type_struct_option
=yes
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.
$ac_ext >&5
14978 ac_cv_type_struct_option
=no
14981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14983 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14984 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14985 if test $ac_cv_type_struct_option = yes; then
14987 cat >>confdefs.h
<<_ACEOF
14988 #define HAVE_STRUCT_OPTION 1
14995 if test "$with_zlib" = yes; then
14996 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14997 # did not). While we could work around the lack of z_streamp, it
14998 # seems unwise to encourage people to use such old zlib versions...
14999 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15000 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15001 if test "${ac_cv_type_z_streamp+set}" = set; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 cat >conftest.
$ac_ext <<_ACEOF
15007 cat confdefs.h
>>conftest.
$ac_ext
15008 cat >>conftest.
$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15012 typedef z_streamp ac__type_new_;
15016 if ((ac__type_new_ *) 0)
15018 if (sizeof (ac__type_new_))
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_type_z_streamp=yes
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_cv_type_z_streamp=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15052 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15053 if test $ac_cv_type_z_streamp = yes; then
15056 { { echo "$as_me:$LINENO: error: zlib version is too old
15057 Use --without-zlib to disable zlib support." >&5
15058 echo "$as_me: error: zlib version is too old
15059 Use --without-zlib to disable zlib support." >&2;}
15060 { (exit 1); exit 1; }; }
15065 if test "$with_krb5" = yes; then
15066 # Check for differences between MIT and Heimdal (KTH) releases
15067 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15068 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15069 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 cat >conftest.$ac_ext <<_ACEOF
15075 cat confdefs.h >>conftest.$ac_ext
15076 cat >>conftest.$ac_ext <<_ACEOF
15077 /* end confdefs.h. */
15083 static krb5_ticket ac_aggr;
15084 if (ac_aggr.enc_part2)
15090 rm -f conftest.$ac_objext
15091 if { (ac_try="$ac_compile"
15092 case "(($ac_try" in
15093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15094 *) ac_try_echo
=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_compile") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1
>conftest.err
15101 cat conftest.err
>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest.
$ac_objext; then
15107 ac_cv_member_krb5_ticket_enc_part2
=yes
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.
$ac_ext >&5
15112 cat >conftest.
$ac_ext <<_ACEOF
15115 cat confdefs.h
>>conftest.
$ac_ext
15116 cat >>conftest.
$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15123 static krb5_ticket ac_aggr;
15124 if (sizeof ac_aggr.enc_part2)
15130 rm -f conftest.
$ac_objext
15131 if { (ac_try
="$ac_compile"
15132 case "(($ac_try" in
15133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15139 grep -v '^ *+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest.$ac_objext; then
15147 ac_cv_member_krb5_ticket_enc_part2=yes
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 ac_cv_member_krb5_ticket_enc_part2=no
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15161 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15162 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_KRB5_TICKET_ENC_PART2 1
15170 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15171 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15172 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15186 static krb5_ticket ac_aggr;
15187 if (ac_aggr.client)
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15197 *) ac_try_echo
=$ac_try;;
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1
>conftest.err
15204 cat conftest.err
>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest.
$ac_objext; then
15210 ac_cv_member_krb5_ticket_client
=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.
$ac_ext >&5
15215 cat >conftest.
$ac_ext <<_ACEOF
15218 cat confdefs.h
>>conftest.
$ac_ext
15219 cat >>conftest.
$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15226 static krb5_ticket ac_aggr;
15227 if (sizeof ac_aggr.client)
15233 rm -f conftest.
$ac_objext
15234 if { (ac_try
="$ac_compile"
15235 case "(($ac_try" in
15236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_compile") 2>conftest.er1
15242 grep -v '^ *+' conftest.er1 >conftest.err
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest.$ac_objext; then
15250 ac_cv_member_krb5_ticket_client=yes
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_cv_member_krb5_ticket_client=no
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15264 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15265 if test $ac_cv_member_krb5_ticket_client = yes; then
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_KRB5_TICKET_CLIENT 1
15273 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15274 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15275 { (exit 1); exit 1; }; }
15280 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15281 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15282 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 cat >conftest.$ac_ext <<_ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15296 static krb5_error ac_aggr;
15297 if (ac_aggr.text.data)
15303 rm -f conftest.$ac_objext
15304 if { (ac_try="$ac_compile"
15305 case "(($ac_try" in
15306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15307 *) ac_try_echo
=$ac_try;;
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_compile") 2>conftest.er1
15312 grep -v '^ *+' conftest.er1
>conftest.err
15314 cat conftest.err
>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } && {
15317 test -z "$ac_c_werror_flag" ||
15318 test ! -s conftest.err
15319 } && test -s conftest.
$ac_objext; then
15320 ac_cv_member_krb5_error_text_data
=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.
$ac_ext >&5
15325 cat >conftest.
$ac_ext <<_ACEOF
15328 cat confdefs.h
>>conftest.
$ac_ext
15329 cat >>conftest.
$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15336 static krb5_error ac_aggr;
15337 if (sizeof ac_aggr.text.data)
15343 rm -f conftest.
$ac_objext
15344 if { (ac_try
="$ac_compile"
15345 case "(($ac_try" in
15346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_compile") 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && {
15357 test -z "$ac_c_werror_flag" ||
15358 test ! -s conftest.err
15359 } && test -s conftest.$ac_objext; then
15360 ac_cv_member_krb5_error_text_data=yes
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_cv_member_krb5_error_text_data=no
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15374 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15375 if test $ac_cv_member_krb5_error_text_data = yes; then
15377 cat >>confdefs.h <<_ACEOF
15378 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15383 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15384 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15385 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 cat >conftest.$ac_ext <<_ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15399 static krb5_error ac_aggr;
15400 if (ac_aggr.e_data)
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15410 *) ac_try_echo
=$ac_try;;
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_compile") 2>conftest.er1
15415 grep -v '^ *+' conftest.er1
>conftest.err
15417 cat conftest.err
>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest.
$ac_objext; then
15423 ac_cv_member_krb5_error_e_data
=yes
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.
$ac_ext >&5
15428 cat >conftest.
$ac_ext <<_ACEOF
15431 cat confdefs.h
>>conftest.
$ac_ext
15432 cat >>conftest.
$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15439 static krb5_error ac_aggr;
15440 if (sizeof ac_aggr.e_data)
15446 rm -f conftest.
$ac_objext
15447 if { (ac_try
="$ac_compile"
15448 case "(($ac_try" in
15449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15453 (eval "$ac_compile") 2>conftest.er1
15455 grep -v '^ *+' conftest.er1 >conftest.err
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } && {
15460 test -z "$ac_c_werror_flag" ||
15461 test ! -s conftest.err
15462 } && test -s conftest.$ac_objext; then
15463 ac_cv_member_krb5_error_e_data=yes
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 ac_cv_member_krb5_error_e_data=no
15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15477 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15478 if test $ac_cv_member_krb5_error_e_data = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_KRB5_ERROR_E_DATA 1
15486 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15487 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15488 { (exit 1); exit 1; }; }
15494 # Win32 requires headers to be loaded for __stdcall, so can't use
15495 # AC_CHECK_FUNCS here.
15496 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15497 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15508 krb5_free_unparsed_name(NULL,NULL);
15513 rm -f conftest.$ac_objext conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15517 *) ac_try_echo
=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1
>conftest.err
15524 cat conftest.err
>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest
$ac_exeext &&
15530 $as_test_x conftest
$ac_exeext; then
15532 cat >>confdefs.h
<<\_ACEOF
15533 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15536 { echo "$as_me:$LINENO: result: yes" >&5
15537 echo "${ECHO_T}yes" >&6; }
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.
$ac_ext >&5
15542 { echo "$as_me:$LINENO: result: no" >&5
15543 echo "${ECHO_T}no" >&6; }
15546 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15547 conftest
$ac_exeext conftest.
$ac_ext
15552 ## Functions, global variables
15555 { echo "$as_me:$LINENO: checking for int timezone" >&5
15556 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15557 if test "${pgac_cv_var_int_timezone+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 cat >conftest.
$ac_ext <<_ACEOF
15563 cat confdefs.h
>>conftest.
$ac_ext
15564 cat >>conftest.
$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15572 res = timezone / 60;
15574 res = _timezone / 60;
15580 rm -f conftest.
$ac_objext conftest
$ac_exeext
15581 if { (ac_try
="$ac_link"
15582 case "(($ac_try" in
15583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_link") 2>conftest.er1
15589 grep -v '^ *+' conftest.er1 >conftest.err
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && {
15594 test -z "$ac_c_werror_flag" ||
15595 test ! -s conftest.err
15596 } && test -s conftest$ac_exeext &&
15597 $as_test_x conftest$ac_exeext; then
15598 pgac_cv_var_int_timezone=yes
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 pgac_cv_var_int_timezone=no
15606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15607 conftest$ac_exeext conftest.$ac_ext
15609 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15610 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15611 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_INT_TIMEZONE
15618 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15619 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15620 if test "${ac_cv_func_accept_return+set}" = set; then
15621 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 if test "${ac_cv_func_accept_arg1+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 if test "${ac_cv_func_accept_arg2+set}" = set; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 if test "${ac_cv_func_accept_arg3+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15633 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15634 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15635 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 #ifdef HAVE_SYS_TYPES_H
15643 #include <sys/types.h>
15645 #ifdef HAVE_SYS_SOCKET_H
15646 #include <sys/socket.h>
15648 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15657 rm -f conftest.$ac_objext
15658 if { (ac_try="$ac_compile"
15659 case "(($ac_try" in
15660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15661 *) ac_try_echo
=$ac_try;;
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_compile") 2>conftest.er1
15666 grep -v '^ *+' conftest.er1
>conftest.err
15668 cat conftest.err
>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } && {
15671 test -z "$ac_c_werror_flag" ||
15672 test ! -s conftest.err
15673 } && test -s conftest.
$ac_objext; then
15674 ac_not_found
=no
; break 4
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.
$ac_ext >&5
15682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15687 if test "$ac_not_found" = yes; then
15688 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15689 echo "$as_me: error: could not determine argument types" >&2;}
15690 { (exit 1); exit 1; }; }
15692 if test "$ac_cv_func_accept_arg3" = "void"; then
15693 ac_cv_func_accept_arg3
=int
15703 { 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
15704 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15706 cat >>confdefs.h
<<_ACEOF
15707 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15711 cat >>confdefs.h
<<_ACEOF
15712 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15716 cat >>confdefs.h
<<_ACEOF
15717 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15721 cat >>confdefs.h
<<_ACEOF
15722 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15726 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15727 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15728 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 cat >conftest.
$ac_ext <<_ACEOF
15734 cat confdefs.h
>>conftest.
$ac_ext
15735 cat >>conftest.
$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 #include <sys/time.h>
15741 struct timeval *tp;
15742 struct timezone *tzp;
15743 gettimeofday(tp,tzp);
15748 rm -f conftest.
$ac_objext
15749 if { (ac_try
="$ac_compile"
15750 case "(($ac_try" in
15751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_compile") 2>conftest.er1
15757 grep -v '^ *+' conftest.er1 >conftest.err
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && {
15762 test -z "$ac_c_werror_flag" ||
15763 test ! -s conftest.err
15764 } && test -s conftest.$ac_objext; then
15765 pgac_cv_func_gettimeofday_1arg=no
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 pgac_cv_func_gettimeofday_1arg=yes
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15776 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15777 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15779 cat >>confdefs.h <<\_ACEOF
15780 #define GETTIMEOFDAY_1ARG
15807 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
15809 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15823 #define $ac_func innocuous_$ac_func
15825 /* System header to define __stub macros and hopefully few prototypes,
15826 which can conflict with char $ac_func (); below.
15827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15828 <limits.h> exists even on freestanding compilers. */
15831 # include <limits.h>
15833 # include <assert.h>
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15845 /* The GNU C library defines this for functions which it implements
15846 to always fail with ENOSYS. Some functions are actually named
15847 something starting with __ and the normal name is an alias. */
15848 #if defined __stub_$ac_func || defined __stub___$ac_func
15855 return $ac_func ();
15860 rm -f conftest.$ac_objext conftest$ac_exeext
15861 if { (ac_try="$ac_link"
15862 case "(($ac_try" in
15863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15864 *) ac_try_echo
=$ac_try;;
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_link") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1
>conftest.err
15871 cat conftest.err
>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } && {
15874 test -z "$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 } && test -s conftest
$ac_exeext &&
15877 $as_test_x conftest
$ac_exeext; then
15878 eval "$as_ac_var=yes"
15880 echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.
$ac_ext >&5
15883 eval "$as_ac_var=no"
15886 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15887 conftest
$ac_exeext conftest.
$ac_ext
15889 ac_res
=`eval echo '${'$as_ac_var'}'`
15890 { echo "$as_me:$LINENO: result: $ac_res" >&5
15891 echo "${ECHO_T}$ac_res" >&6; }
15892 if test `eval echo '${'$as_ac_var'}'` = yes; then
15893 cat >>confdefs.h
<<_ACEOF
15894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15901 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15902 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15903 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 cat >conftest.
$ac_ext <<_ACEOF
15909 cat confdefs.h
>>conftest.
$ac_ext
15910 cat >>conftest.
$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 #include <unistd.h>
15925 rm -f conftest.
$ac_objext
15926 if { (ac_try
="$ac_compile"
15927 case "(($ac_try" in
15928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_compile") 2>conftest.er1
15934 grep -v '^ *+' conftest.er1 >conftest.err
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } && {
15939 test -z "$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15941 } && test -s conftest.$ac_objext; then
15942 ac_cv_have_decl_fdatasync=yes
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 ac_cv_have_decl_fdatasync=no
15950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15953 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15954 if test $ac_cv_have_decl_fdatasync = yes; then
15956 cat >>confdefs.h <<_ACEOF
15957 #define HAVE_DECL_FDATASYNC 1
15962 cat >>confdefs.h <<_ACEOF
15963 #define HAVE_DECL_FDATASYNC 0
15970 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15971 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15972 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15986 #ifndef posix_fadvise
15987 (void) posix_fadvise;
15994 rm -f conftest.$ac_objext
15995 if { (ac_try="$ac_compile"
15996 case "(($ac_try" in
15997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15998 *) ac_try_echo
=$ac_try;;
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_compile") 2>conftest.er1
16003 grep -v '^ *+' conftest.er1
>conftest.err
16005 cat conftest.err
>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } && {
16008 test -z "$ac_c_werror_flag" ||
16009 test ! -s conftest.err
16010 } && test -s conftest.
$ac_objext; then
16011 ac_cv_have_decl_posix_fadvise
=yes
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.
$ac_ext >&5
16016 ac_cv_have_decl_posix_fadvise
=no
16019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16021 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16022 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16023 if test $ac_cv_have_decl_posix_fadvise = yes; then
16025 cat >>confdefs.h
<<_ACEOF
16026 #define HAVE_DECL_POSIX_FADVISE 1
16031 cat >>confdefs.h
<<_ACEOF
16032 #define HAVE_DECL_POSIX_FADVISE 0
16039 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16040 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16041 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 cat >conftest.
$ac_ext <<_ACEOF
16047 cat confdefs.h
>>conftest.
$ac_ext
16048 cat >>conftest.
$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16050 $ac_includes_default
16062 rm -f conftest.
$ac_objext
16063 if { (ac_try
="$ac_compile"
16064 case "(($ac_try" in
16065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_compile") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest.$ac_objext; then
16079 ac_cv_have_decl_strlcat=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_have_decl_strlcat=no
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16090 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16091 if test $ac_cv_have_decl_strlcat = yes; then
16093 cat >>confdefs.h <<_ACEOF
16094 #define HAVE_DECL_STRLCAT 1
16099 cat >>confdefs.h <<_ACEOF
16100 #define HAVE_DECL_STRLCAT 0
16105 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16106 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16107 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 cat >conftest.$ac_ext <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 $ac_includes_default
16128 rm -f conftest.$ac_objext
16129 if { (ac_try="$ac_compile"
16130 case "(($ac_try" in
16131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16132 *) ac_try_echo
=$ac_try;;
16134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16135 (eval "$ac_compile") 2>conftest.er1
16137 grep -v '^ *+' conftest.er1
>conftest.err
16139 cat conftest.err
>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } && {
16142 test -z "$ac_c_werror_flag" ||
16143 test ! -s conftest.err
16144 } && test -s conftest.
$ac_objext; then
16145 ac_cv_have_decl_strlcpy
=yes
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.
$ac_ext >&5
16150 ac_cv_have_decl_strlcpy
=no
16153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16156 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16157 if test $ac_cv_have_decl_strlcpy = yes; then
16159 cat >>confdefs.h
<<_ACEOF
16160 #define HAVE_DECL_STRLCPY 1
16165 cat >>confdefs.h
<<_ACEOF
16166 #define HAVE_DECL_STRLCPY 0
16173 # This is probably only present on Darwin, but may as well check always
16174 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16175 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16176 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16179 cat >conftest.
$ac_ext <<_ACEOF
16182 cat confdefs.h
>>conftest.
$ac_ext
16183 cat >>conftest.
$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16190 #ifndef F_FULLFSYNC
16191 (void) F_FULLFSYNC;
16198 rm -f conftest.
$ac_objext
16199 if { (ac_try
="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16215 ac_cv_have_decl_F_FULLFSYNC=yes
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_cv_have_decl_F_FULLFSYNC=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16226 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16227 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_DECL_F_FULLFSYNC 1
16235 cat >>confdefs.h <<_ACEOF
16236 #define HAVE_DECL_F_FULLFSYNC 0
16245 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16246 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16247 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 cat >conftest.$ac_ext <<_ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 $ac_includes_default
16257 #include <netinet/in.h>
16259 typedef struct sockaddr_in6 ac__type_new_;
16263 if ((ac__type_new_ *) 0)
16265 if (sizeof (ac__type_new_))
16271 rm -f conftest.$ac_objext
16272 if { (ac_try="$ac_compile"
16273 case "(($ac_try" in
16274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16275 *) ac_try_echo
=$ac_try;;
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_compile") 2>conftest.er1
16280 grep -v '^ *+' conftest.er1
>conftest.err
16282 cat conftest.err
>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } && {
16285 test -z "$ac_c_werror_flag" ||
16286 test ! -s conftest.err
16287 } && test -s conftest.
$ac_objext; then
16288 ac_cv_type_struct_sockaddr_in6
=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.
$ac_ext >&5
16293 ac_cv_type_struct_sockaddr_in6
=no
16296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16299 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16300 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16302 cat >>confdefs.h
<<\_ACEOF
16303 #define HAVE_IPV6 1
16311 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16312 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16313 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 cat >conftest.
$ac_ext <<_ACEOF
16319 cat confdefs.h
>>conftest.
$ac_ext
16320 cat >>conftest.
$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16322 #include <machine/vmparam.h>
16323 #include <sys/exec.h>
16328 PS_STRINGS->ps_nargvstr = 1;
16329 PS_STRINGS->ps_argvstr = "foo";
16334 rm -f conftest.
$ac_objext conftest
$ac_exeext
16335 if { (ac_try
="$ac_link"
16336 case "(($ac_try" in
16337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_link") 2>conftest.er1
16343 grep -v '^ *+' conftest.er1 >conftest.err
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } && {
16348 test -z "$ac_c_werror_flag" ||
16349 test ! -s conftest.err
16350 } && test -s conftest$ac_exeext &&
16351 $as_test_x conftest$ac_exeext; then
16352 pgac_cv_var_PS_STRINGS=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 pgac_cv_var_PS_STRINGS=no
16360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16361 conftest$ac_exeext conftest.$ac_ext
16363 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16364 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16365 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16367 cat >>confdefs.h <<\_ACEOF
16368 #define HAVE_PS_STRINGS
16374 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16375 # is missing. Yes, there are machines that have only one. We may
16376 # also decide to use snprintf.c if snprintf() is present but does not
16377 # have all the features we need --- see below.
16379 if test "$PORTNAME" = "win32"; then
16380 # Win32 gets snprintf.c built unconditionally.
16382 # To properly translate all NLS languages strings, we must support the
16383 # *printf() %$ format, which allows *printf() arguments to be selected
16384 # by position in the translated string.
16386 # libintl versions < 0.13 use the native *printf() functions, and Win32
16387 # *printf() doesn't understand %$, so we must use our /port versions,
16388 # which do understand %$. libintl versions >= 0.13 include their own
16389 # *printf versions on Win32. The libintl 0.13 release note text is:
16391 # C format strings with positions, as they arise when a translator
16392 # needs to reorder a sentence, are now supported on all platforms.
16393 # On those few platforms (NetBSD and Woe32) for which the native
16394 # printf()/fprintf()/... functions don't support such format
16395 # strings, replacements are provided through <libintl.h>.
16397 # We could use libintl >= 0.13's *printf() if we were sure that we had
16398 # a litint >= 0.13 at runtime, but seeing that there is no clean way
16399 # to guarantee that, it is best to just use our own, so we are sure to
16400 # get %$ support. In include/port.h we disable the *printf() macros
16401 # that might have been defined by libintl.
16403 # We do this unconditionally whether NLS is used or not so we are sure
16404 # that all Win32 libraries and binaries behave the same.
16405 pgac_need_repl_snprintf=yes
16407 pgac_need_repl_snprintf=no
16409 for ac_func in snprintf
16411 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16425 #define $ac_func innocuous_$ac_func
16427 /* System header to define __stub macros and hopefully few prototypes,
16428 which can conflict with char $ac_func (); below.
16429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16430 <limits.h> exists even on freestanding compilers. */
16433 # include <limits.h>
16435 # include <assert.h>
16440 /* Override any GCC internal prototype to avoid an error.
16441 Use char because int might match the return type of a GCC
16442 builtin and then its argument prototype would still apply. */
16447 /* The GNU C library defines this for functions which it implements
16448 to always fail with ENOSYS. Some functions are actually named
16449 something starting with __ and the normal name is an alias. */
16450 #if defined __stub_$ac_func || defined __stub___$ac_func
16457 return $ac_func ();
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (ac_try="$ac_link"
16464 case "(($ac_try" in
16465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16466 *) ac_try_echo
=$ac_try;;
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_link") 2>conftest.er1
16471 grep -v '^ *+' conftest.er1
>conftest.err
16473 cat conftest.err
>&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } && {
16476 test -z "$ac_c_werror_flag" ||
16477 test ! -s conftest.err
16478 } && test -s conftest
$ac_exeext &&
16479 $as_test_x conftest
$ac_exeext; then
16480 eval "$as_ac_var=yes"
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.
$ac_ext >&5
16485 eval "$as_ac_var=no"
16488 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16489 conftest
$ac_exeext conftest.
$ac_ext
16491 ac_res
=`eval echo '${'$as_ac_var'}'`
16492 { echo "$as_me:$LINENO: result: $ac_res" >&5
16493 echo "${ECHO_T}$ac_res" >&6; }
16494 if test `eval echo '${'$as_ac_var'}'` = yes; then
16495 cat >>confdefs.h
<<_ACEOF
16496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16500 pgac_need_repl_snprintf
=yes
16505 for ac_func
in vsnprintf
16507 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16510 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 cat >conftest.
$ac_ext <<_ACEOF
16516 cat confdefs.h
>>conftest.
$ac_ext
16517 cat >>conftest.
$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16521 #define $ac_func innocuous_$ac_func
16523 /* System header to define __stub macros and hopefully few prototypes,
16524 which can conflict with char $ac_func (); below.
16525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16526 <limits.h> exists even on freestanding compilers. */
16529 # include <limits.h>
16531 # include <assert.h>
16536 /* Override any GCC internal prototype to avoid an error.
16537 Use char because int might match the return type of a GCC
16538 builtin and then its argument prototype would still apply. */
16543 /* The GNU C library defines this for functions which it implements
16544 to always fail with ENOSYS. Some functions are actually named
16545 something starting with __ and the normal name is an alias. */
16546 #if defined __stub_$ac_func || defined __stub___$ac_func
16553 return $ac_func ();
16558 rm -f conftest.
$ac_objext conftest
$ac_exeext
16559 if { (ac_try
="$ac_link"
16560 case "(($ac_try" in
16561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_link") 2>conftest.er1
16567 grep -v '^ *+' conftest.er1 >conftest.err
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } && {
16572 test -z "$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 } && test -s conftest$ac_exeext &&
16575 $as_test_x conftest$ac_exeext; then
16576 eval "$as_ac_var=yes"
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 eval "$as_ac_var=no"
16584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16585 conftest$ac_exeext conftest.$ac_ext
16587 ac_res=`eval echo '${'$as_ac_var'}'`
16588 { echo "$as_me:$LINENO: result: $ac_res" >&5
16589 echo "${ECHO_T}$ac_res" >&6; }
16590 if test `eval echo '${'$as_ac_var'}'` = yes; then
16591 cat >>confdefs.h <<_ACEOF
16592 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16596 pgac_need_repl_snprintf=yes
16603 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16604 # include/c.h will provide declarations. Note this is a separate test
16605 # from whether the functions exist in the C library --- there are
16606 # systems that have the functions but don't bother to declare them :-(
16608 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16609 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16610 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 cat >conftest.$ac_ext <<_ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16619 $ac_includes_default
16631 rm -f conftest.$ac_objext
16632 if { (ac_try="$ac_compile"
16633 case "(($ac_try" in
16634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16635 *) ac_try_echo
=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16640 grep -v '^ *+' conftest.er1
>conftest.err
16642 cat conftest.err
>&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } && {
16645 test -z "$ac_c_werror_flag" ||
16646 test ! -s conftest.err
16647 } && test -s conftest.
$ac_objext; then
16648 ac_cv_have_decl_snprintf
=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.
$ac_ext >&5
16653 ac_cv_have_decl_snprintf
=no
16656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16658 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16659 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16660 if test $ac_cv_have_decl_snprintf = yes; then
16662 cat >>confdefs.h
<<_ACEOF
16663 #define HAVE_DECL_SNPRINTF 1
16668 cat >>confdefs.h
<<_ACEOF
16669 #define HAVE_DECL_SNPRINTF 0
16674 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16675 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16676 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 cat >conftest.
$ac_ext <<_ACEOF
16682 cat confdefs.h
>>conftest.
$ac_ext
16683 cat >>conftest.
$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 $ac_includes_default
16697 rm -f conftest.
$ac_objext
16698 if { (ac_try
="$ac_compile"
16699 case "(($ac_try" in
16700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } && {
16711 test -z "$ac_c_werror_flag" ||
16712 test ! -s conftest.err
16713 } && test -s conftest.$ac_objext; then
16714 ac_cv_have_decl_vsnprintf=yes
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_cv_have_decl_vsnprintf=no
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16724 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16725 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16726 if test $ac_cv_have_decl_vsnprintf = yes; then
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_DECL_VSNPRINTF 1
16734 cat >>confdefs.h <<_ACEOF
16735 #define HAVE_DECL_VSNPRINTF 0
16744 { echo "$as_me:$LINENO: checking for isinf" >&5
16745 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16746 if test "${ac_cv_func_isinf+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 cat >conftest.$ac_ext <<_ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16757 double glob_double;
16762 return isinf(glob_double) ? 0 : 1;
16767 rm -f conftest.$ac_objext conftest$ac_exeext
16768 if { (ac_try="$ac_link"
16769 case "(($ac_try" in
16770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16771 *) ac_try_echo
=$ac_try;;
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_link") 2>conftest.er1
16776 grep -v '^ *+' conftest.er1
>conftest.err
16778 cat conftest.err
>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } && {
16781 test -z "$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16783 } && test -s conftest
$ac_exeext &&
16784 $as_test_x conftest
$ac_exeext; then
16785 ac_cv_func_isinf
=yes
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.
$ac_ext >&5
16790 ac_cv_func_isinf
=no
16793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16794 conftest
$ac_exeext conftest.
$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16797 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16799 if test $ac_cv_func_isinf = yes ; then
16801 cat >>confdefs.h
<<\_ACEOF
16802 #define HAVE_ISINF 1
16806 case " $LIBOBJS " in
16807 *" isinf.$ac_objext "* ) ;;
16808 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext"
16812 # Look for a way to implement a substitute for isinf()
16817 for ac_func
in fpclass fp_class fp_class_d class
16819 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16822 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 cat >conftest.
$ac_ext <<_ACEOF
16828 cat confdefs.h
>>conftest.
$ac_ext
16829 cat >>conftest.
$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16833 #define $ac_func innocuous_$ac_func
16835 /* System header to define __stub macros and hopefully few prototypes,
16836 which can conflict with char $ac_func (); below.
16837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16838 <limits.h> exists even on freestanding compilers. */
16841 # include <limits.h>
16843 # include <assert.h>
16848 /* Override any GCC internal prototype to avoid an error.
16849 Use char because int might match the return type of a GCC
16850 builtin and then its argument prototype would still apply. */
16855 /* The GNU C library defines this for functions which it implements
16856 to always fail with ENOSYS. Some functions are actually named
16857 something starting with __ and the normal name is an alias. */
16858 #if defined __stub_$ac_func || defined __stub___$ac_func
16865 return $ac_func ();
16870 rm -f conftest.
$ac_objext conftest
$ac_exeext
16871 if { (ac_try
="$ac_link"
16872 case "(($ac_try" in
16873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_link") 2>conftest.er1
16879 grep -v '^ *+' conftest.er1 >conftest.err
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && {
16884 test -z "$ac_c_werror_flag" ||
16885 test ! -s conftest.err
16886 } && test -s conftest$ac_exeext &&
16887 $as_test_x conftest$ac_exeext; then
16888 eval "$as_ac_var=yes"
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 eval "$as_ac_var=no"
16896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16897 conftest$ac_exeext conftest.$ac_ext
16899 ac_res=`eval echo '${'$as_ac_var'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16912 # Some versions of libedit contain strlcpy(); so disregard that library while
16913 # checking for these standard libc functions.
16914 pgac_save_LIBS="$LIBS"
16915 LIBS=`echo "$LIBS" |
sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16931 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16933 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16947 #define $ac_func innocuous_$ac_func
16949 /* System header to define __stub macros and hopefully few prototypes,
16950 which can conflict with char $ac_func (); below.
16951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16952 <limits.h> exists even on freestanding compilers. */
16955 # include <limits.h>
16957 # include <assert.h>
16962 /* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
16964 builtin and then its argument prototype would still apply. */
16969 /* The GNU C library defines this for functions which it implements
16970 to always fail with ENOSYS. Some functions are actually named
16971 something starting with __ and the normal name is an alias. */
16972 #if defined __stub_$ac_func || defined __stub___$ac_func
16979 return $ac_func ();
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (ac_try="$ac_link"
16986 case "(($ac_try" in
16987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16988 *) ac_try_echo
=$ac_try;;
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_link") 2>conftest.er1
16993 grep -v '^ *+' conftest.er1
>conftest.err
16995 cat conftest.err
>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && {
16998 test -z "$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 } && test -s conftest
$ac_exeext &&
17001 $as_test_x conftest
$ac_exeext; then
17002 eval "$as_ac_var=yes"
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.
$ac_ext >&5
17007 eval "$as_ac_var=no"
17010 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17011 conftest
$ac_exeext conftest.
$ac_ext
17013 ac_res
=`eval echo '${'$as_ac_var'}'`
17014 { echo "$as_me:$LINENO: result: $ac_res" >&5
17015 echo "${ECHO_T}$ac_res" >&6; }
17016 if test `eval echo '${'$as_ac_var'}'` = yes; then
17017 cat >>confdefs.h
<<_ACEOF
17018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17022 case " $LIBOBJS " in
17023 *" $ac_func.$ac_objext "* ) ;;
17024 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17033 LIBS
="$pgac_save_LIBS"
17035 # System's version of getaddrinfo(), if any, may be used only if we found
17036 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17037 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17038 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17039 # because we want to use our own getaddrinfo.c on Windows anyway.)
17040 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
17042 for ac_func
in getaddrinfo
17044 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17047 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 cat >conftest.
$ac_ext <<_ACEOF
17053 cat confdefs.h
>>conftest.
$ac_ext
17054 cat >>conftest.
$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17058 #define $ac_func innocuous_$ac_func
17060 /* System header to define __stub macros and hopefully few prototypes,
17061 which can conflict with char $ac_func (); below.
17062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17063 <limits.h> exists even on freestanding compilers. */
17066 # include <limits.h>
17068 # include <assert.h>
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17080 /* The GNU C library defines this for functions which it implements
17081 to always fail with ENOSYS. Some functions are actually named
17082 something starting with __ and the normal name is an alias. */
17083 #if defined __stub_$ac_func || defined __stub___$ac_func
17090 return $ac_func ();
17095 rm -f conftest.
$ac_objext conftest
$ac_exeext
17096 if { (ac_try
="$ac_link"
17097 case "(($ac_try" in
17098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
17104 grep -v '^ *+' conftest.er1 >conftest.err
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } && {
17109 test -z "$ac_c_werror_flag" ||
17110 test ! -s conftest.err
17111 } && test -s conftest$ac_exeext &&
17112 $as_test_x conftest$ac_exeext; then
17113 eval "$as_ac_var=yes"
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 eval "$as_ac_var=no"
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17124 ac_res=`eval echo '${'$as_ac_var'}'`
17125 { echo "$as_me:$LINENO: result: $ac_res" >&5
17126 echo "${ECHO_T}$ac_res" >&6; }
17127 if test `eval echo '${'$as_ac_var'}'` = yes; then
17128 cat >>confdefs.h <<_ACEOF
17129 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17133 case " $LIBOBJS " in
17134 *" $ac_func.$ac_objext "* ) ;;
17135 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17144 case " $LIBOBJS " in
17145 *" getaddrinfo.$ac_objext "* ) ;;
17146 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17152 # Similarly, use system's getopt_long() only if system provides struct option.
17153 # Solaris' getopt() doesn't do what we want for long options, so always use
17154 # our versions on that platform.
17155 if test "$PORTNAME" = "solaris"; then
17156 case " $LIBOBJS " in
17157 *" getopt.$ac_objext "* ) ;;
17158 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17162 case " $LIBOBJS " in
17163 *" getopt_long.$ac_objext "* ) ;;
17164 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17168 elif test x"$ac_cv_type_struct_option" = xyes ; then
17170 for ac_func in getopt_long
17172 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 cat >conftest.$ac_ext <<_ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h. */
17184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17186 #define $ac_func innocuous_$ac_func
17188 /* System header to define __stub macros and hopefully few prototypes,
17189 which can conflict with char $ac_func (); below.
17190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17191 <limits.h> exists even on freestanding compilers. */
17194 # include <limits.h>
17196 # include <assert.h>
17201 /* Override any GCC internal prototype to avoid an error.
17202 Use char because int might match the return type of a GCC
17203 builtin and then its argument prototype would still apply. */
17208 /* The GNU C library defines this for functions which it implements
17209 to always fail with ENOSYS. Some functions are actually named
17210 something starting with __ and the normal name is an alias. */
17211 #if defined __stub_$ac_func || defined __stub___$ac_func
17218 return $ac_func ();
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17227 *) ac_try_echo
=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>conftest.er1
17232 grep -v '^ *+' conftest.er1
>conftest.err
17234 cat conftest.err
>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && {
17237 test -z "$ac_c_werror_flag" ||
17238 test ! -s conftest.err
17239 } && test -s conftest
$ac_exeext &&
17240 $as_test_x conftest
$ac_exeext; then
17241 eval "$as_ac_var=yes"
17243 echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.
$ac_ext >&5
17246 eval "$as_ac_var=no"
17249 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17250 conftest
$ac_exeext conftest.
$ac_ext
17252 ac_res
=`eval echo '${'$as_ac_var'}'`
17253 { echo "$as_me:$LINENO: result: $ac_res" >&5
17254 echo "${ECHO_T}$ac_res" >&6; }
17255 if test `eval echo '${'$as_ac_var'}'` = yes; then
17256 cat >>confdefs.h
<<_ACEOF
17257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17261 case " $LIBOBJS " in
17262 *" $ac_func.$ac_objext "* ) ;;
17263 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
17272 case " $LIBOBJS " in
17273 *" getopt_long.$ac_objext "* ) ;;
17274 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
17281 if test "$PORTNAME" = "win32"; then
17283 for ac_func
in gettimeofday
17285 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17288 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 cat >conftest.
$ac_ext <<_ACEOF
17294 cat confdefs.h
>>conftest.
$ac_ext
17295 cat >>conftest.
$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17299 #define $ac_func innocuous_$ac_func
17301 /* System header to define __stub macros and hopefully few prototypes,
17302 which can conflict with char $ac_func (); below.
17303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17304 <limits.h> exists even on freestanding compilers. */
17307 # include <limits.h>
17309 # include <assert.h>
17314 /* Override any GCC internal prototype to avoid an error.
17315 Use char because int might match the return type of a GCC
17316 builtin and then its argument prototype would still apply. */
17321 /* The GNU C library defines this for functions which it implements
17322 to always fail with ENOSYS. Some functions are actually named
17323 something starting with __ and the normal name is an alias. */
17324 #if defined __stub_$ac_func || defined __stub___$ac_func
17331 return $ac_func ();
17336 rm -f conftest.
$ac_objext conftest
$ac_exeext
17337 if { (ac_try
="$ac_link"
17338 case "(($ac_try" in
17339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17340 *) ac_try_echo=$ac_try;;
17342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17343 (eval "$ac_link") 2>conftest.er1
17345 grep -v '^ *+' conftest.er1 >conftest.err
17347 cat conftest.err >&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); } && {
17350 test -z "$ac_c_werror_flag" ||
17351 test ! -s conftest.err
17352 } && test -s conftest$ac_exeext &&
17353 $as_test_x conftest$ac_exeext; then
17354 eval "$as_ac_var=yes"
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 eval "$as_ac_var=no"
17362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17363 conftest$ac_exeext conftest.$ac_ext
17365 ac_res=`eval echo '${'$as_ac_var'}'`
17366 { echo "$as_me:$LINENO: result: $ac_res" >&5
17367 echo "${ECHO_T}$ac_res" >&6; }
17368 if test `eval echo '${'$as_ac_var'}'` = yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17374 case " $LIBOBJS " in
17375 *" $ac_func.$ac_objext "* ) ;;
17376 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17384 case " $LIBOBJS " in
17385 *" kill.$ac_objext "* ) ;;
17386 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17390 case " $LIBOBJS " in
17391 *" open.$ac_objext "* ) ;;
17392 *) LIBOBJS="$LIBOBJS open.$ac_objext"
17396 case " $LIBOBJS " in
17397 *" rand.$ac_objext "* ) ;;
17398 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17402 case " $LIBOBJS " in
17403 *" win32error.$ac_objext "* ) ;;
17404 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17409 cat >>confdefs.h <<\_ACEOF
17410 #define HAVE_SYMLINK 1
17415 if test "$with_readline" = yes; then
17416 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17417 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17418 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17425 #ifdef HAVE_READLINE_READLINE_H
17426 # include <readline/readline.h>
17427 #elif defined(HAVE_READLINE_H)
17428 # include <readline.h>
17434 rl_completion_append_character = 'x';
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (ac_try="$ac_link"
17441 case "(($ac_try" in
17442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17443 *) ac_try_echo
=$ac_try;;
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_link") 2>conftest.er1
17448 grep -v '^ *+' conftest.er1
>conftest.err
17450 cat conftest.err
>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } && {
17453 test -z "$ac_c_werror_flag" ||
17454 test ! -s conftest.err
17455 } && test -s conftest
$ac_exeext &&
17456 $as_test_x conftest
$ac_exeext; then
17457 { echo "$as_me:$LINENO: result: yes" >&5
17458 echo "${ECHO_T}yes" >&6; }
17460 cat >>confdefs.h
<<\_ACEOF
17461 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.
$ac_ext >&5
17468 { echo "$as_me:$LINENO: result: no" >&5
17469 echo "${ECHO_T}no" >&6; }
17472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17473 conftest
$ac_exeext conftest.
$ac_ext
17476 for ac_func
in rl_completion_matches rl_filename_completion_function
17478 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17481 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 cat >conftest.
$ac_ext <<_ACEOF
17487 cat confdefs.h
>>conftest.
$ac_ext
17488 cat >>conftest.
$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17492 #define $ac_func innocuous_$ac_func
17494 /* System header to define __stub macros and hopefully few prototypes,
17495 which can conflict with char $ac_func (); below.
17496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17497 <limits.h> exists even on freestanding compilers. */
17500 # include <limits.h>
17502 # include <assert.h>
17507 /* Override any GCC internal prototype to avoid an error.
17508 Use char because int might match the return type of a GCC
17509 builtin and then its argument prototype would still apply. */
17514 /* The GNU C library defines this for functions which it implements
17515 to always fail with ENOSYS. Some functions are actually named
17516 something starting with __ and the normal name is an alias. */
17517 #if defined __stub_$ac_func || defined __stub___$ac_func
17524 return $ac_func ();
17529 rm -f conftest.
$ac_objext conftest
$ac_exeext
17530 if { (ac_try
="$ac_link"
17531 case "(($ac_try" in
17532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>conftest.er1
17538 grep -v '^ *+' conftest.er1 >conftest.err
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } && {
17543 test -z "$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 } && test -s conftest$ac_exeext &&
17546 $as_test_x conftest$ac_exeext; then
17547 eval "$as_ac_var=yes"
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17552 eval "$as_ac_var=no"
17555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556 conftest$ac_exeext conftest.$ac_ext
17558 ac_res=`eval echo '${'$as_ac_var'}'`
17559 { echo "$as_me:$LINENO: result: $ac_res" >&5
17560 echo "${ECHO_T}$ac_res" >&6; }
17561 if test `eval echo '${'$as_ac_var'}'` = yes; then
17562 cat >>confdefs.h <<_ACEOF
17563 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17570 for ac_func in replace_history_entry
17572 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17578 cat >conftest.$ac_ext <<_ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17586 #define $ac_func innocuous_$ac_func
17588 /* System header to define __stub macros and hopefully few prototypes,
17589 which can conflict with char $ac_func (); below.
17590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591 <limits.h> exists even on freestanding compilers. */
17594 # include <limits.h>
17596 # include <assert.h>
17601 /* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17608 /* The GNU C library defines this for functions which it implements
17609 to always fail with ENOSYS. Some functions are actually named
17610 something starting with __ and the normal name is an alias. */
17611 #if defined __stub_$ac_func || defined __stub___$ac_func
17618 return $ac_func ();
17623 rm -f conftest.$ac_objext conftest$ac_exeext
17624 if { (ac_try="$ac_link"
17625 case "(($ac_try" in
17626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17627 *) ac_try_echo
=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_link") 2>conftest.er1
17632 grep -v '^ *+' conftest.er1
>conftest.err
17634 cat conftest.err
>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest
$ac_exeext &&
17640 $as_test_x conftest
$ac_exeext; then
17641 eval "$as_ac_var=yes"
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.
$ac_ext >&5
17646 eval "$as_ac_var=no"
17649 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17650 conftest
$ac_exeext conftest.
$ac_ext
17652 ac_res
=`eval echo '${'$as_ac_var'}'`
17653 { echo "$as_me:$LINENO: result: $ac_res" >&5
17654 echo "${ECHO_T}$ac_res" >&6; }
17655 if test `eval echo '${'$as_ac_var'}'` = yes; then
17656 cat >>confdefs.h
<<_ACEOF
17657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17666 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17667 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17668 cat >conftest.
$ac_ext <<_ACEOF
17671 cat confdefs.h
>>conftest.
$ac_ext
17672 cat >>conftest.
$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 #include <setjmp.h>
17678 sigjmp_buf x; sigsetjmp(x, 1);
17683 rm -f conftest.
$ac_objext conftest
$ac_exeext
17684 if { (ac_try
="$ac_link"
17685 case "(($ac_try" in
17686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_link") 2>conftest.er1
17692 grep -v '^ *+' conftest.er1 >conftest.err
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } && {
17697 test -z "$ac_c_werror_flag" ||
17698 test ! -s conftest.err
17699 } && test -s conftest$ac_exeext &&
17700 $as_test_x conftest$ac_exeext; then
17702 cat >>confdefs.h <<\_ACEOF
17703 #define HAVE_SIGSETJMP 1
17706 { echo "$as_me:$LINENO: result: yes" >&5
17707 echo "${ECHO_T}yes" >&6; }
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 { echo "$as_me:$LINENO: result: no" >&5
17713 echo "${ECHO_T}no" >&6; }
17716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17717 conftest$ac_exeext conftest.$ac_ext
17719 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17720 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17721 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 cat >conftest.$ac_ext <<_ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 #include <signal.h>
17731 /* NetBSD declares sys_siglist in unistd.h. */
17732 #ifdef HAVE_UNISTD_H
17733 # include <unistd.h>
17740 #ifndef sys_siglist
17741 (void) sys_siglist;
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17752 *) ac_try_echo
=$ac_try;;
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17757 grep -v '^ *+' conftest.er1
>conftest.err
17759 cat conftest.err
>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } && {
17762 test -z "$ac_c_werror_flag" ||
17763 test ! -s conftest.err
17764 } && test -s conftest.
$ac_objext; then
17765 ac_cv_have_decl_sys_siglist
=yes
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.
$ac_ext >&5
17770 ac_cv_have_decl_sys_siglist
=no
17773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17775 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17776 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17777 if test $ac_cv_have_decl_sys_siglist = yes; then
17779 cat >>confdefs.h
<<_ACEOF
17780 #define HAVE_DECL_SYS_SIGLIST 1
17785 cat >>confdefs.h
<<_ACEOF
17786 #define HAVE_DECL_SYS_SIGLIST 0
17795 { echo "$as_me:$LINENO: checking for syslog" >&5
17796 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17797 if test "${ac_cv_func_syslog+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 cat >conftest.
$ac_ext <<_ACEOF
17803 cat confdefs.h
>>conftest.
$ac_ext
17804 cat >>conftest.
$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17808 #define syslog innocuous_syslog
17810 /* System header to define __stub macros and hopefully few prototypes,
17811 which can conflict with char syslog (); below.
17812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17813 <limits.h> exists even on freestanding compilers. */
17816 # include <limits.h>
17818 # include <assert.h>
17823 /* Override any GCC internal prototype to avoid an error.
17824 Use char because int might match the return type of a GCC
17825 builtin and then its argument prototype would still apply. */
17830 /* The GNU C library defines this for functions which it implements
17831 to always fail with ENOSYS. Some functions are actually named
17832 something starting with __ and the normal name is an alias. */
17833 #if defined __stub_syslog || defined __stub___syslog
17845 rm -f conftest.
$ac_objext conftest
$ac_exeext
17846 if { (ac_try
="$ac_link"
17847 case "(($ac_try" in
17848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_link") 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && {
17859 test -z "$ac_c_werror_flag" ||
17860 test ! -s conftest.err
17861 } && test -s conftest$ac_exeext &&
17862 $as_test_x conftest$ac_exeext; then
17863 ac_cv_func_syslog=yes
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17868 ac_cv_func_syslog=no
17871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17872 conftest$ac_exeext conftest.$ac_ext
17874 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17875 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17876 if test $ac_cv_func_syslog = yes; then
17877 if test "${ac_cv_header_syslog_h+set}" = set; then
17878 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17879 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17880 if test "${ac_cv_header_syslog_h+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17884 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17886 # Is the header compilable?
17887 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17888 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 $ac_includes_default
17896 #include <syslog.h>
17898 rm -f conftest.$ac_objext
17899 if { (ac_try="$ac_compile"
17900 case "(($ac_try" in
17901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17902 *) ac_try_echo
=$ac_try;;
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_compile") 2>conftest.er1
17907 grep -v '^ *+' conftest.er1
>conftest.err
17909 cat conftest.err
>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && {
17912 test -z "$ac_c_werror_flag" ||
17913 test ! -s conftest.err
17914 } && test -s conftest.
$ac_objext; then
17915 ac_header_compiler
=yes
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.
$ac_ext >&5
17920 ac_header_compiler
=no
17923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17925 echo "${ECHO_T}$ac_header_compiler" >&6; }
17927 # Is the header present?
17928 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17929 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17930 cat >conftest.
$ac_ext <<_ACEOF
17933 cat confdefs.h
>>conftest.
$ac_ext
17934 cat >>conftest.
$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <syslog.h>
17938 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17939 case "(($ac_try" in
17940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17946 grep -v '^ *+' conftest.er1 >conftest.err
17948 cat conftest.err >&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } >/dev/null && {
17951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17952 test ! -s conftest.err
17954 ac_header_preproc=yes
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_header_preproc=no
17962 rm -f conftest.err conftest.$ac_ext
17963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17964 echo "${ECHO_T}$ac_header_preproc" >&6; }
17966 # So? What about this header?
17967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17969 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17970 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17972 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17973 ac_header_preproc=yes
17976 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17977 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17979 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17981 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17982 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17983 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17984 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17985 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17986 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17987 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17989 ## ---------------------------------------- ##
17990 ## Report this to pgsql-bugs@postgresql.org ##
17991 ## ---------------------------------------- ##
17993 ) | sed "s/^/$as_me: WARNING: /" >&2
17996 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17997 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17998 if test "${ac_cv_header_syslog_h+set}" = set; then
17999 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 ac_cv_header_syslog_h=$ac_header_preproc
18003 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18004 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18007 if test $ac_cv_header_syslog_h = yes; then
18009 cat >>confdefs.h <<\_ACEOF
18010 #define HAVE_SYSLOG 1
18019 { echo "$as_me:$LINENO: checking for optreset" >&5
18020 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18021 if test "${pgac_cv_var_int_optreset+set}" = set; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18024 cat >conftest.$ac_ext <<_ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 #include <unistd.h>
18034 extern int optreset; optreset = 1;
18039 rm -f conftest.$ac_objext conftest$ac_exeext
18040 if { (ac_try="$ac_link"
18041 case "(($ac_try" in
18042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18043 *) ac_try_echo
=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_link") 2>conftest.er1
18048 grep -v '^ *+' conftest.er1
>conftest.err
18050 cat conftest.err
>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && {
18053 test -z "$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 } && test -s conftest
$ac_exeext &&
18056 $as_test_x conftest
$ac_exeext; then
18057 pgac_cv_var_int_optreset
=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.
$ac_ext >&5
18062 pgac_cv_var_int_optreset
=no
18065 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18066 conftest
$ac_exeext conftest.
$ac_ext
18068 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18069 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18070 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
18072 cat >>confdefs.h
<<\_ACEOF
18073 #define HAVE_INT_OPTRESET 1
18080 for ac_func
in strtoll strtoq
18082 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18085 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18086 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 cat >conftest.
$ac_ext <<_ACEOF
18091 cat confdefs.h
>>conftest.
$ac_ext
18092 cat >>conftest.
$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18096 #define $ac_func innocuous_$ac_func
18098 /* System header to define __stub macros and hopefully few prototypes,
18099 which can conflict with char $ac_func (); below.
18100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18101 <limits.h> exists even on freestanding compilers. */
18104 # include <limits.h>
18106 # include <assert.h>
18111 /* Override any GCC internal prototype to avoid an error.
18112 Use char because int might match the return type of a GCC
18113 builtin and then its argument prototype would still apply. */
18118 /* The GNU C library defines this for functions which it implements
18119 to always fail with ENOSYS. Some functions are actually named
18120 something starting with __ and the normal name is an alias. */
18121 #if defined __stub_$ac_func || defined __stub___$ac_func
18128 return $ac_func ();
18133 rm -f conftest.
$ac_objext conftest
$ac_exeext
18134 if { (ac_try
="$ac_link"
18135 case "(($ac_try" in
18136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_link") 2>conftest.er1
18142 grep -v '^ *+' conftest.er1 >conftest.err
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest$ac_exeext &&
18150 $as_test_x conftest$ac_exeext; then
18151 eval "$as_ac_var=yes"
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 eval "$as_ac_var=no"
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18162 ac_res=`eval echo '${'$as_ac_var'}'`
18163 { echo "$as_me:$LINENO: result: $ac_res" >&5
18164 echo "${ECHO_T}$ac_res" >&6; }
18165 if test `eval echo '${'$as_ac_var'}'` = yes; then
18166 cat >>confdefs.h <<_ACEOF
18167 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18175 for ac_func in strtoull strtouq
18177 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18181 echo $ECHO_N "(cached) $ECHO_C" >&6
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18191 #define $ac_func innocuous_$ac_func
18193 /* System header to define __stub macros and hopefully few prototypes,
18194 which can conflict with char $ac_func (); below.
18195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18196 <limits.h> exists even on freestanding compilers. */
18199 # include <limits.h>
18201 # include <assert.h>
18206 /* Override any GCC internal prototype to avoid an error.
18207 Use char because int might match the return type of a GCC
18208 builtin and then its argument prototype would still apply. */
18213 /* The GNU C library defines this for functions which it implements
18214 to always fail with ENOSYS. Some functions are actually named
18215 something starting with __ and the normal name is an alias. */
18216 #if defined __stub_$ac_func || defined __stub___$ac_func
18223 return $ac_func ();
18228 rm -f conftest.$ac_objext conftest$ac_exeext
18229 if { (ac_try="$ac_link"
18230 case "(($ac_try" in
18231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18232 *) ac_try_echo
=$ac_try;;
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_link") 2>conftest.er1
18237 grep -v '^ *+' conftest.er1
>conftest.err
18239 cat conftest.err
>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } && {
18242 test -z "$ac_c_werror_flag" ||
18243 test ! -s conftest.err
18244 } && test -s conftest
$ac_exeext &&
18245 $as_test_x conftest
$ac_exeext; then
18246 eval "$as_ac_var=yes"
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.
$ac_ext >&5
18251 eval "$as_ac_var=no"
18254 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18255 conftest
$ac_exeext conftest.
$ac_ext
18257 ac_res
=`eval echo '${'$as_ac_var'}'`
18258 { echo "$as_me:$LINENO: result: $ac_res" >&5
18259 echo "${ECHO_T}$ac_res" >&6; }
18260 if test `eval echo '${'$as_ac_var'}'` = yes; then
18261 cat >>confdefs.h
<<_ACEOF
18262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18269 # Check for one of atexit() or on_exit()
18271 for ac_func
in atexit
18273 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18276 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 cat >conftest.
$ac_ext <<_ACEOF
18282 cat confdefs.h
>>conftest.
$ac_ext
18283 cat >>conftest.
$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18287 #define $ac_func innocuous_$ac_func
18289 /* System header to define __stub macros and hopefully few prototypes,
18290 which can conflict with char $ac_func (); below.
18291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18292 <limits.h> exists even on freestanding compilers. */
18295 # include <limits.h>
18297 # include <assert.h>
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18309 /* The GNU C library defines this for functions which it implements
18310 to always fail with ENOSYS. Some functions are actually named
18311 something starting with __ and the normal name is an alias. */
18312 #if defined __stub_$ac_func || defined __stub___$ac_func
18319 return $ac_func ();
18324 rm -f conftest.
$ac_objext conftest
$ac_exeext
18325 if { (ac_try
="$ac_link"
18326 case "(($ac_try" in
18327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18333 grep -v '^ *+' conftest.er1 >conftest.err
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } && {
18338 test -z "$ac_c_werror_flag" ||
18339 test ! -s conftest.err
18340 } && test -s conftest$ac_exeext &&
18341 $as_test_x conftest$ac_exeext; then
18342 eval "$as_ac_var=yes"
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 eval "$as_ac_var=no"
18350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18351 conftest$ac_exeext conftest.$ac_ext
18353 ac_res=`eval echo '${'$as_ac_var'}'`
18354 { echo "$as_me:$LINENO: result: $ac_res" >&5
18355 echo "${ECHO_T}$ac_res" >&6; }
18356 if test `eval echo '${'$as_ac_var'}'` = yes; then
18357 cat >>confdefs.h <<_ACEOF
18358 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18363 for ac_func in on_exit
18365 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 cat >conftest.$ac_ext <<_ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18379 #define $ac_func innocuous_$ac_func
18381 /* System header to define __stub macros and hopefully few prototypes,
18382 which can conflict with char $ac_func (); below.
18383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18384 <limits.h> exists even on freestanding compilers. */
18387 # include <limits.h>
18389 # include <assert.h>
18394 /* Override any GCC internal prototype to avoid an error.
18395 Use char because int might match the return type of a GCC
18396 builtin and then its argument prototype would still apply. */
18401 /* The GNU C library defines this for functions which it implements
18402 to always fail with ENOSYS. Some functions are actually named
18403 something starting with __ and the normal name is an alias. */
18404 #if defined __stub_$ac_func || defined __stub___$ac_func
18411 return $ac_func ();
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (ac_try="$ac_link"
18418 case "(($ac_try" in
18419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18420 *) ac_try_echo
=$ac_try;;
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_link") 2>conftest.er1
18425 grep -v '^ *+' conftest.er1
>conftest.err
18427 cat conftest.err
>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest
$ac_exeext &&
18433 $as_test_x conftest
$ac_exeext; then
18434 eval "$as_ac_var=yes"
18436 echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.
$ac_ext >&5
18439 eval "$as_ac_var=no"
18442 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18443 conftest
$ac_exeext conftest.
$ac_ext
18445 ac_res
=`eval echo '${'$as_ac_var'}'`
18446 { echo "$as_me:$LINENO: result: $ac_res" >&5
18447 echo "${ECHO_T}$ac_res" >&6; }
18448 if test `eval echo '${'$as_ac_var'}'` = yes; then
18449 cat >>confdefs.h
<<_ACEOF
18450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18454 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18455 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18456 { (exit 1); exit 1; }; }
18465 for ac_func
in fseeko
18467 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18470 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 cat >conftest.
$ac_ext <<_ACEOF
18476 cat confdefs.h
>>conftest.
$ac_ext
18477 cat >>conftest.
$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18481 #define $ac_func innocuous_$ac_func
18483 /* System header to define __stub macros and hopefully few prototypes,
18484 which can conflict with char $ac_func (); below.
18485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18486 <limits.h> exists even on freestanding compilers. */
18489 # include <limits.h>
18491 # include <assert.h>
18496 /* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
18503 /* The GNU C library defines this for functions which it implements
18504 to always fail with ENOSYS. Some functions are actually named
18505 something starting with __ and the normal name is an alias. */
18506 #if defined __stub_$ac_func || defined __stub___$ac_func
18513 return $ac_func ();
18518 rm -f conftest.
$ac_objext conftest
$ac_exeext
18519 if { (ac_try
="$ac_link"
18520 case "(($ac_try" in
18521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_link") 2>conftest.er1
18527 grep -v '^ *+' conftest.er1 >conftest.err
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } && {
18532 test -z "$ac_c_werror_flag" ||
18533 test ! -s conftest.err
18534 } && test -s conftest$ac_exeext &&
18535 $as_test_x conftest$ac_exeext; then
18536 eval "$as_ac_var=yes"
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 eval "$as_ac_var=no"
18544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18545 conftest$ac_exeext conftest.$ac_ext
18547 ac_res=`eval echo '${'$as_ac_var'}'`
18548 { echo "$as_me:$LINENO: result: $ac_res" >&5
18549 echo "${ECHO_T}$ac_res" >&6; }
18550 if test `eval echo '${'$as_ac_var'}'` = yes; then
18551 cat >>confdefs.h <<_ACEOF
18552 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18556 case " $LIBOBJS " in
18557 *" $ac_func.$ac_objext "* ) ;;
18558 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18567 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18570 cat >>confdefs.h <<\_ACEOF
18571 #define HAVE_FSEEKO 1
18574 ac_cv_func_fseeko=yes;;
18576 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18577 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18578 if test "${ac_cv_sys_largefile_source+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 cat >conftest.$ac_ext <<_ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <sys/types.h> /* for off_t */
18593 int (*fp) (FILE *, off_t, int) = fseeko;
18594 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (ac_try="$ac_link"
18601 case "(($ac_try" in
18602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18603 *) ac_try_echo
=$ac_try;;
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_link") 2>conftest.er1
18608 grep -v '^ *+' conftest.er1
>conftest.err
18610 cat conftest.err
>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest
$ac_exeext &&
18616 $as_test_x conftest
$ac_exeext; then
18617 ac_cv_sys_largefile_source
=no
; break
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.
$ac_ext >&5
18625 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18626 conftest
$ac_exeext conftest.
$ac_ext
18627 cat >conftest.
$ac_ext <<_ACEOF
18630 cat confdefs.h
>>conftest.
$ac_ext
18631 cat >>conftest.
$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18633 #define _LARGEFILE_SOURCE 1
18634 #include <sys/types.h> /* for off_t */
18639 int (*fp) (FILE *, off_t, int) = fseeko;
18640 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18645 rm -f conftest.
$ac_objext conftest
$ac_exeext
18646 if { (ac_try
="$ac_link"
18647 case "(($ac_try" in
18648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_link") 2>conftest.er1
18654 grep -v '^ *+' conftest.er1 >conftest.err
18656 cat conftest.err >&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } && {
18659 test -z "$ac_c_werror_flag" ||
18660 test ! -s conftest.err
18661 } && test -s conftest$ac_exeext &&
18662 $as_test_x conftest$ac_exeext; then
18663 ac_cv_sys_largefile_source=1; break
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18672 conftest$ac_exeext conftest.$ac_ext
18673 ac_cv_sys_largefile_source=unknown
18677 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18678 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18679 case $ac_cv_sys_largefile_source in #(
18682 cat >>confdefs.h <<_ACEOF
18683 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18689 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18690 # in glibc 2.1.3, but that breaks too many other things.
18691 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18692 if test $ac_cv_sys_largefile_source != unknown; then
18694 cat >>confdefs.h <<\_ACEOF
18695 #define HAVE_FSEEKO 1
18706 # For each platform, we need to know about any special compile and link
18707 # libraries, and whether the normal C function names are thread-safe.
18708 # See the comment at the top of src/port/thread.c for more information.
18709 # WIN32 doesn't need the pthread tests; it always uses threads
18710 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18715 ac_cpp='$CPP $CPPFLAGS'
18716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18722 # We used to check for pthread.h first, but this fails if pthread.h
18723 # requires special compiler flags (e.g. on True64 or Sequent).
18724 # It gets checked for in the link test anyway.
18726 # First of all, check if the user has set any of the PTHREAD_LIBS,
18727 # etcetera environment variables, and if threads linking works using
18729 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18730 save_CFLAGS="$CFLAGS"
18731 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18733 LIBS="$PTHREAD_LIBS $LIBS"
18734 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18735 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18749 char pthread_join ();
18753 return pthread_join ();
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18762 *) ac_try_echo
=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_link") 2>conftest.er1
18767 grep -v '^ *+' conftest.er1
>conftest.err
18769 cat conftest.err
>&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } && {
18772 test -z "$ac_c_werror_flag" ||
18773 test ! -s conftest.err
18774 } && test -s conftest
$ac_exeext &&
18775 $as_test_x conftest
$ac_exeext; then
18778 echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.
$ac_ext >&5
18784 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18785 conftest
$ac_exeext conftest.
$ac_ext
18786 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18787 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18788 if test x
"$acx_pthread_ok" = xno
; then
18793 CFLAGS
="$save_CFLAGS"
18796 # We must check for the threads library under a number of different
18797 # names; the ordering is very important because some systems
18798 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18799 # libraries is broken (non-POSIX).
18801 # Create a list of thread flags to try. Items starting with a "-" are
18802 # C compiler flags, and other items are library names, except for "none"
18803 # which indicates that we try without any flags at all, and "pthread-config"
18804 # which is a program returning the flags for the Pth emulation library.
18806 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18808 # The ordering *is* (sometimes) important. Some notes on the
18809 # individual items follow:
18811 # pthreads: AIX (must check this before -lpthread)
18812 # none: in case threads are in libc; should be tried before -Kthread and
18813 # other compiler flags to prevent continual compiler warnings
18814 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18815 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18816 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18817 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18818 # -pthreads: Solaris/gcc
18819 # -mthreads: Mingw32/gcc, Lynx/gcc
18820 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18821 # doesn't hurt to check since this sometimes defines pthreads too;
18822 # also defines -D_REENTRANT)
18823 # pthread: Linux, etcetera
18824 # --thread-safe: KAI C++
18825 # pthread-config: use pthread-config program (for GNU Pth library)
18827 case "${host_cpu}-${host_os}" in
18830 # On Solaris (at least, for some versions), libc contains stubbed
18831 # (non-functional) versions of the pthreads routines, so link-based
18832 # tests will erroneously succeed. (We need to link with -pthread or
18833 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18834 # a function called by this macro, so we could check for that, but
18835 # who knows whether they'll stub that too in a future libc.) So,
18836 # we'll just look for -pthreads and -lpthread first:
18838 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
18842 if test x
"$acx_pthread_ok" = xno
; then
18843 for flag
in $acx_pthread_flags; do
18845 tryPTHREAD_CFLAGS
=""
18849 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18850 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18854 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18855 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18856 tryPTHREAD_CFLAGS
="$flag"
18860 # skip this if we already have flags defined, for PostgreSQL
18861 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
18862 # Extract the first word of "pthread-config", so it can be a program name with args.
18863 set dummy pthread-config
; ac_word
=$2
18864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18866 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 if test -n "$acx_pthread_config"; then
18870 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
18872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18873 for as_dir
in $PATH
18876 test -z "$as_dir" && as_dir
=.
18877 for ac_exec_ext
in '' $ac_executable_extensions; do
18878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18879 ac_cv_prog_acx_pthread_config
="yes"
18880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18887 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
18890 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
18891 if test -n "$acx_pthread_config"; then
18892 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18893 echo "${ECHO_T}$acx_pthread_config" >&6; }
18895 { echo "$as_me:$LINENO: result: no" >&5
18896 echo "${ECHO_T}no" >&6; }
18900 if test x
"$acx_pthread_config" = xno
; then continue; fi
18901 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
18902 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
18906 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18907 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18908 tryPTHREAD_LIBS
="-l$flag"
18913 save_CFLAGS
="$CFLAGS"
18914 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18915 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18917 # Check for various functions. We must include pthread.h,
18918 # since some functions may be macros. (On the Sequent, we
18919 # need a special flag -Kthread to make this header compile.)
18920 # We check for pthread_join because it is in -lpthread on IRIX
18921 # while pthread_create is in libc. We check for pthread_attr_init
18922 # due to DEC craziness with -lpthreads. We check for
18923 # pthread_cleanup_push because it is one of the few pthread
18924 # functions on Solaris that doesn't have a non-functional libc stub.
18925 # We try pthread_create on general principles.
18926 cat >conftest.
$ac_ext <<_ACEOF
18929 cat confdefs.h
>>conftest.
$ac_ext
18930 cat >>conftest.
$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include <pthread.h>
18936 pthread_t th; pthread_join(th, 0);
18937 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18938 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18943 rm -f conftest.
$ac_objext conftest
$ac_exeext
18944 if { (ac_try
="$ac_link"
18945 case "(($ac_try" in
18946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_link") 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest$ac_exeext &&
18960 $as_test_x conftest$ac_exeext; then
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18970 conftest$ac_exeext conftest.$ac_ext
18972 if test "x$acx_pthread_ok" = xyes; then
18973 # Don't use options that are ignored by the compiler.
18974 # We find them by checking stderror.
18975 cat >conftest.$ac_ext <<_ACEOF
18977 main (int argc, char **argv)
18984 rm -f conftest.$ac_objext conftest$ac_exeext
18985 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18986 # we continue with more flags because Linux needs -lpthread
18987 # for libpq builds on PostgreSQL. The test above only
18988 # tests for building binaries, not shared libraries.
18989 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18990 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18991 else acx_pthread_ok=no
18996 CFLAGS="$save_CFLAGS"
18998 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18999 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19003 # Various other checks:
19004 if test "x$acx_pthread_ok" = xyes; then
19006 LIBS="$PTHREAD_LIBS $LIBS"
19007 save_CFLAGS="$CFLAGS"
19008 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19010 # Detect AIX lossage: threads are created detached by default
19011 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19012 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19013 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19014 cat >conftest.$ac_ext <<_ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 #include <pthread.h>
19024 int attr=PTHREAD_CREATE_JOINABLE;
19029 rm -f conftest.$ac_objext conftest$ac_exeext
19030 if { (ac_try="$ac_link"
19031 case "(($ac_try" in
19032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19033 *) ac_try_echo
=$ac_try;;
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_link") 2>conftest.er1
19038 grep -v '^ *+' conftest.er1
>conftest.err
19040 cat conftest.err
>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } && {
19043 test -z "$ac_c_werror_flag" ||
19044 test ! -s conftest.err
19045 } && test -s conftest
$ac_exeext &&
19046 $as_test_x conftest
$ac_exeext; then
19047 ok
=PTHREAD_CREATE_JOINABLE
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.
$ac_ext >&5
19055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19056 conftest
$ac_exeext conftest.
$ac_ext
19057 if test x
"$ok" = xunknown
; then
19058 cat >conftest.
$ac_ext <<_ACEOF
19061 cat confdefs.h
>>conftest.
$ac_ext
19062 cat >>conftest.
$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #include <pthread.h>
19068 int attr=PTHREAD_CREATE_UNDETACHED;
19073 rm -f conftest.
$ac_objext conftest
$ac_exeext
19074 if { (ac_try
="$ac_link"
19075 case "(($ac_try" in
19076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>conftest.er1
19082 grep -v '^ *+' conftest.er1 >conftest.err
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } && {
19087 test -z "$ac_c_werror_flag" ||
19088 test ! -s conftest.err
19089 } && test -s conftest$ac_exeext &&
19090 $as_test_x conftest$ac_exeext; then
19091 ok=PTHREAD_CREATE_UNDETACHED
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19100 conftest$ac_exeext conftest.$ac_ext
19102 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19104 cat >>confdefs.h <<\_ACEOF
19105 #define PTHREAD_CREATE_JOINABLE $ok
19109 { echo "$as_me:$LINENO: result: ${ok}" >&5
19110 echo "${ECHO_T}${ok}" >&6; }
19111 if test x"$ok" = xunknown; then
19112 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19113 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19116 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19117 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19119 # We always add these in PostgreSQL
19120 # case "${host_cpu}-${host_os}" in
19121 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19122 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19124 { echo "$as_me:$LINENO: result: ${flag}" >&5
19125 echo "${ECHO_T}${flag}" >&6; }
19126 if test "x$flag" != xno; then
19127 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19131 CFLAGS="$save_CFLAGS"
19133 # Supporting cc_r would require a special CC in all places that
19134 # use libpq, and that is ugly, so we don't do it. Users can still
19135 # define their compiler as cc_r to do thread builds of everything.
19136 # More AIX lossage: must compile with cc_r
19137 # Extract the first word of "cc_r", so it can be a program name with args.
19138 set dummy cc_r; ac_word=$2
19139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19141 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 if test -n "$PTHREAD_CC"; then
19145 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19148 for as_dir in $PATH
19151 test -z "$as_dir" && as_dir=.
19152 for ac_exec_ext in '' $ac_executable_extensions; do
19153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19154 ac_cv_prog_PTHREAD_CC="cc_r"
19155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19162 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19165 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19166 if test -n "$PTHREAD_CC"; then
19167 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19168 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19170 { echo "$as_me:$LINENO: result: no" >&5
19171 echo "${ECHO_T}no" >&6; }
19183 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19184 if test x"$acx_pthread_ok" = xyes; then
19186 cat >>confdefs.h <<\_ACEOF
19187 #define HAVE_PTHREAD 1
19196 ac_cpp='$CPP $CPPFLAGS'
19197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19203 # Some platforms use these, so just define them. They can't hurt if they
19204 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19205 # enables 5-arg getpwuid_r, among other things.
19206 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19209 # At this point, we don't want to muck with the compiler name for threading.
19210 # Let's see who fails, perhaps AIX. 2004-04-23
19211 if test "$PTHREAD_CC" != "$CC"; then
19212 { { echo "$as_me:$LINENO: error:
19213 PostgreSQL does not support platforms that require a special compiler
19214 for thread safety." >&5
19215 echo "$as_me: error:
19216 PostgreSQL does not support platforms that require a special compiler
19217 for thread safety." >&2;}
19218 { (exit 1); exit 1; }; }
19221 if test "$THREAD_SUPPORT" = no; then
19222 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19223 This platform is known to not support thread-safe programs. For details,
19224 compile and run src/bin/pg_thread_test." >&5
19225 echo "$as_me: error: cannot enable threads on this platform
19226 This platform is known to not support thread-safe programs. For details,
19227 compile and run src/bin/pg_thread_test." >&2;}
19228 { (exit 1); exit 1; }; }
19231 # Check for *_r functions
19234 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19235 LIBS="$LIBS $PTHREAD_LIBS"
19237 if test "$PORTNAME" != "win32"; then
19238 if test "${ac_cv_header_pthread_h+set}" = set; then
19239 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19240 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19241 if test "${ac_cv_header_pthread_h+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19245 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19247 # Is the header compilable?
19248 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19249 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 $ac_includes_default
19257 #include <pthread.h>
19259 rm -f conftest.$ac_objext
19260 if { (ac_try="$ac_compile"
19261 case "(($ac_try" in
19262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19263 *) ac_try_echo
=$ac_try;;
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_compile") 2>conftest.er1
19268 grep -v '^ *+' conftest.er1
>conftest.err
19270 cat conftest.err
>&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } && {
19273 test -z "$ac_c_werror_flag" ||
19274 test ! -s conftest.err
19275 } && test -s conftest.
$ac_objext; then
19276 ac_header_compiler
=yes
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.
$ac_ext >&5
19281 ac_header_compiler
=no
19284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19286 echo "${ECHO_T}$ac_header_compiler" >&6; }
19288 # Is the header present?
19289 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19290 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19291 cat >conftest.
$ac_ext <<_ACEOF
19294 cat confdefs.h
>>conftest.
$ac_ext
19295 cat >>conftest.
$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 #include <pthread.h>
19299 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19300 case "(($ac_try" in
19301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } >/dev/null && {
19312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19315 ac_header_preproc=yes
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_header_preproc=no
19323 rm -f conftest.err conftest.$ac_ext
19324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325 echo "${ECHO_T}$ac_header_preproc" >&6; }
19327 # So? What about this header?
19328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19330 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19331 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19333 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19334 ac_header_preproc=yes
19337 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19338 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19339 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
19340 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
19341 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19342 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19343 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
19344 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
19345 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19346 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19347 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19348 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19350 ## ---------------------------------------- ##
19351 ## Report this to pgsql-bugs@postgresql.org ##
19352 ## ---------------------------------------- ##
19354 ) | sed "s/^/$as_me: WARNING: /" >&2
19357 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19358 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19359 if test "${ac_cv_header_pthread_h+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 ac_cv_header_pthread_h=$ac_header_preproc
19364 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19365 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19368 if test $ac_cv_header_pthread_h = yes; then
19371 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19372 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19373 { (exit 1); exit 1; }; }
19382 for ac_func in strerror_r getpwuid_r gethostbyname_r
19384 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19398 #define $ac_func innocuous_$ac_func
19400 /* System header to define __stub macros and hopefully few prototypes,
19401 which can conflict with char $ac_func (); below.
19402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19403 <limits.h> exists even on freestanding compilers. */
19406 # include <limits.h>
19408 # include <assert.h>
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19420 /* The GNU C library defines this for functions which it implements
19421 to always fail with ENOSYS. Some functions are actually named
19422 something starting with __ and the normal name is an alias. */
19423 #if defined __stub_$ac_func || defined __stub___$ac_func
19430 return $ac_func ();
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19439 *) ac_try_echo
=$ac_try;;
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
19444 grep -v '^ *+' conftest.er1
>conftest.err
19446 cat conftest.err
>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest
$ac_exeext &&
19452 $as_test_x conftest
$ac_exeext; then
19453 eval "$as_ac_var=yes"
19455 echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.
$ac_ext >&5
19458 eval "$as_ac_var=no"
19461 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19462 conftest
$ac_exeext conftest.
$ac_ext
19464 ac_res
=`eval echo '${'$as_ac_var'}'`
19465 { echo "$as_me:$LINENO: result: $ac_res" >&5
19466 echo "${ECHO_T}$ac_res" >&6; }
19467 if test `eval echo '${'$as_ac_var'}'` = yes; then
19468 cat >>confdefs.h
<<_ACEOF
19469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19476 # Do test here with the proper thread flags
19477 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19478 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19479 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 cat >conftest.
$ac_ext <<_ACEOF
19485 cat confdefs.h
>>conftest.
$ac_ext
19486 cat >>conftest.
$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19488 #include <sys/types.h>
19494 struct passwd *space;
19497 struct passwd **result;
19498 getpwuid_r(uid, space, buf, bufsize, result);
19503 rm -f conftest.
$ac_objext
19504 if { (ac_try
="$ac_compile"
19505 case "(($ac_try" in
19506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_compile") 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest.$ac_objext; then
19520 pgac_cv_func_getpwuid_r_5arg=yes
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19525 pgac_cv_func_getpwuid_r_5arg=no
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19531 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19532 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19534 cat >>confdefs.h <<\_ACEOF
19535 #define GETPWUID_R_5ARG
19540 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19541 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19542 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 #include <string.h>
19556 int strerror_r(int, char *, size_t);
19558 /* Older AIX has 'int' for the third argument so we don't test the args. */
19565 rm -f conftest.$ac_objext
19566 if { (ac_try="$ac_compile"
19567 case "(($ac_try" in
19568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19569 *) ac_try_echo
=$ac_try;;
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_compile") 2>conftest.er1
19574 grep -v '^ *+' conftest.er1
>conftest.err
19576 cat conftest.err
>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest.
$ac_objext; then
19582 pgac_cv_func_strerror_r_int
=yes
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.
$ac_ext >&5
19587 pgac_cv_func_strerror_r_int
=no
19590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19592 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19593 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19594 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
19596 cat >>confdefs.h
<<\_ACEOF
19597 #define STRERROR_R_INT
19607 # do not use values from template file
19616 # We can test for libldap_r only after we know PTHREAD_LIBS
19617 if test "$with_ldap" = yes ; then
19619 if test "$PORTNAME" != "win32"; then
19621 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19622 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19623 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 ac_check_lib_save_LIBS
=$LIBS
19627 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
19628 cat >conftest.
$ac_ext <<_ACEOF
19631 cat confdefs.h
>>conftest.
$ac_ext
19632 cat >>conftest.
$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19635 /* Override any GCC internal prototype to avoid an error.
19636 Use char because int might match the return type of a GCC
19637 builtin and then its argument prototype would still apply. */
19645 return ldap_bind ();
19650 rm -f conftest.
$ac_objext conftest
$ac_exeext
19651 if { (ac_try
="$ac_link"
19652 case "(($ac_try" in
19653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
19659 grep -v '^ *+' conftest.er1 >conftest.err
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest$ac_exeext &&
19667 $as_test_x conftest$ac_exeext; then
19668 ac_cv_lib_ldap_ldap_bind=yes
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19673 ac_cv_lib_ldap_ldap_bind=no
19676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19677 conftest$ac_exeext conftest.$ac_ext
19678 LIBS=$ac_check_lib_save_LIBS
19680 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19681 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19682 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19683 cat >>confdefs.h <<_ACEOF
19684 #define HAVE_LIBLDAP 1
19687 LIBS="-lldap $LIBS"
19690 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19691 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19692 { (exit 1); exit 1; }; }
19695 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19696 if test "$enable_thread_safety" = yes; then
19697 # on some platforms ldap_r fails to link without PTHREAD_LIBS
19699 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19700 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19701 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19702 echo $ECHO_N "(cached) $ECHO_C" >&6
19704 ac_check_lib_save_LIBS=$LIBS
19705 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19713 /* Override any GCC internal prototype to avoid an error.
19714 Use char because int might match the return type of a GCC
19715 builtin and then its argument prototype would still apply. */
19719 char ldap_simple_bind ();
19723 return ldap_simple_bind ();
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (ac_try="$ac_link"
19730 case "(($ac_try" in
19731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19732 *) ac_try_echo
=$ac_try;;
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_link") 2>conftest.er1
19737 grep -v '^ *+' conftest.er1
>conftest.err
19739 cat conftest.err
>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } && {
19742 test -z "$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 } && test -s conftest
$ac_exeext &&
19745 $as_test_x conftest
$ac_exeext; then
19746 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
19748 echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.
$ac_ext >&5
19751 ac_cv_lib_ldap_r_ldap_simple_bind
=no
19754 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19755 conftest
$ac_exeext conftest.
$ac_ext
19756 LIBS
=$ac_check_lib_save_LIBS
19758 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19759 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19760 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19761 cat >>confdefs.h
<<_ACEOF
19762 #define HAVE_LIBLDAP_R 1
19765 LIBS
="-lldap_r $LIBS"
19768 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19769 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19770 { (exit 1); exit 1; }; }
19773 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
19775 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
19779 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19780 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19781 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 ac_check_lib_save_LIBS
=$LIBS
19785 LIBS
="-lwldap32 $LIBS"
19786 cat >conftest.
$ac_ext <<_ACEOF
19789 cat confdefs.h
>>conftest.
$ac_ext
19790 cat >>conftest.
$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19793 /* Override any GCC internal prototype to avoid an error.
19794 Use char because int might match the return type of a GCC
19795 builtin and then its argument prototype would still apply. */
19803 return ldap_bind ();
19808 rm -f conftest.
$ac_objext conftest
$ac_exeext
19809 if { (ac_try
="$ac_link"
19810 case "(($ac_try" in
19811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_link") 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && {
19822 test -z "$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19824 } && test -s conftest$ac_exeext &&
19825 $as_test_x conftest$ac_exeext; then
19826 ac_cv_lib_wldap32_ldap_bind=yes
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 ac_cv_lib_wldap32_ldap_bind=no
19834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19835 conftest$ac_exeext conftest.$ac_ext
19836 LIBS=$ac_check_lib_save_LIBS
19838 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19839 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19840 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_LIBWLDAP32 1
19845 LIBS="-lwldap32 $LIBS"
19848 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19849 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19850 { (exit 1); exit 1; }; }
19853 LDAP_LIBS_FE="-lwldap32"
19854 LDAP_LIBS_BE="-lwldap32"
19862 # This test makes sure that run tests work at all. Sometimes a shared
19863 # library is found by the linker, but the runtime linker can't find it.
19864 # This check should come after all modifications of compiler or linker
19865 # variables, and before any other run tests.
19866 { echo "$as_me:$LINENO: checking test program" >&5
19867 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19868 if test "$cross_compiling" = yes; then
19869 { echo "$as_me:$LINENO: result: cross-compiling" >&5
19870 echo "${ECHO_T}cross-compiling" >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 int main() { return 0; }
19880 rm -f conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19884 *) ac_try_echo
=$ac_try;;
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19891 { (case "(($ac_try" in
19892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_try") 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 { echo "$as_me:$LINENO: result: ok" >&5
19901 echo "${ECHO_T}ok" >&6; }
19903 echo "$as_me: program exited with status $ac_status" >&5
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19907 ( exit $ac_status )
19908 { echo "$as_me:$LINENO: result: failed" >&5
19909 echo "${ECHO_T}failed" >&6; }
19910 { { echo "$as_me:$LINENO: error:
19911 Could not execute a simple test program. This may be a problem
19912 related to locating shared libraries. Check the file 'config.log'
19913 for the exact reason." >&5
19914 echo "$as_me: error:
19915 Could not execute a simple test program. This may be a problem
19916 related to locating shared libraries. Check the file 'config.log'
19917 for the exact reason." >&2;}
19918 { (exit 1); exit 1; }; }
19920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19925 # --------------------
19926 # Run tests below here
19927 # --------------------
19929 # Force use of our snprintf if system's doesn't do arg control
19930 # See comment above at snprintf test for details.
19931 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19932 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19933 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19934 if test "${pgac_cv_printf_arg_control+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19937 if test "$cross_compiling" = yes; then
19938 pgac_cv_printf_arg_control=cross
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19947 #include <string.h>
19953 /* can it swap arguments? */
19954 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19955 if (strcmp(buf, "4 3") != 0)
19960 rm -f conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19964 *) ac_try_echo
=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19971 { (case "(($ac_try" in
19972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980 pgac_cv_printf_arg_control=yes
19982 echo "$as_me: program exited with status $ac_status" >&5
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ( exit $ac_status )
19987 pgac_cv_printf_arg_control=no
19989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19995 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19996 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19998 if test $pgac_cv_printf_arg_control != yes ; then
19999 pgac_need_repl_snprintf=yes
20005 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20006 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20007 if test "${pgac_cv_type_long_int_64+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 if test "$cross_compiling" = yes; then
20011 # If cross-compiling, check the size reported by the compiler and
20012 # trust that the arithmetic works.
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20023 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20030 rm -f conftest.$ac_objext
20031 if { (ac_try="$ac_compile"
20032 case "(($ac_try" in
20033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20034 *) ac_try_echo
=$ac_try;;
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_compile") 2>conftest.er1
20039 grep -v '^ *+' conftest.er1
>conftest.err
20041 cat conftest.err
>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest.
$ac_objext; then
20047 pgac_cv_type_long_int_64
=yes
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.
$ac_ext >&5
20052 pgac_cv_type_long_int_64
=no
20055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20057 cat >conftest.
$ac_ext <<_ACEOF
20060 cat confdefs.h
>>conftest.
$ac_ext
20061 cat >>conftest.
$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 typedef long int ac_int64;
20066 * These are globals to discourage the compiler from folding all the
20067 * arithmetic tests down to compile-time constants.
20069 ac_int64 a = 20000001;
20070 ac_int64 b = 40000005;
20072 int does_int64_work()
20076 if (sizeof(ac_int64) != 8)
20077 return 0; /* definitely not the right size */
20079 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20087 exit(! does_int64_work());
20090 rm -f conftest
$ac_exeext
20091 if { (ac_try
="$ac_link"
20092 case "(($ac_try" in
20093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_link") 2>&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20101 { (case "(($ac_try" in
20102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20103 *) ac_try_echo
=$ac_try;;
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_try") 2>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 pgac_cv_type_long_int_64
=yes
20112 echo "$as_me: program exited with status $ac_status" >&5
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.
$ac_ext >&5
20116 ( exit $ac_status )
20117 pgac_cv_type_long_int_64
=no
20119 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20124 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20125 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20127 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
20128 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
20130 cat >>confdefs.h
<<\_ACEOF
20131 #define HAVE_LONG_INT_64 1
20137 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
20138 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20139 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20140 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 if test "$cross_compiling" = yes; then
20144 # If cross-compiling, check the size reported by the compiler and
20145 # trust that the arithmetic works.
20146 cat >conftest.
$ac_ext <<_ACEOF
20149 cat confdefs.h
>>conftest.
$ac_ext
20150 cat >>conftest.
$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20156 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20163 rm -f conftest.
$ac_objext
20164 if { (ac_try
="$ac_compile"
20165 case "(($ac_try" in
20166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_compile") 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } && {
20177 test -z "$ac_c_werror_flag" ||
20178 test ! -s conftest.err
20179 } && test -s conftest.$ac_objext; then
20180 pgac_cv_type_long_long_int_64=yes
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20185 pgac_cv_type_long_long_int_64=no
20188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20196 typedef long long int ac_int64;
20199 * These are globals to discourage the compiler from folding all the
20200 * arithmetic tests down to compile-time constants.
20202 ac_int64 a = 20000001;
20203 ac_int64 b = 40000005;
20205 int does_int64_work()
20209 if (sizeof(ac_int64) != 8)
20210 return 0; /* definitely not the right size */
20212 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20220 exit(! does_int64_work());
20223 rm -f conftest$ac_exeext
20224 if { (ac_try="$ac_link"
20225 case "(($ac_try" in
20226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20227 *) ac_try_echo
=$ac_try;;
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230 (eval "$ac_link") 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20234 { (case "(($ac_try" in
20235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_try") 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 pgac_cv_type_long_long_int_64=yes
20245 echo "$as_me: program exited with status $ac_status" >&5
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ( exit $ac_status )
20250 pgac_cv_type_long_long_int_64=no
20252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20257 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20258 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20260 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20261 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_LONG_LONG_INT_64 1
20273 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20274 cat >conftest.$ac_ext <<_ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20281 #define INT64CONST(x) x##LL
20282 long long int foo = INT64CONST(0x1234567890123456);
20292 rm -f conftest.$ac_objext
20293 if { (ac_try="$ac_compile"
20294 case "(($ac_try" in
20295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20296 *) ac_try_echo
=$ac_try;;
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_compile") 2>conftest.er1
20301 grep -v '^ *+' conftest.er1
>conftest.err
20303 cat conftest.err
>&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest.
$ac_objext; then
20310 cat >>confdefs.h
<<\_ACEOF
20311 #define HAVE_LL_CONSTANTS 1
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.
$ac_ext >&5
20321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20325 # If we found "long int" is 64 bits, assume snprintf handles it. If
20326 # we found we need to use "long long int", better check. We cope with
20327 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
20328 # work, fall back to our own snprintf emulation (which we know uses %lld).
20330 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20331 if test $pgac_need_repl_snprintf = no
; then
20332 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20333 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20334 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 for pgac_format
in '%lld' '%qd' '%I64d'; do
20338 if test "$cross_compiling" = yes; then
20339 pgac_cv_snprintf_long_long_int_format
=cross
; break
20341 cat >conftest.
$ac_ext <<_ACEOF
20344 cat confdefs.h
>>conftest.
$ac_ext
20345 cat >>conftest.
$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20348 typedef long long int ac_int64;
20349 #define INT64_FORMAT "$pgac_format"
20351 ac_int64 a = 20000001;
20352 ac_int64 b = 40000005;
20354 int does_int64_snprintf_work()
20359 if (sizeof(ac_int64) != 8)
20360 return 0; /* doesn't look like the right size */
20363 snprintf(buf, 100, INT64_FORMAT, c);
20364 if (strcmp(buf, "800000140000005") != 0)
20365 return 0; /* either multiply or snprintf is busted */
20369 exit(! does_int64_snprintf_work());
20372 rm -f conftest
$ac_exeext
20373 if { (ac_try
="$ac_link"
20374 case "(($ac_try" in
20375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_link") 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20385 *) ac_try_echo
=$ac_try;;
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
20394 echo "$as_me: program exited with status $ac_status" >&5
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.
$ac_ext >&5
20399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20406 LONG_LONG_INT_FORMAT
=''
20408 case $pgac_cv_snprintf_long_long_int_format in
20409 cross
) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20410 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20411 ?
*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20412 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20413 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
20414 *) { echo "$as_me:$LINENO: result: none" >&5
20415 echo "${ECHO_T}none" >&6; };;
20417 if test "$LONG_LONG_INT_FORMAT" = ""; then
20418 # Force usage of our own snprintf, since system snprintf is broken
20419 pgac_need_repl_snprintf
=yes
20420 LONG_LONG_INT_FORMAT
='%lld'
20423 # Here if we previously decided we needed to use our own snprintf
20424 LONG_LONG_INT_FORMAT
='%lld'
20426 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20427 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
20428 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
20430 # Here if we are not using 'long long int' at all
20431 INT64_FORMAT
='"%ld"'
20432 UINT64_FORMAT
='"%lu"'
20436 cat >>confdefs.h
<<_ACEOF
20437 #define INT64_FORMAT $INT64_FORMAT
20442 cat >>confdefs.h
<<_ACEOF
20443 #define UINT64_FORMAT $UINT64_FORMAT
20447 # Now we have checked all the reasons to replace snprintf
20448 if test $pgac_need_repl_snprintf = yes; then
20450 cat >>confdefs.h
<<\_ACEOF
20451 #define USE_REPL_SNPRINTF 1
20454 case " $LIBOBJS " in
20455 *" snprintf.$ac_objext "* ) ;;
20456 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
20462 # Need a #define for the size of Datum (unsigned long)
20463 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20464 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20465 if test "${ac_cv_type_unsigned_long+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.
$ac_ext <<_ACEOF
20471 cat confdefs.h
>>conftest.
$ac_ext
20472 cat >>conftest.
$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 $ac_includes_default
20475 typedef unsigned long ac__type_new_;
20479 if ((ac__type_new_ *) 0)
20481 if (sizeof (ac__type_new_))
20487 rm -f conftest.
$ac_objext
20488 if { (ac_try
="$ac_compile"
20489 case "(($ac_try" in
20490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_compile") 2>conftest.er1
20496 grep -v '^ *+' conftest.er1 >conftest.err
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest.$ac_objext; then
20504 ac_cv_type_unsigned_long=yes
20506 echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 ac_cv_type_unsigned_long=no
20512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20514 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20515 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20517 # The cast to long int works around a bug in the HP C Compiler
20518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20519 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20520 # This bug is HP SR number 8606223364.
20521 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20522 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20523 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 if test "$cross_compiling" = yes; then
20527 # Depending upon the size, compute the lo and hi bounds.
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 $ac_includes_default
20535 typedef unsigned long ac__type_sizeof_;
20539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20546 rm -f conftest.$ac_objext
20547 if { (ac_try="$ac_compile"
20548 case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_compile") 2>conftest.er1
20555 grep -v '^
*+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } && {
20560 test -z "$ac_c_werror_flag" ||
20561 test ! -s conftest.err
20562 } && test -s conftest.$ac_objext; then
20565 cat >conftest.$ac_ext <<_ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571 $ac_includes_default
20572 typedef unsigned long ac__type_sizeof_;
20576 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_compile") 2>conftest.er1
20592 grep -v '^
*+' conftest.er1 >conftest.err
20594 cat conftest.err >&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } && {
20597 test -z "$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20599 } && test -s conftest.$ac_objext; then
20600 ac_hi=$ac_mid; break
20602 echo "$as_me: failed program was:" >&5
20603 sed 's
/^
/|
/' conftest.$ac_ext >&5
20605 ac_lo=`expr $ac_mid + 1`
20606 if test $ac_lo -le $ac_mid; then
20610 ac_mid=`expr 2 '*' $ac_mid + 1`
20613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616 echo "$as_me: failed program was:" >&5
20617 sed 's
/^
/|
/' conftest.$ac_ext >&5
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20626 typedef unsigned long ac__type_sizeof_;
20630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20646 grep -v '^
*+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest.$ac_objext; then
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 $ac_includes_default
20663 typedef unsigned long ac__type_sizeof_;
20667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20674 rm -f conftest.$ac_objext
20675 if { (ac_try="$ac_compile"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_compile") 2>conftest.er1
20683 grep -v '^
*+' conftest.er1 >conftest.err
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest.$ac_objext; then
20691 ac_lo=$ac_mid; break
20693 echo "$as_me: failed program was:" >&5
20694 sed 's
/^
/|
/' conftest.$ac_ext >&5
20696 ac_hi=`expr '(' $ac_mid ')' - 1`
20697 if test $ac_mid -le $ac_hi; then
20701 ac_mid=`expr 2 '*' $ac_mid`
20704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 echo "$as_me: failed program was:" >&5
20708 sed 's
/^
/|
/' conftest.$ac_ext >&5
20713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 # Binary search between lo and hi bounds.
20718 while test "x$ac_lo" != "x$ac_hi"; do
20719 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20720 cat >conftest.$ac_ext <<_ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 $ac_includes_default
20727 typedef unsigned long ac__type_sizeof_;
20731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20738 rm -f conftest.$ac_objext
20739 if { (ac_try="$ac_compile"
20740 case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_compile") 2>conftest.er1
20747 grep -v '^
*+' conftest.er1 >conftest.err
20749 cat conftest.err >&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } && {
20752 test -z "$ac_c_werror_flag" ||
20753 test ! -s conftest.err
20754 } && test -s conftest.$ac_objext; then
20757 echo "$as_me: failed program was:" >&5
20758 sed 's
/^
/|
/' conftest.$ac_ext >&5
20760 ac_lo=`expr '(' $ac_mid ')' + 1`
20763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20767 '') if test "$ac_cv_type_unsigned_long" = yes; then
20768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20769 See \`config.log' for more details.
" >&5
20770 echo "$as_me: error
: cannot compute sizeof
(unsigned long
)
20771 See \
`config.log' for more details." >&2;}
20772 { (exit 77); exit 77; }; }
20774 ac_cv_sizeof_unsigned_long=0
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 $ac_includes_default
20785 typedef unsigned long ac__type_sizeof_;
20786 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20787 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20789 #include <stdlib.h>
20794 FILE *f = fopen ("conftest.val", "w");
20797 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20799 long int i = longval ();
20800 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20802 fprintf (f, "%ld\n", i);
20806 unsigned long int i = ulongval ();
20807 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20809 fprintf (f, "%lu\n", i);
20811 return ferror (f) || fclose (f) != 0;
20817 rm -f conftest$ac_exeext
20818 if { (ac_try="$ac_link"
20819 case "(($ac_try" in
20820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20821 *) ac_try_echo
=$ac_try;;
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_link") 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20828 { (case "(($ac_try" in
20829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_try") 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ac_cv_sizeof_unsigned_long=`cat conftest.val
`
20839 echo "$as_me: program exited with status $ac_status" >&5
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20843 ( exit $ac_status )
20844 if test "$ac_cv_type_unsigned_long" = yes; then
20845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20846 See \`config.log
' for more details." >&5
20847 echo "$as_me: error: cannot compute sizeof (unsigned long)
20848 See \`config.log' for more details.
" >&2;}
20849 { (exit 77); exit 77; }; }
20851 ac_cv_sizeof_unsigned_long=0
20854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20858 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_unsigned_long" >&5
20859 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20863 cat >>confdefs.h <<_ACEOF
20864 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20869 # And one for the size of size_t (enables tweaks for > 32bit address space)
20870 { echo "$as_me:$LINENO: checking
for size_t
" >&5
20871 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
20872 if test "${ac_cv_type_size_t+set}" = set; then
20873 echo $ECHO_N "(cached
) $ECHO_C" >&6
20875 cat >conftest.$ac_ext <<_ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 $ac_includes_default
20882 typedef size_t ac__type_new_;
20886 if ((ac__type_new_ *) 0)
20888 if (sizeof (ac__type_new_))
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_compile") 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest.$ac_objext; then
20911 ac_cv_type_size_t=yes
20913 echo "$as_me: failed program was
:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20916 ac_cv_type_size_t=no
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
20922 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20924 # The cast to long int works around a bug in the HP C Compiler
20925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20927 # This bug is HP SR number 8606223364.
20928 { echo "$as_me:$LINENO: checking size of size_t
" >&5
20929 echo $ECHO_N "checking size of size_t...
$ECHO_C" >&6; }
20930 if test "${ac_cv_sizeof_size_t+set}" = set; then
20931 echo $ECHO_N "(cached
) $ECHO_C" >&6
20933 if test "$cross_compiling" = yes; then
20934 # Depending upon the size, compute the lo and hi bounds.
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 $ac_includes_default
20942 typedef size_t ac__type_sizeof_;
20946 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1 >conftest.err
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.$ac_objext; then
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 $ac_includes_default
20979 typedef size_t ac__type_sizeof_;
20983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20997 (eval "$ac_compile") 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21003 (exit $ac_status); } && {
21004 test -z "$ac_c_werror_flag" ||
21005 test ! -s conftest.err
21006 } && test -s conftest.$ac_objext; then
21007 ac_hi=$ac_mid; break
21009 echo "$as_me: failed program was
:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_lo=`expr $ac_mid + 1`
21013 if test $ac_lo -le $ac_mid; then
21017 ac_mid=`expr 2 '*' $ac_mid + 1`
21020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023 echo "$as_me: failed program was
:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 cat >conftest.$ac_ext <<_ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21032 $ac_includes_default
21033 typedef size_t ac__type_sizeof_;
21037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21044 rm -f conftest.$ac_objext
21045 if { (ac_try="$ac_compile"
21046 case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_compile") 2>conftest.er1
21053 grep -v '^ *+' conftest.er1 >conftest.err
21055 cat conftest.err >&5
21056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21057 (exit $ac_status); } && {
21058 test -z "$ac_c_werror_flag" ||
21059 test ! -s conftest.err
21060 } && test -s conftest.$ac_objext; then
21063 cat >conftest.$ac_ext <<_ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21069 $ac_includes_default
21070 typedef size_t ac__type_sizeof_;
21074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21081 rm -f conftest.$ac_objext
21082 if { (ac_try="$ac_compile"
21083 case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_compile") 2>conftest.er1
21090 grep -v '^ *+' conftest.er1 >conftest.err
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21094 (exit $ac_status); } && {
21095 test -z "$ac_c_werror_flag" ||
21096 test ! -s conftest.err
21097 } && test -s conftest.$ac_objext; then
21098 ac_lo=$ac_mid; break
21100 echo "$as_me: failed program was
:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21103 ac_hi=`expr '(' $ac_mid ')' - 1`
21104 if test $ac_mid -le $ac_hi; then
21108 ac_mid=`expr 2 '*' $ac_mid`
21111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 echo "$as_me: failed program was
:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 # Binary search between lo and hi bounds.
21125 while test "x
$ac_lo" != "x
$ac_hi"; do
21126 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 $ac_includes_default
21134 typedef size_t ac__type_sizeof_;
21138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest.$ac_objext; then
21164 echo "$as_me: failed program was
:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ac_lo=`expr '(' $ac_mid ')' + 1`
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21174 '') if test "$ac_cv_type_size_t" = yes; then
21175 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
21176 See \
`config.log' for more details." >&5
21177 echo "$as_me: error: cannot compute sizeof (size_t)
21178 See \`config.log
' for more details." >&2;}
21179 { (exit 77); exit 77; }; }
21181 ac_cv_sizeof_size_t=0
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 typedef size_t ac__type_sizeof_;
21193 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21194 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21196 #include <stdlib.h>
21201 FILE *f = fopen ("conftest.val", "w");
21204 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21206 long int i = longval ();
21207 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21209 fprintf (f, "%ld\n", i);
21213 unsigned long int i = ulongval ();
21214 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21216 fprintf (f, "%lu\n", i);
21218 return ferror (f) || fclose (f) != 0;
21224 rm -f conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_link") 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_sizeof_size_t=`cat conftest.val`
21246 echo "$as_me: program exited with status $ac_status" >&5
21247 echo "$as_me: failed program was:" >&5
21248 sed 's
/^
/|
/' conftest.$ac_ext >&5
21250 ( exit $ac_status )
21251 if test "$ac_cv_type_size_t" = yes; then
21252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21253 See \`config.log' for more details.
" >&5
21254 echo "$as_me: error
: cannot compute sizeof
(size_t
)
21255 See \
`config.log' for more details." >&2;}
21256 { (exit 77); exit 77; }; }
21258 ac_cv_sizeof_size_t=0
21261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21265 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21266 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21270 cat >>confdefs.h <<_ACEOF
21271 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21276 # Decide whether float4 is passed by value: user-selectable, enabled by default
21277 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21278 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21280 pgac_args="$pgac_args enable_float4_byval"
21282 # Check whether --enable-float4-byval was given.
21283 if test "${enable_float4_byval+set}" = set; then
21284 enableval=$enable_float4_byval;
21288 cat >>confdefs.h <<\_ACEOF
21289 #define USE_FLOAT4_BYVAL 1
21292 float4passbyval=true
21295 float4passbyval=false
21298 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21299 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21300 { (exit 1); exit 1; }; }
21305 enable_float4_byval=yes
21307 cat >>confdefs.h <<\_ACEOF
21308 #define USE_FLOAT4_BYVAL 1
21311 float4passbyval=true
21315 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21316 echo "${ECHO_T}$enable_float4_byval" >&6; }
21318 cat >>confdefs.h <<_ACEOF
21319 #define FLOAT4PASSBYVAL $float4passbyval
21323 # Decide whether float8 is passed by value.
21324 # Note: this setting also controls int8 and related types such as timestamp.
21325 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21326 # If not, trying to select it is an error.
21327 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21328 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21329 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21331 pgac_args="$pgac_args enable_float8_byval"
21333 # Check whether --enable-float8-byval was given.
21334 if test "${enable_float8_byval+set}" = set; then
21335 enableval=$enable_float8_byval;
21344 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21345 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21346 { (exit 1); exit 1; }; }
21351 enable_float8_byval=yes
21358 pgac_args="$pgac_args enable_float8_byval"
21360 # Check whether --enable-float8-byval was given.
21361 if test "${enable_float8_byval+set}" = set; then
21362 enableval=$enable_float8_byval;
21371 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21372 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21373 { (exit 1); exit 1; }; }
21378 enable_float8_byval=no
21383 if test "$enable_float8_byval" = yes ; then
21384 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21385 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21386 { (exit 1); exit 1; }; }
21389 if test "$enable_float8_byval" = yes ; then
21391 cat >>confdefs.h <<\_ACEOF
21392 #define USE_FLOAT8_BYVAL 1
21395 float8passbyval=true
21397 float8passbyval=false
21399 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21400 echo "${ECHO_T}$enable_float8_byval" >&6; }
21402 cat >>confdefs.h <<_ACEOF
21403 #define FLOAT8PASSBYVAL $float8passbyval
21407 # Determine memory alignment requirements for the basic C data types.
21409 { echo "$as_me:$LINENO: checking for short" >&5
21410 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21411 if test "${ac_cv_type_short+set}" = set; then
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 $ac_includes_default
21421 typedef short ac__type_new_;
21425 if ((ac__type_new_ *) 0)
21427 if (sizeof (ac__type_new_))
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21437 *) ac_try_echo
=$ac_try;;
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440 (eval "$ac_compile") 2>conftest.er1
21442 grep -v '^ *+' conftest.er1
>conftest.err
21444 cat conftest.err
>&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest.
$ac_objext; then
21450 ac_cv_type_short
=yes
21452 echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.
$ac_ext >&5
21455 ac_cv_type_short
=no
21458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21460 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21461 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21463 # The cast to long int works around a bug in the HP C Compiler,
21464 # see AC_CHECK_SIZEOF for more information.
21465 { echo "$as_me:$LINENO: checking alignment of short" >&5
21466 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21467 if test "${ac_cv_alignof_short+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 if test "$cross_compiling" = yes; then
21471 # Depending upon the size, compute the lo and hi bounds.
21472 cat >conftest.
$ac_ext <<_ACEOF
21475 cat confdefs.h
>>conftest.
$ac_ext
21476 cat >>conftest.
$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 $ac_includes_default
21480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21482 typedef struct { char x; short y; } ac__type_alignof_;
21486 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21493 rm -f conftest.
$ac_objext
21494 if { (ac_try
="$ac_compile"
21495 case "(($ac_try" in
21496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_compile") 2>conftest.er1
21502 grep -v '^ *+' conftest.er1 >conftest.err
21504 cat conftest.err >&5
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); } && {
21507 test -z "$ac_c_werror_flag" ||
21508 test ! -s conftest.err
21509 } && test -s conftest.$ac_objext; then
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21520 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21522 typedef struct { char x; short y; } ac__type_alignof_;
21526 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21537 *) ac_try_echo
=$ac_try;;
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_compile") 2>conftest.er1
21542 grep -v '^ *+' conftest.er1
>conftest.err
21544 cat conftest.err
>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest.
$ac_objext; then
21550 ac_hi
=$ac_mid; break
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.
$ac_ext >&5
21555 ac_lo
=`expr $ac_mid + 1`
21556 if test $ac_lo -le $ac_mid; then
21560 ac_mid
=`expr 2 '*' $ac_mid + 1`
21563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.
$ac_ext >&5
21569 cat >conftest.
$ac_ext <<_ACEOF
21572 cat confdefs.h
>>conftest.
$ac_ext
21573 cat >>conftest.
$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 $ac_includes_default
21577 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21579 typedef struct { char x; short y; } ac__type_alignof_;
21583 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21590 rm -f conftest.
$ac_objext
21591 if { (ac_try
="$ac_compile"
21592 case "(($ac_try" in
21593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_compile") 2>conftest.er1
21599 grep -v '^ *+' conftest.er1 >conftest.err
21601 cat conftest.err >&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); } && {
21604 test -z "$ac_c_werror_flag" ||
21605 test ! -s conftest.err
21606 } && test -s conftest.$ac_objext; then
21609 cat >conftest.$ac_ext <<_ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 $ac_includes_default
21617 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21619 typedef struct { char x; short y; } ac__type_alignof_;
21623 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21630 rm -f conftest.$ac_objext
21631 if { (ac_try="$ac_compile"
21632 case "(($ac_try" in
21633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21634 *) ac_try_echo
=$ac_try;;
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637 (eval "$ac_compile") 2>conftest.er1
21639 grep -v '^ *+' conftest.er1
>conftest.err
21641 cat conftest.err
>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest.
$ac_objext; then
21647 ac_lo
=$ac_mid; break
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.
$ac_ext >&5
21652 ac_hi
=`expr '(' $ac_mid ')' - 1`
21653 if test $ac_mid -le $ac_hi; then
21657 ac_mid
=`expr 2 '*' $ac_mid`
21660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21663 echo "$as_me: failed program was:" >&5
21664 sed 's/^/| /' conftest.
$ac_ext >&5
21669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21673 # Binary search between lo and hi bounds.
21674 while test "x$ac_lo" != "x$ac_hi"; do
21675 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21676 cat >conftest.
$ac_ext <<_ACEOF
21679 cat confdefs.h
>>conftest.
$ac_ext
21680 cat >>conftest.
$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21686 typedef struct { char x; short y; } ac__type_alignof_;
21690 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21697 rm -f conftest.
$ac_objext
21698 if { (ac_try
="$ac_compile"
21699 case "(($ac_try" in
21700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_compile") 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } && {
21711 test -z "$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21713 } && test -s conftest.$ac_objext; then
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_lo=`expr '(' $ac_mid ')' + 1`
21722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 ?*) ac_cv_alignof_short=$ac_lo;;
21726 '') if test "$ac_cv_type_short" = yes; then
21727 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21728 See \`config.log
' for more details." >&5
21729 echo "$as_me: error: cannot compute alignment of short
21730 See \`config.log' for more details.
" >&2;}
21731 { (exit 77); exit 77; }; }
21733 ac_cv_alignof_short=0
21737 cat >conftest.$ac_ext <<_ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21745 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21747 typedef struct { char x; short y; } ac__type_alignof_;
21748 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21749 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21751 #include <stdlib.h>
21756 FILE *f = fopen ("conftest.val
", "w
");
21759 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21761 long int i = longval ();
21762 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21764 fprintf (f, "%ld
\n", i);
21768 unsigned long int i = ulongval ();
21769 if (i != ((long int) offsetof (ac__type_alignof_, y)))
21771 fprintf (f, "%lu
\n", i);
21773 return ferror (f) || fclose (f) != 0;
21779 rm -f conftest$ac_exeext
21780 if { (ac_try="$ac_link"
21781 case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_link") 2>&5
21788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21790 { (case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_try") 2>&5
21797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_alignof_short=`cat conftest.val`
21801 echo "$as_me: program exited with status
$ac_status" >&5
21802 echo "$as_me: failed program was
:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ( exit $ac_status )
21806 if test "$ac_cv_type_short" = yes; then
21807 { { echo "$as_me:$LINENO: error
: cannot compute alignment of short
21808 See \
`config.log' for more details." >&5
21809 echo "$as_me: error: cannot compute alignment of short
21810 See \`config.log
' for more details." >&2;}
21811 { (exit 77); exit 77; }; }
21813 ac_cv_alignof_short=0
21816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21820 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21821 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21825 cat >>confdefs.h <<_ACEOF
21826 #define ALIGNOF_SHORT $ac_cv_alignof_short
21830 { echo "$as_me:$LINENO: checking for int" >&5
21831 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21832 if test "${ac_cv_type_int+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21835 cat >conftest.$ac_ext <<_ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 $ac_includes_default
21842 typedef int ac__type_new_;
21846 if ((ac__type_new_ *) 0)
21848 if (sizeof (ac__type_new_))
21854 rm -f conftest.$ac_objext
21855 if { (ac_try="$ac_compile"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_compile") 2>conftest.er1
21863 grep -v '^
*+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest.$ac_objext; then
21873 echo "$as_me: failed program was:" >&5
21874 sed 's
/^
/|
/' conftest.$ac_ext >&5
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21882 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21884 # The cast to long int works around a bug in the HP C Compiler,
21885 # see AC_CHECK_SIZEOF for more information.
21886 { echo "$as_me:$LINENO: checking alignment of int" >&5
21887 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21888 if test "${ac_cv_alignof_int+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 if test "$cross_compiling" = yes; then
21892 # Depending upon the size, compute the lo and hi bounds.
21893 cat >conftest.$ac_ext <<_ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 $ac_includes_default
21901 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21903 typedef struct { char x; int y; } ac__type_alignof_;
21907 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21914 rm -f conftest.$ac_objext
21915 if { (ac_try="$ac_compile"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21921 (eval "$ac_compile") 2>conftest.er1
21923 grep -v '^
*+' conftest.er1 >conftest.err
21925 cat conftest.err >&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); } && {
21928 test -z "$ac_c_werror_flag" ||
21929 test ! -s conftest.err
21930 } && test -s conftest.$ac_objext; then
21933 cat >conftest.$ac_ext <<_ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 $ac_includes_default
21941 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21943 typedef struct { char x; int y; } ac__type_alignof_;
21947 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21954 rm -f conftest.$ac_objext
21955 if { (ac_try="$ac_compile"
21956 case "(($ac_try" in
21957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958 *) ac_try_echo=$ac_try;;
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961 (eval "$ac_compile") 2>conftest.er1
21963 grep -v '^
*+' conftest.er1 >conftest.err
21965 cat conftest.err >&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && {
21968 test -z "$ac_c_werror_flag" ||
21969 test ! -s conftest.err
21970 } && test -s conftest.$ac_objext; then
21971 ac_hi=$ac_mid; break
21973 echo "$as_me: failed program was:" >&5
21974 sed 's
/^
/|
/' conftest.$ac_ext >&5
21976 ac_lo=`expr $ac_mid + 1`
21977 if test $ac_lo -le $ac_mid; then
21981 ac_mid=`expr 2 '*' $ac_mid + 1`
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987 echo "$as_me: failed program was:" >&5
21988 sed 's
/^
/|
/' conftest.$ac_ext >&5
21990 cat >conftest.$ac_ext <<_ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 $ac_includes_default
21998 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22000 typedef struct { char x; int y; } ac__type_alignof_;
22004 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22011 rm -f conftest.$ac_objext
22012 if { (ac_try="$ac_compile"
22013 case "(($ac_try" in
22014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015 *) ac_try_echo=$ac_try;;
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018 (eval "$ac_compile") 2>conftest.er1
22020 grep -v '^
*+' conftest.er1 >conftest.err
22022 cat conftest.err >&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } && {
22025 test -z "$ac_c_werror_flag" ||
22026 test ! -s conftest.err
22027 } && test -s conftest.$ac_objext; then
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 $ac_includes_default
22038 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22040 typedef struct { char x; int y; } ac__type_alignof_;
22044 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22051 rm -f conftest.$ac_objext
22052 if { (ac_try="$ac_compile"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_compile") 2>conftest.er1
22060 grep -v '^
*+' conftest.er1 >conftest.err
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } && {
22065 test -z "$ac_c_werror_flag" ||
22066 test ! -s conftest.err
22067 } && test -s conftest.$ac_objext; then
22068 ac_lo=$ac_mid; break
22070 echo "$as_me: failed program was:" >&5
22071 sed 's
/^
/|
/' conftest.$ac_ext >&5
22073 ac_hi=`expr '(' $ac_mid ')' - 1`
22074 if test $ac_mid -le $ac_hi; then
22078 ac_mid=`expr 2 '*' $ac_mid`
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084 echo "$as_me: failed program was:" >&5
22085 sed 's
/^
/|
/' conftest.$ac_ext >&5
22090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 # Binary search between lo and hi bounds.
22095 while test "x$ac_lo" != "x$ac_hi"; do
22096 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22097 cat >conftest.$ac_ext <<_ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 $ac_includes_default
22105 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22107 typedef struct { char x; int y; } ac__type_alignof_;
22111 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22118 rm -f conftest.$ac_objext
22119 if { (ac_try="$ac_compile"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_compile") 2>conftest.er1
22127 grep -v '^
*+' conftest.er1 >conftest.err
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } && {
22132 test -z "$ac_c_werror_flag" ||
22133 test ! -s conftest.err
22134 } && test -s conftest.$ac_objext; then
22137 echo "$as_me: failed program was:" >&5
22138 sed 's
/^
/|
/' conftest.$ac_ext >&5
22140 ac_lo=`expr '(' $ac_mid ')' + 1`
22143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22146 ?*) ac_cv_alignof_int=$ac_lo;;
22147 '') if test "$ac_cv_type_int" = yes; then
22148 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22149 See \`config.log' for more details.
" >&5
22150 echo "$as_me: error
: cannot compute alignment of int
22151 See \
`config.log' for more details." >&2;}
22152 { (exit 77); exit 77; }; }
22154 ac_cv_alignof_int=0
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 $ac_includes_default
22166 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22168 typedef struct { char x; int y; } ac__type_alignof_;
22169 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22170 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22172 #include <stdlib.h>
22177 FILE *f = fopen ("conftest.val", "w");
22180 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22182 long int i = longval ();
22183 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22185 fprintf (f, "%ld\n", i);
22189 unsigned long int i = ulongval ();
22190 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22192 fprintf (f, "%lu\n", i);
22194 return ferror (f) || fclose (f) != 0;
22200 rm -f conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22204 *) ac_try_echo
=$ac_try;;
22206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_link") 2>&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22211 { (case "(($ac_try" in
22212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_try") 2>&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; }; then
22220 ac_cv_alignof_int=`cat conftest.val
`
22222 echo "$as_me: program exited with status $ac_status" >&5
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 ( exit $ac_status )
22227 if test "$ac_cv_type_int" = yes; then
22228 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22229 See \`config.log
' for more details." >&5
22230 echo "$as_me: error: cannot compute alignment of int
22231 See \`config.log' for more details.
" >&2;}
22232 { (exit 77); exit 77; }; }
22234 ac_cv_alignof_int=0
22237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22241 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_int" >&5
22242 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22246 cat >>confdefs.h <<_ACEOF
22247 #define ALIGNOF_INT $ac_cv_alignof_int
22251 { echo "$as_me:$LINENO: checking
for long
" >&5
22252 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
22253 if test "${ac_cv_type_long+set}" = set; then
22254 echo $ECHO_N "(cached
) $ECHO_C" >&6
22256 cat >conftest.$ac_ext <<_ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22262 $ac_includes_default
22263 typedef long ac__type_new_;
22267 if ((ac__type_new_ *) 0)
22269 if (sizeof (ac__type_new_))
22275 rm -f conftest.$ac_objext
22276 if { (ac_try="$ac_compile"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_compile") 2>conftest.er1
22284 grep -v '^ *+' conftest.er1 >conftest.err
22286 cat conftest.err >&5
22287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22288 (exit $ac_status); } && {
22289 test -z "$ac_c_werror_flag" ||
22290 test ! -s conftest.err
22291 } && test -s conftest.$ac_objext; then
22292 ac_cv_type_long=yes
22294 echo "$as_me: failed program was
:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
22303 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22305 # The cast to long int works around a bug in the HP C Compiler,
22306 # see AC_CHECK_SIZEOF for more information.
22307 { echo "$as_me:$LINENO: checking alignment of long
" >&5
22308 echo $ECHO_N "checking alignment of long...
$ECHO_C" >&6; }
22309 if test "${ac_cv_alignof_long+set}" = set; then
22310 echo $ECHO_N "(cached
) $ECHO_C" >&6
22312 if test "$cross_compiling" = yes; then
22313 # Depending upon the size, compute the lo and hi bounds.
22314 cat >conftest.$ac_ext <<_ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22322 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22324 typedef struct { char x; long y; } ac__type_alignof_;
22328 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22335 rm -f conftest.$ac_objext
22336 if { (ac_try="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22344 grep -v '^ *+' conftest.er1 >conftest.err
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22354 cat >conftest.$ac_ext <<_ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360 $ac_includes_default
22362 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22364 typedef struct { char x; long y; } ac__type_alignof_;
22368 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22375 rm -f conftest.$ac_objext
22376 if { (ac_try="$ac_compile"
22377 case "(($ac_try" in
22378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22379 *) ac_try_echo=$ac_try;;
22381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22382 (eval "$ac_compile") 2>conftest.er1
22384 grep -v '^ *+' conftest.er1 >conftest.err
22386 cat conftest.err >&5
22387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest.$ac_objext; then
22392 ac_hi=$ac_mid; break
22394 echo "$as_me: failed program was
:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_lo=`expr $ac_mid + 1`
22398 if test $ac_lo -le $ac_mid; then
22402 ac_mid=`expr 2 '*' $ac_mid + 1`
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22408 echo "$as_me: failed program was
:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 cat >conftest.$ac_ext <<_ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 $ac_includes_default
22419 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22421 typedef struct { char x; long y; } ac__type_alignof_;
22425 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_compile") 2>conftest.er1
22441 grep -v '^ *+' conftest.er1 >conftest.err
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22445 (exit $ac_status); } && {
22446 test -z "$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22448 } && test -s conftest.$ac_objext; then
22451 cat >conftest.$ac_ext <<_ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22457 $ac_includes_default
22459 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22461 typedef struct { char x; long y; } ac__type_alignof_;
22465 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22479 (eval "$ac_compile") 2>conftest.er1
22481 grep -v '^ *+' conftest.er1 >conftest.err
22483 cat conftest.err >&5
22484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22485 (exit $ac_status); } && {
22486 test -z "$ac_c_werror_flag" ||
22487 test ! -s conftest.err
22488 } && test -s conftest.$ac_objext; then
22489 ac_lo=$ac_mid; break
22491 echo "$as_me: failed program was
:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22494 ac_hi=`expr '(' $ac_mid ')' - 1`
22495 if test $ac_mid -le $ac_hi; then
22499 ac_mid=`expr 2 '*' $ac_mid`
22502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505 echo "$as_me: failed program was
:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 # Binary search between lo and hi bounds.
22516 while test "x
$ac_lo" != "x
$ac_hi"; do
22517 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22518 cat >conftest.$ac_ext <<_ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 $ac_includes_default
22526 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22528 typedef struct { char x; long y; } ac__type_alignof_;
22532 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22558 echo "$as_me: failed program was
:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_lo=`expr '(' $ac_mid ')' + 1`
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567 ?*) ac_cv_alignof_long=$ac_lo;;
22568 '') if test "$ac_cv_type_long" = yes; then
22569 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long
22570 See \
`config.log' for more details." >&5
22571 echo "$as_me: error: cannot compute alignment of long
22572 See \`config.log
' for more details." >&2;}
22573 { (exit 77); exit 77; }; }
22575 ac_cv_alignof_long=0
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 $ac_includes_default
22587 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22589 typedef struct { char x; long y; } ac__type_alignof_;
22590 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22591 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22593 #include <stdlib.h>
22598 FILE *f = fopen ("conftest.val", "w");
22601 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22603 long int i = longval ();
22604 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22606 fprintf (f, "%ld\n", i);
22610 unsigned long int i = ulongval ();
22611 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22613 fprintf (f, "%lu\n", i);
22615 return ferror (f) || fclose (f) != 0;
22621 rm -f conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_link") 2>&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22632 { (case "(($ac_try" in
22633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634 *) ac_try_echo=$ac_try;;
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637 (eval "$ac_try") 2>&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; }; then
22641 ac_cv_alignof_long=`cat conftest.val`
22643 echo "$as_me: program exited with status $ac_status" >&5
22644 echo "$as_me: failed program was:" >&5
22645 sed 's
/^
/|
/' conftest.$ac_ext >&5
22647 ( exit $ac_status )
22648 if test "$ac_cv_type_long" = yes; then
22649 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22650 See \`config.log' for more details.
" >&5
22651 echo "$as_me: error
: cannot compute alignment of long
22652 See \
`config.log' for more details." >&2;}
22653 { (exit 77); exit 77; }; }
22655 ac_cv_alignof_long=0
22658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22662 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22663 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22667 cat >>confdefs.h <<_ACEOF
22668 #define ALIGNOF_LONG $ac_cv_alignof_long
22672 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22673 { echo "$as_me:$LINENO: checking for long long int" >&5
22674 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22675 if test "${ac_cv_type_long_long_int+set}" = set; then
22676 echo $ECHO_N "(cached) $ECHO_C" >&6
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 $ac_includes_default
22685 typedef long long int ac__type_new_;
22689 if ((ac__type_new_ *) 0)
22691 if (sizeof (ac__type_new_))
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22701 *) ac_try_echo
=$ac_try;;
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22706 grep -v '^ *+' conftest.er1
>conftest.err
22708 cat conftest.err
>&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest.
$ac_objext; then
22714 ac_cv_type_long_long_int
=yes
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.
$ac_ext >&5
22719 ac_cv_type_long_long_int
=no
22722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22724 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22725 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22727 # The cast to long int works around a bug in the HP C Compiler,
22728 # see AC_CHECK_SIZEOF for more information.
22729 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22730 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22731 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22734 if test "$cross_compiling" = yes; then
22735 # Depending upon the size, compute the lo and hi bounds.
22736 cat >conftest.
$ac_ext <<_ACEOF
22739 cat confdefs.h
>>conftest.
$ac_ext
22740 cat >>conftest.
$ac_ext <<_ACEOF
22741 /* end confdefs.h. */
22742 $ac_includes_default
22744 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22746 typedef struct { char x; long long int y; } ac__type_alignof_;
22750 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22757 rm -f conftest.
$ac_objext
22758 if { (ac_try
="$ac_compile"
22759 case "(($ac_try" in
22760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_compile") 2>conftest.er1
22766 grep -v '^ *+' conftest.er1 >conftest.err
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } && {
22771 test -z "$ac_c_werror_flag" ||
22772 test ! -s conftest.err
22773 } && test -s conftest.$ac_objext; then
22776 cat >conftest.$ac_ext <<_ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22782 $ac_includes_default
22784 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22786 typedef struct { char x; long long int y; } ac__type_alignof_;
22790 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22797 rm -f conftest.$ac_objext
22798 if { (ac_try="$ac_compile"
22799 case "(($ac_try" in
22800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22801 *) ac_try_echo
=$ac_try;;
22803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22804 (eval "$ac_compile") 2>conftest.er1
22806 grep -v '^ *+' conftest.er1
>conftest.err
22808 cat conftest.err
>&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } && {
22811 test -z "$ac_c_werror_flag" ||
22812 test ! -s conftest.err
22813 } && test -s conftest.
$ac_objext; then
22814 ac_hi
=$ac_mid; break
22816 echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.
$ac_ext >&5
22819 ac_lo
=`expr $ac_mid + 1`
22820 if test $ac_lo -le $ac_mid; then
22824 ac_mid
=`expr 2 '*' $ac_mid + 1`
22827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.
$ac_ext >&5
22833 cat >conftest.
$ac_ext <<_ACEOF
22836 cat confdefs.h
>>conftest.
$ac_ext
22837 cat >>conftest.
$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 $ac_includes_default
22841 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22843 typedef struct { char x; long long int y; } ac__type_alignof_;
22847 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22854 rm -f conftest.
$ac_objext
22855 if { (ac_try
="$ac_compile"
22856 case "(($ac_try" in
22857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_compile") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest.$ac_objext; then
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 $ac_includes_default
22881 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22883 typedef struct { char x; long long int y; } ac__type_alignof_;
22887 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22894 rm -f conftest.$ac_objext
22895 if { (ac_try="$ac_compile"
22896 case "(($ac_try" in
22897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22898 *) ac_try_echo
=$ac_try;;
22900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901 (eval "$ac_compile") 2>conftest.er1
22903 grep -v '^ *+' conftest.er1
>conftest.err
22905 cat conftest.err
>&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } && {
22908 test -z "$ac_c_werror_flag" ||
22909 test ! -s conftest.err
22910 } && test -s conftest.
$ac_objext; then
22911 ac_lo
=$ac_mid; break
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.
$ac_ext >&5
22916 ac_hi
=`expr '(' $ac_mid ')' - 1`
22917 if test $ac_mid -le $ac_hi; then
22921 ac_mid
=`expr 2 '*' $ac_mid`
22924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22927 echo "$as_me: failed program was:" >&5
22928 sed 's/^/| /' conftest.
$ac_ext >&5
22933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22937 # Binary search between lo and hi bounds.
22938 while test "x$ac_lo" != "x$ac_hi"; do
22939 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22940 cat >conftest.
$ac_ext <<_ACEOF
22943 cat confdefs.h
>>conftest.
$ac_ext
22944 cat >>conftest.
$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946 $ac_includes_default
22948 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22950 typedef struct { char x; long long int y; } ac__type_alignof_;
22954 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22961 rm -f conftest.
$ac_objext
22962 if { (ac_try
="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_compile") 2>conftest.er1
22970 grep -v '^ *+' conftest.er1 >conftest.err
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && {
22975 test -z "$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 } && test -s conftest.$ac_objext; then
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ac_lo=`expr '(' $ac_mid ')' + 1`
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22990 '') if test "$ac_cv_type_long_long_int" = yes; then
22991 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22992 See \`config.log
' for more details." >&5
22993 echo "$as_me: error: cannot compute alignment of long long int
22994 See \`config.log' for more details.
" >&2;}
22995 { (exit 77); exit 77; }; }
22997 ac_cv_alignof_long_long_int=0
23001 cat >conftest.$ac_ext <<_ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 $ac_includes_default
23009 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23011 typedef struct { char x; long long int y; } ac__type_alignof_;
23012 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23013 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23015 #include <stdlib.h>
23020 FILE *f = fopen ("conftest.val
", "w
");
23023 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23025 long int i = longval ();
23026 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23028 fprintf (f, "%ld
\n", i);
23032 unsigned long int i = ulongval ();
23033 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23035 fprintf (f, "%lu
\n", i);
23037 return ferror (f) || fclose (f) != 0;
23043 rm -f conftest$ac_exeext
23044 if { (ac_try="$ac_link"
23045 case "(($ac_try" in
23046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23050 (eval "$ac_link") 2>&5
23052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23054 { (case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23059 (eval "$ac_try") 2>&5
23061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23062 (exit $ac_status); }; }; then
23063 ac_cv_alignof_long_long_int=`cat conftest.val`
23065 echo "$as_me: program exited with status
$ac_status" >&5
23066 echo "$as_me: failed program was
:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ( exit $ac_status )
23070 if test "$ac_cv_type_long_long_int" = yes; then
23071 { { echo "$as_me:$LINENO: error
: cannot compute alignment of long long int
23072 See \
`config.log' for more details." >&5
23073 echo "$as_me: error: cannot compute alignment of long long int
23074 See \`config.log
' for more details." >&2;}
23075 { (exit 77); exit 77; }; }
23077 ac_cv_alignof_long_long_int=0
23080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23084 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23085 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23089 cat >>confdefs.h <<_ACEOF
23090 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23095 { echo "$as_me:$LINENO: checking for double" >&5
23096 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23097 if test "${ac_cv_type_double+set}" = set; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23100 cat >conftest.$ac_ext <<_ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23106 $ac_includes_default
23107 typedef double ac__type_new_;
23111 if ((ac__type_new_ *) 0)
23113 if (sizeof (ac__type_new_))
23119 rm -f conftest.$ac_objext
23120 if { (ac_try="$ac_compile"
23121 case "(($ac_try" in
23122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23123 *) ac_try_echo=$ac_try;;
23125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23126 (eval "$ac_compile") 2>conftest.er1
23128 grep -v '^
*+' conftest.er1 >conftest.err
23130 cat conftest.err >&5
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } && {
23133 test -z "$ac_c_werror_flag" ||
23134 test ! -s conftest.err
23135 } && test -s conftest.$ac_objext; then
23136 ac_cv_type_double=yes
23138 echo "$as_me: failed program was:" >&5
23139 sed 's
/^
/|
/' conftest.$ac_ext >&5
23141 ac_cv_type_double=no
23144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23147 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23149 # The cast to long int works around a bug in the HP C Compiler,
23150 # see AC_CHECK_SIZEOF for more information.
23151 { echo "$as_me:$LINENO: checking alignment of double" >&5
23152 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23153 if test "${ac_cv_alignof_double+set}" = set; then
23154 echo $ECHO_N "(cached) $ECHO_C" >&6
23156 if test "$cross_compiling" = yes; then
23157 # Depending upon the size, compute the lo and hi bounds.
23158 cat >conftest.$ac_ext <<_ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h. */
23164 $ac_includes_default
23166 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23168 typedef struct { char x; double y; } ac__type_alignof_;
23172 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23179 rm -f conftest.$ac_objext
23180 if { (ac_try="$ac_compile"
23181 case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_compile") 2>conftest.er1
23188 grep -v '^
*+' conftest.er1 >conftest.err
23190 cat conftest.err >&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && {
23193 test -z "$ac_c_werror_flag" ||
23194 test ! -s conftest.err
23195 } && test -s conftest.$ac_objext; then
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 $ac_includes_default
23206 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23208 typedef struct { char x; double y; } ac__type_alignof_;
23212 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23228 grep -v '^
*+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_hi=$ac_mid; break
23238 echo "$as_me: failed program was:" >&5
23239 sed 's
/^
/|
/' conftest.$ac_ext >&5
23241 ac_lo=`expr $ac_mid + 1`
23242 if test $ac_lo -le $ac_mid; then
23246 ac_mid=`expr 2 '*' $ac_mid + 1`
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252 echo "$as_me: failed program was:" >&5
23253 sed 's
/^
/|
/' conftest.$ac_ext >&5
23255 cat >conftest.$ac_ext <<_ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h. */
23261 $ac_includes_default
23263 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23265 typedef struct { char x; double y; } ac__type_alignof_;
23269 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23276 rm -f conftest.$ac_objext
23277 if { (ac_try="$ac_compile"
23278 case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_compile") 2>conftest.er1
23285 grep -v '^
*+' conftest.er1 >conftest.err
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } && {
23290 test -z "$ac_c_werror_flag" ||
23291 test ! -s conftest.err
23292 } && test -s conftest.$ac_objext; then
23295 cat >conftest.$ac_ext <<_ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h. */
23301 $ac_includes_default
23303 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23305 typedef struct { char x; double y; } ac__type_alignof_;
23309 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320 *) ac_try_echo=$ac_try;;
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23325 grep -v '^
*+' conftest.er1 >conftest.err
23327 cat conftest.err >&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_lo=$ac_mid; break
23335 echo "$as_me: failed program was:" >&5
23336 sed 's
/^
/|
/' conftest.$ac_ext >&5
23338 ac_hi=`expr '(' $ac_mid ')' - 1`
23339 if test $ac_mid -le $ac_hi; then
23343 ac_mid=`expr 2 '*' $ac_mid`
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 echo "$as_me: failed program was:" >&5
23350 sed 's
/^
/|
/' conftest.$ac_ext >&5
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 # Binary search between lo and hi bounds.
23360 while test "x$ac_lo" != "x$ac_hi"; do
23361 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 $ac_includes_default
23370 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23372 typedef struct { char x; double y; } ac__type_alignof_;
23376 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23383 rm -f conftest.$ac_objext
23384 if { (ac_try="$ac_compile"
23385 case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23390 (eval "$ac_compile") 2>conftest.er1
23392 grep -v '^
*+' conftest.er1 >conftest.err
23394 cat conftest.err >&5
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest.$ac_objext; then
23402 echo "$as_me: failed program was:" >&5
23403 sed 's
/^
/|
/' conftest.$ac_ext >&5
23405 ac_lo=`expr '(' $ac_mid ')' + 1`
23408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 ?*) ac_cv_alignof_double=$ac_lo;;
23412 '') if test "$ac_cv_type_double" = yes; then
23413 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23414 See \`config.log' for more details.
" >&5
23415 echo "$as_me: error
: cannot compute alignment of double
23416 See \
`config.log' for more details." >&2;}
23417 { (exit 77); exit 77; }; }
23419 ac_cv_alignof_double=0
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 $ac_includes_default
23431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23433 typedef struct { char x; double y; } ac__type_alignof_;
23434 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23435 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23437 #include <stdlib.h>
23442 FILE *f = fopen ("conftest.val", "w");
23445 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23447 long int i = longval ();
23448 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23450 fprintf (f, "%ld\n", i);
23454 unsigned long int i = ulongval ();
23455 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23457 fprintf (f, "%lu\n", i);
23459 return ferror (f) || fclose (f) != 0;
23465 rm -f conftest$ac_exeext
23466 if { (ac_try="$ac_link"
23467 case "(($ac_try" in
23468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23469 *) ac_try_echo
=$ac_try;;
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_link") 2>&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23476 { (case "(($ac_try" in
23477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23478 *) ac_try_echo=$ac_try;;
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481 (eval "$ac_try") 2>&5
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_cv_alignof_double=`cat conftest.val
`
23487 echo "$as_me: program exited with status $ac_status" >&5
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23491 ( exit $ac_status )
23492 if test "$ac_cv_type_double" = yes; then
23493 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23494 See \`config.log
' for more details." >&5
23495 echo "$as_me: error: cannot compute alignment of double
23496 See \`config.log' for more details.
" >&2;}
23497 { (exit 77); exit 77; }; }
23499 ac_cv_alignof_double=0
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23506 { echo "$as_me:$LINENO: result
: $ac_cv_alignof_double" >&5
23507 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23511 cat >>confdefs.h <<_ACEOF
23512 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23517 # Compute maximum alignment of any basic type.
23518 # We assume long's alignment is at least as strong as char, short, or int;
23519 # but we must check long long (if it exists) and double.
23521 MAX_ALIGNOF=$ac_cv_alignof_long
23522 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23523 MAX_ALIGNOF=$ac_cv_alignof_double
23525 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23526 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23529 cat >>confdefs.h <<_ACEOF
23530 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23535 # Some platforms predefine the types int8, int16, etc. Only check
23536 # a (hopefully) representative subset.
23537 { echo "$as_me:$LINENO: checking
for int8
" >&5
23538 echo $ECHO_N "checking
for int8...
$ECHO_C" >&6; }
23539 if test "${ac_cv_type_int8+set}" = set; then
23540 echo $ECHO_N "(cached
) $ECHO_C" >&6
23542 cat >conftest.$ac_ext <<_ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23549 #ifdef HAVE_SUPPORTDEFS_H
23550 #include <SupportDefs.h>
23553 typedef int8 ac__type_new_;
23557 if ((ac__type_new_ *) 0)
23559 if (sizeof (ac__type_new_))
23565 rm -f conftest.$ac_objext
23566 if { (ac_try="$ac_compile"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23574 grep -v '^ *+' conftest.er1 >conftest.err
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_cv_type_int8=yes
23584 echo "$as_me: failed program was
:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23592 { echo "$as_me:$LINENO: result
: $ac_cv_type_int8" >&5
23593 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23594 if test $ac_cv_type_int8 = yes; then
23596 cat >>confdefs.h <<_ACEOF
23597 #define HAVE_INT8 1
23602 { echo "$as_me:$LINENO: checking
for uint8
" >&5
23603 echo $ECHO_N "checking
for uint8...
$ECHO_C" >&6; }
23604 if test "${ac_cv_type_uint8+set}" = set; then
23605 echo $ECHO_N "(cached
) $ECHO_C" >&6
23607 cat >conftest.$ac_ext <<_ACEOF
23610 cat confdefs.h >>conftest.$ac_ext
23611 cat >>conftest.$ac_ext <<_ACEOF
23612 /* end confdefs.h. */
23614 #ifdef HAVE_SUPPORTDEFS_H
23615 #include <SupportDefs.h>
23618 typedef uint8 ac__type_new_;
23622 if ((ac__type_new_ *) 0)
23624 if (sizeof (ac__type_new_))
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23637 (eval "$ac_compile") 2>conftest.er1
23639 grep -v '^ *+' conftest.er1 >conftest.err
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23643 (exit $ac_status); } && {
23644 test -z "$ac_c_werror_flag" ||
23645 test ! -s conftest.err
23646 } && test -s conftest.$ac_objext; then
23647 ac_cv_type_uint8=yes
23649 echo "$as_me: failed program was
:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23652 ac_cv_type_uint8=no
23655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint8" >&5
23658 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23659 if test $ac_cv_type_uint8 = yes; then
23661 cat >>confdefs.h <<_ACEOF
23662 #define HAVE_UINT8 1
23667 { echo "$as_me:$LINENO: checking
for int64
" >&5
23668 echo $ECHO_N "checking
for int64...
$ECHO_C" >&6; }
23669 if test "${ac_cv_type_int64+set}" = set; then
23670 echo $ECHO_N "(cached
) $ECHO_C" >&6
23672 cat >conftest.$ac_ext <<_ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23679 #ifdef HAVE_SUPPORTDEFS_H
23680 #include <SupportDefs.h>
23683 typedef int64 ac__type_new_;
23687 if ((ac__type_new_ *) 0)
23689 if (sizeof (ac__type_new_))
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23702 (eval "$ac_compile") 2>conftest.er1
23704 grep -v '^ *+' conftest.er1 >conftest.err
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest.$ac_objext; then
23712 ac_cv_type_int64=yes
23714 echo "$as_me: failed program was
:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 ac_cv_type_int64=no
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 { echo "$as_me:$LINENO: result
: $ac_cv_type_int64" >&5
23723 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23724 if test $ac_cv_type_int64 = yes; then
23726 cat >>confdefs.h <<_ACEOF
23727 #define HAVE_INT64 1
23732 { echo "$as_me:$LINENO: checking
for uint64
" >&5
23733 echo $ECHO_N "checking
for uint64...
$ECHO_C" >&6; }
23734 if test "${ac_cv_type_uint64+set}" = set; then
23735 echo $ECHO_N "(cached
) $ECHO_C" >&6
23737 cat >conftest.$ac_ext <<_ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23744 #ifdef HAVE_SUPPORTDEFS_H
23745 #include <SupportDefs.h>
23748 typedef uint64 ac__type_new_;
23752 if ((ac__type_new_ *) 0)
23754 if (sizeof (ac__type_new_))
23760 rm -f conftest.$ac_objext
23761 if { (ac_try="$ac_compile"
23762 case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_compile") 2>conftest.er1
23769 grep -v '^ *+' conftest.er1 >conftest.err
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23773 (exit $ac_status); } && {
23774 test -z "$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 } && test -s conftest.$ac_objext; then
23777 ac_cv_type_uint64=yes
23779 echo "$as_me: failed program was
:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 ac_cv_type_uint64=no
23785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787 { echo "$as_me:$LINENO: result
: $ac_cv_type_uint64" >&5
23788 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23789 if test $ac_cv_type_uint64 = yes; then
23791 cat >>confdefs.h <<_ACEOF
23792 #define HAVE_UINT64 1
23799 # We also check for sig_atomic_t, which *should* be defined per ANSI
23800 # C, but is missing on some old platforms.
23801 { echo "$as_me:$LINENO: checking
for sig_atomic_t
" >&5
23802 echo $ECHO_N "checking
for sig_atomic_t...
$ECHO_C" >&6; }
23803 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23804 echo $ECHO_N "(cached
) $ECHO_C" >&6
23806 cat >conftest.$ac_ext <<_ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 #include <signal.h>
23814 typedef sig_atomic_t ac__type_new_;
23818 if ((ac__type_new_ *) 0)
23820 if (sizeof (ac__type_new_))
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_compile") 2>conftest.er1
23835 grep -v '^ *+' conftest.er1 >conftest.err
23837 cat conftest.err >&5
23838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest.$ac_objext; then
23843 ac_cv_type_sig_atomic_t=yes
23845 echo "$as_me: failed program was
:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 ac_cv_type_sig_atomic_t=no
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 { echo "$as_me:$LINENO: result
: $ac_cv_type_sig_atomic_t" >&5
23854 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23855 if test $ac_cv_type_sig_atomic_t = yes; then
23857 cat >>confdefs.h <<_ACEOF
23858 #define HAVE_SIG_ATOMIC_T 1
23866 # If the user did not disable integer datetimes, check that
23867 # there is a working 64-bit integral type to use.
23868 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23869 test x"$HAVE_LONG_INT_64" = x"no
" &&
23870 test x"$HAVE_LONG_LONG_INT_64" = x"no
" &&
23871 test x"$HAVE_INT64" = x"no
" ; then
23872 { { echo "$as_me:$LINENO: error
:
23873 Integer-based datetime support requires a
64-bit integer
type,
23874 but no such
type could be found. The
--disable-integer-datetimes
23875 configure option can be used to disable integer-based storage
23876 of datetime values.
" >&5
23877 echo "$as_me: error
:
23878 Integer-based datetime support requires a
64-bit integer
type,
23879 but no such
type could be found. The
--disable-integer-datetimes
23880 configure option can be used to disable integer-based storage
23881 of datetime values.
" >&2;}
23882 { (exit 1); exit 1; }; }
23886 if test "$PORTNAME" != "win32
"
23888 { echo "$as_me:$LINENO: checking
for POSIX signal interface
" >&5
23889 echo $ECHO_N "checking
for POSIX signal interface...
$ECHO_C" >&6; }
23890 if test "${pgac_cv_func_posix_signals+set}" = set; then
23891 echo $ECHO_N "(cached
) $ECHO_C" >&6
23893 cat >conftest.$ac_ext <<_ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h. */
23899 #include <signal.h>
23904 struct sigaction act, oact;
23905 sigemptyset(&act.sa_mask);
23906 act.sa_flags = SA_RESTART;
23907 sigaction(0, &act, &oact);
23912 rm -f conftest.$ac_objext conftest$ac_exeext
23913 if { (ac_try="$ac_link"
23914 case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_link") 2>conftest.er1
23921 grep -v '^ *+' conftest.er1 >conftest.err
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23925 (exit $ac_status); } && {
23926 test -z "$ac_c_werror_flag" ||
23927 test ! -s conftest.err
23928 } && test -s conftest$ac_exeext &&
23929 $as_test_x conftest$ac_exeext; then
23930 pgac_cv_func_posix_signals=yes
23932 echo "$as_me: failed program was
:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23935 pgac_cv_func_posix_signals=no
23938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23939 conftest$ac_exeext conftest.$ac_ext
23941 { echo "$as_me:$LINENO: result
: $pgac_cv_func_posix_signals" >&5
23942 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23943 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23945 cat >>confdefs.h <<\_ACEOF
23946 #define HAVE_POSIX_SIGNALS
23950 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23952 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23953 { { echo "$as_me:$LINENO: error
:
23954 Thread-safety requires POSIX signals
, which are not supported by this
23955 operating system.
" >&5
23956 echo "$as_me: error
:
23957 Thread-safety requires POSIX signals
, which are not supported by this
23958 operating system.
" >&2;}
23959 { (exit 1); exit 1; }; }
23963 if test $ac_cv_func_fseeko = yes; then
23964 # Check whether --enable-largefile was given.
23965 if test "${enable_largefile+set}" = set; then
23966 enableval=$enable_largefile;
23969 if test "$enable_largefile" != no; then
23971 { echo "$as_me:$LINENO: checking
for special C compiler options needed
for large files
" >&5
23972 echo $ECHO_N "checking
for special C compiler options needed
for large files...
$ECHO_C" >&6; }
23973 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23974 echo $ECHO_N "(cached
) $ECHO_C" >&6
23976 ac_cv_sys_largefile_CC=no
23977 if test "$GCC" != yes; then
23980 # IRIX 6.2 and later do not support large files by default,
23981 # so use the C compiler's -n32 option if that helps.
23982 cat >conftest.$ac_ext <<_ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23988 #include <sys/types.h>
23989 /* Check that off_t can represent 2**63 - 1 correctly.
23990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23991 since some C++ compilers masquerading as C compilers
23992 incorrectly reject 9223372036854775807. */
23993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23995 && LARGE_OFF_T % 2147483647 == 1)
24005 rm -f conftest.$ac_objext
24006 if { (ac_try="$ac_compile"
24007 case "(($ac_try" in
24008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009 *) ac_try_echo=$ac_try;;
24011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24012 (eval "$ac_compile") 2>conftest.er1
24014 grep -v '^ *+' conftest.er1 >conftest.err
24016 cat conftest.err >&5
24017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24018 (exit $ac_status); } && {
24019 test -z "$ac_c_werror_flag" ||
24020 test ! -s conftest.err
24021 } && test -s conftest.$ac_objext; then
24024 echo "$as_me: failed program was
:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24030 rm -f core conftest.err conftest.$ac_objext
24032 rm -f conftest.$ac_objext
24033 if { (ac_try="$ac_compile"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24039 (eval "$ac_compile") 2>conftest.er1
24041 grep -v '^ *+' conftest.er1 >conftest.err
24043 cat conftest.err >&5
24044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24045 (exit $ac_status); } && {
24046 test -z "$ac_c_werror_flag" ||
24047 test ! -s conftest.err
24048 } && test -s conftest.$ac_objext; then
24049 ac_cv_sys_largefile_CC=' -n32'; break
24051 echo "$as_me: failed program was
:" >&5
24052 sed 's/^/| /' conftest.$ac_ext >&5
24057 rm -f core conftest.err conftest.$ac_objext
24061 rm -f conftest.$ac_ext
24064 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_CC" >&5
24065 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24066 if test "$ac_cv_sys_largefile_CC" != no; then
24067 CC=$CC$ac_cv_sys_largefile_CC
24070 { echo "$as_me:$LINENO: checking
for _FILE_OFFSET_BITS value needed
for large files
" >&5
24071 echo $ECHO_N "checking
for _FILE_OFFSET_BITS value needed
for large files...
$ECHO_C" >&6; }
24072 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24073 echo $ECHO_N "(cached
) $ECHO_C" >&6
24076 cat >conftest.$ac_ext <<_ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h. */
24082 #include <sys/types.h>
24083 /* Check that off_t can represent 2**63 - 1 correctly.
24084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24085 since some C++ compilers masquerading as C compilers
24086 incorrectly reject 9223372036854775807. */
24087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24089 && LARGE_OFF_T % 2147483647 == 1)
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24106 (eval "$ac_compile") 2>conftest.er1
24108 grep -v '^ *+' conftest.er1 >conftest.err
24110 cat conftest.err >&5
24111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24112 (exit $ac_status); } && {
24113 test -z "$ac_c_werror_flag" ||
24114 test ! -s conftest.err
24115 } && test -s conftest.$ac_objext; then
24116 ac_cv_sys_file_offset_bits=no; break
24118 echo "$as_me: failed program was
:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 cat >conftest.$ac_ext <<_ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h. */
24131 #define _FILE_OFFSET_BITS 64
24132 #include <sys/types.h>
24133 /* Check that off_t can represent 2**63 - 1 correctly.
24134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24135 since some C++ compilers masquerading as C compilers
24136 incorrectly reject 9223372036854775807. */
24137 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24139 && LARGE_OFF_T % 2147483647 == 1)
24149 rm -f conftest.$ac_objext
24150 if { (ac_try="$ac_compile"
24151 case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24156 (eval "$ac_compile") 2>conftest.er1
24158 grep -v '^ *+' conftest.er1 >conftest.err
24160 cat conftest.err >&5
24161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24162 (exit $ac_status); } && {
24163 test -z "$ac_c_werror_flag" ||
24164 test ! -s conftest.err
24165 } && test -s conftest.$ac_objext; then
24166 ac_cv_sys_file_offset_bits=64; break
24168 echo "$as_me: failed program was
:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 ac_cv_sys_file_offset_bits=unknown
24179 { echo "$as_me:$LINENO: result
: $ac_cv_sys_file_offset_bits" >&5
24180 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24181 case $ac_cv_sys_file_offset_bits in #(
24184 cat >>confdefs.h <<_ACEOF
24185 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24190 if test $ac_cv_sys_file_offset_bits = unknown; then
24191 { echo "$as_me:$LINENO: checking
for _LARGE_FILES value needed
for large files
" >&5
24192 echo $ECHO_N "checking
for _LARGE_FILES value needed
for large files...
$ECHO_C" >&6; }
24193 if test "${ac_cv_sys_large_files+set}" = set; then
24194 echo $ECHO_N "(cached
) $ECHO_C" >&6
24197 cat >conftest.$ac_ext <<_ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24203 #include <sys/types.h>
24204 /* Check that off_t can represent 2**63 - 1 correctly.
24205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24206 since some C++ compilers masquerading as C compilers
24207 incorrectly reject 9223372036854775807. */
24208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24210 && LARGE_OFF_T % 2147483647 == 1)
24220 rm -f conftest.$ac_objext
24221 if { (ac_try="$ac_compile"
24222 case "(($ac_try" in
24223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224 *) ac_try_echo=$ac_try;;
24226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24227 (eval "$ac_compile") 2>conftest.er1
24229 grep -v '^ *+' conftest.er1 >conftest.err
24231 cat conftest.err >&5
24232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24233 (exit $ac_status); } && {
24234 test -z "$ac_c_werror_flag" ||
24235 test ! -s conftest.err
24236 } && test -s conftest.$ac_objext; then
24237 ac_cv_sys_large_files=no; break
24239 echo "$as_me: failed program was
:" >&5
24240 sed 's/^/| /' conftest.$ac_ext >&5
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 cat >conftest.$ac_ext <<_ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h. */
24252 #define _LARGE_FILES 1
24253 #include <sys/types.h>
24254 /* Check that off_t can represent 2**63 - 1 correctly.
24255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24256 since some C++ compilers masquerading as C compilers
24257 incorrectly reject 9223372036854775807. */
24258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24260 && LARGE_OFF_T % 2147483647 == 1)
24270 rm -f conftest.$ac_objext
24271 if { (ac_try="$ac_compile"
24272 case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_compile") 2>conftest.er1
24279 grep -v '^ *+' conftest.er1 >conftest.err
24281 cat conftest.err >&5
24282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24283 (exit $ac_status); } && {
24284 test -z "$ac_c_werror_flag" ||
24285 test ! -s conftest.err
24286 } && test -s conftest.$ac_objext; then
24287 ac_cv_sys_large_files=1; break
24289 echo "$as_me: failed program was
:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24296 ac_cv_sys_large_files=unknown
24300 { echo "$as_me:$LINENO: result
: $ac_cv_sys_large_files" >&5
24301 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24302 case $ac_cv_sys_large_files in #(
24305 cat >>confdefs.h <<_ACEOF
24306 #define _LARGE_FILES $ac_cv_sys_large_files
24316 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24317 { echo "$as_me:$LINENO: checking
for off_t
" >&5
24318 echo $ECHO_N "checking
for off_t...
$ECHO_C" >&6; }
24319 if test "${ac_cv_type_off_t+set}" = set; then
24320 echo $ECHO_N "(cached
) $ECHO_C" >&6
24322 cat >conftest.$ac_ext <<_ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24328 $ac_includes_default
24329 typedef off_t ac__type_new_;
24333 if ((ac__type_new_ *) 0)
24335 if (sizeof (ac__type_new_))
24341 rm -f conftest.$ac_objext
24342 if { (ac_try="$ac_compile"
24343 case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24348 (eval "$ac_compile") 2>conftest.er1
24350 grep -v '^ *+' conftest.er1 >conftest.err
24352 cat conftest.err >&5
24353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24354 (exit $ac_status); } && {
24355 test -z "$ac_c_werror_flag" ||
24356 test ! -s conftest.err
24357 } && test -s conftest.$ac_objext; then
24358 ac_cv_type_off_t=yes
24360 echo "$as_me: failed program was
:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24363 ac_cv_type_off_t=no
24366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24368 { echo "$as_me:$LINENO: result
: $ac_cv_type_off_t" >&5
24369 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24371 # The cast to long int works around a bug in the HP C Compiler
24372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24374 # This bug is HP SR number 8606223364.
24375 { echo "$as_me:$LINENO: checking size of off_t
" >&5
24376 echo $ECHO_N "checking size of off_t...
$ECHO_C" >&6; }
24377 if test "${ac_cv_sizeof_off_t+set}" = set; then
24378 echo $ECHO_N "(cached
) $ECHO_C" >&6
24380 if test "$cross_compiling" = yes; then
24381 # Depending upon the size, compute the lo and hi bounds.
24382 cat >conftest.$ac_ext <<_ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24388 $ac_includes_default
24389 typedef off_t ac__type_sizeof_;
24393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24400 rm -f conftest.$ac_objext
24401 if { (ac_try="$ac_compile"
24402 case "(($ac_try" in
24403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404 *) ac_try_echo=$ac_try;;
24406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24407 (eval "$ac_compile") 2>conftest.er1
24409 grep -v '^ *+' conftest.er1 >conftest.err
24411 cat conftest.err >&5
24412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24413 (exit $ac_status); } && {
24414 test -z "$ac_c_werror_flag" ||
24415 test ! -s conftest.err
24416 } && test -s conftest.$ac_objext; then
24419 cat >conftest.$ac_ext <<_ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h. */
24425 $ac_includes_default
24426 typedef off_t ac__type_sizeof_;
24430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24437 rm -f conftest.$ac_objext
24438 if { (ac_try="$ac_compile"
24439 case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24444 (eval "$ac_compile") 2>conftest.er1
24446 grep -v '^ *+' conftest.er1 >conftest.err
24448 cat conftest.err >&5
24449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24450 (exit $ac_status); } && {
24451 test -z "$ac_c_werror_flag" ||
24452 test ! -s conftest.err
24453 } && test -s conftest.$ac_objext; then
24454 ac_hi=$ac_mid; break
24456 echo "$as_me: failed program was
:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 ac_lo=`expr $ac_mid + 1`
24460 if test $ac_lo -le $ac_mid; then
24464 ac_mid=`expr 2 '*' $ac_mid + 1`
24467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24470 echo "$as_me: failed program was
:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24473 cat >conftest.$ac_ext <<_ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h. */
24479 $ac_includes_default
24480 typedef off_t ac__type_sizeof_;
24484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24491 rm -f conftest.$ac_objext
24492 if { (ac_try="$ac_compile"
24493 case "(($ac_try" in
24494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495 *) ac_try_echo=$ac_try;;
24497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24500 grep -v '^ *+' conftest.er1 >conftest.err
24502 cat conftest.err >&5
24503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
24510 cat >conftest.$ac_ext <<_ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h. */
24516 $ac_includes_default
24517 typedef off_t ac__type_sizeof_;
24521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24528 rm -f conftest.$ac_objext
24529 if { (ac_try="$ac_compile"
24530 case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24535 (eval "$ac_compile") 2>conftest.er1
24537 grep -v '^ *+' conftest.er1 >conftest.err
24539 cat conftest.err >&5
24540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24541 (exit $ac_status); } && {
24542 test -z "$ac_c_werror_flag" ||
24543 test ! -s conftest.err
24544 } && test -s conftest.$ac_objext; then
24545 ac_lo=$ac_mid; break
24547 echo "$as_me: failed program was
:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 ac_hi=`expr '(' $ac_mid ')' - 1`
24551 if test $ac_mid -le $ac_hi; then
24555 ac_mid=`expr 2 '*' $ac_mid`
24558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24561 echo "$as_me: failed program was
:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 # Binary search between lo and hi bounds.
24572 while test "x
$ac_lo" != "x
$ac_hi"; do
24573 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24574 cat >conftest.$ac_ext <<_ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h. */
24580 $ac_includes_default
24581 typedef off_t ac__type_sizeof_;
24585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24592 rm -f conftest.$ac_objext
24593 if { (ac_try="$ac_compile"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_compile") 2>conftest.er1
24601 grep -v '^ *+' conftest.er1 >conftest.err
24603 cat conftest.err >&5
24604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24605 (exit $ac_status); } && {
24606 test -z "$ac_c_werror_flag" ||
24607 test ! -s conftest.err
24608 } && test -s conftest.$ac_objext; then
24611 echo "$as_me: failed program was
:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24614 ac_lo=`expr '(' $ac_mid ')' + 1`
24617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24620 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24621 '') if test "$ac_cv_type_off_t" = yes; then
24622 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
24623 See \
`config.log' for more details." >&5
24624 echo "$as_me: error: cannot compute sizeof (off_t)
24625 See \`config.log
' for more details." >&2;}
24626 { (exit 77); exit 77; }; }
24628 ac_cv_sizeof_off_t=0
24632 cat >conftest.$ac_ext <<_ACEOF
24635 cat confdefs.h >>conftest.$ac_ext
24636 cat >>conftest.$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24638 $ac_includes_default
24639 typedef off_t ac__type_sizeof_;
24640 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24641 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24643 #include <stdlib.h>
24648 FILE *f = fopen ("conftest.val", "w");
24651 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24653 long int i = longval ();
24654 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24656 fprintf (f, "%ld\n", i);
24660 unsigned long int i = ulongval ();
24661 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24663 fprintf (f, "%lu\n", i);
24665 return ferror (f) || fclose (f) != 0;
24671 rm -f conftest$ac_exeext
24672 if { (ac_try="$ac_link"
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_link") 2>&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24682 { (case "(($ac_try" in
24683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24684 *) ac_try_echo=$ac_try;;
24686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24687 (eval "$ac_try") 2>&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); }; }; then
24691 ac_cv_sizeof_off_t=`cat conftest.val`
24693 echo "$as_me: program exited with status $ac_status" >&5
24694 echo "$as_me: failed program was:" >&5
24695 sed 's
/^
/|
/' conftest.$ac_ext >&5
24697 ( exit $ac_status )
24698 if test "$ac_cv_type_off_t" = yes; then
24699 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24700 See \`config.log' for more details.
" >&5
24701 echo "$as_me: error
: cannot compute sizeof
(off_t
)
24702 See \
`config.log' for more details." >&2;}
24703 { (exit 77); exit 77; }; }
24705 ac_cv_sizeof_off_t=0
24708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24712 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24713 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24717 cat >>confdefs.h <<_ACEOF
24718 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24723 # If we don't have largefile support, can't handle segsize >= 2GB.
24724 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24725 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24726 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24727 { (exit 1); exit 1; }; }
24730 # SunOS doesn't handle negative byte comparisons properly with +/- return
24731 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24732 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24733 if test "${ac_cv_func_memcmp_working+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
24736 if test "$cross_compiling" = yes; then
24737 ac_cv_func_memcmp_working=no
24739 cat >conftest.$ac_ext <<_ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h. */
24745 $ac_includes_default
24750 /* Some versions of memcmp are not 8-bit clean. */
24751 char c0 = '\100', c1 = '\200', c2 = '\201';
24752 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24755 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24756 or more and with at least one buffer not starting on a 4-byte boundary.
24757 William Lewis provided this test program. */
24762 for (i = 0; i < 4; i++)
24766 strcpy (a, "--------01111111");
24767 strcpy (b, "--------10000000");
24768 if (memcmp (a, b, 16) >= 0)
24778 rm -f conftest$ac_exeext
24779 if { (ac_try="$ac_link"
24780 case "(($ac_try" in
24781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24782 *) ac_try_echo
=$ac_try;;
24784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24785 (eval "$ac_link") 2>&5
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24789 { (case "(($ac_try" in
24790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794 (eval "$ac_try") 2>&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); }; }; then
24798 ac_cv_func_memcmp_working=yes
24800 echo "$as_me: program exited with status $ac_status" >&5
24801 echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24804 ( exit $ac_status )
24805 ac_cv_func_memcmp_working=no
24807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24812 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24813 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24814 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24815 *" memcmp.$ac_objext "* ) ;;
24816 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24823 # Select semaphore implementation type.
24824 if test "$PORTNAME" != "win32"; then
24825 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24827 cat >>confdefs.h <<\_ACEOF
24828 #define USE_NAMED_POSIX_SEMAPHORES 1
24831 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24833 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24835 cat >>confdefs.h <<\_ACEOF
24836 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24839 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24842 cat >>confdefs.h <<\_ACEOF
24843 #define USE_SYSV_SEMAPHORES 1
24846 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24851 cat >>confdefs.h <<\_ACEOF
24852 #define USE_WIN32_SEMAPHORES 1
24855 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24859 # Select shared-memory implementation type.
24860 if test "$PORTNAME" != "win32"; then
24862 cat >>confdefs.h <<\_ACEOF
24863 #define USE_SYSV_SHARED_MEMORY 1
24866 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24869 cat >>confdefs.h <<\_ACEOF
24870 #define USE_WIN32_SHARED_MEMORY 1
24873 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24876 # If not set in template file, set bytes to use libc memset()
24877 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24878 MEMSET_LOOP_LIMIT=1024
24881 cat >>confdefs.h <<_ACEOF
24882 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24887 if test "$enable_nls" = yes ; then
24889 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24890 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24891 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24894 ac_func_search_save_LIBS=$LIBS
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24902 /* Override any GCC internal prototype to avoid an error.
24903 Use char because int might match the return type of a GCC
24904 builtin and then its argument prototype would still apply. */
24908 char bind_textdomain_codeset ();
24912 return bind_textdomain_codeset ();
24917 for ac_lib in '' intl; do
24918 if test -z "$ac_lib"; then
24919 ac_res="none required"
24922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24924 rm -f conftest.$ac_objext conftest$ac_exeext
24925 if { (ac_try="$ac_link"
24926 case "(($ac_try" in
24927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24928 *) ac_try_echo
=$ac_try;;
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_link") 2>conftest.er1
24933 grep -v '^ *+' conftest.er1
>conftest.err
24935 cat conftest.err
>&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } && {
24938 test -z "$ac_c_werror_flag" ||
24939 test ! -s conftest.err
24940 } && test -s conftest
$ac_exeext &&
24941 $as_test_x conftest
$ac_exeext; then
24942 ac_cv_search_bind_textdomain_codeset
=$ac_res
24944 echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.
$ac_ext >&5
24950 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24952 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24956 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24959 ac_cv_search_bind_textdomain_codeset
=no
24961 rm conftest.
$ac_ext
24962 LIBS
=$ac_func_search_save_LIBS
24964 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24965 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24966 ac_res
=$ac_cv_search_bind_textdomain_codeset
24967 if test "$ac_res" != no
; then
24968 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
24971 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24972 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24973 { (exit 1); exit 1; }; }
24976 if test "${ac_cv_header_libintl_h+set}" = set; then
24977 { echo "$as_me:$LINENO: checking for libintl.h" >&5
24978 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24979 if test "${ac_cv_header_libintl_h+set}" = set; then
24980 echo $ECHO_N "(cached) $ECHO_C" >&6
24982 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24983 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24985 # Is the header compilable?
24986 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24987 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24988 cat >conftest.
$ac_ext <<_ACEOF
24991 cat confdefs.h
>>conftest.
$ac_ext
24992 cat >>conftest.
$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24994 $ac_includes_default
24995 #include <libintl.h>
24997 rm -f conftest.
$ac_objext
24998 if { (ac_try
="$ac_compile"
24999 case "(($ac_try" in
25000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_compile") 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } && {
25011 test -z "$ac_c_werror_flag" ||
25012 test ! -s conftest.err
25013 } && test -s conftest.$ac_objext; then
25014 ac_header_compiler=yes
25016 echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25019 ac_header_compiler=no
25022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25024 echo "${ECHO_T}$ac_header_compiler" >&6; }
25026 # Is the header present?
25027 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25028 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25029 cat >conftest.$ac_ext <<_ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25035 #include <libintl.h>
25037 if { (ac_try="$ac_cpp conftest.$ac_ext"
25038 case "(($ac_try" in
25039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25040 *) ac_try_echo
=$ac_try;;
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25045 grep -v '^ *+' conftest.er1
>conftest.err
25047 cat conftest.err
>&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); } >/dev
/null
&& {
25050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25051 test ! -s conftest.err
25053 ac_header_preproc
=yes
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.
$ac_ext >&5
25058 ac_header_preproc
=no
25061 rm -f conftest.err conftest.
$ac_ext
25062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25063 echo "${ECHO_T}$ac_header_preproc" >&6; }
25065 # So? What about this header?
25066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25068 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25069 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25070 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25071 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25072 ac_header_preproc
=yes
25075 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25076 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25077 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
25078 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25080 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25081 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
25082 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25083 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25084 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25085 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25086 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25088 ## ---------------------------------------- ##
25089 ## Report this to pgsql-bugs@postgresql.org ##
25090 ## ---------------------------------------- ##
25092 ) |
sed "s/^/$as_me: WARNING: /" >&2
25095 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25096 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25097 if test "${ac_cv_header_libintl_h+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25100 ac_cv_header_libintl_h
=$ac_header_preproc
25102 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25103 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25106 if test $ac_cv_header_libintl_h = yes; then
25109 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25110 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25111 { (exit 1); exit 1; }; }
25115 for ac_prog
in msgfmt
25117 # Extract the first word of "$ac_prog", so it can be a program name with args.
25118 set dummy
$ac_prog; ac_word
=$2
25119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25121 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25124 if test -n "$MSGFMT"; then
25125 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
25127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25128 for as_dir
in $PATH
25131 test -z "$as_dir" && as_dir
=.
25132 for ac_exec_ext
in '' $ac_executable_extensions; do
25133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25134 ac_cv_prog_MSGFMT
="$ac_prog"
25135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25144 MSGFMT
=$ac_cv_prog_MSGFMT
25145 if test -n "$MSGFMT"; then
25146 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25147 echo "${ECHO_T}$MSGFMT" >&6; }
25149 { echo "$as_me:$LINENO: result: no" >&5
25150 echo "${ECHO_T}no" >&6; }
25154 test -n "$MSGFMT" && break
25157 if test -z "$MSGFMT"; then
25158 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25159 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25160 { (exit 1); exit 1; }; }
25162 for ac_prog
in msgmerge
25164 # Extract the first word of "$ac_prog", so it can be a program name with args.
25165 set dummy
$ac_prog; ac_word
=$2
25166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25168 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 if test -n "$MSGMERGE"; then
25172 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
25174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25175 for as_dir
in $PATH
25178 test -z "$as_dir" && as_dir
=.
25179 for ac_exec_ext
in '' $ac_executable_extensions; do
25180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25181 ac_cv_prog_MSGMERGE
="$ac_prog"
25182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25191 MSGMERGE
=$ac_cv_prog_MSGMERGE
25192 if test -n "$MSGMERGE"; then
25193 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25194 echo "${ECHO_T}$MSGMERGE" >&6; }
25196 { echo "$as_me:$LINENO: result: no" >&5
25197 echo "${ECHO_T}no" >&6; }
25201 test -n "$MSGMERGE" && break
25204 for ac_prog
in xgettext
25206 # Extract the first word of "$ac_prog", so it can be a program name with args.
25207 set dummy
$ac_prog; ac_word
=$2
25208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25210 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25211 echo $ECHO_N "(cached) $ECHO_C" >&6
25213 if test -n "$XGETTEXT"; then
25214 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
25216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25217 for as_dir
in $PATH
25220 test -z "$as_dir" && as_dir
=.
25221 for ac_exec_ext
in '' $ac_executable_extensions; do
25222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25223 ac_cv_prog_XGETTEXT
="$ac_prog"
25224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25233 XGETTEXT
=$ac_cv_prog_XGETTEXT
25234 if test -n "$XGETTEXT"; then
25235 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25236 echo "${ECHO_T}$XGETTEXT" >&6; }
25238 { echo "$as_me:$LINENO: result: no" >&5
25239 echo "${ECHO_T}no" >&6; }
25243 test -n "$XGETTEXT" && break
25249 # Check for Tcl configuration script tclConfig.sh
25250 if test "$with_tcl" = yes; then
25251 for ac_prog
in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25253 # Extract the first word of "$ac_prog", so it can be a program name with args.
25254 set dummy
$ac_prog; ac_word
=$2
25255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25257 if test "${ac_cv_path_TCLSH+set}" = set; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
25265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25266 for as_dir
in $PATH
25269 test -z "$as_dir" && as_dir
=.
25270 for ac_exec_ext
in '' $ac_executable_extensions; do
25271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25272 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
25273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25283 TCLSH
=$ac_cv_path_TCLSH
25284 if test -n "$TCLSH"; then
25285 { echo "$as_me:$LINENO: result: $TCLSH" >&5
25286 echo "${ECHO_T}$TCLSH" >&6; }
25288 { echo "$as_me:$LINENO: result: no" >&5
25289 echo "${ECHO_T}no" >&6; }
25293 test -n "$TCLSH" && break
25296 if test x
"$TCLSH" = x
""; then
25297 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25298 echo "$as_me: error: Tcl shell not found" >&2;}
25299 { (exit 1); exit 1; }; }
25302 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25303 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25304 # Let user override test
25305 if test -z "$TCL_CONFIG_SH"; then
25306 pgac_test_dirs
="$with_tclconfig"
25308 set X
$pgac_test_dirs; shift
25309 if test $# -eq 0; then
25310 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25311 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25312 { (exit 1); exit 1; }; }
25313 set X
`echo 'puts $auto_path' | $TCLSH`; shift
25317 if test -r "$pgac_dir/tclConfig.sh"; then
25318 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
25324 if test -z "$TCL_CONFIG_SH"; then
25325 { echo "$as_me:$LINENO: result: no" >&5
25326 echo "${ECHO_T}no" >&6; }
25327 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25328 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25329 { (exit 1); exit 1; }; }
25331 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25332 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25338 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
25339 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
25340 eval TCL_LIBS
=\"$TCL_LIBS\"
25341 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
25342 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
25344 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25345 ac_save_CPPFLAGS
=$CPPFLAGS
25346 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
25347 if test "${ac_cv_header_tcl_h+set}" = set; then
25348 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25349 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25350 if test "${ac_cv_header_tcl_h+set}" = set; then
25351 echo $ECHO_N "(cached) $ECHO_C" >&6
25353 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25354 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25356 # Is the header compilable?
25357 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25358 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25359 cat >conftest.
$ac_ext <<_ACEOF
25362 cat confdefs.h
>>conftest.
$ac_ext
25363 cat >>conftest.
$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 $ac_includes_default
25368 rm -f conftest.
$ac_objext
25369 if { (ac_try
="$ac_compile"
25370 case "(($ac_try" in
25371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25372 *) ac_try_echo=$ac_try;;
25374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25375 (eval "$ac_compile") 2>conftest.er1
25377 grep -v '^ *+' conftest.er1 >conftest.err
25379 cat conftest.err >&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); } && {
25382 test -z "$ac_c_werror_flag" ||
25383 test ! -s conftest.err
25384 } && test -s conftest.$ac_objext; then
25385 ac_header_compiler=yes
25387 echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25390 ac_header_compiler=no
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25395 echo "${ECHO_T}$ac_header_compiler" >&6; }
25397 # Is the header present?
25398 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25399 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25400 cat >conftest.$ac_ext <<_ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h. */
25408 if { (ac_try="$ac_cpp conftest.$ac_ext"
25409 case "(($ac_try" in
25410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25411 *) ac_try_echo
=$ac_try;;
25413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25416 grep -v '^ *+' conftest.er1
>conftest.err
25418 cat conftest.err
>&5
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); } >/dev
/null
&& {
25421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25422 test ! -s conftest.err
25424 ac_header_preproc
=yes
25426 echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.
$ac_ext >&5
25429 ac_header_preproc
=no
25432 rm -f conftest.err conftest.
$ac_ext
25433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25434 echo "${ECHO_T}$ac_header_preproc" >&6; }
25436 # So? What about this header?
25437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25439 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25440 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25441 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25442 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25443 ac_header_preproc
=yes
25446 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25447 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25448 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
25449 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
25450 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25451 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25452 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
25453 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25454 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25455 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25456 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25457 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25459 ## ---------------------------------------- ##
25460 ## Report this to pgsql-bugs@postgresql.org ##
25461 ## ---------------------------------------- ##
25463 ) |
sed "s/^/$as_me: WARNING: /" >&2
25466 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25467 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25468 if test "${ac_cv_header_tcl_h+set}" = set; then
25469 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 ac_cv_header_tcl_h
=$ac_header_preproc
25473 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25474 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25477 if test $ac_cv_header_tcl_h = yes; then
25480 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25481 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25482 { (exit 1); exit 1; }; }
25486 CPPFLAGS
=$ac_save_CPPFLAGS
25490 # Check for DocBook and tools
25492 for ac_prog
in onsgmls nsgmls
25494 # Extract the first word of "$ac_prog", so it can be a program name with args.
25495 set dummy
$ac_prog; ac_word
=$2
25496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25498 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25501 if test -n "$NSGMLS"; then
25502 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
25504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25505 for as_dir
in $PATH
25508 test -z "$as_dir" && as_dir
=.
25509 for ac_exec_ext
in '' $ac_executable_extensions; do
25510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25511 ac_cv_prog_NSGMLS
="$ac_prog"
25512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25521 NSGMLS
=$ac_cv_prog_NSGMLS
25522 if test -n "$NSGMLS"; then
25523 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25524 echo "${ECHO_T}$NSGMLS" >&6; }
25526 { echo "$as_me:$LINENO: result: no" >&5
25527 echo "${ECHO_T}no" >&6; }
25531 test -n "$NSGMLS" && break
25534 for ac_prog
in openjade jade
25536 # Extract the first word of "$ac_prog", so it can be a program name with args.
25537 set dummy
$ac_prog; ac_word
=$2
25538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25540 if test "${ac_cv_prog_JADE+set}" = set; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 if test -n "$JADE"; then
25544 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
25546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25547 for as_dir
in $PATH
25550 test -z "$as_dir" && as_dir
=.
25551 for ac_exec_ext
in '' $ac_executable_extensions; do
25552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25553 ac_cv_prog_JADE
="$ac_prog"
25554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25563 JADE
=$ac_cv_prog_JADE
25564 if test -n "$JADE"; then
25565 { echo "$as_me:$LINENO: result: $JADE" >&5
25566 echo "${ECHO_T}$JADE" >&6; }
25568 { echo "$as_me:$LINENO: result: no" >&5
25569 echo "${ECHO_T}no" >&6; }
25573 test -n "$JADE" && break
25577 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25578 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25579 if test "${pgac_cv_check_docbook+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25582 cat >conftest.sgml
<<EOF
25583 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25585 <title>test</title>
25587 <title>random</title>
25589 <title>testsect</title>
25596 pgac_cv_check_docbook
=no
25598 if test -n "$NSGMLS"; then
25599 $NSGMLS -s conftest.sgml
1>&5 2>&1
25600 if test $?
-eq 0; then
25601 pgac_cv_check_docbook
=yes
25604 rm -f conftest.sgml
25606 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25607 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25609 have_docbook
=$pgac_cv_check_docbook
25612 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25613 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25614 if test "${pgac_cv_path_stylesheets+set}" = set; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25617 if test -n "$DOCBOOKSTYLE"; then
25618 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
25620 for pgac_prefix
in /usr
/usr
/local /opt
/sw
; do
25621 for pgac_infix
in share lib
; do
25622 for pgac_postfix
in \
25623 sgml
/stylesheets
/nwalsh-modular \
25624 sgml
/stylesheets
/docbook \
25625 sgml
/stylesheets
/dsssl
/docbook \
25626 sgml
/docbook-dsssl \
25627 sgml
/docbook
/dsssl
/modular \
25628 sgml
/docbook
/stylesheet
/dsssl
/modular \
25629 sgml
/docbook
/dsssl-stylesheets \
25630 sgml
/dsssl
/docbook-dsssl-nwalsh
25632 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
25633 if test -r "$pgac_candidate/html/docbook.dsl" \
25634 && test -r "$pgac_candidate/print/docbook.dsl"
25636 pgac_cv_path_stylesheets
=$pgac_candidate
25645 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
25647 if test -n "$DOCBOOKSTYLE"; then
25648 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25649 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25651 { echo "$as_me:$LINENO: result: no" >&5
25652 echo "${ECHO_T}no" >&6; }
25654 if test -n "$DOCBOOKSTYLE"; then
25655 for ac_prog
in collateindex.pl
25657 # Extract the first word of "$ac_prog", so it can be a program name with args.
25658 set dummy
$ac_prog; ac_word
=$2
25659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25661 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25662 echo $ECHO_N "(cached) $ECHO_C" >&6
25664 case $COLLATEINDEX in
25666 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25670 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
25673 test -z "$as_dir" && as_dir
=.
25674 for ac_exec_ext
in '' $ac_executable_extensions; do
25675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25676 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25687 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25688 if test -n "$COLLATEINDEX"; then
25689 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25690 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25692 { echo "$as_me:$LINENO: result: no" >&5
25693 echo "${ECHO_T}no" >&6; }
25697 test -n "$COLLATEINDEX" && break
25701 for ac_prog
in collateindex.pl
25703 # Extract the first word of "$ac_prog", so it can be a program name with args.
25704 set dummy
$ac_prog; ac_word
=$2
25705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25707 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25710 case $COLLATEINDEX in
25712 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
25715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25716 for as_dir
in $PATH
25719 test -z "$as_dir" && as_dir
=.
25720 for ac_exec_ext
in '' $ac_executable_extensions; do
25721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25722 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
25723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25733 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
25734 if test -n "$COLLATEINDEX"; then
25735 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25736 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25738 { echo "$as_me:$LINENO: result: no" >&5
25739 echo "${ECHO_T}no" >&6; }
25743 test -n "$COLLATEINDEX" && break
25747 for ac_prog
in sgmlspl
25749 # Extract the first word of "$ac_prog", so it can be a program name with args.
25750 set dummy
$ac_prog; ac_word
=$2
25751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25753 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
25756 if test -n "$SGMLSPL"; then
25757 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
25759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25760 for as_dir
in $PATH
25763 test -z "$as_dir" && as_dir
=.
25764 for ac_exec_ext
in '' $ac_executable_extensions; do
25765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25766 ac_cv_prog_SGMLSPL
="$ac_prog"
25767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25776 SGMLSPL
=$ac_cv_prog_SGMLSPL
25777 if test -n "$SGMLSPL"; then
25778 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25779 echo "${ECHO_T}$SGMLSPL" >&6; }
25781 { echo "$as_me:$LINENO: result: no" >&5
25782 echo "${ECHO_T}no" >&6; }
25786 test -n "$SGMLSPL" && break
25792 # We have to run the thread test near the end so we have all our symbols
25793 # defined. Cross compiling throws a warning.
25795 if test "$enable_thread_safety_force" = yes; then
25796 if test "$PORTNAME" != "win32"
25798 { echo "$as_me:$LINENO: WARNING:
25799 *** Skipping thread test program. --enable-thread-safety-force was used.
25800 *** Run the program in src/test/thread on the your machine and add proper
25801 *** locking function calls to your applications to guarantee thread safety.
25803 echo "$as_me: WARNING:
25804 *** Skipping thread test program. --enable-thread-safety-force was used.
25805 *** Run the program in src/test/thread on the your machine and add proper
25806 *** locking function calls to your applications to guarantee thread safety.
25809 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25810 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25812 elif test "$enable_thread_safety" = yes; then
25813 if test "$PORTNAME" != "win32"
25815 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25816 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25820 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25821 LIBS
="$LIBS $PTHREAD_LIBS"
25822 if test "$cross_compiling" = yes; then
25823 { echo "$as_me:$LINENO: result: maybe" >&5
25824 echo "${ECHO_T}maybe" >&6; }
25825 { echo "$as_me:$LINENO: WARNING:
25826 *** Skipping thread test program because of cross-compile build.
25827 *** Run the program in src/test/thread on the target machine.
25829 echo "$as_me: WARNING:
25830 *** Skipping thread test program because of cross-compile build.
25831 *** Run the program in src/test/thread on the target machine.
25834 cat >conftest.
$ac_ext <<_ACEOF
25837 cat confdefs.h
>>conftest.
$ac_ext
25838 cat >>conftest.
$ac_ext <<_ACEOF
25839 /* end confdefs.h. */
25840 #include "$srcdir/src/test/thread/thread_test.c"
25842 rm -f conftest
$ac_exeext
25843 if { (ac_try
="$ac_link"
25844 case "(($ac_try" in
25845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849 (eval "$ac_link") 2>&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25853 { (case "(($ac_try" in
25854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25855 *) ac_try_echo
=$ac_try;;
25857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25858 (eval "$ac_try") 2>&5
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; }; then
25862 { echo "$as_me:$LINENO: result: yes" >&5
25863 echo "${ECHO_T}yes" >&6; }
25865 echo "$as_me: program exited with status $ac_status" >&5
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.
$ac_ext >&5
25869 ( exit $ac_status )
25870 { echo "$as_me:$LINENO: result: no" >&5
25871 echo "${ECHO_T}no" >&6; }
25872 { { echo "$as_me:$LINENO: error: thread test program failed
25873 This platform is not thread-safe. Check the file 'config.log' for the
25876 You can use the configure option --enable-thread-safety-force to force
25877 threads to be enabled. But you must then run the program in
25878 src/test/thread and add locking function calls to your applications to
25879 guarantee thread safety." >&5
25880 echo "$as_me: error: thread test program failed
25881 This platform is not thread-safe. Check the file 'config.log' for the
25884 You can use the configure option --enable-thread-safety-force to force
25885 threads to be enabled. But you must then run the program in
25886 src/test/thread and add locking function calls to your applications to
25887 guarantee thread safety." >&2;}
25888 { (exit 1); exit 1; }; }
25890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25897 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25898 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25902 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25903 # This is much easier than trying to filter LIBS to the minimum for each
25904 # executable. (Note that shared library links won't use this switch, though.)
25905 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25906 # libreadline; therefore we postpone testing it until we know what library
25907 # dependencies readline has. The test code will try to link with $LIBS.
25908 if test "$with_readline" = yes; then
25909 link_test_func
=readline
25911 link_test_func
=exit
25913 if test "$PORTNAME" != "darwin"; then
25914 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25915 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25916 pgac_save_LDFLAGS
=$LDFLAGS
25917 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
25918 if test "$cross_compiling" = yes; then
25919 LDFLAGS
="$pgac_save_LDFLAGS"
25920 { echo "$as_me:$LINENO: result: assuming no" >&5
25921 echo "${ECHO_T}assuming no" >&6; }
25923 cat >conftest.
$ac_ext <<_ACEOF
25926 cat confdefs.h
>>conftest.
$ac_ext
25927 cat >>conftest.
$ac_ext <<_ACEOF
25928 /* end confdefs.h. */
25929 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25938 rm -f conftest
$ac_exeext
25939 if { (ac_try
="$ac_link"
25940 case "(($ac_try" in
25941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25942 *) ac_try_echo=$ac_try;;
25944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25945 (eval "$ac_link") 2>&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25949 { (case "(($ac_try" in
25950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25951 *) ac_try_echo
=$ac_try;;
25953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25954 (eval "$ac_try") 2>&5
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 { echo "$as_me:$LINENO: result: yes" >&5
25959 echo "${ECHO_T}yes" >&6; }
25961 echo "$as_me: program exited with status $ac_status" >&5
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.
$ac_ext >&5
25965 ( exit $ac_status )
25966 LDFLAGS
="$pgac_save_LDFLAGS"
25967 { echo "$as_me:$LINENO: result: no" >&5
25968 echo "${ECHO_T}no" >&6; }
25970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25976 # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25977 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25978 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25979 pgac_save_LDFLAGS
=$LDFLAGS
25980 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25981 if test "$cross_compiling" = yes; then
25982 LDFLAGS
="$pgac_save_LDFLAGS"
25983 { echo "$as_me:$LINENO: result: assuming no" >&5
25984 echo "${ECHO_T}assuming no" >&6; }
25986 cat >conftest.
$ac_ext <<_ACEOF
25989 cat confdefs.h
>>conftest.
$ac_ext
25990 cat >>conftest.
$ac_ext <<_ACEOF
25991 /* end confdefs.h. */
25992 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26001 rm -f conftest
$ac_exeext
26002 if { (ac_try
="$ac_link"
26003 case "(($ac_try" in
26004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26005 *) ac_try_echo=$ac_try;;
26007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26008 (eval "$ac_link") 2>&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26012 { (case "(($ac_try" in
26013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26014 *) ac_try_echo
=$ac_try;;
26016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017 (eval "$ac_try") 2>&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 { echo "$as_me:$LINENO: result: yes" >&5
26022 echo "${ECHO_T}yes" >&6; }
26024 echo "$as_me: program exited with status $ac_status" >&5
26025 echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.
$ac_ext >&5
26028 ( exit $ac_status )
26029 LDFLAGS
="$pgac_save_LDFLAGS"
26030 { echo "$as_me:$LINENO: result: no" >&5
26031 echo "${ECHO_T}no" >&6; }
26033 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26041 # Begin output steps
26043 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26044 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26045 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26046 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26047 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26048 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26050 # prepare build tree if outside source tree
26051 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26052 # Note 2: /bin/pwd might be better than shell's built-in at getting
26053 # a symlink-free name.
26054 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26058 if test "$no_create" != yes; then
26059 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26060 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
26061 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26062 ||
{ { echo "$as_me:$LINENO: error: failed" >&5
26063 echo "$as_me: error: failed" >&2;}
26064 { (exit 1); exit 1; }; }
26065 { echo "$as_me:$LINENO: result: done" >&5
26066 echo "${ECHO_T}done" >&6; }
26072 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
26075 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}"
26078 if test "$PORTNAME" = "win32"; then
26079 ac_config_commands
="$ac_config_commands check_win32_symlinks"
26083 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
26086 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26089 cat >confcache
<<\_ACEOF
26090 # This file is a shell script that caches the results of configure
26091 # tests run on this system so they can be shared between configure
26092 # scripts and configure runs, see configure's option --config-cache.
26093 # It is not useful on other systems. If it contains results you don't
26094 # want to keep, you may remove or edit it.
26096 # config.status only pays attention to the cache file if you give it
26097 # the --recheck option to rerun configure.
26099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26101 # following values.
26105 # The following way of writing the cache mishandles newlines in values,
26106 # but we know of no workaround that is simple, portable, and efficient.
26107 # So, we kill variables containing newlines.
26108 # Ultrix sh set writes to stderr and can't be redirected directly,
26109 # and sets the high bit in the cache file unless we assign to the vars.
26111 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26112 eval ac_val
=\$
$ac_var
26116 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26117 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26120 _ | IFS | as_nl
) ;; #(
26121 *) $as_unset $ac_var ;;
26127 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26128 *${as_nl}ac_space
=\
*)
26129 # `set' does not quote correctly, so add quotes (double-quote
26130 # substitution turns \\\\ into \\, and sed turns \\ into \).
26133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26136 # `set' quotes correctly as required by POSIX, so do not add quotes.
26137 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26148 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26150 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26151 if test -w "$cache_file"; then
26152 test "x$cache_file" != "x/dev/null" &&
26153 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26154 echo "$as_me: updating cache $cache_file" >&6;}
26155 cat confcache
>$cache_file
26157 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26158 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26163 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26164 # Let make expand exec_prefix.
26165 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26167 DEFS
=-DHAVE_CONFIG_H
26171 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26172 # 1. Remove the extension, and $U if already installed.
26173 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26174 ac_i
=`echo "$ac_i" | sed "$ac_script"`
26175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26176 # will be set to the directory where LIBOBJS objects are built.
26177 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26178 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26180 LIBOBJS
=$ac_libobjs
26182 LTLIBOBJS
=$ac_ltlibobjs
26186 : ${CONFIG_STATUS=./config.status}
26187 ac_clean_files_save
=$ac_clean_files
26188 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26191 cat >$CONFIG_STATUS <<_ACEOF
26193 # Generated by $as_me.
26194 # Run this file to recreate the current configuration.
26195 # Compiler output produced by configure, useful for debugging
26196 # configure, is in config.log if it exists.
26199 ac_cs_recheck=false
26201 SHELL=\${CONFIG_SHELL-$SHELL}
26204 cat >>$CONFIG_STATUS <<\_ACEOF
26205 ## --------------------- ##
26206 ## M4sh Initialization. ##
26207 ## --------------------- ##
26209 # Be more Bourne compatible
26210 DUALCASE
=1; export DUALCASE
# for MKS sh
26211 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26215 # is contrary to our usage. Disable this feature.
26216 alias -g '${1+"$@"}'='"$@"'
26217 setopt NO_GLOB_SUBST
26219 case `(set -o) 2>/dev/null` in
26220 *posix
*) set -o posix
;;
26229 # Avoid depending upon Character Ranges.
26230 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26231 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26232 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26233 as_cr_digits
='0123456789'
26234 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26236 # The user is always right.
26237 if test "${PATH_SEPARATOR+set}" != set; then
26238 echo "#! /bin/sh" >conf$$.sh
26239 echo "exit 0" >>conf$$.sh
26241 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26249 # Support unset when possible.
26250 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26258 # We need space, tab and new line, in precisely that order. Quoting is
26259 # there to prevent editors from complaining about space-tab.
26260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26261 # splitting by setting IFS to empty value.)
26266 # Find who we are. Look in the path if we contain no directory separator.
26268 *[\\/]* ) as_myself
=$0 ;;
26269 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26270 for as_dir
in $PATH
26273 test -z "$as_dir" && as_dir
=.
26274 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26280 # We did not find ourselves, most probably we were run as `sh COMMAND'
26281 # in which case we are not to be found in the path.
26282 if test "x$as_myself" = x
; then
26285 if test ! -f "$as_myself"; then
26286 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26287 { (exit 1); exit 1; }
26290 # Work around bugs in pre-3.0 UWIN ksh.
26291 for as_var
in ENV MAIL MAILPATH
26292 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26300 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26301 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26302 LC_TELEPHONE LC_TIME
26304 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26305 eval $as_var=C
; export $as_var
26307 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26311 # Required to use basename.
26312 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26313 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26319 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26320 as_basename
=basename
26326 # Name of the executable.
26327 as_me
=`$as_basename -- "$0" ||
26328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26329 X"$0" : 'X\(//\)$' \| \
26330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26332 sed '/^.*\/\([^/][^/]*\)\/*$/{
26351 as_lineno_1
=$LINENO
26352 as_lineno_2
=$LINENO
26353 test "x$as_lineno_1" != "x$as_lineno_2" &&
26354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26357 # uniformly replaced by the line number. The first 'sed' inserts a
26358 # line-number line after each line using $LINENO; the second 'sed'
26359 # does the real work. The second script uses 'N' to pair each
26360 # line-number line with the line containing $LINENO, and appends
26361 # trailing '-' during substitution so that $LINENO is not a special
26362 # case at line end.
26363 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26364 # scripts with optimization help from Paolo Bonzini. Blame Lee
26365 # E. McMahon (1931-1989) for sed's syntax. :-)
26377 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26380 ' >$as_me.lineno
&&
26381 chmod +x
"$as_me.lineno" ||
26382 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26383 { (exit 1); exit 1; }; }
26385 # Don't try to exec as it changes $[0], causing all sort of problems
26386 # (the dirname of $[0] is not the place where we might find the
26387 # original and so on. Autoconf is especially sensitive to this).
26388 .
"./$as_me.lineno"
26389 # Exit status is that of the last command.
26394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26400 ECHO_C
= ECHO_N
= ECHO_T
=
26401 case `echo -n x` in
26403 case `echo 'x\c'` in
26404 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26411 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26412 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26418 rm -f conf$$ conf$$.exe conf$$.
file
26419 if test -d conf$$.dir
; then
26420 rm -f conf$$.dir
/conf$$.
file
26426 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26428 # ... but there are two gotchas:
26429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26431 # In both cases, we have to default to `cp -p'.
26432 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26434 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26439 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26440 rmdir conf$$.dir
2>/dev
/null
26442 if mkdir
-p .
2>/dev
/null
; then
26445 test -d .
/-p && rmdir .
/-p
26449 if test -x / >/dev
/null
2>&1; then
26450 as_test_x
='test -x'
26452 if ls -dL / >/dev
/null
2>&1; then
26459 if test -d "$1"; then
26465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26466 ???[sx]*):;;*)false;;esac;fi
26470 as_executable_p
=$as_test_x
26472 # Sed expression to map a string onto a valid CPP name.
26473 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26475 # Sed expression to map a string onto a valid variable name.
26476 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26481 # Save the log message, to keep $[0] and so on meaningful, and to
26482 # report actual input values of CONFIG_FILES etc. instead of their
26483 # values after options handling.
26485 This file was extended by PostgreSQL $as_me 8.4devel, which was
26486 generated by GNU Autoconf 2.61. Invocation command line was
26488 CONFIG_FILES = $CONFIG_FILES
26489 CONFIG_HEADERS = $CONFIG_HEADERS
26490 CONFIG_LINKS = $CONFIG_LINKS
26491 CONFIG_COMMANDS = $CONFIG_COMMANDS
26494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26499 cat >>$CONFIG_STATUS <<_ACEOF
26500 # Files that config.status was made for.
26501 config_files="$ac_config_files"
26502 config_headers="$ac_config_headers"
26503 config_links="$ac_config_links"
26504 config_commands="$ac_config_commands"
26508 cat >>$CONFIG_STATUS <<\_ACEOF
26510 \`$as_me' instantiates files from templates according to the
26511 current configuration.
26513 Usage: $0 [OPTIONS] [FILE]...
26515 -h, --help print this help, then exit
26516 -V, --version print version number and configuration settings, then exit
26517 -q, --quiet do not print progress messages
26518 -d, --debug don't remove temporary files
26519 --recheck update $as_me by reconfiguring in the same conditions
26520 --file=FILE[:TEMPLATE]
26521 instantiate the configuration file FILE
26522 --header=FILE[:TEMPLATE]
26523 instantiate the configuration header FILE
26525 Configuration files:
26528 Configuration headers:
26531 Configuration links:
26534 Configuration commands:
26537 Report bugs to <bug-autoconf@gnu.org>."
26540 cat >>$CONFIG_STATUS <<_ACEOF
26542 PostgreSQL config.status 8.4devel
26543 configured by $0, generated by GNU Autoconf 2.61,
26544 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26546 Copyright (C) 2006 Free Software Foundation, Inc.
26547 This config.status script is free software; the Free Software Foundation
26548 gives unlimited permission to copy, distribute and modify it."
26554 cat >>$CONFIG_STATUS <<\_ACEOF
26555 # If no file are specified by the user, then we need to provide default
26556 # value. By we need to know if files were specified by the user.
26562 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26563 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26574 # Handling of the options.
26575 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26577 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26578 echo "$ac_cs_version"; exit ;;
26579 --debug |
--debu |
--deb |
--de |
--d |
-d )
26581 --file |
--fil |
--fi |
--f )
26583 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26584 ac_need_defaults
=false
;;
26585 --header |
--heade |
--head |
--hea )
26587 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26588 ac_need_defaults
=false
;;
26590 # Conflict between --help and --header
26591 { echo "$as_me: error: ambiguous option: $1
26592 Try \`$0 --help' for more information." >&2
26593 { (exit 1); exit 1; }; };;
26594 --help |
--hel |
-h )
26595 echo "$ac_cs_usage"; exit ;;
26596 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26597 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26600 # This is an error.
26601 -*) { echo "$as_me: error: unrecognized option: $1
26602 Try \`$0 --help' for more information." >&2
26603 { (exit 1); exit 1; }; } ;;
26605 *) ac_config_targets
="$ac_config_targets $1"
26606 ac_need_defaults
=false
;;
26612 ac_configure_extra_args
=
26614 if $ac_cs_silent; then
26616 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26620 cat >>$CONFIG_STATUS <<_ACEOF
26621 if \$ac_cs_recheck; then
26622 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26623 CONFIG_SHELL=$SHELL
26624 export CONFIG_SHELL
26625 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26629 cat >>$CONFIG_STATUS <<\_ACEOF
26633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26634 ## Running $as_me. ##
26640 cat >>$CONFIG_STATUS <<_ACEOF
26643 cat >>$CONFIG_STATUS <<\_ACEOF
26645 # Handling of arguments.
26646 for ac_config_target
in $ac_config_targets
26648 case $ac_config_target in
26649 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26650 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
26651 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
26652 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26653 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26654 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26655 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26656 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26657 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26658 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
26659 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
26660 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26662 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26663 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26664 { (exit 1); exit 1; }; };;
26669 # If the user did not use the arguments to specify the items to instantiate,
26670 # then the envvar interface is used. Set only those that are not.
26671 # We use the long form for the default assignment because of an extremely
26672 # bizarre bug on SunOS 4.1.3.
26673 if $ac_need_defaults; then
26674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26676 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
26677 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26680 # Have a temporary directory for convenience. Make it in the build tree
26681 # simply because there is no reason against having it here, and in addition,
26682 # creating and moving files from /tmp can sometimes cause problems.
26683 # Hook for its removal unless debugging.
26684 # Note that there is a small window in which the directory will not be cleaned:
26685 # after its creation but before its name has been assigned to `$tmp'.
26689 trap 'exit_status=$?
26690 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26692 trap '{ (exit 1); exit 1; }' 1 2 13 15
26694 # Create a (secure) tmp directory for tmp files.
26697 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26698 test -n "$tmp" && test -d "$tmp"
26701 tmp
=.
/conf$$
-$RANDOM
26702 (umask 077 && mkdir
"$tmp")
26705 echo "$me: cannot create a temporary directory in ." >&2
26706 { (exit 1); exit 1; }
26710 # Set up the sed scripts for CONFIG_FILES section.
26713 # No need to generate the scripts if there are no CONFIG_FILES.
26714 # This happens for instance when ./config.status config.h
26715 if test -n "$CONFIG_FILES"; then
26722 for ac_last_try
in false false false false false
:; do
26723 cat >conf$
$subs.
sed <<_ACEOF
26724 SHELL!$SHELL$ac_delim
26725 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26726 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26727 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26728 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26729 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26730 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26731 exec_prefix!$exec_prefix$ac_delim
26732 prefix!$prefix$ac_delim
26733 program_transform_name!$program_transform_name$ac_delim
26734 bindir!$bindir$ac_delim
26735 sbindir!$sbindir$ac_delim
26736 libexecdir!$libexecdir$ac_delim
26737 datarootdir!$datarootdir$ac_delim
26738 datadir!$datadir$ac_delim
26739 sysconfdir!$sysconfdir$ac_delim
26740 sharedstatedir!$sharedstatedir$ac_delim
26741 localstatedir!$localstatedir$ac_delim
26742 includedir!$includedir$ac_delim
26743 oldincludedir!$oldincludedir$ac_delim
26744 docdir!$docdir$ac_delim
26745 infodir!$infodir$ac_delim
26746 htmldir!$htmldir$ac_delim
26747 dvidir!$dvidir$ac_delim
26748 pdfdir!$pdfdir$ac_delim
26749 psdir!$psdir$ac_delim
26750 libdir!$libdir$ac_delim
26751 localedir!$localedir$ac_delim
26752 mandir!$mandir$ac_delim
26753 DEFS!$DEFS$ac_delim
26754 ECHO_C!$ECHO_C$ac_delim
26755 ECHO_N!$ECHO_N$ac_delim
26756 ECHO_T!$ECHO_T$ac_delim
26757 LIBS!$LIBS$ac_delim
26758 build_alias!$build_alias$ac_delim
26759 host_alias!$host_alias$ac_delim
26760 target_alias!$target_alias$ac_delim
26761 configure_args!$configure_args$ac_delim
26762 build!$build$ac_delim
26763 build_cpu!$build_cpu$ac_delim
26764 build_vendor!$build_vendor$ac_delim
26765 build_os!$build_os$ac_delim
26766 host!$host$ac_delim
26767 host_cpu!$host_cpu$ac_delim
26768 host_vendor!$host_vendor$ac_delim
26769 host_os!$host_os$ac_delim
26770 PORTNAME!$PORTNAME$ac_delim
26771 enable_nls!$enable_nls$ac_delim
26772 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26773 default_port!$default_port$ac_delim
26774 enable_shared!$enable_shared$ac_delim
26775 enable_rpath!$enable_rpath$ac_delim
26776 enable_debug!$enable_debug$ac_delim
26777 enable_profiling!$enable_profiling$ac_delim
26778 GCOV!$GCOV$ac_delim
26779 LCOV!$LCOV$ac_delim
26780 GENHTML!$GENHTML$ac_delim
26781 enable_coverage!$enable_coverage$ac_delim
26782 DTRACE!$DTRACE$ac_delim
26783 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26784 enable_dtrace!$enable_dtrace$ac_delim
26786 CFLAGS!$CFLAGS$ac_delim
26787 LDFLAGS!$LDFLAGS$ac_delim
26788 CPPFLAGS!$CPPFLAGS$ac_delim
26789 ac_ct_CC!$ac_ct_CC$ac_delim
26790 EXEEXT!$EXEEXT$ac_delim
26791 OBJEXT!$OBJEXT$ac_delim
26792 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26796 autodepend!$autodepend$ac_delim
26797 INCLUDES!$INCLUDES$ac_delim
26798 enable_thread_safety!$enable_thread_safety$ac_delim
26799 with_tcl!$with_tcl$ac_delim
26800 with_perl!$with_perl$ac_delim
26801 with_python!$with_python$ac_delim
26802 with_gssapi!$with_gssapi$ac_delim
26803 with_krb5!$with_krb5$ac_delim
26804 krb_srvtab!$krb_srvtab$ac_delim
26805 with_pam!$with_pam$ac_delim
26806 with_ldap!$with_ldap$ac_delim
26807 with_bonjour!$with_bonjour$ac_delim
26808 with_openssl!$with_openssl$ac_delim
26809 with_ossp_uuid!$with_ossp_uuid$ac_delim
26810 XML2_CONFIG!$XML2_CONFIG$ac_delim
26811 with_libxml!$with_libxml$ac_delim
26812 with_libxslt!$with_libxslt$ac_delim
26813 with_system_tzdata!$with_system_tzdata$ac_delim
26814 with_zlib!$with_zlib$ac_delim
26815 GREP!$GREP$ac_delim
26816 EGREP!$EGREP$ac_delim
26817 ELF_SYS!$ELF_SYS$ac_delim
26818 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26820 with_gnu_ld!$with_gnu_ld$ac_delim
26823 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26825 elif $ac_last_try; then
26826 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26827 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26828 { (exit 1); exit 1; }; }
26830 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26834 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26835 if test -n "$ac_eof"; then
26836 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26837 ac_eof
=`expr $ac_eof + 1`
26840 cat >>$CONFIG_STATUS <<_ACEOF
26841 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26845 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26846 s/^/s,@/; s/!/@,|#_!!_#|/
26849 s/'"$ac_delim"'$/,g/; t
26851 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26852 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26853 rm -f conf$
$subs.
sed
26854 cat >>$CONFIG_STATUS <<_ACEOF
26860 for ac_last_try
in false false false false false
:; do
26861 cat >conf$
$subs.
sed <<_ACEOF
26862 ld_R_works!$ld_R_works$ac_delim
26863 RANLIB!$RANLIB$ac_delim
26864 STRIP!$STRIP$ac_delim
26865 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26866 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26868 LN_S!$LN_S$ac_delim
26870 BISON!$BISON$ac_delim
26871 BISONFLAGS!$BISONFLAGS$ac_delim
26872 FLEX!$FLEX$ac_delim
26873 FLEXFLAGS!$FLEXFLAGS$ac_delim
26874 PERL!$PERL$ac_delim
26875 perl_archlibexp!$perl_archlibexp$ac_delim
26876 perl_privlibexp!$perl_privlibexp$ac_delim
26877 perl_useshrplib!$perl_useshrplib$ac_delim
26878 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26879 PYTHON!$PYTHON$ac_delim
26880 python_version!$python_version$ac_delim
26881 python_configdir!$python_configdir$ac_delim
26882 python_includespec!$python_includespec$ac_delim
26883 python_libdir!$python_libdir$ac_delim
26884 python_libspec!$python_libspec$ac_delim
26885 python_additional_libs!$python_additional_libs$ac_delim
26886 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26887 HAVE_IPV6!$HAVE_IPV6$ac_delim
26888 LIBOBJS!$LIBOBJS$ac_delim
26889 acx_pthread_config!$acx_pthread_config$ac_delim
26890 PTHREAD_CC!$PTHREAD_CC$ac_delim
26891 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26892 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26893 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26894 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26895 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26896 MSGFMT!$MSGFMT$ac_delim
26897 MSGMERGE!$MSGMERGE$ac_delim
26898 XGETTEXT!$XGETTEXT$ac_delim
26899 TCLSH!$TCLSH$ac_delim
26900 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26901 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26902 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26903 TCL_LIBS!$TCL_LIBS$ac_delim
26904 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26905 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26906 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26907 NSGMLS!$NSGMLS$ac_delim
26908 JADE!$JADE$ac_delim
26909 have_docbook!$have_docbook$ac_delim
26910 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26911 COLLATEINDEX!$COLLATEINDEX$ac_delim
26912 SGMLSPL!$SGMLSPL$ac_delim
26913 vpath_build!$vpath_build$ac_delim
26914 LTLIBOBJS!$LTLIBOBJS$ac_delim
26917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
26919 elif $ac_last_try; then
26920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26921 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26922 { (exit 1); exit 1; }; }
26924 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26928 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26929 if test -n "$ac_eof"; then
26930 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26931 ac_eof
=`expr $ac_eof + 1`
26934 cat >>$CONFIG_STATUS <<_ACEOF
26935 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26939 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26940 s/^/s,@/; s/!/@,|#_!!_#|/
26943 s/'"$ac_delim"'$/,g/; t
26945 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26946 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26947 rm -f conf$
$subs.
sed
26948 cat >>$CONFIG_STATUS <<_ACEOF
26955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26957 # trailing colons and then remove the whole line if VPATH becomes empty
26958 # (actually we leave an empty line to preserve line numbers).
26959 if test "x$srcdir" = x.
; then
26960 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26961 s/:*\$(srcdir):*/:/
26962 s/:*\${srcdir}:*/:/
26964 s/^\([^=]*=[ ]*\):*/\1/
26970 cat >>$CONFIG_STATUS <<\_ACEOF
26971 fi # test -n "$CONFIG_FILES"
26974 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :L
$CONFIG_LINKS :C
$CONFIG_COMMANDS
26977 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26979 case $ac_mode$ac_tag in
26981 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26982 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26983 { (exit 1); exit 1; }; };;
26984 :[FH
]-) ac_tag
=-:-;;
26985 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27002 -) ac_f
="$tmp/stdin";;
27003 *) # Look for the file first in the build tree, then in the source tree
27004 # (if the path is not absolute). The absolute path cannot be DOS-style,
27005 # because $ac_f cannot contain `:'.
27009 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27011 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27012 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27013 { (exit 1); exit 1; }; };;
27015 ac_file_inputs
="$ac_file_inputs $ac_f"
27018 # Let's still pretend it is `configure' which instantiates (i.e., don't
27019 # use $as_me), people would be surprised to read:
27020 # /* config.h. Generated by config.status. */
27021 configure_input
="Generated from "`IFS=:
27022 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27023 if test x
"$ac_file" != x-
; then
27024 configure_input
="$ac_file. $configure_input"
27025 { echo "$as_me:$LINENO: creating $ac_file" >&5
27026 echo "$as_me: creating $ac_file" >&6;}
27030 *:-:* |
*:-) cat >"$tmp/stdin";;
27035 ac_dir
=`$as_dirname -- "$ac_file" ||
27036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27037 X"$ac_file" : 'X\(//\)[^/]' \| \
27038 X"$ac_file" : 'X\(//\)$' \| \
27039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27045 /^X\(\/\/\)[^/].*/{
27060 -*) as_dir
=.
/$as_dir;;
27062 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27066 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27067 *) as_qdir
=$as_dir;;
27069 as_dirs
="'$as_qdir' $as_dirs"
27070 as_dir
=`$as_dirname -- "$as_dir" ||
27071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27072 X"$as_dir" : 'X\(//\)[^/]' \| \
27073 X"$as_dir" : 'X\(//\)$' \| \
27074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27080 /^X\(\/\/\)[^/].*/{
27093 test -d "$as_dir" && break
27095 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27096 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27097 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27098 { (exit 1); exit 1; }; }; }
27102 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27104 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27105 # A ".." for each directory in $ac_dir_suffix.
27106 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27107 case $ac_top_builddir_sub in
27108 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27109 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27112 ac_abs_top_builddir
=$ac_pwd
27113 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27114 # for backward compatibility:
27115 ac_top_builddir
=$ac_top_build_prefix
27118 .
) # We are building in place.
27120 ac_top_srcdir
=$ac_top_builddir_sub
27121 ac_abs_top_srcdir
=$ac_pwd ;;
27122 [\\/]* | ?
:[\\/]* ) # Absolute name.
27123 ac_srcdir
=$srcdir$ac_dir_suffix;
27124 ac_top_srcdir
=$srcdir
27125 ac_abs_top_srcdir
=$srcdir ;;
27126 *) # Relative name.
27127 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27128 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27129 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27131 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27142 cat >>$CONFIG_STATUS <<\_ACEOF
27143 # If the template does not know about datarootdir, expand it.
27144 # FIXME: This hack should be removed a few years after 2.60.
27145 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27147 case `sed -n '/datarootdir/ {
27156 ' $ac_file_inputs` in
27157 *datarootdir
*) ac_datarootdir_seen
=yes;;
27158 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27159 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27160 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27162 cat >>$CONFIG_STATUS <<_ACEOF
27163 ac_datarootdir_hack='
27164 s&@datadir@&$datadir&g
27165 s&@docdir@&$docdir&g
27166 s&@infodir@&$infodir&g
27167 s&@localedir@&$localedir&g
27168 s&@mandir@&$mandir&g
27169 s&\\\${datarootdir}&$datarootdir&g' ;;
27173 # Neutralize VPATH when `$srcdir' = `.'.
27174 # Shell code in configure.ac might set extrasub.
27175 # FIXME: do we really want to maintain this feature?
27176 cat >>$CONFIG_STATUS <<_ACEOF
27180 cat >>$CONFIG_STATUS <<\_ACEOF
27182 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27183 s
&@configure_input@
&$configure_input&;t t
27184 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27185 s
&@srcdir@
&$ac_srcdir&;t t
27186 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27187 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27188 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27189 s
&@builddir@
&$ac_builddir&;t t
27190 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27191 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27192 $ac_datarootdir_hack
27193 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27195 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27196 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27198 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27199 which seems to be undefined. Please make sure it is defined." >&5
27200 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27201 which seems to be undefined. Please make sure it is defined." >&2;}
27205 -) cat "$tmp/out"; rm -f "$tmp/out";;
27206 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27215 # Transform confdefs.h into a sed script `conftest.defines', that
27216 # substitutes the proper values into config.h.in to produce config.h.
27217 rm -f conftest.defines conftest.
tail
27218 # First, append a space to every undef/define line, to ease matching.
27219 echo 's/$/ /' >conftest.defines
27220 # Then, protect against being on the right side of a sed subst, or in
27221 # an unquoted here document, in config.status. If some macros were
27222 # called several times there might be several #defines for the same
27223 # symbol, which is useless. But do not sort them, since the last
27224 # AC_DEFINE must be honored.
27225 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27226 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27227 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27228 # PARAMS is the parameter list in the macro definition--in most cases, it's
27229 # just an empty string.
27230 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27231 ac_dB
='\\)[ (].*,\\1define\\2'
27239 s/^[ ]*#[ ]*define[ ][ ]*//
27244 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27245 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27246 ' >>conftest.defines
27248 # Remove the space that was appended to ease matching.
27249 # Then replace #undef with comments. This is necessary, for
27250 # example, in the case of _POSIX_SOURCE, which is predefined and required
27251 # on some systems where configure will not decide to define it.
27252 # (The regexp can be short, since the line contains either #define or #undef.)
27254 s,^[ #]*u.*,/* & */,' >>conftest.defines
27256 # Break up conftest.defines:
27257 ac_max_sed_lines
=50
27259 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27260 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27261 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27263 ac_in
='$ac_file_inputs'
27264 ac_out
='"$tmp/out1"'
27265 ac_nxt
='"$tmp/out2"'
27269 # Write a here document:
27270 cat >>$CONFIG_STATUS <<_ACEOF
27271 # First, check the format of the line:
27272 cat >"\$tmp/defines.sed" <<\\CEOF
27273 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27274 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27278 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27280 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27281 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27282 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27283 grep . conftest.
tail >/dev
/null ||
break
27284 rm -f conftest.defines
27285 mv conftest.
tail conftest.defines
27287 rm -f conftest.defines conftest.
tail
27289 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27290 cat >>$CONFIG_STATUS <<\_ACEOF
27291 if test x
"$ac_file" != x-
; then
27292 echo "/* $configure_input */" >"$tmp/config.h"
27293 cat "$ac_result" >>"$tmp/config.h"
27294 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27295 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27296 echo "$as_me: $ac_file is unchanged" >&6;}
27299 mv "$tmp/config.h" $ac_file
27302 echo "/* $configure_input */"
27312 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27313 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27315 if test ! -r "$srcdir/$ac_source"; then
27316 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27317 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27318 { (exit 1); exit 1; }; }
27322 # Try a relative symlink, then a hard link, then a copy.
27324 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
27325 *) ac_rel_source
=$ac_top_build_prefix$srcdir/$ac_source ;;
27327 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
27328 ln "$srcdir/$ac_source" "$ac_file" 2>/dev
/null ||
27329 cp -p "$srcdir/$ac_source" "$ac_file" ||
27330 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27331 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27332 { (exit 1); exit 1; }; }
27334 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27335 echo "$as_me: executing $ac_file commands" >&6;}
27340 case $ac_file$ac_mode in
27341 "check_win32_symlinks":C
)
27342 # Links sometimes fail undetected on Mingw -
27343 # so here we detect it and warn the user
27344 for FILE
in $CONFIG_LINKS
27346 # test -e works for symlinks in the MinGW console
27347 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27348 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27351 "src/include/pg_config.h":H
)
27352 # Update timestamp for pg_config.h (see Makefile.global)
27353 echo >src
/include
/stamp-h
27360 { (exit 0); exit 0; }
27362 chmod +x
$CONFIG_STATUS
27363 ac_clean_files
=$ac_clean_files_save
27366 # configure is writing to config.log, and then calls config.status.
27367 # config.status does its own redirection, appending to config.log.
27368 # Unfortunately, on DOS this fails, as config.log is still kept open
27369 # by configure, so config.status won't be able to write to it; its
27370 # output is simply discarded. So we exec the FD to /dev/null,
27371 # effectively closing config.log, so it can be properly (re)opened and
27372 # appended to by config.status. When coming back to configure, we
27373 # need to make the FD available again.
27374 if test "$no_create" != yes; then
27376 ac_config_status_args
=
27377 test "$silent" = yes &&
27378 ac_config_status_args
="$ac_config_status_args --quiet"
27380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27383 # would make configure fail if this is the last instruction.
27384 $ac_cs_success ||
{ (exit 1); exit 1; }
27388 # Warn about unknown options
27389 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27390 for pgac_arg
in $pgac_args with_gnu_ld
; do
27391 if test "$pgac_var" = "$pgac_arg"; then
27395 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
27396 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27397 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}