2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2007, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
26 DUALCASE
=1; export DUALCASE
# for MKS sh
28 # Support unset when possible.
29 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C
; export $as_var
55 # Required to use basename.
56 if expr a
: '\(a\)' >/dev
/null
2>&1; then
62 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me
=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits
='0123456789'
88 as_cr_alnum
=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
106 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself
=$0 ;;
113 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir
=.
118 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x
; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
135 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir
=.
139 for as_base
in sh bash ksh sh5
; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
148 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
149 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
150 CONFIG_SHELL
=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x
$as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c
*,-n*) ECHO_N
= ECHO_C
='
194 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
195 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
198 if expr a
: '\(a\)' >/dev
/null
2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.
file
206 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe
; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.
file conf$$
2>/dev
/null
; then
220 rm -f conf$$ conf$$.exe conf$$.
file
222 if mkdir
-p .
2>/dev
/null
; then
225 test -d .
/-p && rmdir .
/-p
229 as_executable_p
="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix
=/usr
/local
259 ac_config_libobj_dir
=.
264 SHELL
=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME
='PostgreSQL'
273 PACKAGE_TARNAME
='postgresql'
274 PACKAGE_VERSION
='8.3devel'
275 PACKAGE_STRING
='PostgreSQL 8.3devel'
276 PACKAGE_BUGREPORT
='pgsql-bugs@postgresql.org'
278 ac_unique_file
="src/backend/access/common/heaptuple.c"
279 ac_default_prefix
=/usr
/local
/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default
="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug enable_profiling DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_gssapi with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_ossp_uuid XML2_CONFIG with_libxml with_libxslt with_system_tzdata with_zlib EGREP ELF_SYS LDFLAGS_SL LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB TAR LN_S AWK YACC YFLAGS FLEX FLEXFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LDAP_LIBS_FE LDAP_LIBS_BE HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version
=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name
=s
,x
,x
,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir
='${exec_prefix}/bin'
346 sbindir
='${exec_prefix}/sbin'
347 libexecdir
='${exec_prefix}/libexec'
348 datadir
='${prefix}/share'
349 sysconfdir
='${prefix}/etc'
350 sharedstatedir
='${prefix}/com'
351 localstatedir
='${prefix}/var'
352 libdir
='${exec_prefix}/lib'
353 includedir
='${prefix}/include'
354 oldincludedir
='/usr/include'
355 infodir
='${prefix}/info'
356 mandir
='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
376 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
379 -build |
--build |
--buil |
--bui |
--bu)
380 ac_prev
=build_alias
;;
381 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
382 build_alias
=$ac_optarg ;;
384 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
385 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
386 ac_prev
=cache_file
;;
387 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
388 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
389 cache_file
=$ac_optarg ;;
392 cache_file
=config.cache
;;
394 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
396 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
398 datadir
=$ac_optarg ;;
400 -disable-* |
--disable-*)
401 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* |
--enable-*)
410 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
423 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
424 |
--exec |
--exe |
--ex)
425 ac_prev
=exec_prefix
;;
426 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
427 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
428 |
--exec=* |
--exe=* |
--ex=*)
429 exec_prefix
=$ac_optarg ;;
431 -gas |
--gas |
--ga |
--g)
432 # Obsolete; use --with-gas.
435 -help |
--help |
--hel |
--he |
-h)
437 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
438 ac_init_help
=recursive
;;
439 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
440 ac_init_help
=short
;;
442 -host |
--host |
--hos |
--ho)
443 ac_prev
=host_alias
;;
444 -host=* |
--host=* |
--hos=* |
--ho=*)
445 host_alias
=$ac_optarg ;;
447 -includedir |
--includedir |
--includedi |
--included |
--include \
448 |
--includ |
--inclu |
--incl |
--inc)
449 ac_prev
=includedir
;;
450 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
451 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
452 includedir
=$ac_optarg ;;
454 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
456 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
457 infodir
=$ac_optarg ;;
459 -libdir |
--libdir |
--libdi |
--libd)
461 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
464 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
465 |
--libexe |
--libex |
--libe)
466 ac_prev
=libexecdir
;;
467 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
468 |
--libexe=* |
--libex=* |
--libe=*)
469 libexecdir
=$ac_optarg ;;
471 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
472 |
--localstate |
--localstat |
--localsta |
--localst \
473 |
--locals |
--local |
--loca |
--loc |
--lo)
474 ac_prev
=localstatedir
;;
475 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
476 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
477 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
478 localstatedir
=$ac_optarg ;;
480 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
482 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
486 # Obsolete; use --without-fp.
489 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
490 |
--no-cr |
--no-c |
-n)
493 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
494 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
497 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
498 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
499 |
--oldin |
--oldi |
--old |
--ol |
--o)
500 ac_prev
=oldincludedir
;;
501 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
502 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
503 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
504 oldincludedir
=$ac_optarg ;;
506 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
508 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
511 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
512 |
--program-pre |
--program-pr |
--program-p)
513 ac_prev
=program_prefix
;;
514 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
515 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
516 program_prefix
=$ac_optarg ;;
518 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
519 |
--program-suf |
--program-su |
--program-s)
520 ac_prev
=program_suffix
;;
521 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
522 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
523 program_suffix
=$ac_optarg ;;
525 -program-transform-name |
--program-transform-name \
526 |
--program-transform-nam |
--program-transform-na \
527 |
--program-transform-n |
--program-transform- \
528 |
--program-transform |
--program-transfor \
529 |
--program-transfo |
--program-transf \
530 |
--program-trans |
--program-tran \
531 |
--progr-tra |
--program-tr |
--program-t)
532 ac_prev
=program_transform_name
;;
533 -program-transform-name=* |
--program-transform-name=* \
534 |
--program-transform-nam=* |
--program-transform-na=* \
535 |
--program-transform-n=* |
--program-transform-=* \
536 |
--program-transform=* |
--program-transfor=* \
537 |
--program-transfo=* |
--program-transf=* \
538 |
--program-trans=* |
--program-tran=* \
539 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
540 program_transform_name
=$ac_optarg ;;
542 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
543 |
-silent |
--silent |
--silen |
--sile |
--sil)
546 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
548 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
550 sbindir
=$ac_optarg ;;
552 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
553 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
554 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
556 ac_prev
=sharedstatedir
;;
557 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
558 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
559 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
561 sharedstatedir
=$ac_optarg ;;
563 -site |
--site |
--sit)
565 -site=* |
--site=* |
--sit=*)
568 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
570 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
573 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
574 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
575 ac_prev
=sysconfdir
;;
576 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
577 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
578 sysconfdir
=$ac_optarg ;;
580 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
581 ac_prev
=target_alias
;;
582 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
583 target_alias
=$ac_optarg ;;
585 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
588 -version |
--version |
--versio |
--versi |
--vers |
-V)
592 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package
=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* |
--without-*)
605 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package
=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
618 |
--x-incl |
--x-inc |
--x-in |
--x-i)
619 ac_prev
=x_includes
;;
620 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
621 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
622 x_includes
=$ac_optarg ;;
624 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
625 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
626 ac_prev
=x_libraries
;;
627 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
628 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
629 x_libraries
=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var
in exec_prefix prefix
666 eval ac_val
=$
`echo $ac_var`
668 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val
=$
`echo $ac_var`
680 [\\/$
]* | ?
:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x
; then
695 if test "x$build_alias" = x
; then
696 cross_compiling
=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
707 test "$silent" = yes && exec 6>/dev
/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted
=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir
=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted
=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set
=${build_alias+set}
747 ac_env_build_alias_value
=$build_alias
748 ac_cv_env_build_alias_set
=${build_alias+set}
749 ac_cv_env_build_alias_value
=$build_alias
750 ac_env_host_alias_set
=${host_alias+set}
751 ac_env_host_alias_value
=$host_alias
752 ac_cv_env_host_alias_set
=${host_alias+set}
753 ac_cv_env_host_alias_value
=$host_alias
754 ac_env_target_alias_set
=${target_alias+set}
755 ac_env_target_alias_value
=$target_alias
756 ac_cv_env_target_alias_set
=${target_alias+set}
757 ac_cv_env_target_alias_value
=$target_alias
758 ac_env_CC_set
=${CC+set}
760 ac_cv_env_CC_set
=${CC+set}
761 ac_cv_env_CC_value
=$CC
762 ac_env_CFLAGS_set
=${CFLAGS+set}
763 ac_env_CFLAGS_value
=$CFLAGS
764 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value
=$CFLAGS
766 ac_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_env_LDFLAGS_value
=$LDFLAGS
768 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value
=$LDFLAGS
770 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
774 ac_env_CPP_set
=${CPP+set}
775 ac_env_CPP_value
=$CPP
776 ac_cv_env_CPP_set
=${CPP+set}
777 ac_cv_env_CPP_value
=$CPP
778 ac_env_LDFLAGS_SL_set
=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value
=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set
=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value
=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set
=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value
=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set
=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value
=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures PostgreSQL 8.3devel to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
853 if test -n "$ac_init_help"; then
854 case $ac_init_help in
855 short | recursive
) echo "Configuration of PostgreSQL 8.3devel:";;
860 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
861 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
862 --enable-integer-datetimes enable 64-bit integer date
/time support
863 --enable-nls[=LANGUAGES
] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path
in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols
(-g)
868 --enable-profiling build with profiling enabled
869 --enable-dtrace build with DTrace support
870 --enable-depend turn on automatic dependency tracking
871 --enable-cassert enable assertion checks
(for debugging
)
872 --enable-thread-safety make client libraries thread-safe
873 --enable-thread-safety-force force thread-safety despite thread
test failure
874 --disable-largefile omit support
for large files
877 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
878 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
880 --with-docdir=DIR
install the documentation
in DIR
[PREFIX
/doc
]
881 --without-docdir do not
install the documentation
882 --with-includes=DIRS
look for additional header files
in DIRS
883 --with-libraries=DIRS
look for additional libraries
in DIRS
884 --with-libs=DIRS alternative spelling of
--with-libraries
885 --with-pgport=PORTNUM change default port number
[5432]
886 --with-tcl build Tcl modules
(PL
/Tcl
)
887 --with-tclconfig=DIR tclConfig.sh is
in DIR
888 --with-perl build Perl modules
(PL
/Perl
)
889 --with-python build Python modules
(PL
/Python
)
890 --with-gssapi build with GSSAPI support
891 --with-krb5 build with Kerberos
5 support
892 --with-krb-srvnam=NAME default service principal name
in Kerberos
[postgres
]
893 --with-pam build with PAM support
894 --with-ldap build with LDAP support
895 --with-bonjour build with Bonjour support
896 --with-openssl build with OpenSSL support
897 --without-readline do not use GNU Readline nor BSD Libedit
for editing
898 --with-libedit-preferred prefer BSD Libedit over GNU Readline
899 --with-ossp-uuid build with OSSP UUID library
for UUID generation
900 --with-libxml build with XML support
901 --with-libxslt build with XSLT support
902 --with-system-tzdata=DIR use system
time zone data
in DIR
903 --without-zlib do not use Zlib
904 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
906 Some influential environment variables
:
907 CC C compiler
command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
910 nonstandard directory
<lib dir
>
911 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
912 headers
in a nonstandard directory
<include dir
>
916 location of DocBook stylesheets
918 Use these variables to override the choices made by
`configure' or to help
919 it to find libraries and programs with nonstandard names/locations.
921 Report bugs to <pgsql-bugs@postgresql.org>.
925 if test "$ac_init_help" = "recursive"; then
926 # If there are subdirs, report their specific --help.
928 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929 test -d $ac_dir || continue
932 if test "$ac_dir" != .; then
933 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
934 # A "../" for each directory in $ac_dir_suffix.
935 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
937 ac_dir_suffix= ac_top_builddir=
941 .) # No --srcdir option. We are building in place.
943 if test -z "$ac_top_builddir"; then
946 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
948 [\\/]* | ?:[\\/]* ) # Absolute path.
949 ac_srcdir=$srcdir$ac_dir_suffix;
950 ac_top_srcdir=$srcdir ;;
952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
956 # Do not use `cd foo
&& pwd` to compute absolute paths, because
957 # the directories may not exist.
959 .) ac_abs_builddir="$ac_dir";;
962 .) ac_abs_builddir=`pwd`;;
963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
970 case ${ac_top_builddir}. in
971 .) ac_abs_top_builddir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
980 .) ac_abs_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
988 case $ac_top_srcdir in
989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
996 # Check for guested configure; otherwise get Cygnus style configure.
997 if test -f $ac_srcdir/configure.gnu; then
999 $SHELL $ac_srcdir/configure.gnu --help=recursive
1000 elif test -f $ac_srcdir/configure; then
1002 $SHELL $ac_srcdir/configure --help=recursive
1003 elif test -f $ac_srcdir/configure.ac ||
1004 test -f $ac_srcdir/configure.in; then
1006 $ac_configure --help
1008 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1017 PostgreSQL configure 8.3devel
1018 generated by GNU Autoconf 2.59
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1024 Copyright (c) 1996-2007, PostgreSQL Global Development Group
1030 This file contains any messages produced by compilers while
1031 running configure, to aid debugging if configure makes a mistake.
1033 It was created by PostgreSQL $as_me 8.3devel, which was
1034 generated by GNU Autoconf 2.59. Invocation command line was
1045 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1046 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1047 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1048 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1049 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1051 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1052 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1054 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1055 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1056 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1057 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1058 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1059 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1060 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1068 test -z "$as_dir" && as_dir=.
1069 echo "PATH: $as_dir"
1084 # Keep a trace of the command line.
1085 # Strip out --no-create and --no-recursion so they do not pile up.
1086 # Strip out --silent because we don't want to record it for future runs.
1087 # Also quote any args containing shell meta-characters.
1088 # Make two passes to allow for proper duplicate-argument suppression.
1093 ac_must_keep_next=false
1099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1103 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1104 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1107 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1109 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1110 if test $ac_must_keep_next = true; then
1111 ac_must_keep_next=false # Got value, back to normal.
1114 *=* | --config-cache | -C | -disable-* | --disable-* \
1115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1117 | -with-* | --with-* | -without-* | --without-* | --x)
1118 case "$ac_configure_args0 " in
1119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1122 -* ) ac_must_keep_next=true ;;
1125 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1126 # Get rid of the leading space.
1132 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1133 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1135 # When interrupted or exit'd, cleanup temporary files, and complete
1136 # config.log. We remove comments because anyway the quotes in there
1137 # would cause problems or look ugly.
1138 # WARNING: Be sure not to use single quotes in there, as some shells,
1139 # such as our DU 5.0 friend, will then `close
' the trap.
1140 trap 'exit_status
=$?
1141 # Save into config.log some information that might help in debugging.
1146 ## ---------------- ##
1147 ## Cache variables. ##
1148 ## ---------------- ##
1151 # The following way of writing the cache mishandles newlines in values,
1154 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1157 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1162 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1169 ## ----------------- ##
1170 ## Output variables. ##
1171 ## ----------------- ##
1174 for ac_var
in $ac_subst_vars
1176 eval ac_val
=$
`echo $ac_var`
1177 echo "$ac_var='"'"'$ac_val'"'"'"
1181 if test -n "$ac_subst_files"; then
1188 for ac_var
in $ac_subst_files
1190 eval ac_val
=$
`echo $ac_var`
1191 echo "$ac_var='"'"'$ac_val'"'"'"
1196 if test -s confdefs.h
; then
1203 sed "/^$/d" confdefs.h |
sort
1206 test "$ac_signal" != 0 &&
1207 echo "$as_me: caught signal $ac_signal"
1208 echo "$as_me: exit $exit_status"
1210 rm -f core
*.core
&&
1211 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1214 for ac_signal in 1 2 13 15; do
1215 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1220 rm -rf conftest* confdefs.h
1221 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1224 # Predefined preprocessor variables.
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_NAME "$PACKAGE_NAME"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_STRING "$PACKAGE_STRING"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1251 # Let the site file select an alternate cache file if it wants to.
1252 # Prefer explicitly selected file to automatically selected ones.
1253 if test -z "$CONFIG_SITE"; then
1254 if test "x$prefix" != xNONE; then
1255 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1257 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1260 for ac_site_file in $CONFIG_SITE; do
1261 if test -r "$ac_site_file"; then
1262 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1263 echo "$as_me: loading site script $ac_site_file" >&6;}
1264 sed 's
/^
/|
/' "$ac_site_file" >&5
1269 if test -r "$cache_file"; then
1270 # Some versions of bash will fail to source /dev/null (special
1271 # files actually), so we avoid doing that.
1272 if test -f "$cache_file"; then
1273 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1274 echo "$as_me: loading cache $cache_file" >&6;}
1276 [\\/]* | ?:[\\/]* ) . $cache_file;;
1277 *) . ./$cache_file;;
1281 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1282 echo "$as_me: creating cache $cache_file" >&6;}
1286 # Check that the precious variables saved in the cache have kept the same
1288 ac_cache_corrupted=false
1289 for ac_var in `(set) 2>&1 |
1290 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1291 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1292 eval ac_new_set=\$ac_env_${ac_var}_set
1293 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1294 eval ac_new_val="\$ac_env_${ac_var}_value"
1295 case $ac_old_set,$ac_new_set in
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1299 ac_cache_corrupted=: ;;
1301 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1303 ac_cache_corrupted=: ;;
1306 if test "x$ac_old_val" != "x$ac_new_val"; then
1307 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1308 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1309 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1310 echo "$as_me: former value: $ac_old_val" >&2;}
1311 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1312 echo "$as_me: current value: $ac_new_val" >&2;}
1313 ac_cache_corrupted=:
1316 # Pass precious variables to config.status.
1317 if test "$ac_new_set" = set; then
1319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1321 *) ac_arg=$ac_var=$ac_new_val ;;
1323 case " $ac_configure_args " in
1324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1325 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1329 if $ac_cache_corrupted; then
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1333 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1340 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374 for ac_dir in config $srcdir/config; do
1375 if test -f $ac_dir/install-sh; then
1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1379 elif test -f $ac_dir/install.sh; then
1381 ac_install_sh="$ac_aux_dir/install.sh -c"
1383 elif test -f $ac_dir/shtool; then
1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1389 if test -z "$ac_aux_dir"; then
1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1391 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1392 { (exit 1); exit 1; }; }
1394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1396 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399 configure_args=$ac_configure_args
1403 cat >>confdefs.h <<_ACEOF
1404 #define PG_VERSION "$PACKAGE_VERSION"
1408 # Make sure we can run config.sub.
1409 $ac_config_sub sun4 >/dev/null 2>&1 ||
1410 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1411 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1412 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: checking build system type" >&5
1415 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1416 if test "${ac_cv_build+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 ac_cv_build_alias=$build_alias
1420 test -z "$ac_cv_build_alias" &&
1421 ac_cv_build_alias=`$ac_config_guess`
1422 test -z "$ac_cv_build_alias" &&
1423 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1424 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1425 { (exit 1); exit 1; }; }
1426 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1427 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1428 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1429 { (exit 1); exit 1; }; }
1432 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1433 echo "${ECHO_T}$ac_cv_build" >&6
1435 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1436 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1437 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1440 echo "$as_me:$LINENO: checking host system type" >&5
1441 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1442 if test "${ac_cv_host+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 ac_cv_host_alias=$host_alias
1446 test -z "$ac_cv_host_alias" &&
1447 ac_cv_host_alias=$ac_cv_build_alias
1448 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1449 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1451 { (exit 1); exit 1; }; }
1454 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1455 echo "${ECHO_T}$ac_cv_host" >&6
1457 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1458 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1459 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1464 echo "$as_me:$LINENO: checking which template to use" >&5
1465 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1468 pgac_args="$pgac_args with_template"
1471 # Check whether --with-template or --without-template was given.
1472 if test "${with_template+set}" = set; then
1473 withval="$with_template"
1477 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1478 echo "$as_me: error: argument required for --with-template option" >&2;}
1479 { (exit 1); exit 1; }; }
1482 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1483 echo "$as_me: error: argument required for --with-template option" >&2;}
1484 { (exit 1); exit 1; }; }
1489 list) echo; ls "$srcdir/src/template"; exit;;
1490 *) if test -f "$srcdir/src/template/$with_template" ; then
1493 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list
' for a list." >&5
1494 echo "$as_me: error: '$withval' is not a valid template name. Use 'list
' for a list." >&2;}
1495 { (exit 1); exit 1; }; }
1504 # --with-template not given
1507 aix*) template=aix ;;
1508 bsdi*) template=bsdi ;;
1509 cygwin*) template=cygwin ;;
1510 darwin*) template=darwin ;;
1511 dgux*) template=dgux ;;
1512 freebsd*) template=freebsd ;;
1513 hpux*) template=hpux ;;
1514 irix*) template=irix ;;
1515 linux*|gnu*|k*bsd*-gnu)
1517 mingw*) template=win32 ;;
1518 netbsd*) template=netbsd ;;
1519 nextstep*) template=nextstep ;;
1520 openbsd*) template=openbsd ;;
1521 osf*) template=osf ;;
1522 sco*) template=sco ;;
1523 solaris*) template=solaris ;;
1524 sunos*) template=sunos4 ;;
1526 case $host_vendor in
1527 univel) template=univel ;;
1529 sysv4*) template=svr4 ;;
1530 sysv5*) template=unixware ;;
1531 ultrix*) template=ultrix4 ;;
1534 if test x"$template" = x"" ; then
1535 { { echo "$as_me:$LINENO: error:
1536 *******************************************************************
1537 PostgreSQL has apparently not been ported to your platform yet.
1538 To try a manual configuration, look into the src/template directory
1539 for a similar platform and use the '--with-template=' option.
1541 Please also contact <pgsql-ports@postgresql.org> to see about
1542 rectifying this. Include the above 'checking
host system
type...
'
1544 *******************************************************************
1546 echo "$as_me: error:
1547 *******************************************************************
1548 PostgreSQL has apparently not been ported to your platform yet.
1549 To try a manual configuration, look into the src/template directory
1550 for a similar platform and use the '--with-template=' option.
1552 Please also contact <pgsql-ports@postgresql.org> to see about
1553 rectifying this. Include the above 'checking
host system
type...
'
1555 *******************************************************************
1557 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: result: $template" >&5
1565 echo "${ECHO_T}$template" >&6
1570 # Initialize default assumption that we do not need separate assembly code
1571 # for TAS (test-and-set). This can be overridden by the template file
1572 # when it's executed.
1579 ## Command line options
1583 # Installation directory for documentation
1586 pgac_args
="$pgac_args with_docdir"
1589 # Check whether --with-docdir or --without-docdir was given.
1590 if test "${with_docdir+set}" = set; then
1591 withval
="$with_docdir"
1595 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1596 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1597 { (exit 1); exit 1; }; }
1608 docdir
='${prefix}/doc'
1615 # Add non-standard directories to the include path
1618 pgac_args
="$pgac_args with_includes"
1621 # Check whether --with-includes or --without-includes was given.
1622 if test "${with_includes+set}" = set; then
1623 withval
="$with_includes"
1627 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1628 echo "$as_me: error: argument required for --with-includes option" >&2;}
1629 { (exit 1); exit 1; }; }
1632 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1633 echo "$as_me: error: argument required for --with-includes option" >&2;}
1634 { (exit 1); exit 1; }; }
1646 # Add non-standard directories to the library search path
1649 pgac_args
="$pgac_args with_libraries"
1652 # Check whether --with-libraries or --without-libraries was given.
1653 if test "${with_libraries+set}" = set; then
1654 withval
="$with_libraries"
1658 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1659 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1660 { (exit 1); exit 1; }; }
1663 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1664 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1665 { (exit 1); exit 1; }; }
1668 LIBRARY_DIRS
=$withval
1676 pgac_args
="$pgac_args with_libs"
1679 # Check whether --with-libs or --without-libs was given.
1680 if test "${with_libs+set}" = set; then
1681 withval
="$with_libs"
1685 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1686 echo "$as_me: error: argument required for --with-libs option" >&2;}
1687 { (exit 1); exit 1; }; }
1690 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1691 echo "$as_me: error: argument required for --with-libs option" >&2;}
1692 { (exit 1); exit 1; }; }
1695 LIBRARY_DIRS
=$withval
1704 # 64-bit integer date/time storage (--enable-integer-datetimes)
1706 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1707 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1709 pgac_args
="$pgac_args enable_integer_datetimes"
1711 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1712 if test "${enable_integer_datetimes+set}" = set; then
1713 enableval
="$enable_integer_datetimes"
1718 cat >>confdefs.h
<<\_ACEOF
1719 #define USE_INTEGER_DATETIMES 1
1727 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1728 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1729 { (exit 1); exit 1; }; }
1734 enable_integer_datetimes
=no
1738 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1739 echo "${ECHO_T}$enable_integer_datetimes" >&6
1745 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1746 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1748 pgac_args
="$pgac_args enable_nls"
1750 # Check whether --enable-nls or --disable-nls was given.
1751 if test "${enable_nls+set}" = set; then
1752 enableval
="$enable_nls"
1763 WANTED_LANGUAGES
=$enableval
1772 if test "$enable_nls" = yes; then
1774 cat >>confdefs.h
<<\_ACEOF
1775 #define ENABLE_NLS 1
1780 echo "$as_me:$LINENO: result: $enable_nls" >&5
1781 echo "${ECHO_T}$enable_nls" >&6
1786 # Default port number (--with-pgport), default 5432
1788 echo "$as_me:$LINENO: checking for default port number" >&5
1789 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1791 pgac_args
="$pgac_args with_pgport"
1794 # Check whether --with-pgport or --without-pgport was given.
1795 if test "${with_pgport+set}" = set; then
1796 withval
="$with_pgport"
1800 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1801 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1802 { (exit 1); exit 1; }; }
1805 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1806 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1807 { (exit 1); exit 1; }; }
1810 default_port
=$withval
1818 echo "$as_me:$LINENO: result: $default_port" >&5
1819 echo "${ECHO_T}$default_port" >&6
1820 # Need both of these because some places want an integer and some a string
1822 cat >>confdefs.h
<<_ACEOF
1823 #define DEF_PGPORT ${default_port}
1827 cat >>confdefs.h
<<_ACEOF
1828 #define DEF_PGPORT_STR "${default_port}"
1834 # Option to disable shared libraries
1837 pgac_args
="$pgac_args enable_shared"
1839 # Check whether --enable-shared or --disable-shared was given.
1840 if test "${enable_shared+set}" = set; then
1841 enableval
="$enable_shared"
1851 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1852 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1853 { (exit 1); exit 1; }; }
1865 # '-rpath'-like feature can be disabled
1868 pgac_args
="$pgac_args enable_rpath"
1870 # Check whether --enable-rpath or --disable-rpath was given.
1871 if test "${enable_rpath+set}" = set; then
1872 enableval
="$enable_rpath"
1882 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1883 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1884 { (exit 1); exit 1; }; }
1899 pgac_args
="$pgac_args enable_spinlocks"
1901 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1902 if test "${enable_spinlocks+set}" = set; then
1903 enableval
="$enable_spinlocks"
1913 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1914 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1915 { (exit 1); exit 1; }; }
1920 enable_spinlocks
=yes
1926 # --enable-debug adds -g to compiler flags
1929 pgac_args
="$pgac_args enable_debug"
1931 # Check whether --enable-debug or --disable-debug was given.
1932 if test "${enable_debug+set}" = set; then
1933 enableval
="$enable_debug"
1943 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1944 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1945 { (exit 1); exit 1; }; }
1957 # --enable-profiling enables gcc profiling
1960 pgac_args
="$pgac_args enable_profiling"
1962 # Check whether --enable-profiling or --disable-profiling was given.
1963 if test "${enable_profiling+set}" = set; then
1964 enableval
="$enable_profiling"
1974 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
1975 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
1976 { (exit 1); exit 1; }; }
1991 pgac_args
="$pgac_args enable_dtrace"
1993 # Check whether --enable-dtrace or --disable-dtrace was given.
1994 if test "${enable_dtrace+set}" = set; then
1995 enableval
="$enable_dtrace"
2000 cat >>confdefs.h
<<\_ACEOF
2001 #define ENABLE_DTRACE 1
2004 for ac_prog
in dtrace
2006 # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy
$ac_prog; ac_word
=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_DTRACE+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$DTRACE"; then
2014 ac_cv_prog_DTRACE
="$DTRACE" # Let the user override the test.
2016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir
=.
2021 for ac_exec_ext
in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_DTRACE
="$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 DTRACE
=$ac_cv_prog_DTRACE
2033 if test -n "$DTRACE"; then
2034 echo "$as_me:$LINENO: result: $DTRACE" >&5
2035 echo "${ECHO_T}$DTRACE" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2041 test -n "$DTRACE" && break
2044 if test -z "$DTRACE"; then
2045 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2046 echo "$as_me: error: dtrace not found" >&2;}
2047 { (exit 1); exit 1; }; }
2055 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2056 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2057 { (exit 1); exit 1; }; }
2072 # For historical reasons you can also use --with-CC to specify the C compiler
2073 # to use, although the standard way to do this is to set the CC environment
2076 pgac_args
="$pgac_args with_CC"
2079 # Check whether --with-CC or --without-CC was given.
2080 if test "${with_CC+set}" = set; then
2085 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2086 echo "$as_me: error: argument required for --with-CC option" >&2;}
2087 { (exit 1); exit 1; }; }
2090 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2091 echo "$as_me: error: argument required for --with-CC option" >&2;}
2092 { (exit 1); exit 1; }; }
2103 aix
) pgac_cc_list
="gcc xlc";;
2104 irix
) pgac_cc_list
="cc";; # no gcc
2105 *) pgac_cc_list
="gcc cc";;
2109 ac_cpp
='$CPP $CPPFLAGS'
2110 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114 for ac_prog
in $pgac_cc_list
2116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2117 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$CC"; then
2124 ac_cv_prog_CC
="$CC" # Let the user override the test.
2126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir
=.
2131 for ac_exec_ext
in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 if test -n "$CC"; then
2144 echo "$as_me:$LINENO: result: $CC" >&5
2145 echo "${ECHO_T}$CC" >&6
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2151 test -n "$CC" && break
2154 if test -z "$CC"; then
2156 for ac_prog
in $pgac_cc_list
2158 # Extract the first word of "$ac_prog", so it can be a program name with args.
2159 set dummy
$ac_prog; ac_word
=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 if test -n "$ac_ct_CC"; then
2166 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2172 test -z "$as_dir" && as_dir
=.
2173 for ac_exec_ext
in '' $ac_executable_extensions; do
2174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175 ac_cv_prog_ac_ct_CC
="$ac_prog"
2176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2185 if test -n "$ac_ct_CC"; then
2186 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187 echo "${ECHO_T}$ac_ct_CC" >&6
2189 echo "$as_me:$LINENO: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2193 test -n "$ac_ct_CC" && break
2200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: no acceptable C compiler found in \$PATH
2203 See \`config.log' for more details." >&2;}
2204 { (exit 1); exit 1; }; }
2206 # Provide some information about the compiler.
2207 echo "$as_me:$LINENO:" \
2208 "checking for C compiler version" >&5
2209 ac_compiler
=`set X $ac_compile; echo $2`
2210 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2211 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }
2215 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2216 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }
2220 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2221 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }
2226 cat >conftest.
$ac_ext <<_ACEOF
2229 cat confdefs.h
>>conftest.
$ac_ext
2230 cat >>conftest.
$ac_ext <<_ACEOF
2231 /* end confdefs.h. */
2241 ac_clean_files_save
=$ac_clean_files
2242 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2243 # Try to create an executable without -o first, disregard a.out.
2244 # It will help us diagnose broken compilers, and finding out an intuition
2246 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2247 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2248 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2249 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2250 (eval $ac_link_default) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; then
2254 # Find the output, starting from the most likely. This scheme is
2255 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2258 # Be careful to initialize this variable, since it used to be cached.
2259 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2261 # b.out is created by i960 compilers.
2262 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2264 test -f "$ac_file" ||
continue
2266 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2269 # This is the source file.
2272 # We found the default executable, but exeext='' is most
2276 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277 # FIXME: I believe we export ac_cv_exeext for Libtool,
2278 # but it would be cool to find out if it's true. Does anybody
2279 # maintain Libtool? --akim.
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.
$ac_ext >&5
2290 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: C compiler cannot create executables
2293 See \`config.log' for more details." >&2;}
2294 { (exit 77); exit 77; }; }
2297 ac_exeext
=$ac_cv_exeext
2298 echo "$as_me:$LINENO: result: $ac_file" >&5
2299 echo "${ECHO_T}$ac_file" >&6
2301 # Check the compiler produces executables we can run. If not, either
2302 # the compiler is broken, or we cross compile.
2303 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2304 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2305 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2306 # If not cross compiling, check that we can run a simple program.
2307 if test "$cross_compiling" != yes; then
2308 if { ac_try
='./$ac_file'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2316 if test "$cross_compiling" = maybe
; then
2319 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2320 If you meant to cross compile, use \`--host'.
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot run C compiled programs.
2323 If you meant to cross compile, use \`--host'.
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2329 echo "$as_me:$LINENO: result: yes" >&5
2330 echo "${ECHO_T}yes" >&6
2332 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2333 ac_clean_files
=$ac_clean_files_save
2334 # Check the compiler produces executables we can run. If not, either
2335 # the compiler is broken, or we cross compile.
2336 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2337 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2338 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2339 echo "${ECHO_T}$cross_compiling" >&6
2341 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2342 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2344 (eval $ac_link) 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2349 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2350 # work properly (i.e., refer to `conftest.exe'), while it won't with
2352 for ac_file
in conftest.exe conftest conftest.
*; do
2353 test -f "$ac_file" ||
continue
2355 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2356 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
2370 rm -f conftest
$ac_cv_exeext
2371 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372 echo "${ECHO_T}$ac_cv_exeext" >&6
2374 rm -f conftest.
$ac_ext
2375 EXEEXT
=$ac_cv_exeext
2377 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2379 if test "${ac_cv_objext+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.
$ac_ext <<_ACEOF
2385 cat confdefs.h
>>conftest.
$ac_ext
2386 cat >>conftest.
$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.o conftest.obj
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2405 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2406 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.
$ac_ext >&5
2414 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2421 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2423 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2424 echo "${ECHO_T}$ac_cv_objext" >&6
2425 OBJEXT
=$ac_cv_objext
2427 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2428 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2429 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cat >conftest.
$ac_ext <<_ACEOF
2435 cat confdefs.h
>>conftest.
$ac_ext
2436 cat >>conftest.
$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2450 rm -f conftest.
$ac_objext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452 (eval $ac_compile) 2>conftest.er1
2454 grep -v '^ *+' conftest.er1
>conftest.err
2456 cat conftest.err
>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try
='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try
='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.
$ac_ext >&5
2479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2480 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2483 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2484 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2485 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2486 ac_test_CFLAGS
=${CFLAGS+set}
2487 ac_save_CFLAGS
=$CFLAGS
2489 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2490 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2491 if test "${ac_cv_prog_cc_g+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 cat >conftest.
$ac_ext <<_ACEOF
2497 cat confdefs.h
>>conftest.
$ac_ext
2498 cat >>conftest.
$ac_ext <<_ACEOF
2499 /* end confdefs.h. */
2509 rm -f conftest.
$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2513 grep -v '^ *+' conftest.er1
>conftest.err
2515 cat conftest.err
>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try
='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try
='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.
$ac_ext >&5
2538 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2540 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2541 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2542 if test "$ac_test_CFLAGS" = set; then
2543 CFLAGS
=$ac_save_CFLAGS
2544 elif test $ac_cv_prog_cc_g = yes; then
2545 if test "$GCC" = yes; then
2551 if test "$GCC" = yes; then
2557 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2558 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2559 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 ac_cv_prog_cc_stdc
=no
2564 cat >conftest.
$ac_ext <<_ACEOF
2567 cat confdefs.h
>>conftest.
$ac_ext
2568 cat >>conftest.
$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2572 #include <sys/types.h>
2573 #include <sys/stat.h>
2574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2575 struct buf { int x; };
2576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2577 static char *e (p, i)
2583 static char *f (char * (*g) (char **, int), char **p, ...)
2588 s = g (p, va_arg (v,int));
2593 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2594 function prototypes and stuff, but not '\xHH' hex character constants.
2595 These don't provoke an error unfortunately, instead are silently treated
2596 as 'x'. The following induces an error, until -std1 is added to get
2597 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2598 array size at least. It's necessary to write '\x00'==0 to get something
2599 that's true only with -std1. */
2600 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2602 int test (int i, double x);
2603 struct s1 {int (*f) (int a);};
2604 struct s2 {int (*f) (double a);};
2605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2616 # Don't try gcc -ansi; that turns off useful extensions and
2617 # breaks some systems' header files.
2618 # AIX -qlanglvl=ansi
2619 # Ultrix and OSF/1 -std1
2620 # HP-UX 10.20 and later -Ae
2621 # HP-UX older versions -Aa -D_HPUX_SOURCE
2622 # SVR4 -Xc -D__EXTENSIONS__
2623 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2625 CC
="$ac_save_CC $ac_arg"
2626 rm -f conftest.
$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>conftest.er1
2630 grep -v '^ *+' conftest.er1
>conftest.err
2632 cat conftest.err
>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } &&
2635 { ac_try
='test -z "$ac_c_werror_flag"
2636 || test ! -s conftest.err'
2637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; } &&
2642 { ac_try
='test -s conftest.$ac_objext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_prog_cc_stdc
=$ac_arg
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.
$ac_ext >&5
2655 rm -f conftest.err conftest.
$ac_objext
2657 rm -f conftest.
$ac_ext conftest.
$ac_objext
2662 case "x$ac_cv_prog_cc_stdc" in
2664 echo "$as_me:$LINENO: result: none needed" >&5
2665 echo "${ECHO_T}none needed" >&6 ;;
2667 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2668 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2669 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2672 # Some people use a C++ compiler to compile C. Since we use `exit',
2673 # in C++ we need to declare it. In case someone uses the same compiler
2674 # for both compiling C and C++ we need to have the C++ compiler decide
2675 # the declaration of exit, since it's the most demanding environment.
2676 cat >conftest.
$ac_ext <<_ACEOF
2681 rm -f conftest.
$ac_objext
2682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683 (eval $ac_compile) 2>conftest.er1
2685 grep -v '^ *+' conftest.er1
>conftest.err
2687 cat conftest.err
>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
2690 { ac_try
='test -z "$ac_c_werror_flag"
2691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try
='test -s conftest.$ac_objext'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2703 for ac_declaration
in \
2705 'extern "C" void std::exit (int) throw (); using std::exit;' \
2706 'extern "C" void std::exit (int); using std::exit;' \
2707 'extern "C" void exit (int) throw ();' \
2708 'extern "C" void exit (int);' \
2711 cat >conftest.
$ac_ext <<_ACEOF
2714 cat confdefs.h
>>conftest.
$ac_ext
2715 cat >>conftest.
$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2727 rm -f conftest.
$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1
>conftest.err
2733 cat conftest.err
>&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try
='test -z "$ac_c_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try
='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.
$ac_ext >&5
2756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2757 cat >conftest.
$ac_ext <<_ACEOF
2760 cat confdefs.h
>>conftest.
$ac_ext
2761 cat >>conftest.
$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2772 rm -f conftest.
$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1
>conftest.err
2778 cat conftest.err
>&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } &&
2781 { ac_try
='test -z "$ac_c_werror_flag"
2782 || test ! -s conftest.err'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try
='test -s conftest.$ac_objext'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.
$ac_ext >&5
2800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2803 if test -n "$ac_declaration"; then
2804 echo '#ifdef __cplusplus' >>confdefs.h
2805 echo $ac_declaration >>confdefs.h
2806 echo '#endif' >>confdefs.h
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.
$ac_ext >&5
2814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2816 ac_cpp
='$CPP $CPPFLAGS'
2817 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2822 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
2823 # but has idiosyncrasies of its own. We assume icc will define
2824 # __INTEL_COMPILER regardless of CFLAGS.
2826 cat >conftest.
$ac_ext <<_ACEOF
2829 cat confdefs.h
>>conftest.
$ac_ext
2830 cat >>conftest.
$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2836 #ifndef __INTEL_COMPILER
2843 rm -f conftest.
$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1
>conftest.err
2849 cat conftest.err
>&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
2852 { ac_try
='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try
='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.
$ac_ext >&5
2872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2879 .
"$srcdir/src/template/$template" ||
exit
2881 # CFLAGS are selected so:
2882 # If the user specifies something in the environment, that is used.
2883 # else: If the template file set something, that is used.
2884 # else: If the compiler is GCC, then we use -O2.
2885 # else: If the compiler is something else, then we use -0.
2887 if test "$ac_env_CFLAGS_set" = set; then
2888 CFLAGS
=$ac_env_CFLAGS_value
2889 elif test "${CFLAGS+set}" = set; then
2890 : # (keep what template set)
2891 elif test "$GCC" = yes; then
2894 # if the user selected debug mode, don't use -O
2895 if test "$enable_debug" != yes; then
2900 # Some versions of GCC support some additional useful warning flags.
2901 # Check whether they are supported, and add them to CFLAGS if so.
2902 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2904 if test "$GCC" = yes -a "$ICC" = no
; then
2905 CFLAGS
="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2906 # These work in some but not all gcc versions
2907 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2908 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2909 pgac_save_CFLAGS
=$CFLAGS
2910 CFLAGS
="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2911 cat >conftest.
$ac_ext <<_ACEOF
2914 cat confdefs.h
>>conftest.
$ac_ext
2915 cat >>conftest.
$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2926 rm -f conftest.
$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1
>conftest.err
2932 cat conftest.err
>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try
='test -z "$ac_c_werror_flag"
2936 || test ! -s conftest.err'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; } &&
2942 { ac_try
='test -s conftest.$ac_objext'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2948 echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.
$ac_ext >&5
2954 CFLAGS
="$pgac_save_CFLAGS"
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2960 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2961 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2962 pgac_save_CFLAGS
=$CFLAGS
2963 CFLAGS
="$pgac_save_CFLAGS -Wendif-labels"
2964 cat >conftest.
$ac_ext <<_ACEOF
2967 cat confdefs.h
>>conftest.
$ac_ext
2968 cat >>conftest.
$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.
$ac_objext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>conftest.er1
2983 grep -v '^ *+' conftest.er1
>conftest.err
2985 cat conftest.err
>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try
='test -z "$ac_c_werror_flag"
2989 || test ! -s conftest.err'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try
='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 echo "$as_me:$LINENO: result: yes" >&5
3002 echo "${ECHO_T}yes" >&6
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.
$ac_ext >&5
3007 CFLAGS
="$pgac_save_CFLAGS"
3008 echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3013 # Disable strict-aliasing rules; needed for gcc 3.3+
3014 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3015 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3016 pgac_save_CFLAGS
=$CFLAGS
3017 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3018 cat >conftest.
$ac_ext <<_ACEOF
3021 cat confdefs.h
>>conftest.
$ac_ext
3022 cat >>conftest.
$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3033 rm -f conftest.
$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>conftest.er1
3037 grep -v '^ *+' conftest.er1
>conftest.err
3039 cat conftest.err
>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try
='test -z "$ac_c_werror_flag"
3043 || test ! -s conftest.err'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try
='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 echo "$as_me:$LINENO: result: yes" >&5
3056 echo "${ECHO_T}yes" >&6
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.
$ac_ext >&5
3061 CFLAGS
="$pgac_save_CFLAGS"
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3067 elif test "$ICC" = yes; then
3068 # Intel's compiler has a bug/misoptimization in checking for
3069 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
3070 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3071 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
3072 pgac_save_CFLAGS
=$CFLAGS
3073 CFLAGS
="$pgac_save_CFLAGS -mp1"
3074 cat >conftest.
$ac_ext <<_ACEOF
3077 cat confdefs.h
>>conftest.
$ac_ext
3078 cat >>conftest.
$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.
$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3093 grep -v '^ *+' conftest.er1
>conftest.err
3095 cat conftest.err
>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try
='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try
='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.
$ac_ext >&5
3117 CFLAGS
="$pgac_save_CFLAGS"
3118 echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3123 # Not clear if this is needed, but seems like a good idea
3124 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3125 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3126 pgac_save_CFLAGS
=$CFLAGS
3127 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
3128 cat >conftest.
$ac_ext <<_ACEOF
3131 cat confdefs.h
>>conftest.
$ac_ext
3132 cat >>conftest.
$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3143 rm -f conftest.
$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>conftest.er1
3147 grep -v '^ *+' conftest.er1
>conftest.err
3149 cat conftest.err
>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try
='test -z "$ac_c_werror_flag"
3153 || test ! -s conftest.err'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try
='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 echo "$as_me:$LINENO: result: yes" >&5
3166 echo "${ECHO_T}yes" >&6
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.
$ac_ext >&5
3171 CFLAGS
="$pgac_save_CFLAGS"
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3177 elif test x
"${CC}" = x
"xlc"; then
3178 # AIX xlc has to have strict aliasing turned off too
3179 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3180 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3181 pgac_save_CFLAGS
=$CFLAGS
3182 CFLAGS
="$pgac_save_CFLAGS -qnoansialias"
3183 cat >conftest.
$ac_ext <<_ACEOF
3186 cat confdefs.h
>>conftest.
$ac_ext
3187 cat >>conftest.
$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.
$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1
>conftest.err
3204 cat conftest.err
>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try
='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try
='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 echo "$as_me:$LINENO: result: yes" >&5
3221 echo "${ECHO_T}yes" >&6
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.
$ac_ext >&5
3226 CFLAGS
="$pgac_save_CFLAGS"
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3230 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3234 # supply -g if --enable-debug
3235 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3239 # enable profiling if --enable-profiling
3240 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3241 if test "$GCC" = yes; then
3243 cat >>confdefs.h
<<\_ACEOF
3244 #define PROFILE_PID_DIR 1
3247 CFLAGS
="$CFLAGS -pg"
3249 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3250 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3251 { (exit 1); exit 1; }; }
3255 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3256 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3258 # We already have this in Makefile.win32, but configure needs it too
3259 if test "$PORTNAME" = "win32"; then
3260 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3263 # Check if the compiler still works with the template settings
3264 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3265 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3266 cat >conftest.
$ac_ext <<_ACEOF
3269 cat confdefs.h
>>conftest.
$ac_ext
3270 cat >>conftest.
$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3281 rm -f conftest.
$ac_objext conftest
$ac_exeext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3283 (eval $ac_link) 2>conftest.er1
3285 grep -v '^ *+' conftest.er1
>conftest.err
3287 cat conftest.err
>&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } &&
3290 { ac_try
='test -z "$ac_c_werror_flag"
3291 || test ! -s conftest.err'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try
='test -s conftest$ac_exeext'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.
$ac_ext >&5
3309 echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3311 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3312 echo "$as_me: error: cannot proceed" >&2;}
3313 { (exit 1); exit 1; }; }
3315 rm -f conftest.err conftest.
$ac_objext \
3316 conftest
$ac_exeext conftest.
$ac_ext
3318 # Defend against gcc -ffast-math
3319 if test "$GCC" = yes; then
3320 cat >conftest.
$ac_ext <<_ACEOF
3323 cat confdefs.h
>>conftest.
$ac_ext
3324 cat >>conftest.
$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3330 #ifdef __FAST_MATH__
3337 rm -f conftest.
$ac_objext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3339 (eval $ac_compile) 2>conftest.er1
3341 grep -v '^ *+' conftest.er1
>conftest.err
3343 cat conftest.err
>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try
='test -z "$ac_c_werror_flag"
3347 || test ! -s conftest.err'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; } &&
3353 { ac_try
='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.
$ac_ext >&5
3364 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3365 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3366 { (exit 1); exit 1; }; }
3368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3372 ac_cpp
='$CPP $CPPFLAGS'
3373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3376 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3378 # On Suns, sometimes $CPP names a directory.
3379 if test -n "$CPP" && test -d "$CPP"; then
3382 if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 # Double quotes because CPP needs to be expanded
3387 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3390 for ac_c_preproc_warn_flag
in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.
$ac_ext <<_ACEOF
3401 cat confdefs.h
>>conftest.
$ac_ext
3402 cat >>conftest.
$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3405 # include <limits.h>
3407 # include <assert.h>
3411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1
>conftest.err
3416 cat conftest.err
>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev
/null
; then
3419 if test -s conftest.err
; then
3420 ac_cpp_err
=$ac_c_preproc_warn_flag
3421 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3428 if test -z "$ac_cpp_err"; then
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.
$ac_ext >&5
3434 # Broken: fails on valid input.
3437 rm -f conftest.err conftest.
$ac_ext
3439 # OK, works on sane cases. Now check whether non-existent headers
3440 # can be detected and how.
3441 cat >conftest.
$ac_ext <<_ACEOF
3444 cat confdefs.h
>>conftest.
$ac_ext
3445 cat >>conftest.
$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3450 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3452 grep -v '^ *+' conftest.er1
>conftest.err
3454 cat conftest.err
>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev
/null
; then
3457 if test -s conftest.err
; then
3458 ac_cpp_err
=$ac_c_preproc_warn_flag
3459 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.
$ac_ext >&5
3473 # Passes both tests.
3477 rm -f conftest.err conftest.
$ac_ext
3480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481 rm -f conftest.err conftest.
$ac_ext
3482 if $ac_preproc_ok; then
3494 echo "$as_me:$LINENO: result: $CPP" >&5
3495 echo "${ECHO_T}$CPP" >&6
3497 for ac_c_preproc_warn_flag
in '' yes
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
3505 cat >conftest.
$ac_ext <<_ACEOF
3508 cat confdefs.h
>>conftest.
$ac_ext
3509 cat >>conftest.
$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3512 # include <limits.h>
3514 # include <assert.h>
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1
>conftest.err
3523 cat conftest.err
>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev
/null
; then
3526 if test -s conftest.err
; then
3527 ac_cpp_err
=$ac_c_preproc_warn_flag
3528 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3535 if test -z "$ac_cpp_err"; then
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.
$ac_ext >&5
3541 # Broken: fails on valid input.
3544 rm -f conftest.err conftest.
$ac_ext
3546 # OK, works on sane cases. Now check whether non-existent headers
3547 # can be detected and how.
3548 cat >conftest.
$ac_ext <<_ACEOF
3551 cat confdefs.h
>>conftest.
$ac_ext
3552 cat >>conftest.
$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3559 grep -v '^ *+' conftest.er1
>conftest.err
3561 cat conftest.err
>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev
/null
; then
3564 if test -s conftest.err
; then
3565 ac_cpp_err
=$ac_c_preproc_warn_flag
3566 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3573 if test -z "$ac_cpp_err"; then
3574 # Broken: success on invalid input.
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.
$ac_ext >&5
3580 # Passes both tests.
3584 rm -f conftest.err conftest.
$ac_ext
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.
$ac_ext
3589 if $ac_preproc_ok; then
3592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3595 See \`config.log' for more details." >&2;}
3596 { (exit 1); exit 1; }; }
3600 ac_cpp
='$CPP $CPPFLAGS'
3601 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3607 # Create compiler version string
3608 if test x
"$GCC" = x
"yes" ; then
3609 cc_string
="GCC `${CC} --version | sed q`"
3614 cat >>confdefs.h
<<_ACEOF
3615 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3621 # Set up TAS assembly code if needed; the template file has now had its
3622 # chance to request this.
3624 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3627 if test "$need_tas" = yes ; then
3636 # Automatic dependency tracking
3639 pgac_args
="$pgac_args enable_depend"
3641 # Check whether --enable-depend or --disable-depend was given.
3642 if test "${enable_depend+set}" = set; then
3643 enableval
="$enable_depend"
3653 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3654 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3655 { (exit 1); exit 1; }; }
3668 # Enable assert checks
3671 pgac_args
="$pgac_args enable_cassert"
3673 # Check whether --enable-cassert or --disable-cassert was given.
3674 if test "${enable_cassert+set}" = set; then
3675 enableval
="$enable_cassert"
3680 cat >>confdefs.h
<<\_ACEOF
3681 #define USE_ASSERT_CHECKING 1
3689 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3690 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3691 { (exit 1); exit 1; }; }
3703 # Include directories
3706 IFS
="${IFS}${PATH_SEPARATOR}"
3707 # SRCH_INC comes from the template file
3708 for dir
in $with_includes $SRCH_INC; do
3709 if test -d "$dir"; then
3710 INCLUDES
="$INCLUDES -I$dir"
3712 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3713 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3721 # Library directories
3724 IFS
="${IFS}${PATH_SEPARATOR}"
3725 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3726 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
3727 if test -d "$dir"; then
3728 LIBDIRS
="$LIBDIRS -L$dir"
3730 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3731 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3737 # Enable thread-safe client libraries
3739 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3740 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3741 if test "$PORTNAME" != "win32"; then
3743 pgac_args
="$pgac_args enable_thread_safety"
3745 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3746 if test "${enable_thread_safety+set}" = set; then
3747 enableval
="$enable_thread_safety"
3757 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3758 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3759 { (exit 1); exit 1; }; }
3764 enable_thread_safety
=no
3769 # Win32 should always use threads
3771 pgac_args
="$pgac_args enable_thread_safety"
3773 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3774 if test "${enable_thread_safety+set}" = set; then
3775 enableval
="$enable_thread_safety"
3785 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3786 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3787 { (exit 1); exit 1; }; }
3792 enable_thread_safety
=yes
3799 pgac_args
="$pgac_args enable_thread_safety_force"
3801 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3802 if test "${enable_thread_safety_force+set}" = set; then
3803 enableval
="$enable_thread_safety_force"
3813 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3814 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3815 { (exit 1); exit 1; }; }
3820 enable_thread_safety_force
=no
3824 if test "$enable_thread_safety" = yes -o \
3825 "$enable_thread_safety_force" = yes; then
3826 enable_thread_safety
="yes" # for 'force'
3828 cat >>confdefs.h
<<\_ACEOF
3829 #define ENABLE_THREAD_SAFETY 1
3833 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3834 echo "${ECHO_T}$enable_thread_safety" >&6
3838 # Optionally build Tcl modules (PL/Tcl)
3840 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3841 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3843 pgac_args
="$pgac_args with_tcl"
3846 # Check whether --with-tcl or --without-tcl was given.
3847 if test "${with_tcl+set}" = set; then
3858 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3859 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3860 { (exit 1); exit 1; }; }
3869 echo "$as_me:$LINENO: result: $with_tcl" >&5
3870 echo "${ECHO_T}$with_tcl" >&6
3873 # We see if the path to the Tcl/Tk configuration scripts is specified.
3874 # This will override the use of tclsh to find the paths to search.
3877 pgac_args
="$pgac_args with_tclconfig"
3880 # Check whether --with-tclconfig or --without-tclconfig was given.
3881 if test "${with_tclconfig+set}" = set; then
3882 withval
="$with_tclconfig"
3886 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3887 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3888 { (exit 1); exit 1; }; }
3891 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3892 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3893 { (exit 1); exit 1; }; }
3904 # Optionally build Perl modules (PL/Perl)
3906 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3907 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3909 pgac_args
="$pgac_args with_perl"
3912 # Check whether --with-perl or --without-perl was given.
3913 if test "${with_perl+set}" = set; then
3914 withval
="$with_perl"
3924 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3925 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3926 { (exit 1); exit 1; }; }
3935 echo "$as_me:$LINENO: result: $with_perl" >&5
3936 echo "${ECHO_T}$with_perl" >&6
3940 # Optionally build Python modules (PL/Python)
3942 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3943 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3945 pgac_args
="$pgac_args with_python"
3948 # Check whether --with-python or --without-python was given.
3949 if test "${with_python+set}" = set; then
3950 withval
="$with_python"
3960 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3961 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3962 { (exit 1); exit 1; }; }
3971 echo "$as_me:$LINENO: result: $with_python" >&5
3972 echo "${ECHO_T}$with_python" >&6
3978 echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
3979 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6
3981 pgac_args
="$pgac_args with_gssapi"
3984 # Check whether --with-gssapi or --without-gssapi was given.
3985 if test "${with_gssapi+set}" = set; then
3986 withval
="$with_gssapi"
3992 cat >>confdefs.h
<<\_ACEOF
3993 #define ENABLE_GSS 1
3996 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4003 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4004 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4005 { (exit 1); exit 1; }; }
4014 echo "$as_me:$LINENO: result: $with_gssapi" >&5
4015 echo "${ECHO_T}$with_gssapi" >&6
4021 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4022 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
4024 pgac_args
="$pgac_args with_krb5"
4027 # Check whether --with-krb5 or --without-krb5 was given.
4028 if test "${with_krb5+set}" = set; then
4029 withval
="$with_krb5"
4035 cat >>confdefs.h
<<\_ACEOF
4039 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
4046 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
4047 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
4048 { (exit 1); exit 1; }; }
4057 echo "$as_me:$LINENO: result: $with_krb5" >&5
4058 echo "${ECHO_T}$with_krb5" >&6
4066 # Kerberos configuration parameters
4069 pgac_args
="$pgac_args with_krb_srvnam"
4072 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
4073 if test "${with_krb_srvnam+set}" = set; then
4074 withval
="$with_krb_srvnam"
4078 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4079 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4080 { (exit 1); exit 1; }; }
4083 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
4084 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
4085 { (exit 1); exit 1; }; }
4093 with_krb_srvnam
="postgres"
4097 cat >>confdefs.h
<<_ACEOF
4098 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4106 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4107 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
4109 pgac_args
="$pgac_args with_pam"
4112 # Check whether --with-pam or --without-pam was given.
4113 if test "${with_pam+set}" = set; then
4119 cat >>confdefs.h
<<\_ACEOF
4128 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4129 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4130 { (exit 1); exit 1; }; }
4139 echo "$as_me:$LINENO: result: $with_pam" >&5
4140 echo "${ECHO_T}$with_pam" >&6
4147 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4148 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
4150 pgac_args
="$pgac_args with_ldap"
4153 # Check whether --with-ldap or --without-ldap was given.
4154 if test "${with_ldap+set}" = set; then
4155 withval
="$with_ldap"
4160 cat >>confdefs.h
<<\_ACEOF
4169 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4170 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4171 { (exit 1); exit 1; }; }
4180 echo "$as_me:$LINENO: result: $with_ldap" >&5
4181 echo "${ECHO_T}$with_ldap" >&6
4188 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4189 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4191 pgac_args
="$pgac_args with_bonjour"
4194 # Check whether --with-bonjour or --without-bonjour was given.
4195 if test "${with_bonjour+set}" = set; then
4196 withval
="$with_bonjour"
4201 cat >>confdefs.h
<<\_ACEOF
4202 #define USE_BONJOUR 1
4210 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4211 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4212 { (exit 1); exit 1; }; }
4221 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4222 echo "${ECHO_T}$with_bonjour" >&6
4229 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4230 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4232 pgac_args
="$pgac_args with_openssl"
4235 # Check whether --with-openssl or --without-openssl was given.
4236 if test "${with_openssl+set}" = set; then
4237 withval
="$with_openssl"
4242 cat >>confdefs.h
<<\_ACEOF
4251 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4252 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4253 { (exit 1); exit 1; }; }
4262 echo "$as_me:$LINENO: result: $with_openssl" >&5
4263 echo "${ECHO_T}$with_openssl" >&6
4271 pgac_args
="$pgac_args with_readline"
4274 # Check whether --with-readline or --without-readline was given.
4275 if test "${with_readline+set}" = set; then
4276 withval
="$with_readline"
4286 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4287 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4288 { (exit 1); exit 1; }; }
4297 # readline on MinGW has problems with backslashes in psql and other bugs.
4298 # This is particularly a problem with non-US code pages.
4299 # Therefore disable its use until we understand the cause. 2004-07-20
4300 if test "$PORTNAME" = "win32"; then
4301 if test "$with_readline" = yes; then
4302 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4303 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4313 pgac_args
="$pgac_args with_libedit_preferred"
4316 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4317 if test "${with_libedit_preferred+set}" = set; then
4318 withval
="$with_libedit_preferred"
4328 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4329 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4330 { (exit 1); exit 1; }; }
4335 with_libedit_preferred
=no
4345 pgac_args
="$pgac_args with_ossp_uuid"
4348 # Check whether --with-ossp-uuid or --without-ossp-uuid was given.
4349 if test "${with_ossp_uuid+set}" = set; then
4350 withval
="$with_ossp_uuid"
4360 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4361 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4362 { (exit 1); exit 1; }; }
4378 pgac_args
="$pgac_args with_libxml"
4381 # Check whether --with-libxml or --without-libxml was given.
4382 if test "${with_libxml+set}" = set; then
4383 withval
="$with_libxml"
4388 cat >>confdefs.h
<<\_ACEOF
4389 #define USE_LIBXML 1
4397 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4398 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4399 { (exit 1); exit 1; }; }
4409 if test "$with_libxml" = yes ; then
4410 for ac_prog
in xml2-config
4412 # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy
$ac_prog; ac_word
=$2
4414 echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 if test -n "$XML2_CONFIG"; then
4420 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
4422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir
=.
4427 for ac_exec_ext
in '' $ac_executable_extensions; do
4428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_XML2_CONFIG
="$ac_prog"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
4439 if test -n "$XML2_CONFIG"; then
4440 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4441 echo "${ECHO_T}$XML2_CONFIG" >&6
4443 echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6
4447 test -n "$XML2_CONFIG" && break
4450 if test -n "$XML2_CONFIG"; then
4451 for pgac_option
in `$XML2_CONFIG --cflags`; do
4452 case $pgac_option in
4453 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
4456 for pgac_option
in `$XML2_CONFIG --libs`; do
4457 case $pgac_option in
4458 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
4470 pgac_args
="$pgac_args with_libxslt"
4473 # Check whether --with-libxslt or --without-libxslt was given.
4474 if test "${with_libxslt+set}" = set; then
4475 withval
="$with_libxslt"
4480 cat >>confdefs.h
<<\_ACEOF
4481 #define USE_LIBXSLT 1
4489 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
4490 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
4491 { (exit 1); exit 1; }; }
4508 pgac_args
="$pgac_args with_system_tzdata"
4511 # Check whether --with-system-tzdata or --without-system-tzdata was given.
4512 if test "${with_system_tzdata+set}" = set; then
4513 withval
="$with_system_tzdata"
4517 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4518 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4519 { (exit 1); exit 1; }; }
4522 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
4523 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
4524 { (exit 1); exit 1; }; }
4539 pgac_args
="$pgac_args with_zlib"
4542 # Check whether --with-zlib or --without-zlib was given.
4543 if test "${with_zlib+set}" = set; then
4544 withval
="$with_zlib"
4554 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4555 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4556 { (exit 1); exit 1; }; }
4571 # Assume system is ELF if it predefines __ELF__ as 1,
4572 # otherwise believe host_os based default.
4574 freebsd1
*|freebsd2
*) elf
=no
;;
4575 freebsd3
*|freebsd4
*) elf
=yes;;
4579 echo "$as_me:$LINENO: checking for egrep" >&5
4580 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4581 if test "${ac_cv_prog_egrep+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4585 then ac_cv_prog_egrep
='grep -E'
4586 else ac_cv_prog_egrep
='egrep'
4589 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4590 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4591 EGREP
=$ac_cv_prog_egrep
4594 cat >conftest.
$ac_ext <<_ACEOF
4597 cat confdefs.h
>>conftest.
$ac_ext
4598 cat >>conftest.
$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "yes" >/dev
/null
2>&1; then
4609 if test "X$elf" = "Xyes" ; then
4623 CPPFLAGS
="$CPPFLAGS $INCLUDES"
4624 LDFLAGS
="$LDFLAGS $LIBDIRS"
4626 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4627 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4628 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4629 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4634 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4635 if test "${with_gnu_ld+set}" = set; then
4636 withval
="$with_gnu_ld"
4637 test "$withval" = no || with_gnu_ld
=yes
4642 if test "$GCC" = yes; then
4643 # Check if gcc -print-prog-name=ld gives a path.
4644 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4645 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4648 # gcc leaves a trailing carriage return which upsets mingw
4649 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4651 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4654 # Accept absolute paths.
4655 [\\/]* |
[A-Za-z
]:[\\/]*)
4656 re_direlt
='/[^/][^/]*/\.\./'
4657 # Canonicalize the path of ld
4658 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
4659 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4660 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
4662 test -z "$LD" && LD
="$ac_prog"
4665 # If it fails, then pretend we aren't using GCC.
4669 # If it is relative, then search for the first ld in PATH.
4673 elif test "$with_gnu_ld" = yes; then
4674 echo "$as_me:$LINENO: checking for GNU ld" >&5
4675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4677 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4680 if test "${ac_cv_path_LD+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test -z "$LD"; then
4684 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4685 for ac_dir
in $PATH; do
4686 test -z "$ac_dir" && ac_dir
=.
4687 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4688 ac_cv_path_LD
="$ac_dir/$ac_prog"
4689 # Check to see if the program is GNU ld. I'd rather use --version,
4690 # but apparently some GNU ld's only accept -v.
4691 # Break only if it was the GNU/non-GNU ld that we prefer.
4692 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
4693 test "$with_gnu_ld" != no
&& break
4695 test "$with_gnu_ld" != yes && break
4701 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
4706 if test -n "$LD"; then
4707 echo "$as_me:$LINENO: result: $LD" >&5
4708 echo "${ECHO_T}$LD" >&6
4710 echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4713 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4714 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4715 { (exit 1); exit 1; }; }
4716 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4717 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4718 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4722 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
4723 ac_cv_prog_gnu_ld
=yes
4725 ac_cv_prog_gnu_ld
=no
4728 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4729 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4730 with_gnu_ld
=$ac_cv_prog_gnu_ld
4735 case $host_os in sysv5
*)
4736 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4737 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4738 if test "${pgac_cv_prog_ld_R+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
4743 cat >conftest.
$ac_ext <<_ACEOF
4746 cat confdefs.h
>>conftest.
$ac_ext
4747 cat >>conftest.
$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4758 rm -f conftest.
$ac_objext conftest
$ac_exeext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1
>conftest.err
4764 cat conftest.err
>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try
='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try
='test -s conftest$ac_exeext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 pgac_cv_prog_ld_R
=yes
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.
$ac_ext >&5
4785 pgac_cv_prog_ld_R
=no
4787 rm -f conftest.err conftest.
$ac_objext \
4788 conftest
$ac_exeext conftest.
$ac_ext
4789 LDFLAGS
=$pgac_save_LDFLAGS
4792 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4793 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4794 ld_R_works
=$pgac_cv_prog_ld_R
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4799 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4800 echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4802 if test "${ac_cv_prog_RANLIB+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 if test -n "$RANLIB"; then
4806 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4812 test -z "$as_dir" && as_dir
=.
4813 for ac_exec_ext
in '' $ac_executable_extensions; do
4814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 RANLIB
=$ac_cv_prog_RANLIB
4825 if test -n "$RANLIB"; then
4826 echo "$as_me:$LINENO: result: $RANLIB" >&5
4827 echo "${ECHO_T}$RANLIB" >&6
4829 echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4834 if test -z "$ac_cv_prog_RANLIB"; then
4835 ac_ct_RANLIB
=$RANLIB
4836 # Extract the first word of "ranlib", so it can be a program name with args.
4837 set dummy ranlib
; ac_word
=$2
4838 echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 if test -n "$ac_ct_RANLIB"; then
4844 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4850 test -z "$as_dir" && as_dir
=.
4851 for ac_exec_ext
in '' $ac_executable_extensions; do
4852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4853 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4863 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4864 if test -n "$ac_ct_RANLIB"; then
4865 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4866 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4868 echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4872 RANLIB
=$ac_ct_RANLIB
4874 RANLIB
="$ac_cv_prog_RANLIB"
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4880 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4881 echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_STRIP+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test -n "$STRIP"; then
4887 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir
=.
4894 for ac_exec_ext
in '' $ac_executable_extensions; do
4895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 STRIP
=$ac_cv_prog_STRIP
4906 if test -n "$STRIP"; then
4907 echo "$as_me:$LINENO: result: $STRIP" >&5
4908 echo "${ECHO_T}$STRIP" >&6
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4915 if test -z "$ac_cv_prog_STRIP"; then
4917 # Extract the first word of "strip", so it can be a program name with args.
4918 set dummy strip
; ac_word
=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 if test -n "$ac_ct_STRIP"; then
4925 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir
=.
4932 for ac_exec_ext
in '' $ac_executable_extensions; do
4933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_STRIP
="strip"
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
4944 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4945 if test -n "$ac_ct_STRIP"; then
4946 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4947 echo "${ECHO_T}$ac_ct_STRIP" >&6
4949 echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4955 STRIP
="$ac_cv_prog_STRIP"
4959 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4960 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4961 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
4962 STRIP_STATIC_LIB
="$STRIP -x"
4963 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
4964 echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6
4969 echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4976 # Extract the first word of "tar", so it can be a program name with args.
4977 set dummy
tar; ac_word
=$2
4978 echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_path_TAR+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
4988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir
=.
4993 for ac_exec_ext
in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 if test -n "$TAR"; then
5008 echo "$as_me:$LINENO: result: $TAR" >&5
5009 echo "${ECHO_T}$TAR" >&6
5011 echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5015 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5016 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5018 if test "$LN_S" = "ln -s"; then
5019 echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5022 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5023 echo "${ECHO_T}no, using $LN_S" >&6
5026 for ac_prog
in gawk mawk nawk
awk
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy
$ac_prog; ac_word
=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_AWK+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 if test -n "$AWK"; then
5036 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_AWK
="$ac_prog"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 if test -n "$AWK"; then
5056 echo "$as_me:$LINENO: result: $AWK" >&5
5057 echo "${ECHO_T}$AWK" >&6
5059 echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6
5063 test -n "$AWK" && break
5067 # Let the user override the search
5068 if test -z "$YACC"; then
5069 for ac_prog
in 'bison -y'
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy
$ac_prog; ac_word
=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_YACC+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 if test -n "$YACC"; then
5079 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir
=.
5086 for ac_exec_ext
in '' $ac_executable_extensions; do
5087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_YACC
="$ac_prog"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 YACC
=$ac_cv_prog_YACC
5098 if test -n "$YACC"; then
5099 echo "$as_me:$LINENO: result: $YACC" >&5
5100 echo "${ECHO_T}$YACC" >&6
5102 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5106 test -n "$YACC" && break
5111 if test "$YACC"; then
5112 pgac_yacc_version
=`$YACC --version 2>/dev/null | sed q`
5113 { echo "$as_me:$LINENO: using $pgac_yacc_version" >&5
5114 echo "$as_me: using $pgac_yacc_version" >&6;}
5115 if echo "$pgac_yacc_version" |
$AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
5117 { echo "$as_me:$LINENO: WARNING:
5118 *** The installed version of Bison is too old to use with PostgreSQL.
5119 *** Bison version 1.875 or later is required." >&5
5120 echo "$as_me: WARNING:
5121 *** The installed version of Bison is too old to use with PostgreSQL.
5122 *** Bison version 1.875 or later is required." >&2;}
5127 if test -z "$YACC"; then
5128 { echo "$as_me:$LINENO: WARNING:
5129 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5130 *** change any of the parser definition files. You can obtain Bison from
5131 *** a GNU mirror site. (If you are using the official distribution of
5132 *** PostgreSQL then you do not need to worry about this, because the Bison
5133 *** output is pre-generated.) To use a different yacc program (possible,
5134 *** but not recommended), set the environment variable YACC before running
5135 *** 'configure'." >&5
5136 echo "$as_me: WARNING:
5137 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5138 *** change any of the parser definition files. You can obtain Bison from
5139 *** a GNU mirror site. (If you are using the official distribution of
5140 *** PostgreSQL then you do not need to worry about this, because the Bison
5141 *** output is pre-generated.) To use a different yacc program (possible,
5142 *** but not recommended), set the environment variable YACC before running
5143 *** 'configure'." >&2;}
5145 # We don't need AC_SUBST(YACC) because AC_PATH_PROG did it
5148 echo "$as_me:$LINENO: checking for flex" >&5
5149 echo $ECHO_N "checking for flex... $ECHO_C" >&6
5150 if test "${pgac_cv_path_flex+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 # Let the user override the test
5154 if test -n "$FLEX"; then
5155 pgac_cv_path_flex
=$FLEX
5159 for pgac_dir
in $PATH; do
5161 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
5164 for pgac_prog
in flex
lex; do
5165 pgac_candidate
="$pgac_dir/$pgac_prog"
5166 if test -f "$pgac_candidate" \
5167 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
5169 echo '%%' > conftest.l
5170 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
5171 if $pgac_candidate --version |
grep ' 2\.5\.3$' >/dev
/null
2>&1; then
5172 pgac_broken_flex
=$pgac_candidate
5176 pgac_cv_path_flex
=$pgac_candidate
5182 rm -f conftest.l
lex.yy.c
5183 : ${pgac_cv_path_flex=no}
5187 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
5188 echo "${ECHO_T}$pgac_cv_path_flex" >&6
5189 if test x
"$pgac_cv_path_flex" = x
"no"; then
5190 if test -n "$pgac_broken_flex"; then
5191 { echo "$as_me:$LINENO: WARNING:
5192 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5193 *** should get version 2.5.4 or later." >&5
5194 echo "$as_me: WARNING:
5195 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
5196 *** should get version 2.5.4 or later." >&2;}
5199 { echo "$as_me:$LINENO: WARNING:
5200 *** Without Flex you will not be able to build PostgreSQL from CVS or
5201 *** change any of the scanner definition files. You can obtain Flex from
5202 *** a GNU mirror site. (If you are using the official distribution of
5203 *** PostgreSQL then you do not need to worry about this because the Flex
5204 *** output is pre-generated.)" >&5
5205 echo "$as_me: WARNING:
5206 *** Without Flex you will not be able to build PostgreSQL from CVS or
5207 *** change any of the scanner definition files. You can obtain Flex from
5208 *** a GNU mirror site. (If you are using the official distribution of
5209 *** PostgreSQL then you do not need to worry about this because the Flex
5210 *** output is pre-generated.)" >&2;}
5214 FLEX
=$pgac_cv_path_flex
5215 pgac_flex_version
=`$FLEX -V 2>/dev/null`
5216 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
5217 echo "$as_me: using $pgac_flex_version" >&6;}
5224 # Extract the first word of "perl", so it can be a program name with args.
5225 set dummy perl
; ac_word
=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_path_PERL+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
5236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir
=.
5241 for ac_exec_ext
in '' $ac_executable_extensions; do
5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 PERL
=$ac_cv_path_PERL
5255 if test -n "$PERL"; then
5256 echo "$as_me:$LINENO: result: $PERL" >&5
5257 echo "${ECHO_T}$PERL" >&6
5259 echo "$as_me:$LINENO: result: no" >&5
5260 echo "${ECHO_T}no" >&6
5263 if test "$with_perl" = yes; then
5265 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5266 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
5267 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5268 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5269 echo "${ECHO_T}$perl_archlibexp" >&6
5270 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5271 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
5272 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5273 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5274 echo "${ECHO_T}$perl_privlibexp" >&6
5275 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5276 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
5277 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5278 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5279 echo "${ECHO_T}$perl_useshrplib" >&6
5281 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5282 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
5283 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
5284 pgac_tmp2
=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
5285 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
5286 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
5287 echo "${ECHO_T}$perl_embed_ldflags" >&6
5290 if test "$with_python" = yes; then
5291 # Extract the first word of "python", so it can be a program name with args.
5292 set dummy python
; ac_word
=$2
5293 echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295 if test "${ac_cv_path_PYTHON+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir
=.
5308 for ac_exec_ext
in '' $ac_executable_extensions; do
5309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 PYTHON
=$ac_cv_path_PYTHON
5322 if test -n "$PYTHON"; then
5323 echo "$as_me:$LINENO: result: $PYTHON" >&5
5324 echo "${ECHO_T}$PYTHON" >&6
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5330 if test x
"$PYTHON" = x
""; then
5331 { { echo "$as_me:$LINENO: error: Python not found" >&5
5332 echo "$as_me: error: Python not found" >&2;}
5333 { (exit 1); exit 1; }; }
5337 echo "$as_me:$LINENO: checking for Python distutils module" >&5
5338 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
5339 if "${PYTHON}" 2>&- -c 'import distutils'
5341 echo "$as_me:$LINENO: result: yes" >&5
5342 echo "${ECHO_T}yes" >&6
5344 echo "$as_me:$LINENO: result: no" >&5
5345 echo "${ECHO_T}no" >&6
5346 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5347 echo "$as_me: error: distutils module not found" >&2;}
5348 { (exit 1); exit 1; }; }
5350 echo "$as_me:$LINENO: checking Python configuration directory" >&5
5351 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
5352 python_version
=`${PYTHON} -c "import sys; print sys.version[:3]"`
5353 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')"`
5354 python_includespec
=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5356 # This should be enough of a message.
5357 echo "$as_me:$LINENO: result: $python_configdir" >&5
5358 echo "${ECHO_T}$python_configdir" >&6
5361 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5362 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5364 python_libdir
=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5365 python_ldlibrary
=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5366 python_so
=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5367 ldlibrary
=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
5369 if test x
"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
5371 # New way: use the official shared library
5372 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
5373 python_libspec
="-L${python_libdir} -l${ldlibrary}"
5375 # Old way: use libpython from python_configdir
5376 python_libdir
="${python_configdir}"
5377 python_libspec
="-L${python_libdir} -lpython${python_version}"
5380 python_additional_libs
=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5382 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5383 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5386 # threaded python is not supported on bsd's
5387 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5388 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5389 pythreads
=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5390 if test "$pythreads" = "1"; then
5391 echo "$as_me:$LINENO: result: yes" >&5
5392 echo "${ECHO_T}yes" >&6
5395 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
5396 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
5397 { (exit 1); exit 1; }; }
5401 echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5408 # Supply a numeric version string for use by 3rd party add-ons
5409 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5410 PG_VERSION_NUM
="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
5412 $AWK '{printf "%d
%02d
%02d
", $1, $2, (NF >= 3) ? $3 : 0}'`"
5414 cat >>confdefs.h
<<_ACEOF
5415 #define PG_VERSION_NUM $PG_VERSION_NUM
5422 ## Most libraries are included only if they demonstrably provide a function
5423 ## we need, but libm is an exception: always include it, because there are
5424 ## too many compilers that play cute optimization games that will break
5425 ## probes for standard functions such as pow().
5429 echo "$as_me:$LINENO: checking for main in -lm" >&5
5430 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5431 if test "${ac_cv_lib_m_main+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_check_lib_save_LIBS
=$LIBS
5436 cat >conftest.
$ac_ext <<_ACEOF
5439 cat confdefs.h
>>conftest.
$ac_ext
5440 cat >>conftest.
$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5452 rm -f conftest.
$ac_objext conftest
$ac_exeext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>conftest.er1
5456 grep -v '^ *+' conftest.er1
>conftest.err
5458 cat conftest.err
>&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try
='test -z "$ac_c_werror_flag"
5462 || test ! -s conftest.err'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try
='test -s conftest$ac_exeext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 ac_cv_lib_m_main
=yes
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.
$ac_ext >&5
5481 rm -f conftest.err conftest.
$ac_objext \
5482 conftest
$ac_exeext conftest.
$ac_ext
5483 LIBS
=$ac_check_lib_save_LIBS
5485 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5486 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5487 if test $ac_cv_lib_m_main = yes; then
5488 cat >>confdefs.h
<<_ACEOF
5496 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5497 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5498 if test "${ac_cv_search_setproctitle+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 ac_func_search_save_LIBS
=$LIBS
5502 ac_cv_search_setproctitle
=no
5503 cat >conftest.
$ac_ext <<_ACEOF
5506 cat confdefs.h
>>conftest.
$ac_ext
5507 cat >>conftest.
$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5510 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5516 char setproctitle ();
5525 rm -f conftest.
$ac_objext conftest
$ac_exeext
5526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5527 (eval $ac_link) 2>conftest.er1
5529 grep -v '^ *+' conftest.er1
>conftest.err
5531 cat conftest.err
>&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try
='test -z "$ac_c_werror_flag"
5535 || test ! -s conftest.err'
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; } &&
5541 { ac_try
='test -s conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_search_setproctitle
="none required"
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.
$ac_ext >&5
5553 rm -f conftest.err conftest.
$ac_objext \
5554 conftest
$ac_exeext conftest.
$ac_ext
5555 if test "$ac_cv_search_setproctitle" = no
; then
5556 for ac_lib
in util
; do
5557 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5558 cat >conftest.
$ac_ext <<_ACEOF
5561 cat confdefs.h
>>conftest.
$ac_ext
5562 cat >>conftest.
$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5565 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5571 char setproctitle ();
5580 rm -f conftest.
$ac_objext conftest
$ac_exeext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>conftest.er1
5584 grep -v '^ *+' conftest.er1
>conftest.err
5586 cat conftest.err
>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try
='test -z "$ac_c_werror_flag"
5590 || test ! -s conftest.err'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try
='test -s conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_search_setproctitle
="-l$ac_lib"
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.
$ac_ext >&5
5609 rm -f conftest.err conftest.
$ac_objext \
5610 conftest
$ac_exeext conftest.
$ac_ext
5613 LIBS
=$ac_func_search_save_LIBS
5615 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5616 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5617 if test "$ac_cv_search_setproctitle" != no
; then
5618 test "$ac_cv_search_setproctitle" = "none required" || LIBS
="$ac_cv_search_setproctitle $LIBS"
5622 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5623 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5624 if test "${ac_cv_search_dlopen+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 ac_func_search_save_LIBS
=$LIBS
5628 ac_cv_search_dlopen
=no
5629 cat >conftest.
$ac_ext <<_ACEOF
5632 cat confdefs.h
>>conftest.
$ac_ext
5633 cat >>conftest.
$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5636 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5651 rm -f conftest.
$ac_objext conftest
$ac_exeext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5653 (eval $ac_link) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1
>conftest.err
5657 cat conftest.err
>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try
='test -z "$ac_c_werror_flag"
5661 || test ! -s conftest.err'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try
='test -s conftest$ac_exeext'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 ac_cv_search_dlopen
="none required"
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5679 rm -f conftest.err conftest.
$ac_objext \
5680 conftest
$ac_exeext conftest.
$ac_ext
5681 if test "$ac_cv_search_dlopen" = no
; then
5682 for ac_lib
in dl
; do
5683 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5684 cat >conftest.
$ac_ext <<_ACEOF
5687 cat confdefs.h
>>conftest.
$ac_ext
5688 cat >>conftest.
$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5691 /* Override any gcc2 internal prototype to avoid an error. */
5695 /* We use char because int might match the return type of a gcc2
5696 builtin and then its argument prototype would still apply. */
5706 rm -f conftest.
$ac_objext conftest
$ac_exeext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>conftest.er1
5710 grep -v '^ *+' conftest.er1
>conftest.err
5712 cat conftest.err
>&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try
='test -z "$ac_c_werror_flag"
5716 || test ! -s conftest.err'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; } &&
5722 { ac_try
='test -s conftest$ac_exeext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_cv_search_dlopen
="-l$ac_lib"
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.
$ac_ext >&5
5735 rm -f conftest.err conftest.
$ac_objext \
5736 conftest
$ac_exeext conftest.
$ac_ext
5739 LIBS
=$ac_func_search_save_LIBS
5741 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5742 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5743 if test "$ac_cv_search_dlopen" != no
; then
5744 test "$ac_cv_search_dlopen" = "none required" || LIBS
="$ac_cv_search_dlopen $LIBS"
5748 echo "$as_me:$LINENO: checking for library containing socket" >&5
5749 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5750 if test "${ac_cv_search_socket+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 ac_func_search_save_LIBS
=$LIBS
5754 ac_cv_search_socket
=no
5755 cat >conftest.
$ac_ext <<_ACEOF
5758 cat confdefs.h
>>conftest.
$ac_ext
5759 cat >>conftest.
$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5762 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5777 rm -f conftest.
$ac_objext conftest
$ac_exeext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5779 (eval $ac_link) 2>conftest.er1
5781 grep -v '^ *+' conftest.er1
>conftest.err
5783 cat conftest.err
>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try
='test -z "$ac_c_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try
='test -s conftest$ac_exeext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 ac_cv_search_socket
="none required"
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5805 rm -f conftest.err conftest.
$ac_objext \
5806 conftest
$ac_exeext conftest.
$ac_ext
5807 if test "$ac_cv_search_socket" = no
; then
5808 for ac_lib
in socket wsock32
; do
5809 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5810 cat >conftest.
$ac_ext <<_ACEOF
5813 cat confdefs.h
>>conftest.
$ac_ext
5814 cat >>conftest.
$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any gcc2 internal prototype to avoid an error. */
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5832 rm -f conftest.
$ac_objext conftest
$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1
>conftest.err
5838 cat conftest.err
>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try
='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try
='test -s conftest$ac_exeext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_cv_search_socket
="-l$ac_lib"
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.
$ac_ext >&5
5861 rm -f conftest.err conftest.
$ac_objext \
5862 conftest
$ac_exeext conftest.
$ac_ext
5865 LIBS
=$ac_func_search_save_LIBS
5867 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5868 echo "${ECHO_T}$ac_cv_search_socket" >&6
5869 if test "$ac_cv_search_socket" != no
; then
5870 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
5874 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5875 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5876 if test "${ac_cv_search_shl_load+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_func_search_save_LIBS
=$LIBS
5880 ac_cv_search_shl_load
=no
5881 cat >conftest.
$ac_ext <<_ACEOF
5884 cat confdefs.h
>>conftest.
$ac_ext
5885 cat >>conftest.
$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5888 /* Override any gcc2 internal prototype to avoid an error. */
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5903 rm -f conftest.
$ac_objext conftest
$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1
>conftest.err
5909 cat conftest.err
>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try
='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try
='test -s conftest$ac_exeext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_cv_search_shl_load
="none required"
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.
$ac_ext >&5
5931 rm -f conftest.err conftest.
$ac_objext \
5932 conftest
$ac_exeext conftest.
$ac_ext
5933 if test "$ac_cv_search_shl_load" = no
; then
5934 for ac_lib
in dld
; do
5935 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5936 cat >conftest.
$ac_ext <<_ACEOF
5939 cat confdefs.h
>>conftest.
$ac_ext
5940 cat >>conftest.
$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5943 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */
5958 rm -f conftest.
$ac_objext conftest
$ac_exeext
5959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960 (eval $ac_link) 2>conftest.er1
5962 grep -v '^ *+' conftest.er1
>conftest.err
5964 cat conftest.err
>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try
='test -z "$ac_c_werror_flag"
5968 || test ! -s conftest.err'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; } &&
5974 { ac_try
='test -s conftest$ac_exeext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_search_shl_load
="-l$ac_lib"
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5987 rm -f conftest.err conftest.
$ac_objext \
5988 conftest
$ac_exeext conftest.
$ac_ext
5991 LIBS
=$ac_func_search_save_LIBS
5993 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5994 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5995 if test "$ac_cv_search_shl_load" != no
; then
5996 test "$ac_cv_search_shl_load" = "none required" || LIBS
="$ac_cv_search_shl_load $LIBS"
6000 # We only use libld in port/dynloader/aix.c
6003 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6004 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
6005 if test "${ac_cv_search_ldopen+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 ac_func_search_save_LIBS
=$LIBS
6009 ac_cv_search_ldopen
=no
6010 cat >conftest.
$ac_ext <<_ACEOF
6013 cat confdefs.h
>>conftest.
$ac_ext
6014 cat >>conftest.
$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6017 /* Override any gcc2 internal prototype to avoid an error. */
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6032 rm -f conftest.
$ac_objext conftest
$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>conftest.er1
6036 grep -v '^ *+' conftest.er1
>conftest.err
6038 cat conftest.err
>&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try
='test -z "$ac_c_werror_flag"
6042 || test ! -s conftest.err'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; } &&
6048 { ac_try
='test -s conftest$ac_exeext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_cv_search_ldopen
="none required"
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.
$ac_ext >&5
6060 rm -f conftest.err conftest.
$ac_objext \
6061 conftest
$ac_exeext conftest.
$ac_ext
6062 if test "$ac_cv_search_ldopen" = no
; then
6063 for ac_lib
in ld
; do
6064 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6065 cat >conftest.
$ac_ext <<_ACEOF
6068 cat confdefs.h
>>conftest.
$ac_ext
6069 cat >>conftest.
$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6072 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6087 rm -f conftest.
$ac_objext conftest
$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089 (eval $ac_link) 2>conftest.er1
6091 grep -v '^ *+' conftest.er1
>conftest.err
6093 cat conftest.err
>&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try
='test -z "$ac_c_werror_flag"
6097 || test ! -s conftest.err'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; } &&
6103 { ac_try
='test -s conftest$ac_exeext'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; }; then
6109 ac_cv_search_ldopen
="-l$ac_lib"
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.
$ac_ext >&5
6116 rm -f conftest.err conftest.
$ac_objext \
6117 conftest
$ac_exeext conftest.
$ac_ext
6120 LIBS
=$ac_func_search_save_LIBS
6122 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
6123 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
6124 if test "$ac_cv_search_ldopen" != no
; then
6125 test "$ac_cv_search_ldopen" = "none required" || LIBS
="$ac_cv_search_ldopen $LIBS"
6131 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
6132 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
6133 if test "${ac_cv_search_getopt_long+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_func_search_save_LIBS
=$LIBS
6137 ac_cv_search_getopt_long
=no
6138 cat >conftest.
$ac_ext <<_ACEOF
6141 cat confdefs.h
>>conftest.
$ac_ext
6142 cat >>conftest.
$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6145 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6151 char getopt_long ();
6160 rm -f conftest.
$ac_objext conftest
$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1
>conftest.err
6166 cat conftest.err
>&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try
='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try
='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_getopt_long
="none required"
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.
$ac_ext >&5
6188 rm -f conftest.err conftest.
$ac_objext \
6189 conftest
$ac_exeext conftest.
$ac_ext
6190 if test "$ac_cv_search_getopt_long" = no
; then
6191 for ac_lib
in getopt gnugetopt
; do
6192 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6193 cat >conftest.
$ac_ext <<_ACEOF
6196 cat confdefs.h
>>conftest.
$ac_ext
6197 cat >>conftest.
$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6200 /* Override any gcc2 internal prototype to avoid an error. */
6204 /* We use char because int might match the return type of a gcc2
6205 builtin and then its argument prototype would still apply. */
6206 char getopt_long ();
6215 rm -f conftest.
$ac_objext conftest
$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>conftest.er1
6219 grep -v '^ *+' conftest.er1
>conftest.err
6221 cat conftest.err
>&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } &&
6224 { ac_try
='test -z "$ac_c_werror_flag"
6225 || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try
='test -s conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 ac_cv_search_getopt_long
="-l$ac_lib"
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.
$ac_ext >&5
6244 rm -f conftest.err conftest.
$ac_objext \
6245 conftest
$ac_exeext conftest.
$ac_ext
6248 LIBS
=$ac_func_search_save_LIBS
6250 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6251 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6252 if test "$ac_cv_search_getopt_long" != no
; then
6253 test "$ac_cv_search_getopt_long" = "none required" || LIBS
="$ac_cv_search_getopt_long $LIBS"
6257 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6258 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6259 if test "${ac_cv_search_crypt+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 ac_func_search_save_LIBS
=$LIBS
6263 ac_cv_search_crypt
=no
6264 cat >conftest.
$ac_ext <<_ACEOF
6267 cat confdefs.h
>>conftest.
$ac_ext
6268 cat >>conftest.
$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6271 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6286 rm -f conftest.
$ac_objext conftest
$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288 (eval $ac_link) 2>conftest.er1
6290 grep -v '^ *+' conftest.er1
>conftest.err
6292 cat conftest.err
>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try
='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try
='test -s conftest$ac_exeext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_search_crypt
="none required"
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.
$ac_ext >&5
6314 rm -f conftest.err conftest.
$ac_objext \
6315 conftest
$ac_exeext conftest.
$ac_ext
6316 if test "$ac_cv_search_crypt" = no
; then
6317 for ac_lib
in crypt; do
6318 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6319 cat >conftest.
$ac_ext <<_ACEOF
6322 cat confdefs.h
>>conftest.
$ac_ext
6323 cat >>conftest.
$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6341 rm -f conftest.
$ac_objext conftest
$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1
>conftest.err
6347 cat conftest.err
>&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try
='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try
='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 ac_cv_search_crypt
="-l$ac_lib"
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.
$ac_ext >&5
6370 rm -f conftest.err conftest.
$ac_objext \
6371 conftest
$ac_exeext conftest.
$ac_ext
6374 LIBS
=$ac_func_search_save_LIBS
6376 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6377 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6378 if test "$ac_cv_search_crypt" != no
; then
6379 test "$ac_cv_search_crypt" = "none required" || LIBS
="$ac_cv_search_crypt $LIBS"
6384 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6385 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6386 if test "${ac_cv_search_fdatasync+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_func_search_save_LIBS
=$LIBS
6390 ac_cv_search_fdatasync
=no
6391 cat >conftest.
$ac_ext <<_ACEOF
6394 cat confdefs.h
>>conftest.
$ac_ext
6395 cat >>conftest.
$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6398 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6413 rm -f conftest.
$ac_objext conftest
$ac_exeext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415 (eval $ac_link) 2>conftest.er1
6417 grep -v '^ *+' conftest.er1
>conftest.err
6419 cat conftest.err
>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try
='test -z "$ac_c_werror_flag"
6423 || test ! -s conftest.err'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; } &&
6429 { ac_try
='test -s conftest$ac_exeext'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; }; then
6435 ac_cv_search_fdatasync
="none required"
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.
$ac_ext >&5
6441 rm -f conftest.err conftest.
$ac_objext \
6442 conftest
$ac_exeext conftest.
$ac_ext
6443 if test "$ac_cv_search_fdatasync" = no
; then
6444 for ac_lib
in rt posix4
; do
6445 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6446 cat >conftest.
$ac_ext <<_ACEOF
6449 cat confdefs.h
>>conftest.
$ac_ext
6450 cat >>conftest.
$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6453 /* Override any gcc2 internal prototype to avoid an error. */
6457 /* We use char because int might match the return type of a gcc2
6458 builtin and then its argument prototype would still apply. */
6468 rm -f conftest.
$ac_objext conftest
$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1
>conftest.err
6474 cat conftest.err
>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try
='test -z "$ac_c_werror_flag"
6478 || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try
='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_search_fdatasync
="-l$ac_lib"
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6497 rm -f conftest.err conftest.
$ac_objext \
6498 conftest
$ac_exeext conftest.
$ac_ext
6501 LIBS
=$ac_func_search_save_LIBS
6503 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6504 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6505 if test "$ac_cv_search_fdatasync" != no
; then
6506 test "$ac_cv_search_fdatasync" = "none required" || LIBS
="$ac_cv_search_fdatasync $LIBS"
6511 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6512 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6513 if test "${ac_cv_search_shmget+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 ac_func_search_save_LIBS
=$LIBS
6517 ac_cv_search_shmget
=no
6518 cat >conftest.
$ac_ext <<_ACEOF
6521 cat confdefs.h
>>conftest.
$ac_ext
6522 cat >>conftest.
$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6525 /* Override any gcc2 internal prototype to avoid an error. */
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6540 rm -f conftest.
$ac_objext conftest
$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542 (eval $ac_link) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1
>conftest.err
6546 cat conftest.err
>&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try
='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try
='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_cv_search_shmget
="none required"
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.
$ac_ext >&5
6568 rm -f conftest.err conftest.
$ac_objext \
6569 conftest
$ac_exeext conftest.
$ac_ext
6570 if test "$ac_cv_search_shmget" = no
; then
6571 for ac_lib
in cygipc
; do
6572 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6573 cat >conftest.
$ac_ext <<_ACEOF
6576 cat confdefs.h
>>conftest.
$ac_ext
6577 cat >>conftest.
$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6580 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6595 rm -f conftest.
$ac_objext conftest
$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>conftest.er1
6599 grep -v '^ *+' conftest.er1
>conftest.err
6601 cat conftest.err
>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try
='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try
='test -s conftest$ac_exeext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_search_shmget
="-l$ac_lib"
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.
$ac_ext >&5
6624 rm -f conftest.err conftest.
$ac_objext \
6625 conftest
$ac_exeext conftest.
$ac_ext
6628 LIBS
=$ac_func_search_save_LIBS
6630 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6631 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6632 if test "$ac_cv_search_shmget" != no
; then
6633 test "$ac_cv_search_shmget" = "none required" || LIBS
="$ac_cv_search_shmget $LIBS"
6638 if test "$with_readline" = yes; then
6641 if test "${pgac_cv_check_readline+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 pgac_cv_check_readline
=no
6645 pgac_save_LIBS
=$LIBS
6646 if test x
"$with_libedit_preferred" != x
"yes"
6647 then READLINE_ORDER
="-lreadline -ledit"
6648 else READLINE_ORDER
="-ledit -lreadline"
6650 for pgac_rllib
in $READLINE_ORDER ; do
6651 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6652 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6653 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6654 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6655 cat >conftest.
$ac_ext <<_ACEOF
6658 cat confdefs.h
>>conftest.
$ac_ext
6659 cat >>conftest.
$ac_ext <<_ACEOF
6660 /* end confdefs.h. */
6662 /* Override any gcc2 internal prototype to avoid an error. */
6666 /* We use char because int might match the return type of a gcc2
6667 builtin and then its argument prototype would still apply. */
6677 rm -f conftest.
$ac_objext conftest
$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1
>conftest.err
6683 cat conftest.err
>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try
='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try
='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6700 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6701 # recognize dependent libraries; assume curses is needed if we didn't
6702 # find any dependency.
6704 netbsd
* | openbsd
* | irix
*)
6705 if test x
"$pgac_lib" = x
"" ; then
6706 pgac_lib
=" -lcurses"
6710 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.
$ac_ext >&5
6718 rm -f conftest.err conftest.
$ac_objext \
6719 conftest
$ac_exeext conftest.
$ac_ext
6721 if test "$pgac_cv_check_readline" != no
; then
6722 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6723 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6726 echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6730 LIBS
=$pgac_save_LIBS
6734 if test "$pgac_cv_check_readline" != no
; then
6735 LIBS
="$pgac_cv_check_readline $LIBS"
6737 cat >>confdefs.h
<<\_ACEOF
6738 #define HAVE_LIBREADLINE 1
6744 if test x
"$pgac_cv_check_readline" = x
"no"; then
6745 { { echo "$as_me:$LINENO: error: readline library not found
6746 If you have readline already installed, see config.log for details on the
6747 failure. It is possible the compiler isn't looking in the proper directory.
6748 Use --without-readline to disable readline support." >&5
6749 echo "$as_me: error: readline library not found
6750 If you have readline already installed, see config.log for details on the
6751 failure. It is possible the compiler isn't looking in the proper directory.
6752 Use --without-readline to disable readline support." >&2;}
6753 { (exit 1); exit 1; }; }
6757 if test "$with_zlib" = yes; then
6759 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6760 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6761 if test "${ac_cv_lib_z_inflate+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 ac_check_lib_save_LIBS
=$LIBS
6766 cat >conftest.
$ac_ext <<_ACEOF
6769 cat confdefs.h
>>conftest.
$ac_ext
6770 cat >>conftest.
$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6773 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6788 rm -f conftest.
$ac_objext conftest
$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1
>conftest.err
6794 cat conftest.err
>&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try
='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try
='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_lib_z_inflate
=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.
$ac_ext >&5
6815 ac_cv_lib_z_inflate
=no
6817 rm -f conftest.err conftest.
$ac_objext \
6818 conftest
$ac_exeext conftest.
$ac_ext
6819 LIBS
=$ac_check_lib_save_LIBS
6821 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6822 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6823 if test $ac_cv_lib_z_inflate = yes; then
6824 cat >>confdefs.h
<<_ACEOF
6831 { { echo "$as_me:$LINENO: error: zlib library not found
6832 If you have zlib already installed, see config.log for details on the
6833 failure. It is possible the compiler isn't looking in the proper directory.
6834 Use --without-zlib to disable zlib support." >&5
6835 echo "$as_me: error: zlib library not found
6836 If you have zlib already installed, see config.log for details on the
6837 failure. It is possible the compiler isn't looking in the proper directory.
6838 Use --without-zlib to disable zlib support." >&2;}
6839 { (exit 1); exit 1; }; }
6844 if test "$enable_spinlocks" = yes; then
6846 cat >>confdefs.h
<<\_ACEOF
6847 #define HAVE_SPINLOCKS 1
6851 { echo "$as_me:$LINENO: WARNING:
6852 *** Not using spinlocks will cause poor performance." >&5
6853 echo "$as_me: WARNING:
6854 *** Not using spinlocks will cause poor performance." >&2;}
6857 if test "$with_gssapi" = yes ; then
6858 if test "$PORTNAME" != "win32"; then
6859 echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
6860 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6
6861 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 ac_func_search_save_LIBS
=$LIBS
6865 ac_cv_search_gss_init_sec_context
=no
6866 cat >conftest.
$ac_ext <<_ACEOF
6869 cat confdefs.h
>>conftest.
$ac_ext
6870 cat >>conftest.
$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6873 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6879 char gss_init_sec_context ();
6883 gss_init_sec_context ();
6888 rm -f conftest.
$ac_objext conftest
$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } &&
6897 { ac_try
='test -z "$ac_c_werror_flag"
6898 || test ! -s conftest.err'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; } &&
6904 { ac_try
='test -s conftest$ac_exeext'
6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_cv_search_gss_init_sec_context
="none required"
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.
$ac_ext >&5
6916 rm -f conftest.err conftest.
$ac_objext \
6917 conftest
$ac_exeext conftest.
$ac_ext
6918 if test "$ac_cv_search_gss_init_sec_context" = no
; then
6919 for ac_lib
in gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
6920 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6921 cat >conftest.
$ac_ext <<_ACEOF
6924 cat confdefs.h
>>conftest.
$ac_ext
6925 cat >>conftest.
$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6928 /* Override any gcc2 internal prototype to avoid an error. */
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6934 char gss_init_sec_context ();
6938 gss_init_sec_context ();
6943 rm -f conftest.
$ac_objext conftest
$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945 (eval $ac_link) 2>conftest.er1
6947 grep -v '^ *+' conftest.er1
>conftest.err
6949 cat conftest.err
>&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try
='test -z "$ac_c_werror_flag"
6953 || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try
='test -s conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_search_gss_init_sec_context
="-l$ac_lib"
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.
$ac_ext >&5
6972 rm -f conftest.err conftest.
$ac_objext \
6973 conftest
$ac_exeext conftest.
$ac_ext
6976 LIBS
=$ac_func_search_save_LIBS
6978 echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
6979 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6
6980 if test "$ac_cv_search_gss_init_sec_context" != no
; then
6981 test "$ac_cv_search_gss_init_sec_context" = "none required" || LIBS
="$ac_cv_search_gss_init_sec_context $LIBS"
6984 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
6985 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
6986 { (exit 1); exit 1; }; }
6990 LIBS
="$LIBS -lgssapi32"
6994 if test "$with_krb5" = yes ; then
6995 if test "$PORTNAME" != "win32"; then
6996 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6997 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6998 if test "${ac_cv_search_com_err+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 ac_func_search_save_LIBS
=$LIBS
7002 ac_cv_search_com_err
=no
7003 cat >conftest.
$ac_ext <<_ACEOF
7006 cat confdefs.h
>>conftest.
$ac_ext
7007 cat >>conftest.
$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7010 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7025 rm -f conftest.
$ac_objext conftest
$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>conftest.er1
7029 grep -v '^ *+' conftest.er1
>conftest.err
7031 cat conftest.err
>&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try
='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try
='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_cv_search_com_err
="none required"
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.
$ac_ext >&5
7053 rm -f conftest.err conftest.
$ac_objext \
7054 conftest
$ac_exeext conftest.
$ac_ext
7055 if test "$ac_cv_search_com_err" = no
; then
7056 for ac_lib
in krb5
'krb5 -lcrypto -ldes -lasn1 -lroken' com_err
; do
7057 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7058 cat >conftest.
$ac_ext <<_ACEOF
7061 cat confdefs.h
>>conftest.
$ac_ext
7062 cat >>conftest.
$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7065 /* Override any gcc2 internal prototype to avoid an error. */
7069 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7080 rm -f conftest.
$ac_objext conftest
$ac_exeext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>conftest.er1
7084 grep -v '^ *+' conftest.er1
>conftest.err
7086 cat conftest.err
>&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try
='test -z "$ac_c_werror_flag"
7090 || test ! -s conftest.err'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; } &&
7096 { ac_try
='test -s conftest$ac_exeext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_search_com_err
="-l$ac_lib"
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.
$ac_ext >&5
7109 rm -f conftest.err conftest.
$ac_objext \
7110 conftest
$ac_exeext conftest.
$ac_ext
7113 LIBS
=$ac_func_search_save_LIBS
7115 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7116 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7117 if test "$ac_cv_search_com_err" != no
; then
7118 test "$ac_cv_search_com_err" = "none required" || LIBS
="$ac_cv_search_com_err $LIBS"
7121 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7122 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7123 { (exit 1); exit 1; }; }
7126 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7127 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7128 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_func_search_save_LIBS
=$LIBS
7132 ac_cv_search_krb5_sendauth
=no
7133 cat >conftest.
$ac_ext <<_ACEOF
7136 cat confdefs.h
>>conftest.
$ac_ext
7137 cat >>conftest.
$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7140 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */
7146 char krb5_sendauth ();
7155 rm -f conftest.
$ac_objext conftest
$ac_exeext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7157 (eval $ac_link) 2>conftest.er1
7159 grep -v '^ *+' conftest.er1
>conftest.err
7161 cat conftest.err
>&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try
='test -z "$ac_c_werror_flag"
7165 || test ! -s conftest.err'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; } &&
7171 { ac_try
='test -s conftest$ac_exeext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_cv_search_krb5_sendauth
="none required"
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.
$ac_ext >&5
7183 rm -f conftest.err conftest.
$ac_objext \
7184 conftest
$ac_exeext conftest.
$ac_ext
7185 if test "$ac_cv_search_krb5_sendauth" = no
; then
7186 for ac_lib
in krb5
'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7187 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7188 cat >conftest.
$ac_ext <<_ACEOF
7191 cat confdefs.h
>>conftest.
$ac_ext
7192 cat >>conftest.
$ac_ext <<_ACEOF
7193 /* end confdefs.h. */
7195 /* Override any gcc2 internal prototype to avoid an error. */
7199 /* We use char because int might match the return type of a gcc2
7200 builtin and then its argument prototype would still apply. */
7201 char krb5_sendauth ();
7210 rm -f conftest.
$ac_objext conftest
$ac_exeext
7211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>conftest.er1
7214 grep -v '^ *+' conftest.er1
>conftest.err
7216 cat conftest.err
>&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
7219 { ac_try
='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try
='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_cv_search_krb5_sendauth
="-l$ac_lib"
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.
$ac_ext >&5
7239 rm -f conftest.err conftest.
$ac_objext \
7240 conftest
$ac_exeext conftest.
$ac_ext
7243 LIBS
=$ac_func_search_save_LIBS
7245 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7246 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7247 if test "$ac_cv_search_krb5_sendauth" != no
; then
7248 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS
="$ac_cv_search_krb5_sendauth $LIBS"
7251 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7252 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7253 { (exit 1); exit 1; }; }
7257 echo "$as_me:$LINENO: checking for library containing com_err" >&5
7258 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
7259 if test "${ac_cv_search_com_err+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_func_search_save_LIBS
=$LIBS
7263 ac_cv_search_com_err
=no
7264 cat >conftest.
$ac_ext <<_ACEOF
7267 cat confdefs.h
>>conftest.
$ac_ext
7268 cat >>conftest.
$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any gcc2 internal prototype to avoid an error. */
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7286 rm -f conftest.
$ac_objext conftest
$ac_exeext
7287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7288 (eval $ac_link) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1
>conftest.err
7292 cat conftest.err
>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } &&
7295 { ac_try
='test -z "$ac_c_werror_flag"
7296 || test ! -s conftest.err'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try
='test -s conftest$ac_exeext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_cv_search_com_err
="none required"
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.
$ac_ext >&5
7314 rm -f conftest.err conftest.
$ac_objext \
7315 conftest
$ac_exeext conftest.
$ac_ext
7316 if test "$ac_cv_search_com_err" = no
; then
7317 for ac_lib
in 'comerr32 -lkrb5_32'; do
7318 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7319 cat >conftest.
$ac_ext <<_ACEOF
7322 cat confdefs.h
>>conftest.
$ac_ext
7323 cat >>conftest.
$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 /* Override any gcc2 internal prototype to avoid an error. */
7330 /* We use char because int might match the return type of a gcc2
7331 builtin and then its argument prototype would still apply. */
7341 rm -f conftest.
$ac_objext conftest
$ac_exeext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7343 (eval $ac_link) 2>conftest.er1
7345 grep -v '^ *+' conftest.er1
>conftest.err
7347 cat conftest.err
>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try
='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try
='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_search_com_err
="-l$ac_lib"
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.
$ac_ext >&5
7370 rm -f conftest.err conftest.
$ac_objext \
7371 conftest
$ac_exeext conftest.
$ac_ext
7374 LIBS
=$ac_func_search_save_LIBS
7376 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7377 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7378 if test "$ac_cv_search_com_err" != no
; then
7379 test "$ac_cv_search_com_err" = "none required" || LIBS
="$ac_cv_search_com_err $LIBS"
7382 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7383 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7384 { (exit 1); exit 1; }; }
7390 if test "$with_openssl" = yes ; then
7391 if test "$PORTNAME" != "win32"; then
7393 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7394 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7395 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_check_lib_save_LIBS
=$LIBS
7399 LIBS
="-lcrypto $LIBS"
7400 cat >conftest.
$ac_ext <<_ACEOF
7403 cat confdefs.h
>>conftest.
$ac_ext
7404 cat >>conftest.
$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7407 /* Override any gcc2 internal prototype to avoid an error. */
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7413 char CRYPTO_new_ex_data ();
7417 CRYPTO_new_ex_data ();
7422 rm -f conftest.
$ac_objext conftest
$ac_exeext
7423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7424 (eval $ac_link) 2>conftest.er1
7426 grep -v '^ *+' conftest.er1
>conftest.err
7428 cat conftest.err
>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try
='test -z "$ac_c_werror_flag"
7432 || test ! -s conftest.err'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try
='test -s conftest$ac_exeext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
7444 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.
$ac_ext >&5
7449 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
7451 rm -f conftest.err conftest.
$ac_objext \
7452 conftest
$ac_exeext conftest.
$ac_ext
7453 LIBS
=$ac_check_lib_save_LIBS
7455 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7456 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7457 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7458 cat >>confdefs.h
<<_ACEOF
7459 #define HAVE_LIBCRYPTO 1
7462 LIBS
="-lcrypto $LIBS"
7465 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7466 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7467 { (exit 1); exit 1; }; }
7471 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7472 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7473 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 ac_check_lib_save_LIBS
=$LIBS
7478 cat >conftest.
$ac_ext <<_ACEOF
7481 cat confdefs.h
>>conftest.
$ac_ext
7482 cat >>conftest.
$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any gcc2 internal prototype to avoid an error. */
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char SSL_library_init ();
7495 SSL_library_init ();
7500 rm -f conftest.
$ac_objext conftest
$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>conftest.er1
7504 grep -v '^ *+' conftest.er1
>conftest.err
7506 cat conftest.err
>&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try
='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try
='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_cv_lib_ssl_SSL_library_init
=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.
$ac_ext >&5
7527 ac_cv_lib_ssl_SSL_library_init
=no
7529 rm -f conftest.err conftest.
$ac_objext \
7530 conftest
$ac_exeext conftest.
$ac_ext
7531 LIBS
=$ac_check_lib_save_LIBS
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7534 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7535 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7536 cat >>confdefs.h
<<_ACEOF
7537 #define HAVE_LIBSSL 1
7543 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7544 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7545 { (exit 1); exit 1; }; }
7550 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7551 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7552 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 ac_check_lib_save_LIBS
=$LIBS
7556 LIBS
="-leay32 $LIBS"
7557 cat >conftest.
$ac_ext <<_ACEOF
7560 cat confdefs.h
>>conftest.
$ac_ext
7561 cat >>conftest.
$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7564 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7570 char CRYPTO_new_ex_data ();
7574 CRYPTO_new_ex_data ();
7579 rm -f conftest.
$ac_objext conftest
$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>conftest.er1
7583 grep -v '^ *+' conftest.er1
>conftest.err
7585 cat conftest.err
>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try
='test -z "$ac_c_werror_flag"
7589 || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try
='test -s conftest$ac_exeext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_cv_lib_eay32_CRYPTO_new_ex_data
=yes
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.
$ac_ext >&5
7606 ac_cv_lib_eay32_CRYPTO_new_ex_data
=no
7608 rm -f conftest.err conftest.
$ac_objext \
7609 conftest
$ac_exeext conftest.
$ac_ext
7610 LIBS
=$ac_check_lib_save_LIBS
7612 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7613 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7614 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7615 cat >>confdefs.h
<<_ACEOF
7616 #define HAVE_LIBEAY32 1
7619 LIBS
="-leay32 $LIBS"
7622 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7623 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7624 { (exit 1); exit 1; }; }
7628 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7629 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7630 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 ac_check_lib_save_LIBS
=$LIBS
7634 LIBS
="-lssleay32 $LIBS"
7635 cat >conftest.
$ac_ext <<_ACEOF
7638 cat confdefs.h
>>conftest.
$ac_ext
7639 cat >>conftest.
$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7642 /* Override any gcc2 internal prototype to avoid an error. */
7646 /* We use char because int might match the return type of a gcc2
7647 builtin and then its argument prototype would still apply. */
7648 char SSL_library_init ();
7652 SSL_library_init ();
7657 rm -f conftest.
$ac_objext conftest
$ac_exeext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>conftest.er1
7661 grep -v '^ *+' conftest.er1
>conftest.err
7663 cat conftest.err
>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try
='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try
='test -s conftest$ac_exeext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_lib_ssleay32_SSL_library_init
=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.
$ac_ext >&5
7684 ac_cv_lib_ssleay32_SSL_library_init
=no
7686 rm -f conftest.err conftest.
$ac_objext \
7687 conftest
$ac_exeext conftest.
$ac_ext
7688 LIBS
=$ac_check_lib_save_LIBS
7690 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7691 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7692 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7693 cat >>confdefs.h
<<_ACEOF
7694 #define HAVE_LIBSSLEAY32 1
7697 LIBS
="-lssleay32 $LIBS"
7700 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7701 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7702 { (exit 1); exit 1; }; }
7708 if test "$with_pam" = yes ; then
7710 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7711 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7712 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 ac_check_lib_save_LIBS
=$LIBS
7717 cat >conftest.
$ac_ext <<_ACEOF
7720 cat confdefs.h
>>conftest.
$ac_ext
7721 cat >>conftest.
$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7724 /* Override any gcc2 internal prototype to avoid an error. */
7728 /* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7739 rm -f conftest.
$ac_objext conftest
$ac_exeext
7740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7741 (eval $ac_link) 2>conftest.er1
7743 grep -v '^ *+' conftest.er1
>conftest.err
7745 cat conftest.err
>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } &&
7748 { ac_try
='test -z "$ac_c_werror_flag"
7749 || test ! -s conftest.err'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; } &&
7755 { ac_try
='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_lib_pam_pam_start
=yes
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.
$ac_ext >&5
7766 ac_cv_lib_pam_pam_start
=no
7768 rm -f conftest.err conftest.
$ac_objext \
7769 conftest
$ac_exeext conftest.
$ac_ext
7770 LIBS
=$ac_check_lib_save_LIBS
7772 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7773 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7774 if test $ac_cv_lib_pam_pam_start = yes; then
7775 cat >>confdefs.h
<<_ACEOF
7776 #define HAVE_LIBPAM 1
7782 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7783 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7784 { (exit 1); exit 1; }; }
7789 if test "$with_libxml" = yes ; then
7791 echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7792 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6
7793 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_check_lib_save_LIBS
=$LIBS
7798 cat >conftest.
$ac_ext <<_ACEOF
7801 cat confdefs.h
>>conftest.
$ac_ext
7802 cat >>conftest.
$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7811 char xmlSaveToBuffer ();
7820 rm -f conftest.
$ac_objext conftest
$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>conftest.er1
7824 grep -v '^ *+' conftest.er1
>conftest.err
7826 cat conftest.err
>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try
='test -z "$ac_c_werror_flag"
7830 || test ! -s conftest.err'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; } &&
7836 { ac_try
='test -s conftest$ac_exeext'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; }; then
7842 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.
$ac_ext >&5
7847 ac_cv_lib_xml2_xmlSaveToBuffer
=no
7849 rm -f conftest.err conftest.
$ac_objext \
7850 conftest
$ac_exeext conftest.
$ac_ext
7851 LIBS
=$ac_check_lib_save_LIBS
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7854 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6
7855 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7856 cat >>confdefs.h
<<_ACEOF
7857 #define HAVE_LIBXML2 1
7863 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7864 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7865 { (exit 1); exit 1; }; }
7870 if test "$with_libxslt" = yes ; then
7872 echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
7873 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6
7874 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 ac_check_lib_save_LIBS
=$LIBS
7879 cat >conftest.
$ac_ext <<_ACEOF
7882 cat confdefs.h
>>conftest.
$ac_ext
7883 cat >>conftest.
$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7886 /* Override any gcc2 internal prototype to avoid an error. */
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892 char xsltLibxmlVersion ();
7896 xsltLibxmlVersion ();
7901 rm -f conftest.
$ac_objext conftest
$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7905 grep -v '^ *+' conftest.er1
>conftest.err
7907 cat conftest.err
>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
7910 { ac_try
='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try
='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_lib_xslt_xsltLibxmlVersion
=yes
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.
$ac_ext >&5
7928 ac_cv_lib_xslt_xsltLibxmlVersion
=no
7930 rm -f conftest.err conftest.
$ac_objext \
7931 conftest
$ac_exeext conftest.
$ac_ext
7932 LIBS
=$ac_check_lib_save_LIBS
7934 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
7935 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6
7936 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
7937 cat >>confdefs.h
<<_ACEOF
7938 #define HAVE_LIBXSLT 1
7944 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
7945 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
7946 { (exit 1); exit 1; }; }
7956 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7958 if test "${ac_cv_header_stdc+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 cat >conftest.
$ac_ext <<_ACEOF
7964 cat confdefs.h
>>conftest.
$ac_ext
7965 cat >>conftest.
$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7980 rm -f conftest.
$ac_objext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982 (eval $ac_compile) 2>conftest.er1
7984 grep -v '^ *+' conftest.er1
>conftest.err
7986 cat conftest.err
>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try
='test -z "$ac_c_werror_flag"
7990 || test ! -s conftest.err'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; } &&
7996 { ac_try
='test -s conftest.$ac_objext'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8002 ac_cv_header_stdc
=yes
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.
$ac_ext >&5
8007 ac_cv_header_stdc
=no
8009 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8011 if test $ac_cv_header_stdc = yes; then
8012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8013 cat >conftest.
$ac_ext <<_ACEOF
8016 cat confdefs.h
>>conftest.
$ac_ext
8017 cat >>conftest.
$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8023 $EGREP "memchr" >/dev
/null
2>&1; then
8026 ac_cv_header_stdc
=no
8032 if test $ac_cv_header_stdc = yes; then
8033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8034 cat >conftest.
$ac_ext <<_ACEOF
8037 cat confdefs.h
>>conftest.
$ac_ext
8038 cat >>conftest.
$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "free" >/dev
/null
2>&1; then
8047 ac_cv_header_stdc
=no
8053 if test $ac_cv_header_stdc = yes; then
8054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8055 if test "$cross_compiling" = yes; then
8058 cat >conftest.
$ac_ext <<_ACEOF
8061 cat confdefs.h
>>conftest.
$ac_ext
8062 cat >>conftest.
$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8065 #if ((' ' & 0x0FF) == 0x020)
8066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8069 # define ISLOWER(c) \
8070 (('a' <= (c) && (c) <= 'i') \
8071 || ('j' <= (c) && (c) <= 'r') \
8072 || ('s' <= (c) && (c) <= 'z'))
8073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8081 for (i = 0; i < 256; i++)
8082 if (XOR (islower (i), ISLOWER (i))
8083 || toupper (i) != TOUPPER (i))
8088 rm -f conftest
$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8101 echo "$as_me: program exited with status $ac_status" >&5
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.
$ac_ext >&5
8106 ac_cv_header_stdc
=no
8108 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8112 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8113 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8114 if test $ac_cv_header_stdc = yes; then
8116 cat >>confdefs.h
<<\_ACEOF
8117 #define STDC_HEADERS 1
8122 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8132 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8133 inttypes.h stdint.h unistd.h
8135 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8136 echo "$as_me:$LINENO: checking for $ac_header" >&5
8137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 cat >conftest.
$ac_ext <<_ACEOF
8144 cat confdefs.h
>>conftest.
$ac_ext
8145 cat >>conftest.
$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8149 #include <$ac_header>
8151 rm -f conftest.
$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>conftest.er1
8155 grep -v '^ *+' conftest.er1
>conftest.err
8157 cat conftest.err
>&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try
='test -z "$ac_c_werror_flag"
8161 || test ! -s conftest.err'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; } &&
8167 { ac_try
='test -s conftest.$ac_objext'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 eval "$as_ac_Header=yes"
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.
$ac_ext >&5
8178 eval "$as_ac_Header=no"
8180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8185 cat >>confdefs.h
<<_ACEOF
8186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8220 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
8222 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8224 echo "$as_me:$LINENO: checking for $ac_header" >&5
8225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8232 # Is the header compilable?
8233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8235 cat >conftest.
$ac_ext <<_ACEOF
8238 cat confdefs.h
>>conftest.
$ac_ext
8239 cat >>conftest.
$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8242 #include <$ac_header>
8244 rm -f conftest.
$ac_objext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8246 (eval $ac_compile) 2>conftest.er1
8248 grep -v '^ *+' conftest.er1
>conftest.err
8250 cat conftest.err
>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try
='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try
='test -s conftest.$ac_objext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 ac_header_compiler
=yes
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.
$ac_ext >&5
8271 ac_header_compiler
=no
8273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8275 echo "${ECHO_T}$ac_header_compiler" >&6
8277 # Is the header present?
8278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8280 cat >conftest.
$ac_ext <<_ACEOF
8283 cat confdefs.h
>>conftest.
$ac_ext
8284 cat >>conftest.
$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 #include <$ac_header>
8288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8289 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8291 grep -v '^ *+' conftest.er1
>conftest.err
8293 cat conftest.err
>&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } >/dev
/null
; then
8296 if test -s conftest.err
; then
8297 ac_cpp_err
=$ac_c_preproc_warn_flag
8298 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8305 if test -z "$ac_cpp_err"; then
8306 ac_header_preproc
=yes
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.
$ac_ext >&5
8311 ac_header_preproc
=no
8313 rm -f conftest.err conftest.
$ac_ext
8314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8315 echo "${ECHO_T}$ac_header_preproc" >&6
8317 # So? What about this header?
8318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8324 ac_header_preproc
=yes
8327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8341 ## ---------------------------------------- ##
8342 ## Report this to pgsql-bugs@postgresql.org ##
8343 ## ---------------------------------------- ##
8346 sed "s/^/$as_me: WARNING: /" >&2
8349 echo "$as_me:$LINENO: checking for $ac_header" >&5
8350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 eval "$as_ac_Header=\$ac_header_preproc"
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361 cat >>confdefs.h
<<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8370 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8371 # netinet/in.h is included first.
8373 for ac_header
in netinet
/in.h
8375 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8377 echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8385 # Is the header compilable?
8386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8388 cat >conftest.
$ac_ext <<_ACEOF
8391 cat confdefs.h
>>conftest.
$ac_ext
8392 cat >>conftest.
$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 $ac_includes_default
8395 #include <$ac_header>
8397 rm -f conftest.
$ac_objext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399 (eval $ac_compile) 2>conftest.er1
8401 grep -v '^ *+' conftest.er1
>conftest.err
8403 cat conftest.err
>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try
='test -z "$ac_c_werror_flag"
8407 || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try
='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_header_compiler
=yes
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.
$ac_ext >&5
8424 ac_header_compiler
=no
8426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8428 echo "${ECHO_T}$ac_header_compiler" >&6
8430 # Is the header present?
8431 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8433 cat >conftest.
$ac_ext <<_ACEOF
8436 cat confdefs.h
>>conftest.
$ac_ext
8437 cat >>conftest.
$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 #include <$ac_header>
8441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8442 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8444 grep -v '^ *+' conftest.er1
>conftest.err
8446 cat conftest.err
>&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } >/dev
/null
; then
8449 if test -s conftest.err
; then
8450 ac_cpp_err
=$ac_c_preproc_warn_flag
8451 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8458 if test -z "$ac_cpp_err"; then
8459 ac_header_preproc
=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.
$ac_ext >&5
8464 ac_header_preproc
=no
8466 rm -f conftest.err conftest.
$ac_ext
8467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8468 echo "${ECHO_T}$ac_header_preproc" >&6
8470 # So? What about this header?
8471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8474 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8476 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8477 ac_header_preproc
=yes
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8481 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8483 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8485 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8487 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8491 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8494 ## ---------------------------------------- ##
8495 ## Report this to pgsql-bugs@postgresql.org ##
8496 ## ---------------------------------------- ##
8499 sed "s/^/$as_me: WARNING: /" >&2
8502 echo "$as_me:$LINENO: checking for $ac_header" >&5
8503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 eval "$as_ac_Header=\$ac_header_preproc"
8509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8514 cat >>confdefs.h
<<_ACEOF
8515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8523 for ac_header
in netinet
/tcp.h
8525 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8526 echo "$as_me:$LINENO: checking for $ac_header" >&5
8527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 cat >conftest.
$ac_ext <<_ACEOF
8534 cat confdefs.h
>>conftest.
$ac_ext
8535 cat >>conftest.
$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 #ifdef HAVE_NETINET_IN_H
8539 #include <netinet/in.h>
8543 #include <$ac_header>
8545 rm -f conftest.
$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8549 grep -v '^ *+' conftest.er1
>conftest.err
8551 cat conftest.err
>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try
='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try
='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 eval "$as_ac_Header=yes"
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.
$ac_ext >&5
8572 eval "$as_ac_Header=no"
8574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8579 cat >>confdefs.h
<<_ACEOF
8580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8588 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
8590 for ac_header
in readline
/readline.h
8592 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo "$as_me:$LINENO: checking for $ac_header" >&5
8595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602 # Is the header compilable?
8603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8605 cat >conftest.
$ac_ext <<_ACEOF
8608 cat confdefs.h
>>conftest.
$ac_ext
8609 cat >>conftest.
$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8611 $ac_includes_default
8612 #include <$ac_header>
8614 rm -f conftest.
$ac_objext
8615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 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 { ac_try
='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try
='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 ac_header_compiler
=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.
$ac_ext >&5
8641 ac_header_compiler
=no
8643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6
8647 # Is the header present?
8648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8650 cat >conftest.
$ac_ext <<_ACEOF
8653 cat confdefs.h
>>conftest.
$ac_ext
8654 cat >>conftest.
$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <$ac_header>
8658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8661 grep -v '^ *+' conftest.er1
>conftest.err
8663 cat conftest.err
>&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } >/dev
/null
; then
8666 if test -s conftest.err
; then
8667 ac_cpp_err
=$ac_c_preproc_warn_flag
8668 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8675 if test -z "$ac_cpp_err"; then
8676 ac_header_preproc
=yes
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.
$ac_ext >&5
8681 ac_header_preproc
=no
8683 rm -f conftest.err conftest.
$ac_ext
8684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8685 echo "${ECHO_T}$ac_header_preproc" >&6
8687 # So? What about this header?
8688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8694 ac_header_preproc
=yes
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8711 ## ---------------------------------------- ##
8712 ## Report this to pgsql-bugs@postgresql.org ##
8713 ## ---------------------------------------- ##
8716 sed "s/^/$as_me: WARNING: /" >&2
8719 echo "$as_me:$LINENO: checking for $ac_header" >&5
8720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 eval "$as_ac_Header=\$ac_header_preproc"
8726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8731 cat >>confdefs.h
<<_ACEOF
8732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8737 for ac_header
in readline.h
8739 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8741 echo "$as_me:$LINENO: checking for $ac_header" >&5
8742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8749 # Is the header compilable?
8750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8752 cat >conftest.
$ac_ext <<_ACEOF
8755 cat confdefs.h
>>conftest.
$ac_ext
8756 cat >>conftest.
$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8759 #include <$ac_header>
8761 rm -f conftest.
$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763 (eval $ac_compile) 2>conftest.er1
8765 grep -v '^ *+' conftest.er1
>conftest.err
8767 cat conftest.err
>&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try
='test -z "$ac_c_werror_flag"
8771 || test ! -s conftest.err'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try
='test -s conftest.$ac_objext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8783 ac_header_compiler
=yes
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.
$ac_ext >&5
8788 ac_header_compiler
=no
8790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8792 echo "${ECHO_T}$ac_header_compiler" >&6
8794 # Is the header present?
8795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8797 cat >conftest.
$ac_ext <<_ACEOF
8800 cat confdefs.h
>>conftest.
$ac_ext
8801 cat >>conftest.
$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 #include <$ac_header>
8805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8806 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8808 grep -v '^ *+' conftest.er1
>conftest.err
8810 cat conftest.err
>&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } >/dev
/null
; then
8813 if test -s conftest.err
; then
8814 ac_cpp_err
=$ac_c_preproc_warn_flag
8815 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8822 if test -z "$ac_cpp_err"; then
8823 ac_header_preproc
=yes
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.
$ac_ext >&5
8828 ac_header_preproc
=no
8830 rm -f conftest.err conftest.
$ac_ext
8831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8832 echo "${ECHO_T}$ac_header_preproc" >&6
8834 # So? What about this header?
8835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8841 ac_header_preproc
=yes
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8858 ## ---------------------------------------- ##
8859 ## Report this to pgsql-bugs@postgresql.org ##
8860 ## ---------------------------------------- ##
8863 sed "s/^/$as_me: WARNING: /" >&2
8866 echo "$as_me:$LINENO: checking for $ac_header" >&5
8867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 eval "$as_ac_Header=\$ac_header_preproc"
8873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8878 cat >>confdefs.h
<<_ACEOF
8879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8883 { { echo "$as_me:$LINENO: error: readline header not found
8884 If you have readline already installed, see config.log for details on the
8885 failure. It is possible the compiler isn't looking in the proper directory.
8886 Use --without-readline to disable readline support." >&5
8887 echo "$as_me: error: readline header not found
8888 If you have readline already installed, see config.log for details on the
8889 failure. It is possible the compiler isn't looking in the proper directory.
8890 Use --without-readline to disable readline support." >&2;}
8891 { (exit 1); exit 1; }; }
8901 for ac_header
in readline
/history.h
8903 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905 echo "$as_me:$LINENO: checking for $ac_header" >&5
8906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8913 # Is the header compilable?
8914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8916 cat >conftest.
$ac_ext <<_ACEOF
8919 cat confdefs.h
>>conftest.
$ac_ext
8920 cat >>conftest.
$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8923 #include <$ac_header>
8925 rm -f conftest.
$ac_objext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8927 (eval $ac_compile) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1
>conftest.err
8931 cat conftest.err
>&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try
='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try
='test -s conftest.$ac_objext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_header_compiler
=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.
$ac_ext >&5
8952 ac_header_compiler
=no
8954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8956 echo "${ECHO_T}$ac_header_compiler" >&6
8958 # Is the header present?
8959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8961 cat >conftest.
$ac_ext <<_ACEOF
8964 cat confdefs.h
>>conftest.
$ac_ext
8965 cat >>conftest.
$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 #include <$ac_header>
8969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8970 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8972 grep -v '^ *+' conftest.er1
>conftest.err
8974 cat conftest.err
>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } >/dev
/null
; then
8977 if test -s conftest.err
; then
8978 ac_cpp_err
=$ac_c_preproc_warn_flag
8979 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8986 if test -z "$ac_cpp_err"; then
8987 ac_header_preproc
=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.
$ac_ext >&5
8992 ac_header_preproc
=no
8994 rm -f conftest.err conftest.
$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8996 echo "${ECHO_T}$ac_header_preproc" >&6
8998 # So? What about this header?
8999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9005 ac_header_preproc
=yes
9008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9022 ## ---------------------------------------- ##
9023 ## Report this to pgsql-bugs@postgresql.org ##
9024 ## ---------------------------------------- ##
9027 sed "s/^/$as_me: WARNING: /" >&2
9030 echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 eval "$as_ac_Header=\$ac_header_preproc"
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042 cat >>confdefs.h
<<_ACEOF
9043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9048 for ac_header
in history.h
9050 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060 # Is the header compilable?
9061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9063 cat >conftest.
$ac_ext <<_ACEOF
9066 cat confdefs.h
>>conftest.
$ac_ext
9067 cat >>conftest.
$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069 $ac_includes_default
9070 #include <$ac_header>
9072 rm -f conftest.
$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074 (eval $ac_compile) 2>conftest.er1
9076 grep -v '^ *+' conftest.er1
>conftest.err
9078 cat conftest.err
>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try
='test -z "$ac_c_werror_flag"
9082 || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try
='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_header_compiler
=yes
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.
$ac_ext >&5
9099 ac_header_compiler
=no
9101 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103 echo "${ECHO_T}$ac_header_compiler" >&6
9105 # Is the header present?
9106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9108 cat >conftest.
$ac_ext <<_ACEOF
9111 cat confdefs.h
>>conftest.
$ac_ext
9112 cat >>conftest.
$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 #include <$ac_header>
9116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9117 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9119 grep -v '^ *+' conftest.er1
>conftest.err
9121 cat conftest.err
>&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } >/dev
/null
; then
9124 if test -s conftest.err
; then
9125 ac_cpp_err
=$ac_c_preproc_warn_flag
9126 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9133 if test -z "$ac_cpp_err"; then
9134 ac_header_preproc
=yes
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.
$ac_ext >&5
9139 ac_header_preproc
=no
9141 rm -f conftest.err conftest.
$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143 echo "${ECHO_T}$ac_header_preproc" >&6
9145 # So? What about this header?
9146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9152 ac_header_preproc
=yes
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9169 ## ---------------------------------------- ##
9170 ## Report this to pgsql-bugs@postgresql.org ##
9171 ## ---------------------------------------- ##
9174 sed "s/^/$as_me: WARNING: /" >&2
9177 echo "$as_me:$LINENO: checking for $ac_header" >&5
9178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 eval "$as_ac_Header=\$ac_header_preproc"
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9189 cat >>confdefs.h
<<_ACEOF
9190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9194 { { echo "$as_me:$LINENO: error: history header not found
9195 If you have readline already installed, see config.log for details on the
9196 failure. It is possible the compiler isn't looking in the proper directory.
9197 Use --without-readline to disable readline support." >&5
9198 echo "$as_me: error: history header not found
9199 If you have readline already installed, see config.log for details on the
9200 failure. It is possible the compiler isn't looking in the proper directory.
9201 Use --without-readline to disable readline support." >&2;}
9202 { (exit 1); exit 1; }; }
9213 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
9214 # Some installations of libedit usurp /usr/include/readline/, which seems
9215 # bad practice, since in combined installations readline will have its headers
9216 # there. We might have to resort to AC_EGREP checks to make sure we found
9217 # the proper header...
9219 for ac_header
in editline
/readline.h
9221 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9223 echo "$as_me:$LINENO: checking for $ac_header" >&5
9224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9231 # Is the header compilable?
9232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9234 cat >conftest.
$ac_ext <<_ACEOF
9237 cat confdefs.h
>>conftest.
$ac_ext
9238 cat >>conftest.
$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 $ac_includes_default
9241 #include <$ac_header>
9243 rm -f conftest.
$ac_objext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9245 (eval $ac_compile) 2>conftest.er1
9247 grep -v '^ *+' conftest.er1
>conftest.err
9249 cat conftest.err
>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try
='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try
='test -s conftest.$ac_objext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_header_compiler
=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.
$ac_ext >&5
9270 ac_header_compiler
=no
9272 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9274 echo "${ECHO_T}$ac_header_compiler" >&6
9276 # Is the header present?
9277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9279 cat >conftest.
$ac_ext <<_ACEOF
9282 cat confdefs.h
>>conftest.
$ac_ext
9283 cat >>conftest.
$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 #include <$ac_header>
9287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9288 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9290 grep -v '^ *+' conftest.er1
>conftest.err
9292 cat conftest.err
>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev
/null
; then
9295 if test -s conftest.err
; then
9296 ac_cpp_err
=$ac_c_preproc_warn_flag
9297 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9304 if test -z "$ac_cpp_err"; then
9305 ac_header_preproc
=yes
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.
$ac_ext >&5
9310 ac_header_preproc
=no
9312 rm -f conftest.err conftest.
$ac_ext
9313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9314 echo "${ECHO_T}$ac_header_preproc" >&6
9316 # So? What about this header?
9317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9323 ac_header_preproc
=yes
9326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9340 ## ---------------------------------------- ##
9341 ## Report this to pgsql-bugs@postgresql.org ##
9342 ## ---------------------------------------- ##
9345 sed "s/^/$as_me: WARNING: /" >&2
9348 echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 eval "$as_ac_Header=\$ac_header_preproc"
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9360 cat >>confdefs.h
<<_ACEOF
9361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9366 for ac_header
in readline.h
9368 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9370 echo "$as_me:$LINENO: checking for $ac_header" >&5
9371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9378 # Is the header compilable?
9379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9381 cat >conftest.
$ac_ext <<_ACEOF
9384 cat confdefs.h
>>conftest.
$ac_ext
9385 cat >>conftest.
$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 $ac_includes_default
9388 #include <$ac_header>
9390 rm -f conftest.
$ac_objext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9392 (eval $ac_compile) 2>conftest.er1
9394 grep -v '^ *+' conftest.er1
>conftest.err
9396 cat conftest.err
>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try
='test -z "$ac_c_werror_flag"
9400 || test ! -s conftest.err'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; } &&
9406 { ac_try
='test -s conftest.$ac_objext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_header_compiler
=yes
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.
$ac_ext >&5
9417 ac_header_compiler
=no
9419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9421 echo "${ECHO_T}$ac_header_compiler" >&6
9423 # Is the header present?
9424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9426 cat >conftest.
$ac_ext <<_ACEOF
9429 cat confdefs.h
>>conftest.
$ac_ext
9430 cat >>conftest.
$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 #include <$ac_header>
9434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9435 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9437 grep -v '^ *+' conftest.er1
>conftest.err
9439 cat conftest.err
>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } >/dev
/null
; then
9442 if test -s conftest.err
; then
9443 ac_cpp_err
=$ac_c_preproc_warn_flag
9444 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9451 if test -z "$ac_cpp_err"; then
9452 ac_header_preproc
=yes
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.
$ac_ext >&5
9457 ac_header_preproc
=no
9459 rm -f conftest.err conftest.
$ac_ext
9460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9461 echo "${ECHO_T}$ac_header_preproc" >&6
9463 # So? What about this header?
9464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9470 ac_header_preproc
=yes
9473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9487 ## ---------------------------------------- ##
9488 ## Report this to pgsql-bugs@postgresql.org ##
9489 ## ---------------------------------------- ##
9492 sed "s/^/$as_me: WARNING: /" >&2
9495 echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 eval "$as_ac_Header=\$ac_header_preproc"
9502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9507 cat >>confdefs.h
<<_ACEOF
9508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9513 for ac_header
in readline
/readline.h
9515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9517 echo "$as_me:$LINENO: checking for $ac_header" >&5
9518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9525 # Is the header compilable?
9526 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9528 cat >conftest.
$ac_ext <<_ACEOF
9531 cat confdefs.h
>>conftest.
$ac_ext
9532 cat >>conftest.
$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9535 #include <$ac_header>
9537 rm -f conftest.
$ac_objext
9538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9539 (eval $ac_compile) 2>conftest.er1
9541 grep -v '^ *+' conftest.er1
>conftest.err
9543 cat conftest.err
>&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } &&
9546 { ac_try
='test -z "$ac_c_werror_flag"
9547 || test ! -s conftest.err'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; } &&
9553 { ac_try
='test -s conftest.$ac_objext'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; }; then
9559 ac_header_compiler
=yes
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.
$ac_ext >&5
9564 ac_header_compiler
=no
9566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9568 echo "${ECHO_T}$ac_header_compiler" >&6
9570 # Is the header present?
9571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9573 cat >conftest.
$ac_ext <<_ACEOF
9576 cat confdefs.h
>>conftest.
$ac_ext
9577 cat >>conftest.
$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 #include <$ac_header>
9581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9584 grep -v '^ *+' conftest.er1
>conftest.err
9586 cat conftest.err
>&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } >/dev
/null
; then
9589 if test -s conftest.err
; then
9590 ac_cpp_err
=$ac_c_preproc_warn_flag
9591 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9598 if test -z "$ac_cpp_err"; then
9599 ac_header_preproc
=yes
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.
$ac_ext >&5
9604 ac_header_preproc
=no
9606 rm -f conftest.err conftest.
$ac_ext
9607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9608 echo "${ECHO_T}$ac_header_preproc" >&6
9610 # So? What about this header?
9611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9617 ac_header_preproc
=yes
9620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9634 ## ---------------------------------------- ##
9635 ## Report this to pgsql-bugs@postgresql.org ##
9636 ## ---------------------------------------- ##
9639 sed "s/^/$as_me: WARNING: /" >&2
9642 echo "$as_me:$LINENO: checking for $ac_header" >&5
9643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 eval "$as_ac_Header=\$ac_header_preproc"
9649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9654 cat >>confdefs.h
<<_ACEOF
9655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9659 { { echo "$as_me:$LINENO: error: readline header not found
9660 If you have libedit already installed, see config.log for details on the
9661 failure. It is possible the compiler isn't looking in the proper directory.
9662 Use --without-readline to disable libedit support." >&5
9663 echo "$as_me: error: readline header not found
9664 If you have libedit already installed, see config.log for details on the
9665 failure. It is possible the compiler isn't looking in the proper directory.
9666 Use --without-readline to disable libedit support." >&2;}
9667 { (exit 1); exit 1; }; }
9680 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9681 # not be there at all. Hence, don't complain if not found. We must check
9682 # though, since in yet other versions it is an independent header.
9684 for ac_header
in editline
/history.h
9686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9688 echo "$as_me:$LINENO: checking for $ac_header" >&5
9689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9696 # Is the header compilable?
9697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9699 cat >conftest.
$ac_ext <<_ACEOF
9702 cat confdefs.h
>>conftest.
$ac_ext
9703 cat >>conftest.
$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9708 rm -f conftest.
$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1
>conftest.err
9714 cat conftest.err
>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try
='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try
='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_header_compiler
=yes
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.
$ac_ext >&5
9735 ac_header_compiler
=no
9737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9739 echo "${ECHO_T}$ac_header_compiler" >&6
9741 # Is the header present?
9742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9743 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
9752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1
>conftest.err
9757 cat conftest.err
>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } >/dev
/null
; then
9760 if test -s conftest.err
; then
9761 ac_cpp_err
=$ac_c_preproc_warn_flag
9762 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9769 if test -z "$ac_cpp_err"; then
9770 ac_header_preproc
=yes
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.
$ac_ext >&5
9775 ac_header_preproc
=no
9777 rm -f conftest.err conftest.
$ac_ext
9778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9779 echo "${ECHO_T}$ac_header_preproc" >&6
9781 # So? What about this header?
9782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9788 ac_header_preproc
=yes
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9805 ## ---------------------------------------- ##
9806 ## Report this to pgsql-bugs@postgresql.org ##
9807 ## ---------------------------------------- ##
9810 sed "s/^/$as_me: WARNING: /" >&2
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 eval "$as_ac_Header=\$ac_header_preproc"
9820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h
<<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9831 for ac_header
in history.h
9833 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9835 echo "$as_me:$LINENO: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9843 # Is the header compilable?
9844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9846 cat >conftest.
$ac_ext <<_ACEOF
9849 cat confdefs.h
>>conftest.
$ac_ext
9850 cat >>conftest.
$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 $ac_includes_default
9853 #include <$ac_header>
9855 rm -f conftest.
$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>conftest.er1
9859 grep -v '^ *+' conftest.er1
>conftest.err
9861 cat conftest.err
>&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try
='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try
='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_header_compiler
=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.
$ac_ext >&5
9882 ac_header_compiler
=no
9884 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6
9888 # Is the header present?
9889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <$ac_header>
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1
>conftest.err
9904 cat conftest.err
>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev
/null
; then
9907 if test -s conftest.err
; then
9908 ac_cpp_err
=$ac_c_preproc_warn_flag
9909 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9916 if test -z "$ac_cpp_err"; then
9917 ac_header_preproc
=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.
$ac_ext >&5
9922 ac_header_preproc
=no
9924 rm -f conftest.err conftest.
$ac_ext
9925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9926 echo "${ECHO_T}$ac_header_preproc" >&6
9928 # So? What about this header?
9929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9935 ac_header_preproc
=yes
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9952 ## ---------------------------------------- ##
9953 ## Report this to pgsql-bugs@postgresql.org ##
9954 ## ---------------------------------------- ##
9957 sed "s/^/$as_me: WARNING: /" >&2
9960 echo "$as_me:$LINENO: checking for $ac_header" >&5
9961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 eval "$as_ac_Header=\$ac_header_preproc"
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9972 cat >>confdefs.h
<<_ACEOF
9973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9978 for ac_header
in readline
/history.h
9980 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9982 echo "$as_me:$LINENO: checking for $ac_header" >&5
9983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9990 # Is the header compilable?
9991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9993 cat >conftest.
$ac_ext <<_ACEOF
9996 cat confdefs.h
>>conftest.
$ac_ext
9997 cat >>conftest.
$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 $ac_includes_default
10000 #include <$ac_header>
10002 rm -f conftest.
$ac_objext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004 (eval $ac_compile) 2>conftest.er1
10006 grep -v '^ *+' conftest.er1
>conftest.err
10008 cat conftest.err
>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try
='test -z "$ac_c_werror_flag"
10012 || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try
='test -s conftest.$ac_objext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 ac_header_compiler
=yes
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.
$ac_ext >&5
10029 ac_header_compiler
=no
10031 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10033 echo "${ECHO_T}$ac_header_compiler" >&6
10035 # Is the header present?
10036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10038 cat >conftest.
$ac_ext <<_ACEOF
10041 cat confdefs.h
>>conftest.
$ac_ext
10042 cat >>conftest.
$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10044 #include <$ac_header>
10046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10047 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10049 grep -v '^ *+' conftest.er1
>conftest.err
10051 cat conftest.err
>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } >/dev
/null
; then
10054 if test -s conftest.err
; then
10055 ac_cpp_err
=$ac_c_preproc_warn_flag
10056 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10063 if test -z "$ac_cpp_err"; then
10064 ac_header_preproc
=yes
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.
$ac_ext >&5
10069 ac_header_preproc
=no
10071 rm -f conftest.err conftest.
$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10073 echo "${ECHO_T}$ac_header_preproc" >&6
10075 # So? What about this header?
10076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10082 ac_header_preproc
=yes
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10099 ## ---------------------------------------- ##
10100 ## Report this to pgsql-bugs@postgresql.org ##
10101 ## ---------------------------------------- ##
10104 sed "s/^/$as_me: WARNING: /" >&2
10107 echo "$as_me:$LINENO: checking for $ac_header" >&5
10108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 eval "$as_ac_Header=\$ac_header_preproc"
10114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10119 cat >>confdefs.h
<<_ACEOF
10120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10137 if test "$with_zlib" = yes; then
10138 if test "${ac_cv_header_zlib_h+set}" = set; then
10139 echo "$as_me:$LINENO: checking for zlib.h" >&5
10140 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10141 if test "${ac_cv_header_zlib_h+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10145 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10147 # Is the header compilable?
10148 echo "$as_me:$LINENO: checking zlib.h usability" >&5
10149 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
10150 cat >conftest.
$ac_ext <<_ACEOF
10153 cat confdefs.h
>>conftest.
$ac_ext
10154 cat >>conftest.
$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 $ac_includes_default
10159 rm -f conftest.
$ac_objext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10161 (eval $ac_compile) 2>conftest.er1
10163 grep -v '^ *+' conftest.er1
>conftest.err
10165 cat conftest.err
>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } &&
10168 { ac_try
='test -z "$ac_c_werror_flag"
10169 || test ! -s conftest.err'
10170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; } &&
10175 { ac_try
='test -s conftest.$ac_objext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_header_compiler
=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.
$ac_ext >&5
10186 ac_header_compiler
=no
10188 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10190 echo "${ECHO_T}$ac_header_compiler" >&6
10192 # Is the header present?
10193 echo "$as_me:$LINENO: checking zlib.h presence" >&5
10194 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
10195 cat >conftest.
$ac_ext <<_ACEOF
10198 cat confdefs.h
>>conftest.
$ac_ext
10199 cat >>conftest.
$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10204 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10206 grep -v '^ *+' conftest.er1
>conftest.err
10208 cat conftest.err
>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } >/dev
/null
; then
10211 if test -s conftest.err
; then
10212 ac_cpp_err
=$ac_c_preproc_warn_flag
10213 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10220 if test -z "$ac_cpp_err"; then
10221 ac_header_preproc
=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.
$ac_ext >&5
10226 ac_header_preproc
=no
10228 rm -f conftest.err conftest.
$ac_ext
10229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10230 echo "${ECHO_T}$ac_header_preproc" >&6
10232 # So? What about this header?
10233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10235 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10236 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10238 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10239 ac_header_preproc
=yes
10242 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10243 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10245 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10246 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10247 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10249 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10250 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10251 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10253 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10256 ## ---------------------------------------- ##
10257 ## Report this to pgsql-bugs@postgresql.org ##
10258 ## ---------------------------------------- ##
10261 sed "s/^/$as_me: WARNING: /" >&2
10264 echo "$as_me:$LINENO: checking for zlib.h" >&5
10265 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
10266 if test "${ac_cv_header_zlib_h+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 ac_cv_header_zlib_h
=$ac_header_preproc
10271 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10272 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10275 if test $ac_cv_header_zlib_h = yes; then
10278 { { echo "$as_me:$LINENO: error: zlib header not found
10279 If you have zlib already installed, see config.log for details on the
10280 failure. It is possible the compiler isn't looking in the proper directory.
10281 Use --without-zlib to disable zlib support." >&5
10282 echo "$as_me: error: zlib header not found
10283 If you have zlib already installed, see config.log for details on the
10284 failure. It is possible the compiler isn't looking in the proper directory.
10285 Use --without-zlib to disable zlib support." >&2;}
10286 { (exit 1); exit 1; }; }
10292 if test "$with_gssapi" = yes ; then
10294 for ac_header
in gssapi
/gssapi.h
10296 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10298 echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10306 # Is the header compilable?
10307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10309 cat >conftest.
$ac_ext <<_ACEOF
10312 cat confdefs.h
>>conftest.
$ac_ext
10313 cat >>conftest.
$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 $ac_includes_default
10316 #include <$ac_header>
10318 rm -f conftest.
$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>conftest.er1
10322 grep -v '^ *+' conftest.er1
>conftest.err
10324 cat conftest.err
>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try
='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try
='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_header_compiler
=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.
$ac_ext >&5
10345 ac_header_compiler
=no
10347 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10349 echo "${ECHO_T}$ac_header_compiler" >&6
10351 # Is the header present?
10352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10354 cat >conftest.
$ac_ext <<_ACEOF
10357 cat confdefs.h
>>conftest.
$ac_ext
10358 cat >>conftest.
$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360 #include <$ac_header>
10362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10363 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10365 grep -v '^ *+' conftest.er1
>conftest.err
10367 cat conftest.err
>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } >/dev
/null
; then
10370 if test -s conftest.err
; then
10371 ac_cpp_err
=$ac_c_preproc_warn_flag
10372 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10379 if test -z "$ac_cpp_err"; then
10380 ac_header_preproc
=yes
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.
$ac_ext >&5
10385 ac_header_preproc
=no
10387 rm -f conftest.err conftest.
$ac_ext
10388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10389 echo "${ECHO_T}$ac_header_preproc" >&6
10391 # So? What about this header?
10392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10398 ac_header_preproc
=yes
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10415 ## ---------------------------------------- ##
10416 ## Report this to pgsql-bugs@postgresql.org ##
10417 ## ---------------------------------------- ##
10420 sed "s/^/$as_me: WARNING: /" >&2
10423 echo "$as_me:$LINENO: checking for $ac_header" >&5
10424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 eval "$as_ac_Header=\$ac_header_preproc"
10430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10435 cat >>confdefs.h
<<_ACEOF
10436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10441 for ac_header
in gssapi.h
10443 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10445 echo "$as_me:$LINENO: checking for $ac_header" >&5
10446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10453 # Is the header compilable?
10454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10456 cat >conftest.
$ac_ext <<_ACEOF
10459 cat confdefs.h
>>conftest.
$ac_ext
10460 cat >>conftest.
$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10462 $ac_includes_default
10463 #include <$ac_header>
10465 rm -f conftest.
$ac_objext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10467 (eval $ac_compile) 2>conftest.er1
10469 grep -v '^ *+' conftest.er1
>conftest.err
10471 cat conftest.err
>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try
='test -z "$ac_c_werror_flag"
10475 || test ! -s conftest.err'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; } &&
10481 { ac_try
='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_header_compiler
=yes
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.
$ac_ext >&5
10492 ac_header_compiler
=no
10494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10496 echo "${ECHO_T}$ac_header_compiler" >&6
10498 # Is the header present?
10499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10501 cat >conftest.
$ac_ext <<_ACEOF
10504 cat confdefs.h
>>conftest.
$ac_ext
10505 cat >>conftest.
$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10507 #include <$ac_header>
10509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10512 grep -v '^ *+' conftest.er1
>conftest.err
10514 cat conftest.err
>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } >/dev
/null
; then
10517 if test -s conftest.err
; then
10518 ac_cpp_err
=$ac_c_preproc_warn_flag
10519 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10526 if test -z "$ac_cpp_err"; then
10527 ac_header_preproc
=yes
10529 echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.
$ac_ext >&5
10532 ac_header_preproc
=no
10534 rm -f conftest.err conftest.
$ac_ext
10535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10536 echo "${ECHO_T}$ac_header_preproc" >&6
10538 # So? What about this header?
10539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10545 ac_header_preproc
=yes
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10562 ## ---------------------------------------- ##
10563 ## Report this to pgsql-bugs@postgresql.org ##
10564 ## ---------------------------------------- ##
10567 sed "s/^/$as_me: WARNING: /" >&2
10570 echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 eval "$as_ac_Header=\$ac_header_preproc"
10577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10582 cat >>confdefs.h
<<_ACEOF
10583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10587 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
10588 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
10589 { (exit 1); exit 1; }; }
10600 if test "$with_krb5" = yes ; then
10601 if test "${ac_cv_header_krb5_h+set}" = set; then
10602 echo "$as_me:$LINENO: checking for krb5.h" >&5
10603 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10604 if test "${ac_cv_header_krb5_h+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10608 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10610 # Is the header compilable?
10611 echo "$as_me:$LINENO: checking krb5.h usability" >&5
10612 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
10613 cat >conftest.
$ac_ext <<_ACEOF
10616 cat confdefs.h
>>conftest.
$ac_ext
10617 cat >>conftest.
$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 $ac_includes_default
10622 rm -f conftest.
$ac_objext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624 (eval $ac_compile) 2>conftest.er1
10626 grep -v '^ *+' conftest.er1
>conftest.err
10628 cat conftest.err
>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } &&
10631 { ac_try
='test -z "$ac_c_werror_flag"
10632 || test ! -s conftest.err'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; } &&
10638 { ac_try
='test -s conftest.$ac_objext'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 ac_header_compiler
=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.
$ac_ext >&5
10649 ac_header_compiler
=no
10651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10653 echo "${ECHO_T}$ac_header_compiler" >&6
10655 # Is the header present?
10656 echo "$as_me:$LINENO: checking krb5.h presence" >&5
10657 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
10658 cat >conftest.
$ac_ext <<_ACEOF
10661 cat confdefs.h
>>conftest.
$ac_ext
10662 cat >>conftest.
$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10667 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10669 grep -v '^ *+' conftest.er1
>conftest.err
10671 cat conftest.err
>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } >/dev
/null
; then
10674 if test -s conftest.err
; then
10675 ac_cpp_err
=$ac_c_preproc_warn_flag
10676 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10683 if test -z "$ac_cpp_err"; then
10684 ac_header_preproc
=yes
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.
$ac_ext >&5
10689 ac_header_preproc
=no
10691 rm -f conftest.err conftest.
$ac_ext
10692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10693 echo "${ECHO_T}$ac_header_preproc" >&6
10695 # So? What about this header?
10696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10698 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10699 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10700 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10701 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10702 ac_header_preproc
=yes
10705 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10706 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10708 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10710 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10712 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10714 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10715 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10716 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10719 ## ---------------------------------------- ##
10720 ## Report this to pgsql-bugs@postgresql.org ##
10721 ## ---------------------------------------- ##
10724 sed "s/^/$as_me: WARNING: /" >&2
10727 echo "$as_me:$LINENO: checking for krb5.h" >&5
10728 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10729 if test "${ac_cv_header_krb5_h+set}" = set; then
10730 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 ac_cv_header_krb5_h
=$ac_header_preproc
10734 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10735 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10738 if test $ac_cv_header_krb5_h = yes; then
10741 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10742 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10743 { (exit 1); exit 1; }; }
10749 if test "$with_openssl" = yes ; then
10750 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10751 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10752 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10753 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10757 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10759 # Is the header compilable?
10760 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10761 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10762 cat >conftest.
$ac_ext <<_ACEOF
10765 cat confdefs.h
>>conftest.
$ac_ext
10766 cat >>conftest.
$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 $ac_includes_default
10769 #include <openssl/ssl.h>
10771 rm -f conftest.
$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773 (eval $ac_compile) 2>conftest.er1
10775 grep -v '^ *+' conftest.er1
>conftest.err
10777 cat conftest.err
>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try
='test -z "$ac_c_werror_flag"
10781 || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try
='test -s conftest.$ac_objext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_header_compiler
=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.
$ac_ext >&5
10798 ac_header_compiler
=no
10800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10802 echo "${ECHO_T}$ac_header_compiler" >&6
10804 # Is the header present?
10805 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10806 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10807 cat >conftest.
$ac_ext <<_ACEOF
10810 cat confdefs.h
>>conftest.
$ac_ext
10811 cat >>conftest.
$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10813 #include <openssl/ssl.h>
10815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10816 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10818 grep -v '^ *+' conftest.er1
>conftest.err
10820 cat conftest.err
>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } >/dev
/null
; then
10823 if test -s conftest.err
; then
10824 ac_cpp_err
=$ac_c_preproc_warn_flag
10825 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10832 if test -z "$ac_cpp_err"; then
10833 ac_header_preproc
=yes
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.
$ac_ext >&5
10838 ac_header_preproc
=no
10840 rm -f conftest.err conftest.
$ac_ext
10841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10842 echo "${ECHO_T}$ac_header_preproc" >&6
10844 # So? What about this header?
10845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10847 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10848 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10850 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10851 ac_header_preproc
=yes
10854 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10855 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10857 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10858 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10859 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10861 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10863 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10865 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10868 ## ---------------------------------------- ##
10869 ## Report this to pgsql-bugs@postgresql.org ##
10870 ## ---------------------------------------- ##
10873 sed "s/^/$as_me: WARNING: /" >&2
10876 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10877 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10878 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 ac_cv_header_openssl_ssl_h
=$ac_header_preproc
10883 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10884 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10887 if test $ac_cv_header_openssl_ssl_h = yes; then
10890 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10891 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10892 { (exit 1); exit 1; }; }
10896 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10897 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10898 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10899 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10903 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10905 # Is the header compilable?
10906 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10907 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 $ac_includes_default
10915 #include <openssl/err.h>
10917 rm -f conftest.
$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919 (eval $ac_compile) 2>conftest.er1
10921 grep -v '^ *+' conftest.er1
>conftest.err
10923 cat conftest.err
>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try
='test -z "$ac_c_werror_flag"
10927 || test ! -s conftest.err'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try
='test -s conftest.$ac_objext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_header_compiler
=yes
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.
$ac_ext >&5
10944 ac_header_compiler
=no
10946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10948 echo "${ECHO_T}$ac_header_compiler" >&6
10950 # Is the header present?
10951 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10952 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10953 cat >conftest.
$ac_ext <<_ACEOF
10956 cat confdefs.h
>>conftest.
$ac_ext
10957 cat >>conftest.
$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 #include <openssl/err.h>
10961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10964 grep -v '^ *+' conftest.er1
>conftest.err
10966 cat conftest.err
>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } >/dev
/null
; then
10969 if test -s conftest.err
; then
10970 ac_cpp_err
=$ac_c_preproc_warn_flag
10971 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10978 if test -z "$ac_cpp_err"; then
10979 ac_header_preproc
=yes
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.
$ac_ext >&5
10984 ac_header_preproc
=no
10986 rm -f conftest.err conftest.
$ac_ext
10987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988 echo "${ECHO_T}$ac_header_preproc" >&6
10990 # So? What about this header?
10991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10993 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10994 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10996 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10997 ac_header_preproc
=yes
11000 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11001 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
11003 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11005 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
11007 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11009 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11011 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11014 ## ---------------------------------------- ##
11015 ## Report this to pgsql-bugs@postgresql.org ##
11016 ## ---------------------------------------- ##
11019 sed "s/^/$as_me: WARNING: /" >&2
11022 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11023 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
11024 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 ac_cv_header_openssl_err_h
=$ac_header_preproc
11029 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11030 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
11033 if test $ac_cv_header_openssl_err_h = yes; then
11036 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11037 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11038 { (exit 1); exit 1; }; }
11044 if test "$with_pam" = yes ; then
11046 for ac_header
in security
/pam_appl.h
11048 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11050 echo "$as_me:$LINENO: checking for $ac_header" >&5
11051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11058 # Is the header compilable?
11059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11061 cat >conftest.
$ac_ext <<_ACEOF
11064 cat confdefs.h
>>conftest.
$ac_ext
11065 cat >>conftest.
$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11067 $ac_includes_default
11068 #include <$ac_header>
11070 rm -f conftest.
$ac_objext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>conftest.er1
11074 grep -v '^ *+' conftest.er1
>conftest.err
11076 cat conftest.err
>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try
='test -z "$ac_c_werror_flag"
11080 || test ! -s conftest.err'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; } &&
11086 { ac_try
='test -s conftest.$ac_objext'
11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_header_compiler
=yes
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.
$ac_ext >&5
11097 ac_header_compiler
=no
11099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11101 echo "${ECHO_T}$ac_header_compiler" >&6
11103 # Is the header present?
11104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11106 cat >conftest.
$ac_ext <<_ACEOF
11109 cat confdefs.h
>>conftest.
$ac_ext
11110 cat >>conftest.
$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 #include <$ac_header>
11114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11115 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11117 grep -v '^ *+' conftest.er1
>conftest.err
11119 cat conftest.err
>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } >/dev
/null
; then
11122 if test -s conftest.err
; then
11123 ac_cpp_err
=$ac_c_preproc_warn_flag
11124 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11131 if test -z "$ac_cpp_err"; then
11132 ac_header_preproc
=yes
11134 echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.
$ac_ext >&5
11137 ac_header_preproc
=no
11139 rm -f conftest.err conftest.
$ac_ext
11140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11141 echo "${ECHO_T}$ac_header_preproc" >&6
11143 # So? What about this header?
11144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11150 ac_header_preproc
=yes
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11167 ## ---------------------------------------- ##
11168 ## Report this to pgsql-bugs@postgresql.org ##
11169 ## ---------------------------------------- ##
11172 sed "s/^/$as_me: WARNING: /" >&2
11175 echo "$as_me:$LINENO: checking for $ac_header" >&5
11176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 eval "$as_ac_Header=\$ac_header_preproc"
11182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11187 cat >>confdefs.h
<<_ACEOF
11188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11193 for ac_header
in pam
/pam_appl.h
11195 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11197 echo "$as_me:$LINENO: checking for $ac_header" >&5
11198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11205 # Is the header compilable?
11206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11208 cat >conftest.
$ac_ext <<_ACEOF
11211 cat confdefs.h
>>conftest.
$ac_ext
11212 cat >>conftest.
$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 $ac_includes_default
11215 #include <$ac_header>
11217 rm -f conftest.
$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>conftest.er1
11221 grep -v '^ *+' conftest.er1
>conftest.err
11223 cat conftest.err
>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try
='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try
='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_header_compiler
=yes
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.
$ac_ext >&5
11244 ac_header_compiler
=no
11246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11248 echo "${ECHO_T}$ac_header_compiler" >&6
11250 # Is the header present?
11251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11253 cat >conftest.
$ac_ext <<_ACEOF
11256 cat confdefs.h
>>conftest.
$ac_ext
11257 cat >>conftest.
$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <$ac_header>
11261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11262 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11264 grep -v '^ *+' conftest.er1
>conftest.err
11266 cat conftest.err
>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } >/dev
/null
; then
11269 if test -s conftest.err
; then
11270 ac_cpp_err
=$ac_c_preproc_warn_flag
11271 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11278 if test -z "$ac_cpp_err"; then
11279 ac_header_preproc
=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.
$ac_ext >&5
11284 ac_header_preproc
=no
11286 rm -f conftest.err conftest.
$ac_ext
11287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11288 echo "${ECHO_T}$ac_header_preproc" >&6
11290 # So? What about this header?
11291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11297 ac_header_preproc
=yes
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11314 ## ---------------------------------------- ##
11315 ## Report this to pgsql-bugs@postgresql.org ##
11316 ## ---------------------------------------- ##
11319 sed "s/^/$as_me: WARNING: /" >&2
11322 echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 eval "$as_ac_Header=\$ac_header_preproc"
11329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334 cat >>confdefs.h
<<_ACEOF
11335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11339 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
11340 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
11341 { (exit 1); exit 1; }; }
11352 if test "$with_libxml" = yes ; then
11353 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11354 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11355 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11356 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11360 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11362 # Is the header compilable?
11363 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
11364 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
11365 cat >conftest.
$ac_ext <<_ACEOF
11368 cat confdefs.h
>>conftest.
$ac_ext
11369 cat >>conftest.
$ac_ext <<_ACEOF
11370 /* end confdefs.h. */
11371 $ac_includes_default
11372 #include <libxml/parser.h>
11374 rm -f conftest.
$ac_objext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376 (eval $ac_compile) 2>conftest.er1
11378 grep -v '^ *+' conftest.er1
>conftest.err
11380 cat conftest.err
>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
11383 { ac_try
='test -z "$ac_c_werror_flag"
11384 || test ! -s conftest.err'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try
='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_header_compiler
=yes
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.
$ac_ext >&5
11401 ac_header_compiler
=no
11403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405 echo "${ECHO_T}$ac_header_compiler" >&6
11407 # Is the header present?
11408 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
11409 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
11410 cat >conftest.
$ac_ext <<_ACEOF
11413 cat confdefs.h
>>conftest.
$ac_ext
11414 cat >>conftest.
$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 #include <libxml/parser.h>
11418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11419 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11421 grep -v '^ *+' conftest.er1
>conftest.err
11423 cat conftest.err
>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } >/dev
/null
; then
11426 if test -s conftest.err
; then
11427 ac_cpp_err
=$ac_c_preproc_warn_flag
11428 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11435 if test -z "$ac_cpp_err"; then
11436 ac_header_preproc
=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.
$ac_ext >&5
11441 ac_header_preproc
=no
11443 rm -f conftest.err conftest.
$ac_ext
11444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 echo "${ECHO_T}$ac_header_preproc" >&6
11447 # So? What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11450 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
11451 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
11453 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
11454 ac_header_preproc
=yes
11457 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
11458 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
11460 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
11462 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
11464 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
11466 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
11468 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
11471 ## ---------------------------------------- ##
11472 ## Report this to pgsql-bugs@postgresql.org ##
11473 ## ---------------------------------------- ##
11476 sed "s/^/$as_me: WARNING: /" >&2
11479 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
11480 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
11481 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 ac_cv_header_libxml_parser_h
=$ac_header_preproc
11486 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
11487 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
11490 if test $ac_cv_header_libxml_parser_h = yes; then
11493 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
11494 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
11495 { (exit 1); exit 1; }; }
11501 if test "$with_libxslt" = yes ; then
11502 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11503 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11504 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11505 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11509 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11511 # Is the header compilable?
11512 echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
11513 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
11514 cat >conftest.
$ac_ext <<_ACEOF
11517 cat confdefs.h
>>conftest.
$ac_ext
11518 cat >>conftest.
$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 #include <libxslt/xslt.h>
11523 rm -f conftest.
$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525 (eval $ac_compile) 2>conftest.er1
11527 grep -v '^ *+' conftest.er1
>conftest.err
11529 cat conftest.err
>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try
='test -z "$ac_c_werror_flag"
11533 || test ! -s conftest.err'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; } &&
11539 { ac_try
='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_header_compiler
=yes
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.
$ac_ext >&5
11550 ac_header_compiler
=no
11552 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554 echo "${ECHO_T}$ac_header_compiler" >&6
11556 # Is the header present?
11557 echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
11558 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
11559 cat >conftest.
$ac_ext <<_ACEOF
11562 cat confdefs.h
>>conftest.
$ac_ext
11563 cat >>conftest.
$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include <libxslt/xslt.h>
11567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11568 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11570 grep -v '^ *+' conftest.er1
>conftest.err
11572 cat conftest.err
>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev
/null
; then
11575 if test -s conftest.err
; then
11576 ac_cpp_err
=$ac_c_preproc_warn_flag
11577 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11584 if test -z "$ac_cpp_err"; then
11585 ac_header_preproc
=yes
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.
$ac_ext >&5
11590 ac_header_preproc
=no
11592 rm -f conftest.err conftest.
$ac_ext
11593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594 echo "${ECHO_T}$ac_header_preproc" >&6
11596 # So? What about this header?
11597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11599 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11600 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11602 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11603 ac_header_preproc
=yes
11606 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11607 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
11609 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11611 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
11613 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11615 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11617 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11620 ## ---------------------------------------- ##
11621 ## Report this to pgsql-bugs@postgresql.org ##
11622 ## ---------------------------------------- ##
11625 sed "s/^/$as_me: WARNING: /" >&2
11628 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11629 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11630 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
11635 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11639 if test $ac_cv_header_libxslt_xslt_h = yes; then
11642 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11643 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11644 { (exit 1); exit 1; }; }
11650 if test "$with_ldap" = yes ; then
11651 if test "$PORTNAME" != "win32"; then
11653 for ac_header
in ldap.h
11655 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11657 echo "$as_me:$LINENO: checking for $ac_header" >&5
11658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11665 # Is the header compilable?
11666 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11668 cat >conftest.
$ac_ext <<_ACEOF
11671 cat confdefs.h
>>conftest.
$ac_ext
11672 cat >>conftest.
$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 $ac_includes_default
11675 #include <$ac_header>
11677 rm -f conftest.
$ac_objext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679 (eval $ac_compile) 2>conftest.er1
11681 grep -v '^ *+' conftest.er1
>conftest.err
11683 cat conftest.err
>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
11686 { ac_try
='test -z "$ac_c_werror_flag"
11687 || test ! -s conftest.err'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; } &&
11693 { ac_try
='test -s conftest.$ac_objext'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
11699 ac_header_compiler
=yes
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.
$ac_ext >&5
11704 ac_header_compiler
=no
11706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11708 echo "${ECHO_T}$ac_header_compiler" >&6
11710 # Is the header present?
11711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11713 cat >conftest.
$ac_ext <<_ACEOF
11716 cat confdefs.h
>>conftest.
$ac_ext
11717 cat >>conftest.
$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #include <$ac_header>
11721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11722 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11724 grep -v '^ *+' conftest.er1
>conftest.err
11726 cat conftest.err
>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } >/dev
/null
; then
11729 if test -s conftest.err
; then
11730 ac_cpp_err
=$ac_c_preproc_warn_flag
11731 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11738 if test -z "$ac_cpp_err"; then
11739 ac_header_preproc
=yes
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.
$ac_ext >&5
11744 ac_header_preproc
=no
11746 rm -f conftest.err conftest.
$ac_ext
11747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11748 echo "${ECHO_T}$ac_header_preproc" >&6
11750 # So? What about this header?
11751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11757 ac_header_preproc
=yes
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11774 ## ---------------------------------------- ##
11775 ## Report this to pgsql-bugs@postgresql.org ##
11776 ## ---------------------------------------- ##
11779 sed "s/^/$as_me: WARNING: /" >&2
11782 echo "$as_me:$LINENO: checking for $ac_header" >&5
11783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 eval "$as_ac_Header=\$ac_header_preproc"
11789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11794 cat >>confdefs.h
<<_ACEOF
11795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11799 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
11800 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
11801 { (exit 1); exit 1; }; }
11808 for ac_header
in winldap.h
11810 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11811 echo "$as_me:$LINENO: checking for $ac_header" >&5
11812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 cat >conftest.
$ac_ext <<_ACEOF
11819 cat confdefs.h
>>conftest.
$ac_ext
11820 cat >>conftest.
$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 #include <windows.h>
11826 #include <$ac_header>
11828 rm -f conftest.
$ac_objext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>conftest.er1
11832 grep -v '^ *+' conftest.er1
>conftest.err
11834 cat conftest.err
>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try
='test -z "$ac_c_werror_flag"
11838 || test ! -s conftest.err'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try
='test -s conftest.$ac_objext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 eval "$as_ac_Header=yes"
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.
$ac_ext >&5
11855 eval "$as_ac_Header=no"
11857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11862 cat >>confdefs.h
<<_ACEOF
11863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11867 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
11868 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
11869 { (exit 1); exit 1; }; }
11877 if test "$with_bonjour" = yes ; then
11878 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11879 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11880 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11881 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11885 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11887 # Is the header compilable?
11888 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
11889 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
11890 cat >conftest.
$ac_ext <<_ACEOF
11893 cat confdefs.h
>>conftest.
$ac_ext
11894 cat >>conftest.
$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11897 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11899 rm -f conftest.
$ac_objext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11903 grep -v '^ *+' conftest.er1
>conftest.err
11905 cat conftest.err
>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try
='test -z "$ac_c_werror_flag"
11909 || test ! -s conftest.err'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try
='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 ac_header_compiler
=yes
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.
$ac_ext >&5
11926 ac_header_compiler
=no
11928 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11930 echo "${ECHO_T}$ac_header_compiler" >&6
11932 # Is the header present?
11933 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
11934 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
11935 cat >conftest.
$ac_ext <<_ACEOF
11938 cat confdefs.h
>>conftest.
$ac_ext
11939 cat >>conftest.
$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11944 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11946 grep -v '^ *+' conftest.er1
>conftest.err
11948 cat conftest.err
>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } >/dev
/null
; then
11951 if test -s conftest.err
; then
11952 ac_cpp_err
=$ac_c_preproc_warn_flag
11953 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11960 if test -z "$ac_cpp_err"; then
11961 ac_header_preproc
=yes
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.
$ac_ext >&5
11966 ac_header_preproc
=no
11968 rm -f conftest.err conftest.
$ac_ext
11969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11970 echo "${ECHO_T}$ac_header_preproc" >&6
11972 # So? What about this header?
11973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11975 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
11976 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
11978 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
11979 ac_header_preproc
=yes
11982 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
11983 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
11985 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
11987 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
11988 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
11989 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
11991 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
11993 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
11996 ## ---------------------------------------- ##
11997 ## Report this to pgsql-bugs@postgresql.org ##
11998 ## ---------------------------------------- ##
12001 sed "s/^/$as_me: WARNING: /" >&2
12004 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12005 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
12006 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h
=$ac_header_preproc
12011 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12012 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
12015 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12018 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12019 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12020 { (exit 1); exit 1; }; }
12028 ## Types, structures, compiler characteristics
12031 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12032 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12033 if test "${ac_cv_c_bigendian+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 # See if sys/param.h defines the BYTE_ORDER macro.
12037 cat >conftest.
$ac_ext <<_ACEOF
12040 cat confdefs.h
>>conftest.
$ac_ext
12041 cat >>conftest.
$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <sys/types.h>
12044 #include <sys/param.h>
12049 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12050 bogus endian macros
12057 rm -f conftest.
$ac_objext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12059 (eval $ac_compile) 2>conftest.er1
12061 grep -v '^ *+' conftest.er1
>conftest.err
12063 cat conftest.err
>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try
='test -z "$ac_c_werror_flag"
12067 || test ! -s conftest.err'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; } &&
12073 { ac_try
='test -s conftest.$ac_objext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 # It does; now see whether it defined to BIG_ENDIAN or not.
12080 cat >conftest.
$ac_ext <<_ACEOF
12083 cat confdefs.h
>>conftest.
$ac_ext
12084 cat >>conftest.
$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include <sys/types.h>
12087 #include <sys/param.h>
12092 #if BYTE_ORDER != BIG_ENDIAN
12100 rm -f conftest.
$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>conftest.er1
12104 grep -v '^ *+' conftest.er1
>conftest.err
12106 cat conftest.err
>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try
='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try
='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_c_bigendian
=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.
$ac_ext >&5
12127 ac_cv_c_bigendian
=no
12129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.
$ac_ext >&5
12134 # It does not; compile a test program.
12135 if test "$cross_compiling" = yes; then
12136 # try to guess the endianness by grepping values into an object file
12137 ac_cv_c_bigendian
=unknown
12138 cat >conftest.
$ac_ext <<_ACEOF
12141 cat confdefs.h
>>conftest.
$ac_ext
12142 cat >>conftest.
$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12145 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12146 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12147 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12148 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12149 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12153 _ascii (); _ebcdic ();
12158 rm -f conftest.
$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160 (eval $ac_compile) 2>conftest.er1
12162 grep -v '^ *+' conftest.er1
>conftest.err
12164 cat conftest.err
>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try
='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try
='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12181 ac_cv_c_bigendian
=yes
12183 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12184 if test "$ac_cv_c_bigendian" = unknown
; then
12185 ac_cv_c_bigendian
=no
12187 # finding both strings is unlikely to happen, but who knows?
12188 ac_cv_c_bigendian
=unknown
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.
$ac_ext >&5
12196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12198 cat >conftest.
$ac_ext <<_ACEOF
12201 cat confdefs.h
>>conftest.
$ac_ext
12202 cat >>conftest.
$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12207 /* Are we little or big endian? From Harbison&Steele. */
12211 char c[sizeof (long)];
12214 exit (u.c[sizeof (long) - 1] == 1);
12217 rm -f conftest
$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219 (eval $ac_link) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_cv_c_bigendian
=no
12230 echo "$as_me: program exited with status $ac_status" >&5
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.
$ac_ext >&5
12234 ( exit $ac_status )
12235 ac_cv_c_bigendian
=yes
12237 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12242 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12243 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12244 case $ac_cv_c_bigendian in
12247 cat >>confdefs.h
<<\_ACEOF
12248 #define WORDS_BIGENDIAN 1
12254 { { echo "$as_me:$LINENO: error: unknown endianness
12255 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12256 echo "$as_me: error: unknown endianness
12257 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12258 { (exit 1); exit 1; }; } ;;
12261 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12262 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12263 if test "${ac_cv_c_const+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 cat >conftest.
$ac_ext <<_ACEOF
12269 cat confdefs.h
>>conftest.
$ac_ext
12270 cat >>conftest.
$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12276 /* FIXME: Include the comments suggested by Paul. */
12277 #ifndef __cplusplus
12278 /* Ultrix mips cc rejects this. */
12279 typedef int charset[2];
12281 /* SunOS 4.1.1 cc rejects this. */
12282 char const *const *ccp;
12284 /* NEC SVR4.0.2 mips cc rejects this. */
12285 struct point {int x, y;};
12286 static struct point const zero = {0,0};
12287 /* AIX XL C 1.02.0.0 rejects this.
12288 It does not let you subtract one const X* pointer from another in
12289 an arm of an if-expression whose if-part is not a constant
12291 const char *g = "string";
12292 ccp = &g + (g ? g-g : 0);
12293 /* HPUX 7.0 cc rejects these. */
12296 ccp = (char const *const *) p;
12297 { /* SCO 3.2v4 cc rejects this. */
12299 char const *s = 0 ? (char *) 0 : (char const *) 0;
12303 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12304 int x[] = {25, 17};
12305 const int *foo = &x[0];
12308 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12309 typedef const int *iptr;
12313 { /* AIX XL C 1.02.0.0 rejects this saying
12314 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12315 struct s { int j; const int *ap[3]; };
12316 struct s *b; b->j = 5;
12318 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12319 const int foo = 10;
12327 rm -f conftest.
$ac_objext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>conftest.er1
12331 grep -v '^ *+' conftest.er1
>conftest.err
12333 cat conftest.err
>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try
='test -z "$ac_c_werror_flag"
12337 || test ! -s conftest.err'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try
='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.
$ac_ext >&5
12356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12358 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12359 echo "${ECHO_T}$ac_cv_c_const" >&6
12360 if test $ac_cv_c_const = no
; then
12362 cat >>confdefs.h
<<\_ACEOF
12369 echo "$as_me:$LINENO: checking for inline" >&5
12370 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12371 if test "${ac_cv_c_inline+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 for ac_kw
in inline __inline__ __inline
; do
12376 cat >conftest.
$ac_ext <<_ACEOF
12379 cat confdefs.h
>>conftest.
$ac_ext
12380 cat >>conftest.
$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 #ifndef __cplusplus
12384 static $ac_kw foo_t static_foo () {return 0; }
12385 $ac_kw int foo () {return 0; }
12389 rm -f conftest.
$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>conftest.er1
12393 grep -v '^ *+' conftest.er1
>conftest.err
12395 cat conftest.err
>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try
='test -z "$ac_c_werror_flag"
12399 || test ! -s conftest.err'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try
='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_c_inline
=$ac_kw; break
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.
$ac_ext >&5
12417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12421 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12422 echo "${ECHO_T}$ac_cv_c_inline" >&6
12423 case $ac_cv_c_inline in
12426 cat >>confdefs.h
<<\_ACEOF
12430 *) cat >>confdefs.h
<<_ACEOF
12431 #define inline $ac_cv_c_inline
12436 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12437 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
12438 if test "${ac_cv_c_stringize+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 cat >conftest.
$ac_ext <<_ACEOF
12444 cat confdefs.h
>>conftest.
$ac_ext
12445 cat >>conftest.
$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12449 char *s = x(teststring);
12451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452 $EGREP "#teststring" >/dev
/null
2>&1; then
12453 ac_cv_c_stringize
=no
12455 ac_cv_c_stringize
=yes
12460 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12461 echo "${ECHO_T}$ac_cv_c_stringize" >&6
12462 if test $ac_cv_c_stringize = yes; then
12464 cat >>confdefs.h
<<\_ACEOF
12465 #define HAVE_STRINGIZE 1
12470 echo "$as_me:$LINENO: checking for signed types" >&5
12471 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
12472 if test "${pgac_cv_c_signed+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 cat >conftest.
$ac_ext <<_ACEOF
12478 cat confdefs.h
>>conftest.
$ac_ext
12479 cat >>conftest.
$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12485 signed char c; signed short s; signed int i;
12490 rm -f conftest.
$ac_objext
12491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492 (eval $ac_compile) 2>conftest.er1
12494 grep -v '^ *+' conftest.er1
>conftest.err
12496 cat conftest.err
>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } &&
12499 { ac_try
='test -z "$ac_c_werror_flag"
12500 || test ! -s conftest.err'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try
='test -s conftest.$ac_objext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 pgac_cv_c_signed
=yes
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.
$ac_ext >&5
12517 pgac_cv_c_signed
=no
12519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12521 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
12522 echo "${ECHO_T}$pgac_cv_c_signed" >&6
12523 if test x
"$pgac_cv_c_signed" = xno
; then
12525 cat >>confdefs.h
<<\_ACEOF
12530 echo "$as_me:$LINENO: checking for working volatile" >&5
12531 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
12532 if test "${ac_cv_c_volatile+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 cat >conftest.
$ac_ext <<_ACEOF
12538 cat confdefs.h
>>conftest.
$ac_ext
12539 cat >>conftest.
$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12552 rm -f conftest.
$ac_objext
12553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12554 (eval $ac_compile) 2>conftest.er1
12556 grep -v '^ *+' conftest.er1
>conftest.err
12558 cat conftest.err
>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try
='test -z "$ac_c_werror_flag"
12562 || test ! -s conftest.err'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; } &&
12568 { ac_try
='test -s conftest.$ac_objext'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_c_volatile
=yes
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.
$ac_ext >&5
12579 ac_cv_c_volatile
=no
12581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12583 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12584 echo "${ECHO_T}$ac_cv_c_volatile" >&6
12585 if test $ac_cv_c_volatile = no
; then
12587 cat >>confdefs.h
<<\_ACEOF
12593 echo "$as_me:$LINENO: checking for __func__" >&5
12594 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
12595 if test "${pgac_cv_funcname_func_support+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 cat >conftest.
$ac_ext <<_ACEOF
12601 cat confdefs.h
>>conftest.
$ac_ext
12602 cat >>conftest.
$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12608 printf("%s\n", __func__);
12613 rm -f conftest.
$ac_objext
12614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>conftest.er1
12617 grep -v '^ *+' conftest.er1
>conftest.err
12619 cat conftest.err
>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try
='test -z "$ac_c_werror_flag"
12623 || test ! -s conftest.err'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; } &&
12629 { ac_try
='test -s conftest.$ac_objext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12635 pgac_cv_funcname_func_support
=yes
12637 echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.
$ac_ext >&5
12640 pgac_cv_funcname_func_support
=no
12642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12644 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
12645 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
12646 if test x
"$pgac_cv_funcname_func_support" = xyes
; then
12648 cat >>confdefs.h
<<\_ACEOF
12649 #define HAVE_FUNCNAME__FUNC 1
12653 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
12654 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
12655 if test "${pgac_cv_funcname_function_support+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 cat >conftest.
$ac_ext <<_ACEOF
12661 cat confdefs.h
>>conftest.
$ac_ext
12662 cat >>conftest.
$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12668 printf("%s\n", __FUNCTION__);
12673 rm -f conftest.
$ac_objext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>conftest.er1
12677 grep -v '^ *+' conftest.er1
>conftest.err
12679 cat conftest.err
>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
12682 { ac_try
='test -z "$ac_c_werror_flag"
12683 || test ! -s conftest.err'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try
='test -s conftest.$ac_objext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 pgac_cv_funcname_function_support
=yes
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.
$ac_ext >&5
12700 pgac_cv_funcname_function_support
=no
12702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12704 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
12705 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
12706 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
12708 cat >>confdefs.h
<<\_ACEOF
12709 #define HAVE_FUNCNAME__FUNCTION 1
12714 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12715 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12716 if test "${ac_cv_struct_tm+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 cat >conftest.
$ac_ext <<_ACEOF
12722 cat confdefs.h
>>conftest.
$ac_ext
12723 cat >>conftest.
$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 #include <sys/types.h>
12731 struct tm *tp; tp->tm_sec;
12736 rm -f conftest.
$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12740 grep -v '^ *+' conftest.er1
>conftest.err
12742 cat conftest.err
>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try
='test -z "$ac_c_werror_flag"
12746 || test ! -s conftest.err'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try
='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_cv_struct_tm
=time.h
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.
$ac_ext >&5
12763 ac_cv_struct_tm
=sys
/time.h
12765 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12767 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12768 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12769 if test $ac_cv_struct_tm = sys
/time.h
; then
12771 cat >>confdefs.h
<<\_ACEOF
12772 #define TM_IN_SYS_TIME 1
12777 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12778 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12779 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 cat >conftest.
$ac_ext <<_ACEOF
12785 cat confdefs.h
>>conftest.
$ac_ext
12786 cat >>conftest.
$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12788 #include <sys/types.h>
12789 #include <$ac_cv_struct_tm>
12795 static struct tm ac_aggr;
12796 if (ac_aggr.tm_zone)
12802 rm -f conftest.
$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>conftest.er1
12806 grep -v '^ *+' conftest.er1
>conftest.err
12808 cat conftest.err
>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try
='test -z "$ac_c_werror_flag"
12812 || test ! -s conftest.err'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try
='test -s conftest.$ac_objext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 ac_cv_member_struct_tm_tm_zone
=yes
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.
$ac_ext >&5
12829 cat >conftest.
$ac_ext <<_ACEOF
12832 cat confdefs.h
>>conftest.
$ac_ext
12833 cat >>conftest.
$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 #include <sys/types.h>
12836 #include <$ac_cv_struct_tm>
12842 static struct tm ac_aggr;
12843 if (sizeof ac_aggr.tm_zone)
12849 rm -f conftest.
$ac_objext
12850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12851 (eval $ac_compile) 2>conftest.er1
12853 grep -v '^ *+' conftest.er1
>conftest.err
12855 cat conftest.err
>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try
='test -z "$ac_c_werror_flag"
12859 || test ! -s conftest.err'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try
='test -s conftest.$ac_objext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_member_struct_tm_tm_zone
=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ac_cv_member_struct_tm_tm_zone
=no
12878 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12882 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12883 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12884 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12886 cat >>confdefs.h
<<_ACEOF
12887 #define HAVE_STRUCT_TM_TM_ZONE 1
12893 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12895 cat >>confdefs.h
<<\_ACEOF
12896 #define HAVE_TM_ZONE 1
12900 echo "$as_me:$LINENO: checking for tzname" >&5
12901 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12902 if test "${ac_cv_var_tzname+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 cat >conftest.
$ac_ext <<_ACEOF
12908 cat confdefs.h
>>conftest.
$ac_ext
12909 cat >>conftest.
$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12912 #ifndef tzname /* For SGI. */
12913 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12924 rm -f conftest.
$ac_objext conftest
$ac_exeext
12925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12926 (eval $ac_link) 2>conftest.er1
12928 grep -v '^ *+' conftest.er1
>conftest.err
12930 cat conftest.err
>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try
='test -z "$ac_c_werror_flag"
12934 || test ! -s conftest.err'
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
12940 { ac_try
='test -s conftest$ac_exeext'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
12946 ac_cv_var_tzname
=yes
12948 echo "$as_me: failed program was:" >&5
12949 sed 's/^/| /' conftest.
$ac_ext >&5
12951 ac_cv_var_tzname
=no
12953 rm -f conftest.err conftest.
$ac_objext \
12954 conftest
$ac_exeext conftest.
$ac_ext
12956 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12957 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12958 if test $ac_cv_var_tzname = yes; then
12960 cat >>confdefs.h
<<\_ACEOF
12961 #define HAVE_TZNAME 1
12966 echo "$as_me:$LINENO: checking for union semun" >&5
12967 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
12968 if test "${ac_cv_type_union_semun+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 cat >conftest.
$ac_ext <<_ACEOF
12974 cat confdefs.h
>>conftest.
$ac_ext
12975 cat >>conftest.
$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 #include <sys/types.h>
12978 #include <sys/ipc.h>
12979 #include <sys/sem.h>
12984 if ((union semun *) 0)
12986 if (sizeof (union semun))
12992 rm -f conftest.
$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>conftest.er1
12996 grep -v '^ *+' conftest.er1
>conftest.err
12998 cat conftest.err
>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
13001 { ac_try
='test -z "$ac_c_werror_flag"
13002 || test ! -s conftest.err'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try
='test -s conftest.$ac_objext'
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_cv_type_union_semun
=yes
13016 echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.
$ac_ext >&5
13019 ac_cv_type_union_semun
=no
13021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13023 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13024 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
13025 if test $ac_cv_type_union_semun = yes; then
13027 cat >>confdefs.h
<<_ACEOF
13028 #define HAVE_UNION_SEMUN 1
13034 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13035 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
13036 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 cat >conftest.
$ac_ext <<_ACEOF
13042 cat confdefs.h
>>conftest.
$ac_ext
13043 cat >>conftest.
$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 #include <sys/types.h>
13046 #ifdef HAVE_SYS_UN_H
13047 #include <sys/un.h>
13054 if ((struct sockaddr_un *) 0)
13056 if (sizeof (struct sockaddr_un))
13062 rm -f conftest.
$ac_objext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064 (eval $ac_compile) 2>conftest.er1
13066 grep -v '^ *+' conftest.er1
>conftest.err
13068 cat conftest.err
>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } &&
13071 { ac_try
='test -z "$ac_c_werror_flag"
13072 || test ! -s conftest.err'
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try
='test -s conftest.$ac_objext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13084 ac_cv_type_struct_sockaddr_un
=yes
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.
$ac_ext >&5
13089 ac_cv_type_struct_sockaddr_un
=no
13091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13093 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
13094 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
13095 if test $ac_cv_type_struct_sockaddr_un = yes; then
13097 cat >>confdefs.h
<<_ACEOF
13098 #define HAVE_STRUCT_SOCKADDR_UN 1
13102 cat >>confdefs.h
<<\_ACEOF
13103 #define HAVE_UNIX_SOCKETS 1
13108 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
13109 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
13110 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 cat >conftest.
$ac_ext <<_ACEOF
13116 cat confdefs.h
>>conftest.
$ac_ext
13117 cat >>conftest.
$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 #include <sys/types.h>
13120 #ifdef HAVE_SYS_SOCKET_H
13121 #include <sys/socket.h>
13128 if ((struct sockaddr_storage *) 0)
13130 if (sizeof (struct sockaddr_storage))
13136 rm -f conftest.
$ac_objext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138 (eval $ac_compile) 2>conftest.er1
13140 grep -v '^ *+' conftest.er1
>conftest.err
13142 cat conftest.err
>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try
='test -z "$ac_c_werror_flag"
13146 || test ! -s conftest.err'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try
='test -s conftest.$ac_objext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 ac_cv_type_struct_sockaddr_storage
=yes
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.
$ac_ext >&5
13163 ac_cv_type_struct_sockaddr_storage
=no
13165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13167 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
13168 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
13169 if test $ac_cv_type_struct_sockaddr_storage = yes; then
13171 cat >>confdefs.h
<<_ACEOF
13172 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13178 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
13179 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
13180 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 cat >conftest.
$ac_ext <<_ACEOF
13186 cat confdefs.h
>>conftest.
$ac_ext
13187 cat >>conftest.
$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 #include <sys/types.h>
13190 #ifdef HAVE_SYS_SOCKET_H
13191 #include <sys/socket.h>
13198 static struct sockaddr_storage ac_aggr;
13199 if (ac_aggr.ss_family)
13205 rm -f conftest.
$ac_objext
13206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13207 (eval $ac_compile) 2>conftest.er1
13209 grep -v '^ *+' conftest.er1
>conftest.err
13211 cat conftest.err
>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try
='test -z "$ac_c_werror_flag"
13215 || test ! -s conftest.err'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; } &&
13221 { ac_try
='test -s conftest.$ac_objext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.
$ac_ext >&5
13232 cat >conftest.
$ac_ext <<_ACEOF
13235 cat confdefs.h
>>conftest.
$ac_ext
13236 cat >>conftest.
$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 #include <sys/types.h>
13239 #ifdef HAVE_SYS_SOCKET_H
13240 #include <sys/socket.h>
13247 static struct sockaddr_storage ac_aggr;
13248 if (sizeof ac_aggr.ss_family)
13254 rm -f conftest.
$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13258 grep -v '^ *+' conftest.er1
>conftest.err
13260 cat conftest.err
>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try
='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try
='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.
$ac_ext >&5
13281 ac_cv_member_struct_sockaddr_storage_ss_family
=no
13283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13285 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
13288 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
13289 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
13291 cat >>confdefs.h
<<_ACEOF
13292 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
13297 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
13298 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
13299 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
13300 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 cat >conftest.
$ac_ext <<_ACEOF
13305 cat confdefs.h
>>conftest.
$ac_ext
13306 cat >>conftest.
$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13308 #include <sys/types.h>
13309 #ifdef HAVE_SYS_SOCKET_H
13310 #include <sys/socket.h>
13317 static struct sockaddr_storage ac_aggr;
13318 if (ac_aggr.__ss_family)
13324 rm -f conftest.
$ac_objext
13325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13326 (eval $ac_compile) 2>conftest.er1
13328 grep -v '^ *+' conftest.er1
>conftest.err
13330 cat conftest.err
>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try
='test -z "$ac_c_werror_flag"
13334 || test ! -s conftest.err'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; } &&
13340 { ac_try
='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.
$ac_ext >&5
13351 cat >conftest.
$ac_ext <<_ACEOF
13354 cat confdefs.h
>>conftest.
$ac_ext
13355 cat >>conftest.
$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 #include <sys/types.h>
13358 #ifdef HAVE_SYS_SOCKET_H
13359 #include <sys/socket.h>
13366 static struct sockaddr_storage ac_aggr;
13367 if (sizeof ac_aggr.__ss_family)
13373 rm -f conftest.
$ac_objext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375 (eval $ac_compile) 2>conftest.er1
13377 grep -v '^ *+' conftest.er1
>conftest.err
13379 cat conftest.err
>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } &&
13382 { ac_try
='test -z "$ac_c_werror_flag"
13383 || test ! -s conftest.err'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try
='test -s conftest.$ac_objext'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.
$ac_ext >&5
13400 ac_cv_member_struct_sockaddr_storage___ss_family
=no
13402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
13407 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
13408 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
13410 cat >>confdefs.h
<<_ACEOF
13411 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
13416 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
13417 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
13418 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 cat >conftest.
$ac_ext <<_ACEOF
13424 cat confdefs.h
>>conftest.
$ac_ext
13425 cat >>conftest.
$ac_ext <<_ACEOF
13426 /* end confdefs.h. */
13427 #include <sys/types.h>
13428 #ifdef HAVE_SYS_SOCKET_H
13429 #include <sys/socket.h>
13436 static struct sockaddr_storage ac_aggr;
13437 if (ac_aggr.ss_len)
13443 rm -f conftest.
$ac_objext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445 (eval $ac_compile) 2>conftest.er1
13447 grep -v '^ *+' conftest.er1
>conftest.err
13449 cat conftest.err
>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } &&
13452 { ac_try
='test -z "$ac_c_werror_flag"
13453 || test ! -s conftest.err'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; } &&
13459 { ac_try
='test -s conftest.$ac_objext'
13460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461 (eval $ac_try) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); }; }; then
13465 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.
$ac_ext >&5
13470 cat >conftest.
$ac_ext <<_ACEOF
13473 cat confdefs.h
>>conftest.
$ac_ext
13474 cat >>conftest.
$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 #include <sys/types.h>
13477 #ifdef HAVE_SYS_SOCKET_H
13478 #include <sys/socket.h>
13485 static struct sockaddr_storage ac_aggr;
13486 if (sizeof ac_aggr.ss_len)
13492 rm -f conftest.
$ac_objext
13493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13494 (eval $ac_compile) 2>conftest.er1
13496 grep -v '^ *+' conftest.er1
>conftest.err
13498 cat conftest.err
>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } &&
13501 { ac_try
='test -z "$ac_c_werror_flag"
13502 || test ! -s conftest.err'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; } &&
13508 { ac_try
='test -s conftest.$ac_objext'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; }; then
13514 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.
$ac_ext >&5
13519 ac_cv_member_struct_sockaddr_storage_ss_len
=no
13521 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13525 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
13526 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
13527 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
13529 cat >>confdefs.h
<<_ACEOF
13530 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
13535 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
13536 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
13537 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 cat >conftest.
$ac_ext <<_ACEOF
13543 cat confdefs.h
>>conftest.
$ac_ext
13544 cat >>conftest.
$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13546 #include <sys/types.h>
13547 #ifdef HAVE_SYS_SOCKET_H
13548 #include <sys/socket.h>
13555 static struct sockaddr_storage ac_aggr;
13556 if (ac_aggr.__ss_len)
13562 rm -f conftest.
$ac_objext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13564 (eval $ac_compile) 2>conftest.er1
13566 grep -v '^ *+' conftest.er1
>conftest.err
13568 cat conftest.err
>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try
='test -z "$ac_c_werror_flag"
13572 || test ! -s conftest.err'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try
='test -s conftest.$ac_objext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.
$ac_ext >&5
13589 cat >conftest.
$ac_ext <<_ACEOF
13592 cat confdefs.h
>>conftest.
$ac_ext
13593 cat >>conftest.
$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 #include <sys/types.h>
13596 #ifdef HAVE_SYS_SOCKET_H
13597 #include <sys/socket.h>
13604 static struct sockaddr_storage ac_aggr;
13605 if (sizeof ac_aggr.__ss_len)
13611 rm -f conftest.
$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
13615 grep -v '^ *+' conftest.er1
>conftest.err
13617 cat conftest.err
>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try
='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try
='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.
$ac_ext >&5
13638 ac_cv_member_struct_sockaddr_storage___ss_len
=no
13640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13644 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
13645 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
13646 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
13648 cat >>confdefs.h
<<_ACEOF
13649 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
13654 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13655 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13656 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 cat >conftest.
$ac_ext <<_ACEOF
13662 cat confdefs.h
>>conftest.
$ac_ext
13663 cat >>conftest.
$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 #include <sys/types.h>
13666 #ifdef HAVE_SYS_SOCKET_H
13667 #include <sys/socket.h>
13674 static struct sockaddr ac_aggr;
13675 if (ac_aggr.sa_len)
13681 rm -f conftest.
$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>conftest.er1
13685 grep -v '^ *+' conftest.er1
>conftest.err
13687 cat conftest.err
>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try
='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try
='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_member_struct_sockaddr_sa_len
=yes
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.
$ac_ext >&5
13708 cat >conftest.
$ac_ext <<_ACEOF
13711 cat confdefs.h
>>conftest.
$ac_ext
13712 cat >>conftest.
$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 #include <sys/types.h>
13715 #ifdef HAVE_SYS_SOCKET_H
13716 #include <sys/socket.h>
13723 static struct sockaddr ac_aggr;
13724 if (sizeof ac_aggr.sa_len)
13730 rm -f conftest.
$ac_objext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13732 (eval $ac_compile) 2>conftest.er1
13734 grep -v '^ *+' conftest.er1
>conftest.err
13736 cat conftest.err
>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try
='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try
='test -s conftest.$ac_objext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_member_struct_sockaddr_sa_len
=yes
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.
$ac_ext >&5
13757 ac_cv_member_struct_sockaddr_sa_len
=no
13759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13763 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13764 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13765 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13767 cat >>confdefs.h
<<_ACEOF
13768 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13774 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13775 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13776 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 cat >conftest.
$ac_ext <<_ACEOF
13782 cat confdefs.h
>>conftest.
$ac_ext
13783 cat >>conftest.
$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 #include <sys/types.h>
13786 #include <sys/socket.h>
13793 if ((struct addrinfo *) 0)
13795 if (sizeof (struct addrinfo))
13801 rm -f conftest.
$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>conftest.er1
13805 grep -v '^ *+' conftest.er1
>conftest.err
13807 cat conftest.err
>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try
='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try
='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_type_struct_addrinfo
=yes
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.
$ac_ext >&5
13828 ac_cv_type_struct_addrinfo
=no
13830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13832 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13833 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
13834 if test $ac_cv_type_struct_addrinfo = yes; then
13836 cat >>confdefs.h
<<_ACEOF
13837 #define HAVE_STRUCT_ADDRINFO 1
13844 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
13845 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
13846 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 cat >conftest.
$ac_ext <<_ACEOF
13852 cat confdefs.h
>>conftest.
$ac_ext
13853 cat >>conftest.
$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 #include <sys/param.h>
13856 #include <sys/types.h>
13857 #include <sys/socket.h>
13858 #include <sys/ucred.h>
13863 if ((struct cmsgcred *) 0)
13865 if (sizeof (struct cmsgcred))
13871 rm -f conftest.
$ac_objext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873 (eval $ac_compile) 2>conftest.er1
13875 grep -v '^ *+' conftest.er1
>conftest.err
13877 cat conftest.err
>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try
='test -z "$ac_c_werror_flag"
13881 || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try
='test -s conftest.$ac_objext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 ac_cv_type_struct_cmsgcred
=yes
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.
$ac_ext >&5
13898 ac_cv_type_struct_cmsgcred
=no
13900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13902 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
13903 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
13904 if test $ac_cv_type_struct_cmsgcred = yes; then
13906 cat >>confdefs.h
<<_ACEOF
13907 #define HAVE_STRUCT_CMSGCRED 1
13912 echo "$as_me:$LINENO: checking for struct fcred" >&5
13913 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
13914 if test "${ac_cv_type_struct_fcred+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 cat >conftest.
$ac_ext <<_ACEOF
13920 cat confdefs.h
>>conftest.
$ac_ext
13921 cat >>conftest.
$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 #include <sys/param.h>
13924 #include <sys/types.h>
13925 #include <sys/socket.h>
13926 #include <sys/ucred.h>
13931 if ((struct fcred *) 0)
13933 if (sizeof (struct fcred))
13939 rm -f conftest.
$ac_objext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941 (eval $ac_compile) 2>conftest.er1
13943 grep -v '^ *+' conftest.er1
>conftest.err
13945 cat conftest.err
>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try
='test -z "$ac_c_werror_flag"
13949 || test ! -s conftest.err'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; } &&
13955 { ac_try
='test -s conftest.$ac_objext'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13961 ac_cv_type_struct_fcred
=yes
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.
$ac_ext >&5
13966 ac_cv_type_struct_fcred
=no
13968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13970 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
13971 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
13972 if test $ac_cv_type_struct_fcred = yes; then
13974 cat >>confdefs.h
<<_ACEOF
13975 #define HAVE_STRUCT_FCRED 1
13980 echo "$as_me:$LINENO: checking for struct sockcred" >&5
13981 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
13982 if test "${ac_cv_type_struct_sockcred+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 cat >conftest.
$ac_ext <<_ACEOF
13988 cat confdefs.h
>>conftest.
$ac_ext
13989 cat >>conftest.
$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 #include <sys/param.h>
13992 #include <sys/types.h>
13993 #include <sys/socket.h>
13994 #include <sys/ucred.h>
13999 if ((struct sockcred *) 0)
14001 if (sizeof (struct sockcred))
14007 rm -f conftest.
$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009 (eval $ac_compile) 2>conftest.er1
14011 grep -v '^ *+' conftest.er1
>conftest.err
14013 cat conftest.err
>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try
='test -z "$ac_c_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try
='test -s conftest.$ac_objext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_cv_type_struct_sockcred
=yes
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.
$ac_ext >&5
14034 ac_cv_type_struct_sockcred
=no
14036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14039 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
14040 if test $ac_cv_type_struct_sockcred = yes; then
14042 cat >>confdefs.h
<<_ACEOF
14043 #define HAVE_STRUCT_SOCKCRED 1
14050 echo "$as_me:$LINENO: checking for struct option" >&5
14051 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
14052 if test "${ac_cv_type_struct_option+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 cat >conftest.
$ac_ext <<_ACEOF
14058 cat confdefs.h
>>conftest.
$ac_ext
14059 cat >>conftest.
$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #ifdef HAVE_GETOPT_H
14062 #include <getopt.h>
14068 if ((struct option *) 0)
14070 if (sizeof (struct option))
14076 rm -f conftest.
$ac_objext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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 { ac_try
='test -z "$ac_c_werror_flag"
14086 || test ! -s conftest.err'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try
='test -s conftest.$ac_objext'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_cv_type_struct_option
=yes
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.
$ac_ext >&5
14103 ac_cv_type_struct_option
=no
14105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14107 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14108 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
14109 if test $ac_cv_type_struct_option = yes; then
14111 cat >>confdefs.h
<<_ACEOF
14112 #define HAVE_STRUCT_OPTION 1
14119 if test "$with_zlib" = yes; then
14120 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14121 # did not). While we could work around the lack of z_streamp, it
14122 # seems unwise to encourage people to use such old zlib versions...
14123 echo "$as_me:$LINENO: checking for z_streamp" >&5
14124 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
14125 if test "${ac_cv_type_z_streamp+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 cat >conftest.
$ac_ext <<_ACEOF
14131 cat confdefs.h
>>conftest.
$ac_ext
14132 cat >>conftest.
$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14139 if ((z_streamp *) 0)
14141 if (sizeof (z_streamp))
14147 rm -f conftest.
$ac_objext
14148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14149 (eval $ac_compile) 2>conftest.er1
14151 grep -v '^ *+' conftest.er1
>conftest.err
14153 cat conftest.err
>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } &&
14156 { ac_try
='test -z "$ac_c_werror_flag"
14157 || test ! -s conftest.err'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; } &&
14163 { ac_try
='test -s conftest.$ac_objext'
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then
14169 ac_cv_type_z_streamp
=yes
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.
$ac_ext >&5
14174 ac_cv_type_z_streamp
=no
14176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14178 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
14179 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
14180 if test $ac_cv_type_z_streamp = yes; then
14183 { { echo "$as_me:$LINENO: error: zlib version is too old
14184 Use --without-zlib to disable zlib support." >&5
14185 echo "$as_me: error: zlib version is too old
14186 Use --without-zlib to disable zlib support." >&2;}
14187 { (exit 1); exit 1; }; }
14192 if test "$with_krb5" = yes; then
14193 # Check for differences between MIT and Heimdal (KTH) releases
14194 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
14195 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
14196 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 cat >conftest.
$ac_ext <<_ACEOF
14202 cat confdefs.h
>>conftest.
$ac_ext
14203 cat >>conftest.
$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14210 static krb5_ticket ac_aggr;
14211 if (ac_aggr.enc_part2)
14217 rm -f conftest.
$ac_objext
14218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14219 (eval $ac_compile) 2>conftest.er1
14221 grep -v '^ *+' conftest.er1
>conftest.err
14223 cat conftest.err
>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } &&
14226 { ac_try
='test -z "$ac_c_werror_flag"
14227 || test ! -s conftest.err'
14228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); }; } &&
14233 { ac_try
='test -s conftest.$ac_objext'
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14239 ac_cv_member_krb5_ticket_enc_part2
=yes
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.
$ac_ext >&5
14244 cat >conftest.
$ac_ext <<_ACEOF
14247 cat confdefs.h
>>conftest.
$ac_ext
14248 cat >>conftest.
$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14255 static krb5_ticket ac_aggr;
14256 if (sizeof ac_aggr.enc_part2)
14262 rm -f conftest.
$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264 (eval $ac_compile) 2>conftest.er1
14266 grep -v '^ *+' conftest.er1
>conftest.err
14268 cat conftest.err
>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try
='test -z "$ac_c_werror_flag"
14272 || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try
='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_cv_member_krb5_ticket_enc_part2
=yes
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.
$ac_ext >&5
14289 ac_cv_member_krb5_ticket_enc_part2
=no
14291 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14293 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14295 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
14296 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
14297 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
14299 cat >>confdefs.h
<<_ACEOF
14300 #define HAVE_KRB5_TICKET_ENC_PART2 1
14305 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
14306 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
14307 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 cat >conftest.
$ac_ext <<_ACEOF
14313 cat confdefs.h
>>conftest.
$ac_ext
14314 cat >>conftest.
$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14321 static krb5_ticket ac_aggr;
14322 if (ac_aggr.client)
14328 rm -f conftest.
$ac_objext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>conftest.er1
14332 grep -v '^ *+' conftest.er1
>conftest.err
14334 cat conftest.err
>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
14337 { ac_try
='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try
='test -s conftest.$ac_objext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_cv_member_krb5_ticket_client
=yes
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.
$ac_ext >&5
14355 cat >conftest.
$ac_ext <<_ACEOF
14358 cat confdefs.h
>>conftest.
$ac_ext
14359 cat >>conftest.
$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14366 static krb5_ticket ac_aggr;
14367 if (sizeof ac_aggr.client)
14373 rm -f conftest.
$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375 (eval $ac_compile) 2>conftest.er1
14377 grep -v '^ *+' conftest.er1
>conftest.err
14379 cat conftest.err
>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try
='test -z "$ac_c_werror_flag"
14383 || test ! -s conftest.err'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try
='test -s conftest.$ac_objext'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 ac_cv_member_krb5_ticket_client
=yes
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.
$ac_ext >&5
14400 ac_cv_member_krb5_ticket_client
=no
14402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14406 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
14407 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
14408 if test $ac_cv_member_krb5_ticket_client = yes; then
14410 cat >>confdefs.h
<<_ACEOF
14411 #define HAVE_KRB5_TICKET_CLIENT 1
14416 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
14417 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
14418 { (exit 1); exit 1; }; }
14423 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
14424 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
14425 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 cat >conftest.
$ac_ext <<_ACEOF
14431 cat confdefs.h
>>conftest.
$ac_ext
14432 cat >>conftest.
$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14439 static krb5_error ac_aggr;
14440 if (ac_aggr.text.data)
14446 rm -f conftest.
$ac_objext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14448 (eval $ac_compile) 2>conftest.er1
14450 grep -v '^ *+' conftest.er1
>conftest.err
14452 cat conftest.err
>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try
='test -z "$ac_c_werror_flag"
14456 || test ! -s conftest.err'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; } &&
14462 { ac_try
='test -s conftest.$ac_objext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_cv_member_krb5_error_text_data
=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.
$ac_ext >&5
14473 cat >conftest.
$ac_ext <<_ACEOF
14476 cat confdefs.h
>>conftest.
$ac_ext
14477 cat >>conftest.
$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14484 static krb5_error ac_aggr;
14485 if (sizeof ac_aggr.text.data)
14491 rm -f conftest.
$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>conftest.er1
14495 grep -v '^ *+' conftest.er1
>conftest.err
14497 cat conftest.err
>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } &&
14500 { ac_try
='test -z "$ac_c_werror_flag"
14501 || test ! -s conftest.err'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; } &&
14507 { ac_try
='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_cv_member_krb5_error_text_data
=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.
$ac_ext >&5
14518 ac_cv_member_krb5_error_text_data
=no
14520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14524 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
14525 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
14526 if test $ac_cv_member_krb5_error_text_data = yes; then
14528 cat >>confdefs.h
<<_ACEOF
14529 #define HAVE_KRB5_ERROR_TEXT_DATA 1
14534 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
14535 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
14536 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 cat >conftest.
$ac_ext <<_ACEOF
14542 cat confdefs.h
>>conftest.
$ac_ext
14543 cat >>conftest.
$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14550 static krb5_error ac_aggr;
14551 if (ac_aggr.e_data)
14557 rm -f conftest.
$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559 (eval $ac_compile) 2>conftest.er1
14561 grep -v '^ *+' conftest.er1
>conftest.err
14563 cat conftest.err
>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
14566 { ac_try
='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try
='test -s conftest.$ac_objext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_cv_member_krb5_error_e_data
=yes
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.
$ac_ext >&5
14584 cat >conftest.
$ac_ext <<_ACEOF
14587 cat confdefs.h
>>conftest.
$ac_ext
14588 cat >>conftest.
$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14595 static krb5_error ac_aggr;
14596 if (sizeof ac_aggr.e_data)
14602 rm -f conftest.
$ac_objext
14603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14604 (eval $ac_compile) 2>conftest.er1
14606 grep -v '^ *+' conftest.er1
>conftest.err
14608 cat conftest.err
>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try
='test -z "$ac_c_werror_flag"
14612 || test ! -s conftest.err'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try
='test -s conftest.$ac_objext'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; }; then
14624 ac_cv_member_krb5_error_e_data
=yes
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.
$ac_ext >&5
14629 ac_cv_member_krb5_error_e_data
=no
14631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14635 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
14636 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
14637 if test $ac_cv_member_krb5_error_e_data = yes; then
14639 cat >>confdefs.h
<<_ACEOF
14640 #define HAVE_KRB5_ERROR_E_DATA 1
14645 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
14646 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
14647 { (exit 1); exit 1; }; }
14653 # Win32 requires headers to be loaded for __stdcall, so can't use
14654 # AC_CHECK_FUNCS here.
14655 echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
14656 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6
14657 cat >conftest.
$ac_ext <<_ACEOF
14660 cat confdefs.h
>>conftest.
$ac_ext
14661 cat >>conftest.
$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14667 krb5_free_unparsed_name(NULL,NULL);
14672 rm -f conftest.
$ac_objext conftest
$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674 (eval $ac_link) 2>conftest.er1
14676 grep -v '^ *+' conftest.er1
>conftest.err
14678 cat conftest.err
>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try
='test -z "$ac_c_werror_flag"
14682 || test ! -s conftest.err'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try
='test -s conftest$ac_exeext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14695 cat >>confdefs.h
<<\_ACEOF
14696 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
14699 echo "$as_me:$LINENO: result: yes" >&5
14700 echo "${ECHO_T}yes" >&6
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.
$ac_ext >&5
14705 echo "$as_me:$LINENO: result: no" >&5
14706 echo "${ECHO_T}no" >&6
14708 rm -f conftest.err conftest.
$ac_objext \
14709 conftest
$ac_exeext conftest.
$ac_ext
14714 ## Functions, global variables
14717 echo "$as_me:$LINENO: checking for int timezone" >&5
14718 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
14719 if test "${pgac_cv_var_int_timezone+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 cat >conftest.
$ac_ext <<_ACEOF
14725 cat confdefs.h
>>conftest.
$ac_ext
14726 cat >>conftest.
$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14734 res = timezone / 60;
14736 res = _timezone / 60;
14742 rm -f conftest.
$ac_objext conftest
$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1
>conftest.err
14748 cat conftest.err
>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try
='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try
='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 pgac_cv_var_int_timezone
=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.
$ac_ext >&5
14769 pgac_cv_var_int_timezone
=no
14771 rm -f conftest.err conftest.
$ac_objext \
14772 conftest
$ac_exeext conftest.
$ac_ext
14774 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
14775 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
14776 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
14778 cat >>confdefs.h
<<\_ACEOF
14779 #define HAVE_INT_TIMEZONE
14783 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
14784 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
14785 if test "${ac_cv_func_accept_return+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 if test "${ac_cv_func_accept_arg1+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 if test "${ac_cv_func_accept_arg2+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 if test "${ac_cv_func_accept_arg3+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 for ac_cv_func_accept_return
in 'int' 'unsigned int PASCAL'; do
14798 for ac_cv_func_accept_arg1
in 'int' 'unsigned int'; do
14799 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14800 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14801 cat >conftest.
$ac_ext <<_ACEOF
14804 cat confdefs.h
>>conftest.
$ac_ext
14805 cat >>conftest.
$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 #ifdef HAVE_SYS_TYPES_H
14808 #include <sys/types.h>
14810 #ifdef HAVE_SYS_SOCKET_H
14811 #include <sys/socket.h>
14813 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14822 rm -f conftest.
$ac_objext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14824 (eval $ac_compile) 2>conftest.er1
14826 grep -v '^ *+' conftest.er1
>conftest.err
14828 cat conftest.err
>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
14831 { ac_try
='test -z "$ac_c_werror_flag"
14832 || test ! -s conftest.err'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try
='test -s conftest.$ac_objext'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_not_found
=no
; break 4
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.
$ac_ext >&5
14851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14856 if test "$ac_not_found" = yes; then
14857 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
14858 echo "$as_me: error: could not determine argument types" >&2;}
14859 { (exit 1); exit 1; }; }
14861 if test "$ac_cv_func_accept_arg3" = "void"; then
14862 ac_cv_func_accept_arg3
=int
14872 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
14873 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
14875 cat >>confdefs.h
<<_ACEOF
14876 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14880 cat >>confdefs.h
<<_ACEOF
14881 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14885 cat >>confdefs.h
<<_ACEOF
14886 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14890 cat >>confdefs.h
<<_ACEOF
14891 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14895 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
14896 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
14897 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 cat >conftest.
$ac_ext <<_ACEOF
14903 cat confdefs.h
>>conftest.
$ac_ext
14904 cat >>conftest.
$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <sys/time.h>
14910 struct timeval *tp;
14911 struct timezone *tzp;
14912 gettimeofday(tp,tzp);
14917 rm -f conftest.
$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919 (eval $ac_compile) 2>conftest.er1
14921 grep -v '^ *+' conftest.er1
>conftest.err
14923 cat conftest.err
>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } &&
14926 { ac_try
='test -z "$ac_c_werror_flag"
14927 || test ! -s conftest.err'
14928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929 (eval $ac_try) 2>&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try
='test -s conftest.$ac_objext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 pgac_cv_func_gettimeofday_1arg
=no
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.
$ac_ext >&5
14944 pgac_cv_func_gettimeofday_1arg
=yes
14946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14948 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
14949 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
14950 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
14952 cat >>confdefs.h
<<\_ACEOF
14953 #define GETTIMEOFDAY_1ARG
14980 for ac_func
in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
14982 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14983 echo "$as_me:$LINENO: checking for $ac_func" >&5
14984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14985 if eval "test \"\${$as_ac_var+set}\" = set"; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 cat >conftest.
$ac_ext <<_ACEOF
14991 cat confdefs.h
>>conftest.
$ac_ext
14992 cat >>conftest.
$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14996 #define $ac_func innocuous_$ac_func
14998 /* System header to define __stub macros and hopefully few prototypes,
14999 which can conflict with char $ac_func (); below.
15000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15001 <limits.h> exists even on freestanding compilers. */
15004 # include <limits.h>
15006 # include <assert.h>
15011 /* Override any gcc2 internal prototype to avoid an error. */
15016 /* We use char because int might match the return type of a gcc2
15017 builtin and then its argument prototype would still apply. */
15019 /* The GNU C library defines this for functions which it implements
15020 to always fail with ENOSYS. Some functions are actually named
15021 something starting with __ and the normal name is an alias. */
15022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15025 char (*f) () = $ac_func;
15034 return f != $ac_func;
15039 rm -f conftest.
$ac_objext conftest
$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>conftest.er1
15043 grep -v '^ *+' conftest.er1
>conftest.err
15045 cat conftest.err
>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try
='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try
='test -s conftest$ac_exeext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 eval "$as_ac_var=yes"
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.
$ac_ext >&5
15066 eval "$as_ac_var=no"
15068 rm -f conftest.err conftest.
$ac_objext \
15069 conftest
$ac_exeext conftest.
$ac_ext
15071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15073 if test `eval echo '${'$as_ac_var'}'` = yes; then
15074 cat >>confdefs.h
<<_ACEOF
15075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15082 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15083 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
15084 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 cat >conftest.
$ac_ext <<_ACEOF
15090 cat confdefs.h
>>conftest.
$ac_ext
15091 cat >>conftest.
$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15093 #include <unistd.h>
15099 char *p = (char *) fdatasync;
15106 rm -f conftest.
$ac_objext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>conftest.er1
15110 grep -v '^ *+' conftest.er1
>conftest.err
15112 cat conftest.err
>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try
='test -z "$ac_c_werror_flag"
15116 || test ! -s conftest.err'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try
='test -s conftest.$ac_objext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 ac_cv_have_decl_fdatasync
=yes
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.
$ac_ext >&5
15133 ac_cv_have_decl_fdatasync
=no
15135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15137 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15138 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
15139 if test $ac_cv_have_decl_fdatasync = yes; then
15141 cat >>confdefs.h
<<_ACEOF
15142 #define HAVE_DECL_FDATASYNC 1
15147 cat >>confdefs.h
<<_ACEOF
15148 #define HAVE_DECL_FDATASYNC 0
15155 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15156 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
15157 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15160 cat >conftest.
$ac_ext <<_ACEOF
15163 cat confdefs.h
>>conftest.
$ac_ext
15164 cat >>conftest.
$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15171 #ifndef posix_fadvise
15172 char *p = (char *) posix_fadvise;
15179 rm -f conftest.
$ac_objext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15181 (eval $ac_compile) 2>conftest.er1
15183 grep -v '^ *+' conftest.er1
>conftest.err
15185 cat conftest.err
>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
15188 { ac_try
='test -z "$ac_c_werror_flag"
15189 || test ! -s conftest.err'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try
='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_cv_have_decl_posix_fadvise
=yes
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.
$ac_ext >&5
15206 ac_cv_have_decl_posix_fadvise
=no
15208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15210 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
15211 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
15212 if test $ac_cv_have_decl_posix_fadvise = yes; then
15214 cat >>confdefs.h
<<_ACEOF
15215 #define HAVE_DECL_POSIX_FADVISE 1
15220 cat >>confdefs.h
<<_ACEOF
15221 #define HAVE_DECL_POSIX_FADVISE 0
15228 echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
15229 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6
15230 if test "${ac_cv_have_decl_strlcat+set}" = set; then
15231 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 cat >conftest.
$ac_ext <<_ACEOF
15236 cat confdefs.h
>>conftest.
$ac_ext
15237 cat >>conftest.
$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 $ac_includes_default
15244 char *p = (char *) strlcat;
15251 rm -f conftest.
$ac_objext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15253 (eval $ac_compile) 2>conftest.er1
15255 grep -v '^ *+' conftest.er1
>conftest.err
15257 cat conftest.err
>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try
='test -z "$ac_c_werror_flag"
15261 || test ! -s conftest.err'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try
='test -s conftest.$ac_objext'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 ac_cv_have_decl_strlcat
=yes
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.
$ac_ext >&5
15278 ac_cv_have_decl_strlcat
=no
15280 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15282 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
15283 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6
15284 if test $ac_cv_have_decl_strlcat = yes; then
15286 cat >>confdefs.h
<<_ACEOF
15287 #define HAVE_DECL_STRLCAT 1
15292 cat >>confdefs.h
<<_ACEOF
15293 #define HAVE_DECL_STRLCAT 0
15298 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
15299 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
15300 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 cat >conftest.
$ac_ext <<_ACEOF
15306 cat confdefs.h
>>conftest.
$ac_ext
15307 cat >>conftest.
$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 $ac_includes_default
15314 char *p = (char *) strlcpy;
15321 rm -f conftest.
$ac_objext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15323 (eval $ac_compile) 2>conftest.er1
15325 grep -v '^ *+' conftest.er1
>conftest.err
15327 cat conftest.err
>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try
='test -z "$ac_c_werror_flag"
15331 || test ! -s conftest.err'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try
='test -s conftest.$ac_objext'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; }; then
15343 ac_cv_have_decl_strlcpy
=yes
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.
$ac_ext >&5
15348 ac_cv_have_decl_strlcpy
=no
15350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15352 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
15353 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
15354 if test $ac_cv_have_decl_strlcpy = yes; then
15356 cat >>confdefs.h
<<_ACEOF
15357 #define HAVE_DECL_STRLCPY 1
15362 cat >>confdefs.h
<<_ACEOF
15363 #define HAVE_DECL_STRLCPY 0
15370 # This is probably only present on Darwin, but may as well check always
15371 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
15372 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
15373 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 cat >conftest.
$ac_ext <<_ACEOF
15379 cat confdefs.h
>>conftest.
$ac_ext
15380 cat >>conftest.
$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15387 #ifndef F_FULLFSYNC
15388 char *p = (char *) F_FULLFSYNC;
15395 rm -f conftest.
$ac_objext
15396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15397 (eval $ac_compile) 2>conftest.er1
15399 grep -v '^ *+' conftest.er1
>conftest.err
15401 cat conftest.err
>&5
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
15404 { ac_try
='test -z "$ac_c_werror_flag"
15405 || test ! -s conftest.err'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); }; } &&
15411 { ac_try
='test -s conftest.$ac_objext'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; }; then
15417 ac_cv_have_decl_F_FULLFSYNC
=yes
15419 echo "$as_me: failed program was:" >&5
15420 sed 's/^/| /' conftest.
$ac_ext >&5
15422 ac_cv_have_decl_F_FULLFSYNC
=no
15424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15426 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
15427 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
15428 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
15430 cat >>confdefs.h
<<_ACEOF
15431 #define HAVE_DECL_F_FULLFSYNC 1
15436 cat >>confdefs.h
<<_ACEOF
15437 #define HAVE_DECL_F_FULLFSYNC 0
15446 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
15447 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
15448 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 cat >conftest.
$ac_ext <<_ACEOF
15454 cat confdefs.h
>>conftest.
$ac_ext
15455 cat >>conftest.
$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 $ac_includes_default
15458 #include <netinet/in.h>
15463 if ((struct sockaddr_in6 *) 0)
15465 if (sizeof (struct sockaddr_in6))
15471 rm -f conftest.
$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473 (eval $ac_compile) 2>conftest.er1
15475 grep -v '^ *+' conftest.er1
>conftest.err
15477 cat conftest.err
>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try
='test -z "$ac_c_werror_flag"
15481 || test ! -s conftest.err'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try
='test -s conftest.$ac_objext'
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 ac_cv_type_struct_sockaddr_in6
=yes
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.
$ac_ext >&5
15498 ac_cv_type_struct_sockaddr_in6
=no
15500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15502 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
15503 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
15504 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
15506 cat >>confdefs.h
<<\_ACEOF
15507 #define HAVE_IPV6 1
15515 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
15516 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
15517 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 cat >conftest.
$ac_ext <<_ACEOF
15523 cat confdefs.h
>>conftest.
$ac_ext
15524 cat >>conftest.
$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15526 #include <machine/vmparam.h>
15527 #include <sys/exec.h>
15532 PS_STRINGS->ps_nargvstr = 1;
15533 PS_STRINGS->ps_argvstr = "foo";
15538 rm -f conftest.
$ac_objext conftest
$ac_exeext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15540 (eval $ac_link) 2>conftest.er1
15542 grep -v '^ *+' conftest.er1
>conftest.err
15544 cat conftest.err
>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } &&
15547 { ac_try
='test -z "$ac_c_werror_flag"
15548 || test ! -s conftest.err'
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try
='test -s conftest$ac_exeext'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 pgac_cv_var_PS_STRINGS
=yes
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.
$ac_ext >&5
15565 pgac_cv_var_PS_STRINGS
=no
15567 rm -f conftest.err conftest.
$ac_objext \
15568 conftest
$ac_exeext conftest.
$ac_ext
15570 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
15571 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
15572 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15574 cat >>confdefs.h
<<\_ACEOF
15575 #define HAVE_PS_STRINGS
15581 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
15582 # is missing. Yes, there are machines that have only one. We may
15583 # also decide to use snprintf.c if snprintf() is present but does not
15584 # have all the features we need --- see below.
15586 if test "$PORTNAME" = "win32"; then
15587 # Win32 gets snprintf.c built unconditionally.
15589 # To properly translate all NLS languages strings, we must support the
15590 # *printf() %$ format, which allows *printf() arguments to be selected
15591 # by position in the translated string.
15593 # libintl versions < 0.13 use the native *printf() functions, and Win32
15594 # *printf() doesn't understand %$, so we must use our /port versions,
15595 # which do understand %$. libintl versions >= 0.13 include their own
15596 # *printf versions on Win32. The libintl 0.13 release note text is:
15598 # C format strings with positions, as they arise when a translator
15599 # needs to reorder a sentence, are now supported on all platforms.
15600 # On those few platforms (NetBSD and Woe32) for which the native
15601 # printf()/fprintf()/... functions don't support such format
15602 # strings, replacements are provided through <libintl.h>.
15604 # We could use libintl >= 0.13's *printf() if we were sure that we had
15605 # a litint >= 0.13 at runtime, but seeing that there is no clean way
15606 # to guarantee that, it is best to just use our own, so we are sure to
15607 # get %$ support. In include/port.h we disable the *printf() macros
15608 # that might have been defined by libintl.
15610 # We do this unconditionally whether NLS is used or not so we are sure
15611 # that all Win32 libraries and binaries behave the same.
15612 pgac_need_repl_snprintf
=yes
15614 pgac_need_repl_snprintf
=no
15616 for ac_func
in snprintf
15618 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15619 echo "$as_me:$LINENO: checking for $ac_func" >&5
15620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15621 if eval "test \"\${$as_ac_var+set}\" = set"; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 cat >conftest.
$ac_ext <<_ACEOF
15627 cat confdefs.h
>>conftest.
$ac_ext
15628 cat >>conftest.
$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15632 #define $ac_func innocuous_$ac_func
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func (); below.
15636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15637 <limits.h> exists even on freestanding compilers. */
15640 # include <limits.h>
15642 # include <assert.h>
15647 /* Override any gcc2 internal prototype to avoid an error. */
15652 /* We use char because int might match the return type of a gcc2
15653 builtin and then its argument prototype would still apply. */
15655 /* The GNU C library defines this for functions which it implements
15656 to always fail with ENOSYS. Some functions are actually named
15657 something starting with __ and the normal name is an alias. */
15658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15661 char (*f) () = $ac_func;
15670 return f != $ac_func;
15675 rm -f conftest.
$ac_objext conftest
$ac_exeext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>conftest.er1
15679 grep -v '^ *+' conftest.er1
>conftest.err
15681 cat conftest.err
>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try
='test -z "$ac_c_werror_flag"
15685 || test ! -s conftest.err'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try
='test -s conftest$ac_exeext'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 eval "$as_ac_var=yes"
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.
$ac_ext >&5
15702 eval "$as_ac_var=no"
15704 rm -f conftest.err conftest.
$ac_objext \
15705 conftest
$ac_exeext conftest.
$ac_ext
15707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15709 if test `eval echo '${'$as_ac_var'}'` = yes; then
15710 cat >>confdefs.h
<<_ACEOF
15711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15715 pgac_need_repl_snprintf
=yes
15720 for ac_func
in vsnprintf
15722 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15723 echo "$as_me:$LINENO: checking for $ac_func" >&5
15724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15725 if eval "test \"\${$as_ac_var+set}\" = set"; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 cat >conftest.
$ac_ext <<_ACEOF
15731 cat confdefs.h
>>conftest.
$ac_ext
15732 cat >>conftest.
$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15736 #define $ac_func innocuous_$ac_func
15738 /* System header to define __stub macros and hopefully few prototypes,
15739 which can conflict with char $ac_func (); below.
15740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15741 <limits.h> exists even on freestanding compilers. */
15744 # include <limits.h>
15746 # include <assert.h>
15751 /* Override any gcc2 internal prototype to avoid an error. */
15756 /* We use char because int might match the return type of a gcc2
15757 builtin and then its argument prototype would still apply. */
15759 /* The GNU C library defines this for functions which it implements
15760 to always fail with ENOSYS. Some functions are actually named
15761 something starting with __ and the normal name is an alias. */
15762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15765 char (*f) () = $ac_func;
15774 return f != $ac_func;
15779 rm -f conftest.
$ac_objext conftest
$ac_exeext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15781 (eval $ac_link) 2>conftest.er1
15783 grep -v '^ *+' conftest.er1
>conftest.err
15785 cat conftest.err
>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
15788 { ac_try
='test -z "$ac_c_werror_flag"
15789 || test ! -s conftest.err'
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; } &&
15795 { ac_try
='test -s conftest$ac_exeext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 eval "$as_ac_var=yes"
15803 echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.
$ac_ext >&5
15806 eval "$as_ac_var=no"
15808 rm -f conftest.err conftest.
$ac_objext \
15809 conftest
$ac_exeext conftest.
$ac_ext
15811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814 cat >>confdefs.h
<<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15819 pgac_need_repl_snprintf
=yes
15826 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
15827 # include/c.h will provide declarations. Note this is a separate test
15828 # from whether the functions exist in the C library --- there are
15829 # systems that have the functions but don't bother to declare them :-(
15831 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15832 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15833 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 cat >conftest.
$ac_ext <<_ACEOF
15839 cat confdefs.h
>>conftest.
$ac_ext
15840 cat >>conftest.
$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15842 $ac_includes_default
15847 char *p = (char *) snprintf;
15854 rm -f conftest.
$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856 (eval $ac_compile) 2>conftest.er1
15858 grep -v '^ *+' conftest.er1
>conftest.err
15860 cat conftest.err
>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
15863 { ac_try
='test -z "$ac_c_werror_flag"
15864 || test ! -s conftest.err'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try
='test -s conftest.$ac_objext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_cv_have_decl_snprintf
=yes
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.
$ac_ext >&5
15881 ac_cv_have_decl_snprintf
=no
15883 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15885 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15886 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15887 if test $ac_cv_have_decl_snprintf = yes; then
15889 cat >>confdefs.h
<<_ACEOF
15890 #define HAVE_DECL_SNPRINTF 1
15895 cat >>confdefs.h
<<_ACEOF
15896 #define HAVE_DECL_SNPRINTF 0
15901 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15902 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15903 if test "${ac_cv_have_decl_vsnprintf+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 $ac_includes_default
15917 char *p = (char *) vsnprintf;
15924 rm -f conftest.
$ac_objext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>conftest.er1
15928 grep -v '^ *+' conftest.er1
>conftest.err
15930 cat conftest.err
>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try
='test -z "$ac_c_werror_flag"
15934 || test ! -s conftest.err'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try
='test -s conftest.$ac_objext'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_cv_have_decl_vsnprintf
=yes
15948 echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.
$ac_ext >&5
15951 ac_cv_have_decl_vsnprintf
=no
15953 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15955 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15956 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15957 if test $ac_cv_have_decl_vsnprintf = yes; then
15959 cat >>confdefs.h
<<_ACEOF
15960 #define HAVE_DECL_VSNPRINTF 1
15965 cat >>confdefs.h
<<_ACEOF
15966 #define HAVE_DECL_VSNPRINTF 0
15975 echo "$as_me:$LINENO: checking for isinf" >&5
15976 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
15977 if test "${ac_cv_func_isinf+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 cat >conftest.
$ac_ext <<_ACEOF
15983 cat confdefs.h
>>conftest.
$ac_ext
15984 cat >>conftest.
$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15988 double glob_double;
15993 return isinf(glob_double) ? 0 : 1;
15998 rm -f conftest.
$ac_objext conftest
$ac_exeext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000 (eval $ac_link) 2>conftest.er1
16002 grep -v '^ *+' conftest.er1
>conftest.err
16004 cat conftest.err
>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try
='test -z "$ac_c_werror_flag"
16008 || test ! -s conftest.err'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try
='test -s conftest$ac_exeext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 ac_cv_func_isinf
=yes
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.
$ac_ext >&5
16025 ac_cv_func_isinf
=no
16027 rm -f conftest.err conftest.
$ac_objext \
16028 conftest
$ac_exeext conftest.
$ac_ext
16030 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16031 echo "${ECHO_T}$ac_cv_func_isinf" >&6
16033 if test $ac_cv_func_isinf = yes ; then
16035 cat >>confdefs.h
<<\_ACEOF
16036 #define HAVE_ISINF 1
16041 "isinf.$ac_objext" | \
16042 *" isinf.$ac_objext" | \
16043 "isinf.$ac_objext "* | \
16044 *" isinf.$ac_objext "* ) ;;
16045 *) LIBOBJS
="$LIBOBJS isinf.$ac_objext" ;;
16048 # Look for a way to implement a substitute for isinf()
16053 for ac_func
in fpclass fp_class fp_class_d class
16055 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16056 echo "$as_me:$LINENO: checking for $ac_func" >&5
16057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16058 if eval "test \"\${$as_ac_var+set}\" = set"; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 cat >conftest.
$ac_ext <<_ACEOF
16064 cat confdefs.h
>>conftest.
$ac_ext
16065 cat >>conftest.
$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16069 #define $ac_func innocuous_$ac_func
16071 /* System header to define __stub macros and hopefully few prototypes,
16072 which can conflict with char $ac_func (); below.
16073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16074 <limits.h> exists even on freestanding compilers. */
16077 # include <limits.h>
16079 # include <assert.h>
16084 /* Override any gcc2 internal prototype to avoid an error. */
16089 /* We use char because int might match the return type of a gcc2
16090 builtin and then its argument prototype would still apply. */
16092 /* The GNU C library defines this for functions which it implements
16093 to always fail with ENOSYS. Some functions are actually named
16094 something starting with __ and the normal name is an alias. */
16095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16098 char (*f) () = $ac_func;
16107 return f != $ac_func;
16112 rm -f conftest.
$ac_objext conftest
$ac_exeext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16114 (eval $ac_link) 2>conftest.er1
16116 grep -v '^ *+' conftest.er1
>conftest.err
16118 cat conftest.err
>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try
='test -z "$ac_c_werror_flag"
16122 || test ! -s conftest.err'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; } &&
16128 { ac_try
='test -s conftest$ac_exeext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 eval "$as_ac_var=yes"
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.
$ac_ext >&5
16139 eval "$as_ac_var=no"
16141 rm -f conftest.err conftest.
$ac_objext \
16142 conftest
$ac_exeext conftest.
$ac_ext
16144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16146 if test `eval echo '${'$as_ac_var'}'` = yes; then
16147 cat >>confdefs.h
<<_ACEOF
16148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16156 # Some versions of libedit contain strlcpy(); so disregard that library while
16157 # checking for these standard libc functions.
16158 pgac_save_LIBS
="$LIBS"
16159 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16176 for ac_func
in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16178 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179 echo "$as_me:$LINENO: checking for $ac_func" >&5
16180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16181 if eval "test \"\${$as_ac_var+set}\" = set"; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 cat >conftest.
$ac_ext <<_ACEOF
16187 cat confdefs.h
>>conftest.
$ac_ext
16188 cat >>conftest.
$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16192 #define $ac_func innocuous_$ac_func
16194 /* System header to define __stub macros and hopefully few prototypes,
16195 which can conflict with char $ac_func (); below.
16196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16197 <limits.h> exists even on freestanding compilers. */
16200 # include <limits.h>
16202 # include <assert.h>
16207 /* Override any gcc2 internal prototype to avoid an error. */
16212 /* We use char because int might match the return type of a gcc2
16213 builtin and then its argument prototype would still apply. */
16215 /* The GNU C library defines this for functions which it implements
16216 to always fail with ENOSYS. Some functions are actually named
16217 something starting with __ and the normal name is an alias. */
16218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16221 char (*f) () = $ac_func;
16230 return f != $ac_func;
16235 rm -f conftest.
$ac_objext conftest
$ac_exeext
16236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16237 (eval $ac_link) 2>conftest.er1
16239 grep -v '^ *+' conftest.er1
>conftest.err
16241 cat conftest.err
>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try
='test -z "$ac_c_werror_flag"
16245 || test ! -s conftest.err'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try
='test -s conftest$ac_exeext'
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 eval "$as_ac_var=yes"
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.
$ac_ext >&5
16262 eval "$as_ac_var=no"
16264 rm -f conftest.err conftest.
$ac_objext \
16265 conftest
$ac_exeext conftest.
$ac_ext
16267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16269 if test `eval echo '${'$as_ac_var'}'` = yes; then
16270 cat >>confdefs.h
<<_ACEOF
16271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16276 "$ac_func.$ac_objext" | \
16277 *" $ac_func.$ac_objext" | \
16278 "$ac_func.$ac_objext "* | \
16279 *" $ac_func.$ac_objext "* ) ;;
16280 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16288 LIBS
="$pgac_save_LIBS"
16290 # System's version of getaddrinfo(), if any, may be used only if we found
16291 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
16292 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
16293 # versions of getaddrinfo don't follow normal C call protocol. This is OK
16294 # because we want to use our own getaddrinfo.c on Windows anyway.)
16295 if test x
"$ac_cv_type_struct_addrinfo" = xyes
; then
16297 for ac_func
in getaddrinfo
16299 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16300 echo "$as_me:$LINENO: checking for $ac_func" >&5
16301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16302 if eval "test \"\${$as_ac_var+set}\" = set"; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 cat >conftest.
$ac_ext <<_ACEOF
16308 cat confdefs.h
>>conftest.
$ac_ext
16309 cat >>conftest.
$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16313 #define $ac_func innocuous_$ac_func
16315 /* System header to define __stub macros and hopefully few prototypes,
16316 which can conflict with char $ac_func (); below.
16317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16318 <limits.h> exists even on freestanding compilers. */
16321 # include <limits.h>
16323 # include <assert.h>
16328 /* Override any gcc2 internal prototype to avoid an error. */
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16336 /* The GNU C library defines this for functions which it implements
16337 to always fail with ENOSYS. Some functions are actually named
16338 something starting with __ and the normal name is an alias. */
16339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16342 char (*f) () = $ac_func;
16351 return f != $ac_func;
16356 rm -f conftest.
$ac_objext conftest
$ac_exeext
16357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16358 (eval $ac_link) 2>conftest.er1
16360 grep -v '^ *+' conftest.er1
>conftest.err
16362 cat conftest.err
>&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try
='test -z "$ac_c_werror_flag"
16366 || test ! -s conftest.err'
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try
='test -s conftest$ac_exeext'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 eval "$as_ac_var=yes"
16380 echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.
$ac_ext >&5
16383 eval "$as_ac_var=no"
16385 rm -f conftest.err conftest.
$ac_objext \
16386 conftest
$ac_exeext conftest.
$ac_ext
16388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16390 if test `eval echo '${'$as_ac_var'}'` = yes; then
16391 cat >>confdefs.h
<<_ACEOF
16392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16397 "$ac_func.$ac_objext" | \
16398 *" $ac_func.$ac_objext" | \
16399 "$ac_func.$ac_objext "* | \
16400 *" $ac_func.$ac_objext "* ) ;;
16401 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16410 "getaddrinfo.$ac_objext" | \
16411 *" getaddrinfo.$ac_objext" | \
16412 "getaddrinfo.$ac_objext "* | \
16413 *" getaddrinfo.$ac_objext "* ) ;;
16414 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext" ;;
16419 # similarly, use system's getopt_long() only if system provides struct option.
16420 if test x
"$ac_cv_type_struct_option" = xyes
; then
16422 for ac_func
in getopt_long
16424 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16425 echo "$as_me:$LINENO: checking for $ac_func" >&5
16426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16427 if eval "test \"\${$as_ac_var+set}\" = set"; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 cat >conftest.
$ac_ext <<_ACEOF
16433 cat confdefs.h
>>conftest.
$ac_ext
16434 cat >>conftest.
$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16438 #define $ac_func innocuous_$ac_func
16440 /* System header to define __stub macros and hopefully few prototypes,
16441 which can conflict with char $ac_func (); below.
16442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16443 <limits.h> exists even on freestanding compilers. */
16446 # include <limits.h>
16448 # include <assert.h>
16453 /* Override any gcc2 internal prototype to avoid an error. */
16458 /* We use char because int might match the return type of a gcc2
16459 builtin and then its argument prototype would still apply. */
16461 /* The GNU C library defines this for functions which it implements
16462 to always fail with ENOSYS. Some functions are actually named
16463 something starting with __ and the normal name is an alias. */
16464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16467 char (*f) () = $ac_func;
16476 return f != $ac_func;
16481 rm -f conftest.
$ac_objext conftest
$ac_exeext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483 (eval $ac_link) 2>conftest.er1
16485 grep -v '^ *+' conftest.er1
>conftest.err
16487 cat conftest.err
>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); } &&
16490 { ac_try
='test -z "$ac_c_werror_flag"
16491 || test ! -s conftest.err'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try
='test -s conftest$ac_exeext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 eval "$as_ac_var=yes"
16505 echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.
$ac_ext >&5
16508 eval "$as_ac_var=no"
16510 rm -f conftest.err conftest.
$ac_objext \
16511 conftest
$ac_exeext conftest.
$ac_ext
16513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16515 if test `eval echo '${'$as_ac_var'}'` = yes; then
16516 cat >>confdefs.h
<<_ACEOF
16517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16522 "$ac_func.$ac_objext" | \
16523 *" $ac_func.$ac_objext" | \
16524 "$ac_func.$ac_objext "* | \
16525 *" $ac_func.$ac_objext "* ) ;;
16526 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
16535 "getopt_long.$ac_objext" | \
16536 *" getopt_long.$ac_objext" | \
16537 "getopt_long.$ac_objext "* | \
16538 *" getopt_long.$ac_objext "* ) ;;
16539 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext" ;;
16544 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
16545 # We override the previous test that said fseeko/ftello didn't exist
16546 # OS tests are also done in include/c.h and port/fseeko.c
16547 case $host_os in bsdi
*|netbsd
*)
16548 ac_cv_func_fseeko
=yes
16552 if test "$PORTNAME" = "win32"; then
16554 "gettimeofday.$ac_objext" | \
16555 *" gettimeofday.$ac_objext" | \
16556 "gettimeofday.$ac_objext "* | \
16557 *" gettimeofday.$ac_objext "* ) ;;
16558 *) LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext" ;;
16562 "kill.$ac_objext" | \
16563 *" kill.$ac_objext" | \
16564 "kill.$ac_objext "* | \
16565 *" kill.$ac_objext "* ) ;;
16566 *) LIBOBJS
="$LIBOBJS kill.$ac_objext" ;;
16570 "open.$ac_objext" | \
16571 *" open.$ac_objext" | \
16572 "open.$ac_objext "* | \
16573 *" open.$ac_objext "* ) ;;
16574 *) LIBOBJS
="$LIBOBJS open.$ac_objext" ;;
16578 "rand.$ac_objext" | \
16579 *" rand.$ac_objext" | \
16580 "rand.$ac_objext "* | \
16581 *" rand.$ac_objext "* ) ;;
16582 *) LIBOBJS
="$LIBOBJS rand.$ac_objext" ;;
16586 "win32error.$ac_objext" | \
16587 *" win32error.$ac_objext" | \
16588 "win32error.$ac_objext "* | \
16589 *" win32error.$ac_objext "* ) ;;
16590 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext" ;;
16594 cat >>confdefs.h
<<\_ACEOF
16595 #define HAVE_SYMLINK 1
16600 if test "$with_readline" = yes; then
16601 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
16602 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
16603 cat >conftest.
$ac_ext <<_ACEOF
16606 cat confdefs.h
>>conftest.
$ac_ext
16607 cat >>conftest.
$ac_ext <<_ACEOF
16608 /* end confdefs.h. */
16610 #ifdef HAVE_READLINE_READLINE_H
16611 # include <readline/readline.h>
16612 #elif defined(HAVE_READLINE_H)
16613 # include <readline.h>
16619 rl_completion_append_character = 'x';
16624 rm -f conftest.
$ac_objext conftest
$ac_exeext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626 (eval $ac_link) 2>conftest.er1
16628 grep -v '^ *+' conftest.er1
>conftest.err
16630 cat conftest.err
>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try
='test -z "$ac_c_werror_flag"
16634 || test ! -s conftest.err'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try
='test -s conftest$ac_exeext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 echo "$as_me:$LINENO: result: yes" >&5
16647 echo "${ECHO_T}yes" >&6
16649 cat >>confdefs.h
<<\_ACEOF
16650 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.
$ac_ext >&5
16657 echo "$as_me:$LINENO: result: no" >&5
16658 echo "${ECHO_T}no" >&6
16660 rm -f conftest.err conftest.
$ac_objext \
16661 conftest
$ac_exeext conftest.
$ac_ext
16664 for ac_func
in rl_completion_matches rl_filename_completion_function
16666 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16667 echo "$as_me:$LINENO: checking for $ac_func" >&5
16668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16669 if eval "test \"\${$as_ac_var+set}\" = set"; then
16670 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 cat >conftest.
$ac_ext <<_ACEOF
16675 cat confdefs.h
>>conftest.
$ac_ext
16676 cat >>conftest.
$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16680 #define $ac_func innocuous_$ac_func
16682 /* System header to define __stub macros and hopefully few prototypes,
16683 which can conflict with char $ac_func (); below.
16684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16685 <limits.h> exists even on freestanding compilers. */
16688 # include <limits.h>
16690 # include <assert.h>
16695 /* Override any gcc2 internal prototype to avoid an error. */
16700 /* We use char because int might match the return type of a gcc2
16701 builtin and then its argument prototype would still apply. */
16703 /* The GNU C library defines this for functions which it implements
16704 to always fail with ENOSYS. Some functions are actually named
16705 something starting with __ and the normal name is an alias. */
16706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16709 char (*f) () = $ac_func;
16718 return f != $ac_func;
16723 rm -f conftest.
$ac_objext conftest
$ac_exeext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16725 (eval $ac_link) 2>conftest.er1
16727 grep -v '^ *+' conftest.er1
>conftest.err
16729 cat conftest.err
>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try
='test -z "$ac_c_werror_flag"
16733 || test ! -s conftest.err'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try
='test -s conftest$ac_exeext'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16745 eval "$as_ac_var=yes"
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.
$ac_ext >&5
16750 eval "$as_ac_var=no"
16752 rm -f conftest.err conftest.
$ac_objext \
16753 conftest
$ac_exeext conftest.
$ac_ext
16755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16757 if test `eval echo '${'$as_ac_var'}'` = yes; then
16758 cat >>confdefs.h
<<_ACEOF
16759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16766 for ac_func
in replace_history_entry
16768 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16769 echo "$as_me:$LINENO: checking for $ac_func" >&5
16770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16771 if eval "test \"\${$as_ac_var+set}\" = set"; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 cat >conftest.
$ac_ext <<_ACEOF
16777 cat confdefs.h
>>conftest.
$ac_ext
16778 cat >>conftest.
$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16782 #define $ac_func innocuous_$ac_func
16784 /* System header to define __stub macros and hopefully few prototypes,
16785 which can conflict with char $ac_func (); below.
16786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 <limits.h> exists even on freestanding compilers. */
16790 # include <limits.h>
16792 # include <assert.h>
16797 /* Override any gcc2 internal prototype to avoid an error. */
16802 /* We use char because int might match the return type of a gcc2
16803 builtin and then its argument prototype would still apply. */
16805 /* The GNU C library defines this for functions which it implements
16806 to always fail with ENOSYS. Some functions are actually named
16807 something starting with __ and the normal name is an alias. */
16808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16811 char (*f) () = $ac_func;
16820 return f != $ac_func;
16825 rm -f conftest.
$ac_objext conftest
$ac_exeext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16827 (eval $ac_link) 2>conftest.er1
16829 grep -v '^ *+' conftest.er1
>conftest.err
16831 cat conftest.err
>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
16834 { ac_try
='test -z "$ac_c_werror_flag"
16835 || test ! -s conftest.err'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; } &&
16841 { ac_try
='test -s conftest$ac_exeext'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 eval "$as_ac_var=yes"
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.
$ac_ext >&5
16852 eval "$as_ac_var=no"
16854 rm -f conftest.err conftest.
$ac_objext \
16855 conftest
$ac_exeext conftest.
$ac_ext
16857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16859 if test `eval echo '${'$as_ac_var'}'` = yes; then
16860 cat >>confdefs.h
<<_ACEOF
16861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16870 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16871 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16872 cat >conftest.
$ac_ext <<_ACEOF
16875 cat confdefs.h
>>conftest.
$ac_ext
16876 cat >>conftest.
$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 #include <setjmp.h>
16882 sigjmp_buf x; sigsetjmp(x, 1);
16887 rm -f conftest.
$ac_objext conftest
$ac_exeext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889 (eval $ac_link) 2>conftest.er1
16891 grep -v '^ *+' conftest.er1
>conftest.err
16893 cat conftest.err
>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); } &&
16896 { ac_try
='test -z "$ac_c_werror_flag"
16897 || test ! -s conftest.err'
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try
='test -s conftest$ac_exeext'
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16910 cat >>confdefs.h
<<\_ACEOF
16911 #define HAVE_SIGSETJMP 1
16914 echo "$as_me:$LINENO: result: yes" >&5
16915 echo "${ECHO_T}yes" >&6
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.
$ac_ext >&5
16920 echo "$as_me:$LINENO: result: no" >&5
16921 echo "${ECHO_T}no" >&6
16923 rm -f conftest.err conftest.
$ac_objext \
16924 conftest
$ac_exeext conftest.
$ac_ext
16926 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16927 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16928 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16931 cat >conftest.
$ac_ext <<_ACEOF
16934 cat confdefs.h
>>conftest.
$ac_ext
16935 cat >>conftest.
$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 #include <signal.h>
16938 /* NetBSD declares sys_siglist in unistd.h. */
16940 # include <unistd.h>
16947 #ifndef sys_siglist
16948 char *p = (char *) sys_siglist;
16955 rm -f conftest.
$ac_objext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16957 (eval $ac_compile) 2>conftest.er1
16959 grep -v '^ *+' conftest.er1
>conftest.err
16961 cat conftest.err
>&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try
='test -z "$ac_c_werror_flag"
16965 || test ! -s conftest.err'
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; } &&
16971 { ac_try
='test -s conftest.$ac_objext'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; }; then
16977 ac_cv_have_decl_sys_siglist
=yes
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.
$ac_ext >&5
16982 ac_cv_have_decl_sys_siglist
=no
16984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16986 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16987 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16988 if test $ac_cv_have_decl_sys_siglist = yes; then
16990 cat >>confdefs.h
<<_ACEOF
16991 #define HAVE_DECL_SYS_SIGLIST 1
16996 cat >>confdefs.h
<<_ACEOF
16997 #define HAVE_DECL_SYS_SIGLIST 0
17006 echo "$as_me:$LINENO: checking for syslog" >&5
17007 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
17008 if test "${ac_cv_func_syslog+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17011 cat >conftest.
$ac_ext <<_ACEOF
17014 cat confdefs.h
>>conftest.
$ac_ext
17015 cat >>conftest.
$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17017 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17019 #define syslog innocuous_syslog
17021 /* System header to define __stub macros and hopefully few prototypes,
17022 which can conflict with char syslog (); below.
17023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17024 <limits.h> exists even on freestanding compilers. */
17027 # include <limits.h>
17029 # include <assert.h>
17034 /* Override any gcc2 internal prototype to avoid an error. */
17039 /* We use char because int might match the return type of a gcc2
17040 builtin and then its argument prototype would still apply. */
17042 /* The GNU C library defines this for functions which it implements
17043 to always fail with ENOSYS. Some functions are actually named
17044 something starting with __ and the normal name is an alias. */
17045 #if defined (__stub_syslog) || defined (__stub___syslog)
17048 char (*f) () = syslog;
17057 return f != syslog;
17062 rm -f conftest.
$ac_objext conftest
$ac_exeext
17063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17064 (eval $ac_link) 2>conftest.er1
17066 grep -v '^ *+' conftest.er1
>conftest.err
17068 cat conftest.err
>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } &&
17071 { ac_try
='test -z "$ac_c_werror_flag"
17072 || test ! -s conftest.err'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } &&
17078 { ac_try
='test -s conftest$ac_exeext'
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 ac_cv_func_syslog
=yes
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.
$ac_ext >&5
17089 ac_cv_func_syslog
=no
17091 rm -f conftest.err conftest.
$ac_objext \
17092 conftest
$ac_exeext conftest.
$ac_ext
17094 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17095 echo "${ECHO_T}$ac_cv_func_syslog" >&6
17096 if test $ac_cv_func_syslog = yes; then
17097 if test "${ac_cv_header_syslog_h+set}" = set; then
17098 echo "$as_me:$LINENO: checking for syslog.h" >&5
17099 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17100 if test "${ac_cv_header_syslog_h+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17104 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17106 # Is the header compilable?
17107 echo "$as_me:$LINENO: checking syslog.h usability" >&5
17108 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
17109 cat >conftest.
$ac_ext <<_ACEOF
17112 cat confdefs.h
>>conftest.
$ac_ext
17113 cat >>conftest.
$ac_ext <<_ACEOF
17114 /* end confdefs.h. */
17115 $ac_includes_default
17116 #include <syslog.h>
17118 rm -f conftest.
$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>conftest.er1
17122 grep -v '^ *+' conftest.er1
>conftest.err
17124 cat conftest.err
>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try
='test -z "$ac_c_werror_flag"
17128 || test ! -s conftest.err'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; } &&
17134 { ac_try
='test -s conftest.$ac_objext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_header_compiler
=yes
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.
$ac_ext >&5
17145 ac_header_compiler
=no
17147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17149 echo "${ECHO_T}$ac_header_compiler" >&6
17151 # Is the header present?
17152 echo "$as_me:$LINENO: checking syslog.h presence" >&5
17153 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
17154 cat >conftest.
$ac_ext <<_ACEOF
17157 cat confdefs.h
>>conftest.
$ac_ext
17158 cat >>conftest.
$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 #include <syslog.h>
17162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17163 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17165 grep -v '^ *+' conftest.er1
>conftest.err
17167 cat conftest.err
>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } >/dev
/null
; then
17170 if test -s conftest.err
; then
17171 ac_cpp_err
=$ac_c_preproc_warn_flag
17172 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17179 if test -z "$ac_cpp_err"; then
17180 ac_header_preproc
=yes
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.
$ac_ext >&5
17185 ac_header_preproc
=no
17187 rm -f conftest.err conftest.
$ac_ext
17188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17189 echo "${ECHO_T}$ac_header_preproc" >&6
17191 # So? What about this header?
17192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17194 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17195 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17197 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17198 ac_header_preproc
=yes
17201 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17202 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17203 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
17204 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
17205 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17206 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17207 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
17208 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17210 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17212 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17215 ## ---------------------------------------- ##
17216 ## Report this to pgsql-bugs@postgresql.org ##
17217 ## ---------------------------------------- ##
17220 sed "s/^/$as_me: WARNING: /" >&2
17223 echo "$as_me:$LINENO: checking for syslog.h" >&5
17224 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
17225 if test "${ac_cv_header_syslog_h+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17228 ac_cv_header_syslog_h
=$ac_header_preproc
17230 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17231 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
17234 if test $ac_cv_header_syslog_h = yes; then
17236 cat >>confdefs.h
<<\_ACEOF
17237 #define HAVE_SYSLOG 1
17246 echo "$as_me:$LINENO: checking for optreset" >&5
17247 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
17248 if test "${pgac_cv_var_int_optreset+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 cat >conftest.
$ac_ext <<_ACEOF
17254 cat confdefs.h
>>conftest.
$ac_ext
17255 cat >>conftest.
$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17257 #include <unistd.h>
17261 extern int optreset; optreset = 1;
17266 rm -f conftest.
$ac_objext conftest
$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>conftest.er1
17270 grep -v '^ *+' conftest.er1
>conftest.err
17272 cat conftest.err
>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try
='test -z "$ac_c_werror_flag"
17276 || test ! -s conftest.err'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try
='test -s conftest$ac_exeext'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 pgac_cv_var_int_optreset
=yes
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.
$ac_ext >&5
17293 pgac_cv_var_int_optreset
=no
17295 rm -f conftest.err conftest.
$ac_objext \
17296 conftest
$ac_exeext conftest.
$ac_ext
17298 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
17299 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
17300 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
17302 cat >>confdefs.h
<<\_ACEOF
17303 #define HAVE_INT_OPTRESET 1
17310 for ac_func
in strtoll strtoq
17312 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17313 echo "$as_me:$LINENO: checking for $ac_func" >&5
17314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17315 if eval "test \"\${$as_ac_var+set}\" = set"; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17318 cat >conftest.
$ac_ext <<_ACEOF
17321 cat confdefs.h
>>conftest.
$ac_ext
17322 cat >>conftest.
$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17326 #define $ac_func innocuous_$ac_func
17328 /* System header to define __stub macros and hopefully few prototypes,
17329 which can conflict with char $ac_func (); below.
17330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17331 <limits.h> exists even on freestanding compilers. */
17334 # include <limits.h>
17336 # include <assert.h>
17341 /* Override any gcc2 internal prototype to avoid an error. */
17346 /* We use char because int might match the return type of a gcc2
17347 builtin and then its argument prototype would still apply. */
17349 /* The GNU C library defines this for functions which it implements
17350 to always fail with ENOSYS. Some functions are actually named
17351 something starting with __ and the normal name is an alias. */
17352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17355 char (*f) () = $ac_func;
17364 return f != $ac_func;
17369 rm -f conftest.
$ac_objext conftest
$ac_exeext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371 (eval $ac_link) 2>conftest.er1
17373 grep -v '^ *+' conftest.er1
>conftest.err
17375 cat conftest.err
>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
17378 { ac_try
='test -z "$ac_c_werror_flag"
17379 || test ! -s conftest.err'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try
='test -s conftest$ac_exeext'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 eval "$as_ac_var=yes"
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.
$ac_ext >&5
17396 eval "$as_ac_var=no"
17398 rm -f conftest.err conftest.
$ac_objext \
17399 conftest
$ac_exeext conftest.
$ac_ext
17401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17403 if test `eval echo '${'$as_ac_var'}'` = yes; then
17404 cat >>confdefs.h
<<_ACEOF
17405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17413 for ac_func
in strtoull strtouq
17415 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416 echo "$as_me:$LINENO: checking for $ac_func" >&5
17417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17418 if eval "test \"\${$as_ac_var+set}\" = set"; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 cat >conftest.
$ac_ext <<_ACEOF
17424 cat confdefs.h
>>conftest.
$ac_ext
17425 cat >>conftest.
$ac_ext <<_ACEOF
17426 /* end confdefs.h. */
17427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17429 #define $ac_func innocuous_$ac_func
17431 /* System header to define __stub macros and hopefully few prototypes,
17432 which can conflict with char $ac_func (); below.
17433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17434 <limits.h> exists even on freestanding compilers. */
17437 # include <limits.h>
17439 # include <assert.h>
17444 /* Override any gcc2 internal prototype to avoid an error. */
17449 /* We use char because int might match the return type of a gcc2
17450 builtin and then its argument prototype would still apply. */
17452 /* The GNU C library defines this for functions which it implements
17453 to always fail with ENOSYS. Some functions are actually named
17454 something starting with __ and the normal name is an alias. */
17455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17458 char (*f) () = $ac_func;
17467 return f != $ac_func;
17472 rm -f conftest.
$ac_objext conftest
$ac_exeext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17474 (eval $ac_link) 2>conftest.er1
17476 grep -v '^ *+' conftest.er1
>conftest.err
17478 cat conftest.err
>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); } &&
17481 { ac_try
='test -z "$ac_c_werror_flag"
17482 || test ! -s conftest.err'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try
='test -s conftest$ac_exeext'
17489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490 (eval $ac_try) 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 eval "$as_ac_var=yes"
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.
$ac_ext >&5
17499 eval "$as_ac_var=no"
17501 rm -f conftest.err conftest.
$ac_objext \
17502 conftest
$ac_exeext conftest.
$ac_ext
17504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17506 if test `eval echo '${'$as_ac_var'}'` = yes; then
17507 cat >>confdefs.h
<<_ACEOF
17508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17515 # Check for one of atexit() or on_exit()
17517 for ac_func
in atexit
17519 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520 echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17522 if eval "test \"\${$as_ac_var+set}\" = set"; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 cat >conftest.
$ac_ext <<_ACEOF
17528 cat confdefs.h
>>conftest.
$ac_ext
17529 cat >>conftest.
$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533 #define $ac_func innocuous_$ac_func
17535 /* System header to define __stub macros and hopefully few prototypes,
17536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 <limits.h> exists even on freestanding compilers. */
17541 # include <limits.h>
17543 # include <assert.h>
17548 /* Override any gcc2 internal prototype to avoid an error. */
17553 /* We use char because int might match the return type of a gcc2
17554 builtin and then its argument prototype would still apply. */
17556 /* The GNU C library defines this for functions which it implements
17557 to always fail with ENOSYS. Some functions are actually named
17558 something starting with __ and the normal name is an alias. */
17559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17562 char (*f) () = $ac_func;
17571 return f != $ac_func;
17576 rm -f conftest.
$ac_objext conftest
$ac_exeext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17578 (eval $ac_link) 2>conftest.er1
17580 grep -v '^ *+' conftest.er1
>conftest.err
17582 cat conftest.err
>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try
='test -z "$ac_c_werror_flag"
17586 || test ! -s conftest.err'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; } &&
17592 { ac_try
='test -s conftest$ac_exeext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 eval "$as_ac_var=yes"
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.
$ac_ext >&5
17603 eval "$as_ac_var=no"
17605 rm -f conftest.err conftest.
$ac_objext \
17606 conftest
$ac_exeext conftest.
$ac_ext
17608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17610 if test `eval echo '${'$as_ac_var'}'` = yes; then
17611 cat >>confdefs.h
<<_ACEOF
17612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17617 for ac_func
in on_exit
17619 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17620 echo "$as_me:$LINENO: checking for $ac_func" >&5
17621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17622 if eval "test \"\${$as_ac_var+set}\" = set"; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17625 cat >conftest.
$ac_ext <<_ACEOF
17628 cat confdefs.h
>>conftest.
$ac_ext
17629 cat >>conftest.
$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17633 #define $ac_func innocuous_$ac_func
17635 /* System header to define __stub macros and hopefully few prototypes,
17636 which can conflict with char $ac_func (); below.
17637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638 <limits.h> exists even on freestanding compilers. */
17641 # include <limits.h>
17643 # include <assert.h>
17648 /* Override any gcc2 internal prototype to avoid an error. */
17653 /* We use char because int might match the return type of a gcc2
17654 builtin and then its argument prototype would still apply. */
17656 /* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17662 char (*f) () = $ac_func;
17671 return f != $ac_func;
17676 rm -f conftest.
$ac_objext conftest
$ac_exeext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678 (eval $ac_link) 2>conftest.er1
17680 grep -v '^ *+' conftest.er1
>conftest.err
17682 cat conftest.err
>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try
='test -z "$ac_c_werror_flag"
17686 || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try
='test -s conftest$ac_exeext'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 eval "$as_ac_var=yes"
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.
$ac_ext >&5
17703 eval "$as_ac_var=no"
17705 rm -f conftest.err conftest.
$ac_objext \
17706 conftest
$ac_exeext conftest.
$ac_ext
17708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17710 if test `eval echo '${'$as_ac_var'}'` = yes; then
17711 cat >>confdefs.h
<<_ACEOF
17712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17716 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
17717 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
17718 { (exit 1); exit 1; }; }
17726 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17727 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17728 if test "${ac_cv_sys_largefile_source+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17732 ac_cv_sys_largefile_source
=no
17733 cat >conftest.
$ac_ext <<_ACEOF
17736 cat confdefs.h
>>conftest.
$ac_ext
17737 cat >>conftest.
$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17748 rm -f conftest.
$ac_objext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750 (eval $ac_compile) 2>conftest.er1
17752 grep -v '^ *+' conftest.er1
>conftest.err
17754 cat conftest.err
>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try
='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try
='test -s conftest.$ac_objext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.
$ac_ext >&5
17776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17777 cat >conftest.
$ac_ext <<_ACEOF
17780 cat confdefs.h
>>conftest.
$ac_ext
17781 cat >>conftest.
$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 #define _LARGEFILE_SOURCE 1
17793 rm -f conftest.
$ac_objext
17794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17795 (eval $ac_compile) 2>conftest.er1
17797 grep -v '^ *+' conftest.er1
>conftest.err
17799 cat conftest.err
>&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } &&
17802 { ac_try
='test -z "$ac_c_werror_flag"
17803 || test ! -s conftest.err'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try
='test -s conftest.$ac_objext'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; }; then
17815 ac_cv_sys_largefile_source
=1; break
17817 echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.
$ac_ext >&5
17821 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17825 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17826 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17827 if test "$ac_cv_sys_largefile_source" != no
; then
17829 cat >>confdefs.h
<<_ACEOF
17830 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17836 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17837 # in glibc 2.1.3, but that breaks too many other things.
17838 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17839 echo "$as_me:$LINENO: checking for fseeko" >&5
17840 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17841 if test "${ac_cv_func_fseeko+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 cat >conftest.
$ac_ext <<_ACEOF
17847 cat confdefs.h
>>conftest.
$ac_ext
17848 cat >>conftest.
$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17854 return fseeko && fseeko (stdin, 0, 0);
17859 rm -f conftest.
$ac_objext conftest
$ac_exeext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17861 (eval $ac_link) 2>conftest.er1
17863 grep -v '^ *+' conftest.er1
>conftest.err
17865 cat conftest.err
>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
17868 { ac_try
='test -z "$ac_c_werror_flag"
17869 || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try
='test -s conftest$ac_exeext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_cv_func_fseeko
=yes
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.
$ac_ext >&5
17886 ac_cv_func_fseeko
=no
17888 rm -f conftest.err conftest.
$ac_objext \
17889 conftest
$ac_exeext conftest.
$ac_ext
17891 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17892 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17893 if test $ac_cv_func_fseeko = yes; then
17895 cat >>confdefs.h
<<\_ACEOF
17896 #define HAVE_FSEEKO 1
17905 # For each platform, we need to know about any special compile and link
17906 # libraries, and whether the normal C function names are thread-safe.
17907 # See the comment at the top of src/port/thread.c for more information.
17908 # WIN32 doesn't need the pthread tests; it always uses threads
17909 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
17915 ac_cpp
='$CPP $CPPFLAGS'
17916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17922 # We used to check for pthread.h first, but this fails if pthread.h
17923 # requires special compiler flags (e.g. on True64 or Sequent).
17924 # It gets checked for in the link test anyway.
17926 # First of all, check if the user has set any of the PTHREAD_LIBS,
17927 # etcetera environment variables, and if threads linking works using
17929 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
17930 save_CFLAGS
="$CFLAGS"
17931 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
17933 LIBS
="$PTHREAD_LIBS $LIBS"
17934 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17935 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
17936 cat >conftest.
$ac_ext <<_ACEOF
17939 cat confdefs.h
>>conftest.
$ac_ext
17940 cat >>conftest.
$ac_ext <<_ACEOF
17941 /* end confdefs.h. */
17943 /* Override any gcc2 internal prototype to avoid an error. */
17947 /* We use char because int might match the return type of a gcc2
17948 builtin and then its argument prototype would still apply. */
17949 char pthread_join ();
17958 rm -f conftest.
$ac_objext conftest
$ac_exeext
17959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17960 (eval $ac_link) 2>conftest.er1
17962 grep -v '^ *+' conftest.er1
>conftest.err
17964 cat conftest.err
>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
17967 { ac_try
='test -z "$ac_c_werror_flag"
17968 || test ! -s conftest.err'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try
='test -s conftest$ac_exeext'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.
$ac_ext >&5
17986 rm -f conftest.err conftest.
$ac_objext \
17987 conftest
$ac_exeext conftest.
$ac_ext
17988 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
17989 echo "${ECHO_T}$acx_pthread_ok" >&6
17990 if test x
"$acx_pthread_ok" = xno
; then
17995 CFLAGS
="$save_CFLAGS"
17998 # We must check for the threads library under a number of different
17999 # names; the ordering is very important because some systems
18000 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18001 # libraries is broken (non-POSIX).
18003 # Create a list of thread flags to try. Items starting with a "-" are
18004 # C compiler flags, and other items are library names, except for "none"
18005 # which indicates that we try without any flags at all, and "pthread-config"
18006 # which is a program returning the flags for the Pth emulation library.
18008 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18010 # The ordering *is* (sometimes) important. Some notes on the
18011 # individual items follow:
18013 # pthreads: AIX (must check this before -lpthread)
18014 # none: in case threads are in libc; should be tried before -Kthread and
18015 # other compiler flags to prevent continual compiler warnings
18016 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18017 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18018 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18019 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18020 # -pthreads: Solaris/gcc
18021 # -mthreads: Mingw32/gcc, Lynx/gcc
18022 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18023 # doesn't hurt to check since this sometimes defines pthreads too;
18024 # also defines -D_REENTRANT)
18025 # pthread: Linux, etcetera
18026 # --thread-safe: KAI C++
18027 # pthread-config: use pthread-config program (for GNU Pth library)
18029 case "${host_cpu}-${host_os}" in
18032 # On Solaris (at least, for some versions), libc contains stubbed
18033 # (non-functional) versions of the pthreads routines, so link-based
18034 # tests will erroneously succeed. (We need to link with -pthread or
18035 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18036 # a function called by this macro, so we could check for that, but
18037 # who knows whether they'll stub that too in a future libc.) So,
18038 # we'll just look for -pthreads and -lpthread first:
18040 acx_pthread_flags
="-pthread -pthreads pthread -mt $acx_pthread_flags"
18044 if test x
"$acx_pthread_ok" = xno
; then
18045 for flag
in $acx_pthread_flags; do
18047 tryPTHREAD_CFLAGS
=""
18051 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18052 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
18056 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18057 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
18058 tryPTHREAD_CFLAGS
="$flag"
18062 # skip this if we already have flags defined, for PostgreSQL
18063 if test x
"$PTHREAD_CFLAGS" != x
-o x
"$PTHREAD_LIBS" != x
; then continue; fi
18064 # Extract the first word of "pthread-config", so it can be a program name with args.
18065 set dummy pthread-config
; ac_word
=$2
18066 echo "$as_me:$LINENO: checking for $ac_word" >&5
18067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18068 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 if test -n "$acx_pthread_config"; then
18072 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
18074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18075 for as_dir
in $PATH
18078 test -z "$as_dir" && as_dir
=.
18079 for ac_exec_ext
in '' $ac_executable_extensions; do
18080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18081 ac_cv_prog_acx_pthread_config
="yes"
18082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18088 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
18091 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
18092 if test -n "$acx_pthread_config"; then
18093 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18094 echo "${ECHO_T}$acx_pthread_config" >&6
18096 echo "$as_me:$LINENO: result: no" >&5
18097 echo "${ECHO_T}no" >&6
18100 if test x
"$acx_pthread_config" = xno
; then continue; fi
18101 tryPTHREAD_CFLAGS
="`pthread-config --cflags`"
18102 tryPTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
18106 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18107 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
18108 tryPTHREAD_LIBS
="-l$flag"
18113 save_CFLAGS
="$CFLAGS"
18114 LIBS
="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18115 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18117 # Check for various functions. We must include pthread.h,
18118 # since some functions may be macros. (On the Sequent, we
18119 # need a special flag -Kthread to make this header compile.)
18120 # We check for pthread_join because it is in -lpthread on IRIX
18121 # while pthread_create is in libc. We check for pthread_attr_init
18122 # due to DEC craziness with -lpthreads. We check for
18123 # pthread_cleanup_push because it is one of the few pthread
18124 # functions on Solaris that doesn't have a non-functional libc stub.
18125 # We try pthread_create on general principles.
18126 cat >conftest.
$ac_ext <<_ACEOF
18129 cat confdefs.h
>>conftest.
$ac_ext
18130 cat >>conftest.
$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18132 #include <pthread.h>
18136 pthread_t th; pthread_join(th, 0);
18137 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18138 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18143 rm -f conftest.
$ac_objext conftest
$ac_exeext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18145 (eval $ac_link) 2>conftest.er1
18147 grep -v '^ *+' conftest.er1
>conftest.err
18149 cat conftest.err
>&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
18152 { ac_try
='test -z "$ac_c_werror_flag"
18153 || test ! -s conftest.err'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try
='test -s conftest$ac_exeext'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18167 echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.
$ac_ext >&5
18172 rm -f conftest.err conftest.
$ac_objext \
18173 conftest
$ac_exeext conftest.
$ac_ext
18175 if test "x$acx_pthread_ok" = xyes
; then
18176 # Don't use options that are ignored by the compiler.
18177 # We find them by checking stderror.
18178 cat >conftest.
$ac_ext <<_ACEOF
18180 main (int argc, char **argv)
18187 rm -f conftest.
$ac_objext conftest
$ac_exeext
18188 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18189 # we continue with more flags because Linux needs -lpthread
18190 # for libpq builds on PostgreSQL. The test above only
18191 # tests for building binaries, not shared libraries.
18192 PTHREAD_LIBS
=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18193 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18194 else acx_pthread_ok
=no
18199 CFLAGS
="$save_CFLAGS"
18201 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18202 echo "${ECHO_T}$acx_pthread_ok" >&6
18206 # Various other checks:
18207 if test "x$acx_pthread_ok" = xyes
; then
18209 LIBS
="$PTHREAD_LIBS $LIBS"
18210 save_CFLAGS
="$CFLAGS"
18211 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
18213 # Detect AIX lossage: threads are created detached by default
18214 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
18215 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
18216 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
18217 cat >conftest.
$ac_ext <<_ACEOF
18220 cat confdefs.h
>>conftest.
$ac_ext
18221 cat >>conftest.
$ac_ext <<_ACEOF
18222 /* end confdefs.h. */
18223 #include <pthread.h>
18227 int attr=PTHREAD_CREATE_JOINABLE;
18232 rm -f conftest.
$ac_objext conftest
$ac_exeext
18233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18234 (eval $ac_link) 2>conftest.er1
18236 grep -v '^ *+' conftest.er1
>conftest.err
18238 cat conftest.err
>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } &&
18241 { ac_try
='test -z "$ac_c_werror_flag"
18242 || test ! -s conftest.err'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } &&
18248 { ac_try
='test -s conftest$ac_exeext'
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 ok
=PTHREAD_CREATE_JOINABLE
18256 echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.
$ac_ext >&5
18261 rm -f conftest.err conftest.
$ac_objext \
18262 conftest
$ac_exeext conftest.
$ac_ext
18263 if test x
"$ok" = xunknown
; then
18264 cat >conftest.
$ac_ext <<_ACEOF
18267 cat confdefs.h
>>conftest.
$ac_ext
18268 cat >>conftest.
$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 #include <pthread.h>
18274 int attr=PTHREAD_CREATE_UNDETACHED;
18279 rm -f conftest.
$ac_objext conftest
$ac_exeext
18280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18281 (eval $ac_link) 2>conftest.er1
18283 grep -v '^ *+' conftest.er1
>conftest.err
18285 cat conftest.err
>&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
18288 { ac_try
='test -z "$ac_c_werror_flag"
18289 || test ! -s conftest.err'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; } &&
18295 { ac_try
='test -s conftest$ac_exeext'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; }; then
18301 ok
=PTHREAD_CREATE_UNDETACHED
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.
$ac_ext >&5
18308 rm -f conftest.err conftest.
$ac_objext \
18309 conftest
$ac_exeext conftest.
$ac_ext
18311 if test x
"$ok" != xPTHREAD_CREATE_JOINABLE
; then
18313 cat >>confdefs.h
<<\_ACEOF
18314 #define PTHREAD_CREATE_JOINABLE $ok
18318 echo "$as_me:$LINENO: result: ${ok}" >&5
18319 echo "${ECHO_T}${ok}" >&6
18320 if test x
"$ok" = xunknown
; then
18321 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
18322 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
18325 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
18326 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
18328 # We always add these in PostgreSQL
18329 # case "${host_cpu}-${host_os}" in
18330 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18331 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18333 echo "$as_me:$LINENO: result: ${flag}" >&5
18334 echo "${ECHO_T}${flag}" >&6
18335 if test "x$flag" != xno
; then
18336 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
18340 CFLAGS
="$save_CFLAGS"
18342 # Supporting cc_r would require a special CC in all places that
18343 # use libpq, and that is ugly, so we don't do it. Users can still
18344 # define their compiler as cc_r to do thread builds of everything.
18345 # More AIX lossage: must compile with cc_r
18346 # Extract the first word of "cc_r", so it can be a program name with args.
18347 set dummy cc_r
; ac_word
=$2
18348 echo "$as_me:$LINENO: checking for $ac_word" >&5
18349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18350 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
18351 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 if test -n "$PTHREAD_CC"; then
18354 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
18356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18357 for as_dir
in $PATH
18360 test -z "$as_dir" && as_dir
=.
18361 for ac_exec_ext
in '' $ac_executable_extensions; do
18362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18363 ac_cv_prog_PTHREAD_CC
="cc_r"
18364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18370 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC
="${CC}"
18373 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
18374 if test -n "$PTHREAD_CC"; then
18375 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
18376 echo "${ECHO_T}$PTHREAD_CC" >&6
18378 echo "$as_me:$LINENO: result: no" >&5
18379 echo "${ECHO_T}no" >&6
18390 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18391 if test x
"$acx_pthread_ok" = xyes
; then
18393 cat >>confdefs.h
<<\_ACEOF
18394 #define HAVE_PTHREAD 1
18403 ac_cpp
='$CPP $CPPFLAGS'
18404 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18410 # Some platforms use these, so just defineed them. They can't hurt if they
18411 # are not supported.
18412 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
18415 # At this point, we don't want to muck with the compiler name for threading.
18416 # Let's see who fails, perhaps AIX. 2004-04-23
18417 if test "$PTHREAD_CC" != "$CC"; then
18418 { { echo "$as_me:$LINENO: error:
18419 PostgreSQL does not support platforms that require a special compiler
18420 for thread safety." >&5
18421 echo "$as_me: error:
18422 PostgreSQL does not support platforms that require a special compiler
18423 for thread safety." >&2;}
18424 { (exit 1); exit 1; }; }
18427 if test "$THREAD_SUPPORT" = no
; then
18428 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
18429 This platform is known to not support thread-safe programs. For details,
18430 compile and run src/bin/pg_thread_test." >&5
18431 echo "$as_me: error: cannot enable threads on this platform
18432 This platform is known to not support thread-safe programs. For details,
18433 compile and run src/bin/pg_thread_test." >&2;}
18434 { (exit 1); exit 1; }; }
18437 # Check for *_r functions
18440 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
18441 LIBS
="$LIBS $PTHREAD_LIBS"
18443 if test "$PORTNAME" != "win32"; then
18444 if test "${ac_cv_header_pthread_h+set}" = set; then
18445 echo "$as_me:$LINENO: checking for pthread.h" >&5
18446 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
18447 if test "${ac_cv_header_pthread_h+set}" = set; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18451 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
18453 # Is the header compilable?
18454 echo "$as_me:$LINENO: checking pthread.h usability" >&5
18455 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
18456 cat >conftest.
$ac_ext <<_ACEOF
18459 cat confdefs.h
>>conftest.
$ac_ext
18460 cat >>conftest.
$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18462 $ac_includes_default
18463 #include <pthread.h>
18465 rm -f conftest.
$ac_objext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18467 (eval $ac_compile) 2>conftest.er1
18469 grep -v '^ *+' conftest.er1
>conftest.err
18471 cat conftest.err
>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try
='test -z "$ac_c_werror_flag"
18475 || test ! -s conftest.err'
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; } &&
18481 { ac_try
='test -s conftest.$ac_objext'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18487 ac_header_compiler
=yes
18489 echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.
$ac_ext >&5
18492 ac_header_compiler
=no
18494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18496 echo "${ECHO_T}$ac_header_compiler" >&6
18498 # Is the header present?
18499 echo "$as_me:$LINENO: checking pthread.h presence" >&5
18500 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
18501 cat >conftest.
$ac_ext <<_ACEOF
18504 cat confdefs.h
>>conftest.
$ac_ext
18505 cat >>conftest.
$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #include <pthread.h>
18509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18512 grep -v '^ *+' conftest.er1
>conftest.err
18514 cat conftest.err
>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } >/dev
/null
; then
18517 if test -s conftest.err
; then
18518 ac_cpp_err
=$ac_c_preproc_warn_flag
18519 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18526 if test -z "$ac_cpp_err"; then
18527 ac_header_preproc
=yes
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.
$ac_ext >&5
18532 ac_header_preproc
=no
18534 rm -f conftest.err conftest.
$ac_ext
18535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18536 echo "${ECHO_T}$ac_header_preproc" >&6
18538 # So? What about this header?
18539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18541 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
18542 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18543 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
18544 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
18545 ac_header_preproc
=yes
18548 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
18549 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
18550 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
18551 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
18552 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
18553 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
18554 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
18555 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
18556 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
18557 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
18559 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
18562 ## ---------------------------------------- ##
18563 ## Report this to pgsql-bugs@postgresql.org ##
18564 ## ---------------------------------------- ##
18567 sed "s/^/$as_me: WARNING: /" >&2
18570 echo "$as_me:$LINENO: checking for pthread.h" >&5
18571 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
18572 if test "${ac_cv_header_pthread_h+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 ac_cv_header_pthread_h
=$ac_header_preproc
18577 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
18578 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
18581 if test $ac_cv_header_pthread_h = yes; then
18584 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
18585 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
18586 { (exit 1); exit 1; }; }
18595 for ac_func
in strerror_r getpwuid_r gethostbyname_r
18597 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18598 echo "$as_me:$LINENO: checking for $ac_func" >&5
18599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18600 if eval "test \"\${$as_ac_var+set}\" = set"; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 cat >conftest.
$ac_ext <<_ACEOF
18606 cat confdefs.h
>>conftest.
$ac_ext
18607 cat >>conftest.
$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18611 #define $ac_func innocuous_$ac_func
18613 /* System header to define __stub macros and hopefully few prototypes,
18614 which can conflict with char $ac_func (); below.
18615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18616 <limits.h> exists even on freestanding compilers. */
18619 # include <limits.h>
18621 # include <assert.h>
18626 /* Override any gcc2 internal prototype to avoid an error. */
18631 /* We use char because int might match the return type of a gcc2
18632 builtin and then its argument prototype would still apply. */
18634 /* The GNU C library defines this for functions which it implements
18635 to always fail with ENOSYS. Some functions are actually named
18636 something starting with __ and the normal name is an alias. */
18637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18640 char (*f) () = $ac_func;
18649 return f != $ac_func;
18654 rm -f conftest.
$ac_objext conftest
$ac_exeext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18656 (eval $ac_link) 2>conftest.er1
18658 grep -v '^ *+' conftest.er1
>conftest.err
18660 cat conftest.err
>&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try
='test -z "$ac_c_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try
='test -s conftest$ac_exeext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 eval "$as_ac_var=yes"
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.
$ac_ext >&5
18681 eval "$as_ac_var=no"
18683 rm -f conftest.err conftest.
$ac_objext \
18684 conftest
$ac_exeext conftest.
$ac_ext
18686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18688 if test `eval echo '${'$as_ac_var'}'` = yes; then
18689 cat >>confdefs.h
<<_ACEOF
18690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18697 # Do test here with the proper thread flags
18698 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
18699 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
18700 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 cat >conftest.
$ac_ext <<_ACEOF
18706 cat confdefs.h
>>conftest.
$ac_ext
18707 cat >>conftest.
$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 #include <sys/types.h>
18715 struct passwd *space;
18718 struct passwd **result;
18719 getpwuid_r(uid, space, buf, bufsize, result);
18724 rm -f conftest.
$ac_objext
18725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18726 (eval $ac_compile) 2>conftest.er1
18728 grep -v '^ *+' conftest.er1
>conftest.err
18730 cat conftest.err
>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
18733 { ac_try
='test -z "$ac_c_werror_flag"
18734 || test ! -s conftest.err'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try
='test -s conftest.$ac_objext'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 pgac_func_getpwuid_r_5arg
=yes
18748 echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.
$ac_ext >&5
18751 pgac_func_getpwuid_r_5arg
=no
18753 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18755 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
18756 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
18757 if test x
"$pgac_func_getpwuid_r_5arg" = xyes
; then
18759 cat >>confdefs.h
<<\_ACEOF
18760 #define GETPWUID_R_5ARG
18765 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
18766 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
18767 if test "${pgac_func_strerror_r_int+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 cat >conftest.
$ac_ext <<_ACEOF
18773 cat confdefs.h
>>conftest.
$ac_ext
18774 cat >>conftest.
$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 #include <string.h>
18781 int strerror_r(int, char *, size_t);
18783 /* Older AIX has 'int' for the third argument so we don't test the args. */
18790 rm -f conftest.
$ac_objext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18792 (eval $ac_compile) 2>conftest.er1
18794 grep -v '^ *+' conftest.er1
>conftest.err
18796 cat conftest.err
>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try
='test -z "$ac_c_werror_flag"
18800 || test ! -s conftest.err'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; } &&
18806 { ac_try
='test -s conftest.$ac_objext'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
18812 pgac_func_strerror_r_int
=yes
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.
$ac_ext >&5
18817 pgac_func_strerror_r_int
=no
18819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18821 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
18822 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
18823 if test x
"$pgac_func_strerror_r_int" = xyes
; then
18825 cat >>confdefs.h
<<\_ACEOF
18826 #define STRERROR_R_INT
18836 # do not use values from template file
18845 # We can test for libldap_r only after we know PTHREAD_LIBS
18846 if test "$with_ldap" = yes ; then
18848 if test "$PORTNAME" != "win32"; then
18850 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
18851 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
18852 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
18853 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 ac_check_lib_save_LIBS
=$LIBS
18856 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
18857 cat >conftest.
$ac_ext <<_ACEOF
18860 cat confdefs.h
>>conftest.
$ac_ext
18861 cat >>conftest.
$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18864 /* Override any gcc2 internal prototype to avoid an error. */
18868 /* We use char because int might match the return type of a gcc2
18869 builtin and then its argument prototype would still apply. */
18879 rm -f conftest.
$ac_objext conftest
$ac_exeext
18880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18881 (eval $ac_link) 2>conftest.er1
18883 grep -v '^ *+' conftest.er1
>conftest.err
18885 cat conftest.err
>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
18888 { ac_try
='test -z "$ac_c_werror_flag"
18889 || test ! -s conftest.err'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try
='test -s conftest$ac_exeext'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 ac_cv_lib_ldap_ldap_bind
=yes
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.
$ac_ext >&5
18906 ac_cv_lib_ldap_ldap_bind
=no
18908 rm -f conftest.err conftest.
$ac_objext \
18909 conftest
$ac_exeext conftest.
$ac_ext
18910 LIBS
=$ac_check_lib_save_LIBS
18912 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
18913 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
18914 if test $ac_cv_lib_ldap_ldap_bind = yes; then
18915 cat >>confdefs.h
<<_ACEOF
18916 #define HAVE_LIBLDAP 1
18919 LIBS
="-lldap $LIBS"
18922 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
18923 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
18924 { (exit 1); exit 1; }; }
18927 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
18928 if test "$enable_thread_safety" = yes; then
18929 # on some platforms ldap_r fails to link without PTHREAD_LIBS
18931 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
18932 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
18933 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 ac_check_lib_save_LIBS
=$LIBS
18937 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
18938 cat >conftest.
$ac_ext <<_ACEOF
18941 cat confdefs.h
>>conftest.
$ac_ext
18942 cat >>conftest.
$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18945 /* Override any gcc2 internal prototype to avoid an error. */
18949 /* We use char because int might match the return type of a gcc2
18950 builtin and then its argument prototype would still apply. */
18951 char ldap_simple_bind ();
18955 ldap_simple_bind ();
18960 rm -f conftest.
$ac_objext conftest
$ac_exeext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962 (eval $ac_link) 2>conftest.er1
18964 grep -v '^ *+' conftest.er1
>conftest.err
18966 cat conftest.err
>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try
='test -z "$ac_c_werror_flag"
18970 || test ! -s conftest.err'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; } &&
18976 { ac_try
='test -s conftest$ac_exeext'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.
$ac_ext >&5
18987 ac_cv_lib_ldap_r_ldap_simple_bind
=no
18989 rm -f conftest.err conftest.
$ac_objext \
18990 conftest
$ac_exeext conftest.
$ac_ext
18991 LIBS
=$ac_check_lib_save_LIBS
18993 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
18994 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
18995 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
18996 cat >>confdefs.h
<<_ACEOF
18997 #define HAVE_LIBLDAP_R 1
19000 LIBS
="-lldap_r $LIBS"
19003 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19004 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19005 { (exit 1); exit 1; }; }
19008 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
19010 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
19014 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19015 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
19016 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 ac_check_lib_save_LIBS
=$LIBS
19020 LIBS
="-lwldap32 $LIBS"
19021 cat >conftest.
$ac_ext <<_ACEOF
19024 cat confdefs.h
>>conftest.
$ac_ext
19025 cat >>conftest.
$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19028 /* Override any gcc2 internal prototype to avoid an error. */
19032 /* We use char because int might match the return type of a gcc2
19033 builtin and then its argument prototype would still apply. */
19043 rm -f conftest.
$ac_objext conftest
$ac_exeext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19045 (eval $ac_link) 2>conftest.er1
19047 grep -v '^ *+' conftest.er1
>conftest.err
19049 cat conftest.err
>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try
='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try
='test -s conftest$ac_exeext'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_cv_lib_wldap32_ldap_bind
=yes
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.
$ac_ext >&5
19070 ac_cv_lib_wldap32_ldap_bind
=no
19072 rm -f conftest.err conftest.
$ac_objext \
19073 conftest
$ac_exeext conftest.
$ac_ext
19074 LIBS
=$ac_check_lib_save_LIBS
19076 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19077 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
19078 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19079 cat >>confdefs.h
<<_ACEOF
19080 #define HAVE_LIBWLDAP32 1
19083 LIBS
="-lwldap32 $LIBS"
19086 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19087 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19088 { (exit 1); exit 1; }; }
19091 LDAP_LIBS_FE
="-lwldap32"
19092 LDAP_LIBS_BE
="-lwldap32"
19100 # This test makes sure that run tests work at all. Sometimes a shared
19101 # library is found by the linker, but the runtime linker can't find it.
19102 # This check should come after all modifications of compiler or linker
19103 # variables, and before any other run tests.
19104 echo "$as_me:$LINENO: checking test program" >&5
19105 echo $ECHO_N "checking test program... $ECHO_C" >&6
19106 if test "$cross_compiling" = yes; then
19107 echo "$as_me:$LINENO: result: cross-compiling" >&5
19108 echo "${ECHO_T}cross-compiling" >&6
19110 cat >conftest.
$ac_ext <<_ACEOF
19113 cat confdefs.h
>>conftest.
$ac_ext
19114 cat >>conftest.
$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 int main() { return 0; }
19118 rm -f conftest
$ac_exeext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19120 (eval $ac_link) 2>&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 echo "$as_me:$LINENO: result: ok" >&5
19130 echo "${ECHO_T}ok" >&6
19132 echo "$as_me: program exited with status $ac_status" >&5
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.
$ac_ext >&5
19136 ( exit $ac_status )
19137 echo "$as_me:$LINENO: result: failed" >&5
19138 echo "${ECHO_T}failed" >&6
19139 { { echo "$as_me:$LINENO: error:
19140 Could not execute a simple test program. This may be a problem
19141 related to locating shared libraries. Check the file 'config.log'
19142 for the exact reason." >&5
19143 echo "$as_me: error:
19144 Could not execute a simple test program. This may be a problem
19145 related to locating shared libraries. Check the file 'config.log'
19146 for the exact reason." >&2;}
19147 { (exit 1); exit 1; }; }
19149 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19152 # --------------------
19153 # Run tests below here
19154 # --------------------
19156 # Force use of our snprintf if system's doesn't do arg control
19157 # See comment above at snprintf test for details.
19158 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no
; then
19159 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19160 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
19161 if test "${pgac_cv_printf_arg_control+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 if test "$cross_compiling" = yes; then
19165 pgac_cv_printf_arg_control
=cross
19167 cat >conftest.
$ac_ext <<_ACEOF
19170 cat confdefs.h
>>conftest.
$ac_ext
19171 cat >>conftest.
$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19174 #include <string.h>
19180 /* can it swap arguments? */
19181 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19182 if (strcmp(buf, "4 3") != 0)
19187 rm -f conftest
$ac_exeext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19189 (eval $ac_link) 2>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 pgac_cv_printf_arg_control
=yes
19200 echo "$as_me: program exited with status $ac_status" >&5
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.
$ac_ext >&5
19204 ( exit $ac_status )
19205 pgac_cv_printf_arg_control
=no
19207 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19211 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19212 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
19214 if test $pgac_cv_printf_arg_control != yes ; then
19215 pgac_need_repl_snprintf
=yes
19221 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
19222 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
19223 if test "${pgac_cv_type_long_int_64+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 if test "$cross_compiling" = yes; then
19227 # If cross-compiling, check the size reported by the compiler and
19228 # trust that the arithmetic works.
19229 cat >conftest.
$ac_ext <<_ACEOF
19232 cat confdefs.h
>>conftest.
$ac_ext
19233 cat >>conftest.
$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19239 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
19246 rm -f conftest.
$ac_objext
19247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19248 (eval $ac_compile) 2>conftest.er1
19250 grep -v '^ *+' conftest.er1
>conftest.err
19252 cat conftest.err
>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } &&
19255 { ac_try
='test -z "$ac_c_werror_flag"
19256 || test ! -s conftest.err'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try
='test -s conftest.$ac_objext'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 pgac_cv_type_long_int_64
=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.
$ac_ext >&5
19273 pgac_cv_type_long_int_64
=no
19275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19277 cat >conftest.
$ac_ext <<_ACEOF
19280 cat confdefs.h
>>conftest.
$ac_ext
19281 cat >>conftest.
$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19283 typedef long int ac_int64;
19286 * These are globals to discourage the compiler from folding all the
19287 * arithmetic tests down to compile-time constants.
19289 ac_int64 a = 20000001;
19290 ac_int64 b = 40000005;
19292 int does_int64_work()
19296 if (sizeof(ac_int64) != 8)
19297 return 0; /* definitely not the right size */
19299 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19307 exit(! does_int64_work());
19310 rm -f conftest
$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 (eval $ac_link) 2>&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
19321 pgac_cv_type_long_int_64
=yes
19323 echo "$as_me: program exited with status $ac_status" >&5
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.
$ac_ext >&5
19327 ( exit $ac_status )
19328 pgac_cv_type_long_int_64
=no
19330 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19333 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
19334 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
19336 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
19337 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
19339 cat >>confdefs.h
<<\_ACEOF
19340 #define HAVE_LONG_INT_64
19346 if test x
"$HAVE_LONG_INT_64" = x
"no" ; then
19347 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
19348 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
19349 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 if test "$cross_compiling" = yes; then
19353 # If cross-compiling, check the size reported by the compiler and
19354 # trust that the arithmetic works.
19355 cat >conftest.
$ac_ext <<_ACEOF
19358 cat confdefs.h
>>conftest.
$ac_ext
19359 cat >>conftest.
$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19365 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
19372 rm -f conftest.
$ac_objext
19373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374 (eval $ac_compile) 2>conftest.er1
19376 grep -v '^ *+' conftest.er1
>conftest.err
19378 cat conftest.err
>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } &&
19381 { ac_try
='test -z "$ac_c_werror_flag"
19382 || test ! -s conftest.err'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; } &&
19388 { ac_try
='test -s conftest.$ac_objext'
19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390 (eval $ac_try) 2>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; }; then
19394 pgac_cv_type_long_long_int_64
=yes
19396 echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.
$ac_ext >&5
19399 pgac_cv_type_long_long_int_64
=no
19401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19403 cat >conftest.
$ac_ext <<_ACEOF
19406 cat confdefs.h
>>conftest.
$ac_ext
19407 cat >>conftest.
$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19409 typedef long long int ac_int64;
19412 * These are globals to discourage the compiler from folding all the
19413 * arithmetic tests down to compile-time constants.
19415 ac_int64 a = 20000001;
19416 ac_int64 b = 40000005;
19418 int does_int64_work()
19422 if (sizeof(ac_int64) != 8)
19423 return 0; /* definitely not the right size */
19425 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
19433 exit(! does_int64_work());
19436 rm -f conftest
$ac_exeext
19437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19438 (eval $ac_link) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 pgac_cv_type_long_long_int_64
=yes
19449 echo "$as_me: program exited with status $ac_status" >&5
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.
$ac_ext >&5
19453 ( exit $ac_status )
19454 pgac_cv_type_long_long_int_64
=no
19456 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19459 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
19460 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
19462 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
19463 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
19465 cat >>confdefs.h
<<\_ACEOF
19466 #define HAVE_LONG_LONG_INT_64
19475 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
; then
19476 cat >conftest.
$ac_ext <<_ACEOF
19479 cat confdefs.h
>>conftest.
$ac_ext
19480 cat >>conftest.
$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19483 #define INT64CONST(x) x##LL
19484 long long int foo = INT64CONST(0x1234567890123456);
19494 rm -f conftest.
$ac_objext
19495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19496 (eval $ac_compile) 2>conftest.er1
19498 grep -v '^ *+' conftest.er1
>conftest.err
19500 cat conftest.err
>&5
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); } &&
19503 { ac_try
='test -z "$ac_c_werror_flag"
19504 || test ! -s conftest.err'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try
='test -s conftest.$ac_objext'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19517 cat >>confdefs.h
<<\_ACEOF
19518 #define HAVE_LL_CONSTANTS 1
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.
$ac_ext >&5
19526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19530 # If we found "long int" is 64 bits, assume snprintf handles it. If
19531 # we found we need to use "long long int", better check. We cope with
19532 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
19533 # work, fall back to our own snprintf emulation (which we know uses %lld).
19535 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
19536 if test $pgac_need_repl_snprintf = no
; then
19537 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
19538 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
19539 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 for pgac_format
in '%lld' '%qd' '%I64d'; do
19543 if test "$cross_compiling" = yes; then
19544 pgac_cv_snprintf_long_long_int_format
=cross
; break
19546 cat >conftest.
$ac_ext <<_ACEOF
19549 cat confdefs.h
>>conftest.
$ac_ext
19550 cat >>conftest.
$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19553 typedef long long int ac_int64;
19554 #define INT64_FORMAT "$pgac_format"
19556 ac_int64 a = 20000001;
19557 ac_int64 b = 40000005;
19559 int does_int64_snprintf_work()
19564 if (sizeof(ac_int64) != 8)
19565 return 0; /* doesn't look like the right size */
19568 snprintf(buf, 100, INT64_FORMAT, c);
19569 if (strcmp(buf, "800000140000005") != 0)
19570 return 0; /* either multiply or snprintf is busted */
19574 exit(! does_int64_snprintf_work());
19577 rm -f conftest
$ac_exeext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19579 (eval $ac_link) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 pgac_cv_snprintf_long_long_int_format
=$pgac_format; break
19590 echo "$as_me: program exited with status $ac_status" >&5
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.
$ac_ext >&5
19595 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19600 LONG_LONG_INT_FORMAT
=''
19602 case $pgac_cv_snprintf_long_long_int_format in
19603 cross
) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
19604 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
19605 ?
*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
19606 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
19607 LONG_LONG_INT_FORMAT
=$pgac_cv_snprintf_long_long_int_format;;
19608 *) echo "$as_me:$LINENO: result: none" >&5
19609 echo "${ECHO_T}none" >&6;;
19611 if test "$LONG_LONG_INT_FORMAT" = ""; then
19612 # Force usage of our own snprintf, since system snprintf is broken
19613 pgac_need_repl_snprintf
=yes
19614 LONG_LONG_INT_FORMAT
='%lld'
19617 # Here if we previously decided we needed to use our own snprintf
19618 LONG_LONG_INT_FORMAT
='%lld'
19620 LONG_LONG_UINT_FORMAT
=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
19621 INT64_FORMAT
="\"$LONG_LONG_INT_FORMAT\""
19622 UINT64_FORMAT
="\"$LONG_LONG_UINT_FORMAT\""
19624 # Here if we are not using 'long long int' at all
19625 INT64_FORMAT
='"%ld"'
19626 UINT64_FORMAT
='"%lu"'
19630 cat >>confdefs.h
<<_ACEOF
19631 #define INT64_FORMAT $INT64_FORMAT
19636 cat >>confdefs.h
<<_ACEOF
19637 #define UINT64_FORMAT $UINT64_FORMAT
19641 # Now we have checked all the reasons to replace snprintf
19642 if test $pgac_need_repl_snprintf = yes; then
19644 cat >>confdefs.h
<<\_ACEOF
19645 #define USE_REPL_SNPRINTF 1
19649 "snprintf.$ac_objext" | \
19650 *" snprintf.$ac_objext" | \
19651 "snprintf.$ac_objext "* | \
19652 *" snprintf.$ac_objext "* ) ;;
19653 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
19658 # Need a #define for the size of Datum (unsigned long)
19659 echo "$as_me:$LINENO: checking for unsigned long" >&5
19660 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
19661 if test "${ac_cv_type_unsigned_long+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 cat >conftest.
$ac_ext <<_ACEOF
19667 cat confdefs.h
>>conftest.
$ac_ext
19668 cat >>conftest.
$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 $ac_includes_default
19674 if ((unsigned long *) 0)
19676 if (sizeof (unsigned long))
19682 rm -f conftest.
$ac_objext
19683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19684 (eval $ac_compile) 2>conftest.er1
19686 grep -v '^ *+' conftest.er1
>conftest.err
19688 cat conftest.err
>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } &&
19691 { ac_try
='test -z "$ac_c_werror_flag"
19692 || test ! -s conftest.err'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try
='test -s conftest.$ac_objext'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; }; then
19704 ac_cv_type_unsigned_long
=yes
19706 echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.
$ac_ext >&5
19709 ac_cv_type_unsigned_long
=no
19711 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19713 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19714 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
19716 echo "$as_me:$LINENO: checking size of unsigned long" >&5
19717 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
19718 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19719 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 if test "$ac_cv_type_unsigned_long" = yes; then
19722 # The cast to unsigned long works around a bug in the HP C Compiler
19723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19725 # This bug is HP SR number 8606223364.
19726 if test "$cross_compiling" = yes; then
19727 # Depending upon the size, compute the lo and hi bounds.
19728 cat >conftest.
$ac_ext <<_ACEOF
19731 cat confdefs.h
>>conftest.
$ac_ext
19732 cat >>conftest.
$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19734 $ac_includes_default
19738 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
19745 rm -f conftest.
$ac_objext
19746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19747 (eval $ac_compile) 2>conftest.er1
19749 grep -v '^ *+' conftest.er1
>conftest.err
19751 cat conftest.err
>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } &&
19754 { ac_try
='test -z "$ac_c_werror_flag"
19755 || test ! -s conftest.err'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; } &&
19761 { ac_try
='test -s conftest.$ac_objext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19769 cat >conftest.
$ac_ext <<_ACEOF
19772 cat confdefs.h
>>conftest.
$ac_ext
19773 cat >>conftest.
$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 $ac_includes_default
19779 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19786 rm -f conftest.
$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>conftest.er1
19790 grep -v '^ *+' conftest.er1
>conftest.err
19792 cat conftest.err
>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
19795 { ac_try
='test -z "$ac_c_werror_flag"
19796 || test ! -s conftest.err'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; } &&
19802 { ac_try
='test -s conftest.$ac_objext'
19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804 (eval $ac_try) 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; }; then
19808 ac_hi
=$ac_mid; break
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.
$ac_ext >&5
19813 ac_lo
=`expr $ac_mid + 1`
19814 if test $ac_lo -le $ac_mid; then
19818 ac_mid
=`expr 2 '*' $ac_mid + 1`
19820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.
$ac_ext >&5
19826 cat >conftest.
$ac_ext <<_ACEOF
19829 cat confdefs.h
>>conftest.
$ac_ext
19830 cat >>conftest.
$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 $ac_includes_default
19836 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
19843 rm -f conftest.
$ac_objext
19844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19845 (eval $ac_compile) 2>conftest.er1
19847 grep -v '^ *+' conftest.er1
>conftest.err
19849 cat conftest.err
>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try
='test -z "$ac_c_werror_flag"
19853 || test ! -s conftest.err'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; } &&
19859 { ac_try
='test -s conftest.$ac_objext'
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; }; then
19867 cat >conftest.
$ac_ext <<_ACEOF
19870 cat confdefs.h
>>conftest.
$ac_ext
19871 cat >>conftest.
$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 $ac_includes_default
19877 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
19884 rm -f conftest.
$ac_objext
19885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19886 (eval $ac_compile) 2>conftest.er1
19888 grep -v '^ *+' conftest.er1
>conftest.err
19890 cat conftest.err
>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
19893 { ac_try
='test -z "$ac_c_werror_flag"
19894 || test ! -s conftest.err'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; } &&
19900 { ac_try
='test -s conftest.$ac_objext'
19901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902 (eval $ac_try) 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_lo
=$ac_mid; break
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.
$ac_ext >&5
19911 ac_hi
=`expr '(' $ac_mid ')' - 1`
19912 if test $ac_mid -le $ac_hi; then
19916 ac_mid
=`expr 2 '*' $ac_mid`
19918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.
$ac_ext >&5
19926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19928 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19929 # Binary search between lo and hi bounds.
19930 while test "x$ac_lo" != "x$ac_hi"; do
19931 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19932 cat >conftest.
$ac_ext <<_ACEOF
19935 cat confdefs.h
>>conftest.
$ac_ext
19936 cat >>conftest.
$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 $ac_includes_default
19942 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19949 rm -f conftest.
$ac_objext
19950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19951 (eval $ac_compile) 2>conftest.er1
19953 grep -v '^ *+' conftest.er1
>conftest.err
19955 cat conftest.err
>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } &&
19958 { ac_try
='test -z "$ac_c_werror_flag"
19959 || test ! -s conftest.err'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try
='test -s conftest.$ac_objext'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.
$ac_ext >&5
19976 ac_lo
=`expr '(' $ac_mid ')' + 1`
19978 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19981 ?
*) ac_cv_sizeof_unsigned_long
=$ac_lo;;
19982 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19983 See \`config.log' for more details." >&5
19984 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19985 See \`config.log' for more details." >&2;}
19986 { (exit 1); exit 1; }; } ;;
19989 if test "$cross_compiling" = yes; then
19990 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19991 See \`config.log' for more details." >&5
19992 echo "$as_me: error: cannot run test program while cross compiling
19993 See \`config.log' for more details." >&2;}
19994 { (exit 1); exit 1; }; }
19996 cat >conftest.
$ac_ext <<_ACEOF
19999 cat confdefs.h
>>conftest.
$ac_ext
20000 cat >>conftest.
$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 $ac_includes_default
20003 long longval () { return (long) (sizeof (unsigned long)); }
20004 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
20006 #include <stdlib.h>
20011 FILE *f = fopen ("conftest.val", "w");
20014 if (((long) (sizeof (unsigned long))) < 0)
20016 long i = longval ();
20017 if (i != ((long) (sizeof (unsigned long))))
20019 fprintf (f, "%ld\n", i);
20023 unsigned long i = ulongval ();
20024 if (i != ((long) (sizeof (unsigned long))))
20026 fprintf (f, "%lu\n", i);
20028 exit (ferror (f) || fclose (f) != 0);
20034 rm -f conftest
$ac_exeext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20036 (eval $ac_link) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_cv_sizeof_unsigned_long
=`cat conftest.val`
20047 echo "$as_me: program exited with status $ac_status" >&5
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.
$ac_ext >&5
20051 ( exit $ac_status )
20052 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
20053 See \`config.log' for more details." >&5
20054 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
20055 See \`config.log' for more details." >&2;}
20056 { (exit 1); exit 1; }; }
20058 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20063 ac_cv_sizeof_unsigned_long
=0
20066 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20067 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
20068 cat >>confdefs.h
<<_ACEOF
20069 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20074 # And one for the size of size_t (enables tweaks for > 32bit address space)
20075 echo "$as_me:$LINENO: checking for size_t" >&5
20076 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20077 if test "${ac_cv_type_size_t+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 cat >conftest.
$ac_ext <<_ACEOF
20083 cat confdefs.h
>>conftest.
$ac_ext
20084 cat >>conftest.
$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 $ac_includes_default
20092 if (sizeof (size_t))
20098 rm -f conftest.
$ac_objext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20100 (eval $ac_compile) 2>conftest.er1
20102 grep -v '^ *+' conftest.er1
>conftest.err
20104 cat conftest.err
>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try
='test -z "$ac_c_werror_flag"
20108 || test ! -s conftest.err'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; } &&
20114 { ac_try
='test -s conftest.$ac_objext'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120 ac_cv_type_size_t
=yes
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.
$ac_ext >&5
20125 ac_cv_type_size_t
=no
20127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20129 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20130 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20132 echo "$as_me:$LINENO: checking size of size_t" >&5
20133 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20134 if test "${ac_cv_sizeof_size_t+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20137 if test "$ac_cv_type_size_t" = yes; then
20138 # The cast to unsigned long works around a bug in the HP C Compiler
20139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20141 # This bug is HP SR number 8606223364.
20142 if test "$cross_compiling" = yes; then
20143 # Depending upon the size, compute the lo and hi bounds.
20144 cat >conftest.
$ac_ext <<_ACEOF
20147 cat confdefs.h
>>conftest.
$ac_ext
20148 cat >>conftest.
$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 $ac_includes_default
20154 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20161 rm -f conftest.
$ac_objext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20163 (eval $ac_compile) 2>conftest.er1
20165 grep -v '^ *+' conftest.er1
>conftest.err
20167 cat conftest.err
>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } &&
20170 { ac_try
='test -z "$ac_c_werror_flag"
20171 || test ! -s conftest.err'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try
='test -s conftest.$ac_objext'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20185 cat >conftest.
$ac_ext <<_ACEOF
20188 cat confdefs.h
>>conftest.
$ac_ext
20189 cat >>conftest.
$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20191 $ac_includes_default
20195 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20202 rm -f conftest.
$ac_objext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20204 (eval $ac_compile) 2>conftest.er1
20206 grep -v '^ *+' conftest.er1
>conftest.err
20208 cat conftest.err
>&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } &&
20211 { ac_try
='test -z "$ac_c_werror_flag"
20212 || test ! -s conftest.err'
20213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214 (eval $ac_try) 2>&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; } &&
20218 { ac_try
='test -s conftest.$ac_objext'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 ac_hi
=$ac_mid; break
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.
$ac_ext >&5
20229 ac_lo
=`expr $ac_mid + 1`
20230 if test $ac_lo -le $ac_mid; then
20234 ac_mid
=`expr 2 '*' $ac_mid + 1`
20236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20239 echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.
$ac_ext >&5
20242 cat >conftest.
$ac_ext <<_ACEOF
20245 cat confdefs.h
>>conftest.
$ac_ext
20246 cat >>conftest.
$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 $ac_includes_default
20252 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20259 rm -f conftest.
$ac_objext
20260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20261 (eval $ac_compile) 2>conftest.er1
20263 grep -v '^ *+' conftest.er1
>conftest.err
20265 cat conftest.err
>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } &&
20268 { ac_try
='test -z "$ac_c_werror_flag"
20269 || test ! -s conftest.err'
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; } &&
20275 { ac_try
='test -s conftest.$ac_objext'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20283 cat >conftest.
$ac_ext <<_ACEOF
20286 cat confdefs.h
>>conftest.
$ac_ext
20287 cat >>conftest.
$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 $ac_includes_default
20293 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20300 rm -f conftest.
$ac_objext
20301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20302 (eval $ac_compile) 2>conftest.er1
20304 grep -v '^ *+' conftest.er1
>conftest.err
20306 cat conftest.err
>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try
='test -z "$ac_c_werror_flag"
20310 || test ! -s conftest.err'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; } &&
20316 { ac_try
='test -s conftest.$ac_objext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 ac_lo
=$ac_mid; break
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.
$ac_ext >&5
20327 ac_hi
=`expr '(' $ac_mid ')' - 1`
20328 if test $ac_mid -le $ac_hi; then
20332 ac_mid
=`expr 2 '*' $ac_mid`
20334 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.
$ac_ext >&5
20342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20344 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20345 # Binary search between lo and hi bounds.
20346 while test "x$ac_lo" != "x$ac_hi"; do
20347 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20348 cat >conftest.
$ac_ext <<_ACEOF
20351 cat confdefs.h
>>conftest.
$ac_ext
20352 cat >>conftest.
$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 $ac_includes_default
20358 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20365 rm -f conftest.
$ac_objext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20367 (eval $ac_compile) 2>conftest.er1
20369 grep -v '^ *+' conftest.er1
>conftest.err
20371 cat conftest.err
>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } &&
20374 { ac_try
='test -z "$ac_c_werror_flag"
20375 || test ! -s conftest.err'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; } &&
20381 { ac_try
='test -s conftest.$ac_objext'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20389 echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.
$ac_ext >&5
20392 ac_lo
=`expr '(' $ac_mid ')' + 1`
20394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20397 ?
*) ac_cv_sizeof_size_t
=$ac_lo;;
20398 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20399 See \`config.log' for more details." >&5
20400 echo "$as_me: error: cannot compute sizeof (size_t), 77
20401 See \`config.log' for more details." >&2;}
20402 { (exit 1); exit 1; }; } ;;
20405 if test "$cross_compiling" = yes; then
20406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20407 See \`config.log' for more details." >&5
20408 echo "$as_me: error: cannot run test program while cross compiling
20409 See \`config.log' for more details." >&2;}
20410 { (exit 1); exit 1; }; }
20412 cat >conftest.
$ac_ext <<_ACEOF
20415 cat confdefs.h
>>conftest.
$ac_ext
20416 cat >>conftest.
$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20418 $ac_includes_default
20419 long longval () { return (long) (sizeof (size_t)); }
20420 unsigned long ulongval () { return (long) (sizeof (size_t)); }
20422 #include <stdlib.h>
20427 FILE *f = fopen ("conftest.val", "w");
20430 if (((long) (sizeof (size_t))) < 0)
20432 long i = longval ();
20433 if (i != ((long) (sizeof (size_t))))
20435 fprintf (f, "%ld\n", i);
20439 unsigned long i = ulongval ();
20440 if (i != ((long) (sizeof (size_t))))
20442 fprintf (f, "%lu\n", i);
20444 exit (ferror (f) || fclose (f) != 0);
20450 rm -f conftest
$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452 (eval $ac_link) 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 ac_cv_sizeof_size_t
=`cat conftest.val`
20463 echo "$as_me: program exited with status $ac_status" >&5
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.
$ac_ext >&5
20467 ( exit $ac_status )
20468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20469 See \`config.log' for more details." >&5
20470 echo "$as_me: error: cannot compute sizeof (size_t), 77
20471 See \`config.log' for more details." >&2;}
20472 { (exit 1); exit 1; }; }
20474 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20479 ac_cv_sizeof_size_t
=0
20482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20483 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20484 cat >>confdefs.h
<<_ACEOF
20485 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20490 # Determine memory alignment requirements for the basic C data types.
20492 echo "$as_me:$LINENO: checking for short" >&5
20493 echo $ECHO_N "checking for short... $ECHO_C" >&6
20494 if test "${ac_cv_type_short+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 cat >conftest.
$ac_ext <<_ACEOF
20500 cat confdefs.h
>>conftest.
$ac_ext
20501 cat >>conftest.
$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20503 $ac_includes_default
20509 if (sizeof (short))
20515 rm -f conftest.
$ac_objext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517 (eval $ac_compile) 2>conftest.er1
20519 grep -v '^ *+' conftest.er1
>conftest.err
20521 cat conftest.err
>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try
='test -z "$ac_c_werror_flag"
20525 || test ! -s conftest.err'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try
='test -s conftest.$ac_objext'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }; then
20537 ac_cv_type_short
=yes
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.
$ac_ext >&5
20542 ac_cv_type_short
=no
20544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20546 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20547 echo "${ECHO_T}$ac_cv_type_short" >&6
20549 echo "$as_me:$LINENO: checking alignment of short" >&5
20550 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
20551 if test "${pgac_cv_alignof_short+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 if test "$ac_cv_type_short" = yes; then
20555 if test "$cross_compiling" = yes; then
20556 # Depending upon the size, compute the lo and hi bounds.
20557 cat >conftest.
$ac_ext <<_ACEOF
20560 cat confdefs.h
>>conftest.
$ac_ext
20561 cat >>conftest.
$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20563 $ac_includes_default
20564 struct { char filler; short field; } pgac_struct;
20568 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20575 rm -f conftest.
$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577 (eval $ac_compile) 2>conftest.er1
20579 grep -v '^ *+' conftest.er1
>conftest.err
20581 cat conftest.err
>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } &&
20584 { ac_try
='test -z "$ac_c_werror_flag"
20585 || test ! -s conftest.err'
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try
='test -s conftest.$ac_objext'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20599 cat >conftest.
$ac_ext <<_ACEOF
20602 cat confdefs.h
>>conftest.
$ac_ext
20603 cat >>conftest.
$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20606 struct { char filler; short field; } pgac_struct;
20610 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20617 rm -f conftest.
$ac_objext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20619 (eval $ac_compile) 2>conftest.er1
20621 grep -v '^ *+' conftest.er1
>conftest.err
20623 cat conftest.err
>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try
='test -z "$ac_c_werror_flag"
20627 || test ! -s conftest.err'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try
='test -s conftest.$ac_objext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ac_hi
=$ac_mid; break
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.
$ac_ext >&5
20644 ac_lo
=`expr $ac_mid + 1`
20645 if test $ac_lo -le $ac_mid; then
20649 ac_mid
=`expr 2 '*' $ac_mid + 1`
20651 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.
$ac_ext >&5
20657 cat >conftest.
$ac_ext <<_ACEOF
20660 cat confdefs.h
>>conftest.
$ac_ext
20661 cat >>conftest.
$ac_ext <<_ACEOF
20662 /* end confdefs.h. */
20663 $ac_includes_default
20664 struct { char filler; short field; } pgac_struct;
20668 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20675 rm -f conftest.
$ac_objext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>conftest.er1
20679 grep -v '^ *+' conftest.er1
>conftest.err
20681 cat conftest.err
>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
20684 { ac_try
='test -z "$ac_c_werror_flag"
20685 || test ! -s conftest.err'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try
='test -s conftest.$ac_objext'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20699 cat >conftest.
$ac_ext <<_ACEOF
20702 cat confdefs.h
>>conftest.
$ac_ext
20703 cat >>conftest.
$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 $ac_includes_default
20706 struct { char filler; short field; } pgac_struct;
20710 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20717 rm -f conftest.
$ac_objext
20718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20719 (eval $ac_compile) 2>conftest.er1
20721 grep -v '^ *+' conftest.er1
>conftest.err
20723 cat conftest.err
>&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); } &&
20726 { ac_try
='test -z "$ac_c_werror_flag"
20727 || test ! -s conftest.err'
20728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729 (eval $ac_try) 2>&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); }; } &&
20733 { ac_try
='test -s conftest.$ac_objext'
20734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20735 (eval $ac_try) 2>&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); }; }; then
20739 ac_lo
=$ac_mid; break
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.
$ac_ext >&5
20744 ac_hi
=`expr '(' $ac_mid ')' - 1`
20745 if test $ac_mid -le $ac_hi; then
20749 ac_mid
=`expr 2 '*' $ac_mid`
20751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.
$ac_ext >&5
20759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20762 # Binary search between lo and hi bounds.
20763 while test "x$ac_lo" != "x$ac_hi"; do
20764 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20765 cat >conftest.
$ac_ext <<_ACEOF
20768 cat confdefs.h
>>conftest.
$ac_ext
20769 cat >>conftest.
$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 $ac_includes_default
20772 struct { char filler; short field; } pgac_struct;
20776 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20783 rm -f conftest.
$ac_objext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20785 (eval $ac_compile) 2>conftest.er1
20787 grep -v '^ *+' conftest.er1
>conftest.err
20789 cat conftest.err
>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
20792 { ac_try
='test -z "$ac_c_werror_flag"
20793 || test ! -s conftest.err'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try
='test -s conftest.$ac_objext'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.
$ac_ext >&5
20810 ac_lo
=`expr '(' $ac_mid ')' + 1`
20812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20815 ?
*) pgac_cv_alignof_short
=$ac_lo;;
20816 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20817 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20818 { (exit 1); exit 1; }; } ;;
20821 if test "$cross_compiling" = yes; then
20822 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20823 See \`config.log' for more details." >&5
20824 echo "$as_me: error: cannot run test program while cross compiling
20825 See \`config.log' for more details." >&2;}
20826 { (exit 1); exit 1; }; }
20828 cat >conftest.
$ac_ext <<_ACEOF
20831 cat confdefs.h
>>conftest.
$ac_ext
20832 cat >>conftest.
$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20834 $ac_includes_default
20835 struct { char filler; short field; } pgac_struct;
20836 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20837 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20839 #include <stdlib.h>
20844 FILE *f = fopen ("conftest.val", "w");
20847 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20849 long i = longval ();
20850 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20852 fprintf (f, "%ld\n", i);
20856 unsigned long i = ulongval ();
20857 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20859 fprintf (f, "%lu\n", i);
20861 exit (ferror (f) || fclose (f) != 0);
20867 rm -f conftest
$ac_exeext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869 (eval $ac_link) 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 pgac_cv_alignof_short
=`cat conftest.val`
20880 echo "$as_me: program exited with status $ac_status" >&5
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.
$ac_ext >&5
20884 ( exit $ac_status )
20885 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20886 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20887 { (exit 1); exit 1; }; }
20889 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20894 pgac_cv_alignof_short
=0
20897 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
20898 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
20899 cat >>confdefs.h
<<_ACEOF
20900 #define ALIGNOF_SHORT $pgac_cv_alignof_short
20904 echo "$as_me:$LINENO: checking for int" >&5
20905 echo $ECHO_N "checking for int... $ECHO_C" >&6
20906 if test "${ac_cv_type_int+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 cat >conftest.
$ac_ext <<_ACEOF
20912 cat confdefs.h
>>conftest.
$ac_ext
20913 cat >>conftest.
$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 $ac_includes_default
20927 rm -f conftest.
$ac_objext
20928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20929 (eval $ac_compile) 2>conftest.er1
20931 grep -v '^ *+' conftest.er1
>conftest.err
20933 cat conftest.err
>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } &&
20936 { ac_try
='test -z "$ac_c_werror_flag"
20937 || test ! -s conftest.err'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try
='test -s conftest.$ac_objext'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; }; then
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.
$ac_ext >&5
20956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20958 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20959 echo "${ECHO_T}$ac_cv_type_int" >&6
20961 echo "$as_me:$LINENO: checking alignment of int" >&5
20962 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
20963 if test "${pgac_cv_alignof_int+set}" = set; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20966 if test "$ac_cv_type_int" = yes; then
20967 if test "$cross_compiling" = yes; then
20968 # Depending upon the size, compute the lo and hi bounds.
20969 cat >conftest.
$ac_ext <<_ACEOF
20972 cat confdefs.h
>>conftest.
$ac_ext
20973 cat >>conftest.
$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 $ac_includes_default
20976 struct { char filler; int field; } pgac_struct;
20980 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20987 rm -f conftest.
$ac_objext
20988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989 (eval $ac_compile) 2>conftest.er1
20991 grep -v '^ *+' conftest.er1
>conftest.err
20993 cat conftest.err
>&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } &&
20996 { ac_try
='test -z "$ac_c_werror_flag"
20997 || test ! -s conftest.err'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try
='test -s conftest.$ac_objext'
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21011 cat >conftest.
$ac_ext <<_ACEOF
21014 cat confdefs.h
>>conftest.
$ac_ext
21015 cat >>conftest.
$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 $ac_includes_default
21018 struct { char filler; int field; } pgac_struct;
21022 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21029 rm -f conftest.
$ac_objext
21030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031 (eval $ac_compile) 2>conftest.er1
21033 grep -v '^ *+' conftest.er1
>conftest.err
21035 cat conftest.err
>&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } &&
21038 { ac_try
='test -z "$ac_c_werror_flag"
21039 || test ! -s conftest.err'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try
='test -s conftest.$ac_objext'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
21051 ac_hi
=$ac_mid; break
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.
$ac_ext >&5
21056 ac_lo
=`expr $ac_mid + 1`
21057 if test $ac_lo -le $ac_mid; then
21061 ac_mid
=`expr 2 '*' $ac_mid + 1`
21063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.
$ac_ext >&5
21069 cat >conftest.
$ac_ext <<_ACEOF
21072 cat confdefs.h
>>conftest.
$ac_ext
21073 cat >>conftest.
$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21075 $ac_includes_default
21076 struct { char filler; int field; } pgac_struct;
21080 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21087 rm -f conftest.
$ac_objext
21088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21089 (eval $ac_compile) 2>conftest.er1
21091 grep -v '^ *+' conftest.er1
>conftest.err
21093 cat conftest.err
>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try
='test -z "$ac_c_werror_flag"
21097 || test ! -s conftest.err'
21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; } &&
21103 { ac_try
='test -s conftest.$ac_objext'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21111 cat >conftest.
$ac_ext <<_ACEOF
21114 cat confdefs.h
>>conftest.
$ac_ext
21115 cat >>conftest.
$ac_ext <<_ACEOF
21116 /* end confdefs.h. */
21117 $ac_includes_default
21118 struct { char filler; int field; } pgac_struct;
21122 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21129 rm -f conftest.
$ac_objext
21130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21131 (eval $ac_compile) 2>conftest.er1
21133 grep -v '^ *+' conftest.er1
>conftest.err
21135 cat conftest.err
>&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try
='test -z "$ac_c_werror_flag"
21139 || test ! -s conftest.err'
21140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141 (eval $ac_try) 2>&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; } &&
21145 { ac_try
='test -s conftest.$ac_objext'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; }; then
21151 ac_lo
=$ac_mid; break
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.
$ac_ext >&5
21156 ac_hi
=`expr '(' $ac_mid ')' - 1`
21157 if test $ac_mid -le $ac_hi; then
21161 ac_mid
=`expr 2 '*' $ac_mid`
21163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.
$ac_ext >&5
21171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21174 # Binary search between lo and hi bounds.
21175 while test "x$ac_lo" != "x$ac_hi"; do
21176 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21177 cat >conftest.
$ac_ext <<_ACEOF
21180 cat confdefs.h
>>conftest.
$ac_ext
21181 cat >>conftest.
$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 $ac_includes_default
21184 struct { char filler; int field; } pgac_struct;
21188 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21195 rm -f conftest.
$ac_objext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21197 (eval $ac_compile) 2>conftest.er1
21199 grep -v '^ *+' conftest.er1
>conftest.err
21201 cat conftest.err
>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
21204 { ac_try
='test -z "$ac_c_werror_flag"
21205 || test ! -s conftest.err'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; } &&
21211 { ac_try
='test -s conftest.$ac_objext'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.
$ac_ext >&5
21222 ac_lo
=`expr '(' $ac_mid ')' + 1`
21224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21227 ?
*) pgac_cv_alignof_int
=$ac_lo;;
21228 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21229 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21230 { (exit 1); exit 1; }; } ;;
21233 if test "$cross_compiling" = yes; then
21234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21235 See \`config.log' for more details." >&5
21236 echo "$as_me: error: cannot run test program while cross compiling
21237 See \`config.log' for more details." >&2;}
21238 { (exit 1); exit 1; }; }
21240 cat >conftest.
$ac_ext <<_ACEOF
21243 cat confdefs.h
>>conftest.
$ac_ext
21244 cat >>conftest.
$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 $ac_includes_default
21247 struct { char filler; int field; } pgac_struct;
21248 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21249 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21251 #include <stdlib.h>
21256 FILE *f = fopen ("conftest.val", "w");
21259 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21261 long i = longval ();
21262 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21264 fprintf (f, "%ld\n", i);
21268 unsigned long i = ulongval ();
21269 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21271 fprintf (f, "%lu\n", i);
21273 exit (ferror (f) || fclose (f) != 0);
21279 rm -f conftest
$ac_exeext
21280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21281 (eval $ac_link) 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; }; then
21290 pgac_cv_alignof_int
=`cat conftest.val`
21292 echo "$as_me: program exited with status $ac_status" >&5
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.
$ac_ext >&5
21296 ( exit $ac_status )
21297 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
21298 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
21299 { (exit 1); exit 1; }; }
21301 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21306 pgac_cv_alignof_int
=0
21309 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
21310 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
21311 cat >>confdefs.h
<<_ACEOF
21312 #define ALIGNOF_INT $pgac_cv_alignof_int
21316 echo "$as_me:$LINENO: checking for long" >&5
21317 echo $ECHO_N "checking for long... $ECHO_C" >&6
21318 if test "${ac_cv_type_long+set}" = set; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21321 cat >conftest.
$ac_ext <<_ACEOF
21324 cat confdefs.h
>>conftest.
$ac_ext
21325 cat >>conftest.
$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 $ac_includes_default
21339 rm -f conftest.
$ac_objext
21340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341 (eval $ac_compile) 2>conftest.er1
21343 grep -v '^ *+' conftest.er1
>conftest.err
21345 cat conftest.err
>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } &&
21348 { ac_try
='test -z "$ac_c_werror_flag"
21349 || test ! -s conftest.err'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; } &&
21355 { ac_try
='test -s conftest.$ac_objext'
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 ac_cv_type_long
=yes
21363 echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.
$ac_ext >&5
21368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21370 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21371 echo "${ECHO_T}$ac_cv_type_long" >&6
21373 echo "$as_me:$LINENO: checking alignment of long" >&5
21374 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
21375 if test "${pgac_cv_alignof_long+set}" = set; then
21376 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 if test "$ac_cv_type_long" = yes; then
21379 if test "$cross_compiling" = yes; then
21380 # Depending upon the size, compute the lo and hi bounds.
21381 cat >conftest.
$ac_ext <<_ACEOF
21384 cat confdefs.h
>>conftest.
$ac_ext
21385 cat >>conftest.
$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 $ac_includes_default
21388 struct { char filler; long field; } pgac_struct;
21392 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21399 rm -f conftest.
$ac_objext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21401 (eval $ac_compile) 2>conftest.er1
21403 grep -v '^ *+' conftest.er1
>conftest.err
21405 cat conftest.err
>&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } &&
21408 { ac_try
='test -z "$ac_c_werror_flag"
21409 || test ! -s conftest.err'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try
='test -s conftest.$ac_objext'
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21423 cat >conftest.
$ac_ext <<_ACEOF
21426 cat confdefs.h
>>conftest.
$ac_ext
21427 cat >>conftest.
$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 $ac_includes_default
21430 struct { char filler; long field; } pgac_struct;
21434 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21441 rm -f conftest.
$ac_objext
21442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21443 (eval $ac_compile) 2>conftest.er1
21445 grep -v '^ *+' conftest.er1
>conftest.err
21447 cat conftest.err
>&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } &&
21450 { ac_try
='test -z "$ac_c_werror_flag"
21451 || test ! -s conftest.err'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; } &&
21457 { ac_try
='test -s conftest.$ac_objext'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 ac_hi
=$ac_mid; break
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.
$ac_ext >&5
21468 ac_lo
=`expr $ac_mid + 1`
21469 if test $ac_lo -le $ac_mid; then
21473 ac_mid
=`expr 2 '*' $ac_mid + 1`
21475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.
$ac_ext >&5
21481 cat >conftest.
$ac_ext <<_ACEOF
21484 cat confdefs.h
>>conftest.
$ac_ext
21485 cat >>conftest.
$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 $ac_includes_default
21488 struct { char filler; long field; } pgac_struct;
21492 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21499 rm -f conftest.
$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501 (eval $ac_compile) 2>conftest.er1
21503 grep -v '^ *+' conftest.er1
>conftest.err
21505 cat conftest.err
>&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try
='test -z "$ac_c_werror_flag"
21509 || test ! -s conftest.err'
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; } &&
21515 { ac_try
='test -s conftest.$ac_objext'
21516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517 (eval $ac_try) 2>&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); }; }; then
21523 cat >conftest.
$ac_ext <<_ACEOF
21526 cat confdefs.h
>>conftest.
$ac_ext
21527 cat >>conftest.
$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 $ac_includes_default
21530 struct { char filler; long field; } pgac_struct;
21534 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21541 rm -f conftest.
$ac_objext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21543 (eval $ac_compile) 2>conftest.er1
21545 grep -v '^ *+' conftest.er1
>conftest.err
21547 cat conftest.err
>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } &&
21550 { ac_try
='test -z "$ac_c_werror_flag"
21551 || test ! -s conftest.err'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; } &&
21557 { ac_try
='test -s conftest.$ac_objext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_lo
=$ac_mid; break
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.
$ac_ext >&5
21568 ac_hi
=`expr '(' $ac_mid ')' - 1`
21569 if test $ac_mid -le $ac_hi; then
21573 ac_mid
=`expr 2 '*' $ac_mid`
21575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21578 echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.
$ac_ext >&5
21583 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21586 # Binary search between lo and hi bounds.
21587 while test "x$ac_lo" != "x$ac_hi"; do
21588 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21589 cat >conftest.
$ac_ext <<_ACEOF
21592 cat confdefs.h
>>conftest.
$ac_ext
21593 cat >>conftest.
$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 $ac_includes_default
21596 struct { char filler; long field; } pgac_struct;
21600 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21607 rm -f conftest.
$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>conftest.er1
21611 grep -v '^ *+' conftest.er1
>conftest.err
21613 cat conftest.err
>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try
='test -z "$ac_c_werror_flag"
21617 || test ! -s conftest.err'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; } &&
21623 { ac_try
='test -s conftest.$ac_objext'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.
$ac_ext >&5
21634 ac_lo
=`expr '(' $ac_mid ')' + 1`
21636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21639 ?
*) pgac_cv_alignof_long
=$ac_lo;;
21640 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21641 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21642 { (exit 1); exit 1; }; } ;;
21645 if test "$cross_compiling" = yes; then
21646 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21647 See \`config.log' for more details." >&5
21648 echo "$as_me: error: cannot run test program while cross compiling
21649 See \`config.log' for more details." >&2;}
21650 { (exit 1); exit 1; }; }
21652 cat >conftest.
$ac_ext <<_ACEOF
21655 cat confdefs.h
>>conftest.
$ac_ext
21656 cat >>conftest.
$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21658 $ac_includes_default
21659 struct { char filler; long field; } pgac_struct;
21660 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21661 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21663 #include <stdlib.h>
21668 FILE *f = fopen ("conftest.val", "w");
21671 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21673 long i = longval ();
21674 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21676 fprintf (f, "%ld\n", i);
21680 unsigned long i = ulongval ();
21681 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21683 fprintf (f, "%lu\n", i);
21685 exit (ferror (f) || fclose (f) != 0);
21691 rm -f conftest
$ac_exeext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21693 (eval $ac_link) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21702 pgac_cv_alignof_long
=`cat conftest.val`
21704 echo "$as_me: program exited with status $ac_status" >&5
21705 echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.
$ac_ext >&5
21708 ( exit $ac_status )
21709 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21710 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21711 { (exit 1); exit 1; }; }
21713 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21718 pgac_cv_alignof_long
=0
21721 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
21722 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
21723 cat >>confdefs.h
<<_ACEOF
21724 #define ALIGNOF_LONG $pgac_cv_alignof_long
21728 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
21729 echo "$as_me:$LINENO: checking for long long int" >&5
21730 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
21731 if test "${ac_cv_type_long_long_int+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 cat >conftest.
$ac_ext <<_ACEOF
21737 cat confdefs.h
>>conftest.
$ac_ext
21738 cat >>conftest.
$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 $ac_includes_default
21744 if ((long long int *) 0)
21746 if (sizeof (long long int))
21752 rm -f conftest.
$ac_objext
21753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21754 (eval $ac_compile) 2>conftest.er1
21756 grep -v '^ *+' conftest.er1
>conftest.err
21758 cat conftest.err
>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } &&
21761 { ac_try
='test -z "$ac_c_werror_flag"
21762 || test ! -s conftest.err'
21763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764 (eval $ac_try) 2>&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; } &&
21768 { ac_try
='test -s conftest.$ac_objext'
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; }; then
21774 ac_cv_type_long_long_int
=yes
21776 echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.
$ac_ext >&5
21779 ac_cv_type_long_long_int
=no
21781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21783 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21784 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
21786 echo "$as_me:$LINENO: checking alignment of long long int" >&5
21787 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
21788 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
21789 echo $ECHO_N "(cached) $ECHO_C" >&6
21791 if test "$ac_cv_type_long_long_int" = yes; then
21792 if test "$cross_compiling" = yes; then
21793 # Depending upon the size, compute the lo and hi bounds.
21794 cat >conftest.
$ac_ext <<_ACEOF
21797 cat confdefs.h
>>conftest.
$ac_ext
21798 cat >>conftest.
$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 $ac_includes_default
21801 struct { char filler; long long int field; } pgac_struct;
21805 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21812 rm -f conftest.
$ac_objext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21814 (eval $ac_compile) 2>conftest.er1
21816 grep -v '^ *+' conftest.er1
>conftest.err
21818 cat conftest.err
>&5
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
21821 { ac_try
='test -z "$ac_c_werror_flag"
21822 || test ! -s conftest.err'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try
='test -s conftest.$ac_objext'
21829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21836 cat >conftest.
$ac_ext <<_ACEOF
21839 cat confdefs.h
>>conftest.
$ac_ext
21840 cat >>conftest.
$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 $ac_includes_default
21843 struct { char filler; long long int field; } pgac_struct;
21847 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21854 rm -f conftest.
$ac_objext
21855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21856 (eval $ac_compile) 2>conftest.er1
21858 grep -v '^ *+' conftest.er1
>conftest.err
21860 cat conftest.err
>&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } &&
21863 { ac_try
='test -z "$ac_c_werror_flag"
21864 || test ! -s conftest.err'
21865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866 (eval $ac_try) 2>&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; } &&
21870 { ac_try
='test -s conftest.$ac_objext'
21871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872 (eval $ac_try) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
21876 ac_hi
=$ac_mid; break
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.
$ac_ext >&5
21881 ac_lo
=`expr $ac_mid + 1`
21882 if test $ac_lo -le $ac_mid; then
21886 ac_mid
=`expr 2 '*' $ac_mid + 1`
21888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.
$ac_ext >&5
21894 cat >conftest.
$ac_ext <<_ACEOF
21897 cat confdefs.h
>>conftest.
$ac_ext
21898 cat >>conftest.
$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21900 $ac_includes_default
21901 struct { char filler; long long int field; } pgac_struct;
21905 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21912 rm -f conftest.
$ac_objext
21913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21914 (eval $ac_compile) 2>conftest.er1
21916 grep -v '^ *+' conftest.er1
>conftest.err
21918 cat conftest.err
>&5
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
21921 { ac_try
='test -z "$ac_c_werror_flag"
21922 || test ! -s conftest.err'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; } &&
21928 { ac_try
='test -s conftest.$ac_objext'
21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21936 cat >conftest.
$ac_ext <<_ACEOF
21939 cat confdefs.h
>>conftest.
$ac_ext
21940 cat >>conftest.
$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21943 struct { char filler; long long int field; } pgac_struct;
21947 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21954 rm -f conftest.
$ac_objext
21955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21956 (eval $ac_compile) 2>conftest.er1
21958 grep -v '^ *+' conftest.er1
>conftest.err
21960 cat conftest.err
>&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } &&
21963 { ac_try
='test -z "$ac_c_werror_flag"
21964 || test ! -s conftest.err'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; } &&
21970 { ac_try
='test -s conftest.$ac_objext'
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; }; then
21976 ac_lo
=$ac_mid; break
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.
$ac_ext >&5
21981 ac_hi
=`expr '(' $ac_mid ')' - 1`
21982 if test $ac_mid -le $ac_hi; then
21986 ac_mid
=`expr 2 '*' $ac_mid`
21988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.
$ac_ext >&5
21996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21999 # Binary search between lo and hi bounds.
22000 while test "x$ac_lo" != "x$ac_hi"; do
22001 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22002 cat >conftest.
$ac_ext <<_ACEOF
22005 cat confdefs.h
>>conftest.
$ac_ext
22006 cat >>conftest.
$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 $ac_includes_default
22009 struct { char filler; long long int field; } pgac_struct;
22013 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22020 rm -f conftest.
$ac_objext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022 (eval $ac_compile) 2>conftest.er1
22024 grep -v '^ *+' conftest.er1
>conftest.err
22026 cat conftest.err
>&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } &&
22029 { ac_try
='test -z "$ac_c_werror_flag"
22030 || test ! -s conftest.err'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try
='test -s conftest.$ac_objext'
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22044 echo "$as_me: failed program was:" >&5
22045 sed 's/^/| /' conftest.
$ac_ext >&5
22047 ac_lo
=`expr '(' $ac_mid ')' + 1`
22049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22052 ?
*) pgac_cv_alignof_long_long_int
=$ac_lo;;
22053 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22054 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22055 { (exit 1); exit 1; }; } ;;
22058 if test "$cross_compiling" = yes; then
22059 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22060 See \`config.log' for more details." >&5
22061 echo "$as_me: error: cannot run test program while cross compiling
22062 See \`config.log' for more details." >&2;}
22063 { (exit 1); exit 1; }; }
22065 cat >conftest.
$ac_ext <<_ACEOF
22068 cat confdefs.h
>>conftest.
$ac_ext
22069 cat >>conftest.
$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 $ac_includes_default
22072 struct { char filler; long long int field; } pgac_struct;
22073 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22074 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22076 #include <stdlib.h>
22081 FILE *f = fopen ("conftest.val", "w");
22084 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22086 long i = longval ();
22087 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22089 fprintf (f, "%ld\n", i);
22093 unsigned long i = ulongval ();
22094 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22096 fprintf (f, "%lu\n", i);
22098 exit (ferror (f) || fclose (f) != 0);
22104 rm -f conftest
$ac_exeext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106 (eval $ac_link) 2>&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 pgac_cv_alignof_long_long_int
=`cat conftest.val`
22117 echo "$as_me: program exited with status $ac_status" >&5
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.
$ac_ext >&5
22121 ( exit $ac_status )
22122 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
22123 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
22124 { (exit 1); exit 1; }; }
22126 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22131 pgac_cv_alignof_long_long_int
=0
22134 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
22135 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
22136 cat >>confdefs.h
<<_ACEOF
22137 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
22142 echo "$as_me:$LINENO: checking for double" >&5
22143 echo $ECHO_N "checking for double... $ECHO_C" >&6
22144 if test "${ac_cv_type_double+set}" = set; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 cat >conftest.
$ac_ext <<_ACEOF
22150 cat confdefs.h
>>conftest.
$ac_ext
22151 cat >>conftest.
$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 $ac_includes_default
22159 if (sizeof (double))
22165 rm -f conftest.
$ac_objext
22166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22167 (eval $ac_compile) 2>conftest.er1
22169 grep -v '^ *+' conftest.er1
>conftest.err
22171 cat conftest.err
>&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } &&
22174 { ac_try
='test -z "$ac_c_werror_flag"
22175 || test ! -s conftest.err'
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; } &&
22181 { ac_try
='test -s conftest.$ac_objext'
22182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183 (eval $ac_try) 2>&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; }; then
22187 ac_cv_type_double
=yes
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.
$ac_ext >&5
22192 ac_cv_type_double
=no
22194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22196 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
22197 echo "${ECHO_T}$ac_cv_type_double" >&6
22199 echo "$as_me:$LINENO: checking alignment of double" >&5
22200 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
22201 if test "${pgac_cv_alignof_double+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 if test "$ac_cv_type_double" = yes; then
22205 if test "$cross_compiling" = yes; then
22206 # Depending upon the size, compute the lo and hi bounds.
22207 cat >conftest.
$ac_ext <<_ACEOF
22210 cat confdefs.h
>>conftest.
$ac_ext
22211 cat >>conftest.
$ac_ext <<_ACEOF
22212 /* end confdefs.h. */
22213 $ac_includes_default
22214 struct { char filler; double field; } pgac_struct;
22218 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
22225 rm -f conftest.
$ac_objext
22226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22227 (eval $ac_compile) 2>conftest.er1
22229 grep -v '^ *+' conftest.er1
>conftest.err
22231 cat conftest.err
>&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } &&
22234 { ac_try
='test -z "$ac_c_werror_flag"
22235 || test ! -s conftest.err'
22236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237 (eval $ac_try) 2>&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); }; } &&
22241 { ac_try
='test -s conftest.$ac_objext'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; }; then
22249 cat >conftest.
$ac_ext <<_ACEOF
22252 cat confdefs.h
>>conftest.
$ac_ext
22253 cat >>conftest.
$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 $ac_includes_default
22256 struct { char filler; double field; } pgac_struct;
22260 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22267 rm -f conftest.
$ac_objext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22269 (eval $ac_compile) 2>conftest.er1
22271 grep -v '^ *+' conftest.er1
>conftest.err
22273 cat conftest.err
>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try
='test -z "$ac_c_werror_flag"
22277 || test ! -s conftest.err'
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; } &&
22283 { ac_try
='test -s conftest.$ac_objext'
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; }; then
22289 ac_hi
=$ac_mid; break
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.
$ac_ext >&5
22294 ac_lo
=`expr $ac_mid + 1`
22295 if test $ac_lo -le $ac_mid; then
22299 ac_mid
=`expr 2 '*' $ac_mid + 1`
22301 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.
$ac_ext >&5
22307 cat >conftest.
$ac_ext <<_ACEOF
22310 cat confdefs.h
>>conftest.
$ac_ext
22311 cat >>conftest.
$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22313 $ac_includes_default
22314 struct { char filler; double field; } pgac_struct;
22318 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
22325 rm -f conftest.
$ac_objext
22326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22327 (eval $ac_compile) 2>conftest.er1
22329 grep -v '^ *+' conftest.er1
>conftest.err
22331 cat conftest.err
>&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } &&
22334 { ac_try
='test -z "$ac_c_werror_flag"
22335 || test ! -s conftest.err'
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; } &&
22341 { ac_try
='test -s conftest.$ac_objext'
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22349 cat >conftest.
$ac_ext <<_ACEOF
22352 cat confdefs.h
>>conftest.
$ac_ext
22353 cat >>conftest.
$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22355 $ac_includes_default
22356 struct { char filler; double field; } pgac_struct;
22360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
22367 rm -f conftest.
$ac_objext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22369 (eval $ac_compile) 2>conftest.er1
22371 grep -v '^ *+' conftest.er1
>conftest.err
22373 cat conftest.err
>&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } &&
22376 { ac_try
='test -z "$ac_c_werror_flag"
22377 || test ! -s conftest.err'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; } &&
22383 { ac_try
='test -s conftest.$ac_objext'
22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 ac_lo
=$ac_mid; break
22391 echo "$as_me: failed program was:" >&5
22392 sed 's/^/| /' conftest.
$ac_ext >&5
22394 ac_hi
=`expr '(' $ac_mid ')' - 1`
22395 if test $ac_mid -le $ac_hi; then
22399 ac_mid
=`expr 2 '*' $ac_mid`
22401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.
$ac_ext >&5
22409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22412 # Binary search between lo and hi bounds.
22413 while test "x$ac_lo" != "x$ac_hi"; do
22414 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22415 cat >conftest.
$ac_ext <<_ACEOF
22418 cat confdefs.h
>>conftest.
$ac_ext
22419 cat >>conftest.
$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 $ac_includes_default
22422 struct { char filler; double field; } pgac_struct;
22426 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
22433 rm -f conftest.
$ac_objext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22435 (eval $ac_compile) 2>conftest.er1
22437 grep -v '^ *+' conftest.er1
>conftest.err
22439 cat conftest.err
>&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } &&
22442 { ac_try
='test -z "$ac_c_werror_flag"
22443 || test ! -s conftest.err'
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; } &&
22449 { ac_try
='test -s conftest.$ac_objext'
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22457 echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.
$ac_ext >&5
22460 ac_lo
=`expr '(' $ac_mid ')' + 1`
22462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22465 ?
*) pgac_cv_alignof_double
=$ac_lo;;
22466 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
22467 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
22468 { (exit 1); exit 1; }; } ;;
22471 if test "$cross_compiling" = yes; then
22472 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22473 See \`config.log' for more details." >&5
22474 echo "$as_me: error: cannot run test program while cross compiling
22475 See \`config.log' for more details." >&2;}
22476 { (exit 1); exit 1; }; }
22478 cat >conftest.
$ac_ext <<_ACEOF
22481 cat confdefs.h
>>conftest.
$ac_ext
22482 cat >>conftest.
$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 $ac_includes_default
22485 struct { char filler; double field; } pgac_struct;
22486 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22487 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
22489 #include <stdlib.h>
22494 FILE *f = fopen ("conftest.val", "w");
22497 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
22499 long i = longval ();
22500 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22502 fprintf (f, "%ld\n", i);
22506 unsigned long i = ulongval ();
22507 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
22509 fprintf (f, "%lu\n", i);
22511 exit (ferror (f) || fclose (f) != 0);
22517 rm -f conftest
$ac_exeext
22518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22519 (eval $ac_link) 2>&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 pgac_cv_alignof_double
=`cat conftest.val`
22530 echo "$as_me: program exited with status $ac_status" >&5
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.
$ac_ext >&5
22534 ( exit $ac_status )
22535 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
22536 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
22537 { (exit 1); exit 1; }; }
22539 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22544 pgac_cv_alignof_double
=0
22547 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
22548 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
22549 cat >>confdefs.h
<<_ACEOF
22550 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
22555 # Compute maximum alignment of any basic type.
22556 # We assume long's alignment is at least as strong as char, short, or int;
22557 # but we must check long long (if it exists) and double.
22559 MAX_ALIGNOF
=$pgac_cv_alignof_long
22560 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
22561 MAX_ALIGNOF
=$pgac_cv_alignof_double
22563 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
22564 MAX_ALIGNOF
="$pgac_cv_alignof_long_long_int"
22567 cat >>confdefs.h
<<_ACEOF
22568 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
22573 # Some platforms predefine the types int8, int16, etc. Only check
22574 # a (hopefully) representative subset.
22575 echo "$as_me:$LINENO: checking for int8" >&5
22576 echo $ECHO_N "checking for int8... $ECHO_C" >&6
22577 if test "${ac_cv_type_int8+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
22580 cat >conftest.
$ac_ext <<_ACEOF
22583 cat confdefs.h
>>conftest.
$ac_ext
22584 cat >>conftest.
$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22587 #ifdef HAVE_SUPPORTDEFS_H
22588 #include <SupportDefs.h>
22602 rm -f conftest.
$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604 (eval $ac_compile) 2>conftest.er1
22606 grep -v '^ *+' conftest.er1
>conftest.err
22608 cat conftest.err
>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
22611 { ac_try
='test -z "$ac_c_werror_flag"
22612 || test ! -s conftest.err'
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; } &&
22618 { ac_try
='test -s conftest.$ac_objext'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; }; then
22624 ac_cv_type_int8
=yes
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.
$ac_ext >&5
22631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22633 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
22634 echo "${ECHO_T}$ac_cv_type_int8" >&6
22635 if test $ac_cv_type_int8 = yes; then
22637 cat >>confdefs.h
<<_ACEOF
22638 #define HAVE_INT8 1
22643 echo "$as_me:$LINENO: checking for uint8" >&5
22644 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
22645 if test "${ac_cv_type_uint8+set}" = set; then
22646 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 cat >conftest.
$ac_ext <<_ACEOF
22651 cat confdefs.h
>>conftest.
$ac_ext
22652 cat >>conftest.
$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22655 #ifdef HAVE_SUPPORTDEFS_H
22656 #include <SupportDefs.h>
22664 if (sizeof (uint8))
22670 rm -f conftest.
$ac_objext
22671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22672 (eval $ac_compile) 2>conftest.er1
22674 grep -v '^ *+' conftest.er1
>conftest.err
22676 cat conftest.err
>&5
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } &&
22679 { ac_try
='test -z "$ac_c_werror_flag"
22680 || test ! -s conftest.err'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; } &&
22686 { ac_try
='test -s conftest.$ac_objext'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
22692 ac_cv_type_uint8
=yes
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.
$ac_ext >&5
22697 ac_cv_type_uint8
=no
22699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22701 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
22702 echo "${ECHO_T}$ac_cv_type_uint8" >&6
22703 if test $ac_cv_type_uint8 = yes; then
22705 cat >>confdefs.h
<<_ACEOF
22706 #define HAVE_UINT8 1
22711 echo "$as_me:$LINENO: checking for int64" >&5
22712 echo $ECHO_N "checking for int64... $ECHO_C" >&6
22713 if test "${ac_cv_type_int64+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 cat >conftest.
$ac_ext <<_ACEOF
22719 cat confdefs.h
>>conftest.
$ac_ext
22720 cat >>conftest.
$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22723 #ifdef HAVE_SUPPORTDEFS_H
22724 #include <SupportDefs.h>
22732 if (sizeof (int64))
22738 rm -f conftest.
$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740 (eval $ac_compile) 2>conftest.er1
22742 grep -v '^ *+' conftest.er1
>conftest.err
22744 cat conftest.err
>&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try
='test -z "$ac_c_werror_flag"
22748 || test ! -s conftest.err'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; } &&
22754 { ac_try
='test -s conftest.$ac_objext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 ac_cv_type_int64
=yes
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.
$ac_ext >&5
22765 ac_cv_type_int64
=no
22767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22769 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
22770 echo "${ECHO_T}$ac_cv_type_int64" >&6
22771 if test $ac_cv_type_int64 = yes; then
22773 cat >>confdefs.h
<<_ACEOF
22774 #define HAVE_INT64 1
22779 echo "$as_me:$LINENO: checking for uint64" >&5
22780 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
22781 if test "${ac_cv_type_uint64+set}" = set; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22784 cat >conftest.
$ac_ext <<_ACEOF
22787 cat confdefs.h
>>conftest.
$ac_ext
22788 cat >>conftest.
$ac_ext <<_ACEOF
22789 /* end confdefs.h. */
22791 #ifdef HAVE_SUPPORTDEFS_H
22792 #include <SupportDefs.h>
22800 if (sizeof (uint64))
22806 rm -f conftest.
$ac_objext
22807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808 (eval $ac_compile) 2>conftest.er1
22810 grep -v '^ *+' conftest.er1
>conftest.err
22812 cat conftest.err
>&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } &&
22815 { ac_try
='test -z "$ac_c_werror_flag"
22816 || test ! -s conftest.err'
22817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; } &&
22822 { ac_try
='test -s conftest.$ac_objext'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }; then
22828 ac_cv_type_uint64
=yes
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.
$ac_ext >&5
22833 ac_cv_type_uint64
=no
22835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22837 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
22838 echo "${ECHO_T}$ac_cv_type_uint64" >&6
22839 if test $ac_cv_type_uint64 = yes; then
22841 cat >>confdefs.h
<<_ACEOF
22842 #define HAVE_UINT64 1
22849 # We also check for sig_atomic_t, which *should* be defined per ANSI
22850 # C, but is missing on some old platforms.
22851 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22852 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
22853 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 cat >conftest.
$ac_ext <<_ACEOF
22859 cat confdefs.h
>>conftest.
$ac_ext
22860 cat >>conftest.
$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 #include <signal.h>
22867 if ((sig_atomic_t *) 0)
22869 if (sizeof (sig_atomic_t))
22875 rm -f conftest.
$ac_objext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877 (eval $ac_compile) 2>conftest.er1
22879 grep -v '^ *+' conftest.er1
>conftest.err
22881 cat conftest.err
>&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } &&
22884 { ac_try
='test -z "$ac_c_werror_flag"
22885 || test ! -s conftest.err'
22886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887 (eval $ac_try) 2>&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); }; } &&
22891 { ac_try
='test -s conftest.$ac_objext'
22892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22893 (eval $ac_try) 2>&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); }; }; then
22897 ac_cv_type_sig_atomic_t
=yes
22899 echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.
$ac_ext >&5
22902 ac_cv_type_sig_atomic_t
=no
22904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22906 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22907 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
22908 if test $ac_cv_type_sig_atomic_t = yes; then
22910 cat >>confdefs.h
<<_ACEOF
22911 #define HAVE_SIG_ATOMIC_T 1
22919 if test "$PORTNAME" != "win32"
22921 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
22922 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
22923 if test "${pgac_cv_func_posix_signals+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
22926 cat >conftest.
$ac_ext <<_ACEOF
22929 cat confdefs.h
>>conftest.
$ac_ext
22930 cat >>conftest.
$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 #include <signal.h>
22937 struct sigaction act, oact;
22938 sigemptyset(&act.sa_mask);
22939 act.sa_flags = SA_RESTART;
22940 sigaction(0, &act, &oact);
22945 rm -f conftest.
$ac_objext conftest
$ac_exeext
22946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22947 (eval $ac_link) 2>conftest.er1
22949 grep -v '^ *+' conftest.er1
>conftest.err
22951 cat conftest.err
>&5
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); } &&
22954 { ac_try
='test -z "$ac_c_werror_flag"
22955 || test ! -s conftest.err'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; } &&
22961 { ac_try
='test -s conftest$ac_exeext'
22962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22963 (eval $ac_try) 2>&5
22965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); }; }; then
22967 pgac_cv_func_posix_signals
=yes
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.
$ac_ext >&5
22972 pgac_cv_func_posix_signals
=no
22974 rm -f conftest.err conftest.
$ac_objext \
22975 conftest
$ac_exeext conftest.
$ac_ext
22977 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
22978 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
22979 if test x
"$pgac_cv_func_posix_signals" = xyes
; then
22981 cat >>confdefs.h
<<\_ACEOF
22982 #define HAVE_POSIX_SIGNALS
22986 HAVE_POSIX_SIGNALS
=$pgac_cv_func_posix_signals
22988 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
22989 { { echo "$as_me:$LINENO: error:
22990 Thread-safety requires POSIX signals, which are not supported by this
22991 operating system." >&5
22992 echo "$as_me: error:
22993 Thread-safety requires POSIX signals, which are not supported by this
22994 operating system." >&2;}
22995 { (exit 1); exit 1; }; }
22999 if test $ac_cv_func_fseeko = yes; then
23000 # Check whether --enable-largefile or --disable-largefile was given.
23001 if test "${enable_largefile+set}" = set; then
23002 enableval
="$enable_largefile"
23005 if test "$enable_largefile" != no
; then
23007 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23008 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
23009 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23010 echo $ECHO_N "(cached) $ECHO_C" >&6
23012 ac_cv_sys_largefile_CC
=no
23013 if test "$GCC" != yes; then
23016 # IRIX 6.2 and later do not support large files by default,
23017 # so use the C compiler's -n32 option if that helps.
23018 cat >conftest.
$ac_ext <<_ACEOF
23021 cat confdefs.h
>>conftest.
$ac_ext
23022 cat >>conftest.
$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 #include <sys/types.h>
23025 /* Check that off_t can represent 2**63 - 1 correctly.
23026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23027 since some C++ compilers masquerading as C compilers
23028 incorrectly reject 9223372036854775807. */
23029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23031 && LARGE_OFF_T % 2147483647 == 1)
23041 rm -f conftest.
$ac_objext
23042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23043 (eval $ac_compile) 2>conftest.er1
23045 grep -v '^ *+' conftest.er1
>conftest.err
23047 cat conftest.err
>&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); } &&
23050 { ac_try
='test -z "$ac_c_werror_flag"
23051 || test ! -s conftest.err'
23052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053 (eval $ac_try) 2>&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); }; } &&
23057 { ac_try
='test -s conftest.$ac_objext'
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; }; then
23065 echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.
$ac_ext >&5
23069 rm -f conftest.err conftest.
$ac_objext
23071 rm -f conftest.
$ac_objext
23072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23073 (eval $ac_compile) 2>conftest.er1
23075 grep -v '^ *+' conftest.er1
>conftest.err
23077 cat conftest.err
>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } &&
23080 { ac_try
='test -z "$ac_c_werror_flag"
23081 || test ! -s conftest.err'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; } &&
23087 { ac_try
='test -s conftest.$ac_objext'
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; }; then
23093 ac_cv_sys_largefile_CC
=' -n32'; break
23095 echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.
$ac_ext >&5
23099 rm -f conftest.err conftest.
$ac_objext
23103 rm -f conftest.
$ac_ext
23106 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
23107 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
23108 if test "$ac_cv_sys_largefile_CC" != no
; then
23109 CC
=$CC$ac_cv_sys_largefile_CC
23112 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23113 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
23114 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23118 ac_cv_sys_file_offset_bits
=no
23119 cat >conftest.
$ac_ext <<_ACEOF
23122 cat confdefs.h
>>conftest.
$ac_ext
23123 cat >>conftest.
$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 #include <sys/types.h>
23126 /* Check that off_t can represent 2**63 - 1 correctly.
23127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23128 since some C++ compilers masquerading as C compilers
23129 incorrectly reject 9223372036854775807. */
23130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23132 && LARGE_OFF_T % 2147483647 == 1)
23142 rm -f conftest.
$ac_objext
23143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23144 (eval $ac_compile) 2>conftest.er1
23146 grep -v '^ *+' conftest.er1
>conftest.err
23148 cat conftest.err
>&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } &&
23151 { ac_try
='test -z "$ac_c_werror_flag"
23152 || test ! -s conftest.err'
23153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154 (eval $ac_try) 2>&5
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); }; } &&
23158 { ac_try
='test -s conftest.$ac_objext'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; }; then
23166 echo "$as_me: failed program was:" >&5
23167 sed 's/^/| /' conftest.
$ac_ext >&5
23170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23171 cat >conftest.
$ac_ext <<_ACEOF
23174 cat confdefs.h
>>conftest.
$ac_ext
23175 cat >>conftest.
$ac_ext <<_ACEOF
23176 /* end confdefs.h. */
23177 #define _FILE_OFFSET_BITS 64
23178 #include <sys/types.h>
23179 /* Check that off_t can represent 2**63 - 1 correctly.
23180 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23181 since some C++ compilers masquerading as C compilers
23182 incorrectly reject 9223372036854775807. */
23183 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23184 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23185 && LARGE_OFF_T % 2147483647 == 1)
23195 rm -f conftest.
$ac_objext
23196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23197 (eval $ac_compile) 2>conftest.er1
23199 grep -v '^ *+' conftest.er1
>conftest.err
23201 cat conftest.err
>&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } &&
23204 { ac_try
='test -z "$ac_c_werror_flag"
23205 || test ! -s conftest.err'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; } &&
23211 { ac_try
='test -s conftest.$ac_objext'
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; }; then
23217 ac_cv_sys_file_offset_bits
=64; break
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.
$ac_ext >&5
23223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23227 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23228 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
23229 if test "$ac_cv_sys_file_offset_bits" != no
; then
23231 cat >>confdefs.h
<<_ACEOF
23232 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23237 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23238 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
23239 if test "${ac_cv_sys_large_files+set}" = set; then
23240 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 ac_cv_sys_large_files
=no
23244 cat >conftest.
$ac_ext <<_ACEOF
23247 cat confdefs.h
>>conftest.
$ac_ext
23248 cat >>conftest.
$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23250 #include <sys/types.h>
23251 /* Check that off_t can represent 2**63 - 1 correctly.
23252 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23253 since some C++ compilers masquerading as C compilers
23254 incorrectly reject 9223372036854775807. */
23255 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23256 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23257 && LARGE_OFF_T % 2147483647 == 1)
23267 rm -f conftest.
$ac_objext
23268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23269 (eval $ac_compile) 2>conftest.er1
23271 grep -v '^ *+' conftest.er1
>conftest.err
23273 cat conftest.err
>&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } &&
23276 { ac_try
='test -z "$ac_c_werror_flag"
23277 || test ! -s conftest.err'
23278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279 (eval $ac_try) 2>&5
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; } &&
23283 { ac_try
='test -s conftest.$ac_objext'
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; }; then
23291 echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.
$ac_ext >&5
23295 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23296 cat >conftest.
$ac_ext <<_ACEOF
23299 cat confdefs.h
>>conftest.
$ac_ext
23300 cat >>conftest.
$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302 #define _LARGE_FILES 1
23303 #include <sys/types.h>
23304 /* Check that off_t can represent 2**63 - 1 correctly.
23305 We can't simply define LARGE_OFF_T to be 9223372036854775807,
23306 since some C++ compilers masquerading as C compilers
23307 incorrectly reject 9223372036854775807. */
23308 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23310 && LARGE_OFF_T % 2147483647 == 1)
23320 rm -f conftest.
$ac_objext
23321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23322 (eval $ac_compile) 2>conftest.er1
23324 grep -v '^ *+' conftest.er1
>conftest.err
23326 cat conftest.err
>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
23329 { ac_try
='test -z "$ac_c_werror_flag"
23330 || test ! -s conftest.err'
23331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332 (eval $ac_try) 2>&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); }; } &&
23336 { ac_try
='test -s conftest.$ac_objext'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; }; then
23342 ac_cv_sys_large_files
=1; break
23344 echo "$as_me: failed program was:" >&5
23345 sed 's/^/| /' conftest.
$ac_ext >&5
23348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23352 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23353 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
23354 if test "$ac_cv_sys_large_files" != no
; then
23356 cat >>confdefs.h
<<_ACEOF
23357 #define _LARGE_FILES $ac_cv_sys_large_files
23366 # SunOS doesn't handle negative byte comparisons properly with +/- return
23367 echo "$as_me:$LINENO: checking for working memcmp" >&5
23368 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
23369 if test "${ac_cv_func_memcmp_working+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 if test "$cross_compiling" = yes; then
23373 ac_cv_func_memcmp_working
=no
23375 cat >conftest.
$ac_ext <<_ACEOF
23378 cat confdefs.h
>>conftest.
$ac_ext
23379 cat >>conftest.
$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23381 $ac_includes_default
23386 /* Some versions of memcmp are not 8-bit clean. */
23387 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23388 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23391 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23392 or more and with at least one buffer not starting on a 4-byte boundary.
23393 William Lewis provided this test program. */
23398 for (i = 0; i < 4; i++)
23402 strcpy (a, "--------01111111");
23403 strcpy (b, "--------10000000");
23404 if (memcmp (a, b, 16) >= 0)
23414 rm -f conftest
$ac_exeext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23416 (eval $ac_link) 2>&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 ac_cv_func_memcmp_working
=yes
23427 echo "$as_me: program exited with status $ac_status" >&5
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.
$ac_ext >&5
23431 ( exit $ac_status )
23432 ac_cv_func_memcmp_working
=no
23434 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23437 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23438 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
23439 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
23440 "memcmp.$ac_objext" | \
23441 *" memcmp.$ac_objext" | \
23442 "memcmp.$ac_objext "* | \
23443 *" memcmp.$ac_objext "* ) ;;
23444 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
23450 # Select semaphore implementation type.
23451 if test "$PORTNAME" != "win32"; then
23452 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
23454 cat >>confdefs.h
<<\_ACEOF
23455 #define USE_NAMED_POSIX_SEMAPHORES 1
23458 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
23460 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
23462 cat >>confdefs.h
<<\_ACEOF
23463 #define USE_UNNAMED_POSIX_SEMAPHORES 1
23466 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
23469 cat >>confdefs.h
<<\_ACEOF
23470 #define USE_SYSV_SEMAPHORES 1
23473 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
23478 cat >>confdefs.h
<<\_ACEOF
23479 #define USE_WIN32_SEMAPHORES 1
23482 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
23486 # Select shared-memory implementation type.
23487 if test "$PORTNAME" != "win32"; then
23489 cat >>confdefs.h
<<\_ACEOF
23490 #define USE_SYSV_SHARED_MEMORY 1
23493 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
23496 cat >>confdefs.h
<<\_ACEOF
23497 #define USE_WIN32_SHARED_MEMORY 1
23500 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
23503 # If not set in template file, set bytes to use libc memset()
23504 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
23505 MEMSET_LOOP_LIMIT
=1024
23508 cat >>confdefs.h
<<_ACEOF
23509 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
23514 if test "$enable_nls" = yes ; then
23516 echo "$as_me:$LINENO: checking for library containing gettext" >&5
23517 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
23518 if test "${ac_cv_search_gettext+set}" = set; then
23519 echo $ECHO_N "(cached) $ECHO_C" >&6
23521 ac_func_search_save_LIBS
=$LIBS
23522 ac_cv_search_gettext
=no
23523 cat >conftest.
$ac_ext <<_ACEOF
23526 cat confdefs.h
>>conftest.
$ac_ext
23527 cat >>conftest.
$ac_ext <<_ACEOF
23528 /* end confdefs.h. */
23530 /* Override any gcc2 internal prototype to avoid an error. */
23534 /* We use char because int might match the return type of a gcc2
23535 builtin and then its argument prototype would still apply. */
23545 rm -f conftest.
$ac_objext conftest
$ac_exeext
23546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23547 (eval $ac_link) 2>conftest.er1
23549 grep -v '^ *+' conftest.er1
>conftest.err
23551 cat conftest.err
>&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } &&
23554 { ac_try
='test -z "$ac_c_werror_flag"
23555 || test ! -s conftest.err'
23556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557 (eval $ac_try) 2>&5
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; } &&
23561 { ac_try
='test -s conftest$ac_exeext'
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23567 ac_cv_search_gettext
="none required"
23569 echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.
$ac_ext >&5
23573 rm -f conftest.err conftest.
$ac_objext \
23574 conftest
$ac_exeext conftest.
$ac_ext
23575 if test "$ac_cv_search_gettext" = no
; then
23576 for ac_lib
in intl
; do
23577 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23578 cat >conftest.
$ac_ext <<_ACEOF
23581 cat confdefs.h
>>conftest.
$ac_ext
23582 cat >>conftest.
$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23585 /* Override any gcc2 internal prototype to avoid an error. */
23589 /* We use char because int might match the return type of a gcc2
23590 builtin and then its argument prototype would still apply. */
23600 rm -f conftest.
$ac_objext conftest
$ac_exeext
23601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23602 (eval $ac_link) 2>conftest.er1
23604 grep -v '^ *+' conftest.er1
>conftest.err
23606 cat conftest.err
>&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); } &&
23609 { ac_try
='test -z "$ac_c_werror_flag"
23610 || test ! -s conftest.err'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; } &&
23616 { ac_try
='test -s conftest$ac_exeext'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23622 ac_cv_search_gettext
="-l$ac_lib"
23625 echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.
$ac_ext >&5
23629 rm -f conftest.err conftest.
$ac_objext \
23630 conftest
$ac_exeext conftest.
$ac_ext
23633 LIBS
=$ac_func_search_save_LIBS
23635 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
23636 echo "${ECHO_T}$ac_cv_search_gettext" >&6
23637 if test "$ac_cv_search_gettext" != no
; then
23638 test "$ac_cv_search_gettext" = "none required" || LIBS
="$ac_cv_search_gettext $LIBS"
23641 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
23642 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
23643 { (exit 1); exit 1; }; }
23646 if test "${ac_cv_header_libintl_h+set}" = set; then
23647 echo "$as_me:$LINENO: checking for libintl.h" >&5
23648 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23649 if test "${ac_cv_header_libintl_h+set}" = set; then
23650 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23653 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23655 # Is the header compilable?
23656 echo "$as_me:$LINENO: checking libintl.h usability" >&5
23657 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
23658 cat >conftest.
$ac_ext <<_ACEOF
23661 cat confdefs.h
>>conftest.
$ac_ext
23662 cat >>conftest.
$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23664 $ac_includes_default
23665 #include <libintl.h>
23667 rm -f conftest.
$ac_objext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23669 (eval $ac_compile) 2>conftest.er1
23671 grep -v '^ *+' conftest.er1
>conftest.err
23673 cat conftest.err
>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } &&
23676 { ac_try
='test -z "$ac_c_werror_flag"
23677 || test ! -s conftest.err'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; } &&
23683 { ac_try
='test -s conftest.$ac_objext'
23684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685 (eval $ac_try) 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_header_compiler
=yes
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.
$ac_ext >&5
23694 ac_header_compiler
=no
23696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23698 echo "${ECHO_T}$ac_header_compiler" >&6
23700 # Is the header present?
23701 echo "$as_me:$LINENO: checking libintl.h presence" >&5
23702 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
23703 cat >conftest.
$ac_ext <<_ACEOF
23706 cat confdefs.h
>>conftest.
$ac_ext
23707 cat >>conftest.
$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 #include <libintl.h>
23711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23712 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
23714 grep -v '^ *+' conftest.er1
>conftest.err
23716 cat conftest.err
>&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } >/dev
/null
; then
23719 if test -s conftest.err
; then
23720 ac_cpp_err
=$ac_c_preproc_warn_flag
23721 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
23728 if test -z "$ac_cpp_err"; then
23729 ac_header_preproc
=yes
23731 echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.
$ac_ext >&5
23734 ac_header_preproc
=no
23736 rm -f conftest.err conftest.
$ac_ext
23737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23738 echo "${ECHO_T}$ac_header_preproc" >&6
23740 # So? What about this header?
23741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23743 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23744 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23745 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23746 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23747 ac_header_preproc
=yes
23750 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23751 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23752 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
23753 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
23754 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23755 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23756 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
23757 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23758 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23759 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23760 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23761 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23764 ## ---------------------------------------- ##
23765 ## Report this to pgsql-bugs@postgresql.org ##
23766 ## ---------------------------------------- ##
23769 sed "s/^/$as_me: WARNING: /" >&2
23772 echo "$as_me:$LINENO: checking for libintl.h" >&5
23773 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23774 if test "${ac_cv_header_libintl_h+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23777 ac_cv_header_libintl_h
=$ac_header_preproc
23779 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23780 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23783 if test $ac_cv_header_libintl_h = yes; then
23786 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
23787 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
23788 { (exit 1); exit 1; }; }
23792 for ac_prog
in msgfmt
23794 # Extract the first word of "$ac_prog", so it can be a program name with args.
23795 set dummy
$ac_prog; ac_word
=$2
23796 echo "$as_me:$LINENO: checking for $ac_word" >&5
23797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23798 if test "${ac_cv_prog_MSGFMT+set}" = set; then
23799 echo $ECHO_N "(cached) $ECHO_C" >&6
23801 if test -n "$MSGFMT"; then
23802 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
23804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23805 for as_dir
in $PATH
23808 test -z "$as_dir" && as_dir
=.
23809 for ac_exec_ext
in '' $ac_executable_extensions; do
23810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23811 ac_cv_prog_MSGFMT
="$ac_prog"
23812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23820 MSGFMT
=$ac_cv_prog_MSGFMT
23821 if test -n "$MSGFMT"; then
23822 echo "$as_me:$LINENO: result: $MSGFMT" >&5
23823 echo "${ECHO_T}$MSGFMT" >&6
23825 echo "$as_me:$LINENO: result: no" >&5
23826 echo "${ECHO_T}no" >&6
23829 test -n "$MSGFMT" && break
23832 if test -z "$MSGFMT"; then
23833 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
23834 echo "$as_me: error: msgfmt is required for NLS" >&2;}
23835 { (exit 1); exit 1; }; }
23837 for ac_prog
in msgmerge
23839 # Extract the first word of "$ac_prog", so it can be a program name with args.
23840 set dummy
$ac_prog; ac_word
=$2
23841 echo "$as_me:$LINENO: checking for $ac_word" >&5
23842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23843 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
23846 if test -n "$MSGMERGE"; then
23847 ac_cv_prog_MSGMERGE
="$MSGMERGE" # Let the user override the test.
23849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23850 for as_dir
in $PATH
23853 test -z "$as_dir" && as_dir
=.
23854 for ac_exec_ext
in '' $ac_executable_extensions; do
23855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23856 ac_cv_prog_MSGMERGE
="$ac_prog"
23857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23865 MSGMERGE
=$ac_cv_prog_MSGMERGE
23866 if test -n "$MSGMERGE"; then
23867 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23868 echo "${ECHO_T}$MSGMERGE" >&6
23870 echo "$as_me:$LINENO: result: no" >&5
23871 echo "${ECHO_T}no" >&6
23874 test -n "$MSGMERGE" && break
23877 for ac_prog
in xgettext
23879 # Extract the first word of "$ac_prog", so it can be a program name with args.
23880 set dummy
$ac_prog; ac_word
=$2
23881 echo "$as_me:$LINENO: checking for $ac_word" >&5
23882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23883 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
23884 echo $ECHO_N "(cached) $ECHO_C" >&6
23886 if test -n "$XGETTEXT"; then
23887 ac_cv_prog_XGETTEXT
="$XGETTEXT" # Let the user override the test.
23889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23890 for as_dir
in $PATH
23893 test -z "$as_dir" && as_dir
=.
23894 for ac_exec_ext
in '' $ac_executable_extensions; do
23895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23896 ac_cv_prog_XGETTEXT
="$ac_prog"
23897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23905 XGETTEXT
=$ac_cv_prog_XGETTEXT
23906 if test -n "$XGETTEXT"; then
23907 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23908 echo "${ECHO_T}$XGETTEXT" >&6
23910 echo "$as_me:$LINENO: result: no" >&5
23911 echo "${ECHO_T}no" >&6
23914 test -n "$XGETTEXT" && break
23918 # Note: share/locale is always the default, independent of $datadir
23919 localedir
='${prefix}/share/locale'
23924 # Check for Tcl configuration script tclConfig.sh
23925 if test "$with_tcl" = yes; then
23926 for ac_prog
in tclsh tcl
23928 # Extract the first word of "$ac_prog", so it can be a program name with args.
23929 set dummy
$ac_prog; ac_word
=$2
23930 echo "$as_me:$LINENO: checking for $ac_word" >&5
23931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23932 if test "${ac_cv_path_TCLSH+set}" = set; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
23937 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
23940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23941 for as_dir
in $PATH
23944 test -z "$as_dir" && as_dir
=.
23945 for ac_exec_ext
in '' $ac_executable_extensions; do
23946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23947 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
23948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23957 TCLSH
=$ac_cv_path_TCLSH
23959 if test -n "$TCLSH"; then
23960 echo "$as_me:$LINENO: result: $TCLSH" >&5
23961 echo "${ECHO_T}$TCLSH" >&6
23963 echo "$as_me:$LINENO: result: no" >&5
23964 echo "${ECHO_T}no" >&6
23967 test -n "$TCLSH" && break
23970 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
23971 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
23972 # Let user override test
23973 if test -z "$TCL_CONFIG_SH"; then
23974 pgac_test_dirs
="$with_tclconfig"
23976 set X
$pgac_test_dirs; shift
23977 if test $# -eq 0; then
23978 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
23979 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
23980 { (exit 1); exit 1; }; }
23981 set X
`echo 'puts $auto_path' | $TCLSH`; shift
23985 if test -r "$pgac_dir/tclConfig.sh"; then
23986 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
23992 if test -z "$TCL_CONFIG_SH"; then
23993 echo "$as_me:$LINENO: result: no" >&5
23994 echo "${ECHO_T}no" >&6
23995 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
23996 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
23997 { (exit 1); exit 1; }; }
23999 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
24000 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
24006 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
24007 eval TCL_LIB_FILE
=\"$TCL_LIB_FILE\"
24008 eval TCL_LIBS
=\"$TCL_LIBS\"
24009 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
24010 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
24012 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
24013 ac_save_CPPFLAGS
=$CPPFLAGS
24014 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
24015 if test "${ac_cv_header_tcl_h+set}" = set; then
24016 echo "$as_me:$LINENO: checking for tcl.h" >&5
24017 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24018 if test "${ac_cv_header_tcl_h+set}" = set; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24021 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24022 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24024 # Is the header compilable?
24025 echo "$as_me:$LINENO: checking tcl.h usability" >&5
24026 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
24027 cat >conftest.
$ac_ext <<_ACEOF
24030 cat confdefs.h
>>conftest.
$ac_ext
24031 cat >>conftest.
$ac_ext <<_ACEOF
24032 /* end confdefs.h. */
24033 $ac_includes_default
24036 rm -f conftest.
$ac_objext
24037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24038 (eval $ac_compile) 2>conftest.er1
24040 grep -v '^ *+' conftest.er1
>conftest.err
24042 cat conftest.err
>&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } &&
24045 { ac_try
='test -z "$ac_c_werror_flag"
24046 || test ! -s conftest.err'
24047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24048 (eval $ac_try) 2>&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); }; } &&
24052 { ac_try
='test -s conftest.$ac_objext'
24053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054 (eval $ac_try) 2>&5
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; }; then
24058 ac_header_compiler
=yes
24060 echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.
$ac_ext >&5
24063 ac_header_compiler
=no
24065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24067 echo "${ECHO_T}$ac_header_compiler" >&6
24069 # Is the header present?
24070 echo "$as_me:$LINENO: checking tcl.h presence" >&5
24071 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
24072 cat >conftest.
$ac_ext <<_ACEOF
24075 cat confdefs.h
>>conftest.
$ac_ext
24076 cat >>conftest.
$ac_ext <<_ACEOF
24077 /* end confdefs.h. */
24080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24081 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24083 grep -v '^ *+' conftest.er1
>conftest.err
24085 cat conftest.err
>&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } >/dev
/null
; then
24088 if test -s conftest.err
; then
24089 ac_cpp_err
=$ac_c_preproc_warn_flag
24090 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
24097 if test -z "$ac_cpp_err"; then
24098 ac_header_preproc
=yes
24100 echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.
$ac_ext >&5
24103 ac_header_preproc
=no
24105 rm -f conftest.err conftest.
$ac_ext
24106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24107 echo "${ECHO_T}$ac_header_preproc" >&6
24109 # So? What about this header?
24110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24112 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24113 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24114 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
24115 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
24116 ac_header_preproc
=yes
24119 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
24120 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
24121 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
24122 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
24123 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
24124 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
24125 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
24126 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
24127 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
24128 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
24129 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
24130 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
24133 ## ---------------------------------------- ##
24134 ## Report this to pgsql-bugs@postgresql.org ##
24135 ## ---------------------------------------- ##
24138 sed "s/^/$as_me: WARNING: /" >&2
24141 echo "$as_me:$LINENO: checking for tcl.h" >&5
24142 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
24143 if test "${ac_cv_header_tcl_h+set}" = set; then
24144 echo $ECHO_N "(cached) $ECHO_C" >&6
24146 ac_cv_header_tcl_h
=$ac_header_preproc
24148 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
24149 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
24152 if test $ac_cv_header_tcl_h = yes; then
24155 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
24156 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
24157 { (exit 1); exit 1; }; }
24161 CPPFLAGS
=$ac_save_CPPFLAGS
24165 # Check for DocBook and tools
24167 for ac_prog
in onsgmls nsgmls
24169 # Extract the first word of "$ac_prog", so it can be a program name with args.
24170 set dummy
$ac_prog; ac_word
=$2
24171 echo "$as_me:$LINENO: checking for $ac_word" >&5
24172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24173 if test "${ac_cv_prog_NSGMLS+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24176 if test -n "$NSGMLS"; then
24177 ac_cv_prog_NSGMLS
="$NSGMLS" # Let the user override the test.
24179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24180 for as_dir
in $PATH
24183 test -z "$as_dir" && as_dir
=.
24184 for ac_exec_ext
in '' $ac_executable_extensions; do
24185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24186 ac_cv_prog_NSGMLS
="$ac_prog"
24187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24195 NSGMLS
=$ac_cv_prog_NSGMLS
24196 if test -n "$NSGMLS"; then
24197 echo "$as_me:$LINENO: result: $NSGMLS" >&5
24198 echo "${ECHO_T}$NSGMLS" >&6
24200 echo "$as_me:$LINENO: result: no" >&5
24201 echo "${ECHO_T}no" >&6
24204 test -n "$NSGMLS" && break
24207 for ac_prog
in openjade jade
24209 # Extract the first word of "$ac_prog", so it can be a program name with args.
24210 set dummy
$ac_prog; ac_word
=$2
24211 echo "$as_me:$LINENO: checking for $ac_word" >&5
24212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24213 if test "${ac_cv_prog_JADE+set}" = set; then
24214 echo $ECHO_N "(cached) $ECHO_C" >&6
24216 if test -n "$JADE"; then
24217 ac_cv_prog_JADE
="$JADE" # Let the user override the test.
24219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24220 for as_dir
in $PATH
24223 test -z "$as_dir" && as_dir
=.
24224 for ac_exec_ext
in '' $ac_executable_extensions; do
24225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24226 ac_cv_prog_JADE
="$ac_prog"
24227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24235 JADE
=$ac_cv_prog_JADE
24236 if test -n "$JADE"; then
24237 echo "$as_me:$LINENO: result: $JADE" >&5
24238 echo "${ECHO_T}$JADE" >&6
24240 echo "$as_me:$LINENO: result: no" >&5
24241 echo "${ECHO_T}no" >&6
24244 test -n "$JADE" && break
24248 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
24249 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
24250 if test "${pgac_cv_check_docbook+set}" = set; then
24251 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 cat >conftest.sgml
<<EOF
24254 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
24256 <title>test</title>
24258 <title>random</title>
24260 <title>testsect</title>
24267 pgac_cv_check_docbook
=no
24269 if test -n "$NSGMLS"; then
24270 $NSGMLS -s conftest.sgml
1>&5 2>&1
24271 if test $?
-eq 0; then
24272 pgac_cv_check_docbook
=yes
24275 rm -f conftest.sgml
24277 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
24278 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
24280 have_docbook
=$pgac_cv_check_docbook
24283 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
24284 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
24285 if test "${pgac_cv_path_stylesheets+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24288 if test -n "$DOCBOOKSTYLE"; then
24289 pgac_cv_path_stylesheets
=$DOCBOOKSTYLE
24291 for pgac_prefix
in /usr
/usr
/local /opt
; do
24292 for pgac_infix
in share lib
; do
24293 for pgac_postfix
in \
24294 sgml
/stylesheets
/nwalsh-modular \
24295 sgml
/stylesheets
/docbook \
24296 sgml
/stylesheets
/dsssl
/docbook \
24297 sgml
/docbook-dsssl \
24298 sgml
/docbook
/dsssl
/modular \
24299 sgml
/docbook
/stylesheet
/dsssl
/modular \
24300 sgml
/docbook
/dsssl-stylesheets
24302 pgac_candidate
=$pgac_prefix/$pgac_infix/$pgac_postfix
24303 if test -r "$pgac_candidate/html/docbook.dsl" \
24304 && test -r "$pgac_candidate/print/docbook.dsl"
24306 pgac_cv_path_stylesheets
=$pgac_candidate
24315 DOCBOOKSTYLE
=$pgac_cv_path_stylesheets
24317 if test -n "$DOCBOOKSTYLE"; then
24318 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
24319 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
24321 echo "$as_me:$LINENO: result: no" >&5
24322 echo "${ECHO_T}no" >&6
24324 if test -n "$DOCBOOKSTYLE"; then
24325 for ac_prog
in collateindex.pl
24327 # Extract the first word of "$ac_prog", so it can be a program name with args.
24328 set dummy
$ac_prog; ac_word
=$2
24329 echo "$as_me:$LINENO: checking for $ac_word" >&5
24330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24331 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24332 echo $ECHO_N "(cached) $ECHO_C" >&6
24334 case $COLLATEINDEX in
24336 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
24339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24340 for as_dir
in $DOCBOOKSTYLE/bin
$PATH
24343 test -z "$as_dir" && as_dir
=.
24344 for ac_exec_ext
in '' $ac_executable_extensions; do
24345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24346 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
24347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24356 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
24358 if test -n "$COLLATEINDEX"; then
24359 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24360 echo "${ECHO_T}$COLLATEINDEX" >&6
24362 echo "$as_me:$LINENO: result: no" >&5
24363 echo "${ECHO_T}no" >&6
24366 test -n "$COLLATEINDEX" && break
24370 for ac_prog
in collateindex.pl
24372 # Extract the first word of "$ac_prog", so it can be a program name with args.
24373 set dummy
$ac_prog; ac_word
=$2
24374 echo "$as_me:$LINENO: checking for $ac_word" >&5
24375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24376 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
24377 echo $ECHO_N "(cached) $ECHO_C" >&6
24379 case $COLLATEINDEX in
24381 ac_cv_path_COLLATEINDEX
="$COLLATEINDEX" # Let the user override the test with a path.
24384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24385 for as_dir
in $PATH
24388 test -z "$as_dir" && as_dir
=.
24389 for ac_exec_ext
in '' $ac_executable_extensions; do
24390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24391 ac_cv_path_COLLATEINDEX
="$as_dir/$ac_word$ac_exec_ext"
24392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24401 COLLATEINDEX
=$ac_cv_path_COLLATEINDEX
24403 if test -n "$COLLATEINDEX"; then
24404 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
24405 echo "${ECHO_T}$COLLATEINDEX" >&6
24407 echo "$as_me:$LINENO: result: no" >&5
24408 echo "${ECHO_T}no" >&6
24411 test -n "$COLLATEINDEX" && break
24415 for ac_prog
in sgmlspl
24417 # Extract the first word of "$ac_prog", so it can be a program name with args.
24418 set dummy
$ac_prog; ac_word
=$2
24419 echo "$as_me:$LINENO: checking for $ac_word" >&5
24420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24421 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
24422 echo $ECHO_N "(cached) $ECHO_C" >&6
24424 if test -n "$SGMLSPL"; then
24425 ac_cv_prog_SGMLSPL
="$SGMLSPL" # Let the user override the test.
24427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24428 for as_dir
in $PATH
24431 test -z "$as_dir" && as_dir
=.
24432 for ac_exec_ext
in '' $ac_executable_extensions; do
24433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24434 ac_cv_prog_SGMLSPL
="$ac_prog"
24435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24443 SGMLSPL
=$ac_cv_prog_SGMLSPL
24444 if test -n "$SGMLSPL"; then
24445 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
24446 echo "${ECHO_T}$SGMLSPL" >&6
24448 echo "$as_me:$LINENO: result: no" >&5
24449 echo "${ECHO_T}no" >&6
24452 test -n "$SGMLSPL" && break
24458 # We have to run the thread test near the end so we have all our symbols
24459 # defined. Cross compiling throws a warning.
24461 if test "$enable_thread_safety_force" = yes; then
24462 if test "$PORTNAME" != "win32"
24464 { echo "$as_me:$LINENO: WARNING:
24465 *** Skipping thread test program. --enable-thread-safety-force was used.
24466 *** Run the program in src/test/thread on the your machine and add proper
24467 *** locking function calls to your applications to guarantee thread safety.
24469 echo "$as_me: WARNING:
24470 *** Skipping thread test program. --enable-thread-safety-force was used.
24471 *** Run the program in src/test/thread on the your machine and add proper
24472 *** locking function calls to your applications to guarantee thread safety.
24475 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24476 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24478 elif test "$enable_thread_safety" = yes; then
24479 if test "$PORTNAME" != "win32"
24481 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
24482 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
24486 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
24487 LIBS
="$LIBS $PTHREAD_LIBS"
24488 if test "$cross_compiling" = yes; then
24489 echo "$as_me:$LINENO: result: maybe" >&5
24490 echo "${ECHO_T}maybe" >&6
24491 { echo "$as_me:$LINENO: WARNING:
24492 *** Skipping thread test program because of cross-compile build.
24493 *** Run the program in src/test/thread on the target machine.
24495 echo "$as_me: WARNING:
24496 *** Skipping thread test program because of cross-compile build.
24497 *** Run the program in src/test/thread on the target machine.
24500 cat >conftest.
$ac_ext <<_ACEOF
24503 cat confdefs.h
>>conftest.
$ac_ext
24504 cat >>conftest.
$ac_ext <<_ACEOF
24505 /* end confdefs.h. */
24506 #include "$srcdir/src/test/thread/thread_test.c"
24508 rm -f conftest
$ac_exeext
24509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24510 (eval $ac_link) 2>&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515 (eval $ac_try) 2>&5
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); }; }; then
24519 echo "$as_me:$LINENO: result: yes" >&5
24520 echo "${ECHO_T}yes" >&6
24522 echo "$as_me: program exited with status $ac_status" >&5
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.
$ac_ext >&5
24526 ( exit $ac_status )
24527 echo "$as_me:$LINENO: result: no" >&5
24528 echo "${ECHO_T}no" >&6
24529 { { echo "$as_me:$LINENO: error: thread test program failed
24530 This platform is not thread-safe. Check the file 'config.log'for the
24533 You can use the configure option --enable-thread-safety-force to force
24534 threads to be enabled. But you must then run the program in
24535 src/test/thread and add locking function calls to your applications to
24536 guarantee thread safety." >&5
24537 echo "$as_me: error: thread test program failed
24538 This platform is not thread-safe. Check the file 'config.log'for the
24541 You can use the configure option --enable-thread-safety-force to force
24542 threads to be enabled. But you must then run the program in
24543 src/test/thread and add locking function calls to your applications to
24544 guarantee thread safety." >&2;}
24545 { (exit 1); exit 1; }; }
24547 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24552 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
24553 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
24557 # prepare build tree if outside source tree
24558 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
24559 # Note 2: /bin/pwd might be better than shell's built-in at getting
24560 # a symlink-free name.
24561 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
24565 if test "$no_create" != yes; then
24566 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
24567 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
24568 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
24569 ||
{ { echo "$as_me:$LINENO: error: failed" >&5
24570 echo "$as_me: error: failed" >&2;}
24571 { (exit 1); exit 1; }; }
24572 echo "$as_me:$LINENO: result: done" >&5
24573 echo "${ECHO_T}done" >&6
24579 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
24582 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}"
24585 if test "$PORTNAME" = "win32"; then
24586 ac_config_commands
="$ac_config_commands check_win32_symlinks"
24590 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
24593 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
24596 cat >confcache
<<\_ACEOF
24597 # This file is a shell script that caches the results of configure
24598 # tests run on this system so they can be shared between configure
24599 # scripts and configure runs, see configure's option --config-cache.
24600 # It is not useful on other systems. If it contains results you don't
24601 # want to keep, you may remove or edit it.
24603 # config.status only pays attention to the cache file if you give it
24604 # the --recheck option to rerun configure.
24606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24608 # following values.
24612 # The following way of writing the cache mishandles newlines in values,
24613 # but we know of no workaround that is simple, portable, and efficient.
24614 # So, don't put newlines in cache variables' values.
24615 # Ultrix sh set writes to stderr and can't be redirected directly,
24616 # and sets the high bit in the cache file unless we assign to the vars.
24619 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24621 # `set' does not quote correctly, so add quotes (double-quote
24622 # substitution turns \\\\ into \\, and sed turns \\ into \).
24625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24628 # `set' quotes correctly as required by POSIX, so do not add quotes.
24630 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24639 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24641 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
24642 if test -w $cache_file; then
24643 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24644 cat confcache
>$cache_file
24646 echo "not updating unwritable cache $cache_file"
24651 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24652 # Let make expand exec_prefix.
24653 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24657 # trailing colons and then remove the whole line if VPATH becomes empty
24658 # (actually we leave an empty line to preserve line numbers).
24659 if test "x$srcdir" = x.
; then
24660 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24661 s/:*\$(srcdir):*/:/;
24662 s/:*\${srcdir}:*/:/;
24664 s/^\([^=]*=[ ]*\):*/\1/;
24670 DEFS
=-DHAVE_CONFIG_H
24674 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24675 # 1. Remove the extension, and $U if already installed.
24676 ac_i
=`echo "$ac_i" |
24677 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24679 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
24680 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
24682 LIBOBJS
=$ac_libobjs
24684 LTLIBOBJS
=$ac_ltlibobjs
24688 : ${CONFIG_STATUS=./config.status}
24689 ac_clean_files_save
=$ac_clean_files
24690 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24691 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24692 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24693 cat >$CONFIG_STATUS <<_ACEOF
24695 # Generated by $as_me.
24696 # Run this file to recreate the current configuration.
24697 # Compiler output produced by configure, useful for debugging
24698 # configure, is in config.log if it exists.
24701 ac_cs_recheck=false
24703 SHELL=\${CONFIG_SHELL-$SHELL}
24706 cat >>$CONFIG_STATUS <<\_ACEOF
24707 ## --------------------- ##
24708 ## M4sh Initialization. ##
24709 ## --------------------- ##
24711 # Be Bourne compatible
24712 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24715 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24716 # is contrary to our usage. Disable this feature.
24717 alias -g '${1+"$@"}'='"$@"'
24718 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24721 DUALCASE
=1; export DUALCASE
# for MKS sh
24723 # Support unset when possible.
24724 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24731 # Work around bugs in pre-3.0 UWIN ksh.
24732 $as_unset ENV MAIL MAILPATH
24739 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24740 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24741 LC_TELEPHONE LC_TIME
24743 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24744 eval $as_var=C
; export $as_var
24750 # Required to use basename.
24751 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24757 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
24758 as_basename
=basename
24764 # Name of the executable.
24765 as_me
=`$as_basename "$0" ||
24766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24767 X"$0" : 'X\(//\)$' \| \
24768 X"$0" : 'X\(/\)$' \| \
24769 . : '\(.\)' 2>/dev/null ||
24771 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24772 /^X\/\(\/\/\)$/{ s//\1/; q; }
24773 /^X\/\(\/\).*/{ s//\1/; q; }
24777 # PATH needs CR, and LINENO needs CR and PATH.
24778 # Avoid depending upon Character Ranges.
24779 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24780 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24781 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24782 as_cr_digits
='0123456789'
24783 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24785 # The user is always right.
24786 if test "${PATH_SEPARATOR+set}" != set; then
24787 echo "#! /bin/sh" >conf$$.sh
24788 echo "exit 0" >>conf$$.sh
24790 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24799 as_lineno_1
=$LINENO
24800 as_lineno_2
=$LINENO
24801 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
24802 test "x$as_lineno_1" != "x$as_lineno_2" &&
24803 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
24804 # Find who we are. Look in the path if we contain no path at all
24807 *[\\/]* ) as_myself
=$0 ;;
24808 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24809 for as_dir
in $PATH
24812 test -z "$as_dir" && as_dir
=.
24813 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24818 # We did not find ourselves, most probably we were run as `sh COMMAND'
24819 # in which case we are not to be found in the path.
24820 if test "x$as_myself" = x
; then
24823 if test ! -f "$as_myself"; then
24824 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24825 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24826 { (exit 1); exit 1; }; }
24828 case $CONFIG_SHELL in
24830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24831 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
24834 test -z "$as_dir" && as_dir
=.
24835 for as_base
in sh bash ksh sh5
; do
24838 if ("$as_dir/$as_base" -c '
24839 as_lineno_1=$LINENO
24840 as_lineno_2=$LINENO
24841 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24842 test "x$as_lineno_1" != "x$as_lineno_2" &&
24843 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
24844 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
24845 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
24846 CONFIG_SHELL
=$as_dir/$as_base
24847 export CONFIG_SHELL
24848 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24856 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24857 # uniformly replaced by the line number. The first 'sed' inserts a
24858 # line-number line before each line; the second 'sed' does the real
24859 # work. The second script uses 'N' to pair each line-number line
24860 # with the numbered line, and appends trailing '-' during
24861 # substitution so that $LINENO is not a special case at line end.
24862 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24863 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24864 sed '=' <$as_myself |
24869 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24872 s,^['$as_cr_digits']*\n,,
24873 ' >$as_me.lineno
&&
24874 chmod +x
$as_me.lineno ||
24875 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24876 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24877 { (exit 1); exit 1; }; }
24879 # Don't try to exec as it changes $[0], causing all sort of problems
24880 # (the dirname of $[0] is not the place where we might find the
24881 # original and so on. Autoconf is especially sensible to this).
24883 # Exit status is that of the last command.
24888 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24889 *c
*,-n*) ECHO_N
= ECHO_C
='
24891 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
24892 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
24895 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24901 rm -f conf$$ conf$$.exe conf$$.
file
24903 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24904 # We could just check for DJGPP; but this test a) works b) is more generic
24905 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24906 if test -f conf$$.exe
; then
24907 # Don't use ln at all; we don't have any links
24912 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24917 rm -f conf$$ conf$$.exe conf$$.
file
24919 if mkdir
-p .
2>/dev
/null
; then
24922 test -d .
/-p && rmdir .
/-p
24926 as_executable_p
="test -f"
24928 # Sed expression to map a string onto a valid CPP name.
24929 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24931 # Sed expression to map a string onto a valid variable name.
24932 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24936 # We need space, tab and new line, in precisely that order.
24946 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24947 # report actual input values of CONFIG_FILES etc. instead of their
24948 # values after options handling. Logging --version etc. is OK.
24952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24953 ## Running $as_me. ##
24958 This file was extended by PostgreSQL $as_me 8.3devel, which was
24959 generated by GNU Autoconf 2.59. Invocation command line was
24961 CONFIG_FILES = $CONFIG_FILES
24962 CONFIG_HEADERS = $CONFIG_HEADERS
24963 CONFIG_LINKS = $CONFIG_LINKS
24964 CONFIG_COMMANDS = $CONFIG_COMMANDS
24968 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24972 # Files that config.status was made for.
24973 if test -n "$ac_config_files"; then
24974 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24977 if test -n "$ac_config_headers"; then
24978 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24981 if test -n "$ac_config_links"; then
24982 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24985 if test -n "$ac_config_commands"; then
24986 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24989 cat >>$CONFIG_STATUS <<\_ACEOF
24992 \`$as_me' instantiates files from templates according to the
24993 current configuration.
24995 Usage: $0 [OPTIONS] [FILE]...
24997 -h, --help print this help, then exit
24998 -V, --version print version number, then exit
24999 -q, --quiet do not print progress messages
25000 -d, --debug don't remove temporary files
25001 --recheck update $as_me by reconfiguring in the same conditions
25002 --file=FILE[:TEMPLATE]
25003 instantiate the configuration file FILE
25004 --header=FILE[:TEMPLATE]
25005 instantiate the configuration header FILE
25007 Configuration files:
25010 Configuration headers:
25013 Configuration links:
25016 Configuration commands:
25019 Report bugs to <bug-autoconf@gnu.org>."
25022 cat >>$CONFIG_STATUS <<_ACEOF
25024 PostgreSQL config.status 8.3devel
25025 configured by $0, generated by GNU Autoconf 2.59,
25026 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25028 Copyright (C) 2003 Free Software Foundation, Inc.
25029 This config.status script is free software; the Free Software Foundation
25030 gives unlimited permission to copy, distribute and modify it."
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25035 # If no file are specified by the user, then we need to provide default
25036 # value. By we need to know if files were specified by the user.
25042 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
25043 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
25051 *) # This is not an option, so the user has probably given explicit
25054 ac_need_defaults
=false
;;
25058 # Handling of the options.
25060 cat >>$CONFIG_STATUS <<\_ACEOF
25061 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25063 --version |
--vers* |
-V )
25064 echo "$ac_cs_version"; exit 0 ;;
25066 # Conflict between --help and --header
25067 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25068 Try \`$0 --help' for more information." >&5
25069 echo "$as_me: error: ambiguous option: $1
25070 Try \`$0 --help' for more information." >&2;}
25071 { (exit 1); exit 1; }; };;
25072 --help |
--hel |
-h )
25073 echo "$ac_cs_usage"; exit 0 ;;
25074 --debug |
--d* |
-d )
25076 --file |
--fil |
--fi |
--f )
25078 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25079 ac_need_defaults
=false
;;
25080 --header |
--heade |
--head |
--hea )
25082 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25083 ac_need_defaults
=false
;;
25084 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25085 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25088 # This is an error.
25089 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25090 Try \`$0 --help' for more information." >&5
25091 echo "$as_me: error: unrecognized option: $1
25092 Try \`$0 --help' for more information." >&2;}
25093 { (exit 1); exit 1; }; } ;;
25095 *) ac_config_targets
="$ac_config_targets $1" ;;
25101 ac_configure_extra_args
=
25103 if $ac_cs_silent; then
25105 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25109 cat >>$CONFIG_STATUS <<_ACEOF
25110 if \$ac_cs_recheck; then
25111 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25112 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25121 cat >>$CONFIG_STATUS <<\_ACEOF
25122 for ac_config_target
in $ac_config_targets
25124 case "$ac_config_target" in
25125 # Handling of arguments.
25126 "GNUmakefile" ) CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
25127 "src/Makefile.global" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
25128 "src/backend/port/tas.s" ) CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
25129 "src/backend/port/dynloader.c" ) CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
25130 "src/backend/port/pg_sema.c" ) CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
25131 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
25132 "src/include/dynloader.h" ) CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
25133 "src/include/pg_config_os.h" ) CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
25134 "src/Makefile.port" ) CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
25135 "check_win32_symlinks" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
25136 "src/include/pg_config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
25137 "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
25138 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25140 { (exit 1); exit 1; }; };;
25144 # If the user did not use the arguments to specify the items to instantiate,
25145 # then the envvar interface is used. Set only those that are not.
25146 # We use the long form for the default assignment because of an extremely
25147 # bizarre bug on SunOS 4.1.3.
25148 if $ac_need_defaults; then
25149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25151 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
25152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25155 # Have a temporary directory for convenience. Make it in the build tree
25156 # simply because there is no reason to put it here, and in addition,
25157 # creating and moving files from /tmp can sometimes cause problems.
25158 # Create a temporary directory, and hook for its removal unless debugging.
25161 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25162 trap '{ (exit 1); exit 1; }' 1 2 13 15
25165 # Create a (secure) tmp directory for tmp files.
25168 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25169 test -n "$tmp" && test -d "$tmp"
25172 tmp
=.
/confstat$$
-$RANDOM
25173 (umask 077 && mkdir
$tmp)
25176 echo "$me: cannot create a temporary directory in ." >&2
25177 { (exit 1); exit 1; }
25182 cat >>$CONFIG_STATUS <<_ACEOF
25185 # CONFIG_FILES section.
25188 # No need to generate the scripts if there are no CONFIG_FILES.
25189 # This happens for instance when ./config.status config.h
25190 if test -n "\$CONFIG_FILES"; then
25191 # Protect against being on the right side of a sed subst in config.status.
25192 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25193 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25194 s,@SHELL@,$SHELL,;t t
25195 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25196 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25197 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25198 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25199 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25200 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25201 s,@exec_prefix@,$exec_prefix,;t t
25202 s,@prefix@,$prefix,;t t
25203 s,@program_transform_name@,$program_transform_name,;t t
25204 s,@bindir@,$bindir,;t t
25205 s,@sbindir@,$sbindir,;t t
25206 s,@libexecdir@,$libexecdir,;t t
25207 s,@datadir@,$datadir,;t t
25208 s,@sysconfdir@,$sysconfdir,;t t
25209 s,@sharedstatedir@,$sharedstatedir,;t t
25210 s,@localstatedir@,$localstatedir,;t t
25211 s,@libdir@,$libdir,;t t
25212 s,@includedir@,$includedir,;t t
25213 s,@oldincludedir@,$oldincludedir,;t t
25214 s,@infodir@,$infodir,;t t
25215 s,@mandir@,$mandir,;t t
25216 s,@build_alias@,$build_alias,;t t
25217 s,@host_alias@,$host_alias,;t t
25218 s,@target_alias@,$target_alias,;t t
25219 s,@DEFS@,$DEFS,;t t
25220 s,@ECHO_C@,$ECHO_C,;t t
25221 s,@ECHO_N@,$ECHO_N,;t t
25222 s,@ECHO_T@,$ECHO_T,;t t
25223 s,@LIBS@,$LIBS,;t t
25224 s,@configure_args@,$configure_args,;t t
25225 s,@build@,$build,;t t
25226 s,@build_cpu@,$build_cpu,;t t
25227 s,@build_vendor@,$build_vendor,;t t
25228 s,@build_os@,$build_os,;t t
25229 s,@host@,$host,;t t
25230 s,@host_cpu@,$host_cpu,;t t
25231 s,@host_vendor@,$host_vendor,;t t
25232 s,@host_os@,$host_os,;t t
25233 s,@PORTNAME@,$PORTNAME,;t t
25234 s,@docdir@,$docdir,;t t
25235 s,@enable_nls@,$enable_nls,;t t
25236 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
25237 s,@default_port@,$default_port,;t t
25238 s,@enable_shared@,$enable_shared,;t t
25239 s,@enable_rpath@,$enable_rpath,;t t
25240 s,@enable_debug@,$enable_debug,;t t
25241 s,@enable_profiling@,$enable_profiling,;t t
25242 s,@DTRACE@,$DTRACE,;t t
25243 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
25244 s,@enable_dtrace@,$enable_dtrace,;t t
25246 s,@CFLAGS@,$CFLAGS,;t t
25247 s,@LDFLAGS@,$LDFLAGS,;t t
25248 s,@CPPFLAGS@,$CPPFLAGS,;t t
25249 s,@ac_ct_CC@,$ac_ct_CC,;t t
25250 s,@EXEEXT@,$EXEEXT,;t t
25251 s,@OBJEXT@,$OBJEXT,;t t
25255 s,@autodepend@,$autodepend,;t t
25256 s,@INCLUDES@,$INCLUDES,;t t
25257 s,@enable_thread_safety@,$enable_thread_safety,;t t
25258 s,@with_tcl@,$with_tcl,;t t
25259 s,@with_perl@,$with_perl,;t t
25260 s,@with_python@,$with_python,;t t
25261 s,@with_gssapi@,$with_gssapi,;t t
25262 s,@with_krb5@,$with_krb5,;t t
25263 s,@krb_srvtab@,$krb_srvtab,;t t
25264 s,@with_pam@,$with_pam,;t t
25265 s,@with_ldap@,$with_ldap,;t t
25266 s,@with_bonjour@,$with_bonjour,;t t
25267 s,@with_openssl@,$with_openssl,;t t
25268 s,@with_ossp_uuid@,$with_ossp_uuid,;t t
25269 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25270 s,@with_libxml@,$with_libxml,;t t
25271 s,@with_libxslt@,$with_libxslt,;t t
25272 s,@with_system_tzdata@,$with_system_tzdata,;t t
25273 s,@with_zlib@,$with_zlib,;t t
25274 s,@EGREP@,$EGREP,;t t
25275 s,@ELF_SYS@,$ELF_SYS,;t t
25276 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
25278 s,@with_gnu_ld@,$with_gnu_ld,;t t
25279 s,@ld_R_works@,$ld_R_works,;t t
25280 s,@RANLIB@,$RANLIB,;t t
25281 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25282 s,@STRIP@,$STRIP,;t t
25283 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25284 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
25285 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
25287 s,@LN_S@,$LN_S,;t t
25289 s,@YACC@,$YACC,;t t
25290 s,@YFLAGS@,$YFLAGS,;t t
25291 s,@FLEX@,$FLEX,;t t
25292 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
25293 s,@PERL@,$PERL,;t t
25294 s,@perl_archlibexp@,$perl_archlibexp,;t t
25295 s,@perl_privlibexp@,$perl_privlibexp,;t t
25296 s,@perl_useshrplib@,$perl_useshrplib,;t t
25297 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
25298 s,@PYTHON@,$PYTHON,;t t
25299 s,@python_version@,$python_version,;t t
25300 s,@python_configdir@,$python_configdir,;t t
25301 s,@python_includespec@,$python_includespec,;t t
25302 s,@python_libdir@,$python_libdir,;t t
25303 s,@python_libspec@,$python_libspec,;t t
25304 s,@python_additional_libs@,$python_additional_libs,;t t
25305 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
25306 s,@LIBOBJS@,$LIBOBJS,;t t
25307 s,@acx_pthread_config@,$acx_pthread_config,;t t
25308 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
25309 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
25310 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
25311 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
25312 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
25313 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
25314 s,@MSGFMT@,$MSGFMT,;t t
25315 s,@MSGMERGE@,$MSGMERGE,;t t
25316 s,@XGETTEXT@,$XGETTEXT,;t t
25317 s,@localedir@,$localedir,;t t
25318 s,@TCLSH@,$TCLSH,;t t
25319 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
25320 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
25321 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
25322 s,@TCL_LIBS@,$TCL_LIBS,;t t
25323 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25324 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
25325 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25326 s,@NSGMLS@,$NSGMLS,;t t
25327 s,@JADE@,$JADE,;t t
25328 s,@have_docbook@,$have_docbook,;t t
25329 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
25330 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
25331 s,@SGMLSPL@,$SGMLSPL,;t t
25332 s,@vpath_build@,$vpath_build,;t t
25333 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25338 cat >>$CONFIG_STATUS <<\_ACEOF
25339 # Split the substitutions into bite-sized pieces for seds with
25340 # small command number limits, like on Digital OSF/1 and HP-UX.
25341 ac_max_sed_lines
=48
25342 ac_sed_frag
=1 # Number of current file.
25343 ac_beg
=1 # First line for current file.
25344 ac_end
=$ac_max_sed_lines # Line after last line for current file.
25347 while $ac_more_lines; do
25348 if test $ac_beg -gt 1; then
25349 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25351 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25353 if test ! -s $tmp/subs.frag
; then
25354 ac_more_lines
=false
25356 # The purpose of the label and of the branching condition is to
25357 # speed up the sed processing (if there are no `@' at all, there
25358 # is no need to browse any of the substitutions).
25359 # These are the two extra sed commands mentioned above.
25361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
25362 if test -z "$ac_sed_cmds"; then
25363 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
25365 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25367 ac_sed_frag
=`expr $ac_sed_frag + 1`
25369 ac_end
=`expr $ac_end + $ac_max_sed_lines`
25372 if test -z "$ac_sed_cmds"; then
25375 fi # test -n "$CONFIG_FILES"
25378 cat >>$CONFIG_STATUS <<\_ACEOF
25379 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
25380 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25382 - |
*:- |
*:-:* ) # input from stdin
25384 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25385 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25386 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25387 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25388 * ) ac_file_in
=$ac_file.
in ;;
25391 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25392 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25394 X"$ac_file" : 'X\(//\)[^/]' \| \
25395 X"$ac_file" : 'X\(//\)$' \| \
25396 X"$ac_file" : 'X\(/\)' \| \
25397 . : '\(.\)' 2>/dev/null ||
25399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25401 /^X\(\/\/\)$/{ s//\1/; q; }
25402 /^X\(\/\).*/{ s//\1/; q; }
25404 { if $as_mkdir_p; then
25409 while test ! -d "$as_dir"; do
25410 as_dirs
="$as_dir $as_dirs"
25411 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25413 X"$as_dir" : 'X\(//\)[^/]' \| \
25414 X"$as_dir" : 'X\(//\)$' \| \
25415 X"$as_dir" : 'X\(/\)' \| \
25416 . : '\(.\)' 2>/dev/null ||
25418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25420 /^X\(\/\/\)$/{ s//\1/; q; }
25421 /^X\(\/\).*/{ s//\1/; q; }
25424 test ! -n "$as_dirs" || mkdir
$as_dirs
25425 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25427 { (exit 1); exit 1; }; }; }
25431 if test "$ac_dir" != .
; then
25432 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25433 # A "../" for each directory in $ac_dir_suffix.
25434 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25436 ac_dir_suffix
= ac_top_builddir
=
25440 .
) # No --srcdir option. We are building in place.
25442 if test -z "$ac_top_builddir"; then
25445 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25447 [\\/]* | ?
:[\\/]* ) # Absolute path.
25448 ac_srcdir
=$srcdir$ac_dir_suffix;
25449 ac_top_srcdir
=$srcdir ;;
25450 *) # Relative path.
25451 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
25452 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
25455 # Do not use `cd foo && pwd` to compute absolute paths, because
25456 # the directories may not exist.
25458 .
) ac_abs_builddir
="$ac_dir";;
25461 .
) ac_abs_builddir
=`pwd`;;
25462 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
25463 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
25466 case $ac_abs_builddir in
25467 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25469 case ${ac_top_builddir}.
in
25470 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
25471 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25472 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
25475 case $ac_abs_builddir in
25476 .
) ac_abs_srcdir
=$ac_srcdir;;
25479 .
) ac_abs_srcdir
=$ac_abs_builddir;;
25480 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
25481 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
25484 case $ac_abs_builddir in
25485 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
25487 case $ac_top_srcdir in
25488 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
25489 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
25490 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
25496 if test x
"$ac_file" != x-
; then
25497 { echo "$as_me:$LINENO: creating $ac_file" >&5
25498 echo "$as_me: creating $ac_file" >&6;}
25501 # Let's still pretend it is `configure' which instantiates (i.e., don't
25502 # use $as_me), people would be surprised to read:
25503 # /* config.h. Generated by config.status. */
25504 if test x
"$ac_file" = x-
; then
25507 configure_input
="$ac_file. "
25509 configure_input
=$configure_input"Generated from `echo $ac_file_in |
25510 sed 's,.*/,,'` by configure."
25512 # First look for the input files in the build tree, otherwise in the
25514 ac_file_inputs
=`IFS=:
25515 for f in $ac_file_in; do
25517 -) echo $tmp/stdin ;;
25519 # Absolute (can't be DOS-style, as IFS=:)
25520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25521 echo "$as_me: error: cannot find input file: $f" >&2;}
25522 { (exit 1); exit 1; }; }
25525 if test -f "$f"; then
25528 elif test -f "$srcdir/$f"; then
25533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25534 echo "$as_me: error: cannot find input file: $f" >&2;}
25535 { (exit 1); exit 1; }; }
25538 done` ||
{ (exit 1); exit 1; }
25540 cat >>$CONFIG_STATUS <<_ACEOF
25544 cat >>$CONFIG_STATUS <<\_ACEOF
25546 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25547 s
,@configure_input@
,$configure_input,;t t
25548 s
,@srcdir@
,$ac_srcdir,;t t
25549 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
25550 s
,@top_srcdir@
,$ac_top_srcdir,;t t
25551 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
25552 s
,@builddir@
,$ac_builddir,;t t
25553 s
,@abs_builddir@
,$ac_abs_builddir,;t t
25554 s
,@top_builddir@
,$ac_top_builddir,;t t
25555 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
25556 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25558 if test x"$ac_file" != x-; then
25559 mv $tmp/out $ac_file
25567 cat >>$CONFIG_STATUS <<\_ACEOF
25570 # CONFIG_HEADER section.
25573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
25574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25576 # ac_d sets the value in "#define NAME VALUE" lines.
25577 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25578 ac_dB
='[ ].*$,\1#\2'
25581 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25582 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25583 ac_uB
='$,\1#\2define\3'
25587 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
25588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25590 - |
*:- |
*:-:* ) # input from stdin
25592 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25593 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25594 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25595 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25596 * ) ac_file_in
=$ac_file.
in ;;
25599 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
25600 echo "$as_me: creating $ac_file" >&6;}
25602 # First look for the input files in the build tree, otherwise in the
25604 ac_file_inputs
=`IFS=:
25605 for f in $ac_file_in; do
25607 -) echo $tmp/stdin ;;
25609 # Absolute (can't be DOS-style, as IFS=:)
25610 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25611 echo "$as_me: error: cannot find input file: $f" >&2;}
25612 { (exit 1); exit 1; }; }
25613 # Do quote $f, to prevent DOS paths from being IFS'd.
25616 if test -f "$f"; then
25619 elif test -f "$srcdir/$f"; then
25624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25625 echo "$as_me: error: cannot find input file: $f" >&2;}
25626 { (exit 1); exit 1; }; }
25629 done` ||
{ (exit 1); exit 1; }
25630 # Remove the trailing spaces.
25631 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25635 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25636 # `conftest.undefs', that substitutes the proper values into
25637 # config.h.in to produce config.h. The first handles `#define'
25638 # templates, and the second `#undef' templates.
25639 # And first: Protect against being on the right side of a sed subst in
25640 # config.status. Protect against being in an unquoted here document
25641 # in config.status.
25642 rm -f conftest.defines conftest.undefs
25643 # Using a here document instead of a string reduces the quoting nightmare.
25644 # Putting comments in sed scripts is not portable.
25646 # `end' is used to avoid that the second main sed command (meant for
25647 # 0-ary CPP macros) applies to n-ary macro definitions.
25648 # See the Autoconf documentation for `clear'.
25649 cat >confdef2sed.
sed <<\_ACEOF
25654 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25656 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25659 # If some macros were called several times there might be several times
25660 # the same #defines, which is useless. Nevertheless, we may not want to
25661 # sort them, since we want the *last* AC-DEFINE to be honored.
25662 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25663 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25664 rm -f confdef2sed.sed
25666 # This sed command replaces #undef with comments. This is necessary, for
25667 # example, in the case of _POSIX_SOURCE, which is predefined and required
25668 # on some systems where configure will not decide to define it.
25669 cat >>conftest.undefs <<\_ACEOF
25670 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25673 # Break up conftest.defines because some shells have a limit on the size
25674 # of here documents, and old seds have small limits too (100 cmds).
25675 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25676 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25677 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25678 echo ' :' >>$CONFIG_STATUS
25679 rm -f conftest.tail
25680 while grep . conftest.defines >/dev/null
25682 # Write a limited-size here document to $tmp/defines.sed.
25683 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25684 # Speed up: don't consider the non `#define' lines.
25685 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25686 # Work around the forget-to-reset-the-flag bug.
25687 echo 't clr' >>$CONFIG_STATUS
25688 echo ': clr' >>$CONFIG_STATUS
25689 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
25691 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25693 mv $tmp/out $tmp/in
25695 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
25696 rm -f conftest.defines
25697 mv conftest.
tail conftest.defines
25699 rm -f conftest.defines
25700 echo ' fi # grep' >>$CONFIG_STATUS
25701 echo >>$CONFIG_STATUS
25703 # Break up conftest.undefs because some shells have a limit on the size
25704 # of here documents, and old seds have small limits too (100 cmds).
25705 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25706 rm -f conftest.
tail
25707 while grep . conftest.undefs
>/dev
/null
25709 # Write a limited-size here document to $tmp/undefs.sed.
25710 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25711 # Speed up: don't consider the non
`#undef'
25712 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25713 # Work around the forget-to-reset-the-flag bug.
25714 echo 't clr' >>$CONFIG_STATUS
25715 echo ': clr' >>$CONFIG_STATUS
25716 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25718 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25720 mv $tmp/out $tmp/in
25722 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25723 rm -f conftest.undefs
25724 mv conftest.tail conftest.undefs
25726 rm -f conftest.undefs
25728 cat >>$CONFIG_STATUS <<\_ACEOF
25729 # Let's still pretend it is `configure
' which instantiates (i.e., don't
25730 # use $as_me), people would be surprised to read:
25731 # /* config.h. Generated by config.status. */
25732 if test x
"$ac_file" = x-
; then
25733 echo "/* Generated by configure. */" >$tmp/config.h
25735 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25737 cat $tmp/in >>$tmp/config.h
25739 if test x
"$ac_file" != x-
; then
25740 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
25741 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25742 echo "$as_me: $ac_file is unchanged" >&6;}
25744 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25746 X"$ac_file" : 'X\(//\)[^/]' \| \
25747 X"$ac_file" : 'X\(//\)$' \| \
25748 X"$ac_file" : 'X\(/\)' \| \
25749 . : '\(.\)' 2>/dev/null ||
25751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25753 /^X\(\/\/\)$/{ s//\1/; q; }
25754 /^X\(\/\).*/{ s//\1/; q; }
25756 { if $as_mkdir_p; then
25761 while test ! -d "$as_dir"; do
25762 as_dirs
="$as_dir $as_dirs"
25763 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25765 X"$as_dir" : 'X\(//\)[^/]' \| \
25766 X"$as_dir" : 'X\(//\)$' \| \
25767 X"$as_dir" : 'X\(/\)' \| \
25768 . : '\(.\)' 2>/dev/null ||
25770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25772 /^X\(\/\/\)$/{ s//\1/; q; }
25773 /^X\(\/\).*/{ s//\1/; q; }
25776 test ! -n "$as_dirs" || mkdir
$as_dirs
25777 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25779 { (exit 1); exit 1; }; }; }
25782 mv $tmp/config.h
$ac_file
25786 rm -f $tmp/config.h
25788 # Run the commands associated with the file.
25790 src
/include
/pg_config.h
)
25791 # Update timestamp for pg_config.h (see Makefile.global)
25792 echo >src
/include
/stamp-h
25797 cat >>$CONFIG_STATUS <<\_ACEOF
25800 # CONFIG_LINKS section.
25803 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
25804 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
25805 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25807 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25808 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25810 if test ! -r $srcdir/$ac_source; then
25811 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25812 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25813 { (exit 1); exit 1; }; }
25817 # Make relative symlinks.
25818 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
25819 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25820 X"$ac_dest" : 'X\(//\)[^/]' \| \
25821 X"$ac_dest" : 'X\(//\)$' \| \
25822 X"$ac_dest" : 'X\(/\)' \| \
25823 . : '\(.\)' 2>/dev/null ||
25825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25827 /^X\(\/\/\)$/{ s//\1/; q; }
25828 /^X\(\/\).*/{ s//\1/; q; }
25830 { if $as_mkdir_p; then
25831 mkdir
-p "$ac_dest_dir"
25833 as_dir
="$ac_dest_dir"
25835 while test ! -d "$as_dir"; do
25836 as_dirs
="$as_dir $as_dirs"
25837 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25839 X"$as_dir" : 'X\(//\)[^/]' \| \
25840 X"$as_dir" : 'X\(//\)$' \| \
25841 X"$as_dir" : 'X\(/\)' \| \
25842 . : '\(.\)' 2>/dev/null ||
25844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25846 /^X\(\/\/\)$/{ s//\1/; q; }
25847 /^X\(\/\).*/{ s//\1/; q; }
25850 test ! -n "$as_dirs" || mkdir
$as_dirs
25851 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25852 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25853 { (exit 1); exit 1; }; }; }
25857 if test "$ac_dest_dir" != .
; then
25858 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25859 # A "../" for each directory in $ac_dir_suffix.
25860 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25862 ac_dir_suffix
= ac_top_builddir
=
25866 .
) # No --srcdir option. We are building in place.
25868 if test -z "$ac_top_builddir"; then
25871 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25873 [\\/]* | ?
:[\\/]* ) # Absolute path.
25874 ac_srcdir
=$srcdir$ac_dir_suffix;
25875 ac_top_srcdir
=$srcdir ;;
25876 *) # Relative path.
25877 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
25878 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
25881 # Do not use `cd foo && pwd` to compute absolute paths, because
25882 # the directories may not exist.
25884 .
) ac_abs_builddir
="$ac_dest_dir";;
25886 case "$ac_dest_dir" in
25887 .
) ac_abs_builddir
=`pwd`;;
25888 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
25889 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
25892 case $ac_abs_builddir in
25893 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25895 case ${ac_top_builddir}.
in
25896 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
25897 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25898 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
25901 case $ac_abs_builddir in
25902 .
) ac_abs_srcdir
=$ac_srcdir;;
25905 .
) ac_abs_srcdir
=$ac_abs_builddir;;
25906 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
25907 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
25910 case $ac_abs_builddir in
25911 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
25913 case $ac_top_srcdir in
25914 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
25915 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
25916 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
25922 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
25923 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
25926 # Try a symlink, then a hard link, then a copy.
25927 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
25928 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
25929 cp -p $srcdir/$ac_source $ac_dest ||
25930 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25931 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25932 { (exit 1); exit 1; }; }
25935 cat >>$CONFIG_STATUS <<\_ACEOF
25938 # CONFIG_COMMANDS section.
25940 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
25941 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
25942 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25943 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
25944 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25945 X"$ac_dest" : 'X\(//\)[^/]' \| \
25946 X"$ac_dest" : 'X\(//\)$' \| \
25947 X"$ac_dest" : 'X\(/\)' \| \
25948 . : '\(.\)' 2>/dev/null ||
25950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25952 /^X\(\/\/\)$/{ s//\1/; q; }
25953 /^X\(\/\).*/{ s//\1/; q; }
25955 { if $as_mkdir_p; then
25960 while test ! -d "$as_dir"; do
25961 as_dirs
="$as_dir $as_dirs"
25962 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
25963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25964 X"$as_dir" : 'X\(//\)[^/]' \| \
25965 X"$as_dir" : 'X\(//\)$' \| \
25966 X"$as_dir" : 'X\(/\)' \| \
25967 . : '\(.\)' 2>/dev/null ||
25969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25971 /^X\(\/\/\)$/{ s//\1/; q; }
25972 /^X\(\/\).*/{ s//\1/; q; }
25975 test ! -n "$as_dirs" || mkdir
$as_dirs
25976 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25977 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25978 { (exit 1); exit 1; }; }; }
25982 if test "$ac_dir" != .
; then
25983 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25984 # A "../" for each directory in $ac_dir_suffix.
25985 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25987 ac_dir_suffix
= ac_top_builddir
=
25991 .
) # No --srcdir option. We are building in place.
25993 if test -z "$ac_top_builddir"; then
25996 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25998 [\\/]* | ?
:[\\/]* ) # Absolute path.
25999 ac_srcdir
=$srcdir$ac_dir_suffix;
26000 ac_top_srcdir
=$srcdir ;;
26001 *) # Relative path.
26002 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
26003 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
26006 # Do not use `cd foo && pwd` to compute absolute paths, because
26007 # the directories may not exist.
26009 .
) ac_abs_builddir
="$ac_dir";;
26012 .
) ac_abs_builddir
=`pwd`;;
26013 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
26014 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
26017 case $ac_abs_builddir in
26018 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26020 case ${ac_top_builddir}.
in
26021 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
26022 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
26023 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
26026 case $ac_abs_builddir in
26027 .
) ac_abs_srcdir
=$ac_srcdir;;
26030 .
) ac_abs_srcdir
=$ac_abs_builddir;;
26031 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
26032 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
26035 case $ac_abs_builddir in
26036 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
26038 case $ac_top_srcdir in
26039 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
26040 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
26041 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
26046 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26047 echo "$as_me: executing $ac_dest commands" >&6;}
26049 check_win32_symlinks
)
26050 # Links sometimes fail undetected on Mingw -
26051 # so here we detect it and warn the user
26052 for FILE
in $CONFIG_LINKS
26054 # test -e works for symlinks in the MinGW console
26055 test -e `expr "$FILE" : '\([^:]*\)'` ||
{ echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
26056 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
26063 cat >>$CONFIG_STATUS <<\_ACEOF
26065 { (exit 0); exit 0; }
26067 chmod +x
$CONFIG_STATUS
26068 ac_clean_files
=$ac_clean_files_save
26071 # configure is writing to config.log, and then calls config.status.
26072 # config.status does its own redirection, appending to config.log.
26073 # Unfortunately, on DOS this fails, as config.log is still kept open
26074 # by configure, so config.status won't be able to write to it; its
26075 # output is simply discarded. So we exec the FD to /dev/null,
26076 # effectively closing config.log, so it can be properly (re)opened and
26077 # appended to by config.status. When coming back to configure, we
26078 # need to make the FD available again.
26079 if test "$no_create" != yes; then
26081 ac_config_status_args
=
26082 test "$silent" = yes &&
26083 ac_config_status_args
="$ac_config_status_args --quiet"
26085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26088 # would make configure fail if this is the last instruction.
26089 $ac_cs_success ||
{ (exit 1); exit 1; }
26093 # Warn about unknown options
26094 for pgac_var
in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
26095 for pgac_arg
in $pgac_args with_gnu_ld
; do
26096 if test "$pgac_var" = "$pgac_arg"; then
26100 pgac_txt
=`echo $pgac_var | sed 's/_/-/g'`
26101 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
26102 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}