2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2beta1.
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-2006, 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.2beta1'
275 PACKAGE_STRING='PostgreSQL 8.2beta1'
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 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_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS 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.2beta1 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.2beta1:";;
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-dtrace build with DTrace support
869 --enable-depend turn on automatic dependency tracking
870 --enable-cassert enable assertion checks (for debugging)
871 --enable-thread-safety make client libraries thread-safe
872 --enable-thread-safety-force force thread-safety in spite of thread test failure
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
880 --without-docdir do not install the documentation
881 --with-includes=DIRS look for additional header files in DIRS
882 --with-libraries=DIRS look for additional libraries in DIRS
883 --with-libs=DIRS alternative spelling of --with-libraries
884 --with-pgport=PORTNUM change default port number [5432]
885 --with-tcl build Tcl modules (PL/Tcl)
886 --with-tclconfig=DIR tclConfig.sh is in DIR
887 --with-perl build Perl modules (PL/Perl)
888 --with-python build Python modules (PL/Python)
889 --with-krb5 build with Kerberos 5 support
890 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
891 --with-pam build with PAM support
892 --with-ldap build with LDAP support
893 --with-bonjour build with Bonjour support
894 --with-openssl build with OpenSSL support
895 --without-readline do not use GNU Readline nor BSD Libedit for editing
896 --with-libedit-preferred prefer BSD Libedit over GNU Readline
897 --without-zlib do not use Zlib
898 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
910 location of DocBook stylesheets
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
915 Report bugs to <pgsql-bugs@postgresql.org>.
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
926 if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 ac_dir_suffix= ac_top_builddir=
935 .) # No --srcdir option. We are building in place.
937 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
953 .) ac_abs_builddir="$ac_dir";;
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
1000 $ac_configure --help
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1011 PostgreSQL configure 8.2beta1
1012 generated by GNU Autoconf 2.59
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1018 Copyright (c) 1996-2006, PostgreSQL Global Development Group
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by PostgreSQL $as_me 8.2beta1, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h; then
1197 sed "/^$/d" confdefs.h | sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368 for ac_dir in config $srcdir/config; do
1369 if test -f $ac_dir/install-sh; then
1371 ac_install_sh="$ac_aux_dir/install-sh -c"
1373 elif test -f $ac_dir/install.sh; then
1375 ac_install_sh="$ac_aux_dir/install.sh -c"
1377 elif test -f $ac_dir/shtool; then
1379 ac_install_sh="$ac_aux_dir/shtool install -c"
1383 if test -z "$ac_aux_dir"; then
1384 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1386 { (exit 1); exit 1; }; }
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1393 configure_args=$ac_configure_args
1397 cat >>confdefs.h <<_ACEOF
1398 #define PG_VERSION "$PACKAGE_VERSION"
1402 # Make sure we can run config.sub.
1403 $ac_config_sub sun4 >/dev/null 2>&1 ||
1404 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1405 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1406 { (exit 1); exit 1; }; }
1408 echo "$as_me:$LINENO: checking build system type" >&5
1409 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1410 if test "${ac_cv_build+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_build_alias=$build_alias
1414 test -z "$ac_cv_build_alias" &&
1415 ac_cv_build_alias=`$ac_config_guess`
1416 test -z "$ac_cv_build_alias" &&
1417 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1418 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1419 { (exit 1); exit 1; }; }
1420 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1427 echo "${ECHO_T}$ac_cv_build" >&6
1429 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434 echo "$as_me:$LINENO: checking host system type" >&5
1435 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1436 if test "${ac_cv_host+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 ac_cv_host_alias=$host_alias
1440 test -z "$ac_cv_host_alias" &&
1441 ac_cv_host_alias=$ac_cv_build_alias
1442 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1444 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1445 { (exit 1); exit 1; }; }
1448 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1449 echo "${ECHO_T}$ac_cv_host" >&6
1451 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458 echo "$as_me:$LINENO: checking which template to use" >&5
1459 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1465 # Check whether --with-template or --without-template was given.
1466 if test "${with_template+set}" = set; then
1467 withval="$with_template"
1471 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1472 echo "$as_me: error: argument required for --with-template option" >&2;}
1473 { (exit 1); exit 1; }; }
1476 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1477 echo "$as_me: error: argument required for --with-template option" >&2;}
1478 { (exit 1); exit 1; }; }
1483 list) echo; ls "$srcdir/src/template"; exit;;
1484 *) if test -f "$srcdir/src/template/$with_template" ; then
1487 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1488 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1489 { (exit 1); exit 1; }; }
1498 # --with-template not given
1501 aix*) template=aix ;;
1502 bsdi*) template=bsdi ;;
1503 cygwin*) template=cygwin ;;
1504 darwin*) template=darwin ;;
1505 dgux*) template=dgux ;;
1506 freebsd*) template=freebsd ;;
1507 hpux*) template=hpux ;;
1508 irix*) template=irix ;;
1509 linux*|gnu*|k*bsd*-gnu)
1511 mingw*) template=win32 ;;
1512 netbsd*) template=netbsd ;;
1513 nextstep*) template=nextstep ;;
1514 openbsd*) template=openbsd ;;
1515 osf*) template=osf ;;
1516 sco*) template=sco ;;
1517 solaris*) template=solaris ;;
1518 sunos*) template=sunos4 ;;
1520 case $host_vendor in
1521 univel) template=univel ;;
1523 sysv4*) template=svr4 ;;
1524 sysv5*) template=unixware ;;
1525 ultrix*) template=ultrix4 ;;
1528 if test x"$template" = x"" ; then
1529 { { echo "$as_me:$LINENO: error:
1530 *******************************************************************
1531 PostgreSQL has apparently not been ported to your platform yet.
1532 To try a manual configuration, look into the src/template directory
1533 for a similar platform and use the '--with-template=' option.
1535 Please also contact <pgsql-ports@postgresql.org> to see about
1536 rectifying this. Include the above 'checking host system type...'
1538 *******************************************************************
1540 echo "$as_me: error:
1541 *******************************************************************
1542 PostgreSQL has apparently not been ported to your platform yet.
1543 To try a manual configuration, look into the src/template directory
1544 for a similar platform and use the '--with-template=' option.
1546 Please also contact <pgsql-ports@postgresql.org> to see about
1547 rectifying this. Include the above 'checking host system type...'
1549 *******************************************************************
1551 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $template" >&5
1559 echo "${ECHO_T}$template" >&6
1564 # Initialize default assumption that we do not need separate assembly code
1565 # for TAS (test-and-set). This can be overridden by the template file
1566 # when it's executed.
1573 ## Command line options
1577 # Installation directory for documentation
1583 # Check whether --with-docdir or --without-docdir was given.
1584 if test "${with_docdir+set}" = set; then
1585 withval="$with_docdir"
1589 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1590 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1591 { (exit 1); exit 1; }; }
1602 docdir='${prefix}/doc'
1609 # Add non-standard directories to the include path
1615 # Check whether --with-includes or --without-includes was given.
1616 if test "${with_includes+set}" = set; then
1617 withval="$with_includes"
1621 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1622 echo "$as_me: error: argument required for --with-includes option" >&2;}
1623 { (exit 1); exit 1; }; }
1626 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1627 echo "$as_me: error: argument required for --with-includes option" >&2;}
1628 { (exit 1); exit 1; }; }
1640 # Add non-standard directories to the library search path
1646 # Check whether --with-libraries or --without-libraries was given.
1647 if test "${with_libraries+set}" = set; then
1648 withval="$with_libraries"
1652 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1653 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1654 { (exit 1); exit 1; }; }
1657 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1658 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1659 { (exit 1); exit 1; }; }
1662 LIBRARY_DIRS=$withval
1673 # Check whether --with-libs or --without-libs was given.
1674 if test "${with_libs+set}" = set; then
1675 withval="$with_libs"
1679 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1680 echo "$as_me: error: argument required for --with-libs option" >&2;}
1681 { (exit 1); exit 1; }; }
1684 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1685 echo "$as_me: error: argument required for --with-libs option" >&2;}
1686 { (exit 1); exit 1; }; }
1689 LIBRARY_DIRS=$withval
1698 # 64-bit integer date/time storage (--enable-integer-datetimes)
1700 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1701 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1705 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1706 if test "${enable_integer_datetimes+set}" = set; then
1707 enableval="$enable_integer_datetimes"
1712 cat >>confdefs.h <<\_ACEOF
1713 #define USE_INTEGER_DATETIMES 1
1721 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1722 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1723 { (exit 1); exit 1; }; }
1728 enable_integer_datetimes=no
1732 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1733 echo "${ECHO_T}$enable_integer_datetimes" >&6
1739 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1740 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1744 # Check whether --enable-nls or --disable-nls was given.
1745 if test "${enable_nls+set}" = set; then
1746 enableval="$enable_nls"
1757 WANTED_LANGUAGES=$enableval
1766 if test "$enable_nls" = yes; then
1768 cat >>confdefs.h <<\_ACEOF
1769 #define ENABLE_NLS 1
1774 echo "$as_me:$LINENO: result: $enable_nls" >&5
1775 echo "${ECHO_T}$enable_nls" >&6
1780 # Default port number (--with-pgport), default 5432
1782 echo "$as_me:$LINENO: checking for default port number" >&5
1783 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1788 # Check whether --with-pgport or --without-pgport was given.
1789 if test "${with_pgport+set}" = set; then
1790 withval="$with_pgport"
1794 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1795 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1796 { (exit 1); exit 1; }; }
1799 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1800 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1801 { (exit 1); exit 1; }; }
1804 default_port=$withval
1812 echo "$as_me:$LINENO: result: $default_port" >&5
1813 echo "${ECHO_T}$default_port" >&6
1814 # Need both of these because some places want an integer and some a string
1816 cat >>confdefs.h <<_ACEOF
1817 #define DEF_PGPORT ${default_port}
1821 cat >>confdefs.h <<_ACEOF
1822 #define DEF_PGPORT_STR "${default_port}"
1828 # Option to disable shared libraries
1833 # Check whether --enable-shared or --disable-shared was given.
1834 if test "${enable_shared+set}" = set; then
1835 enableval="$enable_shared"
1845 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1846 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1847 { (exit 1); exit 1; }; }
1859 # '-rpath'-like feature can be disabled
1864 # Check whether --enable-rpath or --disable-rpath was given.
1865 if test "${enable_rpath+set}" = set; then
1866 enableval="$enable_rpath"
1876 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1877 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1878 { (exit 1); exit 1; }; }
1895 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1896 if test "${enable_spinlocks+set}" = set; then
1897 enableval="$enable_spinlocks"
1907 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1908 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1909 { (exit 1); exit 1; }; }
1914 enable_spinlocks=yes
1920 # --enable-debug adds -g to compiler flags
1925 # Check whether --enable-debug or --disable-debug was given.
1926 if test "${enable_debug+set}" = set; then
1927 enableval="$enable_debug"
1937 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1938 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1939 { (exit 1); exit 1; }; }
1956 # Check whether --enable-dtrace or --disable-dtrace was given.
1957 if test "${enable_dtrace+set}" = set; then
1958 enableval="$enable_dtrace"
1963 cat >>confdefs.h <<\_ACEOF
1964 #define ENABLE_DTRACE 1
1967 for ac_prog in dtrace
1969 # Extract the first word of "$ac_prog", so it can be a program name with args.
1970 set dummy $ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_DTRACE+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$DTRACE"; then
1977 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_DTRACE="$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 DTRACE=$ac_cv_prog_DTRACE
1996 if test -n "$DTRACE"; then
1997 echo "$as_me:$LINENO: result: $DTRACE" >&5
1998 echo "${ECHO_T}$DTRACE" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2004 test -n "$DTRACE" && break
2007 if test -z "$DTRACE"; then
2008 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2009 echo "$as_me: error: dtrace not found" >&2;}
2010 { (exit 1); exit 1; }; }
2018 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2019 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2020 { (exit 1); exit 1; }; }
2035 # For historical reasons you can also use --with-CC to specify the C compiler
2036 # to use, although the standard way to do this is to set the CC environment
2042 # Check whether --with-CC or --without-CC was given.
2043 if test "${with_CC+set}" = set; then
2048 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2049 echo "$as_me: error: argument required for --with-CC option" >&2;}
2050 { (exit 1); exit 1; }; }
2053 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2054 echo "$as_me: error: argument required for --with-CC option" >&2;}
2055 { (exit 1); exit 1; }; }
2066 aix) pgac_cc_list="gcc xlc";;
2067 irix) pgac_cc_list="cc";; # no gcc
2068 *) pgac_cc_list="gcc cc";;
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 if test -n "$ac_tool_prefix"; then
2077 for ac_prog in $pgac_cc_list
2079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$CC" && break
2117 if test -z "$CC"; then
2119 for ac_prog in $pgac_cc_list
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="$ac_prog"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2156 test -n "$ac_ct_CC" && break
2163 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: no acceptable C compiler found in \$PATH
2166 See \`config.log' for more details." >&2;}
2167 { (exit 1); exit 1; }; }
2169 # Provide some information about the compiler.
2170 echo "$as_me:$LINENO:" \
2171 "checking for C compiler version" >&5
2172 ac_compiler=`set X $ac_compile; echo $2`
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2174 (eval $ac_compiler --version </dev/null >&5) 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2179 (eval $ac_compiler -v </dev/null >&5) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2184 (eval $ac_compiler -V </dev/null >&5) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2204 ac_clean_files_save=$ac_clean_files
2205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2206 # Try to create an executable without -o first, disregard a.out.
2207 # It will help us diagnose broken compilers, and finding out an intuition
2209 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2210 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2213 (eval $ac_link_default) 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # Find the output, starting from the most likely. This scheme is
2218 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221 # Be careful to initialize this variable, since it used to be cached.
2222 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2224 # b.out is created by i960 compilers.
2225 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2227 test -f "$ac_file" || continue
2229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2232 # This is the source file.
2235 # We found the default executable, but exeext='' is most
2239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240 # FIXME: I believe we export ac_cv_exeext for Libtool,
2241 # but it would be cool to find out if it's true. Does anybody
2242 # maintain Libtool? --akim.
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257 { (exit 77); exit 77; }; }
2260 ac_exeext=$ac_cv_exeext
2261 echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6
2264 # Check the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2279 if test "$cross_compiling" = maybe; then
2282 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2292 echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check the compiler produces executables we can run. If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2301 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6
2304 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307 (eval $ac_link) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2312 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2313 # work properly (i.e., refer to `conftest.exe'), while it won't with
2315 for ac_file in conftest.exe conftest conftest.*; do
2316 test -f "$ac_file" || continue
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2319 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2333 rm -f conftest$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2335 echo "${ECHO_T}$ac_cv_exeext" >&6
2337 rm -f conftest.$ac_ext
2338 EXEEXT=$ac_cv_exeext
2340 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2342 if test "${ac_cv_objext+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2360 rm -f conftest.o conftest.obj
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2369 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2377 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387 echo "${ECHO_T}$ac_cv_objext" >&6
2388 OBJEXT=$ac_cv_objext
2390 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2391 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2446 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2447 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2448 GCC=`test $ac_compiler_gnu = yes && echo yes`
2449 ac_test_CFLAGS=${CFLAGS+set}
2450 ac_save_CFLAGS=$CFLAGS
2452 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2453 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cc_g+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>conftest.er1
2476 grep -v '^ *+' conftest.er1 >conftest.err
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -z "$ac_c_werror_flag"
2482 || test ! -s conftest.err'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2504 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2505 if test "$ac_test_CFLAGS" = set; then
2506 CFLAGS=$ac_save_CFLAGS
2507 elif test $ac_cv_prog_cc_g = yes; then
2508 if test "$GCC" = yes; then
2514 if test "$GCC" = yes; then
2520 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2521 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2522 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 ac_cv_prog_cc_stdc=no
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2535 #include <sys/types.h>
2536 #include <sys/stat.h>
2537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2538 struct buf { int x; };
2539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2540 static char *e (p, i)
2546 static char *f (char * (*g) (char **, int), char **p, ...)
2551 s = g (p, va_arg (v,int));
2556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2557 function prototypes and stuff, but not '\xHH' hex character constants.
2558 These don't provoke an error unfortunately, instead are silently treated
2559 as 'x'. The following induces an error, until -std1 is added to get
2560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2561 array size at least. It's necessary to write '\x00'==0 to get something
2562 that's true only with -std1. */
2563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2565 int test (int i, double x);
2566 struct s1 {int (*f) (int a);};
2567 struct s2 {int (*f) (double a);};
2568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2579 # Don't try gcc -ansi; that turns off useful extensions and
2580 # breaks some systems' header files.
2581 # AIX -qlanglvl=ansi
2582 # Ultrix and OSF/1 -std1
2583 # HP-UX 10.20 and later -Ae
2584 # HP-UX older versions -Aa -D_HPUX_SOURCE
2585 # SVR4 -Xc -D__EXTENSIONS__
2586 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2588 CC="$ac_save_CC $ac_arg"
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_c_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 ac_cv_prog_cc_stdc=$ac_arg
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2618 rm -f conftest.err conftest.$ac_objext
2620 rm -f conftest.$ac_ext conftest.$ac_objext
2625 case "x$ac_cv_prog_cc_stdc" in
2627 echo "$as_me:$LINENO: result: none needed" >&5
2628 echo "${ECHO_T}none needed" >&6 ;;
2630 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2631 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2632 CC="$CC $ac_cv_prog_cc_stdc" ;;
2635 # Some people use a C++ compiler to compile C. Since we use `exit',
2636 # in C++ we need to declare it. In case someone uses the same compiler
2637 # for both compiling C and C++ we need to have the C++ compiler decide
2638 # the declaration of exit, since it's the most demanding environment.
2639 cat >conftest.$ac_ext <<_ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 for ac_declaration in \
2668 'extern "C" void std::exit (int) throw (); using std::exit;' \
2669 'extern "C" void std::exit (int); using std::exit;' \
2670 'extern "C" void exit (int) throw ();' \
2671 'extern "C" void exit (int);' \
2674 cat >conftest.$ac_ext <<_ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag"
2700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2739 grep -v '^ *+' conftest.er1 >conftest.err
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag"
2745 || test ! -s conftest.err'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2759 echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 if test -n "$ac_declaration"; then
2767 echo '#ifdef __cplusplus' >>confdefs.h
2768 echo $ac_declaration >>confdefs.h
2769 echo '#endif' >>confdefs.h
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 . "$srcdir/src/template/$template" || exit
2792 # CFLAGS are selected so:
2793 # If the user specifies something in the environment, that is used.
2794 # else: If the template file set something, that is used.
2795 # else: If the compiler is GCC, then we use -O2.
2796 # else: If the compiler is something else, then we use -0.
2798 if test "$ac_env_CFLAGS_set" = set; then
2799 CFLAGS=$ac_env_CFLAGS_value
2800 elif test "${CFLAGS+set}" = set; then
2801 : # (keep what template set)
2802 elif test "$GCC" = yes; then
2805 # if the user selected debug mode, don't use -O
2806 if test "$enable_debug" != yes; then
2811 # Some versions of GCC support some additional useful warning flags.
2812 # Check whether they are supported, and add them to CFLAGS if so.
2814 if test "$GCC" = yes; then
2816 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2817 # So we have to check if "GCC" is really ICC.
2819 cat >conftest.$ac_ext <<_ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2829 #ifndef __INTEL_COMPILER
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -z "$ac_c_werror_flag"
2846 || test ! -s conftest.err'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867 if test "$ICC" = no; then
2868 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2870 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2871 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2872 pgac_save_CFLAGS=$CFLAGS
2873 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2889 rm -f conftest.$ac_objext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891 (eval $ac_compile) 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } &&
2898 { ac_try='test -z "$ac_c_werror_flag"
2899 || test ! -s conftest.err'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; } &&
2905 { ac_try='test -s conftest.$ac_objext'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2911 echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 CFLAGS="$pgac_save_CFLAGS"
2918 echo "$as_me:$LINENO: result: no" >&5
2919 echo "${ECHO_T}no" >&6
2921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2923 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2924 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2925 pgac_save_CFLAGS=$CFLAGS
2926 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag"
2952 || test ! -s conftest.err'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 CFLAGS="$pgac_save_CFLAGS"
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 # Intel compiler has a bug/misoptimization in checking for
2978 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
2980 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
2981 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
2982 pgac_save_CFLAGS=$CFLAGS
2983 CFLAGS="$pgac_save_CFLAGS -mp1"
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3001 (eval $ac_compile) 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag"
3009 || test ! -s conftest.err'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3021 echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 CFLAGS="$pgac_save_CFLAGS"
3028 echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6
3031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035 # Disable strict-aliasing rules; needed for gcc 3.3+
3036 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3037 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3038 pgac_save_CFLAGS=$CFLAGS
3039 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -z "$ac_c_werror_flag"
3065 || test ! -s conftest.err'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 CFLAGS="$pgac_save_CFLAGS"
3084 echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3089 elif test x"${CC}" = x"xlc"; then
3090 # AIX xlc has to have strict aliasing turned off too
3091 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3092 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3093 pgac_save_CFLAGS=$CFLAGS
3094 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112 (eval $ac_compile) 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } &&
3119 { ac_try='test -z "$ac_c_werror_flag"
3120 || test ! -s conftest.err'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; } &&
3126 { ac_try='test -s conftest.$ac_objext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 CFLAGS="$pgac_save_CFLAGS"
3139 echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6
3142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146 # supply -g if --enable-debug
3147 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3151 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3152 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3154 # We already have this in Makefile.win32, but configure needs it too
3155 if test "$PORTNAME" = "win32"; then
3156 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3159 # Check if the compiler still works with the template settings
3160 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3161 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag"
3187 || test ! -s conftest.err'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; } &&
3193 { ac_try='test -s conftest$ac_exeext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3208 echo "$as_me: error: cannot proceed" >&2;}
3209 { (exit 1); exit 1; }; }
3211 rm -f conftest.err conftest.$ac_objext \
3212 conftest$ac_exeext conftest.$ac_ext
3214 # Defend against gcc -ffast-math
3215 if test "$GCC" = yes; then
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3226 #ifdef __FAST_MATH__
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3261 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3262 { (exit 1); exit 1; }; }
3264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3273 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3274 # On Suns, sometimes $CPP names a directory.
3275 if test -n "$CPP" && test -d "$CPP"; then
3278 if test -z "$CPP"; then
3279 if test "${ac_cv_prog_CPP+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 # Double quotes because CPP needs to be expanded
3283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3286 for ac_c_preproc_warn_flag in '' yes
3288 # Use a header file that comes with gcc, so configuring glibc
3289 # with a fresh cross-compiler works.
3290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3291 # <limits.h> exists even on freestanding compilers.
3292 # On the NeXT, cc -E runs the code through the compiler's parser,
3293 # not just through cpp. "Syntax error" is here to catch this case.
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3301 # include <limits.h>
3303 # include <assert.h>
3307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324 if test -z "$ac_cpp_err"; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 # Broken: fails on valid input.
3333 rm -f conftest.err conftest.$ac_ext
3335 # OK, works on sane cases. Now check whether non-existent headers
3336 # can be detected and how.
3337 cat >conftest.$ac_ext <<_ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 #include <ac_nonexistent.h>
3345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null; then
3353 if test -s conftest.err; then
3354 ac_cpp_err=$ac_c_preproc_warn_flag
3355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 if test -z "$ac_cpp_err"; then
3363 # Broken: success on invalid input.
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 # Passes both tests.
3373 rm -f conftest.err conftest.$ac_ext
3376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3377 rm -f conftest.err conftest.$ac_ext
3378 if $ac_preproc_ok; then
3390 echo "$as_me:$LINENO: result: $CPP" >&5
3391 echo "${ECHO_T}$CPP" >&6
3393 for ac_c_preproc_warn_flag in '' yes
3395 # Use a header file that comes with gcc, so configuring glibc
3396 # with a fresh cross-compiler works.
3397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 # <limits.h> exists even on freestanding compilers.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp. "Syntax error" is here to catch this case.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3408 # include <limits.h>
3410 # include <assert.h>
3414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Broken: fails on valid input.
3440 rm -f conftest.err conftest.$ac_ext
3442 # OK, works on sane cases. Now check whether non-existent headers
3443 # can be detected and how.
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <ac_nonexistent.h>
3452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1 >conftest.err
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } >/dev/null; then
3460 if test -s conftest.err; then
3461 ac_cpp_err=$ac_c_preproc_warn_flag
3462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3469 if test -z "$ac_cpp_err"; then
3470 # Broken: success on invalid input.
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 # Passes both tests.
3480 rm -f conftest.err conftest.$ac_ext
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then
3488 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&5
3490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3491 See \`config.log' for more details." >&2;}
3492 { (exit 1); exit 1; }; }
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 # Create compiler version string
3504 if test x"$GCC" = x"yes" ; then
3505 cc_string="GCC `${CC} --version | sed q`"
3510 cat >>confdefs.h <<_ACEOF
3511 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3517 # Set up TAS assembly code if needed; the template file has now had its
3518 # chance to request this.
3520 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3523 if test "$need_tas" = yes ; then
3532 # Automatic dependency tracking
3537 # Check whether --enable-depend or --disable-depend was given.
3538 if test "${enable_depend+set}" = set; then
3539 enableval="$enable_depend"
3549 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3550 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3551 { (exit 1); exit 1; }; }
3564 # Enable assert checks
3569 # Check whether --enable-cassert or --disable-cassert was given.
3570 if test "${enable_cassert+set}" = set; then
3571 enableval="$enable_cassert"
3576 cat >>confdefs.h <<\_ACEOF
3577 #define USE_ASSERT_CHECKING 1
3585 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3586 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3587 { (exit 1); exit 1; }; }
3599 # Include directories
3602 IFS="${IFS}${PATH_SEPARATOR}"
3603 # SRCH_INC comes from the template file
3604 for dir in $with_includes $SRCH_INC; do
3605 if test -d "$dir"; then
3606 INCLUDES="$INCLUDES -I$dir"
3608 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3609 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3617 # Library directories
3620 IFS="${IFS}${PATH_SEPARATOR}"
3621 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3622 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3623 if test -d "$dir"; then
3624 LIBDIRS="$LIBDIRS -L$dir"
3626 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3627 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3633 # Enable thread-safe client libraries
3635 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3636 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3640 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3641 if test "${enable_thread_safety+set}" = set; then
3642 enableval="$enable_thread_safety"
3652 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3653 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3654 { (exit 1); exit 1; }; }
3659 enable_thread_safety=no
3666 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3667 if test "${enable_thread_safety_force+set}" = set; then
3668 enableval="$enable_thread_safety_force"
3678 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3679 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3680 { (exit 1); exit 1; }; }
3685 enable_thread_safety_force=no
3689 if test "$enable_thread_safety" = yes -o \
3690 "$enable_thread_safety_force" = yes; then
3691 enable_thread_safety="yes" # for 'force'
3693 cat >>confdefs.h <<\_ACEOF
3694 #define ENABLE_THREAD_SAFETY 1
3698 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3699 echo "${ECHO_T}$enable_thread_safety" >&6
3703 # Optionally build Tcl modules (PL/Tcl)
3705 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3706 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3711 # Check whether --with-tcl or --without-tcl was given.
3712 if test "${with_tcl+set}" = set; then
3723 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3724 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3725 { (exit 1); exit 1; }; }
3734 echo "$as_me:$LINENO: result: $with_tcl" >&5
3735 echo "${ECHO_T}$with_tcl" >&6
3738 # We see if the path to the Tcl/Tk configuration scripts is specified.
3739 # This will override the use of tclsh to find the paths to search.
3745 # Check whether --with-tclconfig or --without-tclconfig was given.
3746 if test "${with_tclconfig+set}" = set; then
3747 withval="$with_tclconfig"
3751 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3752 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3753 { (exit 1); exit 1; }; }
3756 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3757 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3758 { (exit 1); exit 1; }; }
3769 # Optionally build Perl modules (PL/Perl)
3771 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3772 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3777 # Check whether --with-perl or --without-perl was given.
3778 if test "${with_perl+set}" = set; then
3779 withval="$with_perl"
3789 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3790 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3791 { (exit 1); exit 1; }; }
3800 echo "$as_me:$LINENO: result: $with_perl" >&5
3801 echo "${ECHO_T}$with_perl" >&6
3805 # Optionally build Python modules (PL/Python)
3807 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3808 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3813 # Check whether --with-python or --without-python was given.
3814 if test "${with_python+set}" = set; then
3815 withval="$with_python"
3825 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3826 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3827 { (exit 1); exit 1; }; }
3836 echo "$as_me:$LINENO: result: $with_python" >&5
3837 echo "${ECHO_T}$with_python" >&6
3843 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3844 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3849 # Check whether --with-krb5 or --without-krb5 was given.
3850 if test "${with_krb5+set}" = set; then
3851 withval="$with_krb5"
3857 cat >>confdefs.h <<\_ACEOF
3861 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3868 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3869 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3870 { (exit 1); exit 1; }; }
3879 echo "$as_me:$LINENO: result: $with_krb5" >&5
3880 echo "${ECHO_T}$with_krb5" >&6
3888 # Kerberos configuration parameters
3894 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3895 if test "${with_krb_srvnam+set}" = set; then
3896 withval="$with_krb_srvnam"
3900 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3901 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3902 { (exit 1); exit 1; }; }
3905 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3906 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3907 { (exit 1); exit 1; }; }
3915 with_krb_srvnam="postgres"
3919 cat >>confdefs.h <<_ACEOF
3920 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3928 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3929 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3934 # Check whether --with-pam or --without-pam was given.
3935 if test "${with_pam+set}" = set; then
3941 cat >>confdefs.h <<\_ACEOF
3950 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3951 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3952 { (exit 1); exit 1; }; }
3961 echo "$as_me:$LINENO: result: $with_pam" >&5
3962 echo "${ECHO_T}$with_pam" >&6
3969 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
3970 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
3975 # Check whether --with-ldap or --without-ldap was given.
3976 if test "${with_ldap+set}" = set; then
3977 withval="$with_ldap"
3982 cat >>confdefs.h <<\_ACEOF
3991 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
3992 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
3993 { (exit 1); exit 1; }; }
4002 echo "$as_me:$LINENO: result: $with_ldap" >&5
4003 echo "${ECHO_T}$with_ldap" >&6
4010 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4011 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4016 # Check whether --with-bonjour or --without-bonjour was given.
4017 if test "${with_bonjour+set}" = set; then
4018 withval="$with_bonjour"
4023 cat >>confdefs.h <<\_ACEOF
4024 #define USE_BONJOUR 1
4032 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4033 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4034 { (exit 1); exit 1; }; }
4043 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4044 echo "${ECHO_T}$with_bonjour" >&6
4051 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4052 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4057 # Check whether --with-openssl or --without-openssl was given.
4058 if test "${with_openssl+set}" = set; then
4059 withval="$with_openssl"
4064 cat >>confdefs.h <<\_ACEOF
4073 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4074 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4075 { (exit 1); exit 1; }; }
4084 echo "$as_me:$LINENO: result: $with_openssl" >&5
4085 echo "${ECHO_T}$with_openssl" >&6
4096 # Check whether --with-readline or --without-readline was given.
4097 if test "${with_readline+set}" = set; then
4098 withval="$with_readline"
4108 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4109 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4110 { (exit 1); exit 1; }; }
4119 # readline on MinGW has problems with backslashes in psql and other bugs.
4120 # This is particularly a problem with non-US code pages.
4121 # Therefore disable its use until we understand the cause. 2004-07-20
4122 if test "$PORTNAME" = "win32"; then
4123 if test "$with_readline" = yes; then
4124 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4125 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4138 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4139 if test "${with_libedit_preferred+set}" = set; then
4140 withval="$with_libedit_preferred"
4150 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4151 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4152 { (exit 1); exit 1; }; }
4157 with_libedit_preferred=no
4170 # Check whether --with-zlib or --without-zlib was given.
4171 if test "${with_zlib+set}" = set; then
4172 withval="$with_zlib"
4182 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4183 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4184 { (exit 1); exit 1; }; }
4199 # Assume system is ELF if it predefines __ELF__ as 1,
4200 # otherwise believe host_os based default.
4202 freebsd1*|freebsd2*) elf=no;;
4203 freebsd3*|freebsd4*) elf=yes;;
4207 echo "$as_me:$LINENO: checking for egrep" >&5
4208 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4209 if test "${ac_cv_prog_egrep+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4213 then ac_cv_prog_egrep='grep -E'
4214 else ac_cv_prog_egrep='egrep'
4217 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4218 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4219 EGREP=$ac_cv_prog_egrep
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4234 $EGREP "yes" >/dev/null 2>&1; then
4237 if test "X$elf" = "Xyes" ; then
4251 CPPFLAGS="$CPPFLAGS $INCLUDES"
4252 LDFLAGS="$LDFLAGS $LIBDIRS"
4254 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4255 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4256 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4257 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4261 for ac_prog in gawk mawk nawk awk
4263 # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267 if test "${ac_cv_prog_AWK+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 if test -n "$AWK"; then
4271 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_AWK="$ac_prog"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 if test -n "$AWK"; then
4291 echo "$as_me:$LINENO: result: $AWK" >&5
4292 echo "${ECHO_T}$AWK" >&6
4294 echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4298 test -n "$AWK" && break
4301 echo "$as_me:$LINENO: checking for flex" >&5
4302 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4303 if test "${pgac_cv_path_flex+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 # Let the user override the test
4307 if test -n "$FLEX"; then
4308 pgac_cv_path_flex=$FLEX
4312 for pgac_dir in $PATH; do
4314 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4317 for pgac_prog in flex lex; do
4318 pgac_candidate="$pgac_dir/$pgac_prog"
4319 if test -f "$pgac_candidate" \
4320 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4322 echo '%%' > conftest.l
4323 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4324 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4325 pgac_broken_flex=$pgac_candidate
4329 pgac_cv_path_flex=$pgac_candidate
4335 rm -f conftest.l lex.yy.c
4336 : ${pgac_cv_path_flex=no}
4340 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4341 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4342 if test x"$pgac_cv_path_flex" = x"no"; then
4343 if test -n "$pgac_broken_flex"; then
4344 { echo "$as_me:$LINENO: WARNING:
4345 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4346 *** should get version 2.5.4 or later." >&5
4347 echo "$as_me: WARNING:
4348 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4349 *** should get version 2.5.4 or later." >&2;}
4352 { echo "$as_me:$LINENO: WARNING:
4353 *** Without Flex you will not be able to build PostgreSQL from CVS or
4354 *** change any of the scanner definition files. You can obtain Flex from
4355 *** a GNU mirror site. (If you are using the official distribution of
4356 *** PostgreSQL then you do not need to worry about this because the Flex
4357 *** output is pre-generated.)" >&5
4358 echo "$as_me: WARNING:
4359 *** Without Flex you will not be able to build PostgreSQL from CVS or
4360 *** change any of the scanner definition files. You can obtain Flex from
4361 *** a GNU mirror site. (If you are using the official distribution of
4362 *** PostgreSQL then you do not need to worry about this because the Flex
4363 *** output is pre-generated.)" >&2;}
4366 if test x"$pgac_cv_path_flex" = x"no"; then
4369 FLEX=$pgac_cv_path_flex
4375 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4376 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4378 if test "$LN_S" = "ln -s"; then
4379 echo "$as_me:$LINENO: result: yes" >&5
4380 echo "${ECHO_T}yes" >&6
4382 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4383 echo "${ECHO_T}no, using $LN_S" >&6
4387 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4388 if test "${with_gnu_ld+set}" = set; then
4389 withval="$with_gnu_ld"
4390 test "$withval" = no || with_gnu_ld=yes
4395 if test "$GCC" = yes; then
4396 # Check if gcc -print-prog-name=ld gives a path.
4397 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4398 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4401 # gcc leaves a trailing carriage return which upsets mingw
4402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4407 # Accept absolute paths.
4408 [\\/]* | [A-Za-z]:[\\/]*)
4409 re_direlt='/[^/][^/]*/\.\./'
4410 # Canonicalize the path of ld
4411 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4412 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4413 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4415 test -z "$LD" && LD="$ac_prog"
4418 # If it fails, then pretend we aren't using GCC.
4422 # If it is relative, then search for the first ld in PATH.
4426 elif test "$with_gnu_ld" = yes; then
4427 echo "$as_me:$LINENO: checking for GNU ld" >&5
4428 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4430 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4431 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4433 if test "${ac_cv_path_LD+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test -z "$LD"; then
4437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4438 for ac_dir in $PATH; do
4439 test -z "$ac_dir" && ac_dir=.
4440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4441 ac_cv_path_LD="$ac_dir/$ac_prog"
4442 # Check to see if the program is GNU ld. I'd rather use --version,
4443 # but apparently some GNU ld's only accept -v.
4444 # Break only if it was the GNU/non-GNU ld that we prefer.
4445 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4446 test "$with_gnu_ld" != no && break
4448 test "$with_gnu_ld" != yes && break
4454 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4459 if test -n "$LD"; then
4460 echo "$as_me:$LINENO: result: $LD" >&5
4461 echo "${ECHO_T}$LD" >&6
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4466 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4467 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4468 { (exit 1); exit 1; }; }
4469 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4470 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4471 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4475 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4476 ac_cv_prog_gnu_ld=yes
4478 ac_cv_prog_gnu_ld=no
4481 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4482 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4483 with_gnu_ld=$ac_cv_prog_gnu_ld
4488 case $host_os in sysv5*)
4489 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4490 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4491 if test "${pgac_cv_prog_ld_R+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4511 rm -f conftest.$ac_objext conftest$ac_exeext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>conftest.er1
4515 grep -v '^ *+' conftest.er1 >conftest.err
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest$ac_exeext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 pgac_cv_prog_ld_R=yes
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 pgac_cv_prog_ld_R=no
4540 rm -f conftest.err conftest.$ac_objext \
4541 conftest$ac_exeext conftest.$ac_ext
4542 LDFLAGS=$pgac_save_LDFLAGS
4545 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4546 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4547 ld_R_works=$pgac_cv_prog_ld_R
4550 if test -n "$ac_tool_prefix"; then
4551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4552 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_prog_RANLIB+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test -n "$RANLIB"; then
4559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 RANLIB=$ac_cv_prog_RANLIB
4578 if test -n "$RANLIB"; then
4579 echo "$as_me:$LINENO: result: $RANLIB" >&5
4580 echo "${ECHO_T}$RANLIB" >&6
4582 echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4587 if test -z "$ac_cv_prog_RANLIB"; then
4588 ac_ct_RANLIB=$RANLIB
4589 # Extract the first word of "ranlib", so it can be a program name with args.
4590 set dummy ranlib; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$ac_ct_RANLIB"; then
4597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_ac_ct_RANLIB="ranlib"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4617 if test -n "$ac_ct_RANLIB"; then
4618 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4619 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4621 echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4625 RANLIB=$ac_ct_RANLIB
4627 RANLIB="$ac_cv_prog_RANLIB"
4630 # Extract the first word of "tar", so it can be a program name with args.
4631 set dummy tar; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_path_TAR+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 if test -n "$TAR"; then
4662 echo "$as_me:$LINENO: result: $TAR" >&5
4663 echo "${ECHO_T}$TAR" >&6
4665 echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}strip; ac_word=$2
4673 echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675 if test "${ac_cv_prog_STRIP+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 if test -n "$STRIP"; then
4679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 STRIP=$ac_cv_prog_STRIP
4698 if test -n "$STRIP"; then
4699 echo "$as_me:$LINENO: result: $STRIP" >&5
4700 echo "${ECHO_T}$STRIP" >&6
4702 echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4707 if test -z "$ac_cv_prog_STRIP"; then
4709 # Extract the first word of "strip", so it can be a program name with args.
4710 set dummy strip; ac_word=$2
4711 echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 if test -n "$ac_ct_STRIP"; then
4717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_ac_ct_STRIP="strip"
4727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4737 if test -n "$ac_ct_STRIP"; then
4738 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4739 echo "${ECHO_T}$ac_ct_STRIP" >&6
4741 echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6
4747 STRIP="$ac_cv_prog_STRIP"
4751 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4752 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4753 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4754 STRIP_STATIC_LIB="$STRIP -x"
4755 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4756 echo "$as_me:$LINENO: result: yes" >&5
4757 echo "${ECHO_T}yes" >&6
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4768 if test -z "$YACC"; then
4769 for ac_prog in 'bison -y'
4771 # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4775 if test "${ac_cv_prog_YACC+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 if test -n "$YACC"; then
4779 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788 ac_cv_prog_YACC="$ac_prog"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 YACC=$ac_cv_prog_YACC
4798 if test -n "$YACC"; then
4799 echo "$as_me:$LINENO: result: $YACC" >&5
4800 echo "${ECHO_T}$YACC" >&6
4802 echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4806 test -n "$YACC" && break
4810 if test "$YACC"; then
4811 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4812 { echo "$as_me:$LINENO: WARNING:
4813 *** The installed version of Bison is too old to use with PostgreSQL.
4814 *** Bison version 1.875 or later is required." >&5
4815 echo "$as_me: WARNING:
4816 *** The installed version of Bison is too old to use with PostgreSQL.
4817 *** Bison version 1.875 or later is required." >&2;}
4822 if test -z "$YACC"; then
4823 { echo "$as_me:$LINENO: WARNING:
4824 *** Without Bison you will not be able to build PostgreSQL from CVS nor
4825 *** change any of the parser definition files. You can obtain Bison from
4826 *** a GNU mirror site. (If you are using the official distribution of
4827 *** PostgreSQL then you do not need to worry about this, because the Bison
4828 *** output is pre-generated.) To use a different yacc program (possible,
4829 *** but not recommended), set the environment variable YACC before running
4830 *** 'configure'." >&5
4831 echo "$as_me: WARNING:
4832 *** Without Bison you will not be able to build PostgreSQL from CVS nor
4833 *** change any of the parser definition files. You can obtain Bison from
4834 *** a GNU mirror site. (If you are using the official distribution of
4835 *** PostgreSQL then you do not need to worry about this, because the Bison
4836 *** output is pre-generated.) To use a different yacc program (possible,
4837 *** but not recommended), set the environment variable YACC before running
4838 *** 'configure'." >&2;}
4843 # Extract the first word of "perl", so it can be a program name with args.
4844 set dummy perl; ac_word=$2
4845 echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847 if test "${ac_cv_path_PERL+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 PERL=$ac_cv_path_PERL
4874 if test -n "$PERL"; then
4875 echo "$as_me:$LINENO: result: $PERL" >&5
4876 echo "${ECHO_T}$PERL" >&6
4878 echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4882 if test "$with_perl" = yes; then
4884 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4885 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4886 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4887 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4888 echo "${ECHO_T}$perl_archlibexp" >&6
4889 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4890 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4891 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4892 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4893 echo "${ECHO_T}$perl_privlibexp" >&6
4894 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4895 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4896 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4897 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4898 echo "${ECHO_T}$perl_useshrplib" >&6
4900 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4901 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4902 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4903 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4904 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4905 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4906 echo "${ECHO_T}$perl_embed_ldflags" >&6
4909 if test "$with_python" = yes; then
4910 # Extract the first word of "python", so it can be a program name with args.
4911 set dummy python; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_path_PYTHON+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 PYTHON=$ac_cv_path_PYTHON
4941 if test -n "$PYTHON"; then
4942 echo "$as_me:$LINENO: result: $PYTHON" >&5
4943 echo "${ECHO_T}$PYTHON" >&6
4945 echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6
4949 if test x"$PYTHON" = x""; then
4950 { { echo "$as_me:$LINENO: error: Python not found" >&5
4951 echo "$as_me: error: Python not found" >&2;}
4952 { (exit 1); exit 1; }; }
4956 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4957 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4958 if "${PYTHON}" 2>&- -c 'import distutils'
4960 echo "$as_me:$LINENO: result: yes" >&5
4961 echo "${ECHO_T}yes" >&6
4963 echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6
4965 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4966 echo "$as_me: error: distutils module not found" >&2;}
4967 { (exit 1); exit 1; }; }
4969 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4970 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4971 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4972 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')"`
4973 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4975 # This should be enough of a message.
4976 echo "$as_me:$LINENO: result: $python_configdir" >&5
4977 echo "${ECHO_T}$python_configdir" >&6
4980 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4981 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4983 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4984 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4985 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4986 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4988 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4990 # New way: use the official shared library
4991 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4992 python_libspec="-L${python_libdir} -l${ldlibrary}"
4994 # Old way: use libpython from python_configdir
4995 python_libdir="${python_configdir}"
4996 python_libspec="-L${python_libdir} -lpython${python_version}"
4999 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5001 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5002 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5005 # threaded python is not supported on bsd's
5006 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5007 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5008 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5009 if test "$pythreads" = "1"; then
5010 echo "$as_me:$LINENO: result: yes" >&5
5011 echo "${ECHO_T}yes" >&6
5014 { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
5015 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
5016 { (exit 1); exit 1; }; }
5020 echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6
5027 # Supply a numeric version string for use by 3rd party add-ons
5028 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5029 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
5031 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
5033 cat >>confdefs.h <<_ACEOF
5034 #define PG_VERSION_NUM $PG_VERSION_NUM
5042 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5043 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5044 if test "${ac_cv_search_setproctitle+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 ac_func_search_save_LIBS=$LIBS
5048 ac_cv_search_setproctitle=no
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5056 /* Override any gcc2 internal prototype to avoid an error. */
5060 /* We use char because int might match the return type of a gcc2
5061 builtin and then its argument prototype would still apply. */
5062 char setproctitle ();
5071 rm -f conftest.$ac_objext conftest$ac_exeext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073 (eval $ac_link) 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -z "$ac_c_werror_flag"
5081 || test ! -s conftest.err'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; } &&
5087 { ac_try='test -s conftest$ac_exeext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_cv_search_setproctitle="none required"
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5099 rm -f conftest.err conftest.$ac_objext \
5100 conftest$ac_exeext conftest.$ac_ext
5101 if test "$ac_cv_search_setproctitle" = no; then
5102 for ac_lib in util; do
5103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5104 cat >conftest.$ac_ext <<_ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5111 /* Override any gcc2 internal prototype to avoid an error. */
5115 /* We use char because int might match the return type of a gcc2
5116 builtin and then its argument prototype would still apply. */
5117 char setproctitle ();
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_search_setproctitle="-l$ac_lib"
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5155 rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_func_search_save_LIBS
5161 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5162 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5163 if test "$ac_cv_search_setproctitle" != no; then
5164 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5168 echo "$as_me:$LINENO: checking for library containing pow" >&5
5169 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
5170 if test "${ac_cv_search_pow+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 ac_func_search_save_LIBS=$LIBS
5175 cat >conftest.$ac_ext <<_ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5182 /* Override any gcc2 internal prototype to avoid an error. */
5186 /* We use char because int might match the return type of a gcc2
5187 builtin and then its argument prototype would still apply. */
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } &&
5206 { ac_try='test -z "$ac_c_werror_flag"
5207 || test ! -s conftest.err'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; } &&
5213 { ac_try='test -s conftest$ac_exeext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5219 ac_cv_search_pow="none required"
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5225 rm -f conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5227 if test "$ac_cv_search_pow" = no; then
5229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5237 /* Override any gcc2 internal prototype to avoid an error. */
5241 /* We use char because int might match the return type of a gcc2
5242 builtin and then its argument prototype would still apply. */
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_c_werror_flag"
5262 || test ! -s conftest.err'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; } &&
5268 { ac_try='test -s conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 ac_cv_search_pow="-l$ac_lib"
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5281 rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5285 LIBS=$ac_func_search_save_LIBS
5287 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5288 echo "${ECHO_T}$ac_cv_search_pow" >&6
5289 if test "$ac_cv_search_pow" != no; then
5290 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5294 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5295 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5296 if test "${ac_cv_search_dlopen+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 ac_func_search_save_LIBS=$LIBS
5300 ac_cv_search_dlopen=no
5301 cat >conftest.$ac_ext <<_ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h. */
5308 /* Override any gcc2 internal prototype to avoid an error. */
5312 /* We use char because int might match the return type of a gcc2
5313 builtin and then its argument prototype would still apply. */
5323 rm -f conftest.$ac_objext conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325 (eval $ac_link) 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -z "$ac_c_werror_flag"
5333 || test ! -s conftest.err'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; } &&
5339 { ac_try='test -s conftest$ac_exeext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 ac_cv_search_dlopen="none required"
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5351 rm -f conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 if test "$ac_cv_search_dlopen" = no; then
5354 for ac_lib in dl; do
5355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5356 cat >conftest.$ac_ext <<_ACEOF
5359 cat confdefs.h >>conftest.$ac_ext
5360 cat >>conftest.$ac_ext <<_ACEOF
5361 /* end confdefs.h. */
5363 /* Override any gcc2 internal prototype to avoid an error. */
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest$ac_exeext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_cv_search_dlopen="-l$ac_lib"
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5407 rm -f conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_func_search_save_LIBS
5413 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5414 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5415 if test "$ac_cv_search_dlopen" != no; then
5416 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5420 echo "$as_me:$LINENO: checking for library containing socket" >&5
5421 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5422 if test "${ac_cv_search_socket+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 ac_func_search_save_LIBS=$LIBS
5426 ac_cv_search_socket=no
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5434 /* Override any gcc2 internal prototype to avoid an error. */
5438 /* We use char because int might match the return type of a gcc2
5439 builtin and then its argument prototype would still apply. */
5449 rm -f conftest.$ac_objext conftest$ac_exeext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5451 (eval $ac_link) 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest$ac_exeext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_search_socket="none required"
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5477 rm -f conftest.err conftest.$ac_objext \
5478 conftest$ac_exeext conftest.$ac_ext
5479 if test "$ac_cv_search_socket" = no; then
5480 for ac_lib in socket wsock32; do
5481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5489 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5504 rm -f conftest.$ac_objext conftest$ac_exeext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -z "$ac_c_werror_flag"
5514 || test ! -s conftest.err'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; } &&
5520 { ac_try='test -s conftest$ac_exeext'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5526 ac_cv_search_socket="-l$ac_lib"
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5533 rm -f conftest.err conftest.$ac_objext \
5534 conftest$ac_exeext conftest.$ac_ext
5537 LIBS=$ac_func_search_save_LIBS
5539 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5540 echo "${ECHO_T}$ac_cv_search_socket" >&6
5541 if test "$ac_cv_search_socket" != no; then
5542 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5546 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5547 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5548 if test "${ac_cv_search_shl_load+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 ac_func_search_save_LIBS=$LIBS
5552 ac_cv_search_shl_load=no
5553 cat >conftest.$ac_ext <<_ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5560 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5575 rm -f conftest.$ac_objext conftest$ac_exeext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5577 (eval $ac_link) 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -z "$ac_c_werror_flag"
5585 || test ! -s conftest.err'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; } &&
5591 { ac_try='test -s conftest$ac_exeext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_search_shl_load="none required"
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5603 rm -f conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605 if test "$ac_cv_search_shl_load" = no; then
5606 for ac_lib in dld; do
5607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5608 cat >conftest.$ac_ext <<_ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5615 /* Override any gcc2 internal prototype to avoid an error. */
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5630 rm -f conftest.$ac_objext conftest$ac_exeext
5631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5634 grep -v '^ *+' conftest.er1 >conftest.err
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_search_shl_load="-l$ac_lib"
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5659 rm -f conftest.err conftest.$ac_objext \
5660 conftest$ac_exeext conftest.$ac_ext
5663 LIBS=$ac_func_search_save_LIBS
5665 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5666 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5667 if test "$ac_cv_search_shl_load" != no; then
5668 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5672 # We only use libld in port/dynloader/aix.c
5675 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5676 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5677 if test "${ac_cv_search_ldopen+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 ac_func_search_save_LIBS=$LIBS
5681 ac_cv_search_ldopen=no
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5689 /* Override any gcc2 internal prototype to avoid an error. */
5693 /* We use char because int might match the return type of a gcc2
5694 builtin and then its argument prototype would still apply. */
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706 (eval $ac_link) 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_search_ldopen="none required"
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5732 rm -f conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734 if test "$ac_cv_search_ldopen" = no; then
5735 for ac_lib in ld; do
5736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5744 /* Override any gcc2 internal prototype to avoid an error. */
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5759 rm -f conftest.$ac_objext conftest$ac_exeext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5761 (eval $ac_link) 2>conftest.er1
5763 grep -v '^ *+' conftest.er1 >conftest.err
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest$ac_exeext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_search_ldopen="-l$ac_lib"
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5788 rm -f conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5792 LIBS=$ac_func_search_save_LIBS
5794 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5795 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5796 if test "$ac_cv_search_ldopen" != no; then
5797 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5803 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5804 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5805 if test "${ac_cv_search_getopt_long+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 ac_func_search_save_LIBS=$LIBS
5809 ac_cv_search_getopt_long=no
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. */
5823 char getopt_long ();
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_getopt_long="none required"
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5860 rm -f conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
5862 if test "$ac_cv_search_getopt_long" = no; then
5863 for ac_lib in getopt gnugetopt; do
5864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5872 /* Override any gcc2 internal prototype to avoid an error. */
5876 /* We use char because int might match the return type of a gcc2
5877 builtin and then its argument prototype would still apply. */
5878 char getopt_long ();
5887 rm -f conftest.$ac_objext conftest$ac_exeext
5888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5889 (eval $ac_link) 2>conftest.er1
5891 grep -v '^ *+' conftest.er1 >conftest.err
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag"
5897 || test ! -s conftest.err'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; } &&
5903 { ac_try='test -s conftest$ac_exeext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_cv_search_getopt_long="-l$ac_lib"
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5916 rm -f conftest.err conftest.$ac_objext \
5917 conftest$ac_exeext conftest.$ac_ext
5920 LIBS=$ac_func_search_save_LIBS
5922 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5923 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5924 if test "$ac_cv_search_getopt_long" != no; then
5925 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5929 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5930 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5931 if test "${ac_cv_search_crypt+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 ac_func_search_save_LIBS=$LIBS
5935 ac_cv_search_crypt=no
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_crypt="none required"
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5986 rm -f conftest.err conftest.$ac_objext \
5987 conftest$ac_exeext conftest.$ac_ext
5988 if test "$ac_cv_search_crypt" = no; then
5989 for ac_lib in crypt; do
5990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5998 /* Override any gcc2 internal prototype to avoid an error. */
6002 /* We use char because int might match the return type of a gcc2
6003 builtin and then its argument prototype would still apply. */
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag"
6023 || test ! -s conftest.err'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest$ac_exeext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_search_crypt="-l$ac_lib"
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6042 rm -f conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
6046 LIBS=$ac_func_search_save_LIBS
6048 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6049 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6050 if test "$ac_cv_search_crypt" != no; then
6051 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6056 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6057 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6058 if test "${ac_cv_search_fdatasync+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 ac_func_search_save_LIBS=$LIBS
6062 ac_cv_search_fdatasync=no
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any gcc2 internal prototype to avoid an error. */
6074 /* We use char because int might match the return type of a gcc2
6075 builtin and then its argument prototype would still apply. */
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>conftest.er1
6089 grep -v '^ *+' conftest.er1 >conftest.err
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } &&
6094 { ac_try='test -z "$ac_c_werror_flag"
6095 || test ! -s conftest.err'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; } &&
6101 { ac_try='test -s conftest$ac_exeext'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 ac_cv_search_fdatasync="none required"
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6113 rm -f conftest.err conftest.$ac_objext \
6114 conftest$ac_exeext conftest.$ac_ext
6115 if test "$ac_cv_search_fdatasync" = no; then
6116 for ac_lib in rt posix4; do
6117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6118 cat >conftest.$ac_ext <<_ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6125 /* Override any gcc2 internal prototype to avoid an error. */
6129 /* We use char because int might match the return type of a gcc2
6130 builtin and then its argument prototype would still apply. */
6140 rm -f conftest.$ac_objext conftest$ac_exeext
6141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6142 (eval $ac_link) 2>conftest.er1
6144 grep -v '^ *+' conftest.er1 >conftest.err
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } &&
6149 { ac_try='test -z "$ac_c_werror_flag"
6150 || test ! -s conftest.err'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_search_fdatasync="-l$ac_lib"
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6169 rm -f conftest.err conftest.$ac_objext \
6170 conftest$ac_exeext conftest.$ac_ext
6173 LIBS=$ac_func_search_save_LIBS
6175 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6176 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6177 if test "$ac_cv_search_fdatasync" != no; then
6178 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6183 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6184 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6185 if test "${ac_cv_search_shmget+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 ac_func_search_save_LIBS=$LIBS
6189 ac_cv_search_shmget=no
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6197 /* Override any gcc2 internal prototype to avoid an error. */
6201 /* We use char because int might match the return type of a gcc2
6202 builtin and then its argument prototype would still apply. */
6212 rm -f conftest.$ac_objext conftest$ac_exeext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6214 (eval $ac_link) 2>conftest.er1
6216 grep -v '^ *+' conftest.er1 >conftest.err
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_c_werror_flag"
6222 || test ! -s conftest.err'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; } &&
6228 { ac_try='test -s conftest$ac_exeext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_search_shmget="none required"
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6240 rm -f conftest.err conftest.$ac_objext \
6241 conftest$ac_exeext conftest.$ac_ext
6242 if test "$ac_cv_search_shmget" = no; then
6243 for ac_lib in cygipc; do
6244 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6245 cat >conftest.$ac_ext <<_ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6252 /* Override any gcc2 internal prototype to avoid an error. */
6256 /* We use char because int might match the return type of a gcc2
6257 builtin and then its argument prototype would still apply. */
6267 rm -f conftest.$ac_objext conftest$ac_exeext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6269 (eval $ac_link) 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try='test -s conftest$ac_exeext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_cv_search_shmget="-l$ac_lib"
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6296 rm -f conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext conftest.$ac_ext
6300 LIBS=$ac_func_search_save_LIBS
6302 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6303 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6304 if test "$ac_cv_search_shmget" != no; then
6305 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6310 if test "$with_readline" = yes; then
6313 if test "${pgac_cv_check_readline+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 pgac_cv_check_readline=no
6317 pgac_save_LIBS=$LIBS
6318 if test x"$with_libedit_preferred" != x"yes"
6319 then READLINE_ORDER="-lreadline -ledit"
6320 else READLINE_ORDER="-ledit -lreadline"
6322 for pgac_rllib in $READLINE_ORDER ; do
6323 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6324 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6325 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6326 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351 (eval $ac_link) 2>conftest.er1
6353 grep -v '^ *+' conftest.er1 >conftest.err
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try='test -z "$ac_c_werror_flag"
6359 || test ! -s conftest.err'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; } &&
6365 { ac_try='test -s conftest$ac_exeext'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; }; then
6372 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6373 # recognize dependent libraries; assume curses is needed if we didn't
6374 # find any dependency.
6376 netbsd* | openbsd* | irix*)
6377 if test x"$pgac_lib" = x"" ; then
6378 pgac_lib=" -lcurses"
6382 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6390 rm -f conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6393 if test "$pgac_cv_check_readline" != no ; then
6394 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6395 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6398 echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6
6402 LIBS=$pgac_save_LIBS
6406 if test "$pgac_cv_check_readline" != no ; then
6407 LIBS="$pgac_cv_check_readline $LIBS"
6409 cat >>confdefs.h <<\_ACEOF
6410 #define HAVE_LIBREADLINE 1
6416 if test x"$pgac_cv_check_readline" = x"no"; then
6417 { { echo "$as_me:$LINENO: error: readline library not found
6418 If you have readline already installed, see config.log for details on the
6419 failure. It is possible the compiler isn't looking in the proper directory.
6420 Use --without-readline to disable readline support." >&5
6421 echo "$as_me: error: readline library not found
6422 If you have readline already installed, see config.log for details on the
6423 failure. It is possible the compiler isn't looking in the proper directory.
6424 Use --without-readline to disable readline support." >&2;}
6425 { (exit 1); exit 1; }; }
6429 if test "$with_zlib" = yes; then
6431 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6432 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6433 if test "${ac_cv_lib_z_inflate+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 ac_check_lib_save_LIBS=$LIBS
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6445 /* Override any gcc2 internal prototype to avoid an error. */
6449 /* We use char because int might match the return type of a gcc2
6450 builtin and then its argument prototype would still apply. */
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_c_werror_flag"
6470 || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_lib_z_inflate=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 ac_cv_lib_z_inflate=no
6489 rm -f conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6491 LIBS=$ac_check_lib_save_LIBS
6493 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6494 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6495 if test $ac_cv_lib_z_inflate = yes; then
6496 cat >>confdefs.h <<_ACEOF
6503 { { echo "$as_me:$LINENO: error: zlib library not found
6504 If you have zlib already installed, see config.log for details on the
6505 failure. It is possible the compiler isn't looking in the proper directory.
6506 Use --without-zlib to disable zlib support." >&5
6507 echo "$as_me: error: zlib library not found
6508 If you have zlib already installed, see config.log for details on the
6509 failure. It is possible the compiler isn't looking in the proper directory.
6510 Use --without-zlib to disable zlib support." >&2;}
6511 { (exit 1); exit 1; }; }
6516 if test "$enable_spinlocks" = yes; then
6518 cat >>confdefs.h <<\_ACEOF
6519 #define HAVE_SPINLOCKS 1
6523 { echo "$as_me:$LINENO: WARNING:
6524 *** Not using spinlocks will cause poor performance." >&5
6525 echo "$as_me: WARNING:
6526 *** Not using spinlocks will cause poor performance." >&2;}
6529 if test "$with_krb5" = yes ; then
6530 if test "$PORTNAME" != "win32"; then
6531 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6532 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6533 if test "${ac_cv_search_com_err+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 ac_func_search_save_LIBS=$LIBS
6537 ac_cv_search_com_err=no
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6545 /* Override any gcc2 internal prototype to avoid an error. */
6549 /* We use char because int might match the return type of a gcc2
6550 builtin and then its argument prototype would still apply. */
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_c_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest$ac_exeext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 ac_cv_search_com_err="none required"
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6588 rm -f conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590 if test "$ac_cv_search_com_err" = no; then
6591 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6593 cat >conftest.$ac_ext <<_ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6600 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6615 rm -f conftest.$ac_objext conftest$ac_exeext
6616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6617 (eval $ac_link) 2>conftest.er1
6619 grep -v '^ *+' conftest.er1 >conftest.err
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try='test -z "$ac_c_werror_flag"
6625 || test ! -s conftest.err'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; } &&
6631 { ac_try='test -s conftest$ac_exeext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_cv_search_com_err="-l$ac_lib"
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6644 rm -f conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
6648 LIBS=$ac_func_search_save_LIBS
6650 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6651 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6652 if test "$ac_cv_search_com_err" != no; then
6653 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6656 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6657 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6658 { (exit 1); exit 1; }; }
6661 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6662 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6663 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 ac_func_search_save_LIBS=$LIBS
6667 ac_cv_search_krb5_sendauth=no
6668 cat >conftest.$ac_ext <<_ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6675 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6681 char krb5_sendauth ();
6690 rm -f conftest.$ac_objext conftest$ac_exeext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6692 (eval $ac_link) 2>conftest.er1
6694 grep -v '^ *+' conftest.er1 >conftest.err
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -z "$ac_c_werror_flag"
6700 || test ! -s conftest.err'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; } &&
6706 { ac_try='test -s conftest$ac_exeext'
6707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 ac_cv_search_krb5_sendauth="none required"
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
6720 if test "$ac_cv_search_krb5_sendauth" = no; then
6721 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6723 cat >conftest.$ac_ext <<_ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6730 /* Override any gcc2 internal prototype to avoid an error. */
6734 /* We use char because int might match the return type of a gcc2
6735 builtin and then its argument prototype would still apply. */
6736 char krb5_sendauth ();
6745 rm -f conftest.$ac_objext conftest$ac_exeext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6747 (eval $ac_link) 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -z "$ac_c_werror_flag"
6755 || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest$ac_exeext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_search_krb5_sendauth="-l$ac_lib"
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6774 rm -f conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6778 LIBS=$ac_func_search_save_LIBS
6780 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6781 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6782 if test "$ac_cv_search_krb5_sendauth" != no; then
6783 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6786 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6787 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6788 { (exit 1); exit 1; }; }
6792 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6793 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6794 if test "${ac_cv_search_com_err+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 ac_func_search_save_LIBS=$LIBS
6798 ac_cv_search_com_err=no
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6806 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>conftest.er1
6825 grep -v '^ *+' conftest.er1 >conftest.err
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_c_werror_flag"
6831 || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest$ac_exeext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_cv_search_com_err="none required"
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6849 rm -f conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6851 if test "$ac_cv_search_com_err" = no; then
6852 for ac_lib in 'comerr32 -lkrb5_32'; do
6853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6861 /* Override any gcc2 internal prototype to avoid an error. */
6865 /* We use char because int might match the return type of a gcc2
6866 builtin and then its argument prototype would still apply. */
6876 rm -f conftest.$ac_objext conftest$ac_exeext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6878 (eval $ac_link) 2>conftest.er1
6880 grep -v '^ *+' conftest.er1 >conftest.err
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } &&
6885 { ac_try='test -z "$ac_c_werror_flag"
6886 || test ! -s conftest.err'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; } &&
6892 { ac_try='test -s conftest$ac_exeext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_search_com_err="-l$ac_lib"
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6905 rm -f conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6909 LIBS=$ac_func_search_save_LIBS
6911 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6912 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6913 if test "$ac_cv_search_com_err" != no; then
6914 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6917 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6918 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6919 { (exit 1); exit 1; }; }
6925 if test "$with_openssl" = yes ; then
6926 if test "$PORTNAME" != "win32"; then
6928 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6929 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6930 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_check_lib_save_LIBS=$LIBS
6934 LIBS="-lcrypto $LIBS"
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6942 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6948 char CRYPTO_new_ex_data ();
6952 CRYPTO_new_ex_data ();
6957 rm -f conftest.$ac_objext conftest$ac_exeext
6958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>conftest.er1
6961 grep -v '^ *+' conftest.er1 >conftest.err
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -z "$ac_c_werror_flag"
6967 || test ! -s conftest.err'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; } &&
6973 { ac_try='test -s conftest$ac_exeext'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; }; then
6979 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6986 rm -f conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6988 LIBS=$ac_check_lib_save_LIBS
6990 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6991 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6992 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6993 cat >>confdefs.h <<_ACEOF
6994 #define HAVE_LIBCRYPTO 1
6997 LIBS="-lcrypto $LIBS"
7000 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7001 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7002 { (exit 1); exit 1; }; }
7006 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7007 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7008 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 ac_check_lib_save_LIBS=$LIBS
7013 cat >conftest.$ac_ext <<_ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7020 /* Override any gcc2 internal prototype to avoid an error. */
7024 /* We use char because int might match the return type of a gcc2
7025 builtin and then its argument prototype would still apply. */
7026 char SSL_library_init ();
7030 SSL_library_init ();
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7037 (eval $ac_link) 2>conftest.er1
7039 grep -v '^ *+' conftest.er1 >conftest.err
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -z "$ac_c_werror_flag"
7045 || test ! -s conftest.err'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; } &&
7051 { ac_try='test -s conftest$ac_exeext'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; }; then
7057 ac_cv_lib_ssl_SSL_library_init=yes
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 ac_cv_lib_ssl_SSL_library_init=no
7064 rm -f conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 LIBS=$ac_check_lib_save_LIBS
7068 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7069 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7070 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7071 cat >>confdefs.h <<_ACEOF
7072 #define HAVE_LIBSSL 1
7078 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7079 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7080 { (exit 1); exit 1; }; }
7085 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7086 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7087 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 ac_check_lib_save_LIBS=$LIBS
7091 LIBS="-leay32 $LIBS"
7092 cat >conftest.$ac_ext <<_ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7099 /* Override any gcc2 internal prototype to avoid an error. */
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7105 char CRYPTO_new_ex_data ();
7109 CRYPTO_new_ex_data ();
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>conftest.er1
7118 grep -v '^ *+' conftest.er1 >conftest.err
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -z "$ac_c_werror_flag"
7124 || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest$ac_exeext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7143 rm -f conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 LIBS=$ac_check_lib_save_LIBS
7147 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7148 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7149 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7150 cat >>confdefs.h <<_ACEOF
7151 #define HAVE_LIBEAY32 1
7154 LIBS="-leay32 $LIBS"
7157 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7158 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7159 { (exit 1); exit 1; }; }
7163 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7164 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7165 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 ac_check_lib_save_LIBS=$LIBS
7169 LIBS="-lssleay32 $LIBS"
7170 cat >conftest.$ac_ext <<_ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7177 /* Override any gcc2 internal prototype to avoid an error. */
7181 /* We use char because int might match the return type of a gcc2
7182 builtin and then its argument prototype would still apply. */
7183 char SSL_library_init ();
7187 SSL_library_init ();
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194 (eval $ac_link) 2>conftest.er1
7196 grep -v '^ *+' conftest.er1 >conftest.err
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try='test -z "$ac_c_werror_flag"
7202 || test ! -s conftest.err'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; } &&
7208 { ac_try='test -s conftest$ac_exeext'
7209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 ac_cv_lib_ssleay32_SSL_library_init=yes
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.$ac_ext >&5
7219 ac_cv_lib_ssleay32_SSL_library_init=no
7221 rm -f conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7223 LIBS=$ac_check_lib_save_LIBS
7225 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7226 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7227 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7228 cat >>confdefs.h <<_ACEOF
7229 #define HAVE_LIBSSLEAY32 1
7232 LIBS="-lssleay32 $LIBS"
7235 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7236 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7237 { (exit 1); exit 1; }; }
7243 if test "$with_pam" = yes ; then
7245 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7246 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7247 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_check_lib_save_LIBS=$LIBS
7252 cat >conftest.$ac_ext <<_ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7259 /* Override any gcc2 internal prototype to avoid an error. */
7263 /* We use char because int might match the return type of a gcc2
7264 builtin and then its argument prototype would still apply. */
7274 rm -f conftest.$ac_objext conftest$ac_exeext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7276 (eval $ac_link) 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -z "$ac_c_werror_flag"
7284 || test ! -s conftest.err'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; } &&
7290 { ac_try='test -s conftest$ac_exeext'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7296 ac_cv_lib_pam_pam_start=yes
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 ac_cv_lib_pam_pam_start=no
7303 rm -f conftest.err conftest.$ac_objext \
7304 conftest$ac_exeext conftest.$ac_ext
7305 LIBS=$ac_check_lib_save_LIBS
7307 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7308 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7309 if test $ac_cv_lib_pam_pam_start = yes; then
7310 cat >>confdefs.h <<_ACEOF
7311 #define HAVE_LIBPAM 1
7317 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7318 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7319 { (exit 1); exit 1; }; }
7329 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7331 if test "${ac_cv_header_stdc+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7353 rm -f conftest.$ac_objext
7354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7355 (eval $ac_compile) 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try='test -z "$ac_c_werror_flag"
7363 || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try='test -s conftest.$ac_objext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 ac_cv_header_stdc=yes
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_cv_header_stdc=no
7382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7384 if test $ac_cv_header_stdc = yes; then
7385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7396 $EGREP "memchr" >/dev/null 2>&1; then
7399 ac_cv_header_stdc=no
7405 if test $ac_cv_header_stdc = yes; then
7406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7407 cat >conftest.$ac_ext <<_ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7417 $EGREP "free" >/dev/null 2>&1; then
7420 ac_cv_header_stdc=no
7426 if test $ac_cv_header_stdc = yes; then
7427 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7428 if test "$cross_compiling" = yes; then
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7438 #if ((' ' & 0x0FF) == 0x020)
7439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7442 # define ISLOWER(c) \
7443 (('a' <= (c) && (c) <= 'i') \
7444 || ('j' <= (c) && (c) <= 'r') \
7445 || ('s' <= (c) && (c) <= 'z'))
7446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7454 for (i = 0; i < 256; i++)
7455 if (XOR (islower (i), ISLOWER (i))
7456 || toupper (i) != TOUPPER (i))
7461 rm -f conftest$ac_exeext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7463 (eval $ac_link) 2>&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7474 echo "$as_me: program exited with status $ac_status" >&5
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_cv_header_stdc=no
7481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7485 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7486 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7487 if test $ac_cv_header_stdc = yes; then
7489 cat >>confdefs.h <<\_ACEOF
7490 #define STDC_HEADERS 1
7495 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7505 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7506 inttypes.h stdint.h unistd.h
7508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 echo "$as_me:$LINENO: checking for $ac_header" >&5
7510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 cat >conftest.$ac_ext <<_ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7522 #include <$ac_header>
7524 rm -f conftest.$ac_objext
7525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7526 (eval $ac_compile) 2>conftest.er1
7528 grep -v '^ *+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } &&
7533 { ac_try='test -z "$ac_c_werror_flag"
7534 || test ! -s conftest.err'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 eval "$as_ac_Header=yes"
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 eval "$as_ac_Header=no"
7553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7558 cat >>confdefs.h <<_ACEOF
7559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7592 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596 echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7604 # Is the header compilable?
7605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7614 #include <$ac_header>
7616 rm -f conftest.$ac_objext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618 (eval $ac_compile) 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest.$ac_objext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_header_compiler=yes
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_header_compiler=no
7645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7647 echo "${ECHO_T}$ac_header_compiler" >&6
7649 # Is the header present?
7650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <$ac_header>
7660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7663 grep -v '^ *+' conftest.er1 >conftest.err
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } >/dev/null; then
7668 if test -s conftest.err; then
7669 ac_cpp_err=$ac_c_preproc_warn_flag
7670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7677 if test -z "$ac_cpp_err"; then
7678 ac_header_preproc=yes
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_header_preproc=no
7685 rm -f conftest.err conftest.$ac_ext
7686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7687 echo "${ECHO_T}$ac_header_preproc" >&6
7689 # So? What about this header?
7690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7696 ac_header_preproc=yes
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7713 ## ---------------------------------------- ##
7714 ## Report this to pgsql-bugs@postgresql.org ##
7715 ## ---------------------------------------- ##
7718 sed "s/^/$as_me: WARNING: /" >&2
7721 echo "$as_me:$LINENO: checking for $ac_header" >&5
7722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 eval "$as_ac_Header=\$ac_header_preproc"
7728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7742 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7743 # netinet/in.h is included first.
7745 for ac_header in netinet/in.h
7747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7749 echo "$as_me:$LINENO: checking for $ac_header" >&5
7750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7757 # Is the header compilable?
7758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7760 cat >conftest.$ac_ext <<_ACEOF
7763 cat confdefs.h >>conftest.$ac_ext
7764 cat >>conftest.$ac_ext <<_ACEOF
7765 /* end confdefs.h. */
7766 $ac_includes_default
7767 #include <$ac_header>
7769 rm -f conftest.$ac_objext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7771 (eval $ac_compile) 2>conftest.er1
7773 grep -v '^ *+' conftest.er1 >conftest.err
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -z "$ac_c_werror_flag"
7779 || test ! -s conftest.err'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; } &&
7785 { ac_try='test -s conftest.$ac_objext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 ac_header_compiler=yes
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_header_compiler=no
7798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7800 echo "${ECHO_T}$ac_header_compiler" >&6
7802 # Is the header present?
7803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 #include <$ac_header>
7813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7816 grep -v '^ *+' conftest.er1 >conftest.err
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } >/dev/null; then
7821 if test -s conftest.err; then
7822 ac_cpp_err=$ac_c_preproc_warn_flag
7823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7830 if test -z "$ac_cpp_err"; then
7831 ac_header_preproc=yes
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7836 ac_header_preproc=no
7838 rm -f conftest.err conftest.$ac_ext
7839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7840 echo "${ECHO_T}$ac_header_preproc" >&6
7842 # So? What about this header?
7843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7849 ac_header_preproc=yes
7852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7866 ## ---------------------------------------- ##
7867 ## Report this to pgsql-bugs@postgresql.org ##
7868 ## ---------------------------------------- ##
7871 sed "s/^/$as_me: WARNING: /" >&2
7874 echo "$as_me:$LINENO: checking for $ac_header" >&5
7875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 eval "$as_ac_Header=\$ac_header_preproc"
7881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7886 cat >>confdefs.h <<_ACEOF
7887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7895 for ac_header in netinet/tcp.h
7897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7898 echo "$as_me:$LINENO: checking for $ac_header" >&5
7899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 $ac_includes_default
7910 #ifdef HAVE_NETINET_IN_H
7911 #include <netinet/in.h>
7915 #include <$ac_header>
7917 rm -f conftest.$ac_objext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7919 (eval $ac_compile) 2>conftest.er1
7921 grep -v '^ *+' conftest.er1 >conftest.err
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -z "$ac_c_werror_flag"
7927 || test ! -s conftest.err'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; } &&
7933 { ac_try='test -s conftest.$ac_objext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 eval "$as_ac_Header=yes"
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 eval "$as_ac_Header=no"
7946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7951 cat >>confdefs.h <<_ACEOF
7952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7960 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7962 for ac_header in readline/readline.h
7964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7966 echo "$as_me:$LINENO: checking for $ac_header" >&5
7967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7974 # Is the header compilable?
7975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 $ac_includes_default
7984 #include <$ac_header>
7986 rm -f conftest.$ac_objext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 (eval $ac_compile) 2>conftest.er1
7990 grep -v '^ *+' conftest.er1 >conftest.err
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_header_compiler=yes
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 ac_header_compiler=no
8015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8017 echo "${ECHO_T}$ac_header_compiler" >&6
8019 # Is the header present?
8020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8022 cat >conftest.$ac_ext <<_ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 #include <$ac_header>
8030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } >/dev/null; then
8038 if test -s conftest.err; then
8039 ac_cpp_err=$ac_c_preproc_warn_flag
8040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8047 if test -z "$ac_cpp_err"; then
8048 ac_header_preproc=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 ac_header_preproc=no
8055 rm -f conftest.err conftest.$ac_ext
8056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8057 echo "${ECHO_T}$ac_header_preproc" >&6
8059 # So? What about this header?
8060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8066 ac_header_preproc=yes
8069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8083 ## ---------------------------------------- ##
8084 ## Report this to pgsql-bugs@postgresql.org ##
8085 ## ---------------------------------------- ##
8088 sed "s/^/$as_me: WARNING: /" >&2
8091 echo "$as_me:$LINENO: checking for $ac_header" >&5
8092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 eval "$as_ac_Header=\$ac_header_preproc"
8098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8103 cat >>confdefs.h <<_ACEOF
8104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8109 for ac_header in readline.h
8111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8113 echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8121 # Is the header compilable?
8122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8124 cat >conftest.$ac_ext <<_ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 #include <$ac_header>
8133 rm -f conftest.$ac_objext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135 (eval $ac_compile) 2>conftest.er1
8137 grep -v '^ *+' conftest.er1 >conftest.err
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest.$ac_objext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_header_compiler=yes
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_header_compiler=no
8162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8164 echo "${ECHO_T}$ac_header_compiler" >&6
8166 # Is the header present?
8167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #include <$ac_header>
8177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8180 grep -v '^ *+' conftest.er1 >conftest.err
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } >/dev/null; then
8185 if test -s conftest.err; then
8186 ac_cpp_err=$ac_c_preproc_warn_flag
8187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8194 if test -z "$ac_cpp_err"; then
8195 ac_header_preproc=yes
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8200 ac_header_preproc=no
8202 rm -f conftest.err conftest.$ac_ext
8203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8204 echo "${ECHO_T}$ac_header_preproc" >&6
8206 # So? What about this header?
8207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8213 ac_header_preproc=yes
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8230 ## ---------------------------------------- ##
8231 ## Report this to pgsql-bugs@postgresql.org ##
8232 ## ---------------------------------------- ##
8235 sed "s/^/$as_me: WARNING: /" >&2
8238 echo "$as_me:$LINENO: checking for $ac_header" >&5
8239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 eval "$as_ac_Header=\$ac_header_preproc"
8245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8250 cat >>confdefs.h <<_ACEOF
8251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8255 { { echo "$as_me:$LINENO: error: readline header not found
8256 If you have readline already installed, see config.log for details on the
8257 failure. It is possible the compiler isn't looking in the proper directory.
8258 Use --without-readline to disable readline support." >&5
8259 echo "$as_me: error: readline header not found
8260 If you have readline already installed, see config.log for details on the
8261 failure. It is possible the compiler isn't looking in the proper directory.
8262 Use --without-readline to disable readline support." >&2;}
8263 { (exit 1); exit 1; }; }
8273 for ac_header in readline/history.h
8275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8277 echo "$as_me:$LINENO: checking for $ac_header" >&5
8278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8285 # Is the header compilable?
8286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 $ac_includes_default
8295 #include <$ac_header>
8297 rm -f conftest.$ac_objext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299 (eval $ac_compile) 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag"
8307 || test ! -s conftest.err'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest.$ac_objext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_header_compiler=yes
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8324 ac_header_compiler=no
8326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8328 echo "${ECHO_T}$ac_header_compiler" >&6
8330 # Is the header present?
8331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 #include <$ac_header>
8341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8344 grep -v '^ *+' conftest.er1 >conftest.err
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } >/dev/null; then
8349 if test -s conftest.err; then
8350 ac_cpp_err=$ac_c_preproc_warn_flag
8351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8358 if test -z "$ac_cpp_err"; then
8359 ac_header_preproc=yes
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8364 ac_header_preproc=no
8366 rm -f conftest.err conftest.$ac_ext
8367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8368 echo "${ECHO_T}$ac_header_preproc" >&6
8370 # So? What about this header?
8371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8377 ac_header_preproc=yes
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8394 ## ---------------------------------------- ##
8395 ## Report this to pgsql-bugs@postgresql.org ##
8396 ## ---------------------------------------- ##
8399 sed "s/^/$as_me: WARNING: /" >&2
8402 echo "$as_me:$LINENO: checking for $ac_header" >&5
8403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 eval "$as_ac_Header=\$ac_header_preproc"
8409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8414 cat >>confdefs.h <<_ACEOF
8415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8420 for ac_header in history.h
8422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8424 echo "$as_me:$LINENO: checking for $ac_header" >&5
8425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8432 # Is the header compilable?
8433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8442 #include <$ac_header>
8444 rm -f conftest.$ac_objext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446 (eval $ac_compile) 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -z "$ac_c_werror_flag"
8454 || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest.$ac_objext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_header_compiler=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 ac_header_compiler=no
8473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8475 echo "${ECHO_T}$ac_header_compiler" >&6
8477 # Is the header present?
8478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 #include <$ac_header>
8488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } >/dev/null; then
8496 if test -s conftest.err; then
8497 ac_cpp_err=$ac_c_preproc_warn_flag
8498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8505 if test -z "$ac_cpp_err"; then
8506 ac_header_preproc=yes
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_header_preproc=no
8513 rm -f conftest.err conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8515 echo "${ECHO_T}$ac_header_preproc" >&6
8517 # So? What about this header?
8518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8524 ac_header_preproc=yes
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8541 ## ---------------------------------------- ##
8542 ## Report this to pgsql-bugs@postgresql.org ##
8543 ## ---------------------------------------- ##
8546 sed "s/^/$as_me: WARNING: /" >&2
8549 echo "$as_me:$LINENO: checking for $ac_header" >&5
8550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 eval "$as_ac_Header=\$ac_header_preproc"
8556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561 cat >>confdefs.h <<_ACEOF
8562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8566 { { echo "$as_me:$LINENO: error: history header not found
8567 If you have readline already installed, see config.log for details on the
8568 failure. It is possible the compiler isn't looking in the proper directory.
8569 Use --without-readline to disable readline support." >&5
8570 echo "$as_me: error: history header not found
8571 If you have readline already installed, see config.log for details on the
8572 failure. It is possible the compiler isn't looking in the proper directory.
8573 Use --without-readline to disable readline support." >&2;}
8574 { (exit 1); exit 1; }; }
8585 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8586 # Some installations of libedit usurp /usr/include/readline/, which seems
8587 # bad practice, since in combined installations readline will have its headers
8588 # there. We might have to resort to AC_EGREP checks to make sure we found
8589 # the proper header...
8591 for ac_header in editline/readline.h
8593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8595 echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8603 # Is the header compilable?
8604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8613 #include <$ac_header>
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1 >conftest.err
8621 cat conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -z "$ac_c_werror_flag"
8625 || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_header_compiler=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_header_compiler=no
8644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8646 echo "${ECHO_T}$ac_header_compiler" >&6
8648 # Is the header present?
8649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 #include <$ac_header>
8659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8662 grep -v '^ *+' conftest.er1 >conftest.err
8664 cat conftest.err >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } >/dev/null; then
8667 if test -s conftest.err; then
8668 ac_cpp_err=$ac_c_preproc_warn_flag
8669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8676 if test -z "$ac_cpp_err"; then
8677 ac_header_preproc=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_header_preproc=no
8684 rm -f conftest.err conftest.$ac_ext
8685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8686 echo "${ECHO_T}$ac_header_preproc" >&6
8688 # So? What about this header?
8689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8695 ac_header_preproc=yes
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8712 ## ---------------------------------------- ##
8713 ## Report this to pgsql-bugs@postgresql.org ##
8714 ## ---------------------------------------- ##
8717 sed "s/^/$as_me: WARNING: /" >&2
8720 echo "$as_me:$LINENO: checking for $ac_header" >&5
8721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 eval "$as_ac_Header=\$ac_header_preproc"
8727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8732 cat >>confdefs.h <<_ACEOF
8733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8738 for ac_header in readline.h
8740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742 echo "$as_me:$LINENO: checking for $ac_header" >&5
8743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8750 # Is the header compilable?
8751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 $ac_includes_default
8760 #include <$ac_header>
8762 rm -f conftest.$ac_objext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag"
8772 || test ! -s conftest.err'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest.$ac_objext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 ac_header_compiler=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_header_compiler=no
8791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8793 echo "${ECHO_T}$ac_header_compiler" >&6
8795 # Is the header present?
8796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804 #include <$ac_header>
8806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8809 grep -v '^ *+' conftest.er1 >conftest.err
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } >/dev/null; then
8814 if test -s conftest.err; then
8815 ac_cpp_err=$ac_c_preproc_warn_flag
8816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8823 if test -z "$ac_cpp_err"; then
8824 ac_header_preproc=yes
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8829 ac_header_preproc=no
8831 rm -f conftest.err conftest.$ac_ext
8832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8833 echo "${ECHO_T}$ac_header_preproc" >&6
8835 # So? What about this header?
8836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8842 ac_header_preproc=yes
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8859 ## ---------------------------------------- ##
8860 ## Report this to pgsql-bugs@postgresql.org ##
8861 ## ---------------------------------------- ##
8864 sed "s/^/$as_me: WARNING: /" >&2
8867 echo "$as_me:$LINENO: checking for $ac_header" >&5
8868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 eval "$as_ac_Header=\$ac_header_preproc"
8874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8879 cat >>confdefs.h <<_ACEOF
8880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885 for ac_header in readline/readline.h
8887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo "$as_me:$LINENO: checking for $ac_header" >&5
8890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897 # Is the header compilable?
8898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8900 cat >conftest.$ac_ext <<_ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 $ac_includes_default
8907 #include <$ac_header>
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>conftest.er1
8913 grep -v '^ *+' conftest.er1 >conftest.err
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag"
8919 || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_header_compiler=yes
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 ac_header_compiler=no
8938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 echo "${ECHO_T}$ac_header_compiler" >&6
8942 # Is the header present?
8943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 #include <$ac_header>
8953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } >/dev/null; then
8961 if test -s conftest.err; then
8962 ac_cpp_err=$ac_c_preproc_warn_flag
8963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8970 if test -z "$ac_cpp_err"; then
8971 ac_header_preproc=yes
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_header_preproc=no
8978 rm -f conftest.err conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8980 echo "${ECHO_T}$ac_header_preproc" >&6
8982 # So? What about this header?
8983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8989 ac_header_preproc=yes
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9006 ## ---------------------------------------- ##
9007 ## Report this to pgsql-bugs@postgresql.org ##
9008 ## ---------------------------------------- ##
9011 sed "s/^/$as_me: WARNING: /" >&2
9014 echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 eval "$as_ac_Header=\$ac_header_preproc"
9021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9026 cat >>confdefs.h <<_ACEOF
9027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 { { echo "$as_me:$LINENO: error: readline header not found
9032 If you have libedit already installed, see config.log for details on the
9033 failure. It is possible the compiler isn't looking in the proper directory.
9034 Use --without-readline to disable libedit support." >&5
9035 echo "$as_me: error: readline header not found
9036 If you have libedit already installed, see config.log for details on the
9037 failure. It is possible the compiler isn't looking in the proper directory.
9038 Use --without-readline to disable libedit support." >&2;}
9039 { (exit 1); exit 1; }; }
9052 # Note: in a libedit installation, history.h is normally a dummy, and may
9053 # not be there at all. The functions are declared in readline.h instead.
9054 # To avoid including incompatible headers when both libraries are present,
9055 # assume we do not need history.h.
9058 if test "$with_zlib" = yes; then
9059 if test "${ac_cv_header_zlib_h+set}" = set; then
9060 echo "$as_me:$LINENO: checking for zlib.h" >&5
9061 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9062 if test "${ac_cv_header_zlib_h+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
9065 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9066 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9068 # Is the header compilable?
9069 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9070 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9071 cat >conftest.$ac_ext <<_ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 $ac_includes_default
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082 (eval $ac_compile) 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest.$ac_objext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_header_compiler=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_header_compiler=no
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9111 echo "${ECHO_T}$ac_header_compiler" >&6
9113 # Is the header present?
9114 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9115 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9127 grep -v '^ *+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } >/dev/null; then
9132 if test -s conftest.err; then
9133 ac_cpp_err=$ac_c_preproc_warn_flag
9134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9141 if test -z "$ac_cpp_err"; then
9142 ac_header_preproc=yes
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 ac_header_preproc=no
9149 rm -f conftest.err conftest.$ac_ext
9150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9151 echo "${ECHO_T}$ac_header_preproc" >&6
9153 # So? What about this header?
9154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9156 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9157 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9159 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9160 ac_header_preproc=yes
9163 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9164 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9166 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9168 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9170 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9172 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9174 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9177 ## ---------------------------------------- ##
9178 ## Report this to pgsql-bugs@postgresql.org ##
9179 ## ---------------------------------------- ##
9182 sed "s/^/$as_me: WARNING: /" >&2
9185 echo "$as_me:$LINENO: checking for zlib.h" >&5
9186 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9187 if test "${ac_cv_header_zlib_h+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 ac_cv_header_zlib_h=$ac_header_preproc
9192 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9193 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9196 if test $ac_cv_header_zlib_h = yes; then
9199 { { echo "$as_me:$LINENO: error: zlib header not found
9200 If you have zlib already installed, see config.log for details on the
9201 failure. It is possible the compiler isn't looking in the proper directory.
9202 Use --without-zlib to disable zlib support." >&5
9203 echo "$as_me: error: zlib header not found
9204 If you have zlib already installed, see config.log for details on the
9205 failure. It is possible the compiler isn't looking in the proper directory.
9206 Use --without-zlib to disable zlib support." >&2;}
9207 { (exit 1); exit 1; }; }
9213 if test "$with_krb5" = yes ; then
9214 if test "${ac_cv_header_krb5_h+set}" = set; then
9215 echo "$as_me:$LINENO: checking for krb5.h" >&5
9216 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9217 if test "${ac_cv_header_krb5_h+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9221 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9223 # Is the header compilable?
9224 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9225 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 $ac_includes_default
9235 rm -f conftest.$ac_objext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9237 (eval $ac_compile) 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -z "$ac_c_werror_flag"
9245 || test ! -s conftest.err'
9246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); }; } &&
9251 { ac_try='test -s conftest.$ac_objext'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
9257 ac_header_compiler=yes
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 ac_header_compiler=no
9264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9266 echo "${ECHO_T}$ac_header_compiler" >&6
9268 # Is the header present?
9269 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9270 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9282 grep -v '^ *+' conftest.er1 >conftest.err
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } >/dev/null; then
9287 if test -s conftest.err; then
9288 ac_cpp_err=$ac_c_preproc_warn_flag
9289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9296 if test -z "$ac_cpp_err"; then
9297 ac_header_preproc=yes
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9302 ac_header_preproc=no
9304 rm -f conftest.err conftest.$ac_ext
9305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9306 echo "${ECHO_T}$ac_header_preproc" >&6
9308 # So? What about this header?
9309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9311 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9312 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9314 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9315 ac_header_preproc=yes
9318 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9319 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9321 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9323 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9325 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9326 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9327 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9329 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9332 ## ---------------------------------------- ##
9333 ## Report this to pgsql-bugs@postgresql.org ##
9334 ## ---------------------------------------- ##
9337 sed "s/^/$as_me: WARNING: /" >&2
9340 echo "$as_me:$LINENO: checking for krb5.h" >&5
9341 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9342 if test "${ac_cv_header_krb5_h+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 ac_cv_header_krb5_h=$ac_header_preproc
9347 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9348 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9351 if test $ac_cv_header_krb5_h = yes; then
9354 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9355 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9356 { (exit 1); exit 1; }; }
9362 if test "$with_openssl" = yes ; then
9363 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9364 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9365 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9366 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9370 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9372 # Is the header compilable?
9373 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9374 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 $ac_includes_default
9382 #include <openssl/ssl.h>
9384 rm -f conftest.$ac_objext
9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_header_compiler=yes
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9411 ac_header_compiler=no
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9415 echo "${ECHO_T}$ac_header_compiler" >&6
9417 # Is the header present?
9418 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9419 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9420 cat >conftest.$ac_ext <<_ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426 #include <openssl/ssl.h>
9428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } >/dev/null; then
9436 if test -s conftest.err; then
9437 ac_cpp_err=$ac_c_preproc_warn_flag
9438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9445 if test -z "$ac_cpp_err"; then
9446 ac_header_preproc=yes
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_header_preproc=no
9453 rm -f conftest.err conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9455 echo "${ECHO_T}$ac_header_preproc" >&6
9457 # So? What about this header?
9458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9460 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9461 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9463 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9464 ac_header_preproc=yes
9467 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9468 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9470 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9472 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9473 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9474 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9476 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9478 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9481 ## ---------------------------------------- ##
9482 ## Report this to pgsql-bugs@postgresql.org ##
9483 ## ---------------------------------------- ##
9486 sed "s/^/$as_me: WARNING: /" >&2
9489 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9490 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9491 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9496 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9497 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9500 if test $ac_cv_header_openssl_ssl_h = yes; then
9503 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9504 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9505 { (exit 1); exit 1; }; }
9509 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9510 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9511 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9512 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9516 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9518 # Is the header compilable?
9519 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9520 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 $ac_includes_default
9528 #include <openssl/err.h>
9530 rm -f conftest.$ac_objext
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } &&
9539 { ac_try='test -z "$ac_c_werror_flag"
9540 || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_header_compiler=yes
9554 echo "$as_me: failed program was:" >&5
9555 sed 's/^/| /' conftest.$ac_ext >&5
9557 ac_header_compiler=no
9559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9561 echo "${ECHO_T}$ac_header_compiler" >&6
9563 # Is the header present?
9564 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
9565 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <openssl/err.h>
9574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } >/dev/null; then
9582 if test -s conftest.err; then
9583 ac_cpp_err=$ac_c_preproc_warn_flag
9584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9591 if test -z "$ac_cpp_err"; then
9592 ac_header_preproc=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_header_preproc=no
9599 rm -f conftest.err conftest.$ac_ext
9600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9601 echo "${ECHO_T}$ac_header_preproc" >&6
9603 # So? What about this header?
9604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9606 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9607 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9608 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
9609 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
9610 ac_header_preproc=yes
9613 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9614 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9616 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
9618 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
9620 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9622 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
9624 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
9627 ## ---------------------------------------- ##
9628 ## Report this to pgsql-bugs@postgresql.org ##
9629 ## ---------------------------------------- ##
9632 sed "s/^/$as_me: WARNING: /" >&2
9635 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9636 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9637 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 ac_cv_header_openssl_err_h=$ac_header_preproc
9642 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9643 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9646 if test $ac_cv_header_openssl_err_h = yes; then
9649 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9650 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9651 { (exit 1); exit 1; }; }
9657 if test "$with_pam" = yes ; then
9659 for ac_header in security/pam_appl.h
9661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9663 echo "$as_me:$LINENO: checking for $ac_header" >&5
9664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9671 # Is the header compilable?
9672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <$ac_header>
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>conftest.er1
9687 grep -v '^ *+' conftest.er1 >conftest.err
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -z "$ac_c_werror_flag"
9693 || test ! -s conftest.err'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; } &&
9699 { ac_try='test -s conftest.$ac_objext'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 ac_header_compiler=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_header_compiler=no
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9714 echo "${ECHO_T}$ac_header_compiler" >&6
9716 # Is the header present?
9717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9719 cat >conftest.$ac_ext <<_ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 #include <$ac_header>
9727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } >/dev/null; then
9735 if test -s conftest.err; then
9736 ac_cpp_err=$ac_c_preproc_warn_flag
9737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9744 if test -z "$ac_cpp_err"; then
9745 ac_header_preproc=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_header_preproc=no
9752 rm -f conftest.err conftest.$ac_ext
9753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9754 echo "${ECHO_T}$ac_header_preproc" >&6
9756 # So? What about this header?
9757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9763 ac_header_preproc=yes
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9780 ## ---------------------------------------- ##
9781 ## Report this to pgsql-bugs@postgresql.org ##
9782 ## ---------------------------------------- ##
9785 sed "s/^/$as_me: WARNING: /" >&2
9788 echo "$as_me:$LINENO: checking for $ac_header" >&5
9789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 eval "$as_ac_Header=\$ac_header_preproc"
9795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9800 cat >>confdefs.h <<_ACEOF
9801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9806 for ac_header in pam/pam_appl.h
9808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9810 echo "$as_me:$LINENO: checking for $ac_header" >&5
9811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9818 # Is the header compilable?
9819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9828 #include <$ac_header>
9830 rm -f conftest.$ac_objext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832 (eval $ac_compile) 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag"
9840 || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest.$ac_objext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_header_compiler=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_header_compiler=no
9859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9861 echo "${ECHO_T}$ac_header_compiler" >&6
9863 # Is the header present?
9864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 #include <$ac_header>
9874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } >/dev/null; then
9882 if test -s conftest.err; then
9883 ac_cpp_err=$ac_c_preproc_warn_flag
9884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9891 if test -z "$ac_cpp_err"; then
9892 ac_header_preproc=yes
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_header_preproc=no
9899 rm -f conftest.err conftest.$ac_ext
9900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9901 echo "${ECHO_T}$ac_header_preproc" >&6
9903 # So? What about this header?
9904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9910 ac_header_preproc=yes
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9927 ## ---------------------------------------- ##
9928 ## Report this to pgsql-bugs@postgresql.org ##
9929 ## ---------------------------------------- ##
9932 sed "s/^/$as_me: WARNING: /" >&2
9935 echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 eval "$as_ac_Header=\$ac_header_preproc"
9942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9947 cat >>confdefs.h <<_ACEOF
9948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9952 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9953 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9954 { (exit 1); exit 1; }; }
9965 if test "$with_ldap" = yes ; then
9966 if test "$PORTNAME" != "win32"; then
9968 for ac_header in ldap.h
9970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo "$as_me:$LINENO: checking for $ac_header" >&5
9973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9980 # Is the header compilable?
9981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #include <$ac_header>
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag"
10002 || test ! -s conftest.err'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; } &&
10008 { ac_try='test -s conftest.$ac_objext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_header_compiler=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_header_compiler=no
10021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10023 echo "${ECHO_T}$ac_header_compiler" >&6
10025 # Is the header present?
10026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <$ac_header>
10036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10039 grep -v '^ *+' conftest.er1 >conftest.err
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } >/dev/null; then
10044 if test -s conftest.err; then
10045 ac_cpp_err=$ac_c_preproc_warn_flag
10046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10053 if test -z "$ac_cpp_err"; then
10054 ac_header_preproc=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_header_preproc=no
10061 rm -f conftest.err conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10063 echo "${ECHO_T}$ac_header_preproc" >&6
10065 # So? What about this header?
10066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10072 ac_header_preproc=yes
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10089 ## ---------------------------------------- ##
10090 ## Report this to pgsql-bugs@postgresql.org ##
10091 ## ---------------------------------------- ##
10094 sed "s/^/$as_me: WARNING: /" >&2
10097 echo "$as_me:$LINENO: checking for $ac_header" >&5
10098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 eval "$as_ac_Header=\$ac_header_preproc"
10104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10109 cat >>confdefs.h <<_ACEOF
10110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10114 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
10115 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10116 { (exit 1); exit 1; }; }
10123 for ac_header in winldap.h
10125 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10126 echo "$as_me:$LINENO: checking for $ac_header" >&5
10127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 cat >conftest.$ac_ext <<_ACEOF
10134 cat confdefs.h >>conftest.$ac_ext
10135 cat >>conftest.$ac_ext <<_ACEOF
10136 /* end confdefs.h. */
10137 $ac_includes_default
10138 #include <windows.h>
10141 #include <$ac_header>
10143 rm -f conftest.$ac_objext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10145 (eval $ac_compile) 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -z "$ac_c_werror_flag"
10153 || test ! -s conftest.err'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest.$ac_objext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 eval "$as_ac_Header=yes"
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 eval "$as_ac_Header=no"
10172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10177 cat >>confdefs.h <<_ACEOF
10178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10182 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10183 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10184 { (exit 1); exit 1; }; }
10192 if test "$with_bonjour" = yes ; then
10193 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10194 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10195 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10196 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10200 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10202 # Is the header compilable?
10203 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10204 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 $ac_includes_default
10212 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10214 rm -f conftest.$ac_objext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_c_werror_flag"
10224 || test ! -s conftest.err'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest.$ac_objext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 ac_header_compiler=yes
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_header_compiler=no
10243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10245 echo "${ECHO_T}$ac_header_compiler" >&6
10247 # Is the header present?
10248 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10249 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } >/dev/null; then
10266 if test -s conftest.err; then
10267 ac_cpp_err=$ac_c_preproc_warn_flag
10268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10275 if test -z "$ac_cpp_err"; then
10276 ac_header_preproc=yes
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_header_preproc=no
10283 rm -f conftest.err conftest.$ac_ext
10284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10285 echo "${ECHO_T}$ac_header_preproc" >&6
10287 # So? What about this header?
10288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10290 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10291 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10293 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10294 ac_header_preproc=yes
10297 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10298 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10300 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10302 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10304 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10306 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10307 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10308 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10311 ## ---------------------------------------- ##
10312 ## Report this to pgsql-bugs@postgresql.org ##
10313 ## ---------------------------------------- ##
10316 sed "s/^/$as_me: WARNING: /" >&2
10319 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10320 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10321 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10324 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10326 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10327 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10330 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10333 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10334 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10335 { (exit 1); exit 1; }; }
10343 ## Types, structures, compiler characteristics
10346 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10347 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10348 if test "${ac_cv_c_const+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10361 /* FIXME: Include the comments suggested by Paul. */
10362 #ifndef __cplusplus
10363 /* Ultrix mips cc rejects this. */
10364 typedef int charset[2];
10366 /* SunOS 4.1.1 cc rejects this. */
10367 char const *const *ccp;
10369 /* NEC SVR4.0.2 mips cc rejects this. */
10370 struct point {int x, y;};
10371 static struct point const zero = {0,0};
10372 /* AIX XL C 1.02.0.0 rejects this.
10373 It does not let you subtract one const X* pointer from another in
10374 an arm of an if-expression whose if-part is not a constant
10376 const char *g = "string";
10377 ccp = &g + (g ? g-g : 0);
10378 /* HPUX 7.0 cc rejects these. */
10381 ccp = (char const *const *) p;
10382 { /* SCO 3.2v4 cc rejects this. */
10384 char const *s = 0 ? (char *) 0 : (char const *) 0;
10388 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10389 int x[] = {25, 17};
10390 const int *foo = &x[0];
10393 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10394 typedef const int *iptr;
10398 { /* AIX XL C 1.02.0.0 rejects this saying
10399 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10400 struct s { int j; const int *ap[3]; };
10401 struct s *b; b->j = 5;
10403 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10404 const int foo = 10;
10412 rm -f conftest.$ac_objext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10414 (eval $ac_compile) 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest.$ac_objext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10443 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10444 echo "${ECHO_T}$ac_cv_c_const" >&6
10445 if test $ac_cv_c_const = no; then
10447 cat >>confdefs.h <<\_ACEOF
10454 echo "$as_me:$LINENO: checking for inline" >&5
10455 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10456 if test "${ac_cv_c_inline+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 for ac_kw in inline __inline__ __inline; do
10461 cat >conftest.$ac_ext <<_ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 #ifndef __cplusplus
10469 static $ac_kw foo_t static_foo () {return 0; }
10470 $ac_kw int foo () {return 0; }
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest.$ac_objext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_c_inline=$ac_kw; break
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10506 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10507 echo "${ECHO_T}$ac_cv_c_inline" >&6
10508 case $ac_cv_c_inline in
10511 cat >>confdefs.h <<\_ACEOF
10515 *) cat >>confdefs.h <<_ACEOF
10516 #define inline $ac_cv_c_inline
10521 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
10522 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
10523 if test "${ac_cv_c_stringize+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 cat >conftest.$ac_ext <<_ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10534 char *s = x(teststring);
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537 $EGREP "#teststring" >/dev/null 2>&1; then
10538 ac_cv_c_stringize=no
10540 ac_cv_c_stringize=yes
10545 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
10546 echo "${ECHO_T}$ac_cv_c_stringize" >&6
10547 if test $ac_cv_c_stringize = yes; then
10549 cat >>confdefs.h <<\_ACEOF
10550 #define HAVE_STRINGIZE 1
10555 echo "$as_me:$LINENO: checking for signed types" >&5
10556 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
10557 if test "${pgac_cv_c_signed+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 cat >conftest.$ac_ext <<_ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10570 signed char c; signed short s; signed int i;
10575 rm -f conftest.$ac_objext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577 (eval $ac_compile) 2>conftest.er1
10579 grep -v '^ *+' conftest.er1 >conftest.err
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -z "$ac_c_werror_flag"
10585 || test ! -s conftest.err'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest.$ac_objext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 pgac_cv_c_signed=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 pgac_cv_c_signed=no
10604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10606 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
10607 echo "${ECHO_T}$pgac_cv_c_signed" >&6
10608 if test x"$pgac_cv_c_signed" = xno ; then
10610 cat >>confdefs.h <<\_ACEOF
10615 echo "$as_me:$LINENO: checking for working volatile" >&5
10616 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10617 if test "${ac_cv_c_volatile+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 cat >conftest.$ac_ext <<_ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10637 rm -f conftest.$ac_objext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639 (eval $ac_compile) 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -z "$ac_c_werror_flag"
10647 || test ! -s conftest.err'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest.$ac_objext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_cv_c_volatile=yes
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_cv_c_volatile=no
10666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10668 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10669 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10670 if test $ac_cv_c_volatile = no; then
10672 cat >>confdefs.h <<\_ACEOF
10678 echo "$as_me:$LINENO: checking for __func__" >&5
10679 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
10680 if test "${pgac_cv_funcname_func_support+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10693 printf("%s\n", __func__);
10698 rm -f conftest.$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>conftest.er1
10702 grep -v '^ *+' conftest.er1 >conftest.err
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -z "$ac_c_werror_flag"
10708 || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 pgac_cv_funcname_func_support=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 pgac_cv_funcname_func_support=no
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10729 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
10730 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
10731 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10733 cat >>confdefs.h <<\_ACEOF
10734 #define HAVE_FUNCNAME__FUNC 1
10738 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
10739 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
10740 if test "${pgac_cv_funcname_function_support+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 cat >conftest.$ac_ext <<_ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10753 printf("%s\n", __FUNCTION__);
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760 (eval $ac_compile) 2>conftest.er1
10762 grep -v '^ *+' conftest.er1 >conftest.err
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
10767 { ac_try='test -z "$ac_c_werror_flag"
10768 || test ! -s conftest.err'
10769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770 (eval $ac_try) 2>&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }; } &&
10774 { ac_try='test -s conftest.$ac_objext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 pgac_cv_funcname_function_support=yes
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 pgac_cv_funcname_function_support=no
10787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10789 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
10790 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
10791 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10793 cat >>confdefs.h <<\_ACEOF
10794 #define HAVE_FUNCNAME__FUNCTION 1
10799 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10800 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10801 if test "${ac_cv_struct_tm+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <sys/types.h>
10816 struct tm *tp; tp->tm_sec;
10821 rm -f conftest.$ac_objext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10823 (eval $ac_compile) 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
10830 { ac_try='test -z "$ac_c_werror_flag"
10831 || test ! -s conftest.err'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; } &&
10837 { ac_try='test -s conftest.$ac_objext'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 ac_cv_struct_tm=time.h
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 ac_cv_struct_tm=sys/time.h
10850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10853 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10854 if test $ac_cv_struct_tm = sys/time.h; then
10856 cat >>confdefs.h <<\_ACEOF
10857 #define TM_IN_SYS_TIME 1
10862 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10863 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10864 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 #include <sys/types.h>
10874 #include <$ac_cv_struct_tm>
10880 static struct tm ac_aggr;
10881 if (ac_aggr.tm_zone)
10887 rm -f conftest.$ac_objext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10889 (eval $ac_compile) 2>conftest.er1
10891 grep -v '^ *+' conftest.er1 >conftest.err
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } &&
10896 { ac_try='test -z "$ac_c_werror_flag"
10897 || test ! -s conftest.err'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest.$ac_objext'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }; then
10909 ac_cv_member_struct_tm_tm_zone=yes
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10920 #include <sys/types.h>
10921 #include <$ac_cv_struct_tm>
10927 static struct tm ac_aggr;
10928 if (sizeof ac_aggr.tm_zone)
10934 rm -f conftest.$ac_objext
10935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10936 (eval $ac_compile) 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -z "$ac_c_werror_flag"
10944 || test ! -s conftest.err'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10956 ac_cv_member_struct_tm_tm_zone=yes
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10961 ac_cv_member_struct_tm_tm_zone=no
10963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10967 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10968 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10969 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_STRUCT_TM_TM_ZONE 1
10978 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10980 cat >>confdefs.h <<\_ACEOF
10981 #define HAVE_TM_ZONE 1
10985 echo "$as_me:$LINENO: checking for tzname" >&5
10986 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10987 if test "${ac_cv_var_tzname+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 cat >conftest.$ac_ext <<_ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10997 #ifndef tzname /* For SGI. */
10998 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>conftest.er1
11013 grep -v '^ *+' conftest.er1 >conftest.err
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest$ac_exeext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_var_tzname=yes
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_cv_var_tzname=no
11038 rm -f conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
11041 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11042 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11043 if test $ac_cv_var_tzname = yes; then
11045 cat >>confdefs.h <<\_ACEOF
11046 #define HAVE_TZNAME 1
11051 echo "$as_me:$LINENO: checking for union semun" >&5
11052 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11053 if test "${ac_cv_type_union_semun+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 cat >conftest.$ac_ext <<_ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11062 #include <sys/types.h>
11063 #include <sys/ipc.h>
11064 #include <sys/sem.h>
11069 if ((union semun *) 0)
11071 if (sizeof (union semun))
11077 rm -f conftest.$ac_objext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11079 (eval $ac_compile) 2>conftest.er1
11081 grep -v '^ *+' conftest.er1 >conftest.err
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try='test -z "$ac_c_werror_flag"
11087 || test ! -s conftest.err'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; } &&
11093 { ac_try='test -s conftest.$ac_objext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 ac_cv_type_union_semun=yes
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11104 ac_cv_type_union_semun=no
11106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11108 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11109 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11110 if test $ac_cv_type_union_semun = yes; then
11112 cat >>confdefs.h <<_ACEOF
11113 #define HAVE_UNION_SEMUN 1
11119 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11120 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11121 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 cat >conftest.$ac_ext <<_ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 #include <sys/types.h>
11131 #ifdef HAVE_SYS_UN_H
11132 #include <sys/un.h>
11139 if ((struct sockaddr_un *) 0)
11141 if (sizeof (struct sockaddr_un))
11147 rm -f conftest.$ac_objext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11149 (eval $ac_compile) 2>conftest.er1
11151 grep -v '^ *+' conftest.er1 >conftest.err
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -z "$ac_c_werror_flag"
11157 || test ! -s conftest.err'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest.$ac_objext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 ac_cv_type_struct_sockaddr_un=yes
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_cv_type_struct_sockaddr_un=no
11176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11178 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11179 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11180 if test $ac_cv_type_struct_sockaddr_un = yes; then
11182 cat >>confdefs.h <<_ACEOF
11183 #define HAVE_STRUCT_SOCKADDR_UN 1
11187 cat >>confdefs.h <<\_ACEOF
11188 #define HAVE_UNIX_SOCKETS 1
11193 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11194 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11195 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 cat >conftest.$ac_ext <<_ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 #include <sys/types.h>
11205 #ifdef HAVE_SYS_SOCKET_H
11206 #include <sys/socket.h>
11213 if ((struct sockaddr_storage *) 0)
11215 if (sizeof (struct sockaddr_storage))
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>conftest.er1
11225 grep -v '^ *+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_type_struct_sockaddr_storage=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ac_cv_type_struct_sockaddr_storage=no
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11252 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11253 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11254 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11263 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11264 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11265 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 cat >conftest.$ac_ext <<_ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 #include <sys/types.h>
11275 #ifdef HAVE_SYS_SOCKET_H
11276 #include <sys/socket.h>
11283 static struct sockaddr_storage ac_aggr;
11284 if (ac_aggr.ss_family)
11290 rm -f conftest.$ac_objext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11292 (eval $ac_compile) 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest.$ac_objext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 #include <sys/types.h>
11324 #ifdef HAVE_SYS_SOCKET_H
11325 #include <sys/socket.h>
11332 static struct sockaddr_storage ac_aggr;
11333 if (sizeof ac_aggr.ss_family)
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341 (eval $ac_compile) 2>conftest.er1
11343 grep -v '^ *+' conftest.er1 >conftest.err
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -z "$ac_c_werror_flag"
11349 || test ! -s conftest.err'
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_cv_member_struct_sockaddr_storage_ss_family=no
11368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11372 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11373 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11374 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11382 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11383 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11384 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 #include <sys/types.h>
11394 #ifdef HAVE_SYS_SOCKET_H
11395 #include <sys/socket.h>
11402 static struct sockaddr_storage ac_aggr;
11403 if (ac_aggr.__ss_family)
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try='test -z "$ac_c_werror_flag"
11419 || test ! -s conftest.err'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest.$ac_objext'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <sys/types.h>
11443 #ifdef HAVE_SYS_SOCKET_H
11444 #include <sys/socket.h>
11451 static struct sockaddr_storage ac_aggr;
11452 if (sizeof ac_aggr.__ss_family)
11458 rm -f conftest.$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460 (eval $ac_compile) 2>conftest.er1
11462 grep -v '^ *+' conftest.er1 >conftest.err
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } &&
11467 { ac_try='test -z "$ac_c_werror_flag"
11468 || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_cv_member_struct_sockaddr_storage___ss_family=no
11487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11491 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
11492 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
11493 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
11495 cat >>confdefs.h <<_ACEOF
11496 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11501 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
11502 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
11503 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 cat >conftest.$ac_ext <<_ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 #include <sys/types.h>
11513 #ifdef HAVE_SYS_SOCKET_H
11514 #include <sys/socket.h>
11521 static struct sockaddr_storage ac_aggr;
11522 if (ac_aggr.ss_len)
11528 rm -f conftest.$ac_objext
11529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>conftest.er1
11532 grep -v '^ *+' conftest.er1 >conftest.err
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_c_werror_flag"
11538 || test ! -s conftest.err'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest.$ac_objext'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }; then
11550 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <sys/types.h>
11562 #ifdef HAVE_SYS_SOCKET_H
11563 #include <sys/socket.h>
11570 static struct sockaddr_storage ac_aggr;
11571 if (sizeof ac_aggr.ss_len)
11577 rm -f conftest.$ac_objext
11578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11579 (eval $ac_compile) 2>conftest.er1
11581 grep -v '^ *+' conftest.er1 >conftest.err
11583 cat conftest.err >&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } &&
11586 { ac_try='test -z "$ac_c_werror_flag"
11587 || test ! -s conftest.err'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest.$ac_objext'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11601 echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ac_cv_member_struct_sockaddr_storage_ss_len=no
11606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11610 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
11611 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
11612 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11620 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
11621 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
11622 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 cat >conftest.$ac_ext <<_ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 #include <sys/types.h>
11632 #ifdef HAVE_SYS_SOCKET_H
11633 #include <sys/socket.h>
11640 static struct sockaddr_storage ac_aggr;
11641 if (ac_aggr.__ss_len)
11647 rm -f conftest.$ac_objext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649 (eval $ac_compile) 2>conftest.er1
11651 grep -v '^ *+' conftest.er1 >conftest.err
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -z "$ac_c_werror_flag"
11657 || test ! -s conftest.err'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; } &&
11663 { ac_try='test -s conftest.$ac_objext'
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; }; then
11669 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11671 echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11674 cat >conftest.$ac_ext <<_ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680 #include <sys/types.h>
11681 #ifdef HAVE_SYS_SOCKET_H
11682 #include <sys/socket.h>
11689 static struct sockaddr_storage ac_aggr;
11690 if (sizeof ac_aggr.__ss_len)
11696 rm -f conftest.$ac_objext
11697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11698 (eval $ac_compile) 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag"
11706 || test ! -s conftest.err'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; } &&
11712 { ac_try='test -s conftest.$ac_objext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11720 echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11723 ac_cv_member_struct_sockaddr_storage___ss_len=no
11725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
11730 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
11731 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
11733 cat >>confdefs.h <<_ACEOF
11734 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11739 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
11740 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
11741 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 #include <sys/types.h>
11751 #ifdef HAVE_SYS_SOCKET_H
11752 #include <sys/socket.h>
11759 static struct sockaddr ac_aggr;
11760 if (ac_aggr.sa_len)
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest.$ac_objext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 ac_cv_member_struct_sockaddr_sa_len=yes
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 cat >conftest.$ac_ext <<_ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 #include <sys/types.h>
11800 #ifdef HAVE_SYS_SOCKET_H
11801 #include <sys/socket.h>
11808 static struct sockaddr ac_aggr;
11809 if (sizeof ac_aggr.sa_len)
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817 (eval $ac_compile) 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
11824 { ac_try='test -z "$ac_c_werror_flag"
11825 || test ! -s conftest.err'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest.$ac_objext'
11832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833 (eval $ac_try) 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); }; }; then
11837 ac_cv_member_struct_sockaddr_sa_len=yes
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 ac_cv_member_struct_sockaddr_sa_len=no
11844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
11849 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
11850 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
11852 cat >>confdefs.h <<_ACEOF
11853 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11859 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11860 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
11861 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 cat >conftest.$ac_ext <<_ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 #include <sys/types.h>
11871 #include <sys/socket.h>
11878 if ((struct addrinfo *) 0)
11880 if (sizeof (struct addrinfo))
11886 rm -f conftest.$ac_objext
11887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11888 (eval $ac_compile) 2>conftest.er1
11890 grep -v '^ *+' conftest.er1 >conftest.err
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try='test -z "$ac_c_werror_flag"
11896 || test ! -s conftest.err'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; } &&
11902 { ac_try='test -s conftest.$ac_objext'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 ac_cv_type_struct_addrinfo=yes
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_cv_type_struct_addrinfo=no
11915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11918 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
11919 if test $ac_cv_type_struct_addrinfo = yes; then
11921 cat >>confdefs.h <<_ACEOF
11922 #define HAVE_STRUCT_ADDRINFO 1
11929 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
11930 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
11931 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940 #include <sys/param.h>
11941 #include <sys/types.h>
11942 #include <sys/socket.h>
11943 #include <sys/ucred.h>
11948 if ((struct cmsgcred *) 0)
11950 if (sizeof (struct cmsgcred))
11956 rm -f conftest.$ac_objext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11958 (eval $ac_compile) 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag"
11966 || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest.$ac_objext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_type_struct_cmsgcred=yes
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_cv_type_struct_cmsgcred=no
11985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11987 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
11988 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
11989 if test $ac_cv_type_struct_cmsgcred = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992 #define HAVE_STRUCT_CMSGCRED 1
11997 echo "$as_me:$LINENO: checking for struct fcred" >&5
11998 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
11999 if test "${ac_cv_type_struct_fcred+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 cat >conftest.$ac_ext <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 #include <sys/param.h>
12009 #include <sys/types.h>
12010 #include <sys/socket.h>
12011 #include <sys/ucred.h>
12016 if ((struct fcred *) 0)
12018 if (sizeof (struct fcred))
12024 rm -f conftest.$ac_objext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>conftest.er1
12028 grep -v '^ *+' conftest.er1 >conftest.err
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag"
12034 || test ! -s conftest.err'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try='test -s conftest.$ac_objext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_type_struct_fcred=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_type_struct_fcred=no
12053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12055 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12056 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12057 if test $ac_cv_type_struct_fcred = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060 #define HAVE_STRUCT_FCRED 1
12065 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12066 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12067 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 cat >conftest.$ac_ext <<_ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h. */
12076 #include <sys/param.h>
12077 #include <sys/types.h>
12078 #include <sys/socket.h>
12079 #include <sys/ucred.h>
12084 if ((struct sockcred *) 0)
12086 if (sizeof (struct sockcred))
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>conftest.er1
12096 grep -v '^ *+' conftest.er1 >conftest.err
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -z "$ac_c_werror_flag"
12102 || test ! -s conftest.err'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; } &&
12108 { ac_try='test -s conftest.$ac_objext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114 ac_cv_type_struct_sockcred=yes
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 ac_cv_type_struct_sockcred=no
12121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12123 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12124 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12125 if test $ac_cv_type_struct_sockcred = yes; then
12127 cat >>confdefs.h <<_ACEOF
12128 #define HAVE_STRUCT_SOCKCRED 1
12135 echo "$as_me:$LINENO: checking for struct option" >&5
12136 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12137 if test "${ac_cv_type_struct_option+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 #ifdef HAVE_GETOPT_H
12147 #include <getopt.h>
12153 if ((struct option *) 0)
12155 if (sizeof (struct option))
12161 rm -f conftest.$ac_objext
12162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12163 (eval $ac_compile) 2>conftest.er1
12165 grep -v '^ *+' conftest.er1 >conftest.err
12167 cat conftest.err >&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -z "$ac_c_werror_flag"
12171 || test ! -s conftest.err'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; } &&
12177 { ac_try='test -s conftest.$ac_objext'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_type_struct_option=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_type_struct_option=no
12190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12192 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12193 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12194 if test $ac_cv_type_struct_option = yes; then
12196 cat >>confdefs.h <<_ACEOF
12197 #define HAVE_STRUCT_OPTION 1
12204 if test "$with_zlib" = yes; then
12205 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12206 # did not). While we could work around the lack of z_streamp, it
12207 # seems unwise to encourage people to use such old zlib versions...
12208 echo "$as_me:$LINENO: checking for z_streamp" >&5
12209 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12210 if test "${ac_cv_type_z_streamp+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 cat >conftest.$ac_ext <<_ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12224 if ((z_streamp *) 0)
12226 if (sizeof (z_streamp))
12232 rm -f conftest.$ac_objext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234 (eval $ac_compile) 2>conftest.er1
12236 grep -v '^ *+' conftest.er1 >conftest.err
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -z "$ac_c_werror_flag"
12242 || test ! -s conftest.err'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; } &&
12248 { ac_try='test -s conftest.$ac_objext'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_cv_type_z_streamp=yes
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 ac_cv_type_z_streamp=no
12261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12263 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12264 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12265 if test $ac_cv_type_z_streamp = yes; then
12268 { { echo "$as_me:$LINENO: error: zlib version is too old
12269 Use --without-zlib to disable zlib support." >&5
12270 echo "$as_me: error: zlib version is too old
12271 Use --without-zlib to disable zlib support." >&2;}
12272 { (exit 1); exit 1; }; }
12277 if test "$with_krb5" = yes; then
12278 # Check for differences between MIT and Heimdal (KTH) releases
12279 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12280 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12281 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12295 static krb5_ticket ac_aggr;
12296 if (ac_aggr.enc_part2)
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -z "$ac_c_werror_flag"
12312 || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_cv_member_krb5_ticket_enc_part2=yes
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12329 cat >conftest.$ac_ext <<_ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12340 static krb5_ticket ac_aggr;
12341 if (sizeof ac_aggr.enc_part2)
12347 rm -f conftest.$ac_objext
12348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12349 (eval $ac_compile) 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -z "$ac_c_werror_flag"
12357 || test ! -s conftest.err'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest.$ac_objext'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; }; then
12369 ac_cv_member_krb5_ticket_enc_part2=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12374 ac_cv_member_krb5_ticket_enc_part2=no
12376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12380 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12381 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12382 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12384 cat >>confdefs.h <<_ACEOF
12385 #define HAVE_KRB5_TICKET_ENC_PART2 1
12390 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12391 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12392 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12395 cat >conftest.$ac_ext <<_ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12406 static krb5_ticket ac_aggr;
12407 if (ac_aggr.client)
12413 rm -f conftest.$ac_objext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415 (eval $ac_compile) 2>conftest.er1
12417 grep -v '^ *+' conftest.er1 >conftest.err
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
12422 { ac_try='test -z "$ac_c_werror_flag"
12423 || test ! -s conftest.err'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; } &&
12429 { ac_try='test -s conftest.$ac_objext'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; }; then
12435 ac_cv_member_krb5_ticket_client=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12451 static krb5_ticket ac_aggr;
12452 if (sizeof ac_aggr.client)
12458 rm -f conftest.$ac_objext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>conftest.er1
12462 grep -v '^ *+' conftest.er1 >conftest.err
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
12467 { ac_try='test -z "$ac_c_werror_flag"
12468 || test ! -s conftest.err'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest.$ac_objext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_member_krb5_ticket_client=yes
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 ac_cv_member_krb5_ticket_client=no
12487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12491 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
12492 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
12493 if test $ac_cv_member_krb5_ticket_client = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define HAVE_KRB5_TICKET_CLIENT 1
12501 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
12502 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
12503 { (exit 1); exit 1; }; }
12508 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
12509 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
12510 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12524 static krb5_error ac_aggr;
12525 if (ac_aggr.text.data)
12531 rm -f conftest.$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag"
12541 || test ! -s conftest.err'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_cv_member_krb5_error_text_data=yes
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12569 static krb5_error ac_aggr;
12570 if (sizeof ac_aggr.text.data)
12576 rm -f conftest.$ac_objext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12578 (eval $ac_compile) 2>conftest.er1
12580 grep -v '^ *+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -z "$ac_c_werror_flag"
12586 || test ! -s conftest.err'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; } &&
12592 { ac_try='test -s conftest.$ac_objext'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12598 ac_cv_member_krb5_error_text_data=yes
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_cv_member_krb5_error_text_data=no
12605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12609 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
12610 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
12611 if test $ac_cv_member_krb5_error_text_data = yes; then
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_KRB5_ERROR_TEXT_DATA 1
12619 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
12620 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
12621 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 cat >conftest.$ac_ext <<_ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12635 static krb5_error ac_aggr;
12636 if (ac_aggr.e_data)
12642 rm -f conftest.$ac_objext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644 (eval $ac_compile) 2>conftest.er1
12646 grep -v '^ *+' conftest.er1 >conftest.err
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -z "$ac_c_werror_flag"
12652 || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try='test -s conftest.$ac_objext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 ac_cv_member_krb5_error_e_data=yes
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12669 cat >conftest.$ac_ext <<_ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12680 static krb5_error ac_aggr;
12681 if (sizeof ac_aggr.e_data)
12687 rm -f conftest.$ac_objext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag"
12697 || test ! -s conftest.err'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest.$ac_objext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_member_krb5_error_e_data=yes
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 ac_cv_member_krb5_error_e_data=no
12716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12720 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
12721 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
12722 if test $ac_cv_member_krb5_error_e_data = yes; then
12724 cat >>confdefs.h <<_ACEOF
12725 #define HAVE_KRB5_ERROR_E_DATA 1
12730 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
12731 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
12732 { (exit 1); exit 1; }; }
12741 ## Functions, global variables
12744 echo "$as_me:$LINENO: checking for int timezone" >&5
12745 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
12746 if test "${pgac_cv_var_int_timezone+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12761 res = timezone / 60;
12763 res = _timezone / 60;
12769 rm -f conftest.$ac_objext conftest$ac_exeext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } &&
12778 { ac_try='test -z "$ac_c_werror_flag"
12779 || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 pgac_cv_var_int_timezone=yes
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 pgac_cv_var_int_timezone=no
12798 rm -f conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12801 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
12802 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
12803 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12805 cat >>confdefs.h <<\_ACEOF
12806 #define HAVE_INT_TIMEZONE
12810 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
12811 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
12812 if test "${ac_cv_func_accept_return+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 if test "${ac_cv_func_accept_arg1+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 if test "${ac_cv_func_accept_arg2+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 if test "${ac_cv_func_accept_arg3+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
12825 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
12826 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12827 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12834 #ifdef HAVE_SYS_TYPES_H
12835 #include <sys/types.h>
12837 #ifdef HAVE_SYS_SOCKET_H
12838 #include <sys/socket.h>
12840 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
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_not_found=no; break 4
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12883 if test "$ac_not_found" = yes; then
12884 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
12885 echo "$as_me: error: could not determine argument types" >&2;}
12886 { (exit 1); exit 1; }; }
12888 if test "$ac_cv_func_accept_arg3" = "void"; then
12889 ac_cv_func_accept_arg3=int
12899 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
12900 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
12902 cat >>confdefs.h <<_ACEOF
12903 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
12907 cat >>confdefs.h <<_ACEOF
12908 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
12912 cat >>confdefs.h <<_ACEOF
12913 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
12917 cat >>confdefs.h <<_ACEOF
12918 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
12922 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
12923 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
12924 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 cat >conftest.$ac_ext <<_ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 #include <sys/time.h>
12937 struct timeval *tp;
12938 struct timezone *tzp;
12939 gettimeofday(tp,tzp);
12944 rm -f conftest.$ac_objext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>conftest.er1
12948 grep -v '^ *+' conftest.er1 >conftest.err
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_c_werror_flag"
12954 || test ! -s conftest.err'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; } &&
12960 { ac_try='test -s conftest.$ac_objext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 pgac_cv_func_gettimeofday_1arg=no
12968 echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12971 pgac_cv_func_gettimeofday_1arg=yes
12973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
12976 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
12977 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
12979 cat >>confdefs.h <<\_ACEOF
12980 #define GETTIMEOFDAY_1ARG
13006 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009 echo "$as_me:$LINENO: checking for $ac_func" >&5
13010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13011 if eval "test \"\${$as_ac_var+set}\" = set"; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 cat >conftest.$ac_ext <<_ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13022 #define $ac_func innocuous_$ac_func
13024 /* System header to define __stub macros and hopefully few prototypes,
13025 which can conflict with char $ac_func (); below.
13026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13027 <limits.h> exists even on freestanding compilers. */
13030 # include <limits.h>
13032 # include <assert.h>
13037 /* Override any gcc2 internal prototype to avoid an error. */
13042 /* We use char because int might match the return type of a gcc2
13043 builtin and then its argument prototype would still apply. */
13045 /* The GNU C library defines this for functions which it implements
13046 to always fail with ENOSYS. Some functions are actually named
13047 something starting with __ and the normal name is an alias. */
13048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13051 char (*f) () = $ac_func;
13060 return f != $ac_func;
13065 rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -z "$ac_c_werror_flag"
13075 || test ! -s conftest.err'
13076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; } &&
13081 { ac_try='test -s conftest$ac_exeext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 eval "$as_ac_var=yes"
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13092 eval "$as_ac_var=no"
13094 rm -f conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13099 if test `eval echo '${'$as_ac_var'}'` = yes; then
13100 cat >>confdefs.h <<_ACEOF
13101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13108 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13109 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13110 if test "${ac_cv_have_decl_fdatasync+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 <unistd.h>
13125 char *p = (char *) fdatasync;
13132 rm -f conftest.$ac_objext
13133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13134 (eval $ac_compile) 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag"
13142 || test ! -s conftest.err'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; } &&
13148 { ac_try='test -s conftest.$ac_objext'
13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13150 (eval $ac_try) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_have_decl_fdatasync=yes
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_cv_have_decl_fdatasync=no
13161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13163 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13164 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13165 if test $ac_cv_have_decl_fdatasync = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define HAVE_DECL_FDATASYNC 1
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_DECL_FDATASYNC 0
13181 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
13182 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
13183 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 cat >conftest.$ac_ext <<_ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13197 #ifndef posix_fadvise
13198 char *p = (char *) posix_fadvise;
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_have_decl_posix_fadvise=yes
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ac_cv_have_decl_posix_fadvise=no
13234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
13237 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
13238 if test $ac_cv_have_decl_posix_fadvise = yes; then
13240 cat >>confdefs.h <<_ACEOF
13241 #define HAVE_DECL_POSIX_FADVISE 1
13246 cat >>confdefs.h <<_ACEOF
13247 #define HAVE_DECL_POSIX_FADVISE 0
13254 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
13255 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
13256 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 cat >conftest.$ac_ext <<_ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 $ac_includes_default
13270 char *p = (char *) strlcpy;
13277 rm -f conftest.$ac_objext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279 (eval $ac_compile) 2>conftest.er1
13281 grep -v '^ *+' conftest.er1 >conftest.err
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } &&
13286 { ac_try='test -z "$ac_c_werror_flag"
13287 || test ! -s conftest.err'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; } &&
13293 { ac_try='test -s conftest.$ac_objext'
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_cv_have_decl_strlcpy=yes
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13304 ac_cv_have_decl_strlcpy=no
13306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13308 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
13309 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
13310 if test $ac_cv_have_decl_strlcpy = yes; then
13312 cat >>confdefs.h <<_ACEOF
13313 #define HAVE_DECL_STRLCPY 1
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_DECL_STRLCPY 0
13326 # This is probably only present on Darwin, but may as well check always
13327 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
13328 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
13329 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13343 #ifndef F_FULLFSYNC
13344 char *p = (char *) F_FULLFSYNC;
13351 rm -f conftest.$ac_objext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353 (eval $ac_compile) 2>conftest.er1
13355 grep -v '^ *+' conftest.er1 >conftest.err
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
13360 { ac_try='test -z "$ac_c_werror_flag"
13361 || test ! -s conftest.err'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; } &&
13367 { ac_try='test -s conftest.$ac_objext'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; }; then
13373 ac_cv_have_decl_F_FULLFSYNC=yes
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ac_cv_have_decl_F_FULLFSYNC=no
13380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
13383 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
13384 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
13386 cat >>confdefs.h <<_ACEOF
13387 #define HAVE_DECL_F_FULLFSYNC 1
13392 cat >>confdefs.h <<_ACEOF
13393 #define HAVE_DECL_F_FULLFSYNC 0
13402 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13403 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13404 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 cat >conftest.$ac_ext <<_ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 $ac_includes_default
13414 #include <netinet/in.h>
13419 if ((struct sockaddr_in6 *) 0)
13421 if (sizeof (struct sockaddr_in6))
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429 (eval $ac_compile) 2>conftest.er1
13431 grep -v '^ *+' conftest.er1 >conftest.err
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_c_werror_flag"
13437 || test ! -s conftest.err'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; } &&
13443 { ac_try='test -s conftest.$ac_objext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 ac_cv_type_struct_sockaddr_in6=yes
13451 echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13454 ac_cv_type_struct_sockaddr_in6=no
13456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13459 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13460 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13462 cat >>confdefs.h <<\_ACEOF
13463 #define HAVE_IPV6 1
13471 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13472 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13473 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 cat >conftest.$ac_ext <<_ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 #include <machine/vmparam.h>
13483 #include <sys/exec.h>
13488 PS_STRINGS->ps_nargvstr = 1;
13489 PS_STRINGS->ps_argvstr = "foo";
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13496 (eval $ac_link) 2>conftest.er1
13498 grep -v '^ *+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -z "$ac_c_werror_flag"
13504 || test ! -s conftest.err'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest$ac_exeext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 pgac_cv_var_PS_STRINGS=yes
13518 echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13521 pgac_cv_var_PS_STRINGS=no
13523 rm -f conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13526 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13527 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13528 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13530 cat >>confdefs.h <<\_ACEOF
13531 #define HAVE_PS_STRINGS
13537 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13538 # is missing. Yes, there are machines that have only one. We may
13539 # also decide to use snprintf.c if snprintf() is present but does not
13540 # have all the features we need --- see below.
13542 if test "$PORTNAME" = "win32"; then
13543 # Win32 gets snprintf.c built unconditionally.
13545 # To properly translate all NLS languages strings, we must support the
13546 # *printf() %$ format, which allows *printf() arguments to be selected
13547 # by position in the translated string.
13549 # libintl versions < 0.13 use the native *printf() functions, and Win32
13550 # *printf() doesn't understand %$, so we must use our /port versions,
13551 # which do understand %$. libintl versions >= 0.13 include their own
13552 # *printf versions on Win32. The libintl 0.13 release note text is:
13554 # C format strings with positions, as they arise when a translator
13555 # needs to reorder a sentence, are now supported on all platforms.
13556 # On those few platforms (NetBSD and Woe32) for which the native
13557 # printf()/fprintf()/... functions don't support such format
13558 # strings, replacements are provided through <libintl.h>.
13560 # We could use libintl >= 0.13's *printf() if we were sure that we had
13561 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13562 # to guarantee that, it is best to just use our own, so we are sure to
13563 # get %$ support. In include/port.h we disable the *printf() macros
13564 # that might have been defined by libintl.
13566 # We do this unconditionally whether NLS is used or not so we are sure
13567 # that all Win32 libraries and binaries behave the same.
13568 pgac_need_repl_snprintf=yes
13570 pgac_need_repl_snprintf=no
13572 for ac_func in snprintf
13574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13575 echo "$as_me:$LINENO: checking for $ac_func" >&5
13576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13577 if eval "test \"\${$as_ac_var+set}\" = set"; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 cat >conftest.$ac_ext <<_ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13588 #define $ac_func innocuous_$ac_func
13590 /* System header to define __stub macros and hopefully few prototypes,
13591 which can conflict with char $ac_func (); below.
13592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13593 <limits.h> exists even on freestanding compilers. */
13596 # include <limits.h>
13598 # include <assert.h>
13603 /* Override any gcc2 internal prototype to avoid an error. */
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13611 /* The GNU C library defines this for functions which it implements
13612 to always fail with ENOSYS. Some functions are actually named
13613 something starting with __ and the normal name is an alias. */
13614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13617 char (*f) () = $ac_func;
13626 return f != $ac_func;
13631 rm -f conftest.$ac_objext conftest$ac_exeext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13633 (eval $ac_link) 2>conftest.er1
13635 grep -v '^ *+' conftest.er1 >conftest.err
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_c_werror_flag"
13641 || test ! -s conftest.err'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } &&
13647 { ac_try='test -s conftest$ac_exeext'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 eval "$as_ac_var=yes"
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13658 eval "$as_ac_var=no"
13660 rm -f conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13665 if test `eval echo '${'$as_ac_var'}'` = yes; then
13666 cat >>confdefs.h <<_ACEOF
13667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13671 pgac_need_repl_snprintf=yes
13676 for ac_func in vsnprintf
13678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13679 echo "$as_me:$LINENO: checking for $ac_func" >&5
13680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13681 if eval "test \"\${$as_ac_var+set}\" = set"; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 cat >conftest.$ac_ext <<_ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13692 #define $ac_func innocuous_$ac_func
13694 /* System header to define __stub macros and hopefully few prototypes,
13695 which can conflict with char $ac_func (); below.
13696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13697 <limits.h> exists even on freestanding compilers. */
13700 # include <limits.h>
13702 # include <assert.h>
13707 /* Override any gcc2 internal prototype to avoid an error. */
13712 /* We use char because int might match the return type of a gcc2
13713 builtin and then its argument prototype would still apply. */
13715 /* The GNU C library defines this for functions which it implements
13716 to always fail with ENOSYS. Some functions are actually named
13717 something starting with __ and the normal name is an alias. */
13718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13721 char (*f) () = $ac_func;
13730 return f != $ac_func;
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13737 (eval $ac_link) 2>conftest.er1
13739 grep -v '^ *+' conftest.er1 >conftest.err
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_c_werror_flag"
13745 || test ! -s conftest.err'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest$ac_exeext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 eval "$as_ac_var=yes"
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 eval "$as_ac_var=no"
13764 rm -f conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13769 if test `eval echo '${'$as_ac_var'}'` = yes; then
13770 cat >>confdefs.h <<_ACEOF
13771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13775 pgac_need_repl_snprintf=yes
13782 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
13783 # include/c.h will provide declarations. Note this is a separate test
13784 # from whether the functions exist in the C library --- there are
13785 # systems that have the functions but don't bother to declare them :-(
13787 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13788 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13789 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13790 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 cat >conftest.$ac_ext <<_ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 $ac_includes_default
13803 char *p = (char *) snprintf;
13810 rm -f conftest.$ac_objext
13811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13812 (eval $ac_compile) 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
13819 { ac_try='test -z "$ac_c_werror_flag"
13820 || test ! -s conftest.err'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 ac_cv_have_decl_snprintf=yes
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13837 ac_cv_have_decl_snprintf=no
13839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13841 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13842 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13843 if test $ac_cv_have_decl_snprintf = yes; then
13845 cat >>confdefs.h <<_ACEOF
13846 #define HAVE_DECL_SNPRINTF 1
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_DECL_SNPRINTF 0
13857 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13858 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13859 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 $ac_includes_default
13873 char *p = (char *) vsnprintf;
13880 rm -f conftest.$ac_objext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882 (eval $ac_compile) 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag"
13890 || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest.$ac_objext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_have_decl_vsnprintf=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_have_decl_vsnprintf=no
13909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13911 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13912 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13913 if test $ac_cv_have_decl_vsnprintf = yes; then
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_DECL_VSNPRINTF 1
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_DECL_VSNPRINTF 0
13931 echo "$as_me:$LINENO: checking for isinf" >&5
13932 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
13933 if test "${ac_cv_func_isinf+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 cat >conftest.$ac_ext <<_ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13944 double glob_double;
13949 return isinf(glob_double) ? 0 : 1;
13954 rm -f conftest.$ac_objext conftest$ac_exeext
13955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13956 (eval $ac_link) 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
13963 { ac_try='test -z "$ac_c_werror_flag"
13964 || test ! -s conftest.err'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; } &&
13970 { ac_try='test -s conftest$ac_exeext'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_func_isinf=yes
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981 ac_cv_func_isinf=no
13983 rm -f conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13986 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13987 echo "${ECHO_T}$ac_cv_func_isinf" >&6
13989 if test $ac_cv_func_isinf = yes ; then
13991 cat >>confdefs.h <<\_ACEOF
13992 #define HAVE_ISINF 1
13997 "isinf.$ac_objext" | \
13998 *" isinf.$ac_objext" | \
13999 "isinf.$ac_objext "* | \
14000 *" isinf.$ac_objext "* ) ;;
14001 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14004 # Look for a way to implement a substitute for isinf()
14009 for ac_func in fpclass fp_class fp_class_d class
14011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14012 echo "$as_me:$LINENO: checking for $ac_func" >&5
14013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14014 if eval "test \"\${$as_ac_var+set}\" = set"; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14025 #define $ac_func innocuous_$ac_func
14027 /* System header to define __stub macros and hopefully few prototypes,
14028 which can conflict with char $ac_func (); below.
14029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14030 <limits.h> exists even on freestanding compilers. */
14033 # include <limits.h>
14035 # include <assert.h>
14040 /* Override any gcc2 internal prototype to avoid an error. */
14045 /* We use char because int might match the return type of a gcc2
14046 builtin and then its argument prototype would still apply. */
14048 /* The GNU C library defines this for functions which it implements
14049 to always fail with ENOSYS. Some functions are actually named
14050 something starting with __ and the normal name is an alias. */
14051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14054 char (*f) () = $ac_func;
14063 return f != $ac_func;
14068 rm -f conftest.$ac_objext conftest$ac_exeext
14069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14070 (eval $ac_link) 2>conftest.er1
14072 grep -v '^ *+' conftest.er1 >conftest.err
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
14077 { ac_try='test -z "$ac_c_werror_flag"
14078 || test ! -s conftest.err'
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; } &&
14084 { ac_try='test -s conftest$ac_exeext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 eval "$as_ac_var=yes"
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 eval "$as_ac_var=no"
14097 rm -f conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14102 if test `eval echo '${'$as_ac_var'}'` = yes; then
14103 cat >>confdefs.h <<_ACEOF
14104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14126 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcpy strtol strtoul unsetenv
14128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14129 echo "$as_me:$LINENO: checking for $ac_func" >&5
14130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14131 if eval "test \"\${$as_ac_var+set}\" = set"; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14142 #define $ac_func innocuous_$ac_func
14144 /* System header to define __stub macros and hopefully few prototypes,
14145 which can conflict with char $ac_func (); below.
14146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14147 <limits.h> exists even on freestanding compilers. */
14150 # include <limits.h>
14152 # include <assert.h>
14157 /* Override any gcc2 internal prototype to avoid an error. */
14162 /* We use char because int might match the return type of a gcc2
14163 builtin and then its argument prototype would still apply. */
14165 /* The GNU C library defines this for functions which it implements
14166 to always fail with ENOSYS. Some functions are actually named
14167 something starting with __ and the normal name is an alias. */
14168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14171 char (*f) () = $ac_func;
14180 return f != $ac_func;
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14187 (eval $ac_link) 2>conftest.er1
14189 grep -v '^ *+' conftest.er1 >conftest.err
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -z "$ac_c_werror_flag"
14195 || test ! -s conftest.err'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest$ac_exeext'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 eval "$as_ac_var=yes"
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 eval "$as_ac_var=no"
14214 rm -f conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14219 if test `eval echo '${'$as_ac_var'}'` = yes; then
14220 cat >>confdefs.h <<_ACEOF
14221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14226 "$ac_func.$ac_objext" | \
14227 *" $ac_func.$ac_objext" | \
14228 "$ac_func.$ac_objext "* | \
14229 *" $ac_func.$ac_objext "* ) ;;
14230 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14238 # System's version of getaddrinfo(), if any, may be used only if we found
14239 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14240 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14241 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14242 # because we want to use our own getaddrinfo.c on Windows anyway.)
14243 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14245 for ac_func in getaddrinfo
14247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14248 echo "$as_me:$LINENO: checking for $ac_func" >&5
14249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14250 if eval "test \"\${$as_ac_var+set}\" = set"; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 cat >conftest.$ac_ext <<_ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14261 #define $ac_func innocuous_$ac_func
14263 /* System header to define __stub macros and hopefully few prototypes,
14264 which can conflict with char $ac_func (); below.
14265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14266 <limits.h> exists even on freestanding compilers. */
14269 # include <limits.h>
14271 # include <assert.h>
14276 /* Override any gcc2 internal prototype to avoid an error. */
14281 /* We use char because int might match the return type of a gcc2
14282 builtin and then its argument prototype would still apply. */
14284 /* The GNU C library defines this for functions which it implements
14285 to always fail with ENOSYS. Some functions are actually named
14286 something starting with __ and the normal name is an alias. */
14287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14290 char (*f) () = $ac_func;
14299 return f != $ac_func;
14304 rm -f conftest.$ac_objext conftest$ac_exeext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14306 (eval $ac_link) 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag"
14314 || test ! -s conftest.err'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest$ac_exeext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 eval "$as_ac_var=yes"
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 eval "$as_ac_var=no"
14333 rm -f conftest.err conftest.$ac_objext \
14334 conftest$ac_exeext conftest.$ac_ext
14336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14338 if test `eval echo '${'$as_ac_var'}'` = yes; then
14339 cat >>confdefs.h <<_ACEOF
14340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14345 "$ac_func.$ac_objext" | \
14346 *" $ac_func.$ac_objext" | \
14347 "$ac_func.$ac_objext "* | \
14348 *" $ac_func.$ac_objext "* ) ;;
14349 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14358 "getaddrinfo.$ac_objext" | \
14359 *" getaddrinfo.$ac_objext" | \
14360 "getaddrinfo.$ac_objext "* | \
14361 *" getaddrinfo.$ac_objext "* ) ;;
14362 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14367 # similarly, use system's getopt_long() only if system provides struct option.
14368 if test x"$ac_cv_type_struct_option" = xyes ; then
14370 for ac_func in getopt_long
14372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14373 echo "$as_me:$LINENO: checking for $ac_func" >&5
14374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14375 if eval "test \"\${$as_ac_var+set}\" = set"; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 cat >conftest.$ac_ext <<_ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14386 #define $ac_func innocuous_$ac_func
14388 /* System header to define __stub macros and hopefully few prototypes,
14389 which can conflict with char $ac_func (); below.
14390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14391 <limits.h> exists even on freestanding compilers. */
14394 # include <limits.h>
14396 # include <assert.h>
14401 /* Override any gcc2 internal prototype to avoid an error. */
14406 /* We use char because int might match the return type of a gcc2
14407 builtin and then its argument prototype would still apply. */
14409 /* The GNU C library defines this for functions which it implements
14410 to always fail with ENOSYS. Some functions are actually named
14411 something starting with __ and the normal name is an alias. */
14412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14415 char (*f) () = $ac_func;
14424 return f != $ac_func;
14429 rm -f conftest.$ac_objext conftest$ac_exeext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14431 (eval $ac_link) 2>conftest.er1
14433 grep -v '^ *+' conftest.er1 >conftest.err
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest$ac_exeext'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 eval "$as_ac_var=yes"
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 eval "$as_ac_var=no"
14458 rm -f conftest.err conftest.$ac_objext \
14459 conftest$ac_exeext conftest.$ac_ext
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14463 if test `eval echo '${'$as_ac_var'}'` = yes; then
14464 cat >>confdefs.h <<_ACEOF
14465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14470 "$ac_func.$ac_objext" | \
14471 *" $ac_func.$ac_objext" | \
14472 "$ac_func.$ac_objext "* | \
14473 *" $ac_func.$ac_objext "* ) ;;
14474 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14483 "getopt_long.$ac_objext" | \
14484 *" getopt_long.$ac_objext" | \
14485 "getopt_long.$ac_objext "* | \
14486 *" getopt_long.$ac_objext "* ) ;;
14487 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14492 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14493 # We override the previous test that said fseeko/ftello didn't exist
14494 # OS tests are also done in include/c.h and port/fseeko.c
14495 case $host_os in bsdi*|netbsd*)
14496 ac_cv_func_fseeko=yes
14500 if test "$PORTNAME" = "win32"; then
14502 "gettimeofday.$ac_objext" | \
14503 *" gettimeofday.$ac_objext" | \
14504 "gettimeofday.$ac_objext "* | \
14505 *" gettimeofday.$ac_objext "* ) ;;
14506 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14510 "kill.$ac_objext" | \
14511 *" kill.$ac_objext" | \
14512 "kill.$ac_objext "* | \
14513 *" kill.$ac_objext "* ) ;;
14514 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14518 "open.$ac_objext" | \
14519 *" open.$ac_objext" | \
14520 "open.$ac_objext "* | \
14521 *" open.$ac_objext "* ) ;;
14522 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14526 "rand.$ac_objext" | \
14527 *" rand.$ac_objext" | \
14528 "rand.$ac_objext "* | \
14529 *" rand.$ac_objext "* ) ;;
14530 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14534 "win32error.$ac_objext" | \
14535 *" win32error.$ac_objext" | \
14536 "win32error.$ac_objext "* | \
14537 *" win32error.$ac_objext "* ) ;;
14538 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_SYMLINK 1
14548 if test "$with_readline" = yes; then
14549 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14550 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14558 #ifdef HAVE_READLINE_READLINE_H
14559 # include <readline/readline.h>
14560 #elif defined(HAVE_READLINE_H)
14561 # include <readline.h>
14567 rl_completion_append_character = 'x';
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574 (eval $ac_link) 2>conftest.er1
14576 grep -v '^ *+' conftest.er1 >conftest.err
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest$ac_exeext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 echo "$as_me:$LINENO: result: yes" >&5
14595 echo "${ECHO_T}yes" >&6
14597 cat >>confdefs.h <<\_ACEOF
14598 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 echo "$as_me:$LINENO: result: no" >&5
14606 echo "${ECHO_T}no" >&6
14608 rm -f conftest.err conftest.$ac_objext \
14609 conftest$ac_exeext conftest.$ac_ext
14612 for ac_func in rl_completion_matches rl_filename_completion_function
14614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14615 echo "$as_me:$LINENO: checking for $ac_func" >&5
14616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14617 if eval "test \"\${$as_ac_var+set}\" = set"; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14628 #define $ac_func innocuous_$ac_func
14630 /* System header to define __stub macros and hopefully few prototypes,
14631 which can conflict with char $ac_func (); below.
14632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14633 <limits.h> exists even on freestanding compilers. */
14636 # include <limits.h>
14638 # include <assert.h>
14643 /* Override any gcc2 internal prototype to avoid an error. */
14648 /* We use char because int might match the return type of a gcc2
14649 builtin and then its argument prototype would still apply. */
14651 /* The GNU C library defines this for functions which it implements
14652 to always fail with ENOSYS. Some functions are actually named
14653 something starting with __ and the normal name is an alias. */
14654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14657 char (*f) () = $ac_func;
14666 return f != $ac_func;
14671 rm -f conftest.$ac_objext conftest$ac_exeext
14672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14673 (eval $ac_link) 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag"
14681 || test ! -s conftest.err'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; } &&
14687 { ac_try='test -s conftest$ac_exeext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 eval "$as_ac_var=yes"
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 eval "$as_ac_var=no"
14700 rm -f conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14705 if test `eval echo '${'$as_ac_var'}'` = yes; then
14706 cat >>confdefs.h <<_ACEOF
14707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14714 for ac_func in replace_history_entry
14716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14717 echo "$as_me:$LINENO: checking for $ac_func" >&5
14718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14719 if eval "test \"\${$as_ac_var+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. */
14728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14730 #define $ac_func innocuous_$ac_func
14732 /* System header to define __stub macros and hopefully few prototypes,
14733 which can conflict with char $ac_func (); below.
14734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14735 <limits.h> exists even on freestanding compilers. */
14738 # include <limits.h>
14740 # include <assert.h>
14745 /* Override any gcc2 internal prototype to avoid an error. */
14750 /* We use char because int might match the return type of a gcc2
14751 builtin and then its argument prototype would still apply. */
14753 /* The GNU C library defines this for functions which it implements
14754 to always fail with ENOSYS. Some functions are actually named
14755 something starting with __ and the normal name is an alias. */
14756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14759 char (*f) () = $ac_func;
14768 return f != $ac_func;
14773 rm -f conftest.$ac_objext conftest$ac_exeext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14775 (eval $ac_link) 2>conftest.er1
14777 grep -v '^ *+' conftest.er1 >conftest.err
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest$ac_exeext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 eval "$as_ac_var=yes"
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 eval "$as_ac_var=no"
14802 rm -f conftest.err conftest.$ac_objext \
14803 conftest$ac_exeext conftest.$ac_ext
14805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14807 if test `eval echo '${'$as_ac_var'}'` = yes; then
14808 cat >>confdefs.h <<_ACEOF
14809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14818 echo "$as_me:$LINENO: checking for finite" >&5
14819 echo $ECHO_N "checking for finite... $ECHO_C" >&6
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14828 double glob_double;
14833 return finite(glob_double) ? 0 : 1;
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840 (eval $ac_link) 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -z "$ac_c_werror_flag"
14848 || test ! -s conftest.err'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; } &&
14854 { ac_try='test -s conftest$ac_exeext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_FINITE 1
14865 echo "$as_me:$LINENO: result: yes" >&5
14866 echo "${ECHO_T}yes" >&6
14868 echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14871 echo "$as_me:$LINENO: result: no" >&5
14872 echo "${ECHO_T}no" >&6
14874 rm -f conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14877 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
14878 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 #include <setjmp.h>
14889 sigjmp_buf x; sigsetjmp(x, 1);
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14896 (eval $ac_link) 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag"
14904 || test ! -s conftest.err'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; } &&
14910 { ac_try='test -s conftest$ac_exeext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14917 cat >>confdefs.h <<\_ACEOF
14918 #define HAVE_SIGSETJMP 1
14921 echo "$as_me:$LINENO: result: yes" >&5
14922 echo "${ECHO_T}yes" >&6
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 echo "$as_me:$LINENO: result: no" >&5
14928 echo "${ECHO_T}no" >&6
14930 rm -f conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14933 echo "$as_me:$LINENO: checking for syslog" >&5
14934 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14935 if test "${ac_cv_func_syslog+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
14945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14946 #define syslog innocuous_syslog
14948 /* System header to define __stub macros and hopefully few prototypes,
14949 which can conflict with char syslog (); below.
14950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14951 <limits.h> exists even on freestanding compilers. */
14954 # include <limits.h>
14956 # include <assert.h>
14961 /* Override any gcc2 internal prototype to avoid an error. */
14966 /* We use char because int might match the return type of a gcc2
14967 builtin and then its argument prototype would still apply. */
14969 /* The GNU C library defines this for functions which it implements
14970 to always fail with ENOSYS. Some functions are actually named
14971 something starting with __ and the normal name is an alias. */
14972 #if defined (__stub_syslog) || defined (__stub___syslog)
14975 char (*f) () = syslog;
14984 return f != syslog;
14989 rm -f conftest.$ac_objext conftest$ac_exeext
14990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14991 (eval $ac_link) 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } &&
14998 { ac_try='test -z "$ac_c_werror_flag"
14999 || test ! -s conftest.err'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try='test -s conftest$ac_exeext'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 ac_cv_func_syslog=yes
15013 echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15016 ac_cv_func_syslog=no
15018 rm -f conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15021 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15022 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15023 if test $ac_cv_func_syslog = yes; then
15024 if test "${ac_cv_header_syslog_h+set}" = set; then
15025 echo "$as_me:$LINENO: checking for syslog.h" >&5
15026 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15027 if test "${ac_cv_header_syslog_h+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15031 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15033 # Is the header compilable?
15034 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15035 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 $ac_includes_default
15043 #include <syslog.h>
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>conftest.er1
15049 grep -v '^ *+' conftest.er1 >conftest.err
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -z "$ac_c_werror_flag"
15055 || test ! -s conftest.err'
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); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_header_compiler=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_compiler=no
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076 echo "${ECHO_T}$ac_header_compiler" >&6
15078 # Is the header present?
15079 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15080 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15081 cat >conftest.$ac_ext <<_ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <syslog.h>
15089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15092 grep -v '^ *+' conftest.er1 >conftest.err
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } >/dev/null; then
15097 if test -s conftest.err; then
15098 ac_cpp_err=$ac_c_preproc_warn_flag
15099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15106 if test -z "$ac_cpp_err"; then
15107 ac_header_preproc=yes
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ac_header_preproc=no
15114 rm -f conftest.err conftest.$ac_ext
15115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15121 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15128 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15142 ## ---------------------------------------- ##
15143 ## Report this to pgsql-bugs@postgresql.org ##
15144 ## ---------------------------------------- ##
15147 sed "s/^/$as_me: WARNING: /" >&2
15150 echo "$as_me:$LINENO: checking for syslog.h" >&5
15151 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15152 if test "${ac_cv_header_syslog_h+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 ac_cv_header_syslog_h=$ac_header_preproc
15157 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15158 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15161 if test $ac_cv_header_syslog_h = yes; then
15163 cat >>confdefs.h <<\_ACEOF
15164 #define HAVE_SYSLOG 1
15173 echo "$as_me:$LINENO: checking for optreset" >&5
15174 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15175 if test "${pgac_cv_var_int_optreset+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 cat >conftest.$ac_ext <<_ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 #include <unistd.h>
15188 extern int optreset; optreset = 1;
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -z "$ac_c_werror_flag"
15203 || test ! -s conftest.err'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 pgac_cv_var_int_optreset=yes
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15220 pgac_cv_var_int_optreset=no
15222 rm -f conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
15225 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15226 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15227 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_INT_OPTRESET 1
15237 for ac_func in strtoll strtoq
15239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15240 echo "$as_me:$LINENO: checking for $ac_func" >&5
15241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15242 if eval "test \"\${$as_ac_var+set}\" = set"; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15253 #define $ac_func innocuous_$ac_func
15255 /* System header to define __stub macros and hopefully few prototypes,
15256 which can conflict with char $ac_func (); below.
15257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15258 <limits.h> exists even on freestanding compilers. */
15261 # include <limits.h>
15263 # include <assert.h>
15268 /* Override any gcc2 internal prototype to avoid an error. */
15273 /* We use char because int might match the return type of a gcc2
15274 builtin and then its argument prototype would still apply. */
15276 /* The GNU C library defines this for functions which it implements
15277 to always fail with ENOSYS. Some functions are actually named
15278 something starting with __ and the normal name is an alias. */
15279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15282 char (*f) () = $ac_func;
15291 return f != $ac_func;
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15298 (eval $ac_link) 2>conftest.er1
15300 grep -v '^ *+' conftest.er1 >conftest.err
15302 cat conftest.err >&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -z "$ac_c_werror_flag"
15306 || test ! -s conftest.err'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; } &&
15312 { ac_try='test -s conftest$ac_exeext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 eval "$as_ac_var=yes"
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 eval "$as_ac_var=no"
15325 rm -f conftest.err conftest.$ac_objext \
15326 conftest$ac_exeext conftest.$ac_ext
15328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15330 if test `eval echo '${'$as_ac_var'}'` = yes; then
15331 cat >>confdefs.h <<_ACEOF
15332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15340 for ac_func in strtoull strtouq
15342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15343 echo "$as_me:$LINENO: checking for $ac_func" >&5
15344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15345 if eval "test \"\${$as_ac_var+set}\" = set"; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15356 #define $ac_func innocuous_$ac_func
15358 /* System header to define __stub macros and hopefully few prototypes,
15359 which can conflict with char $ac_func (); below.
15360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15361 <limits.h> exists even on freestanding compilers. */
15364 # include <limits.h>
15366 # include <assert.h>
15371 /* Override any gcc2 internal prototype to avoid an error. */
15376 /* We use char because int might match the return type of a gcc2
15377 builtin and then its argument prototype would still apply. */
15379 /* The GNU C library defines this for functions which it implements
15380 to always fail with ENOSYS. Some functions are actually named
15381 something starting with __ and the normal name is an alias. */
15382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15385 char (*f) () = $ac_func;
15394 return f != $ac_func;
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15401 (eval $ac_link) 2>conftest.er1
15403 grep -v '^ *+' conftest.er1 >conftest.err
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } &&
15408 { ac_try='test -z "$ac_c_werror_flag"
15409 || test ! -s conftest.err'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; } &&
15415 { ac_try='test -s conftest$ac_exeext'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; }; then
15421 eval "$as_ac_var=yes"
15423 echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 eval "$as_ac_var=no"
15428 rm -f conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15433 if test `eval echo '${'$as_ac_var'}'` = yes; then
15434 cat >>confdefs.h <<_ACEOF
15435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15442 # Check for one of atexit() or on_exit()
15444 for ac_func in atexit
15446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15447 echo "$as_me:$LINENO: checking for $ac_func" >&5
15448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15449 if eval "test \"\${$as_ac_var+set}\" = set"; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 cat >conftest.$ac_ext <<_ACEOF
15455 cat confdefs.h >>conftest.$ac_ext
15456 cat >>conftest.$ac_ext <<_ACEOF
15457 /* end confdefs.h. */
15458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15460 #define $ac_func innocuous_$ac_func
15462 /* System header to define __stub macros and hopefully few prototypes,
15463 which can conflict with char $ac_func (); below.
15464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15465 <limits.h> exists even on freestanding compilers. */
15468 # include <limits.h>
15470 # include <assert.h>
15475 /* Override any gcc2 internal prototype to avoid an error. */
15480 /* We use char because int might match the return type of a gcc2
15481 builtin and then its argument prototype would still apply. */
15483 /* The GNU C library defines this for functions which it implements
15484 to always fail with ENOSYS. Some functions are actually named
15485 something starting with __ and the normal name is an alias. */
15486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15489 char (*f) () = $ac_func;
15498 return f != $ac_func;
15503 rm -f conftest.$ac_objext conftest$ac_exeext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15505 (eval $ac_link) 2>conftest.er1
15507 grep -v '^ *+' conftest.er1 >conftest.err
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } &&
15512 { ac_try='test -z "$ac_c_werror_flag"
15513 || test ! -s conftest.err'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; } &&
15519 { ac_try='test -s conftest$ac_exeext'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); }; }; then
15525 eval "$as_ac_var=yes"
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15530 eval "$as_ac_var=no"
15532 rm -f conftest.err conftest.$ac_objext \
15533 conftest$ac_exeext conftest.$ac_ext
15535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15537 if test `eval echo '${'$as_ac_var'}'` = yes; then
15538 cat >>confdefs.h <<_ACEOF
15539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15544 for ac_func in on_exit
15546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15547 echo "$as_me:$LINENO: checking for $ac_func" >&5
15548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15549 if eval "test \"\${$as_ac_var+set}\" = set"; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 cat >conftest.$ac_ext <<_ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15560 #define $ac_func innocuous_$ac_func
15562 /* System header to define __stub macros and hopefully few prototypes,
15563 which can conflict with char $ac_func (); below.
15564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15565 <limits.h> exists even on freestanding compilers. */
15568 # include <limits.h>
15570 # include <assert.h>
15575 /* Override any gcc2 internal prototype to avoid an error. */
15580 /* We use char because int might match the return type of a gcc2
15581 builtin and then its argument prototype would still apply. */
15583 /* The GNU C library defines this for functions which it implements
15584 to always fail with ENOSYS. Some functions are actually named
15585 something starting with __ and the normal name is an alias. */
15586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15589 char (*f) () = $ac_func;
15598 return f != $ac_func;
15603 rm -f conftest.$ac_objext conftest$ac_exeext
15604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15605 (eval $ac_link) 2>conftest.er1
15607 grep -v '^ *+' conftest.er1 >conftest.err
15609 cat conftest.err >&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -z "$ac_c_werror_flag"
15613 || test ! -s conftest.err'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; } &&
15619 { ac_try='test -s conftest$ac_exeext'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 eval "$as_ac_var=yes"
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 eval "$as_ac_var=no"
15632 rm -f conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
15635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15637 if test `eval echo '${'$as_ac_var'}'` = yes; then
15638 cat >>confdefs.h <<_ACEOF
15639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15643 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
15644 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
15645 { (exit 1); exit 1; }; }
15653 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15654 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15655 if test "${ac_cv_sys_largefile_source+set}" = set; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 ac_cv_sys_largefile_source=no
15660 cat >conftest.$ac_ext <<_ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15675 rm -f conftest.$ac_objext
15676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15677 (eval $ac_compile) 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_objext'
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
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 #define _LARGEFILE_SOURCE 1
15720 rm -f conftest.$ac_objext
15721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15722 (eval $ac_compile) 2>conftest.er1
15724 grep -v '^ *+' conftest.er1 >conftest.err
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -z "$ac_c_werror_flag"
15730 || test ! -s conftest.err'
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_cv_sys_largefile_source=1; break
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15752 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15753 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15754 if test "$ac_cv_sys_largefile_source" != no; then
15756 cat >>confdefs.h <<_ACEOF
15757 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15763 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15764 # in glibc 2.1.3, but that breaks too many other things.
15765 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15766 echo "$as_me:$LINENO: checking for fseeko" >&5
15767 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15768 if test "${ac_cv_func_fseeko+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15781 return fseeko && fseeko (stdin, 0, 0);
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788 (eval $ac_link) 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest$ac_exeext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_cv_func_fseeko=yes
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_cv_func_fseeko=no
15815 rm -f conftest.err conftest.$ac_objext \
15816 conftest$ac_exeext conftest.$ac_ext
15818 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15819 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15820 if test $ac_cv_func_fseeko = yes; then
15822 cat >>confdefs.h <<\_ACEOF
15823 #define HAVE_FSEEKO 1
15832 # For each platform, we need to know about any special compile and link
15833 # libraries, and whether the normal C function names are thread-safe.
15834 # See the comment at the top of src/port/thread.c for more information.
15836 if test "$enable_thread_safety" = yes; then
15842 ac_cpp='$CPP $CPPFLAGS'
15843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15849 # We used to check for pthread.h first, but this fails if pthread.h
15850 # requires special compiler flags (e.g. on True64 or Sequent).
15851 # It gets checked for in the link test anyway.
15853 # First of all, check if the user has set any of the PTHREAD_LIBS,
15854 # etcetera environment variables, and if threads linking works using
15856 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15857 save_CFLAGS="$CFLAGS"
15858 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15860 LIBS="$PTHREAD_LIBS $LIBS"
15861 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15862 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
15863 cat >conftest.$ac_ext <<_ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15870 /* Override any gcc2 internal prototype to avoid an error. */
15874 /* We use char because int might match the return type of a gcc2
15875 builtin and then its argument prototype would still apply. */
15876 char pthread_join ();
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887 (eval $ac_link) 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try='test -s conftest$ac_exeext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15913 rm -f conftest.err conftest.$ac_objext \
15914 conftest$ac_exeext conftest.$ac_ext
15915 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15916 echo "${ECHO_T}$acx_pthread_ok" >&6
15917 if test x"$acx_pthread_ok" = xno; then
15922 CFLAGS="$save_CFLAGS"
15925 # We must check for the threads library under a number of different
15926 # names; the ordering is very important because some systems
15927 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15928 # libraries is broken (non-POSIX).
15930 # Create a list of thread flags to try. Items starting with a "-" are
15931 # C compiler flags, and other items are library names, except for "none"
15932 # which indicates that we try without any flags at all, and "pthread-config"
15933 # which is a program returning the flags for the Pth emulation library.
15935 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
15937 # The ordering *is* (sometimes) important. Some notes on the
15938 # individual items follow:
15940 # pthreads: AIX (must check this before -lpthread)
15941 # none: in case threads are in libc; should be tried before -Kthread and
15942 # other compiler flags to prevent continual compiler warnings
15943 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15944 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15945 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15946 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15947 # -pthreads: Solaris/gcc
15948 # -mthreads: Mingw32/gcc, Lynx/gcc
15949 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15950 # doesn't hurt to check since this sometimes defines pthreads too;
15951 # also defines -D_REENTRANT)
15952 # pthread: Linux, etcetera
15953 # --thread-safe: KAI C++
15954 # pthread-config: use pthread-config program (for GNU Pth library)
15956 case "${host_cpu}-${host_os}" in
15959 # On Solaris (at least, for some versions), libc contains stubbed
15960 # (non-functional) versions of the pthreads routines, so link-based
15961 # tests will erroneously succeed. (We need to link with -pthread or
15962 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15963 # a function called by this macro, so we could check for that, but
15964 # who knows whether they'll stub that too in a future libc.) So,
15965 # we'll just look for -pthreads and -lpthread first:
15967 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
15971 if test x"$acx_pthread_ok" = xno; then
15972 for flag in $acx_pthread_flags; do
15974 tryPTHREAD_CFLAGS=""
15978 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15979 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
15983 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15984 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
15985 tryPTHREAD_CFLAGS="$flag"
15989 # skip this if we already have flags defined, for PostgreSQL
15990 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
15991 # Extract the first word of "pthread-config", so it can be a program name with args.
15992 set dummy pthread-config; ac_word=$2
15993 echo "$as_me:$LINENO: checking for $ac_word" >&5
15994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15995 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15996 echo $ECHO_N "(cached) $ECHO_C" >&6
15998 if test -n "$acx_pthread_config"; then
15999 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16002 for as_dir in $PATH
16005 test -z "$as_dir" && as_dir=.
16006 for ac_exec_ext in '' $ac_executable_extensions; do
16007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16008 ac_cv_prog_acx_pthread_config="yes"
16009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16015 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16018 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16019 if test -n "$acx_pthread_config"; then
16020 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16021 echo "${ECHO_T}$acx_pthread_config" >&6
16023 echo "$as_me:$LINENO: result: no" >&5
16024 echo "${ECHO_T}no" >&6
16027 if test x"$acx_pthread_config" = xno; then continue; fi
16028 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16029 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16033 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16034 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16035 tryPTHREAD_LIBS="-l$flag"
16040 save_CFLAGS="$CFLAGS"
16041 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16042 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16044 # Check for various functions. We must include pthread.h,
16045 # since some functions may be macros. (On the Sequent, we
16046 # need a special flag -Kthread to make this header compile.)
16047 # We check for pthread_join because it is in -lpthread on IRIX
16048 # while pthread_create is in libc. We check for pthread_attr_init
16049 # due to DEC craziness with -lpthreads. We check for
16050 # pthread_cleanup_push because it is one of the few pthread
16051 # functions on Solaris that doesn't have a non-functional libc stub.
16052 # We try pthread_create on general principles.
16053 cat >conftest.$ac_ext <<_ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 #include <pthread.h>
16063 pthread_t th; pthread_join(th, 0);
16064 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16065 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16070 rm -f conftest.$ac_objext conftest$ac_exeext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16072 (eval $ac_link) 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest$ac_exeext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16099 rm -f conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
16102 if test "x$acx_pthread_ok" = xyes; then
16103 # Don't use options that are ignored by the compiler.
16104 # We find them by checking stderror.
16105 cat >conftest.$ac_ext <<_ACEOF
16107 main (int argc, char **argv)
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16116 # we continue with more flags because Linux needs -lpthread
16117 # for libpq builds on PostgreSQL. The test above only
16118 # tests for building binaries, not shared libraries.
16119 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16120 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16121 else acx_pthread_ok=no
16126 CFLAGS="$save_CFLAGS"
16128 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16129 echo "${ECHO_T}$acx_pthread_ok" >&6
16133 # Various other checks:
16134 if test "x$acx_pthread_ok" = xyes; then
16136 LIBS="$PTHREAD_LIBS $LIBS"
16137 save_CFLAGS="$CFLAGS"
16138 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16140 # Detect AIX lossage: threads are created detached by default
16141 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16142 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16143 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 #include <pthread.h>
16154 int attr=PTHREAD_CREATE_JOINABLE;
16159 rm -f conftest.$ac_objext conftest$ac_exeext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16161 (eval $ac_link) 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } &&
16168 { ac_try='test -z "$ac_c_werror_flag"
16169 || test ! -s conftest.err'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; } &&
16175 { ac_try='test -s conftest$ac_exeext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ok=PTHREAD_CREATE_JOINABLE
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16188 rm -f conftest.err conftest.$ac_objext \
16189 conftest$ac_exeext conftest.$ac_ext
16190 if test x"$ok" = xunknown; then
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <pthread.h>
16201 int attr=PTHREAD_CREATE_UNDETACHED;
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16208 (eval $ac_link) 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -z "$ac_c_werror_flag"
16216 || test ! -s conftest.err'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest$ac_exeext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ok=PTHREAD_CREATE_UNDETACHED
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16235 rm -f conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16238 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16240 cat >>confdefs.h <<\_ACEOF
16241 #define PTHREAD_CREATE_JOINABLE $ok
16245 echo "$as_me:$LINENO: result: ${ok}" >&5
16246 echo "${ECHO_T}${ok}" >&6
16247 if test x"$ok" = xunknown; then
16248 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16249 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16252 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16253 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16255 # We always add these in PostgreSQL
16256 # case "${host_cpu}-${host_os}" in
16257 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16258 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16260 echo "$as_me:$LINENO: result: ${flag}" >&5
16261 echo "${ECHO_T}${flag}" >&6
16262 if test "x$flag" != xno; then
16263 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16267 CFLAGS="$save_CFLAGS"
16269 # Supporting cc_r would require a special CC in all places that
16270 # use libpq, and that is ugly, so we don't do it. Users can still
16271 # define their compiler as cc_r to do thread builds of everything.
16272 # More AIX lossage: must compile with cc_r
16273 # Extract the first word of "cc_r", so it can be a program name with args.
16274 set dummy cc_r; ac_word=$2
16275 echo "$as_me:$LINENO: checking for $ac_word" >&5
16276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16277 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 if test -n "$PTHREAD_CC"; then
16281 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16284 for as_dir in $PATH
16287 test -z "$as_dir" && as_dir=.
16288 for ac_exec_ext in '' $ac_executable_extensions; do
16289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16290 ac_cv_prog_PTHREAD_CC="cc_r"
16291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16297 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16300 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16301 if test -n "$PTHREAD_CC"; then
16302 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16303 echo "${ECHO_T}$PTHREAD_CC" >&6
16305 echo "$as_me:$LINENO: result: no" >&5
16306 echo "${ECHO_T}no" >&6
16317 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16318 if test x"$acx_pthread_ok" = xyes; then
16320 cat >>confdefs.h <<\_ACEOF
16321 #define HAVE_PTHREAD 1
16330 ac_cpp='$CPP $CPPFLAGS'
16331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16337 # Some platforms use these, so just defineed them. They can't hurt if they
16338 # are not supported.
16339 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16342 # At this point, we don't want to muck with the compiler name for threading.
16343 # Let's see who fails, perhaps AIX. 2004-04-23
16344 if test "$PTHREAD_CC" != "$CC"; then
16345 { { echo "$as_me:$LINENO: error:
16346 PostgreSQL does not support platforms that require a special
16347 compiler binary for thread-safety.
16349 echo "$as_me: error:
16350 PostgreSQL does not support platforms that require a special
16351 compiler binary for thread-safety.
16353 { (exit 1); exit 1; }; }
16356 if test "$THREAD_SUPPORT" = no; then
16357 { { echo "$as_me:$LINENO: error:
16358 Cannot enable threads on your platform.
16359 Your platform is known to not support thread-safe programs.
16360 For details, compile and run src/bin/pg_thread_test.
16362 echo "$as_me: error:
16363 Cannot enable threads on your platform.
16364 Your platform is known to not support thread-safe programs.
16365 For details, compile and run src/bin/pg_thread_test.
16367 { (exit 1); exit 1; }; }
16370 # Check for *_r functions
16373 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16374 LIBS="$LIBS $PTHREAD_LIBS"
16376 if test "${ac_cv_header_pthread_h+set}" = set; then
16377 echo "$as_me:$LINENO: checking for pthread.h" >&5
16378 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16379 if test "${ac_cv_header_pthread_h+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16383 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16385 # Is the header compilable?
16386 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16387 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 $ac_includes_default
16395 #include <pthread.h>
16397 rm -f conftest.$ac_objext
16398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16399 (eval $ac_compile) 2>conftest.er1
16401 grep -v '^ *+' conftest.er1 >conftest.err
16403 cat conftest.err >&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } &&
16406 { ac_try='test -z "$ac_c_werror_flag"
16407 || test ! -s conftest.err'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; } &&
16413 { ac_try='test -s conftest.$ac_objext'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; }; then
16419 ac_header_compiler=yes
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 ac_header_compiler=no
16426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16428 echo "${ECHO_T}$ac_header_compiler" >&6
16430 # Is the header present?
16431 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16432 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16433 cat >conftest.$ac_ext <<_ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 #include <pthread.h>
16441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16444 grep -v '^ *+' conftest.er1 >conftest.err
16446 cat conftest.err >&5
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } >/dev/null; then
16449 if test -s conftest.err; then
16450 ac_cpp_err=$ac_c_preproc_warn_flag
16451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16458 if test -z "$ac_cpp_err"; then
16459 ac_header_preproc=yes
16461 echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 ac_header_preproc=no
16466 rm -f conftest.err conftest.$ac_ext
16467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16468 echo "${ECHO_T}$ac_header_preproc" >&6
16470 # So? What about this header?
16471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16473 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16474 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16476 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16477 ac_header_preproc=yes
16480 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16481 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16483 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16485 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16487 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16489 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16491 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16494 ## ---------------------------------------- ##
16495 ## Report this to pgsql-bugs@postgresql.org ##
16496 ## ---------------------------------------- ##
16499 sed "s/^/$as_me: WARNING: /" >&2
16502 echo "$as_me:$LINENO: checking for pthread.h" >&5
16503 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16504 if test "${ac_cv_header_pthread_h+set}" = set; then
16505 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 ac_cv_header_pthread_h=$ac_header_preproc
16509 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16510 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16513 if test $ac_cv_header_pthread_h = yes; then
16516 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16517 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16518 { (exit 1); exit 1; }; }
16526 for ac_func in strerror_r getpwuid_r gethostbyname_r
16528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16529 echo "$as_me:$LINENO: checking for $ac_func" >&5
16530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16531 if eval "test \"\${$as_ac_var+set}\" = set"; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16534 cat >conftest.$ac_ext <<_ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16542 #define $ac_func innocuous_$ac_func
16544 /* System header to define __stub macros and hopefully few prototypes,
16545 which can conflict with char $ac_func (); below.
16546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16547 <limits.h> exists even on freestanding compilers. */
16550 # include <limits.h>
16552 # include <assert.h>
16557 /* Override any gcc2 internal prototype to avoid an error. */
16562 /* We use char because int might match the return type of a gcc2
16563 builtin and then its argument prototype would still apply. */
16565 /* The GNU C library defines this for functions which it implements
16566 to always fail with ENOSYS. Some functions are actually named
16567 something starting with __ and the normal name is an alias. */
16568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16571 char (*f) () = $ac_func;
16580 return f != $ac_func;
16585 rm -f conftest.$ac_objext conftest$ac_exeext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16587 (eval $ac_link) 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest$ac_exeext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 eval "$as_ac_var=yes"
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16612 eval "$as_ac_var=no"
16614 rm -f conftest.err conftest.$ac_objext \
16615 conftest$ac_exeext conftest.$ac_ext
16617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16619 if test `eval echo '${'$as_ac_var'}'` = yes; then
16620 cat >>confdefs.h <<_ACEOF
16621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16628 # Do test here with the proper thread flags
16629 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
16630 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
16631 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 #include <sys/types.h>
16646 struct passwd *space;
16649 struct passwd **result;
16650 getpwuid_r(uid, space, buf, bufsize, result);
16655 rm -f conftest.$ac_objext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16657 (eval $ac_compile) 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag"
16665 || test ! -s conftest.err'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; } &&
16671 { ac_try='test -s conftest.$ac_objext'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; }; then
16677 pgac_func_getpwuid_r_5arg=yes
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 pgac_func_getpwuid_r_5arg=no
16684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16686 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
16687 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
16688 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
16690 cat >>confdefs.h <<\_ACEOF
16691 #define GETPWUID_R_5ARG
16696 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
16697 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
16698 if test "${pgac_func_strerror_r_int+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <string.h>
16712 int strerror_r(int, char *, size_t);
16714 /* Older AIX has 'int' for the third argument so we don't test the args. */
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>conftest.er1
16725 grep -v '^ *+' conftest.er1 >conftest.err
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag"
16731 || test ! -s conftest.err'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 pgac_func_strerror_r_int=yes
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 pgac_func_strerror_r_int=no
16750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16752 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
16753 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
16754 if test x"$pgac_func_strerror_r_int" = xyes ; then
16756 cat >>confdefs.h <<\_ACEOF
16757 #define STRERROR_R_INT
16767 # do not use values from template file
16776 # We can test for libldap_r only after we know PTHREAD_LIBS
16777 if test "$with_ldap" = yes ; then
16779 if test "$PORTNAME" != "win32"; then
16781 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
16782 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
16783 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 ac_check_lib_save_LIBS=$LIBS
16787 LIBS="-lldap $LIBS"
16788 cat >conftest.$ac_ext <<_ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16795 /* Override any gcc2 internal prototype to avoid an error. */
16799 /* We use char because int might match the return type of a gcc2
16800 builtin and then its argument prototype would still apply. */
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812 (eval $ac_link) 2>conftest.er1
16814 grep -v '^ *+' conftest.er1 >conftest.err
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag"
16820 || test ! -s conftest.err'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest$ac_exeext'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_cv_lib_ldap_ldap_bind=yes
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 ac_cv_lib_ldap_ldap_bind=no
16839 rm -f conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16841 LIBS=$ac_check_lib_save_LIBS
16843 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
16844 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
16845 if test $ac_cv_lib_ldap_ldap_bind = yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_LIBLDAP 1
16850 LIBS="-lldap $LIBS"
16853 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
16854 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
16855 { (exit 1); exit 1; }; }
16858 LDAP_LIBS_BE="-lldap"
16859 if test "$enable_thread_safety" = yes; then
16860 # on some platforms ldap_r fails to link without PTHREAD_LIBS
16862 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
16863 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
16864 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 ac_check_lib_save_LIBS=$LIBS
16868 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
16869 cat >conftest.$ac_ext <<_ACEOF
16872 cat confdefs.h >>conftest.$ac_ext
16873 cat >>conftest.$ac_ext <<_ACEOF
16874 /* end confdefs.h. */
16876 /* Override any gcc2 internal prototype to avoid an error. */
16880 /* We use char because int might match the return type of a gcc2
16881 builtin and then its argument prototype would still apply. */
16882 char ldap_simple_bind ();
16886 ldap_simple_bind ();
16891 rm -f conftest.$ac_objext conftest$ac_exeext
16892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16893 (eval $ac_link) 2>conftest.er1
16895 grep -v '^ *+' conftest.er1 >conftest.err
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest$ac_exeext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_cv_lib_ldap_r_ldap_simple_bind=yes
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_cv_lib_ldap_r_ldap_simple_bind=no
16920 rm -f conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16922 LIBS=$ac_check_lib_save_LIBS
16924 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
16925 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
16926 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define HAVE_LIBLDAP_R 1
16931 LIBS="-lldap_r $LIBS"
16934 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
16935 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
16936 { (exit 1); exit 1; }; }
16939 LDAP_LIBS_FE="-lldap_r"
16941 LDAP_LIBS_FE="-lldap"
16945 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
16946 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
16947 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 ac_check_lib_save_LIBS=$LIBS
16951 LIBS="-lwldap32 $LIBS"
16952 cat >conftest.$ac_ext <<_ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16959 /* Override any gcc2 internal prototype to avoid an error. */
16963 /* We use char because int might match the return type of a gcc2
16964 builtin and then its argument prototype would still apply. */
16974 rm -f conftest.$ac_objext conftest$ac_exeext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976 (eval $ac_link) 2>conftest.er1
16978 grep -v '^ *+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag"
16984 || test ! -s conftest.err'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest$ac_exeext'
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_cv_lib_wldap32_ldap_bind=yes
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_cv_lib_wldap32_ldap_bind=no
17003 rm -f conftest.err conftest.$ac_objext \
17004 conftest$ac_exeext conftest.$ac_ext
17005 LIBS=$ac_check_lib_save_LIBS
17007 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
17008 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
17009 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_LIBWLDAP32 1
17014 LIBS="-lwldap32 $LIBS"
17017 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
17018 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
17019 { (exit 1); exit 1; }; }
17022 LDAP_LIBS_FE="-lwldap32"
17023 LDAP_LIBS_BE="-lwldap32"
17031 # This test makes sure that run tests work at all. Sometimes a shared
17032 # library is found by the linker, but the runtime linker can't find it.
17033 # This check should come after all modifications of compiler or linker
17034 # variables, and before any other run tests.
17035 echo "$as_me:$LINENO: checking test program" >&5
17036 echo $ECHO_N "checking test program... $ECHO_C" >&6
17037 if test "$cross_compiling" = yes; then
17038 echo "$as_me:$LINENO: result: cross-compiling" >&5
17039 echo "${ECHO_T}cross-compiling" >&6
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 int main() { return 0; }
17049 rm -f conftest$ac_exeext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17051 (eval $ac_link) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 echo "$as_me:$LINENO: result: ok" >&5
17061 echo "${ECHO_T}ok" >&6
17063 echo "$as_me: program exited with status $ac_status" >&5
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ( exit $ac_status )
17068 echo "$as_me:$LINENO: result: failed" >&5
17069 echo "${ECHO_T}failed" >&6
17070 { { echo "$as_me:$LINENO: error:
17071 *** Could not execute a simple test program. This may be a problem
17072 *** related to locating shared libraries. Check the file 'config.log'
17073 *** for the exact reason." >&5
17074 echo "$as_me: error:
17075 *** Could not execute a simple test program. This may be a problem
17076 *** related to locating shared libraries. Check the file 'config.log'
17077 *** for the exact reason." >&2;}
17078 { (exit 1); exit 1; }; }
17080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17083 # --------------------
17084 # Run tests below here
17085 # --------------------
17087 # Force use of our snprintf if system's doesn't do arg control
17088 # See comment above at snprintf test for details.
17089 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17090 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17091 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17092 if test "${pgac_cv_printf_arg_control+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 if test "$cross_compiling" = yes; then
17096 pgac_cv_printf_arg_control=cross
17098 cat >conftest.$ac_ext <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17105 #include <string.h>
17111 /* can it swap arguments? */
17112 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17113 if (strcmp(buf, "4 3") != 0)
17118 rm -f conftest$ac_exeext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120 (eval $ac_link) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 pgac_cv_printf_arg_control=yes
17131 echo "$as_me: program exited with status $ac_status" >&5
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17135 ( exit $ac_status )
17136 pgac_cv_printf_arg_control=no
17138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17142 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17143 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17145 if test $pgac_cv_printf_arg_control != yes ; then
17146 pgac_need_repl_snprintf=yes
17152 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17153 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17154 if test "${pgac_cv_type_long_int_64+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 if test "$cross_compiling" = yes; then
17158 # If cross-compiling, check the size reported by the compiler and
17159 # trust that the arithmetic works.
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17170 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17177 rm -f conftest.$ac_objext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>conftest.er1
17181 grep -v '^ *+' conftest.er1 >conftest.err
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest.$ac_objext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 pgac_cv_type_long_int_64=yes
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 pgac_cv_type_long_int_64=no
17206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17214 typedef long int ac_int64;
17217 * These are globals to discourage the compiler from folding all the
17218 * arithmetic tests down to compile-time constants.
17220 ac_int64 a = 20000001;
17221 ac_int64 b = 40000005;
17223 int does_int64_work()
17227 if (sizeof(ac_int64) != 8)
17228 return 0; /* definitely not the right size */
17230 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17238 exit(! does_int64_work());
17241 rm -f conftest$ac_exeext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17243 (eval $ac_link) 2>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 pgac_cv_type_long_int_64=yes
17254 echo "$as_me: program exited with status $ac_status" >&5
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ( exit $ac_status )
17259 pgac_cv_type_long_int_64=no
17261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17264 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17265 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17267 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17268 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17270 cat >>confdefs.h <<\_ACEOF
17271 #define HAVE_LONG_INT_64
17277 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17278 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17279 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17280 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 if test "$cross_compiling" = yes; then
17284 # If cross-compiling, check the size reported by the compiler and
17285 # trust that the arithmetic works.
17286 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17296 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17303 rm -f conftest.$ac_objext
17304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17305 (eval $ac_compile) 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try='test -z "$ac_c_werror_flag"
17313 || test ! -s conftest.err'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try='test -s conftest.$ac_objext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 pgac_cv_type_long_long_int_64=yes
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 pgac_cv_type_long_long_int_64=no
17332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 typedef long long int ac_int64;
17343 * These are globals to discourage the compiler from folding all the
17344 * arithmetic tests down to compile-time constants.
17346 ac_int64 a = 20000001;
17347 ac_int64 b = 40000005;
17349 int does_int64_work()
17353 if (sizeof(ac_int64) != 8)
17354 return 0; /* definitely not the right size */
17356 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17364 exit(! does_int64_work());
17367 rm -f conftest$ac_exeext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17369 (eval $ac_link) 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 pgac_cv_type_long_long_int_64=yes
17380 echo "$as_me: program exited with status $ac_status" >&5
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ( exit $ac_status )
17385 pgac_cv_type_long_long_int_64=no
17387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17391 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17393 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17394 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_LONG_LONG_INT_64
17406 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17414 #define INT64CONST(x) x##LL
17415 long long int foo = INT64CONST(0x1234567890123456);
17425 rm -f conftest.$ac_objext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17448 cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_LL_CONSTANTS 1
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17461 # If we found "long int" is 64 bits, assume snprintf handles it. If
17462 # we found we need to use "long long int", better check. We cope with
17463 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17464 # work, fall back to our own snprintf emulation (which we know uses %lld).
17466 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17467 if test $pgac_need_repl_snprintf = no; then
17468 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17469 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17470 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 for pgac_format in '%lld' '%qd' '%I64d'; do
17474 if test "$cross_compiling" = yes; then
17475 pgac_cv_snprintf_long_long_int_format=cross; break
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 typedef long long int ac_int64;
17485 #define INT64_FORMAT "$pgac_format"
17487 ac_int64 a = 20000001;
17488 ac_int64 b = 40000005;
17490 int does_int64_snprintf_work()
17495 if (sizeof(ac_int64) != 8)
17496 return 0; /* doesn't look like the right size */
17499 snprintf(buf, 100, INT64_FORMAT, c);
17500 if (strcmp(buf, "800000140000005") != 0)
17501 return 0; /* either multiply or snprintf is busted */
17505 exit(! does_int64_snprintf_work());
17508 rm -f conftest$ac_exeext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17510 (eval $ac_link) 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17521 echo "$as_me: program exited with status $ac_status" >&5
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17531 LONG_LONG_INT_FORMAT=''
17533 case $pgac_cv_snprintf_long_long_int_format in
17534 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17535 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17536 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17537 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17538 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17539 *) echo "$as_me:$LINENO: result: none" >&5
17540 echo "${ECHO_T}none" >&6;;
17542 if test "$LONG_LONG_INT_FORMAT" = ""; then
17543 # Force usage of our own snprintf, since system snprintf is broken
17544 pgac_need_repl_snprintf=yes
17545 LONG_LONG_INT_FORMAT='%lld'
17548 # Here if we previously decided we needed to use our own snprintf
17549 LONG_LONG_INT_FORMAT='%lld'
17551 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17552 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17553 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17555 # Here if we are not using 'long long int' at all
17556 INT64_FORMAT='"%ld"'
17557 UINT64_FORMAT='"%lu"'
17561 cat >>confdefs.h <<_ACEOF
17562 #define INT64_FORMAT $INT64_FORMAT
17567 cat >>confdefs.h <<_ACEOF
17568 #define UINT64_FORMAT $UINT64_FORMAT
17572 # Now we have checked all the reasons to replace snprintf
17573 if test $pgac_need_repl_snprintf = yes; then
17575 cat >>confdefs.h <<\_ACEOF
17576 #define USE_REPL_SNPRINTF 1
17580 "snprintf.$ac_objext" | \
17581 *" snprintf.$ac_objext" | \
17582 "snprintf.$ac_objext "* | \
17583 *" snprintf.$ac_objext "* ) ;;
17584 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17589 # Need a #define for the size of Datum (unsigned long)
17590 echo "$as_me:$LINENO: checking for unsigned long" >&5
17591 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17592 if test "${ac_cv_type_unsigned_long+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 cat >conftest.$ac_ext <<_ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 $ac_includes_default
17605 if ((unsigned long *) 0)
17607 if (sizeof (unsigned long))
17613 rm -f conftest.$ac_objext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17615 (eval $ac_compile) 2>conftest.er1
17617 grep -v '^ *+' conftest.er1 >conftest.err
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -z "$ac_c_werror_flag"
17623 || test ! -s conftest.err'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try='test -s conftest.$ac_objext'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631 (eval $ac_try) 2>&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
17635 ac_cv_type_unsigned_long=yes
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_cv_type_unsigned_long=no
17642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17644 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17645 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17647 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17648 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17649 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17652 if test "$ac_cv_type_unsigned_long" = yes; then
17653 # The cast to unsigned long works around a bug in the HP C Compiler
17654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17656 # This bug is HP SR number 8606223364.
17657 if test "$cross_compiling" = yes; then
17658 # Depending upon the size, compute the lo and hi bounds.
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 $ac_includes_default
17669 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17676 rm -f conftest.$ac_objext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17678 (eval $ac_compile) 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_objext'
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
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 $ac_includes_default
17710 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17717 rm -f conftest.$ac_objext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17719 (eval $ac_compile) 2>conftest.er1
17721 grep -v '^ *+' conftest.er1 >conftest.err
17723 cat conftest.err >&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest.$ac_objext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_hi=$ac_mid; break
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 ac_lo=`expr $ac_mid + 1`
17745 if test $ac_lo -le $ac_mid; then
17749 ac_mid=`expr 2 '*' $ac_mid + 1`
17751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 cat >conftest.$ac_ext <<_ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17763 $ac_includes_default
17767 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17774 rm -f conftest.$ac_objext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17776 (eval $ac_compile) 2>conftest.er1
17778 grep -v '^ *+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -z "$ac_c_werror_flag"
17784 || test ! -s conftest.err'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; } &&
17790 { ac_try='test -s conftest.$ac_objext'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; }; then
17798 cat >conftest.$ac_ext <<_ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 $ac_includes_default
17808 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17815 rm -f conftest.$ac_objext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17817 (eval $ac_compile) 2>conftest.er1
17819 grep -v '^ *+' conftest.er1 >conftest.err
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag"
17825 || test ! -s conftest.err'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; } &&
17831 { ac_try='test -s conftest.$ac_objext'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
17837 ac_lo=$ac_mid; break
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 ac_hi=`expr '(' $ac_mid ')' - 1`
17843 if test $ac_mid -le $ac_hi; then
17847 ac_mid=`expr 2 '*' $ac_mid`
17849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17860 # Binary search between lo and hi bounds.
17861 while test "x$ac_lo" != "x$ac_hi"; do
17862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17863 cat >conftest.$ac_ext <<_ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17869 $ac_includes_default
17873 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17880 rm -f conftest.$ac_objext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17882 (eval $ac_compile) 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
17889 { ac_try='test -z "$ac_c_werror_flag"
17890 || test ! -s conftest.err'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest.$ac_objext'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_lo=`expr '(' $ac_mid ')' + 1`
17909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17912 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17914 See \`config.log' for more details." >&5
17915 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17916 See \`config.log' for more details." >&2;}
17917 { (exit 1); exit 1; }; } ;;
17920 if test "$cross_compiling" = yes; then
17921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17922 See \`config.log' for more details." >&5
17923 echo "$as_me: error: cannot run test program while cross compiling
17924 See \`config.log' for more details." >&2;}
17925 { (exit 1); exit 1; }; }
17927 cat >conftest.$ac_ext <<_ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17933 $ac_includes_default
17934 long longval () { return (long) (sizeof (unsigned long)); }
17935 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
17937 #include <stdlib.h>
17942 FILE *f = fopen ("conftest.val", "w");
17945 if (((long) (sizeof (unsigned long))) < 0)
17947 long i = longval ();
17948 if (i != ((long) (sizeof (unsigned long))))
17950 fprintf (f, "%ld\n", i);
17954 unsigned long i = ulongval ();
17955 if (i != ((long) (sizeof (unsigned long))))
17957 fprintf (f, "%lu\n", i);
17959 exit (ferror (f) || fclose (f) != 0);
17965 rm -f conftest$ac_exeext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17967 (eval $ac_link) 2>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_cv_sizeof_unsigned_long=`cat conftest.val`
17978 echo "$as_me: program exited with status $ac_status" >&5
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 ( exit $ac_status )
17983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17984 See \`config.log' for more details." >&5
17985 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17986 See \`config.log' for more details." >&2;}
17987 { (exit 1); exit 1; }; }
17989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17994 ac_cv_sizeof_unsigned_long=0
17997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
17998 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
17999 cat >>confdefs.h <<_ACEOF
18000 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18005 # And one for the size of size_t (enables tweaks for > 32bit address space)
18006 echo "$as_me:$LINENO: checking for size_t" >&5
18007 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18008 if test "${ac_cv_type_size_t+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 cat >conftest.$ac_ext <<_ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 $ac_includes_default
18023 if (sizeof (size_t))
18029 rm -f conftest.$ac_objext
18030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18031 (eval $ac_compile) 2>conftest.er1
18033 grep -v '^ *+' conftest.er1 >conftest.err
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } &&
18038 { ac_try='test -z "$ac_c_werror_flag"
18039 || test ! -s conftest.err'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; } &&
18045 { ac_try='test -s conftest.$ac_objext'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; }; then
18051 ac_cv_type_size_t=yes
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18056 ac_cv_type_size_t=no
18058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18060 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18061 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18063 echo "$as_me:$LINENO: checking size of size_t" >&5
18064 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18065 if test "${ac_cv_sizeof_size_t+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 if test "$ac_cv_type_size_t" = yes; then
18069 # The cast to unsigned long works around a bug in the HP C Compiler
18070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18072 # This bug is HP SR number 8606223364.
18073 if test "$cross_compiling" = yes; then
18074 # Depending upon the size, compute the lo and hi bounds.
18075 cat >conftest.$ac_ext <<_ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18081 $ac_includes_default
18085 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18092 rm -f conftest.$ac_objext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try='test -s conftest.$ac_objext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18116 cat >conftest.$ac_ext <<_ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 $ac_includes_default
18126 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18133 rm -f conftest.$ac_objext
18134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18135 (eval $ac_compile) 2>conftest.er1
18137 grep -v '^ *+' conftest.er1 >conftest.err
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } &&
18142 { ac_try='test -z "$ac_c_werror_flag"
18143 || test ! -s conftest.err'
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; } &&
18149 { ac_try='test -s conftest.$ac_objext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_hi=$ac_mid; break
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_lo=`expr $ac_mid + 1`
18161 if test $ac_lo -le $ac_mid; then
18165 ac_mid=`expr 2 '*' $ac_mid + 1`
18167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 cat >conftest.$ac_ext <<_ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 $ac_includes_default
18183 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18190 rm -f conftest.$ac_objext
18191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18192 (eval $ac_compile) 2>conftest.er1
18194 grep -v '^ *+' conftest.er1 >conftest.err
18196 cat conftest.err >&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try='test -z "$ac_c_werror_flag"
18200 || test ! -s conftest.err'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest.$ac_objext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18214 cat >conftest.$ac_ext <<_ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 $ac_includes_default
18224 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18231 rm -f conftest.$ac_objext
18232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18233 (eval $ac_compile) 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag"
18241 || test ! -s conftest.err'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; } &&
18247 { ac_try='test -s conftest.$ac_objext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 ac_lo=$ac_mid; break
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18258 ac_hi=`expr '(' $ac_mid ')' - 1`
18259 if test $ac_mid -le $ac_hi; then
18263 ac_mid=`expr 2 '*' $ac_mid`
18265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18276 # Binary search between lo and hi bounds.
18277 while test "x$ac_lo" != "x$ac_hi"; do
18278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 $ac_includes_default
18289 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18296 rm -f conftest.$ac_objext
18297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18298 (eval $ac_compile) 2>conftest.er1
18300 grep -v '^ *+' conftest.er1 >conftest.err
18302 cat conftest.err >&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } &&
18305 { ac_try='test -z "$ac_c_werror_flag"
18306 || test ! -s conftest.err'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest.$ac_objext'
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 ac_lo=`expr '(' $ac_mid ')' + 1`
18325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18328 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18329 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18330 See \`config.log' for more details." >&5
18331 echo "$as_me: error: cannot compute sizeof (size_t), 77
18332 See \`config.log' for more details." >&2;}
18333 { (exit 1); exit 1; }; } ;;
18336 if test "$cross_compiling" = yes; then
18337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18338 See \`config.log' for more details." >&5
18339 echo "$as_me: error: cannot run test program while cross compiling
18340 See \`config.log' for more details." >&2;}
18341 { (exit 1); exit 1; }; }
18343 cat >conftest.$ac_ext <<_ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18349 $ac_includes_default
18350 long longval () { return (long) (sizeof (size_t)); }
18351 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18353 #include <stdlib.h>
18358 FILE *f = fopen ("conftest.val", "w");
18361 if (((long) (sizeof (size_t))) < 0)
18363 long i = longval ();
18364 if (i != ((long) (sizeof (size_t))))
18366 fprintf (f, "%ld\n", i);
18370 unsigned long i = ulongval ();
18371 if (i != ((long) (sizeof (size_t))))
18373 fprintf (f, "%lu\n", i);
18375 exit (ferror (f) || fclose (f) != 0);
18381 rm -f conftest$ac_exeext
18382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18383 (eval $ac_link) 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_cv_sizeof_size_t=`cat conftest.val`
18394 echo "$as_me: program exited with status $ac_status" >&5
18395 echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 ( exit $ac_status )
18399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18400 See \`config.log' for more details." >&5
18401 echo "$as_me: error: cannot compute sizeof (size_t), 77
18402 See \`config.log' for more details." >&2;}
18403 { (exit 1); exit 1; }; }
18405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18410 ac_cv_sizeof_size_t=0
18413 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18414 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18415 cat >>confdefs.h <<_ACEOF
18416 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18421 # Determine memory alignment requirements for the basic C data types.
18423 echo "$as_me:$LINENO: checking for short" >&5
18424 echo $ECHO_N "checking for short... $ECHO_C" >&6
18425 if test "${ac_cv_type_short+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 cat >conftest.$ac_ext <<_ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 $ac_includes_default
18440 if (sizeof (short))
18446 rm -f conftest.$ac_objext
18447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18448 (eval $ac_compile) 2>conftest.er1
18450 grep -v '^ *+' conftest.er1 >conftest.err
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try='test -z "$ac_c_werror_flag"
18456 || test ! -s conftest.err'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest.$ac_objext'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468 ac_cv_type_short=yes
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ac_cv_type_short=no
18475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18477 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18478 echo "${ECHO_T}$ac_cv_type_short" >&6
18480 echo "$as_me:$LINENO: checking alignment of short" >&5
18481 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18482 if test "${pgac_cv_alignof_short+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 if test "$ac_cv_type_short" = yes; then
18486 if test "$cross_compiling" = yes; then
18487 # Depending upon the size, compute the lo and hi bounds.
18488 cat >conftest.$ac_ext <<_ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h. */
18494 $ac_includes_default
18495 struct { char filler; short field; } pgac_struct;
18499 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18506 rm -f conftest.$ac_objext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18508 (eval $ac_compile) 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } &&
18515 { ac_try='test -z "$ac_c_werror_flag"
18516 || test ! -s conftest.err'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 $ac_includes_default
18537 struct { char filler; short field; } pgac_struct;
18541 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18548 rm -f conftest.$ac_objext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18550 (eval $ac_compile) 2>conftest.er1
18552 grep -v '^ *+' conftest.er1 >conftest.err
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag"
18558 || test ! -s conftest.err'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest.$ac_objext'
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 ac_hi=$ac_mid; break
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18575 ac_lo=`expr $ac_mid + 1`
18576 if test $ac_lo -le $ac_mid; then
18580 ac_mid=`expr 2 '*' $ac_mid + 1`
18582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18585 echo "$as_me: failed program was:" >&5
18586 sed 's/^/| /' conftest.$ac_ext >&5
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 $ac_includes_default
18595 struct { char filler; short field; } pgac_struct;
18599 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18606 rm -f conftest.$ac_objext
18607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18608 (eval $ac_compile) 2>conftest.er1
18610 grep -v '^ *+' conftest.er1 >conftest.err
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try='test -z "$ac_c_werror_flag"
18616 || test ! -s conftest.err'
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest.$ac_objext'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18630 cat >conftest.$ac_ext <<_ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 $ac_includes_default
18637 struct { char filler; short field; } pgac_struct;
18641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18648 rm -f conftest.$ac_objext
18649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18650 (eval $ac_compile) 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag"
18658 || test ! -s conftest.err'
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18670 ac_lo=$ac_mid; break
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 ac_hi=`expr '(' $ac_mid ')' - 1`
18676 if test $ac_mid -le $ac_hi; then
18680 ac_mid=`expr 2 '*' $ac_mid`
18682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18693 # Binary search between lo and hi bounds.
18694 while test "x$ac_lo" != "x$ac_hi"; do
18695 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 $ac_includes_default
18703 struct { char filler; short field; } pgac_struct;
18707 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18714 rm -f conftest.$ac_objext
18715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18716 (eval $ac_compile) 2>conftest.er1
18718 grep -v '^ *+' conftest.er1 >conftest.err
18720 cat conftest.err >&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
18723 { ac_try='test -z "$ac_c_werror_flag"
18724 || test ! -s conftest.err'
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 ac_lo=`expr '(' $ac_mid ')' + 1`
18743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18746 ?*) pgac_cv_alignof_short=$ac_lo;;
18747 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18748 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18749 { (exit 1); exit 1; }; } ;;
18752 if test "$cross_compiling" = yes; then
18753 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18754 See \`config.log' for more details." >&5
18755 echo "$as_me: error: cannot run test program while cross compiling
18756 See \`config.log' for more details." >&2;}
18757 { (exit 1); exit 1; }; }
18759 cat >conftest.$ac_ext <<_ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h. */
18765 $ac_includes_default
18766 struct { char filler; short field; } pgac_struct;
18767 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18768 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18770 #include <stdlib.h>
18775 FILE *f = fopen ("conftest.val", "w");
18778 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18780 long i = longval ();
18781 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18783 fprintf (f, "%ld\n", i);
18787 unsigned long i = ulongval ();
18788 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18790 fprintf (f, "%lu\n", i);
18792 exit (ferror (f) || fclose (f) != 0);
18798 rm -f conftest$ac_exeext
18799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18800 (eval $ac_link) 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 pgac_cv_alignof_short=`cat conftest.val`
18811 echo "$as_me: program exited with status $ac_status" >&5
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ( exit $ac_status )
18816 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18817 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18818 { (exit 1); exit 1; }; }
18820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18825 pgac_cv_alignof_short=0
18828 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18829 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18830 cat >>confdefs.h <<_ACEOF
18831 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18835 echo "$as_me:$LINENO: checking for int" >&5
18836 echo $ECHO_N "checking for int... $ECHO_C" >&6
18837 if test "${ac_cv_type_int+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 $ac_includes_default
18858 rm -f conftest.$ac_objext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18860 (eval $ac_compile) 2>conftest.er1
18862 grep -v '^ *+' conftest.er1 >conftest.err
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag"
18868 || test ! -s conftest.err'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; } &&
18874 { ac_try='test -s conftest.$ac_objext'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; }; then
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18889 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18890 echo "${ECHO_T}$ac_cv_type_int" >&6
18892 echo "$as_me:$LINENO: checking alignment of int" >&5
18893 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
18894 if test "${pgac_cv_alignof_int+set}" = set; then
18895 echo $ECHO_N "(cached) $ECHO_C" >&6
18897 if test "$ac_cv_type_int" = yes; then
18898 if test "$cross_compiling" = yes; then
18899 # Depending upon the size, compute the lo and hi bounds.
18900 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18906 $ac_includes_default
18907 struct { char filler; int field; } pgac_struct;
18911 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18918 rm -f conftest.$ac_objext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18920 (eval $ac_compile) 2>conftest.er1
18922 grep -v '^ *+' conftest.er1 >conftest.err
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag"
18928 || test ! -s conftest.err'
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; } &&
18934 { ac_try='test -s conftest.$ac_objext'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18942 cat >conftest.$ac_ext <<_ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 $ac_includes_default
18949 struct { char filler; int field; } pgac_struct;
18953 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18960 rm -f conftest.$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962 (eval $ac_compile) 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_objext'
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_hi=$ac_mid; break
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 ac_lo=`expr $ac_mid + 1`
18988 if test $ac_lo -le $ac_mid; then
18992 ac_mid=`expr 2 '*' $ac_mid + 1`
18994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 cat >conftest.$ac_ext <<_ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 $ac_includes_default
19007 struct { char filler; int field; } pgac_struct;
19011 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19018 rm -f conftest.$ac_objext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19020 (eval $ac_compile) 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest.$ac_objext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19042 cat >conftest.$ac_ext <<_ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 $ac_includes_default
19049 struct { char filler; int field; } pgac_struct;
19053 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19060 rm -f conftest.$ac_objext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062 (eval $ac_compile) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest.$ac_objext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_lo=$ac_mid; break
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_hi=`expr '(' $ac_mid ')' - 1`
19088 if test $ac_mid -le $ac_hi; then
19092 ac_mid=`expr 2 '*' $ac_mid`
19094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19105 # Binary search between lo and hi bounds.
19106 while test "x$ac_lo" != "x$ac_hi"; do
19107 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19108 cat >conftest.$ac_ext <<_ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114 $ac_includes_default
19115 struct { char filler; int field; } pgac_struct;
19119 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19126 rm -f conftest.$ac_objext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19128 (eval $ac_compile) 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag"
19136 || test ! -s conftest.err'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest.$ac_objext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19153 ac_lo=`expr '(' $ac_mid ')' + 1`
19155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19158 ?*) pgac_cv_alignof_int=$ac_lo;;
19159 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19160 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19161 { (exit 1); exit 1; }; } ;;
19164 if test "$cross_compiling" = yes; then
19165 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19166 See \`config.log' for more details." >&5
19167 echo "$as_me: error: cannot run test program while cross compiling
19168 See \`config.log' for more details." >&2;}
19169 { (exit 1); exit 1; }; }
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 $ac_includes_default
19178 struct { char filler; int field; } pgac_struct;
19179 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19180 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19182 #include <stdlib.h>
19187 FILE *f = fopen ("conftest.val", "w");
19190 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19192 long i = longval ();
19193 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19195 fprintf (f, "%ld\n", i);
19199 unsigned long i = ulongval ();
19200 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19202 fprintf (f, "%lu\n", i);
19204 exit (ferror (f) || fclose (f) != 0);
19210 rm -f conftest$ac_exeext
19211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19212 (eval $ac_link) 2>&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 pgac_cv_alignof_int=`cat conftest.val`
19223 echo "$as_me: program exited with status $ac_status" >&5
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ( exit $ac_status )
19228 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19229 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19230 { (exit 1); exit 1; }; }
19232 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19237 pgac_cv_alignof_int=0
19240 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19241 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19242 cat >>confdefs.h <<_ACEOF
19243 #define ALIGNOF_INT $pgac_cv_alignof_int
19247 echo "$as_me:$LINENO: checking for long" >&5
19248 echo $ECHO_N "checking for long... $ECHO_C" >&6
19249 if test "${ac_cv_type_long+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 cat >conftest.$ac_ext <<_ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h. */
19258 $ac_includes_default
19270 rm -f conftest.$ac_objext
19271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19272 (eval $ac_compile) 2>conftest.er1
19274 grep -v '^ *+' conftest.er1 >conftest.err
19276 cat conftest.err >&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); } &&
19279 { ac_try='test -z "$ac_c_werror_flag"
19280 || test ! -s conftest.err'
19281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; } &&
19286 { ac_try='test -s conftest.$ac_objext'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; }; then
19292 ac_cv_type_long=yes
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19301 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19302 echo "${ECHO_T}$ac_cv_type_long" >&6
19304 echo "$as_me:$LINENO: checking alignment of long" >&5
19305 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19306 if test "${pgac_cv_alignof_long+set}" = set; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19309 if test "$ac_cv_type_long" = yes; then
19310 if test "$cross_compiling" = yes; then
19311 # Depending upon the size, compute the lo and hi bounds.
19312 cat >conftest.$ac_ext <<_ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 $ac_includes_default
19319 struct { char filler; long field; } pgac_struct;
19323 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19330 rm -f conftest.$ac_objext
19331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19332 (eval $ac_compile) 2>conftest.er1
19334 grep -v '^ *+' conftest.er1 >conftest.err
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } &&
19339 { ac_try='test -z "$ac_c_werror_flag"
19340 || test ! -s conftest.err'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest.$ac_objext'
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; }; then
19354 cat >conftest.$ac_ext <<_ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19360 $ac_includes_default
19361 struct { char filler; long field; } pgac_struct;
19365 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
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 ac_hi=$ac_mid; break
19396 echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19399 ac_lo=`expr $ac_mid + 1`
19400 if test $ac_lo -le $ac_mid; then
19404 ac_mid=`expr 2 '*' $ac_mid + 1`
19406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 $ac_includes_default
19419 struct { char filler; long field; } pgac_struct;
19423 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19430 rm -f conftest.$ac_objext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19432 (eval $ac_compile) 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest.$ac_objext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19460 $ac_includes_default
19461 struct { char filler; long field; } pgac_struct;
19465 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474 (eval $ac_compile) 2>conftest.er1
19476 grep -v '^ *+' conftest.er1 >conftest.err
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag"
19482 || test ! -s conftest.err'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_lo=$ac_mid; break
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ac_hi=`expr '(' $ac_mid ')' - 1`
19500 if test $ac_mid -le $ac_hi; then
19504 ac_mid=`expr 2 '*' $ac_mid`
19506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19517 # Binary search between lo and hi bounds.
19518 while test "x$ac_lo" != "x$ac_hi"; do
19519 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19520 cat >conftest.$ac_ext <<_ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19526 $ac_includes_default
19527 struct { char filler; long field; } pgac_struct;
19531 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19562 echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_lo=`expr '(' $ac_mid ')' + 1`
19567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570 ?*) pgac_cv_alignof_long=$ac_lo;;
19571 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19572 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19573 { (exit 1); exit 1; }; } ;;
19576 if test "$cross_compiling" = yes; then
19577 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19578 See \`config.log' for more details." >&5
19579 echo "$as_me: error: cannot run test program while cross compiling
19580 See \`config.log' for more details." >&2;}
19581 { (exit 1); exit 1; }; }
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 $ac_includes_default
19590 struct { char filler; long field; } pgac_struct;
19591 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19592 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19594 #include <stdlib.h>
19599 FILE *f = fopen ("conftest.val", "w");
19602 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19604 long i = longval ();
19605 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19607 fprintf (f, "%ld\n", i);
19611 unsigned long i = ulongval ();
19612 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19614 fprintf (f, "%lu\n", i);
19616 exit (ferror (f) || fclose (f) != 0);
19622 rm -f conftest$ac_exeext
19623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19624 (eval $ac_link) 2>&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 pgac_cv_alignof_long=`cat conftest.val`
19635 echo "$as_me: program exited with status $ac_status" >&5
19636 echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 ( exit $ac_status )
19640 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19641 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19642 { (exit 1); exit 1; }; }
19644 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19649 pgac_cv_alignof_long=0
19652 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19653 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19654 cat >>confdefs.h <<_ACEOF
19655 #define ALIGNOF_LONG $pgac_cv_alignof_long
19659 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19660 echo "$as_me:$LINENO: checking for long long int" >&5
19661 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19662 if test "${ac_cv_type_long_long_int+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 cat >conftest.$ac_ext <<_ACEOF
19668 cat confdefs.h >>conftest.$ac_ext
19669 cat >>conftest.$ac_ext <<_ACEOF
19670 /* end confdefs.h. */
19671 $ac_includes_default
19675 if ((long long int *) 0)
19677 if (sizeof (long long int))
19683 rm -f conftest.$ac_objext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19685 (eval $ac_compile) 2>conftest.er1
19687 grep -v '^ *+' conftest.er1 >conftest.err
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -z "$ac_c_werror_flag"
19693 || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_type_long_long_int=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_cv_type_long_long_int=no
19712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19715 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19717 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19718 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19719 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 if test "$ac_cv_type_long_long_int" = yes; then
19723 if test "$cross_compiling" = yes; then
19724 # Depending upon the size, compute the lo and hi bounds.
19725 cat >conftest.$ac_ext <<_ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 $ac_includes_default
19732 struct { char filler; long long int field; } pgac_struct;
19736 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19747 grep -v '^ *+' conftest.er1 >conftest.err
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try='test -z "$ac_c_werror_flag"
19753 || test ! -s conftest.err'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773 $ac_includes_default
19774 struct { char filler; long long int field; } pgac_struct;
19778 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19785 rm -f conftest.$ac_objext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787 (eval $ac_compile) 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag"
19795 || test ! -s conftest.err'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_hi=$ac_mid; break
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19812 ac_lo=`expr $ac_mid + 1`
19813 if test $ac_lo -le $ac_mid; then
19817 ac_mid=`expr 2 '*' $ac_mid + 1`
19819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 cat >conftest.$ac_ext <<_ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h. */
19831 $ac_includes_default
19832 struct { char filler; long long int field; } pgac_struct;
19836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 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
19874 struct { char filler; long long int field; } pgac_struct;
19878 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19885 rm -f conftest.$ac_objext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887 (eval $ac_compile) 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } &&
19894 { ac_try='test -z "$ac_c_werror_flag"
19895 || test ! -s conftest.err'
19896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897 (eval $ac_try) 2>&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); }; } &&
19901 { ac_try='test -s conftest.$ac_objext'
19902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903 (eval $ac_try) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_lo=$ac_mid; break
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_hi=`expr '(' $ac_mid ')' - 1`
19913 if test $ac_mid -le $ac_hi; then
19917 ac_mid=`expr 2 '*' $ac_mid`
19919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19930 # Binary search between lo and hi bounds.
19931 while test "x$ac_lo" != "x$ac_hi"; do
19932 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19933 cat >conftest.$ac_ext <<_ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 $ac_includes_default
19940 struct { char filler; long long int field; } pgac_struct;
19944 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19951 rm -f conftest.$ac_objext
19952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19953 (eval $ac_compile) 2>conftest.er1
19955 grep -v '^ *+' conftest.er1 >conftest.err
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try='test -z "$ac_c_werror_flag"
19961 || test ! -s conftest.err'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; } &&
19967 { ac_try='test -s conftest.$ac_objext'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; }; then
19975 echo "$as_me: failed program was:" >&5
19976 sed 's/^/| /' conftest.$ac_ext >&5
19978 ac_lo=`expr '(' $ac_mid ')' + 1`
19980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19983 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
19984 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19985 echo "$as_me: error: cannot compute alignment of long long int, 77" >&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 struct { char filler; long long int field; } pgac_struct;
20004 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20005 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20007 #include <stdlib.h>
20012 FILE *f = fopen ("conftest.val", "w");
20015 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20017 long i = longval ();
20018 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20020 fprintf (f, "%ld\n", i);
20024 unsigned long i = ulongval ();
20025 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20027 fprintf (f, "%lu\n", i);
20029 exit (ferror (f) || fclose (f) != 0);
20035 rm -f conftest$ac_exeext
20036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20037 (eval $ac_link) 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046 pgac_cv_alignof_long_long_int=`cat conftest.val`
20048 echo "$as_me: program exited with status $ac_status" >&5
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ( exit $ac_status )
20053 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20054 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20055 { (exit 1); exit 1; }; }
20057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20062 pgac_cv_alignof_long_long_int=0
20065 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20066 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20067 cat >>confdefs.h <<_ACEOF
20068 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20073 echo "$as_me:$LINENO: checking for double" >&5
20074 echo $ECHO_N "checking for double... $ECHO_C" >&6
20075 if test "${ac_cv_type_double+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 $ac_includes_default
20090 if (sizeof (double))
20096 rm -f conftest.$ac_objext
20097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20098 (eval $ac_compile) 2>conftest.er1
20100 grep -v '^ *+' conftest.er1 >conftest.err
20102 cat conftest.err >&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
20105 { ac_try='test -z "$ac_c_werror_flag"
20106 || test ! -s conftest.err'
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_cv_type_double=yes
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_type_double=no
20125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20127 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20128 echo "${ECHO_T}$ac_cv_type_double" >&6
20130 echo "$as_me:$LINENO: checking alignment of double" >&5
20131 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20132 if test "${pgac_cv_alignof_double+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 if test "$ac_cv_type_double" = yes; then
20136 if test "$cross_compiling" = yes; then
20137 # Depending upon the size, compute the lo and hi bounds.
20138 cat >conftest.$ac_ext <<_ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20144 $ac_includes_default
20145 struct { char filler; double field; } pgac_struct;
20149 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20156 rm -f conftest.$ac_objext
20157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20158 (eval $ac_compile) 2>conftest.er1
20160 grep -v '^ *+' conftest.er1 >conftest.err
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } &&
20165 { ac_try='test -z "$ac_c_werror_flag"
20166 || test ! -s conftest.err'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20180 cat >conftest.$ac_ext <<_ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h. */
20186 $ac_includes_default
20187 struct { char filler; double field; } pgac_struct;
20191 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20198 rm -f conftest.$ac_objext
20199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20200 (eval $ac_compile) 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -z "$ac_c_werror_flag"
20208 || test ! -s conftest.err'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; } &&
20214 { ac_try='test -s conftest.$ac_objext'
20215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216 (eval $ac_try) 2>&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); }; }; then
20220 ac_hi=$ac_mid; break
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_lo=`expr $ac_mid + 1`
20226 if test $ac_lo -le $ac_mid; then
20230 ac_mid=`expr 2 '*' $ac_mid + 1`
20232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 $ac_includes_default
20245 struct { char filler; double field; } pgac_struct;
20249 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20256 rm -f conftest.$ac_objext
20257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20258 (eval $ac_compile) 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } &&
20265 { ac_try='test -z "$ac_c_werror_flag"
20266 || test ! -s conftest.err'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; } &&
20272 { ac_try='test -s conftest.$ac_objext'
20273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274 (eval $ac_try) 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; }; then
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 $ac_includes_default
20287 struct { char filler; double field; } pgac_struct;
20291 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20298 rm -f conftest.$ac_objext
20299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20300 (eval $ac_compile) 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
20307 { ac_try='test -z "$ac_c_werror_flag"
20308 || test ! -s conftest.err'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } &&
20314 { ac_try='test -s conftest.$ac_objext'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_lo=$ac_mid; break
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_hi=`expr '(' $ac_mid ')' - 1`
20326 if test $ac_mid -le $ac_hi; then
20330 ac_mid=`expr 2 '*' $ac_mid`
20332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20343 # Binary search between lo and hi bounds.
20344 while test "x$ac_lo" != "x$ac_hi"; do
20345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20346 cat >conftest.$ac_ext <<_ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20352 $ac_includes_default
20353 struct { char filler; double field; } pgac_struct;
20357 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366 (eval $ac_compile) 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
20373 { ac_try='test -z "$ac_c_werror_flag"
20374 || test ! -s conftest.err'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; } &&
20380 { ac_try='test -s conftest.$ac_objext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20391 ac_lo=`expr '(' $ac_mid ')' + 1`
20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20396 ?*) pgac_cv_alignof_double=$ac_lo;;
20397 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20398 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20399 { (exit 1); exit 1; }; } ;;
20402 if test "$cross_compiling" = yes; then
20403 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20404 See \`config.log' for more details." >&5
20405 echo "$as_me: error: cannot run test program while cross compiling
20406 See \`config.log' for more details." >&2;}
20407 { (exit 1); exit 1; }; }
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 $ac_includes_default
20416 struct { char filler; double field; } pgac_struct;
20417 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20418 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20420 #include <stdlib.h>
20425 FILE *f = fopen ("conftest.val", "w");
20428 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20430 long i = longval ();
20431 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20433 fprintf (f, "%ld\n", i);
20437 unsigned long i = ulongval ();
20438 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20440 fprintf (f, "%lu\n", i);
20442 exit (ferror (f) || fclose (f) != 0);
20448 rm -f conftest$ac_exeext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450 (eval $ac_link) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20459 pgac_cv_alignof_double=`cat conftest.val`
20461 echo "$as_me: program exited with status $ac_status" >&5
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ( exit $ac_status )
20466 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20467 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20468 { (exit 1); exit 1; }; }
20470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20475 pgac_cv_alignof_double=0
20478 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20479 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20480 cat >>confdefs.h <<_ACEOF
20481 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20486 # Compute maximum alignment of any basic type.
20487 # We assume long's alignment is at least as strong as char, short, or int;
20488 # but we must check long long (if it exists) and double.
20490 MAX_ALIGNOF=$pgac_cv_alignof_long
20491 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20492 MAX_ALIGNOF=$pgac_cv_alignof_double
20494 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20495 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20498 cat >>confdefs.h <<_ACEOF
20499 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20504 # Some platforms predefine the types int8, int16, etc. Only check
20505 # a (hopefully) representative subset.
20506 echo "$as_me:$LINENO: checking for int8" >&5
20507 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20508 if test "${ac_cv_type_int8+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 #ifdef HAVE_SUPPORTDEFS_H
20519 #include <SupportDefs.h>
20533 rm -f conftest.$ac_objext
20534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20535 (eval $ac_compile) 2>conftest.er1
20537 grep -v '^ *+' conftest.er1 >conftest.err
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } &&
20542 { ac_try='test -z "$ac_c_werror_flag"
20543 || test ! -s conftest.err'
20544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545 (eval $ac_try) 2>&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); }; } &&
20549 { ac_try='test -s conftest.$ac_objext'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_cv_type_int8=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20564 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20565 echo "${ECHO_T}$ac_cv_type_int8" >&6
20566 if test $ac_cv_type_int8 = yes; then
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_INT8 1
20574 echo "$as_me:$LINENO: checking for uint8" >&5
20575 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20576 if test "${ac_cv_type_uint8+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20586 #ifdef HAVE_SUPPORTDEFS_H
20587 #include <SupportDefs.h>
20595 if (sizeof (uint8))
20601 rm -f conftest.$ac_objext
20602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20603 (eval $ac_compile) 2>conftest.er1
20605 grep -v '^ *+' conftest.er1 >conftest.err
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } &&
20610 { ac_try='test -z "$ac_c_werror_flag"
20611 || test ! -s conftest.err'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try='test -s conftest.$ac_objext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_cv_type_uint8=yes
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ac_cv_type_uint8=no
20630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20632 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20633 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20634 if test $ac_cv_type_uint8 = yes; then
20636 cat >>confdefs.h <<_ACEOF
20637 #define HAVE_UINT8 1
20642 echo "$as_me:$LINENO: checking for int64" >&5
20643 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20644 if test "${ac_cv_type_int64+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 cat >conftest.$ac_ext <<_ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20654 #ifdef HAVE_SUPPORTDEFS_H
20655 #include <SupportDefs.h>
20663 if (sizeof (int64))
20669 rm -f conftest.$ac_objext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20671 (eval $ac_compile) 2>conftest.er1
20673 grep -v '^ *+' conftest.er1 >conftest.err
20675 cat conftest.err >&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } &&
20678 { ac_try='test -z "$ac_c_werror_flag"
20679 || test ! -s conftest.err'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; } &&
20685 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20691 ac_cv_type_int64=yes
20693 echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 ac_cv_type_int64=no
20698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20700 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20701 echo "${ECHO_T}$ac_cv_type_int64" >&6
20702 if test $ac_cv_type_int64 = yes; then
20704 cat >>confdefs.h <<_ACEOF
20705 #define HAVE_INT64 1
20710 echo "$as_me:$LINENO: checking for uint64" >&5
20711 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20712 if test "${ac_cv_type_uint64+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20722 #ifdef HAVE_SUPPORTDEFS_H
20723 #include <SupportDefs.h>
20731 if (sizeof (uint64))
20737 rm -f conftest.$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739 (eval $ac_compile) 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest.$ac_objext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_cv_type_uint64=yes
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 ac_cv_type_uint64=no
20766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20768 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20769 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20770 if test $ac_cv_type_uint64 = yes; then
20772 cat >>confdefs.h <<_ACEOF
20773 #define HAVE_UINT64 1
20780 # We also check for sig_atomic_t, which *should* be defined per ANSI
20781 # C, but is missing on some old platforms.
20782 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20783 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20784 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 #include <signal.h>
20798 if ((sig_atomic_t *) 0)
20800 if (sizeof (sig_atomic_t))
20806 rm -f conftest.$ac_objext
20807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20808 (eval $ac_compile) 2>conftest.er1
20810 grep -v '^ *+' conftest.er1 >conftest.err
20812 cat conftest.err >&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } &&
20815 { ac_try='test -z "$ac_c_werror_flag"
20816 || test ! -s conftest.err'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 ac_cv_type_sig_atomic_t=yes
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_cv_type_sig_atomic_t=no
20835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20837 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20838 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20839 if test $ac_cv_type_sig_atomic_t = yes; then
20841 cat >>confdefs.h <<_ACEOF
20842 #define HAVE_SIG_ATOMIC_T 1
20850 if test x"$template" != x"win32"
20852 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20853 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20854 if test "${pgac_cv_func_posix_signals+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 #include <signal.h>
20868 struct sigaction act, oact;
20869 sigemptyset(&act.sa_mask);
20870 act.sa_flags = SA_RESTART;
20871 sigaction(0, &act, &oact);
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20878 (eval $ac_link) 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
20885 { ac_try='test -z "$ac_c_werror_flag"
20886 || test ! -s conftest.err'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; } &&
20892 { ac_try='test -s conftest$ac_exeext'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; }; then
20898 pgac_cv_func_posix_signals=yes
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 pgac_cv_func_posix_signals=no
20905 rm -f conftest.err conftest.$ac_objext \
20906 conftest$ac_exeext conftest.$ac_ext
20908 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
20909 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
20910 if test x"$pgac_cv_func_posix_signals" = xyes ; then
20912 cat >>confdefs.h <<\_ACEOF
20913 #define HAVE_POSIX_SIGNALS
20917 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
20919 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
20920 { { echo "$as_me:$LINENO: error:
20921 *** Thread-safety requires POSIX signals, which are not supported by your
20922 *** operating system.
20924 echo "$as_me: error:
20925 *** Thread-safety requires POSIX signals, which are not supported by your
20926 *** operating system.
20928 { (exit 1); exit 1; }; }
20932 if test $ac_cv_func_fseeko = yes; then
20933 # Check whether --enable-largefile or --disable-largefile was given.
20934 if test "${enable_largefile+set}" = set; then
20935 enableval="$enable_largefile"
20938 if test "$enable_largefile" != no; then
20940 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20941 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
20942 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20945 ac_cv_sys_largefile_CC=no
20946 if test "$GCC" != yes; then
20949 # IRIX 6.2 and later do not support large files by default,
20950 # so use the C compiler's -n32 option if that helps.
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 #include <sys/types.h>
20958 /* Check that off_t can represent 2**63 - 1 correctly.
20959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20960 since some C++ compilers masquerading as C compilers
20961 incorrectly reject 9223372036854775807. */
20962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20964 && LARGE_OFF_T % 2147483647 == 1)
20974 rm -f conftest.$ac_objext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976 (eval $ac_compile) 2>conftest.er1
20978 grep -v '^ *+' conftest.er1 >conftest.err
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
20983 { ac_try='test -z "$ac_c_werror_flag"
20984 || test ! -s conftest.err'
20985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986 (eval $ac_try) 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest.$ac_objext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20998 echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21002 rm -f conftest.err conftest.$ac_objext
21004 rm -f conftest.$ac_objext
21005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21006 (eval $ac_compile) 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
21013 { ac_try='test -z "$ac_c_werror_flag"
21014 || test ! -s conftest.err'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest.$ac_objext'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; }; then
21026 ac_cv_sys_largefile_CC=' -n32'; break
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21032 rm -f conftest.err conftest.$ac_objext
21036 rm -f conftest.$ac_ext
21039 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21040 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21041 if test "$ac_cv_sys_largefile_CC" != no; then
21042 CC=$CC$ac_cv_sys_largefile_CC
21045 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21046 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21047 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 ac_cv_sys_file_offset_bits=no
21052 cat >conftest.$ac_ext <<_ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 #include <sys/types.h>
21059 /* Check that off_t can represent 2**63 - 1 correctly.
21060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21061 since some C++ compilers masquerading as C compilers
21062 incorrectly reject 9223372036854775807. */
21063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21065 && LARGE_OFF_T % 2147483647 == 1)
21075 rm -f conftest.$ac_objext
21076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21077 (eval $ac_compile) 2>conftest.er1
21079 grep -v '^ *+' conftest.er1 >conftest.err
21081 cat conftest.err >&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } &&
21084 { ac_try='test -z "$ac_c_werror_flag"
21085 || test ! -s conftest.err'
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21104 cat >conftest.$ac_ext <<_ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21110 #define _FILE_OFFSET_BITS 64
21111 #include <sys/types.h>
21112 /* Check that off_t can represent 2**63 - 1 correctly.
21113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21114 since some C++ compilers masquerading as C compilers
21115 incorrectly reject 9223372036854775807. */
21116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21118 && LARGE_OFF_T % 2147483647 == 1)
21128 rm -f conftest.$ac_objext
21129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>conftest.er1
21132 grep -v '^ *+' conftest.er1 >conftest.err
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -z "$ac_c_werror_flag"
21138 || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 ac_cv_sys_file_offset_bits=64; break
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21160 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21161 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21162 if test "$ac_cv_sys_file_offset_bits" != no; then
21164 cat >>confdefs.h <<_ACEOF
21165 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21170 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21171 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21172 if test "${ac_cv_sys_large_files+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 ac_cv_sys_large_files=no
21177 cat >conftest.$ac_ext <<_ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 #include <sys/types.h>
21184 /* Check that off_t can represent 2**63 - 1 correctly.
21185 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21186 since some C++ compilers masquerading as C compilers
21187 incorrectly reject 9223372036854775807. */
21188 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21189 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21190 && LARGE_OFF_T % 2147483647 == 1)
21200 rm -f conftest.$ac_objext
21201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21202 (eval $ac_compile) 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -z "$ac_c_werror_flag"
21210 || test ! -s conftest.err'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; } &&
21216 { ac_try='test -s conftest.$ac_objext'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; }; then
21224 echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21229 cat >conftest.$ac_ext <<_ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 #define _LARGE_FILES 1
21236 #include <sys/types.h>
21237 /* Check that off_t can represent 2**63 - 1 correctly.
21238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21239 since some C++ compilers masquerading as C compilers
21240 incorrectly reject 9223372036854775807. */
21241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21243 && LARGE_OFF_T % 2147483647 == 1)
21253 rm -f conftest.$ac_objext
21254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21255 (eval $ac_compile) 2>conftest.er1
21257 grep -v '^ *+' conftest.er1 >conftest.err
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } &&
21262 { ac_try='test -z "$ac_c_werror_flag"
21263 || test ! -s conftest.err'
21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; } &&
21269 { ac_try='test -s conftest.$ac_objext'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; }; then
21275 ac_cv_sys_large_files=1; break
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21285 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21286 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21287 if test "$ac_cv_sys_large_files" != no; then
21289 cat >>confdefs.h <<_ACEOF
21290 #define _LARGE_FILES $ac_cv_sys_large_files
21299 # SunOS doesn't handle negative byte comparisons properly with +/- return
21300 echo "$as_me:$LINENO: checking for working memcmp" >&5
21301 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21302 if test "${ac_cv_func_memcmp_working+set}" = set; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21305 if test "$cross_compiling" = yes; then
21306 ac_cv_func_memcmp_working=no
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 $ac_includes_default
21319 /* Some versions of memcmp are not 8-bit clean. */
21320 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21321 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21324 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21325 or more and with at least one buffer not starting on a 4-byte boundary.
21326 William Lewis provided this test program. */
21331 for (i = 0; i < 4; i++)
21335 strcpy (a, "--------01111111");
21336 strcpy (b, "--------10000000");
21337 if (memcmp (a, b, 16) >= 0)
21347 rm -f conftest$ac_exeext
21348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21349 (eval $ac_link) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; }; then
21358 ac_cv_func_memcmp_working=yes
21360 echo "$as_me: program exited with status $ac_status" >&5
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ( exit $ac_status )
21365 ac_cv_func_memcmp_working=no
21367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21370 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21371 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21372 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21373 "memcmp.$ac_objext" | \
21374 *" memcmp.$ac_objext" | \
21375 "memcmp.$ac_objext "* | \
21376 *" memcmp.$ac_objext "* ) ;;
21377 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21383 # Select semaphore implementation type.
21384 if test "$PORTNAME" != "win32"; then
21385 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21387 cat >>confdefs.h <<\_ACEOF
21388 #define USE_NAMED_POSIX_SEMAPHORES 1
21391 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21393 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21395 cat >>confdefs.h <<\_ACEOF
21396 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21399 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21402 cat >>confdefs.h <<\_ACEOF
21403 #define USE_SYSV_SEMAPHORES 1
21406 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21411 cat >>confdefs.h <<\_ACEOF
21412 #define USE_WIN32_SEMAPHORES 1
21415 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
21419 # Select shared-memory implementation type.
21421 cat >>confdefs.h <<\_ACEOF
21422 #define USE_SYSV_SHARED_MEMORY 1
21425 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21428 # If not set in template file, set bytes to use libc memset()
21429 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21430 MEMSET_LOOP_LIMIT=1024
21433 cat >>confdefs.h <<_ACEOF
21434 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21439 if test "$enable_nls" = yes ; then
21441 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21442 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21443 if test "${ac_cv_search_gettext+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 ac_func_search_save_LIBS=$LIBS
21447 ac_cv_search_gettext=no
21448 cat >conftest.$ac_ext <<_ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 /* Override any gcc2 internal prototype to avoid an error. */
21459 /* We use char because int might match the return type of a gcc2
21460 builtin and then its argument prototype would still apply. */
21470 rm -f conftest.$ac_objext conftest$ac_exeext
21471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21472 (eval $ac_link) 2>conftest.er1
21474 grep -v '^ *+' conftest.er1 >conftest.err
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
21479 { ac_try='test -z "$ac_c_werror_flag"
21480 || test ! -s conftest.err'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; } &&
21486 { ac_try='test -s conftest$ac_exeext'
21487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488 (eval $ac_try) 2>&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; }; then
21492 ac_cv_search_gettext="none required"
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21498 rm -f conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext conftest.$ac_ext
21500 if test "$ac_cv_search_gettext" = no; then
21501 for ac_lib in intl; do
21502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21503 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21510 /* Override any gcc2 internal prototype to avoid an error. */
21514 /* We use char because int might match the return type of a gcc2
21515 builtin and then its argument prototype would still apply. */
21525 rm -f conftest.$ac_objext conftest$ac_exeext
21526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21527 (eval $ac_link) 2>conftest.er1
21529 grep -v '^ *+' conftest.er1 >conftest.err
21531 cat conftest.err >&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } &&
21534 { ac_try='test -z "$ac_c_werror_flag"
21535 || test ! -s conftest.err'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest$ac_exeext'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
21547 ac_cv_search_gettext="-l$ac_lib"
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21554 rm -f conftest.err conftest.$ac_objext \
21555 conftest$ac_exeext conftest.$ac_ext
21558 LIBS=$ac_func_search_save_LIBS
21560 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21561 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21562 if test "$ac_cv_search_gettext" != no; then
21563 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21566 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21567 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21568 { (exit 1); exit 1; }; }
21571 if test "${ac_cv_header_libintl_h+set}" = set; then
21572 echo "$as_me:$LINENO: checking for libintl.h" >&5
21573 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21574 if test "${ac_cv_header_libintl_h+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21578 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21580 # Is the header compilable?
21581 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21582 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21583 cat >conftest.$ac_ext <<_ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 $ac_includes_default
21590 #include <libintl.h>
21592 rm -f conftest.$ac_objext
21593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21594 (eval $ac_compile) 2>conftest.er1
21596 grep -v '^ *+' conftest.er1 >conftest.err
21598 cat conftest.err >&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } &&
21601 { ac_try='test -z "$ac_c_werror_flag"
21602 || test ! -s conftest.err'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; } &&
21608 { ac_try='test -s conftest.$ac_objext'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 ac_header_compiler=yes
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ac_header_compiler=no
21621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21623 echo "${ECHO_T}$ac_header_compiler" >&6
21625 # Is the header present?
21626 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21627 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21628 cat >conftest.$ac_ext <<_ACEOF
21631 cat confdefs.h >>conftest.$ac_ext
21632 cat >>conftest.$ac_ext <<_ACEOF
21633 /* end confdefs.h. */
21634 #include <libintl.h>
21636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21639 grep -v '^ *+' conftest.er1 >conftest.err
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } >/dev/null; then
21644 if test -s conftest.err; then
21645 ac_cpp_err=$ac_c_preproc_warn_flag
21646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21653 if test -z "$ac_cpp_err"; then
21654 ac_header_preproc=yes
21656 echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21659 ac_header_preproc=no
21661 rm -f conftest.err conftest.$ac_ext
21662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21663 echo "${ECHO_T}$ac_header_preproc" >&6
21665 # So? What about this header?
21666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21668 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21669 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21671 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21672 ac_header_preproc=yes
21675 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21676 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21677 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21678 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21679 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21680 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21682 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21683 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21684 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21685 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21686 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21689 ## ---------------------------------------- ##
21690 ## Report this to pgsql-bugs@postgresql.org ##
21691 ## ---------------------------------------- ##
21694 sed "s/^/$as_me: WARNING: /" >&2
21697 echo "$as_me:$LINENO: checking for libintl.h" >&5
21698 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21699 if test "${ac_cv_header_libintl_h+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 ac_cv_header_libintl_h=$ac_header_preproc
21704 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21705 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21708 if test $ac_cv_header_libintl_h = yes; then
21711 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21712 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21713 { (exit 1); exit 1; }; }
21717 for ac_prog in msgfmt
21719 # Extract the first word of "$ac_prog", so it can be a program name with args.
21720 set dummy $ac_prog; ac_word=$2
21721 echo "$as_me:$LINENO: checking for $ac_word" >&5
21722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21723 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21726 if test -n "$MSGFMT"; then
21727 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21730 for as_dir in $PATH
21733 test -z "$as_dir" && as_dir=.
21734 for ac_exec_ext in '' $ac_executable_extensions; do
21735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21736 ac_cv_prog_MSGFMT="$ac_prog"
21737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21745 MSGFMT=$ac_cv_prog_MSGFMT
21746 if test -n "$MSGFMT"; then
21747 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21748 echo "${ECHO_T}$MSGFMT" >&6
21750 echo "$as_me:$LINENO: result: no" >&5
21751 echo "${ECHO_T}no" >&6
21754 test -n "$MSGFMT" && break
21757 if test -z "$MSGFMT"; then
21758 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21759 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21760 { (exit 1); exit 1; }; }
21762 for ac_prog in msgmerge
21764 # Extract the first word of "$ac_prog", so it can be a program name with args.
21765 set dummy $ac_prog; ac_word=$2
21766 echo "$as_me:$LINENO: checking for $ac_word" >&5
21767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21768 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 if test -n "$MSGMERGE"; then
21772 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21775 for as_dir in $PATH
21778 test -z "$as_dir" && as_dir=.
21779 for ac_exec_ext in '' $ac_executable_extensions; do
21780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21781 ac_cv_prog_MSGMERGE="$ac_prog"
21782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21790 MSGMERGE=$ac_cv_prog_MSGMERGE
21791 if test -n "$MSGMERGE"; then
21792 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21793 echo "${ECHO_T}$MSGMERGE" >&6
21795 echo "$as_me:$LINENO: result: no" >&5
21796 echo "${ECHO_T}no" >&6
21799 test -n "$MSGMERGE" && break
21802 for ac_prog in xgettext
21804 # Extract the first word of "$ac_prog", so it can be a program name with args.
21805 set dummy $ac_prog; ac_word=$2
21806 echo "$as_me:$LINENO: checking for $ac_word" >&5
21807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21808 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 if test -n "$XGETTEXT"; then
21812 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21818 test -z "$as_dir" && as_dir=.
21819 for ac_exec_ext in '' $ac_executable_extensions; do
21820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21821 ac_cv_prog_XGETTEXT="$ac_prog"
21822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21830 XGETTEXT=$ac_cv_prog_XGETTEXT
21831 if test -n "$XGETTEXT"; then
21832 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21833 echo "${ECHO_T}$XGETTEXT" >&6
21835 echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6
21839 test -n "$XGETTEXT" && break
21843 # Note: share/locale is always the default, independent of $datadir
21844 localedir='${prefix}/share/locale'
21849 # Check for Tcl configuration script tclConfig.sh
21850 if test "$with_tcl" = yes; then
21851 for ac_prog in tclsh tcl
21853 # Extract the first word of "$ac_prog", so it can be a program name with args.
21854 set dummy $ac_prog; ac_word=$2
21855 echo "$as_me:$LINENO: checking for $ac_word" >&5
21856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21857 if test "${ac_cv_path_TCLSH+set}" = set; then
21858 echo $ECHO_N "(cached) $ECHO_C" >&6
21862 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21866 for as_dir in $PATH
21869 test -z "$as_dir" && as_dir=.
21870 for ac_exec_ext in '' $ac_executable_extensions; do
21871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21872 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21882 TCLSH=$ac_cv_path_TCLSH
21884 if test -n "$TCLSH"; then
21885 echo "$as_me:$LINENO: result: $TCLSH" >&5
21886 echo "${ECHO_T}$TCLSH" >&6
21888 echo "$as_me:$LINENO: result: no" >&5
21889 echo "${ECHO_T}no" >&6
21892 test -n "$TCLSH" && break
21895 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
21896 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
21897 # Let user override test
21898 if test -z "$TCL_CONFIG_SH"; then
21899 pgac_test_dirs="$with_tclconfig"
21901 set X $pgac_test_dirs; shift
21902 if test $# -eq 0; then
21903 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
21904 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
21905 { (exit 1); exit 1; }; }
21906 set X `echo 'puts $auto_path' | $TCLSH`; shift
21910 if test -r "$pgac_dir/tclConfig.sh"; then
21911 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
21917 if test -z "$TCL_CONFIG_SH"; then
21918 echo "$as_me:$LINENO: result: no" >&5
21919 echo "${ECHO_T}no" >&6
21920 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
21921 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
21922 { (exit 1); exit 1; }; }
21924 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
21925 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
21931 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
21932 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
21933 eval TCL_LIBS=\"$TCL_LIBS\"
21934 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
21935 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
21937 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
21938 ac_save_CPPFLAGS=$CPPFLAGS
21939 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
21940 if test "${ac_cv_header_tcl_h+set}" = set; then
21941 echo "$as_me:$LINENO: checking for tcl.h" >&5
21942 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21943 if test "${ac_cv_header_tcl_h+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21947 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21949 # Is the header compilable?
21950 echo "$as_me:$LINENO: checking tcl.h usability" >&5
21951 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 $ac_includes_default
21961 rm -f conftest.$ac_objext
21962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21963 (eval $ac_compile) 2>conftest.er1
21965 grep -v '^ *+' conftest.er1 >conftest.err
21967 cat conftest.err >&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } &&
21970 { ac_try='test -z "$ac_c_werror_flag"
21971 || test ! -s conftest.err'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } &&
21977 { ac_try='test -s conftest.$ac_objext'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 ac_header_compiler=yes
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 ac_header_compiler=no
21990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21992 echo "${ECHO_T}$ac_header_compiler" >&6
21994 # Is the header present?
21995 echo "$as_me:$LINENO: checking tcl.h presence" >&5
21996 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22008 grep -v '^ *+' conftest.er1 >conftest.err
22010 cat conftest.err >&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } >/dev/null; then
22013 if test -s conftest.err; then
22014 ac_cpp_err=$ac_c_preproc_warn_flag
22015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22022 if test -z "$ac_cpp_err"; then
22023 ac_header_preproc=yes
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_header_preproc=no
22030 rm -f conftest.err conftest.$ac_ext
22031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22032 echo "${ECHO_T}$ac_header_preproc" >&6
22034 # So? What about this header?
22035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22037 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22038 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22039 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22040 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22041 ac_header_preproc=yes
22044 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22045 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22047 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22049 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22051 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22052 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22053 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22054 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22055 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22058 ## ---------------------------------------- ##
22059 ## Report this to pgsql-bugs@postgresql.org ##
22060 ## ---------------------------------------- ##
22063 sed "s/^/$as_me: WARNING: /" >&2
22066 echo "$as_me:$LINENO: checking for tcl.h" >&5
22067 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22068 if test "${ac_cv_header_tcl_h+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22071 ac_cv_header_tcl_h=$ac_header_preproc
22073 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22074 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22077 if test $ac_cv_header_tcl_h = yes; then
22080 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22081 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22082 { (exit 1); exit 1; }; }
22086 CPPFLAGS=$ac_save_CPPFLAGS
22090 # Check for DocBook and tools
22092 for ac_prog in onsgmls nsgmls
22094 # Extract the first word of "$ac_prog", so it can be a program name with args.
22095 set dummy $ac_prog; ac_word=$2
22096 echo "$as_me:$LINENO: checking for $ac_word" >&5
22097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22098 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22099 echo $ECHO_N "(cached) $ECHO_C" >&6
22101 if test -n "$NSGMLS"; then
22102 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22105 for as_dir in $PATH
22108 test -z "$as_dir" && as_dir=.
22109 for ac_exec_ext in '' $ac_executable_extensions; do
22110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22111 ac_cv_prog_NSGMLS="$ac_prog"
22112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22120 NSGMLS=$ac_cv_prog_NSGMLS
22121 if test -n "$NSGMLS"; then
22122 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22123 echo "${ECHO_T}$NSGMLS" >&6
22125 echo "$as_me:$LINENO: result: no" >&5
22126 echo "${ECHO_T}no" >&6
22129 test -n "$NSGMLS" && break
22132 for ac_prog in openjade jade
22134 # Extract the first word of "$ac_prog", so it can be a program name with args.
22135 set dummy $ac_prog; ac_word=$2
22136 echo "$as_me:$LINENO: checking for $ac_word" >&5
22137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22138 if test "${ac_cv_prog_JADE+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 if test -n "$JADE"; then
22142 ac_cv_prog_JADE="$JADE" # Let the user override the test.
22144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22145 for as_dir in $PATH
22148 test -z "$as_dir" && as_dir=.
22149 for ac_exec_ext in '' $ac_executable_extensions; do
22150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22151 ac_cv_prog_JADE="$ac_prog"
22152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22160 JADE=$ac_cv_prog_JADE
22161 if test -n "$JADE"; then
22162 echo "$as_me:$LINENO: result: $JADE" >&5
22163 echo "${ECHO_T}$JADE" >&6
22165 echo "$as_me:$LINENO: result: no" >&5
22166 echo "${ECHO_T}no" >&6
22169 test -n "$JADE" && break
22173 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22174 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22175 if test "${pgac_cv_check_docbook+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22178 cat >conftest.sgml <<EOF
22179 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22181 <title>test</title>
22183 <title>random</title>
22185 <title>testsect</title>
22192 pgac_cv_check_docbook=no
22194 if test -n "$NSGMLS"; then
22195 $NSGMLS -s conftest.sgml 1>&5 2>&1
22196 if test $? -eq 0; then
22197 pgac_cv_check_docbook=yes
22200 rm -f conftest.sgml
22202 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22203 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22205 have_docbook=$pgac_cv_check_docbook
22208 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22209 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22210 if test "${pgac_cv_path_stylesheets+set}" = set; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22213 if test -n "$DOCBOOKSTYLE"; then
22214 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22216 for pgac_prefix in /usr /usr/local /opt; do
22217 for pgac_infix in share lib; do
22218 for pgac_postfix in \
22219 sgml/stylesheets/nwalsh-modular \
22220 sgml/stylesheets/docbook \
22221 sgml/docbook-dsssl \
22222 sgml/docbook/dsssl/modular \
22223 sgml/docbook/stylesheet/dsssl/modular \
22224 sgml/docbook/dsssl-stylesheets
22226 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22227 if test -r "$pgac_candidate/html/docbook.dsl" \
22228 && test -r "$pgac_candidate/print/docbook.dsl"
22230 pgac_cv_path_stylesheets=$pgac_candidate
22239 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22241 if test -n "$DOCBOOKSTYLE"; then
22242 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22243 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22245 echo "$as_me:$LINENO: result: no" >&5
22246 echo "${ECHO_T}no" >&6
22248 if test -n "$DOCBOOKSTYLE"; then
22249 for ac_prog in collateindex.pl
22251 # Extract the first word of "$ac_prog", so it can be a program name with args.
22252 set dummy $ac_prog; ac_word=$2
22253 echo "$as_me:$LINENO: checking for $ac_word" >&5
22254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22255 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 case $COLLATEINDEX in
22260 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22264 for as_dir in $DOCBOOKSTYLE/bin $PATH
22267 test -z "$as_dir" && as_dir=.
22268 for ac_exec_ext in '' $ac_executable_extensions; do
22269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22270 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22280 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22282 if test -n "$COLLATEINDEX"; then
22283 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22284 echo "${ECHO_T}$COLLATEINDEX" >&6
22286 echo "$as_me:$LINENO: result: no" >&5
22287 echo "${ECHO_T}no" >&6
22290 test -n "$COLLATEINDEX" && break
22294 for ac_prog in collateindex.pl
22296 # Extract the first word of "$ac_prog", so it can be a program name with args.
22297 set dummy $ac_prog; ac_word=$2
22298 echo "$as_me:$LINENO: checking for $ac_word" >&5
22299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22300 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22303 case $COLLATEINDEX in
22305 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22309 for as_dir in $PATH
22312 test -z "$as_dir" && as_dir=.
22313 for ac_exec_ext in '' $ac_executable_extensions; do
22314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22315 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22325 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22327 if test -n "$COLLATEINDEX"; then
22328 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22329 echo "${ECHO_T}$COLLATEINDEX" >&6
22331 echo "$as_me:$LINENO: result: no" >&5
22332 echo "${ECHO_T}no" >&6
22335 test -n "$COLLATEINDEX" && break
22339 for ac_prog in sgmlspl
22341 # Extract the first word of "$ac_prog", so it can be a program name with args.
22342 set dummy $ac_prog; ac_word=$2
22343 echo "$as_me:$LINENO: checking for $ac_word" >&5
22344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22345 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22348 if test -n "$SGMLSPL"; then
22349 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22352 for as_dir in $PATH
22355 test -z "$as_dir" && as_dir=.
22356 for ac_exec_ext in '' $ac_executable_extensions; do
22357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22358 ac_cv_prog_SGMLSPL="$ac_prog"
22359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22367 SGMLSPL=$ac_cv_prog_SGMLSPL
22368 if test -n "$SGMLSPL"; then
22369 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22370 echo "${ECHO_T}$SGMLSPL" >&6
22372 echo "$as_me:$LINENO: result: no" >&5
22373 echo "${ECHO_T}no" >&6
22376 test -n "$SGMLSPL" && break
22382 # We have to run the thread test near the end so we have all our symbols
22383 # defined. Cross compiling throws a warning.
22385 if test "$enable_thread_safety_force" = yes; then
22386 if test x"$template" != x"win32"
22388 { echo "$as_me:$LINENO: WARNING:
22389 *** Skipping thread test program. --enable-thread-safety-force was used.
22390 *** Run the program in src/test/thread on the your machine and add
22391 proper locking function calls to your applications to guarantee thread
22394 echo "$as_me: WARNING:
22395 *** Skipping thread test program. --enable-thread-safety-force was used.
22396 *** Run the program in src/test/thread on the your machine and add
22397 proper locking function calls to your applications to guarantee thread
22401 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22402 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22404 elif test "$enable_thread_safety" = yes; then
22405 if test x"$template" != x"win32"
22407 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22408 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22412 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22413 LIBS="$LIBS $PTHREAD_LIBS"
22414 if test "$cross_compiling" = yes; then
22415 echo "$as_me:$LINENO: result: maybe" >&5
22416 echo "${ECHO_T}maybe" >&6
22417 { echo "$as_me:$LINENO: WARNING:
22418 *** Skipping thread test program because of cross-compile build.
22419 *** Run the program in src/test/thread on the target machine.
22421 echo "$as_me: WARNING:
22422 *** Skipping thread test program because of cross-compile build.
22423 *** Run the program in src/test/thread on the target machine.
22426 cat >conftest.$ac_ext <<_ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 #include "$srcdir/src/test/thread/thread_test.c"
22434 rm -f conftest$ac_exeext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22436 (eval $ac_link) 2>&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441 (eval $ac_try) 2>&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; }; then
22445 echo "$as_me:$LINENO: result: yes" >&5
22446 echo "${ECHO_T}yes" >&6
22448 echo "$as_me: program exited with status $ac_status" >&5
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 ( exit $ac_status )
22453 echo "$as_me:$LINENO: result: no" >&5
22454 echo "${ECHO_T}no" >&6
22455 { { echo "$as_me:$LINENO: error:
22456 *** Thread test program failed. Your platform is not thread-safe.
22457 *** Check the file 'config.log'for the exact reason.
22459 *** You can use the configure option --enable-thread-safety-force
22460 *** to force threads to be enabled. However, you must then run
22461 *** the program in src/test/thread and add locking function calls
22462 *** to your applications to guarantee thread safety.
22464 echo "$as_me: error:
22465 *** Thread test program failed. Your platform is not thread-safe.
22466 *** Check the file 'config.log'for the exact reason.
22468 *** You can use the configure option --enable-thread-safety-force
22469 *** to force threads to be enabled. However, you must then run
22470 *** the program in src/test/thread and add locking function calls
22471 *** to your applications to guarantee thread safety.
22473 { (exit 1); exit 1; }; }
22475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22480 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22481 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22485 # prepare build tree if outside source tree
22486 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22487 # Note 2: /bin/pwd might be better than shell's built-in at getting
22488 # a symlink-free name.
22489 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22493 if test "$no_create" != yes; then
22494 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22495 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22496 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22497 || { { echo "$as_me:$LINENO: error: failed" >&5
22498 echo "$as_me: error: failed" >&2;}
22499 { (exit 1); exit 1; }; }
22500 echo "$as_me:$LINENO: result: done" >&5
22501 echo "${ECHO_T}done" >&6
22507 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22510 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}"
22513 if test "$PORTNAME" = "win32"; then
22514 ac_config_commands="$ac_config_commands check_win32_symlinks"
22518 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22521 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
22526 # Warn about unknown options
22530 for var in `set |sed -ne '/^\(with_\|enable\_\)/ s/=.*//p'` ; do
22537 enable_integer_datetimes) ;;
22542 enable_spinlocks) ;;
22548 enable_thread_safety) ;;
22549 enable_thread_safety_force) ;;
22555 with_krb_srvnam) ;;
22561 with_libedit_preferred) ;;
22566 echo -n "*** Option ignored: "
22567 echo $var | sed -e 's/\(^=*\)/--\1/;s/_/-/g'
22573 cat >confcache <<\_ACEOF
22574 # This file is a shell script that caches the results of configure
22575 # tests run on this system so they can be shared between configure
22576 # scripts and configure runs, see configure's option --config-cache.
22577 # It is not useful on other systems. If it contains results you don't
22578 # want to keep, you may remove or edit it.
22580 # config.status only pays attention to the cache file if you give it
22581 # the --recheck option to rerun configure.
22583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22585 # following values.
22589 # The following way of writing the cache mishandles newlines in values,
22590 # but we know of no workaround that is simple, portable, and efficient.
22591 # So, don't put newlines in cache variables' values.
22592 # Ultrix sh set writes to stderr and can't be redirected directly,
22593 # and sets the high bit in the cache file unless we assign to the vars.
22596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22598 # `set' does not quote correctly, so add quotes (double-quote
22599 # substitution turns \\\\ into \\, and sed turns \\ into \).
22602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22605 # `set' quotes correctly as required by POSIX, so do not add quotes.
22607 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22616 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22618 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22619 if test -w $cache_file; then
22620 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22621 cat confcache >$cache_file
22623 echo "not updating unwritable cache $cache_file"
22628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22629 # Let make expand exec_prefix.
22630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22632 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22633 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22634 # trailing colons and then remove the whole line if VPATH becomes empty
22635 # (actually we leave an empty line to preserve line numbers).
22636 if test "x$srcdir" = x.; then
22637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22638 s/:*\$(srcdir):*/:/;
22639 s/:*\${srcdir}:*/:/;
22641 s/^\([^=]*=[ ]*\):*/\1/;
22647 DEFS=-DHAVE_CONFIG_H
22651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22652 # 1. Remove the extension, and $U if already installed.
22653 ac_i=`echo "$ac_i" |
22654 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22656 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22657 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22659 LIBOBJS=$ac_libobjs
22661 LTLIBOBJS=$ac_ltlibobjs
22665 : ${CONFIG_STATUS=./config.status}
22666 ac_clean_files_save=$ac_clean_files
22667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22668 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22669 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22670 cat >$CONFIG_STATUS <<_ACEOF
22672 # Generated by $as_me.
22673 # Run this file to recreate the current configuration.
22674 # Compiler output produced by configure, useful for debugging
22675 # configure, is in config.log if it exists.
22678 ac_cs_recheck=false
22680 SHELL=\${CONFIG_SHELL-$SHELL}
22683 cat >>$CONFIG_STATUS <<\_ACEOF
22684 ## --------------------- ##
22685 ## M4sh Initialization. ##
22686 ## --------------------- ##
22688 # Be Bourne compatible
22689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22693 # is contrary to our usage. Disable this feature.
22694 alias -g '${1+"$@"}'='"$@"'
22695 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22698 DUALCASE=1; export DUALCASE # for MKS sh
22700 # Support unset when possible.
22701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22708 # Work around bugs in pre-3.0 UWIN ksh.
22709 $as_unset ENV MAIL MAILPATH
22716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22718 LC_TELEPHONE LC_TIME
22720 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22721 eval $as_var=C; export $as_var
22727 # Required to use basename.
22728 if expr a : '\(a\)' >/dev/null 2>&1; then
22734 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22735 as_basename=basename
22741 # Name of the executable.
22742 as_me=`$as_basename "$0" ||
22743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22744 X"$0" : 'X\(//\)$' \| \
22745 X"$0" : 'X\(/\)$' \| \
22746 . : '\(.\)' 2>/dev/null ||
22748 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22749 /^X\/\(\/\/\)$/{ s//\1/; q; }
22750 /^X\/\(\/\).*/{ s//\1/; q; }
22754 # PATH needs CR, and LINENO needs CR and PATH.
22755 # Avoid depending upon Character Ranges.
22756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22759 as_cr_digits='0123456789'
22760 as_cr_alnum=$as_cr_Letters$as_cr_digits
22762 # The user is always right.
22763 if test "${PATH_SEPARATOR+set}" != set; then
22764 echo "#! /bin/sh" >conf$$.sh
22765 echo "exit 0" >>conf$$.sh
22767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22776 as_lineno_1=$LINENO
22777 as_lineno_2=$LINENO
22778 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22779 test "x$as_lineno_1" != "x$as_lineno_2" &&
22780 test "x$as_lineno_3" = "x$as_lineno_2" || {
22781 # Find who we are. Look in the path if we contain no path at all
22784 *[\\/]* ) as_myself=$0 ;;
22785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22786 for as_dir in $PATH
22789 test -z "$as_dir" && as_dir=.
22790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22795 # We did not find ourselves, most probably we were run as `sh COMMAND'
22796 # in which case we are not to be found in the path.
22797 if test "x$as_myself" = x; then
22800 if test ! -f "$as_myself"; then
22801 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22802 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22803 { (exit 1); exit 1; }; }
22805 case $CONFIG_SHELL in
22807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22808 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22811 test -z "$as_dir" && as_dir=.
22812 for as_base in sh bash ksh sh5; do
22815 if ("$as_dir/$as_base" -c '
22816 as_lineno_1=$LINENO
22817 as_lineno_2=$LINENO
22818 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22819 test "x$as_lineno_1" != "x$as_lineno_2" &&
22820 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22821 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22822 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22823 CONFIG_SHELL=$as_dir/$as_base
22824 export CONFIG_SHELL
22825 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22833 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22834 # uniformly replaced by the line number. The first 'sed' inserts a
22835 # line-number line before each line; the second 'sed' does the real
22836 # work. The second script uses 'N' to pair each line-number line
22837 # with the numbered line, and appends trailing '-' during
22838 # substitution so that $LINENO is not a special case at line end.
22839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22840 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22841 sed '=' <$as_myself |
22846 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22849 s,^['$as_cr_digits']*\n,,
22850 ' >$as_me.lineno &&
22851 chmod +x $as_me.lineno ||
22852 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22853 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22854 { (exit 1); exit 1; }; }
22856 # Don't try to exec as it changes $[0], causing all sort of problems
22857 # (the dirname of $[0] is not the place where we might find the
22858 # original and so on. Autoconf is especially sensible to this).
22860 # Exit status is that of the last command.
22865 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22866 *c*,-n*) ECHO_N= ECHO_C='
22868 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22869 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22872 if expr a : '\(a\)' >/dev/null 2>&1; then
22878 rm -f conf$$ conf$$.exe conf$$.file
22880 if ln -s conf$$.file conf$$ 2>/dev/null; then
22881 # We could just check for DJGPP; but this test a) works b) is more generic
22882 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22883 if test -f conf$$.exe; then
22884 # Don't use ln at all; we don't have any links
22889 elif ln conf$$.file conf$$ 2>/dev/null; then
22894 rm -f conf$$ conf$$.exe conf$$.file
22896 if mkdir -p . 2>/dev/null; then
22899 test -d ./-p && rmdir ./-p
22903 as_executable_p="test -f"
22905 # Sed expression to map a string onto a valid CPP name.
22906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22908 # Sed expression to map a string onto a valid variable name.
22909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22913 # We need space, tab and new line, in precisely that order.
22923 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22924 # report actual input values of CONFIG_FILES etc. instead of their
22925 # values after options handling. Logging --version etc. is OK.
22929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22930 ## Running $as_me. ##
22935 This file was extended by PostgreSQL $as_me 8.2beta1, which was
22936 generated by GNU Autoconf 2.59. Invocation command line was
22938 CONFIG_FILES = $CONFIG_FILES
22939 CONFIG_HEADERS = $CONFIG_HEADERS
22940 CONFIG_LINKS = $CONFIG_LINKS
22941 CONFIG_COMMANDS = $CONFIG_COMMANDS
22945 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22949 # Files that config.status was made for.
22950 if test -n "$ac_config_files"; then
22951 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22954 if test -n "$ac_config_headers"; then
22955 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22958 if test -n "$ac_config_links"; then
22959 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22962 if test -n "$ac_config_commands"; then
22963 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22966 cat >>$CONFIG_STATUS <<\_ACEOF
22969 \`$as_me' instantiates files from templates according to the
22970 current configuration.
22972 Usage: $0 [OPTIONS] [FILE]...
22974 -h, --help print this help, then exit
22975 -V, --version print version number, then exit
22976 -q, --quiet do not print progress messages
22977 -d, --debug don't remove temporary files
22978 --recheck update $as_me by reconfiguring in the same conditions
22979 --file=FILE[:TEMPLATE]
22980 instantiate the configuration file FILE
22981 --header=FILE[:TEMPLATE]
22982 instantiate the configuration header FILE
22984 Configuration files:
22987 Configuration headers:
22990 Configuration links:
22993 Configuration commands:
22996 Report bugs to <bug-autoconf@gnu.org>."
22999 cat >>$CONFIG_STATUS <<_ACEOF
23001 PostgreSQL config.status 8.2beta1
23002 configured by $0, generated by GNU Autoconf 2.59,
23003 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23005 Copyright (C) 2003 Free Software Foundation, Inc.
23006 This config.status script is free software; the Free Software Foundation
23007 gives unlimited permission to copy, distribute and modify it."
23011 cat >>$CONFIG_STATUS <<\_ACEOF
23012 # If no file are specified by the user, then we need to provide default
23013 # value. By we need to know if files were specified by the user.
23019 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23020 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23028 *) # This is not an option, so the user has probably given explicit
23031 ac_need_defaults=false;;
23035 # Handling of the options.
23037 cat >>$CONFIG_STATUS <<\_ACEOF
23038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23040 --version | --vers* | -V )
23041 echo "$ac_cs_version"; exit 0 ;;
23043 # Conflict between --help and --header
23044 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23045 Try \`$0 --help' for more information." >&5
23046 echo "$as_me: error: ambiguous option: $1
23047 Try \`$0 --help' for more information." >&2;}
23048 { (exit 1); exit 1; }; };;
23049 --help | --hel | -h )
23050 echo "$ac_cs_usage"; exit 0 ;;
23051 --debug | --d* | -d )
23053 --file | --fil | --fi | --f )
23055 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23056 ac_need_defaults=false;;
23057 --header | --heade | --head | --hea )
23059 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23060 ac_need_defaults=false;;
23061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23065 # This is an error.
23066 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23067 Try \`$0 --help' for more information." >&5
23068 echo "$as_me: error: unrecognized option: $1
23069 Try \`$0 --help' for more information." >&2;}
23070 { (exit 1); exit 1; }; } ;;
23072 *) ac_config_targets="$ac_config_targets $1" ;;
23078 ac_configure_extra_args=
23080 if $ac_cs_silent; then
23082 ac_configure_extra_args="$ac_configure_extra_args --silent"
23086 cat >>$CONFIG_STATUS <<_ACEOF
23087 if \$ac_cs_recheck; then
23088 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23089 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23099 for ac_config_target in $ac_config_targets
23101 case "$ac_config_target" in
23102 # Handling of arguments.
23103 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23104 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23105 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23106 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23107 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23108 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23109 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23110 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23111 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23112 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23113 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23114 "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
23115 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23116 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23117 { (exit 1); exit 1; }; };;
23121 # If the user did not use the arguments to specify the items to instantiate,
23122 # then the envvar interface is used. Set only those that are not.
23123 # We use the long form for the default assignment because of an extremely
23124 # bizarre bug on SunOS 4.1.3.
23125 if $ac_need_defaults; then
23126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23128 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23132 # Have a temporary directory for convenience. Make it in the build tree
23133 # simply because there is no reason to put it here, and in addition,
23134 # creating and moving files from /tmp can sometimes cause problems.
23135 # Create a temporary directory, and hook for its removal unless debugging.
23138 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23139 trap '{ (exit 1); exit 1; }' 1 2 13 15
23142 # Create a (secure) tmp directory for tmp files.
23145 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23146 test -n "$tmp" && test -d "$tmp"
23149 tmp=./confstat$$-$RANDOM
23150 (umask 077 && mkdir $tmp)
23153 echo "$me: cannot create a temporary directory in ." >&2
23154 { (exit 1); exit 1; }
23159 cat >>$CONFIG_STATUS <<_ACEOF
23162 # CONFIG_FILES section.
23165 # No need to generate the scripts if there are no CONFIG_FILES.
23166 # This happens for instance when ./config.status config.h
23167 if test -n "\$CONFIG_FILES"; then
23168 # Protect against being on the right side of a sed subst in config.status.
23169 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23170 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23171 s,@SHELL@,$SHELL,;t t
23172 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23173 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23174 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23175 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23176 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23177 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23178 s,@exec_prefix@,$exec_prefix,;t t
23179 s,@prefix@,$prefix,;t t
23180 s,@program_transform_name@,$program_transform_name,;t t
23181 s,@bindir@,$bindir,;t t
23182 s,@sbindir@,$sbindir,;t t
23183 s,@libexecdir@,$libexecdir,;t t
23184 s,@datadir@,$datadir,;t t
23185 s,@sysconfdir@,$sysconfdir,;t t
23186 s,@sharedstatedir@,$sharedstatedir,;t t
23187 s,@localstatedir@,$localstatedir,;t t
23188 s,@libdir@,$libdir,;t t
23189 s,@includedir@,$includedir,;t t
23190 s,@oldincludedir@,$oldincludedir,;t t
23191 s,@infodir@,$infodir,;t t
23192 s,@mandir@,$mandir,;t t
23193 s,@build_alias@,$build_alias,;t t
23194 s,@host_alias@,$host_alias,;t t
23195 s,@target_alias@,$target_alias,;t t
23196 s,@DEFS@,$DEFS,;t t
23197 s,@ECHO_C@,$ECHO_C,;t t
23198 s,@ECHO_N@,$ECHO_N,;t t
23199 s,@ECHO_T@,$ECHO_T,;t t
23200 s,@LIBS@,$LIBS,;t t
23201 s,@configure_args@,$configure_args,;t t
23202 s,@build@,$build,;t t
23203 s,@build_cpu@,$build_cpu,;t t
23204 s,@build_vendor@,$build_vendor,;t t
23205 s,@build_os@,$build_os,;t t
23206 s,@host@,$host,;t t
23207 s,@host_cpu@,$host_cpu,;t t
23208 s,@host_vendor@,$host_vendor,;t t
23209 s,@host_os@,$host_os,;t t
23210 s,@PORTNAME@,$PORTNAME,;t t
23211 s,@docdir@,$docdir,;t t
23212 s,@enable_nls@,$enable_nls,;t t
23213 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23214 s,@default_port@,$default_port,;t t
23215 s,@enable_shared@,$enable_shared,;t t
23216 s,@enable_rpath@,$enable_rpath,;t t
23217 s,@enable_debug@,$enable_debug,;t t
23218 s,@DTRACE@,$DTRACE,;t t
23219 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
23220 s,@enable_dtrace@,$enable_dtrace,;t t
23222 s,@CFLAGS@,$CFLAGS,;t t
23223 s,@LDFLAGS@,$LDFLAGS,;t t
23224 s,@CPPFLAGS@,$CPPFLAGS,;t t
23225 s,@ac_ct_CC@,$ac_ct_CC,;t t
23226 s,@EXEEXT@,$EXEEXT,;t t
23227 s,@OBJEXT@,$OBJEXT,;t t
23231 s,@autodepend@,$autodepend,;t t
23232 s,@INCLUDES@,$INCLUDES,;t t
23233 s,@enable_thread_safety@,$enable_thread_safety,;t t
23234 s,@with_tcl@,$with_tcl,;t t
23235 s,@with_perl@,$with_perl,;t t
23236 s,@with_python@,$with_python,;t t
23237 s,@with_krb5@,$with_krb5,;t t
23238 s,@krb_srvtab@,$krb_srvtab,;t t
23239 s,@with_pam@,$with_pam,;t t
23240 s,@with_ldap@,$with_ldap,;t t
23241 s,@with_bonjour@,$with_bonjour,;t t
23242 s,@with_openssl@,$with_openssl,;t t
23243 s,@with_zlib@,$with_zlib,;t t
23244 s,@EGREP@,$EGREP,;t t
23245 s,@ELF_SYS@,$ELF_SYS,;t t
23246 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23248 s,@FLEX@,$FLEX,;t t
23249 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23250 s,@LN_S@,$LN_S,;t t
23252 s,@with_gnu_ld@,$with_gnu_ld,;t t
23253 s,@ld_R_works@,$ld_R_works,;t t
23254 s,@RANLIB@,$RANLIB,;t t
23255 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23257 s,@STRIP@,$STRIP,;t t
23258 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23259 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23260 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23261 s,@YACC@,$YACC,;t t
23262 s,@YFLAGS@,$YFLAGS,;t t
23263 s,@PERL@,$PERL,;t t
23264 s,@perl_archlibexp@,$perl_archlibexp,;t t
23265 s,@perl_privlibexp@,$perl_privlibexp,;t t
23266 s,@perl_useshrplib@,$perl_useshrplib,;t t
23267 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23268 s,@PYTHON@,$PYTHON,;t t
23269 s,@python_version@,$python_version,;t t
23270 s,@python_configdir@,$python_configdir,;t t
23271 s,@python_includespec@,$python_includespec,;t t
23272 s,@python_libdir@,$python_libdir,;t t
23273 s,@python_libspec@,$python_libspec,;t t
23274 s,@python_additional_libs@,$python_additional_libs,;t t
23275 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23276 s,@LIBOBJS@,$LIBOBJS,;t t
23277 s,@acx_pthread_config@,$acx_pthread_config,;t t
23278 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23279 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23280 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23281 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
23282 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
23283 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23284 s,@MSGFMT@,$MSGFMT,;t t
23285 s,@MSGMERGE@,$MSGMERGE,;t t
23286 s,@XGETTEXT@,$XGETTEXT,;t t
23287 s,@localedir@,$localedir,;t t
23288 s,@TCLSH@,$TCLSH,;t t
23289 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23290 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23291 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23292 s,@TCL_LIBS@,$TCL_LIBS,;t t
23293 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23294 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23295 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23296 s,@NSGMLS@,$NSGMLS,;t t
23297 s,@JADE@,$JADE,;t t
23298 s,@have_docbook@,$have_docbook,;t t
23299 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23300 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23301 s,@SGMLSPL@,$SGMLSPL,;t t
23302 s,@vpath_build@,$vpath_build,;t t
23303 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23308 cat >>$CONFIG_STATUS <<\_ACEOF
23309 # Split the substitutions into bite-sized pieces for seds with
23310 # small command number limits, like on Digital OSF/1 and HP-UX.
23311 ac_max_sed_lines=48
23312 ac_sed_frag=1 # Number of current file.
23313 ac_beg=1 # First line for current file.
23314 ac_end=$ac_max_sed_lines # Line after last line for current file.
23317 while $ac_more_lines; do
23318 if test $ac_beg -gt 1; then
23319 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23321 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23323 if test ! -s $tmp/subs.frag; then
23324 ac_more_lines=false
23326 # The purpose of the label and of the branching condition is to
23327 # speed up the sed processing (if there are no `@' at all, there
23328 # is no need to browse any of the substitutions).
23329 # These are the two extra sed commands mentioned above.
23331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23332 if test -z "$ac_sed_cmds"; then
23333 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23335 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23337 ac_sed_frag=`expr $ac_sed_frag + 1`
23339 ac_end=`expr $ac_end + $ac_max_sed_lines`
23342 if test -z "$ac_sed_cmds"; then
23345 fi # test -n "$CONFIG_FILES"
23348 cat >>$CONFIG_STATUS <<\_ACEOF
23349 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23352 - | *:- | *:-:* ) # input from stdin
23354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23358 * ) ac_file_in=$ac_file.in ;;
23361 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23362 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23364 X"$ac_file" : 'X\(//\)[^/]' \| \
23365 X"$ac_file" : 'X\(//\)$' \| \
23366 X"$ac_file" : 'X\(/\)' \| \
23367 . : '\(.\)' 2>/dev/null ||
23369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23371 /^X\(\/\/\)$/{ s//\1/; q; }
23372 /^X\(\/\).*/{ s//\1/; q; }
23374 { if $as_mkdir_p; then
23379 while test ! -d "$as_dir"; do
23380 as_dirs="$as_dir $as_dirs"
23381 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23383 X"$as_dir" : 'X\(//\)[^/]' \| \
23384 X"$as_dir" : 'X\(//\)$' \| \
23385 X"$as_dir" : 'X\(/\)' \| \
23386 . : '\(.\)' 2>/dev/null ||
23388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23390 /^X\(\/\/\)$/{ s//\1/; q; }
23391 /^X\(\/\).*/{ s//\1/; q; }
23394 test ! -n "$as_dirs" || mkdir $as_dirs
23395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23397 { (exit 1); exit 1; }; }; }
23401 if test "$ac_dir" != .; then
23402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23403 # A "../" for each directory in $ac_dir_suffix.
23404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23406 ac_dir_suffix= ac_top_builddir=
23410 .) # No --srcdir option. We are building in place.
23412 if test -z "$ac_top_builddir"; then
23415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23417 [\\/]* | ?:[\\/]* ) # Absolute path.
23418 ac_srcdir=$srcdir$ac_dir_suffix;
23419 ac_top_srcdir=$srcdir ;;
23420 *) # Relative path.
23421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23422 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23425 # Do not use `cd foo && pwd` to compute absolute paths, because
23426 # the directories may not exist.
23428 .) ac_abs_builddir="$ac_dir";;
23431 .) ac_abs_builddir=`pwd`;;
23432 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23433 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23436 case $ac_abs_builddir in
23437 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23439 case ${ac_top_builddir}. in
23440 .) ac_abs_top_builddir=$ac_abs_builddir;;
23441 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23442 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23445 case $ac_abs_builddir in
23446 .) ac_abs_srcdir=$ac_srcdir;;
23449 .) ac_abs_srcdir=$ac_abs_builddir;;
23450 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23451 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23454 case $ac_abs_builddir in
23455 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23457 case $ac_top_srcdir in
23458 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23459 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23460 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23466 if test x"$ac_file" != x-; then
23467 { echo "$as_me:$LINENO: creating $ac_file" >&5
23468 echo "$as_me: creating $ac_file" >&6;}
23471 # Let's still pretend it is `configure' which instantiates (i.e., don't
23472 # use $as_me), people would be surprised to read:
23473 # /* config.h. Generated by config.status. */
23474 if test x"$ac_file" = x-; then
23477 configure_input="$ac_file. "
23479 configure_input=$configure_input"Generated from `echo $ac_file_in |
23480 sed 's,.*/,,'` by configure."
23482 # First look for the input files in the build tree, otherwise in the
23484 ac_file_inputs=`IFS=:
23485 for f in $ac_file_in; do
23487 -) echo $tmp/stdin ;;
23489 # Absolute (can't be DOS-style, as IFS=:)
23490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23491 echo "$as_me: error: cannot find input file: $f" >&2;}
23492 { (exit 1); exit 1; }; }
23495 if test -f "$f"; then
23498 elif test -f "$srcdir/$f"; then
23503 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23504 echo "$as_me: error: cannot find input file: $f" >&2;}
23505 { (exit 1); exit 1; }; }
23508 done` || { (exit 1); exit 1; }
23510 cat >>$CONFIG_STATUS <<_ACEOF
23514 cat >>$CONFIG_STATUS <<\_ACEOF
23516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23517 s,@configure_input@,$configure_input,;t t
23518 s,@srcdir@,$ac_srcdir,;t t
23519 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23520 s,@top_srcdir@,$ac_top_srcdir,;t t
23521 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23522 s,@builddir@,$ac_builddir,;t t
23523 s,@abs_builddir@,$ac_abs_builddir,;t t
23524 s,@top_builddir@,$ac_top_builddir,;t t
23525 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23526 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23528 if test x"$ac_file" != x-; then
23529 mv $tmp/out $ac_file
23537 cat >>$CONFIG_STATUS <<\_ACEOF
23540 # CONFIG_HEADER section.
23543 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23544 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23546 # ac_d sets the value in "#define NAME VALUE" lines.
23547 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23548 ac_dB='[ ].*$,\1#\2'
23551 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23552 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23553 ac_uB='$,\1#\2define\3'
23557 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23558 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23560 - | *:- | *:-:* ) # input from stdin
23562 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23563 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23564 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23566 * ) ac_file_in=$ac_file.in ;;
23569 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23570 echo "$as_me: creating $ac_file" >&6;}
23572 # First look for the input files in the build tree, otherwise in the
23574 ac_file_inputs=`IFS=:
23575 for f in $ac_file_in; do
23577 -) echo $tmp/stdin ;;
23579 # Absolute (can't be DOS-style, as IFS=:)
23580 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23581 echo "$as_me: error: cannot find input file: $f" >&2;}
23582 { (exit 1); exit 1; }; }
23583 # Do quote $f, to prevent DOS paths from being IFS'd.
23586 if test -f "$f"; then
23589 elif test -f "$srcdir/$f"; then
23594 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23595 echo "$as_me: error: cannot find input file: $f" >&2;}
23596 { (exit 1); exit 1; }; }
23599 done` || { (exit 1); exit 1; }
23600 # Remove the trailing spaces.
23601 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23605 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23606 # `conftest.undefs', that substitutes the proper values into
23607 # config.h.in to produce config.h. The first handles `#define'
23608 # templates, and the second `#undef' templates.
23609 # And first: Protect against being on the right side of a sed subst in
23610 # config.status. Protect against being in an unquoted here document
23611 # in config.status.
23612 rm -f conftest.defines conftest.undefs
23613 # Using a here document instead of a string reduces the quoting nightmare.
23614 # Putting comments in sed scripts is not portable.
23616 # `end' is used to avoid that the second main sed command (meant for
23617 # 0-ary CPP macros) applies to n-ary macro definitions.
23618 # See the Autoconf documentation for `clear'.
23619 cat >confdef2sed.sed <<\_ACEOF
23624 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23626 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23629 # If some macros were called several times there might be several times
23630 # the same #defines, which is useless. Nevertheless, we may not want to
23631 # sort them, since we want the *last* AC-DEFINE to be honored.
23632 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23633 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23634 rm -f confdef2sed.sed
23636 # This sed command replaces #undef with comments. This is necessary, for
23637 # example, in the case of _POSIX_SOURCE, which is predefined and required
23638 # on some systems where configure will not decide to define it.
23639 cat >>conftest.undefs <<\_ACEOF
23640 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23643 # Break up conftest.defines because some shells have a limit on the size
23644 # of here documents, and old seds have small limits too (100 cmds).
23645 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23646 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23647 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23648 echo ' :' >>$CONFIG_STATUS
23649 rm -f conftest.tail
23650 while grep . conftest.defines >/dev/null
23652 # Write a limited-size here document to $tmp/defines.sed.
23653 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23654 # Speed up: don't consider the non `#define' lines.
23655 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23656 # Work around the forget-to-reset-the-flag bug.
23657 echo 't clr' >>$CONFIG_STATUS
23658 echo ': clr' >>$CONFIG_STATUS
23659 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23661 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23663 mv $tmp/out $tmp/in
23665 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23666 rm -f conftest.defines
23667 mv conftest.tail conftest.defines
23669 rm -f conftest.defines
23670 echo ' fi # grep' >>$CONFIG_STATUS
23671 echo >>$CONFIG_STATUS
23673 # Break up conftest.undefs because some shells have a limit on the size
23674 # of here documents, and old seds have small limits too (100 cmds).
23675 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23676 rm -f conftest.tail
23677 while grep . conftest.undefs >/dev/null
23679 # Write a limited-size here document to $tmp/undefs.sed.
23680 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23681 # Speed up: don't consider the non `#undef'
23682 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23683 # Work around the forget-to-reset-the-flag bug.
23684 echo 't clr' >>$CONFIG_STATUS
23685 echo ': clr' >>$CONFIG_STATUS
23686 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23688 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23690 mv $tmp/out $tmp/in
23692 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23693 rm -f conftest.undefs
23694 mv conftest.tail conftest.undefs
23696 rm -f conftest.undefs
23698 cat >>$CONFIG_STATUS <<\_ACEOF
23699 # Let's still pretend it is `configure' which instantiates (i.e., don't
23700 # use $as_me), people would be surprised to read:
23701 # /* config.h. Generated by config.status. */
23702 if test x"$ac_file" = x-; then
23703 echo "/* Generated by configure. */" >$tmp/config.h
23705 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23707 cat $tmp/in >>$tmp/config.h
23709 if test x"$ac_file" != x-; then
23710 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23711 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23712 echo "$as_me: $ac_file is unchanged" >&6;}
23714 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23715 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23716 X"$ac_file" : 'X\(//\)[^/]' \| \
23717 X"$ac_file" : 'X\(//\)$' \| \
23718 X"$ac_file" : 'X\(/\)' \| \
23719 . : '\(.\)' 2>/dev/null ||
23721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23723 /^X\(\/\/\)$/{ s//\1/; q; }
23724 /^X\(\/\).*/{ s//\1/; q; }
23726 { if $as_mkdir_p; then
23731 while test ! -d "$as_dir"; do
23732 as_dirs="$as_dir $as_dirs"
23733 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23735 X"$as_dir" : 'X\(//\)[^/]' \| \
23736 X"$as_dir" : 'X\(//\)$' \| \
23737 X"$as_dir" : 'X\(/\)' \| \
23738 . : '\(.\)' 2>/dev/null ||
23740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23742 /^X\(\/\/\)$/{ s//\1/; q; }
23743 /^X\(\/\).*/{ s//\1/; q; }
23746 test ! -n "$as_dirs" || mkdir $as_dirs
23747 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23748 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23749 { (exit 1); exit 1; }; }; }
23752 mv $tmp/config.h $ac_file
23756 rm -f $tmp/config.h
23758 # Run the commands associated with the file.
23760 src/include/pg_config.h )
23761 # Update timestamp for pg_config.h (see Makefile.global)
23762 echo >src/include/stamp-h
23767 cat >>$CONFIG_STATUS <<\_ACEOF
23770 # CONFIG_LINKS section.
23773 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23774 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23775 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23777 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23778 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23780 if test ! -r $srcdir/$ac_source; then
23781 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23782 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23783 { (exit 1); exit 1; }; }
23787 # Make relative symlinks.
23788 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23790 X"$ac_dest" : 'X\(//\)[^/]' \| \
23791 X"$ac_dest" : 'X\(//\)$' \| \
23792 X"$ac_dest" : 'X\(/\)' \| \
23793 . : '\(.\)' 2>/dev/null ||
23795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23797 /^X\(\/\/\)$/{ s//\1/; q; }
23798 /^X\(\/\).*/{ s//\1/; q; }
23800 { if $as_mkdir_p; then
23801 mkdir -p "$ac_dest_dir"
23803 as_dir="$ac_dest_dir"
23805 while test ! -d "$as_dir"; do
23806 as_dirs="$as_dir $as_dirs"
23807 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23809 X"$as_dir" : 'X\(//\)[^/]' \| \
23810 X"$as_dir" : 'X\(//\)$' \| \
23811 X"$as_dir" : 'X\(/\)' \| \
23812 . : '\(.\)' 2>/dev/null ||
23814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23816 /^X\(\/\/\)$/{ s//\1/; q; }
23817 /^X\(\/\).*/{ s//\1/; q; }
23820 test ! -n "$as_dirs" || mkdir $as_dirs
23821 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23822 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23823 { (exit 1); exit 1; }; }; }
23827 if test "$ac_dest_dir" != .; then
23828 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23829 # A "../" for each directory in $ac_dir_suffix.
23830 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23832 ac_dir_suffix= ac_top_builddir=
23836 .) # No --srcdir option. We are building in place.
23838 if test -z "$ac_top_builddir"; then
23841 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23843 [\\/]* | ?:[\\/]* ) # Absolute path.
23844 ac_srcdir=$srcdir$ac_dir_suffix;
23845 ac_top_srcdir=$srcdir ;;
23846 *) # Relative path.
23847 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23848 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23851 # Do not use `cd foo && pwd` to compute absolute paths, because
23852 # the directories may not exist.
23854 .) ac_abs_builddir="$ac_dest_dir";;
23856 case "$ac_dest_dir" in
23857 .) ac_abs_builddir=`pwd`;;
23858 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23859 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23862 case $ac_abs_builddir in
23863 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23865 case ${ac_top_builddir}. in
23866 .) ac_abs_top_builddir=$ac_abs_builddir;;
23867 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23868 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23871 case $ac_abs_builddir in
23872 .) ac_abs_srcdir=$ac_srcdir;;
23875 .) ac_abs_srcdir=$ac_abs_builddir;;
23876 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23877 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23880 case $ac_abs_builddir in
23881 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23883 case $ac_top_srcdir in
23884 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23885 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23886 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23892 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23893 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23896 # Try a symlink, then a hard link, then a copy.
23897 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23898 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23899 cp -p $srcdir/$ac_source $ac_dest ||
23900 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23901 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23902 { (exit 1); exit 1; }; }
23905 cat >>$CONFIG_STATUS <<\_ACEOF
23908 # CONFIG_COMMANDS section.
23910 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23911 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23912 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23913 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23914 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23915 X"$ac_dest" : 'X\(//\)[^/]' \| \
23916 X"$ac_dest" : 'X\(//\)$' \| \
23917 X"$ac_dest" : 'X\(/\)' \| \
23918 . : '\(.\)' 2>/dev/null ||
23920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23922 /^X\(\/\/\)$/{ s//\1/; q; }
23923 /^X\(\/\).*/{ s//\1/; q; }
23925 { if $as_mkdir_p; then
23930 while test ! -d "$as_dir"; do
23931 as_dirs="$as_dir $as_dirs"
23932 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23934 X"$as_dir" : 'X\(//\)[^/]' \| \
23935 X"$as_dir" : 'X\(//\)$' \| \
23936 X"$as_dir" : 'X\(/\)' \| \
23937 . : '\(.\)' 2>/dev/null ||
23939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23941 /^X\(\/\/\)$/{ s//\1/; q; }
23942 /^X\(\/\).*/{ s//\1/; q; }
23945 test ! -n "$as_dirs" || mkdir $as_dirs
23946 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23947 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23948 { (exit 1); exit 1; }; }; }
23952 if test "$ac_dir" != .; then
23953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23954 # A "../" for each directory in $ac_dir_suffix.
23955 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23957 ac_dir_suffix= ac_top_builddir=
23961 .) # No --srcdir option. We are building in place.
23963 if test -z "$ac_top_builddir"; then
23966 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23968 [\\/]* | ?:[\\/]* ) # Absolute path.
23969 ac_srcdir=$srcdir$ac_dir_suffix;
23970 ac_top_srcdir=$srcdir ;;
23971 *) # Relative path.
23972 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23973 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23976 # Do not use `cd foo && pwd` to compute absolute paths, because
23977 # the directories may not exist.
23979 .) ac_abs_builddir="$ac_dir";;
23982 .) ac_abs_builddir=`pwd`;;
23983 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23984 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23987 case $ac_abs_builddir in
23988 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23990 case ${ac_top_builddir}. in
23991 .) ac_abs_top_builddir=$ac_abs_builddir;;
23992 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23993 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23996 case $ac_abs_builddir in
23997 .) ac_abs_srcdir=$ac_srcdir;;
24000 .) ac_abs_srcdir=$ac_abs_builddir;;
24001 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24002 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24005 case $ac_abs_builddir in
24006 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24008 case $ac_top_srcdir in
24009 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24010 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24011 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24016 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24017 echo "$as_me: executing $ac_dest commands" >&6;}
24019 check_win32_symlinks )
24020 # Links sometimes fail undetected on Mingw -
24021 # so here we detect it and warn the user
24022 for FILE in $CONFIG_LINKS
24024 # test -e works for symlinks in the MinGW console
24025 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24026 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24033 cat >>$CONFIG_STATUS <<\_ACEOF
24035 { (exit 0); exit 0; }
24037 chmod +x $CONFIG_STATUS
24038 ac_clean_files=$ac_clean_files_save
24041 # configure is writing to config.log, and then calls config.status.
24042 # config.status does its own redirection, appending to config.log.
24043 # Unfortunately, on DOS this fails, as config.log is still kept open
24044 # by configure, so config.status won't be able to write to it; its
24045 # output is simply discarded. So we exec the FD to /dev/null,
24046 # effectively closing config.log, so it can be properly (re)opened and
24047 # appended to by config.status. When coming back to configure, we
24048 # need to make the FD available again.
24049 if test "$no_create" != yes; then
24051 ac_config_status_args=
24052 test "$silent" = yes &&
24053 ac_config_status_args="$ac_config_status_args --quiet"
24055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24058 # would make configure fail if this is the last instruction.
24059 $ac_cs_success || { (exit 1); exit 1; }