2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2007, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.3devel'
275 PACKAGE_STRING='PostgreSQL 8.3devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug enable_profiling DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_ossp_uuid XML2_CONFIG with_libxml with_libxslt 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.3devel to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 if test -n "$ac_init_help"; then
854 case $ac_init_help in
855 short | recursive ) echo "Configuration of PostgreSQL 8.3devel:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-profiling build with profiling enabled
869 --enable-dtrace build with DTrace support
870 --enable-depend turn on automatic dependency tracking
871 --enable-cassert enable assertion checks (for debugging)
872 --enable-thread-safety make client libraries thread-safe
873 --enable-thread-safety-force force thread-safety despite thread test failure
874 --disable-largefile omit support for large files
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
881 --without-docdir do not install the documentation
882 --with-includes=DIRS look for additional header files in DIRS
883 --with-libraries=DIRS look for additional libraries in DIRS
884 --with-libs=DIRS alternative spelling of --with-libraries
885 --with-pgport=PORTNUM change default port number [5432]
886 --with-tcl build Tcl modules (PL/Tcl)
887 --with-tclconfig=DIR tclConfig.sh is in DIR
888 --with-perl build Perl modules (PL/Perl)
889 --with-python build Python modules (PL/Python)
890 --with-krb5 build with Kerberos 5 support
891 --with-krb-srvnam=NAME default service principal name in Kerberos [postgres]
892 --with-pam build with PAM support
893 --with-ldap build with LDAP support
894 --with-bonjour build with Bonjour support
895 --with-openssl build with OpenSSL support
896 --without-readline do not use GNU Readline nor BSD Libedit for editing
897 --with-libedit-preferred prefer BSD Libedit over GNU Readline
898 --with-ossp-uuid build with OSSP UUID library for UUID generation
899 --with-libxml build with XML support
900 --with-libxslt build with XSLT support
901 --without-zlib do not use Zlib
902 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
904 Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
914 location of DocBook stylesheets
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
919 Report bugs to <pgsql-bugs@postgresql.org>.
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
935 ac_dir_suffix= ac_top_builddir=
939 .) # No --srcdir option. We are building in place.
941 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
957 .) ac_abs_builddir="$ac_dir";;
960 .) ac_abs_builddir=`pwd`;;
961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
968 case ${ac_top_builddir}. in
969 .) ac_abs_top_builddir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
978 .) ac_abs_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
986 case $ac_top_srcdir in
987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
994 # Check for guested configure; otherwise get Cygnus style configure.
995 if test -f $ac_srcdir/configure.gnu; then
997 $SHELL $ac_srcdir/configure.gnu --help=recursive
998 elif test -f $ac_srcdir/configure; then
1000 $SHELL $ac_srcdir/configure --help=recursive
1001 elif test -f $ac_srcdir/configure.ac ||
1002 test -f $ac_srcdir/configure.in; then
1004 $ac_configure --help
1006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1015 PostgreSQL configure 8.3devel
1016 generated by GNU Autoconf 2.59
1018 Copyright (C) 2003 Free Software Foundation, Inc.
1019 This configure script is free software; the Free Software Foundation
1020 gives unlimited permission to copy, distribute and modify it.
1022 Copyright (c) 1996-2007, PostgreSQL Global Development Group
1028 This file contains any messages produced by compilers while
1029 running configure, to aid debugging if configure makes a mistake.
1031 It was created by PostgreSQL $as_me 8.3devel, which was
1032 generated by GNU Autoconf 2.59. Invocation command line was
1043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1066 test -z "$as_dir" && as_dir=.
1067 echo "PATH: $as_dir"
1082 # Keep a trace of the command line.
1083 # Strip out --no-create and --no-recursion so they do not pile up.
1084 # Strip out --silent because we don't want to record it for future runs.
1085 # Also quote any args containing shell meta-characters.
1086 # Make two passes to allow for proper duplicate-argument suppression.
1091 ac_must_keep_next=false
1097 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1101 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1105 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1107 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108 if test $ac_must_keep_next = true; then
1109 ac_must_keep_next=false # Got value, back to normal.
1112 *=* | --config-cache | -C | -disable-* | --disable-* \
1113 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115 | -with-* | --with-* | -without-* | --without-* | --x)
1116 case "$ac_configure_args0 " in
1117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1120 -* ) ac_must_keep_next=true ;;
1123 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124 # Get rid of the leading space.
1130 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1133 # When interrupted or exit'd, cleanup temporary files, and complete
1134 # config.log. We remove comments because anyway the quotes in there
1135 # would cause problems or look ugly.
1136 # WARNING: Be sure not to use single quotes in there, as some shells,
1137 # such as our DU 5.0 friend, will then `close' the trap.
1138 trap 'exit_status=$?
1139 # Save into config.log some information that might help in debugging.
1144 ## ---------------- ##
1145 ## Cache variables. ##
1146 ## ---------------- ##
1149 # The following way of writing the cache mishandles newlines in values,
1152 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1155 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1160 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167 ## ----------------- ##
1168 ## Output variables. ##
1169 ## ----------------- ##
1172 for ac_var in $ac_subst_vars
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1179 if test -n "$ac_subst_files"; then
1186 for ac_var in $ac_subst_files
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1194 if test -s confdefs.h; then
1201 sed "/^$/d" confdefs.h | sort
1204 test "$ac_signal" != 0 &&
1205 echo "$as_me: caught signal $ac_signal"
1206 echo "$as_me: exit $exit_status"
1208 rm -f core *.core &&
1209 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1212 for ac_signal in 1 2 13 15; do
1213 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1218 rm -rf conftest* confdefs.h
1219 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1222 # Predefined preprocessor variables.
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_NAME "$PACKAGE_NAME"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_STRING "$PACKAGE_STRING"
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1249 # Let the site file select an alternate cache file if it wants to.
1250 # Prefer explicitly selected file to automatically selected ones.
1251 if test -z "$CONFIG_SITE"; then
1252 if test "x$prefix" != xNONE; then
1253 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1255 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1258 for ac_site_file in $CONFIG_SITE; do
1259 if test -r "$ac_site_file"; then
1260 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261 echo "$as_me: loading site script $ac_site_file" >&6;}
1262 sed 's/^/| /' "$ac_site_file" >&5
1267 if test -r "$cache_file"; then
1268 # Some versions of bash will fail to source /dev/null (special
1269 # files actually), so we avoid doing that.
1270 if test -f "$cache_file"; then
1271 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272 echo "$as_me: loading cache $cache_file" >&6;}
1274 [\\/]* | ?:[\\/]* ) . $cache_file;;
1275 *) . ./$cache_file;;
1279 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280 echo "$as_me: creating cache $cache_file" >&6;}
1284 # Check that the precious variables saved in the cache have kept the same
1286 ac_cache_corrupted=false
1287 for ac_var in `(set) 2>&1 |
1288 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290 eval ac_new_set=\$ac_env_${ac_var}_set
1291 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292 eval ac_new_val="\$ac_env_${ac_var}_value"
1293 case $ac_old_set,$ac_new_set in
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1299 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301 ac_cache_corrupted=: ;;
1304 if test "x$ac_old_val" != "x$ac_new_val"; then
1305 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1308 echo "$as_me: former value: $ac_old_val" >&2;}
1309 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1310 echo "$as_me: current value: $ac_new_val" >&2;}
1311 ac_cache_corrupted=:
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332 { (exit 1); exit 1; }; }
1336 ac_cpp='$CPP $CPPFLAGS'
1337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1372 for ac_dir in config $srcdir/config; do
1373 if test -f $ac_dir/install-sh; then
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1377 elif test -f $ac_dir/install.sh; then
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1381 elif test -f $ac_dir/shtool; then
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1390 { (exit 1); exit 1; }; }
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1397 configure_args=$ac_configure_args
1401 cat >>confdefs.h <<_ACEOF
1402 #define PG_VERSION "$PACKAGE_VERSION"
1406 # Make sure we can run config.sub.
1407 $ac_config_sub sun4 >/dev/null 2>&1 ||
1408 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1409 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1410 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: checking build system type" >&5
1413 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1414 if test "${ac_cv_build+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1417 ac_cv_build_alias=$build_alias
1418 test -z "$ac_cv_build_alias" &&
1419 ac_cv_build_alias=`$ac_config_guess`
1420 test -z "$ac_cv_build_alias" &&
1421 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1422 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1423 { (exit 1); exit 1; }; }
1424 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
1430 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1431 echo "${ECHO_T}$ac_cv_build" >&6
1433 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1438 echo "$as_me:$LINENO: checking host system type" >&5
1439 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1440 if test "${ac_cv_host+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 ac_cv_host_alias=$host_alias
1444 test -z "$ac_cv_host_alias" &&
1445 ac_cv_host_alias=$ac_cv_build_alias
1446 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1452 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1453 echo "${ECHO_T}$ac_cv_host" >&6
1455 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462 echo "$as_me:$LINENO: checking which template to use" >&5
1463 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1466 pgac_args="$pgac_args with_template"
1469 # Check whether --with-template or --without-template was given.
1470 if test "${with_template+set}" = set; then
1471 withval="$with_template"
1475 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1476 echo "$as_me: error: argument required for --with-template option" >&2;}
1477 { (exit 1); exit 1; }; }
1480 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1481 echo "$as_me: error: argument required for --with-template option" >&2;}
1482 { (exit 1); exit 1; }; }
1487 list) echo; ls "$srcdir/src/template"; exit;;
1488 *) if test -f "$srcdir/src/template/$with_template" ; then
1491 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1492 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1493 { (exit 1); exit 1; }; }
1502 # --with-template not given
1505 aix*) template=aix ;;
1506 bsdi*) template=bsdi ;;
1507 cygwin*) template=cygwin ;;
1508 darwin*) template=darwin ;;
1509 dgux*) template=dgux ;;
1510 freebsd*) template=freebsd ;;
1511 hpux*) template=hpux ;;
1512 irix*) template=irix ;;
1513 linux*|gnu*|k*bsd*-gnu)
1515 mingw*) template=win32 ;;
1516 netbsd*) template=netbsd ;;
1517 nextstep*) template=nextstep ;;
1518 openbsd*) template=openbsd ;;
1519 osf*) template=osf ;;
1520 sco*) template=sco ;;
1521 solaris*) template=solaris ;;
1522 sunos*) template=sunos4 ;;
1524 case $host_vendor in
1525 univel) template=univel ;;
1527 sysv4*) template=svr4 ;;
1528 sysv5*) template=unixware ;;
1529 ultrix*) template=ultrix4 ;;
1532 if test x"$template" = x"" ; then
1533 { { echo "$as_me:$LINENO: error:
1534 *******************************************************************
1535 PostgreSQL has apparently not been ported to your platform yet.
1536 To try a manual configuration, look into the src/template directory
1537 for a similar platform and use the '--with-template=' option.
1539 Please also contact <pgsql-ports@postgresql.org> to see about
1540 rectifying this. Include the above 'checking host system type...'
1542 *******************************************************************
1544 echo "$as_me: error:
1545 *******************************************************************
1546 PostgreSQL has apparently not been ported to your platform yet.
1547 To try a manual configuration, look into the src/template directory
1548 for a similar platform and use the '--with-template=' option.
1550 Please also contact <pgsql-ports@postgresql.org> to see about
1551 rectifying this. Include the above 'checking host system type...'
1553 *******************************************************************
1555 { (exit 1); exit 1; }; }
1562 echo "$as_me:$LINENO: result: $template" >&5
1563 echo "${ECHO_T}$template" >&6
1568 # Initialize default assumption that we do not need separate assembly code
1569 # for TAS (test-and-set). This can be overridden by the template file
1570 # when it's executed.
1577 ## Command line options
1581 # Installation directory for documentation
1584 pgac_args="$pgac_args with_docdir"
1587 # Check whether --with-docdir or --without-docdir was given.
1588 if test "${with_docdir+set}" = set; then
1589 withval="$with_docdir"
1593 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1594 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1595 { (exit 1); exit 1; }; }
1606 docdir='${prefix}/doc'
1613 # Add non-standard directories to the include path
1616 pgac_args="$pgac_args with_includes"
1619 # Check whether --with-includes or --without-includes was given.
1620 if test "${with_includes+set}" = set; then
1621 withval="$with_includes"
1625 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1626 echo "$as_me: error: argument required for --with-includes option" >&2;}
1627 { (exit 1); exit 1; }; }
1630 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1631 echo "$as_me: error: argument required for --with-includes option" >&2;}
1632 { (exit 1); exit 1; }; }
1644 # Add non-standard directories to the library search path
1647 pgac_args="$pgac_args with_libraries"
1650 # Check whether --with-libraries or --without-libraries was given.
1651 if test "${with_libraries+set}" = set; then
1652 withval="$with_libraries"
1656 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1657 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1658 { (exit 1); exit 1; }; }
1661 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1662 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1663 { (exit 1); exit 1; }; }
1666 LIBRARY_DIRS=$withval
1674 pgac_args="$pgac_args with_libs"
1677 # Check whether --with-libs or --without-libs was given.
1678 if test "${with_libs+set}" = set; then
1679 withval="$with_libs"
1683 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1684 echo "$as_me: error: argument required for --with-libs option" >&2;}
1685 { (exit 1); exit 1; }; }
1688 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1689 echo "$as_me: error: argument required for --with-libs option" >&2;}
1690 { (exit 1); exit 1; }; }
1693 LIBRARY_DIRS=$withval
1702 # 64-bit integer date/time storage (--enable-integer-datetimes)
1704 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1705 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1707 pgac_args="$pgac_args enable_integer_datetimes"
1709 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1710 if test "${enable_integer_datetimes+set}" = set; then
1711 enableval="$enable_integer_datetimes"
1716 cat >>confdefs.h <<\_ACEOF
1717 #define USE_INTEGER_DATETIMES 1
1725 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1726 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1727 { (exit 1); exit 1; }; }
1732 enable_integer_datetimes=no
1736 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1737 echo "${ECHO_T}$enable_integer_datetimes" >&6
1743 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1744 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1746 pgac_args="$pgac_args enable_nls"
1748 # Check whether --enable-nls or --disable-nls was given.
1749 if test "${enable_nls+set}" = set; then
1750 enableval="$enable_nls"
1761 WANTED_LANGUAGES=$enableval
1770 if test "$enable_nls" = yes; then
1772 cat >>confdefs.h <<\_ACEOF
1773 #define ENABLE_NLS 1
1778 echo "$as_me:$LINENO: result: $enable_nls" >&5
1779 echo "${ECHO_T}$enable_nls" >&6
1784 # Default port number (--with-pgport), default 5432
1786 echo "$as_me:$LINENO: checking for default port number" >&5
1787 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1789 pgac_args="$pgac_args with_pgport"
1792 # Check whether --with-pgport or --without-pgport was given.
1793 if test "${with_pgport+set}" = set; then
1794 withval="$with_pgport"
1798 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1799 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1800 { (exit 1); exit 1; }; }
1803 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1804 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1805 { (exit 1); exit 1; }; }
1808 default_port=$withval
1816 echo "$as_me:$LINENO: result: $default_port" >&5
1817 echo "${ECHO_T}$default_port" >&6
1818 # Need both of these because some places want an integer and some a string
1820 cat >>confdefs.h <<_ACEOF
1821 #define DEF_PGPORT ${default_port}
1825 cat >>confdefs.h <<_ACEOF
1826 #define DEF_PGPORT_STR "${default_port}"
1832 # Option to disable shared libraries
1835 pgac_args="$pgac_args enable_shared"
1837 # Check whether --enable-shared or --disable-shared was given.
1838 if test "${enable_shared+set}" = set; then
1839 enableval="$enable_shared"
1849 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1850 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1851 { (exit 1); exit 1; }; }
1863 # '-rpath'-like feature can be disabled
1866 pgac_args="$pgac_args enable_rpath"
1868 # Check whether --enable-rpath or --disable-rpath was given.
1869 if test "${enable_rpath+set}" = set; then
1870 enableval="$enable_rpath"
1880 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1881 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1882 { (exit 1); exit 1; }; }
1897 pgac_args="$pgac_args enable_spinlocks"
1899 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1900 if test "${enable_spinlocks+set}" = set; then
1901 enableval="$enable_spinlocks"
1911 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1912 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1913 { (exit 1); exit 1; }; }
1918 enable_spinlocks=yes
1924 # --enable-debug adds -g to compiler flags
1927 pgac_args="$pgac_args enable_debug"
1929 # Check whether --enable-debug or --disable-debug was given.
1930 if test "${enable_debug+set}" = set; then
1931 enableval="$enable_debug"
1941 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1942 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1943 { (exit 1); exit 1; }; }
1955 # --enable-profiling enables gcc profiling
1958 pgac_args="$pgac_args enable_profiling"
1960 # Check whether --enable-profiling or --disable-profiling was given.
1961 if test "${enable_profiling+set}" = set; then
1962 enableval="$enable_profiling"
1972 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
1973 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
1974 { (exit 1); exit 1; }; }
1989 pgac_args="$pgac_args enable_dtrace"
1991 # Check whether --enable-dtrace or --disable-dtrace was given.
1992 if test "${enable_dtrace+set}" = set; then
1993 enableval="$enable_dtrace"
1998 cat >>confdefs.h <<\_ACEOF
1999 #define ENABLE_DTRACE 1
2002 for ac_prog in dtrace
2004 # Extract the first word of "$ac_prog", so it can be a program name with args.
2005 set dummy $ac_prog; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_DTRACE+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$DTRACE"; then
2012 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_DTRACE="$ac_prog"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 DTRACE=$ac_cv_prog_DTRACE
2031 if test -n "$DTRACE"; then
2032 echo "$as_me:$LINENO: result: $DTRACE" >&5
2033 echo "${ECHO_T}$DTRACE" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2039 test -n "$DTRACE" && break
2042 if test -z "$DTRACE"; then
2043 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2044 echo "$as_me: error: dtrace not found" >&2;}
2045 { (exit 1); exit 1; }; }
2053 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2054 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2055 { (exit 1); exit 1; }; }
2070 # For historical reasons you can also use --with-CC to specify the C compiler
2071 # to use, although the standard way to do this is to set the CC environment
2074 pgac_args="$pgac_args with_CC"
2077 # Check whether --with-CC or --without-CC was given.
2078 if test "${with_CC+set}" = set; then
2083 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2084 echo "$as_me: error: argument required for --with-CC option" >&2;}
2085 { (exit 1); exit 1; }; }
2088 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2089 echo "$as_me: error: argument required for --with-CC option" >&2;}
2090 { (exit 1); exit 1; }; }
2101 aix) pgac_cc_list="gcc xlc";;
2102 irix) pgac_cc_list="cc";; # no gcc
2103 *) pgac_cc_list="gcc cc";;
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 if test -n "$ac_tool_prefix"; then
2112 for ac_prog in $pgac_cc_list
2114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 if test -n "$CC"; then
2142 echo "$as_me:$LINENO: result: $CC" >&5
2143 echo "${ECHO_T}$CC" >&6
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2149 test -n "$CC" && break
2152 if test -z "$CC"; then
2154 for ac_prog in $pgac_cc_list
2156 # Extract the first word of "$ac_prog", so it can be a program name with args.
2157 set dummy $ac_prog; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 if test -n "$ac_ct_CC"; then
2164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_ac_ct_CC="$ac_prog"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2183 if test -n "$ac_ct_CC"; then
2184 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2185 echo "${ECHO_T}$ac_ct_CC" >&6
2187 echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2191 test -n "$ac_ct_CC" && break
2198 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: no acceptable C compiler found in \$PATH
2201 See \`config.log' for more details." >&2;}
2202 { (exit 1); exit 1; }; }
2204 # Provide some information about the compiler.
2205 echo "$as_me:$LINENO:" \
2206 "checking for C compiler version" >&5
2207 ac_compiler=`set X $ac_compile; echo $2`
2208 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2209 (eval $ac_compiler --version </dev/null >&5) 2>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }
2213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2214 (eval $ac_compiler -v </dev/null >&5) 2>&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); }
2218 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2219 (eval $ac_compiler -V </dev/null >&5) 2>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }
2224 cat >conftest.$ac_ext <<_ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2239 ac_clean_files_save=$ac_clean_files
2240 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2241 # Try to create an executable without -o first, disregard a.out.
2242 # It will help us diagnose broken compilers, and finding out an intuition
2244 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2245 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2246 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2247 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2248 (eval $ac_link_default) 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; then
2252 # Find the output, starting from the most likely. This scheme is
2253 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2256 # Be careful to initialize this variable, since it used to be cached.
2257 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2259 # b.out is created by i960 compilers.
2260 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2262 test -f "$ac_file" || continue
2264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2267 # This is the source file.
2270 # We found the default executable, but exeext='' is most
2274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275 # FIXME: I believe we export ac_cv_exeext for Libtool,
2276 # but it would be cool to find out if it's true. Does anybody
2277 # maintain Libtool? --akim.
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: C compiler cannot create executables
2291 See \`config.log' for more details." >&2;}
2292 { (exit 77); exit 77; }; }
2295 ac_exeext=$ac_cv_exeext
2296 echo "$as_me:$LINENO: result: $ac_file" >&5
2297 echo "${ECHO_T}$ac_file" >&6
2299 # Check the compiler produces executables we can run. If not, either
2300 # the compiler is broken, or we cross compile.
2301 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2302 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2303 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2304 # If not cross compiling, check that we can run a simple program.
2305 if test "$cross_compiling" != yes; then
2306 if { ac_try='./$ac_file'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2314 if test "$cross_compiling" = maybe; then
2317 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2318 If you meant to cross compile, use \`--host'.
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: cannot run C compiled programs.
2321 If you meant to cross compile, use \`--host'.
2322 See \`config.log' for more details." >&2;}
2323 { (exit 1); exit 1; }; }
2327 echo "$as_me:$LINENO: result: yes" >&5
2328 echo "${ECHO_T}yes" >&6
2330 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2331 ac_clean_files=$ac_clean_files_save
2332 # Check the compiler produces executables we can run. If not, either
2333 # the compiler is broken, or we cross compile.
2334 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2335 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2336 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2337 echo "${ECHO_T}$cross_compiling" >&6
2339 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2340 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2342 (eval $ac_link) 2>&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; then
2346 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2347 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2348 # work properly (i.e., refer to `conftest.exe'), while it won't with
2350 for ac_file in conftest.exe conftest conftest.*; do
2351 test -f "$ac_file" || continue
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2361 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }
2368 rm -f conftest$ac_cv_exeext
2369 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2370 echo "${ECHO_T}$ac_cv_exeext" >&6
2372 rm -f conftest.$ac_ext
2373 EXEEXT=$ac_cv_exeext
2375 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2376 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2377 if test "${ac_cv_objext+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2395 rm -f conftest.o conftest.obj
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; then
2401 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2415 See \`config.log' for more details." >&2;}
2416 { (exit 1); exit 1; }; }
2419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2421 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2422 echo "${ECHO_T}$ac_cv_objext" >&6
2423 OBJEXT=$ac_cv_objext
2425 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2426 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2452 grep -v '^ *+' conftest.er1 >conftest.err
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2481 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2482 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2483 GCC=`test $ac_compiler_gnu = yes && echo yes`
2484 ac_test_CFLAGS=${CFLAGS+set}
2485 ac_save_CFLAGS=$CFLAGS
2487 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2488 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2489 if test "${ac_cv_prog_cc_g+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 cat >conftest.$ac_ext <<_ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>conftest.er1
2511 grep -v '^ *+' conftest.er1 >conftest.err
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag"
2517 || test ! -s conftest.err'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2540 if test "$ac_test_CFLAGS" = set; then
2541 CFLAGS=$ac_save_CFLAGS
2542 elif test $ac_cv_prog_cc_g = yes; then
2543 if test "$GCC" = yes; then
2549 if test "$GCC" = yes; then
2555 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2556 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2557 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 ac_cv_prog_cc_stdc=no
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2570 #include <sys/types.h>
2571 #include <sys/stat.h>
2572 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2573 struct buf { int x; };
2574 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2575 static char *e (p, i)
2581 static char *f (char * (*g) (char **, int), char **p, ...)
2586 s = g (p, va_arg (v,int));
2591 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2592 function prototypes and stuff, but not '\xHH' hex character constants.
2593 These don't provoke an error unfortunately, instead are silently treated
2594 as 'x'. The following induces an error, until -std1 is added to get
2595 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2596 array size at least. It's necessary to write '\x00'==0 to get something
2597 that's true only with -std1. */
2598 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2600 int test (int i, double x);
2601 struct s1 {int (*f) (int a);};
2602 struct s2 {int (*f) (double a);};
2603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2614 # Don't try gcc -ansi; that turns off useful extensions and
2615 # breaks some systems' header files.
2616 # AIX -qlanglvl=ansi
2617 # Ultrix and OSF/1 -std1
2618 # HP-UX 10.20 and later -Ae
2619 # HP-UX older versions -Aa -D_HPUX_SOURCE
2620 # SVR4 -Xc -D__EXTENSIONS__
2621 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2623 CC="$ac_save_CC $ac_arg"
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>conftest.er1
2628 grep -v '^ *+' conftest.er1 >conftest.err
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_cv_prog_cc_stdc=$ac_arg
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f conftest.err conftest.$ac_objext
2655 rm -f conftest.$ac_ext conftest.$ac_objext
2660 case "x$ac_cv_prog_cc_stdc" in
2662 echo "$as_me:$LINENO: result: none needed" >&5
2663 echo "${ECHO_T}none needed" >&6 ;;
2665 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2666 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2667 CC="$CC $ac_cv_prog_cc_stdc" ;;
2670 # Some people use a C++ compiler to compile C. Since we use `exit',
2671 # in C++ we need to declare it. In case someone uses the same compiler
2672 # for both compiling C and C++ we need to have the C++ compiler decide
2673 # the declaration of exit, since it's the most demanding environment.
2674 cat >conftest.$ac_ext <<_ACEOF
2679 rm -f conftest.$ac_objext
2680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681 (eval $ac_compile) 2>conftest.er1
2683 grep -v '^ *+' conftest.er1 >conftest.err
2685 cat conftest.err >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } &&
2688 { ac_try='test -z "$ac_c_werror_flag"
2689 || test ! -s conftest.err'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 for ac_declaration in \
2703 'extern "C" void std::exit (int) throw (); using std::exit;' \
2704 'extern "C" void std::exit (int); using std::exit;' \
2705 'extern "C" void exit (int) throw ();' \
2706 'extern "C" void exit (int);' \
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 rm -f conftest.$ac_objext
2771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772 (eval $ac_compile) 2>conftest.er1
2774 grep -v '^ *+' conftest.er1 >conftest.err
2776 cat conftest.err >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -z "$ac_c_werror_flag"
2780 || test ! -s conftest.err'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; } &&
2786 { ac_try='test -s conftest.$ac_objext'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 if test -n "$ac_declaration"; then
2802 echo '#ifdef __cplusplus' >>confdefs.h
2803 echo $ac_declaration >>confdefs.h
2804 echo '#endif' >>confdefs.h
2808 echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 . "$srcdir/src/template/$template" || exit
2827 # CFLAGS are selected so:
2828 # If the user specifies something in the environment, that is used.
2829 # else: If the template file set something, that is used.
2830 # else: If the compiler is GCC, then we use -O2.
2831 # else: If the compiler is something else, then we use -0.
2833 if test "$ac_env_CFLAGS_set" = set; then
2834 CFLAGS=$ac_env_CFLAGS_value
2835 elif test "${CFLAGS+set}" = set; then
2836 : # (keep what template set)
2837 elif test "$GCC" = yes; then
2840 # if the user selected debug mode, don't use -O
2841 if test "$enable_debug" != yes; then
2846 # Some versions of GCC support some additional useful warning flags.
2847 # Check whether they are supported, and add them to CFLAGS if so.
2849 if test "$GCC" = yes; then
2851 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2852 # So we have to check if "GCC" is really ICC.
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2864 #ifndef __INTEL_COMPILER
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>conftest.er1
2875 grep -v '^ *+' conftest.er1 >conftest.err
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -z "$ac_c_werror_flag"
2881 || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 if test "$ICC" = no; then
2903 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2905 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2906 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2907 pgac_save_CFLAGS=$CFLAGS
2908 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 echo "$as_me:$LINENO: result: yes" >&5
2947 echo "${ECHO_T}yes" >&6
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 CFLAGS="$pgac_save_CFLAGS"
2953 echo "$as_me:$LINENO: result: no" >&5
2954 echo "${ECHO_T}no" >&6
2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2959 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2960 pgac_save_CFLAGS=$CFLAGS
2961 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2962 cat >conftest.$ac_ext <<_ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2981 grep -v '^ *+' conftest.er1 >conftest.err
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 echo "$as_me:$LINENO: result: yes" >&5
3000 echo "${ECHO_T}yes" >&6
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 CFLAGS="$pgac_save_CFLAGS"
3006 echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012 # Intel compiler has a bug/misoptimization in checking for
3013 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
3015 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
3016 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
3017 pgac_save_CFLAGS=$CFLAGS
3018 CFLAGS="$pgac_save_CFLAGS -mp1"
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3036 (eval $ac_compile) 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } &&
3043 { ac_try='test -z "$ac_c_werror_flag"
3044 || test ! -s conftest.err'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 CFLAGS="$pgac_save_CFLAGS"
3063 echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 # Disable strict-aliasing rules; needed for gcc 3.3+
3071 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3072 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3073 pgac_save_CFLAGS=$CFLAGS
3074 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } &&
3099 { ac_try='test -z "$ac_c_werror_flag"
3100 || test ! -s conftest.err'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113 echo "${ECHO_T}yes" >&6
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 CFLAGS="$pgac_save_CFLAGS"
3119 echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6
3122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3124 elif test x"${CC}" = x"xlc"; then
3125 # AIX xlc has to have strict aliasing turned off too
3126 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3127 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3128 pgac_save_CFLAGS=$CFLAGS
3129 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>conftest.er1
3149 grep -v '^ *+' conftest.er1 >conftest.err
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -z "$ac_c_werror_flag"
3155 || test ! -s conftest.err'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 echo "$as_me:$LINENO: result: yes" >&5
3168 echo "${ECHO_T}yes" >&6
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 CFLAGS="$pgac_save_CFLAGS"
3174 echo "$as_me:$LINENO: result: no" >&5
3175 echo "${ECHO_T}no" >&6
3177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3181 # supply -g if --enable-debug
3182 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3186 # enable profiling if --enable-profiling
3187 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
3188 if test "$GCC" = yes; then
3190 cat >>confdefs.h <<\_ACEOF
3191 #define PROFILE_PID_DIR 1
3194 CFLAGS="$CFLAGS -pg"
3196 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
3197 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
3198 { (exit 1); exit 1; }; }
3202 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3203 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3205 # We already have this in Makefile.win32, but configure needs it too
3206 if test "$PORTNAME" = "win32"; then
3207 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3210 # Check if the compiler still works with the template settings
3211 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3212 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.$ac_objext conftest$ac_exeext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230 (eval $ac_link) 2>conftest.er1
3232 grep -v '^ *+' conftest.er1 >conftest.err
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest$ac_exeext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 echo "$as_me:$LINENO: result: yes" >&5
3251 echo "${ECHO_T}yes" >&6
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3259 echo "$as_me: error: cannot proceed" >&2;}
3260 { (exit 1); exit 1; }; }
3262 rm -f conftest.err conftest.$ac_objext \
3263 conftest$ac_exeext conftest.$ac_ext
3265 # Defend against gcc -ffast-math
3266 if test "$GCC" = yes; then
3267 cat >conftest.$ac_ext <<_ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3277 #ifdef __FAST_MATH__
3284 rm -f conftest.$ac_objext
3285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286 (eval $ac_compile) 2>conftest.er1
3288 grep -v '^ *+' conftest.er1 >conftest.err
3290 cat conftest.err >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -z "$ac_c_werror_flag"
3294 || test ! -s conftest.err'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; } &&
3300 { ac_try='test -s conftest.$ac_objext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3312 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3313 { (exit 1); exit 1; }; }
3315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3324 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3325 # On Suns, sometimes $CPP names a directory.
3326 if test -n "$CPP" && test -d "$CPP"; then
3329 if test -z "$CPP"; then
3330 if test "${ac_cv_prog_CPP+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 # Double quotes because CPP needs to be expanded
3334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3337 for ac_c_preproc_warn_flag in '' yes
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3352 # include <limits.h>
3354 # include <assert.h>
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375 if test -z "$ac_cpp_err"; then
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Broken: fails on valid input.
3384 rm -f conftest.err conftest.$ac_ext
3386 # OK, works on sane cases. Now check whether non-existent headers
3387 # can be detected and how.
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <ac_nonexistent.h>
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_c_preproc_warn_flag
3406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 if test -z "$ac_cpp_err"; then
3414 # Broken: success on invalid input.
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Passes both tests.
3424 rm -f conftest.err conftest.$ac_ext
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3441 echo "$as_me:$LINENO: result: $CPP" >&5
3442 echo "${ECHO_T}$CPP" >&6
3444 for ac_c_preproc_warn_flag in '' yes
3446 # Use a header file that comes with gcc, so configuring glibc
3447 # with a fresh cross-compiler works.
3448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449 # <limits.h> exists even on freestanding compilers.
3450 # On the NeXT, cc -E runs the code through the compiler's parser,
3451 # not just through cpp. "Syntax error" is here to catch this case.
3452 cat >conftest.$ac_ext <<_ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3459 # include <limits.h>
3461 # include <assert.h>
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3482 if test -z "$ac_cpp_err"; then
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Broken: fails on valid input.
3491 rm -f conftest.err conftest.$ac_ext
3493 # OK, works on sane cases. Now check whether non-existent headers
3494 # can be detected and how.
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #include <ac_nonexistent.h>
3503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3506 grep -v '^ *+' conftest.er1 >conftest.err
3508 cat conftest.err >&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev/null; then
3511 if test -s conftest.err; then
3512 ac_cpp_err=$ac_c_preproc_warn_flag
3513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3520 if test -z "$ac_cpp_err"; then
3521 # Broken: success on invalid input.
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Passes both tests.
3531 rm -f conftest.err conftest.$ac_ext
3534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535 rm -f conftest.err conftest.$ac_ext
3536 if $ac_preproc_ok; then
3539 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&5
3541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 # Create compiler version string
3555 if test x"$GCC" = x"yes" ; then
3556 cc_string="GCC `${CC} --version | sed q`"
3561 cat >>confdefs.h <<_ACEOF
3562 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3568 # Set up TAS assembly code if needed; the template file has now had its
3569 # chance to request this.
3571 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3574 if test "$need_tas" = yes ; then
3583 # Automatic dependency tracking
3586 pgac_args="$pgac_args enable_depend"
3588 # Check whether --enable-depend or --disable-depend was given.
3589 if test "${enable_depend+set}" = set; then
3590 enableval="$enable_depend"
3600 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3601 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3602 { (exit 1); exit 1; }; }
3615 # Enable assert checks
3618 pgac_args="$pgac_args enable_cassert"
3620 # Check whether --enable-cassert or --disable-cassert was given.
3621 if test "${enable_cassert+set}" = set; then
3622 enableval="$enable_cassert"
3627 cat >>confdefs.h <<\_ACEOF
3628 #define USE_ASSERT_CHECKING 1
3636 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3637 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3638 { (exit 1); exit 1; }; }
3650 # Include directories
3653 IFS="${IFS}${PATH_SEPARATOR}"
3654 # SRCH_INC comes from the template file
3655 for dir in $with_includes $SRCH_INC; do
3656 if test -d "$dir"; then
3657 INCLUDES="$INCLUDES -I$dir"
3659 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3660 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3668 # Library directories
3671 IFS="${IFS}${PATH_SEPARATOR}"
3672 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3673 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3674 if test -d "$dir"; then
3675 LIBDIRS="$LIBDIRS -L$dir"
3677 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3678 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3684 # Enable thread-safe client libraries
3686 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3687 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3688 if test "$PORTNAME" != "win32"; then
3690 pgac_args="$pgac_args enable_thread_safety"
3692 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3693 if test "${enable_thread_safety+set}" = set; then
3694 enableval="$enable_thread_safety"
3704 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3705 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3706 { (exit 1); exit 1; }; }
3711 enable_thread_safety=no
3716 # Win32 should always use threads
3718 pgac_args="$pgac_args enable_thread_safety"
3720 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3721 if test "${enable_thread_safety+set}" = set; then
3722 enableval="$enable_thread_safety"
3732 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3733 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3734 { (exit 1); exit 1; }; }
3739 enable_thread_safety=yes
3746 pgac_args="$pgac_args enable_thread_safety_force"
3748 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3749 if test "${enable_thread_safety_force+set}" = set; then
3750 enableval="$enable_thread_safety_force"
3760 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3761 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3762 { (exit 1); exit 1; }; }
3767 enable_thread_safety_force=no
3771 if test "$enable_thread_safety" = yes -o \
3772 "$enable_thread_safety_force" = yes; then
3773 enable_thread_safety="yes" # for 'force'
3775 cat >>confdefs.h <<\_ACEOF
3776 #define ENABLE_THREAD_SAFETY 1
3780 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3781 echo "${ECHO_T}$enable_thread_safety" >&6
3785 # Optionally build Tcl modules (PL/Tcl)
3787 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3788 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3790 pgac_args="$pgac_args with_tcl"
3793 # Check whether --with-tcl or --without-tcl was given.
3794 if test "${with_tcl+set}" = set; then
3805 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3806 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3807 { (exit 1); exit 1; }; }
3816 echo "$as_me:$LINENO: result: $with_tcl" >&5
3817 echo "${ECHO_T}$with_tcl" >&6
3820 # We see if the path to the Tcl/Tk configuration scripts is specified.
3821 # This will override the use of tclsh to find the paths to search.
3824 pgac_args="$pgac_args with_tclconfig"
3827 # Check whether --with-tclconfig or --without-tclconfig was given.
3828 if test "${with_tclconfig+set}" = set; then
3829 withval="$with_tclconfig"
3833 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3834 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3835 { (exit 1); exit 1; }; }
3838 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3839 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3840 { (exit 1); exit 1; }; }
3851 # Optionally build Perl modules (PL/Perl)
3853 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3854 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3856 pgac_args="$pgac_args with_perl"
3859 # Check whether --with-perl or --without-perl was given.
3860 if test "${with_perl+set}" = set; then
3861 withval="$with_perl"
3871 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3872 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3873 { (exit 1); exit 1; }; }
3882 echo "$as_me:$LINENO: result: $with_perl" >&5
3883 echo "${ECHO_T}$with_perl" >&6
3887 # Optionally build Python modules (PL/Python)
3889 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3890 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3892 pgac_args="$pgac_args with_python"
3895 # Check whether --with-python or --without-python was given.
3896 if test "${with_python+set}" = set; then
3897 withval="$with_python"
3907 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3908 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3909 { (exit 1); exit 1; }; }
3918 echo "$as_me:$LINENO: result: $with_python" >&5
3919 echo "${ECHO_T}$with_python" >&6
3925 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3926 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3928 pgac_args="$pgac_args with_krb5"
3931 # Check whether --with-krb5 or --without-krb5 was given.
3932 if test "${with_krb5+set}" = set; then
3933 withval="$with_krb5"
3939 cat >>confdefs.h <<\_ACEOF
3943 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3950 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3951 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3952 { (exit 1); exit 1; }; }
3961 echo "$as_me:$LINENO: result: $with_krb5" >&5
3962 echo "${ECHO_T}$with_krb5" >&6
3970 # Kerberos configuration parameters
3973 pgac_args="$pgac_args with_krb_srvnam"
3976 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3977 if test "${with_krb_srvnam+set}" = set; then
3978 withval="$with_krb_srvnam"
3982 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3983 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3984 { (exit 1); exit 1; }; }
3987 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3988 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3989 { (exit 1); exit 1; }; }
3997 with_krb_srvnam="postgres"
4001 cat >>confdefs.h <<_ACEOF
4002 #define PG_KRB_SRVNAM "$with_krb_srvnam"
4010 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
4011 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
4013 pgac_args="$pgac_args with_pam"
4016 # Check whether --with-pam or --without-pam was given.
4017 if test "${with_pam+set}" = set; then
4023 cat >>confdefs.h <<\_ACEOF
4032 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
4033 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
4034 { (exit 1); exit 1; }; }
4043 echo "$as_me:$LINENO: result: $with_pam" >&5
4044 echo "${ECHO_T}$with_pam" >&6
4051 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
4052 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
4054 pgac_args="$pgac_args with_ldap"
4057 # Check whether --with-ldap or --without-ldap was given.
4058 if test "${with_ldap+set}" = set; then
4059 withval="$with_ldap"
4064 cat >>confdefs.h <<\_ACEOF
4073 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
4074 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
4075 { (exit 1); exit 1; }; }
4084 echo "$as_me:$LINENO: result: $with_ldap" >&5
4085 echo "${ECHO_T}$with_ldap" >&6
4092 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4093 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4095 pgac_args="$pgac_args with_bonjour"
4098 # Check whether --with-bonjour or --without-bonjour was given.
4099 if test "${with_bonjour+set}" = set; then
4100 withval="$with_bonjour"
4105 cat >>confdefs.h <<\_ACEOF
4106 #define USE_BONJOUR 1
4114 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4115 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4116 { (exit 1); exit 1; }; }
4125 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4126 echo "${ECHO_T}$with_bonjour" >&6
4133 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4134 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4136 pgac_args="$pgac_args with_openssl"
4139 # Check whether --with-openssl or --without-openssl was given.
4140 if test "${with_openssl+set}" = set; then
4141 withval="$with_openssl"
4146 cat >>confdefs.h <<\_ACEOF
4155 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4156 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4157 { (exit 1); exit 1; }; }
4166 echo "$as_me:$LINENO: result: $with_openssl" >&5
4167 echo "${ECHO_T}$with_openssl" >&6
4175 pgac_args="$pgac_args with_readline"
4178 # Check whether --with-readline or --without-readline was given.
4179 if test "${with_readline+set}" = set; then
4180 withval="$with_readline"
4190 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4191 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4192 { (exit 1); exit 1; }; }
4201 # readline on MinGW has problems with backslashes in psql and other bugs.
4202 # This is particularly a problem with non-US code pages.
4203 # Therefore disable its use until we understand the cause. 2004-07-20
4204 if test "$PORTNAME" = "win32"; then
4205 if test "$with_readline" = yes; then
4206 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4207 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4217 pgac_args="$pgac_args with_libedit_preferred"
4220 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4221 if test "${with_libedit_preferred+set}" = set; then
4222 withval="$with_libedit_preferred"
4232 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4233 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4234 { (exit 1); exit 1; }; }
4239 with_libedit_preferred=no
4249 pgac_args="$pgac_args with_ossp_uuid"
4252 # Check whether --with-ossp-uuid or --without-ossp-uuid was given.
4253 if test "${with_ossp_uuid+set}" = set; then
4254 withval="$with_ossp_uuid"
4264 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
4265 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
4266 { (exit 1); exit 1; }; }
4282 pgac_args="$pgac_args with_libxml"
4285 # Check whether --with-libxml or --without-libxml was given.
4286 if test "${with_libxml+set}" = set; then
4287 withval="$with_libxml"
4292 cat >>confdefs.h <<\_ACEOF
4293 #define USE_LIBXML 1
4301 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
4302 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
4303 { (exit 1); exit 1; }; }
4313 if test "$with_libxml" = yes ; then
4314 for ac_prog in xml2-config
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test -n "$XML2_CONFIG"; then
4324 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_XML2_CONFIG="$ac_prog"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
4343 if test -n "$XML2_CONFIG"; then
4344 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
4345 echo "${ECHO_T}$XML2_CONFIG" >&6
4347 echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4351 test -n "$XML2_CONFIG" && break
4354 if test -n "$XML2_CONFIG"; then
4355 for pgac_option in `$XML2_CONFIG --cflags`; do
4356 case $pgac_option in
4357 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
4360 for pgac_option in `$XML2_CONFIG --libs`; do
4361 case $pgac_option in
4362 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
4374 pgac_args="$pgac_args with_libxslt"
4377 # Check whether --with-libxslt or --without-libxslt was given.
4378 if test "${with_libxslt+set}" = set; then
4379 withval="$with_libxslt"
4384 cat >>confdefs.h <<\_ACEOF
4385 #define USE_LIBXSLT 1
4393 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
4394 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
4395 { (exit 1); exit 1; }; }
4412 pgac_args="$pgac_args with_zlib"
4415 # Check whether --with-zlib or --without-zlib was given.
4416 if test "${with_zlib+set}" = set; then
4417 withval="$with_zlib"
4427 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4428 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4429 { (exit 1); exit 1; }; }
4444 # Assume system is ELF if it predefines __ELF__ as 1,
4445 # otherwise believe host_os based default.
4447 freebsd1*|freebsd2*) elf=no;;
4448 freebsd3*|freebsd4*) elf=yes;;
4452 echo "$as_me:$LINENO: checking for egrep" >&5
4453 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4454 if test "${ac_cv_prog_egrep+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4458 then ac_cv_prog_egrep='grep -E'
4459 else ac_cv_prog_egrep='egrep'
4462 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4463 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4464 EGREP=$ac_cv_prog_egrep
4467 cat >conftest.$ac_ext <<_ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 $EGREP "yes" >/dev/null 2>&1; then
4482 if test "X$elf" = "Xyes" ; then
4496 CPPFLAGS="$CPPFLAGS $INCLUDES"
4497 LDFLAGS="$LDFLAGS $LIBDIRS"
4499 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4500 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4501 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4502 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4506 for ac_prog in gawk mawk nawk awk
4508 # Extract the first word of "$ac_prog", so it can be a program name with args.
4509 set dummy $ac_prog; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_prog_AWK+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 if test -n "$AWK"; then
4516 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_prog_AWK="$ac_prog"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 if test -n "$AWK"; then
4536 echo "$as_me:$LINENO: result: $AWK" >&5
4537 echo "${ECHO_T}$AWK" >&6
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4543 test -n "$AWK" && break
4546 echo "$as_me:$LINENO: checking for flex" >&5
4547 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4548 if test "${pgac_cv_path_flex+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 # Let the user override the test
4552 if test -n "$FLEX"; then
4553 pgac_cv_path_flex=$FLEX
4557 for pgac_dir in $PATH; do
4559 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4562 for pgac_prog in flex lex; do
4563 pgac_candidate="$pgac_dir/$pgac_prog"
4564 if test -f "$pgac_candidate" \
4565 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4567 echo '%%' > conftest.l
4568 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4569 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4570 pgac_broken_flex=$pgac_candidate
4574 pgac_cv_path_flex=$pgac_candidate
4580 rm -f conftest.l lex.yy.c
4581 : ${pgac_cv_path_flex=no}
4585 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4586 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4587 if test x"$pgac_cv_path_flex" = x"no"; then
4588 if test -n "$pgac_broken_flex"; then
4589 { echo "$as_me:$LINENO: WARNING:
4590 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4591 *** should get version 2.5.4 or later." >&5
4592 echo "$as_me: WARNING:
4593 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4594 *** should get version 2.5.4 or later." >&2;}
4597 { echo "$as_me:$LINENO: WARNING:
4598 *** Without Flex you will not be able to build PostgreSQL from CVS or
4599 *** change any of the scanner definition files. You can obtain Flex from
4600 *** a GNU mirror site. (If you are using the official distribution of
4601 *** PostgreSQL then you do not need to worry about this because the Flex
4602 *** output is pre-generated.)" >&5
4603 echo "$as_me: WARNING:
4604 *** Without Flex you will not be able to build PostgreSQL from CVS or
4605 *** change any of the scanner definition files. You can obtain Flex from
4606 *** a GNU mirror site. (If you are using the official distribution of
4607 *** PostgreSQL then you do not need to worry about this because the Flex
4608 *** output is pre-generated.)" >&2;}
4611 if test x"$pgac_cv_path_flex" = x"no"; then
4614 FLEX=$pgac_cv_path_flex
4620 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4621 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4623 if test "$LN_S" = "ln -s"; then
4624 echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6
4627 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4628 echo "${ECHO_T}no, using $LN_S" >&6
4632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4633 if test "${with_gnu_ld+set}" = set; then
4634 withval="$with_gnu_ld"
4635 test "$withval" = no || with_gnu_ld=yes
4640 if test "$GCC" = yes; then
4641 # Check if gcc -print-prog-name=ld gives a path.
4642 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4643 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4646 # gcc leaves a trailing carriage return which upsets mingw
4647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4652 # Accept absolute paths.
4653 [\\/]* | [A-Za-z]:[\\/]*)
4654 re_direlt='/[^/][^/]*/\.\./'
4655 # Canonicalize the path of ld
4656 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4657 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4658 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4660 test -z "$LD" && LD="$ac_prog"
4663 # If it fails, then pretend we aren't using GCC.
4667 # If it is relative, then search for the first ld in PATH.
4671 elif test "$with_gnu_ld" = yes; then
4672 echo "$as_me:$LINENO: checking for GNU ld" >&5
4673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4678 if test "${ac_cv_path_LD+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 if test -z "$LD"; then
4682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4683 for ac_dir in $PATH; do
4684 test -z "$ac_dir" && ac_dir=.
4685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4686 ac_cv_path_LD="$ac_dir/$ac_prog"
4687 # Check to see if the program is GNU ld. I'd rather use --version,
4688 # but apparently some GNU ld's only accept -v.
4689 # Break only if it was the GNU/non-GNU ld that we prefer.
4690 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4691 test "$with_gnu_ld" != no && break
4693 test "$with_gnu_ld" != yes && break
4699 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4704 if test -n "$LD"; then
4705 echo "$as_me:$LINENO: result: $LD" >&5
4706 echo "${ECHO_T}$LD" >&6
4708 echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4711 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4712 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4713 { (exit 1); exit 1; }; }
4714 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4715 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4716 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4720 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4721 ac_cv_prog_gnu_ld=yes
4723 ac_cv_prog_gnu_ld=no
4726 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4727 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4728 with_gnu_ld=$ac_cv_prog_gnu_ld
4733 case $host_os in sysv5*)
4734 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4735 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4736 if test "${pgac_cv_prog_ld_R+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1 >conftest.err
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest$ac_exeext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 pgac_cv_prog_ld_R=yes
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4783 pgac_cv_prog_ld_R=no
4785 rm -f conftest.err conftest.$ac_objext \
4786 conftest$ac_exeext conftest.$ac_ext
4787 LDFLAGS=$pgac_save_LDFLAGS
4790 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4791 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4792 ld_R_works=$pgac_cv_prog_ld_R
4795 if test -n "$ac_tool_prefix"; then
4796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4798 echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4800 if test "${ac_cv_prog_RANLIB+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 if test -n "$RANLIB"; then
4804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 RANLIB=$ac_cv_prog_RANLIB
4823 if test -n "$RANLIB"; then
4824 echo "$as_me:$LINENO: result: $RANLIB" >&5
4825 echo "${ECHO_T}$RANLIB" >&6
4827 echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6
4832 if test -z "$ac_cv_prog_RANLIB"; then
4833 ac_ct_RANLIB=$RANLIB
4834 # Extract the first word of "ranlib", so it can be a program name with args.
4835 set dummy ranlib; ac_word=$2
4836 echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4838 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 if test -n "$ac_ct_RANLIB"; then
4842 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_ac_ct_RANLIB="ranlib"
4852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4861 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4862 if test -n "$ac_ct_RANLIB"; then
4863 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4864 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4866 echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4870 RANLIB=$ac_ct_RANLIB
4872 RANLIB="$ac_cv_prog_RANLIB"
4875 # Extract the first word of "tar", so it can be a program name with args.
4876 set dummy tar; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_path_TAR+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 if test -n "$TAR"; then
4907 echo "$as_me:$LINENO: result: $TAR" >&5
4908 echo "${ECHO_T}$TAR" >&6
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4915 if test -n "$ac_tool_prefix"; then
4916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}strip; ac_word=$2
4918 echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4920 if test "${ac_cv_prog_STRIP+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 if test -n "$STRIP"; then
4924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 STRIP=$ac_cv_prog_STRIP
4943 if test -n "$STRIP"; then
4944 echo "$as_me:$LINENO: result: $STRIP" >&5
4945 echo "${ECHO_T}$STRIP" >&6
4947 echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4952 if test -z "$ac_cv_prog_STRIP"; then
4954 # Extract the first word of "strip", so it can be a program name with args.
4955 set dummy strip; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 if test -n "$ac_ct_STRIP"; then
4962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_ac_ct_STRIP="strip"
4972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4982 if test -n "$ac_ct_STRIP"; then
4983 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4984 echo "${ECHO_T}$ac_ct_STRIP" >&6
4986 echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6
4992 STRIP="$ac_cv_prog_STRIP"
4996 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4997 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4998 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4999 STRIP_STATIC_LIB="$STRIP -x"
5000 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
5001 echo "$as_me:$LINENO: result: yes" >&5
5002 echo "${ECHO_T}yes" >&6
5006 echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5013 if test -z "$YACC"; then
5014 for ac_prog in 'bison -y'
5016 # Extract the first word of "$ac_prog", so it can be a program name with args.
5017 set dummy $ac_prog; ac_word=$2
5018 echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5020 if test "${ac_cv_prog_YACC+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 if test -n "$YACC"; then
5024 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_YACC="$ac_prog"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 YACC=$ac_cv_prog_YACC
5043 if test -n "$YACC"; then
5044 echo "$as_me:$LINENO: result: $YACC" >&5
5045 echo "${ECHO_T}$YACC" >&6
5047 echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6
5051 test -n "$YACC" && break
5055 if test "$YACC"; then
5056 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
5057 { echo "$as_me:$LINENO: WARNING:
5058 *** The installed version of Bison is too old to use with PostgreSQL.
5059 *** Bison version 1.875 or later is required." >&5
5060 echo "$as_me: WARNING:
5061 *** The installed version of Bison is too old to use with PostgreSQL.
5062 *** Bison version 1.875 or later is required." >&2;}
5067 if test -z "$YACC"; then
5068 { echo "$as_me:$LINENO: WARNING:
5069 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5070 *** change any of the parser definition files. You can obtain Bison from
5071 *** a GNU mirror site. (If you are using the official distribution of
5072 *** PostgreSQL then you do not need to worry about this, because the Bison
5073 *** output is pre-generated.) To use a different yacc program (possible,
5074 *** but not recommended), set the environment variable YACC before running
5075 *** 'configure'." >&5
5076 echo "$as_me: WARNING:
5077 *** Without Bison you will not be able to build PostgreSQL from CVS nor
5078 *** change any of the parser definition files. You can obtain Bison from
5079 *** a GNU mirror site. (If you are using the official distribution of
5080 *** PostgreSQL then you do not need to worry about this, because the Bison
5081 *** output is pre-generated.) To use a different yacc program (possible,
5082 *** but not recommended), set the environment variable YACC before running
5083 *** 'configure'." >&2;}
5088 # Extract the first word of "perl", so it can be a program name with args.
5089 set dummy perl; ac_word=$2
5090 echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092 if test "${ac_cv_path_PERL+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 PERL=$ac_cv_path_PERL
5119 if test -n "$PERL"; then
5120 echo "$as_me:$LINENO: result: $PERL" >&5
5121 echo "${ECHO_T}$PERL" >&6
5123 echo "$as_me:$LINENO: result: no" >&5
5124 echo "${ECHO_T}no" >&6
5127 if test "$with_perl" = yes; then
5129 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
5130 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
5131 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
5132 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
5133 echo "${ECHO_T}$perl_archlibexp" >&6
5134 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
5135 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
5136 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
5137 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
5138 echo "${ECHO_T}$perl_privlibexp" >&6
5139 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
5140 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
5141 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
5142 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
5143 echo "${ECHO_T}$perl_useshrplib" >&6
5145 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
5146 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
5147 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
5148 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
5149 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
5150 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
5151 echo "${ECHO_T}$perl_embed_ldflags" >&6
5154 if test "$with_python" = yes; then
5155 # Extract the first word of "python", so it can be a program name with args.
5156 set dummy python; ac_word=$2
5157 echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159 if test "${ac_cv_path_PYTHON+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 PYTHON=$ac_cv_path_PYTHON
5186 if test -n "$PYTHON"; then
5187 echo "$as_me:$LINENO: result: $PYTHON" >&5
5188 echo "${ECHO_T}$PYTHON" >&6
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5194 if test x"$PYTHON" = x""; then
5195 { { echo "$as_me:$LINENO: error: Python not found" >&5
5196 echo "$as_me: error: Python not found" >&2;}
5197 { (exit 1); exit 1; }; }
5201 echo "$as_me:$LINENO: checking for Python distutils module" >&5
5202 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
5203 if "${PYTHON}" 2>&- -c 'import distutils'
5205 echo "$as_me:$LINENO: result: yes" >&5
5206 echo "${ECHO_T}yes" >&6
5208 echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5210 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
5211 echo "$as_me: error: distutils module not found" >&2;}
5212 { (exit 1); exit 1; }; }
5214 echo "$as_me:$LINENO: checking Python configuration directory" >&5
5215 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
5216 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5217 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')"`
5218 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
5220 # This should be enough of a message.
5221 echo "$as_me:$LINENO: result: $python_configdir" >&5
5222 echo "${ECHO_T}$python_configdir" >&6
5225 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5226 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5228 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
5229 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
5230 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
5231 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
5233 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
5235 # New way: use the official shared library
5236 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
5237 python_libspec="-L${python_libdir} -l${ldlibrary}"
5239 # Old way: use libpython from python_configdir
5240 python_libdir="${python_configdir}"
5241 python_libspec="-L${python_libdir} -lpython${python_version}"
5244 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
5246 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
5247 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5250 # threaded python is not supported on bsd's
5251 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5252 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5253 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5254 if test "$pythreads" = "1"; then
5255 echo "$as_me:$LINENO: result: yes" >&5
5256 echo "${ECHO_T}yes" >&6
5259 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
5260 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
5261 { (exit 1); exit 1; }; }
5265 echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6
5272 # Supply a numeric version string for use by 3rd party add-ons
5273 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5274 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
5276 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
5278 cat >>confdefs.h <<_ACEOF
5279 #define PG_VERSION_NUM $PG_VERSION_NUM
5286 ## Most libraries are included only if they demonstrably provide a function
5287 ## we need, but libm is an exception: always include it, because there are
5288 ## too many compilers that play cute optimization games that will break
5289 ## probes for standard functions such as pow().
5293 echo "$as_me:$LINENO: checking for main in -lm" >&5
5294 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5295 if test "${ac_cv_lib_m_main+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 ac_check_lib_save_LIBS=$LIBS
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5316 rm -f conftest.$ac_objext conftest$ac_exeext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5318 (eval $ac_link) 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_c_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest$ac_exeext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_lib_m_main=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.err conftest.$ac_objext \
5346 conftest$ac_exeext conftest.$ac_ext
5347 LIBS=$ac_check_lib_save_LIBS
5349 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5350 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5351 if test $ac_cv_lib_m_main = yes; then
5352 cat >>confdefs.h <<_ACEOF
5360 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5361 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5362 if test "${ac_cv_search_setproctitle+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 ac_func_search_save_LIBS=$LIBS
5366 ac_cv_search_setproctitle=no
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5374 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5380 char setproctitle ();
5389 rm -f conftest.$ac_objext conftest$ac_exeext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391 (eval $ac_link) 2>conftest.er1
5393 grep -v '^ *+' conftest.er1 >conftest.err
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_c_werror_flag"
5399 || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest$ac_exeext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_search_setproctitle="none required"
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5417 rm -f conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5419 if test "$ac_cv_search_setproctitle" = no; then
5420 for ac_lib in util; do
5421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5422 cat >conftest.$ac_ext <<_ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5429 /* Override any gcc2 internal prototype to avoid an error. */
5433 /* We use char because int might match the return type of a gcc2
5434 builtin and then its argument prototype would still apply. */
5435 char setproctitle ();
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446 (eval $ac_link) 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -z "$ac_c_werror_flag"
5454 || test ! -s conftest.err'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; } &&
5460 { ac_try='test -s conftest$ac_exeext'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5466 ac_cv_search_setproctitle="-l$ac_lib"
5469 echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5473 rm -f conftest.err conftest.$ac_objext \
5474 conftest$ac_exeext conftest.$ac_ext
5477 LIBS=$ac_func_search_save_LIBS
5479 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5480 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5481 if test "$ac_cv_search_setproctitle" != no; then
5482 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5486 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5487 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5488 if test "${ac_cv_search_dlopen+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_func_search_save_LIBS=$LIBS
5492 ac_cv_search_dlopen=no
5493 cat >conftest.$ac_ext <<_ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5500 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
5524 { ac_try='test -z "$ac_c_werror_flag"
5525 || test ! -s conftest.err'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest$ac_exeext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_cv_search_dlopen="none required"
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5543 rm -f conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545 if test "$ac_cv_search_dlopen" = no; then
5546 for ac_lib in dl; do
5547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5548 cat >conftest.$ac_ext <<_ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5555 /* Override any gcc2 internal prototype to avoid an error. */
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5570 rm -f conftest.$ac_objext conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572 (eval $ac_link) 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_c_werror_flag"
5580 || test ! -s conftest.err'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; } &&
5586 { ac_try='test -s conftest$ac_exeext'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5592 ac_cv_search_dlopen="-l$ac_lib"
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5599 rm -f conftest.err conftest.$ac_objext \
5600 conftest$ac_exeext conftest.$ac_ext
5603 LIBS=$ac_func_search_save_LIBS
5605 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5606 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5607 if test "$ac_cv_search_dlopen" != no; then
5608 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5612 echo "$as_me:$LINENO: checking for library containing socket" >&5
5613 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5614 if test "${ac_cv_search_socket+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 ac_func_search_save_LIBS=$LIBS
5618 ac_cv_search_socket=no
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5626 /* Override any gcc2 internal prototype to avoid an error. */
5630 /* We use char because int might match the return type of a gcc2
5631 builtin and then its argument prototype would still apply. */
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1 >conftest.err
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_search_socket="none required"
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5669 rm -f conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
5671 if test "$ac_cv_search_socket" = no; then
5672 for ac_lib in socket wsock32; do
5673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5681 /* Override any gcc2 internal prototype to avoid an error. */
5685 /* We use char because int might match the return type of a gcc2
5686 builtin and then its argument prototype would still apply. */
5696 rm -f conftest.$ac_objext conftest$ac_exeext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5698 (eval $ac_link) 2>conftest.er1
5700 grep -v '^ *+' conftest.er1 >conftest.err
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } &&
5705 { ac_try='test -z "$ac_c_werror_flag"
5706 || test ! -s conftest.err'
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; } &&
5712 { ac_try='test -s conftest$ac_exeext'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 ac_cv_search_socket="-l$ac_lib"
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5725 rm -f conftest.err conftest.$ac_objext \
5726 conftest$ac_exeext conftest.$ac_ext
5729 LIBS=$ac_func_search_save_LIBS
5731 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5732 echo "${ECHO_T}$ac_cv_search_socket" >&6
5733 if test "$ac_cv_search_socket" != no; then
5734 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5738 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5739 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5740 if test "${ac_cv_search_shl_load+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 ac_func_search_save_LIBS=$LIBS
5744 ac_cv_search_shl_load=no
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest$ac_exeext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_cv_search_shl_load="none required"
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5795 rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 if test "$ac_cv_search_shl_load" = no; then
5798 for ac_lib in dld; do
5799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5800 cat >conftest.$ac_ext <<_ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5807 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */
5822 rm -f conftest.$ac_objext conftest$ac_exeext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5824 (eval $ac_link) 2>conftest.er1
5826 grep -v '^ *+' conftest.er1 >conftest.err
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest$ac_exeext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_cv_search_shl_load="-l$ac_lib"
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5851 rm -f conftest.err conftest.$ac_objext \
5852 conftest$ac_exeext conftest.$ac_ext
5855 LIBS=$ac_func_search_save_LIBS
5857 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5858 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5859 if test "$ac_cv_search_shl_load" != no; then
5860 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5864 # We only use libld in port/dynloader/aix.c
5867 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5868 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5869 if test "${ac_cv_search_ldopen+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 ac_func_search_save_LIBS=$LIBS
5873 ac_cv_search_ldopen=no
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5881 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5898 (eval $ac_link) 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest$ac_exeext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_search_ldopen="none required"
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5924 rm -f conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5926 if test "$ac_cv_search_ldopen" = no; then
5927 for ac_lib in ld; do
5928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5936 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -z "$ac_c_werror_flag"
5961 || test ! -s conftest.err'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; } &&
5967 { ac_try='test -s conftest$ac_exeext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 ac_cv_search_ldopen="-l$ac_lib"
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.$ac_ext >&5
5980 rm -f conftest.err conftest.$ac_objext \
5981 conftest$ac_exeext conftest.$ac_ext
5984 LIBS=$ac_func_search_save_LIBS
5986 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5987 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5988 if test "$ac_cv_search_ldopen" != no; then
5989 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5995 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5996 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5997 if test "${ac_cv_search_getopt_long+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 ac_func_search_save_LIBS=$LIBS
6001 ac_cv_search_getopt_long=no
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6009 /* Override any gcc2 internal prototype to avoid an error. */
6013 /* We use char because int might match the return type of a gcc2
6014 builtin and then its argument prototype would still apply. */
6015 char getopt_long ();
6024 rm -f conftest.$ac_objext conftest$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026 (eval $ac_link) 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try='test -z "$ac_c_werror_flag"
6034 || test ! -s conftest.err'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; } &&
6040 { ac_try='test -s conftest$ac_exeext'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 ac_cv_search_getopt_long="none required"
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6052 rm -f conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 if test "$ac_cv_search_getopt_long" = no; then
6055 for ac_lib in getopt gnugetopt; do
6056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6057 cat >conftest.$ac_ext <<_ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6064 /* Override any gcc2 internal prototype to avoid an error. */
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6070 char getopt_long ();
6079 rm -f conftest.$ac_objext conftest$ac_exeext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081 (eval $ac_link) 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag"
6089 || test ! -s conftest.err'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest$ac_exeext'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 ac_cv_search_getopt_long="-l$ac_lib"
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6108 rm -f conftest.err conftest.$ac_objext \
6109 conftest$ac_exeext conftest.$ac_ext
6112 LIBS=$ac_func_search_save_LIBS
6114 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
6115 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
6116 if test "$ac_cv_search_getopt_long" != no; then
6117 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
6121 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6122 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6123 if test "${ac_cv_search_crypt+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 ac_func_search_save_LIBS=$LIBS
6127 ac_cv_search_crypt=no
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6135 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag"
6160 || test ! -s conftest.err'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; } &&
6166 { ac_try='test -s conftest$ac_exeext'
6167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 ac_cv_search_crypt="none required"
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6178 rm -f conftest.err conftest.$ac_objext \
6179 conftest$ac_exeext conftest.$ac_ext
6180 if test "$ac_cv_search_crypt" = no; then
6181 for ac_lib in crypt; do
6182 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6190 /* Override any gcc2 internal prototype to avoid an error. */
6194 /* We use char because int might match the return type of a gcc2
6195 builtin and then its argument prototype would still apply. */
6205 rm -f conftest.$ac_objext conftest$ac_exeext
6206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6207 (eval $ac_link) 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } &&
6214 { ac_try='test -z "$ac_c_werror_flag"
6215 || test ! -s conftest.err'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest$ac_exeext'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; }; then
6227 ac_cv_search_crypt="-l$ac_lib"
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6234 rm -f conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6238 LIBS=$ac_func_search_save_LIBS
6240 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6241 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6242 if test "$ac_cv_search_crypt" != no; then
6243 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6248 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6249 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6250 if test "${ac_cv_search_fdatasync+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 ac_func_search_save_LIBS=$LIBS
6254 ac_cv_search_fdatasync=no
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 (eval $ac_link) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest$ac_exeext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_search_fdatasync="none required"
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6305 rm -f conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 if test "$ac_cv_search_fdatasync" = no; then
6308 for ac_lib in rt posix4; do
6309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6310 cat >conftest.$ac_ext <<_ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6317 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>conftest.er1
6336 grep -v '^ *+' conftest.er1 >conftest.err
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } &&
6341 { ac_try='test -z "$ac_c_werror_flag"
6342 || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_cv_search_fdatasync="-l$ac_lib"
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6361 rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6365 LIBS=$ac_func_search_save_LIBS
6367 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6368 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6369 if test "$ac_cv_search_fdatasync" != no; then
6370 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6375 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6376 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6377 if test "${ac_cv_search_shmget+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 ac_func_search_save_LIBS=$LIBS
6381 ac_cv_search_shmget=no
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6389 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6404 rm -f conftest.$ac_objext conftest$ac_exeext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6406 (eval $ac_link) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest$ac_exeext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_search_shmget="none required"
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6432 rm -f conftest.err conftest.$ac_objext \
6433 conftest$ac_exeext conftest.$ac_ext
6434 if test "$ac_cv_search_shmget" = no; then
6435 for ac_lib in cygipc; do
6436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>conftest.er1
6463 grep -v '^ *+' conftest.er1 >conftest.err
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -z "$ac_c_werror_flag"
6469 || test ! -s conftest.err'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_search_shmget="-l$ac_lib"
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6488 rm -f conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6492 LIBS=$ac_func_search_save_LIBS
6494 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6495 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6496 if test "$ac_cv_search_shmget" != no; then
6497 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6502 if test "$with_readline" = yes; then
6505 if test "${pgac_cv_check_readline+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 pgac_cv_check_readline=no
6509 pgac_save_LIBS=$LIBS
6510 if test x"$with_libedit_preferred" != x"yes"
6511 then READLINE_ORDER="-lreadline -ledit"
6512 else READLINE_ORDER="-ledit -lreadline"
6514 for pgac_rllib in $READLINE_ORDER ; do
6515 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6516 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6517 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6518 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6519 cat >conftest.$ac_ext <<_ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6526 /* Override any gcc2 internal prototype to avoid an error. */
6530 /* We use char because int might match the return type of a gcc2
6531 builtin and then its argument prototype would still apply. */
6541 rm -f conftest.$ac_objext conftest$ac_exeext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543 (eval $ac_link) 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } &&
6550 { ac_try='test -z "$ac_c_werror_flag"
6551 || test ! -s conftest.err'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; } &&
6557 { ac_try='test -s conftest$ac_exeext'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }; then
6564 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6565 # recognize dependent libraries; assume curses is needed if we didn't
6566 # find any dependency.
6568 netbsd* | openbsd* | irix*)
6569 if test x"$pgac_lib" = x"" ; then
6570 pgac_lib=" -lcurses"
6574 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6582 rm -f conftest.err conftest.$ac_objext \
6583 conftest$ac_exeext conftest.$ac_ext
6585 if test "$pgac_cv_check_readline" != no ; then
6586 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6587 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6590 echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6
6594 LIBS=$pgac_save_LIBS
6598 if test "$pgac_cv_check_readline" != no ; then
6599 LIBS="$pgac_cv_check_readline $LIBS"
6601 cat >>confdefs.h <<\_ACEOF
6602 #define HAVE_LIBREADLINE 1
6608 if test x"$pgac_cv_check_readline" = x"no"; then
6609 { { echo "$as_me:$LINENO: error: readline library not found
6610 If you have readline already installed, see config.log for details on the
6611 failure. It is possible the compiler isn't looking in the proper directory.
6612 Use --without-readline to disable readline support." >&5
6613 echo "$as_me: error: readline library not found
6614 If you have readline already installed, see config.log for details on the
6615 failure. It is possible the compiler isn't looking in the proper directory.
6616 Use --without-readline to disable readline support." >&2;}
6617 { (exit 1); exit 1; }; }
6621 if test "$with_zlib" = yes; then
6623 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6624 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6625 if test "${ac_cv_lib_z_inflate+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 ac_check_lib_save_LIBS=$LIBS
6630 cat >conftest.$ac_ext <<_ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6637 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>conftest.er1
6656 grep -v '^ *+' conftest.er1 >conftest.err
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_c_werror_flag"
6662 || test ! -s conftest.err'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; } &&
6668 { ac_try='test -s conftest$ac_exeext'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; }; then
6674 ac_cv_lib_z_inflate=yes
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6679 ac_cv_lib_z_inflate=no
6681 rm -f conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6683 LIBS=$ac_check_lib_save_LIBS
6685 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6686 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6687 if test $ac_cv_lib_z_inflate = yes; then
6688 cat >>confdefs.h <<_ACEOF
6695 { { echo "$as_me:$LINENO: error: zlib library not found
6696 If you have zlib already installed, see config.log for details on the
6697 failure. It is possible the compiler isn't looking in the proper directory.
6698 Use --without-zlib to disable zlib support." >&5
6699 echo "$as_me: error: zlib library not found
6700 If you have zlib already installed, see config.log for details on the
6701 failure. It is possible the compiler isn't looking in the proper directory.
6702 Use --without-zlib to disable zlib support." >&2;}
6703 { (exit 1); exit 1; }; }
6708 if test "$enable_spinlocks" = yes; then
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_SPINLOCKS 1
6715 { echo "$as_me:$LINENO: WARNING:
6716 *** Not using spinlocks will cause poor performance." >&5
6717 echo "$as_me: WARNING:
6718 *** Not using spinlocks will cause poor performance." >&2;}
6721 if test "$with_krb5" = yes ; then
6722 if test "$PORTNAME" != "win32"; then
6723 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6724 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6725 if test "${ac_cv_search_com_err+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_func_search_save_LIBS=$LIBS
6729 ac_cv_search_com_err=no
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6752 rm -f conftest.$ac_objext conftest$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754 (eval $ac_link) 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try='test -z "$ac_c_werror_flag"
6762 || test ! -s conftest.err'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; } &&
6768 { ac_try='test -s conftest$ac_exeext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_search_com_err="none required"
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6780 rm -f conftest.err conftest.$ac_objext \
6781 conftest$ac_exeext conftest.$ac_ext
6782 if test "$ac_cv_search_com_err" = no; then
6783 for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
6784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6785 cat >conftest.$ac_ext <<_ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6792 /* Override any gcc2 internal prototype to avoid an error. */
6796 /* We use char because int might match the return type of a gcc2
6797 builtin and then its argument prototype would still apply. */
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6809 (eval $ac_link) 2>conftest.er1
6811 grep -v '^ *+' conftest.er1 >conftest.err
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -z "$ac_c_werror_flag"
6817 || test ! -s conftest.err'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; } &&
6823 { ac_try='test -s conftest$ac_exeext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_cv_search_com_err="-l$ac_lib"
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6836 rm -f conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6840 LIBS=$ac_func_search_save_LIBS
6842 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6843 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6844 if test "$ac_cv_search_com_err" != no; then
6845 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6848 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6849 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6850 { (exit 1); exit 1; }; }
6853 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6854 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6855 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 ac_func_search_save_LIBS=$LIBS
6859 ac_cv_search_krb5_sendauth=no
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6867 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6873 char krb5_sendauth ();
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>conftest.er1
6886 grep -v '^ *+' conftest.er1 >conftest.err
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -z "$ac_c_werror_flag"
6892 || test ! -s conftest.err'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; } &&
6898 { ac_try='test -s conftest$ac_exeext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_search_krb5_sendauth="none required"
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6910 rm -f conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 if test "$ac_cv_search_krb5_sendauth" = no; then
6913 for ac_lib in krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
6914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6915 cat >conftest.$ac_ext <<_ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6922 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6928 char krb5_sendauth ();
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6939 (eval $ac_link) 2>conftest.er1
6941 grep -v '^ *+' conftest.er1 >conftest.err
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -z "$ac_c_werror_flag"
6947 || test ! -s conftest.err'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; } &&
6953 { ac_try='test -s conftest$ac_exeext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 ac_cv_search_krb5_sendauth="-l$ac_lib"
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6966 rm -f conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6970 LIBS=$ac_func_search_save_LIBS
6972 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6973 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6974 if test "$ac_cv_search_krb5_sendauth" != no; then
6975 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6978 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6979 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6980 { (exit 1); exit 1; }; }
6984 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6985 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6986 if test "${ac_cv_search_com_err+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 ac_func_search_save_LIBS=$LIBS
6990 ac_cv_search_com_err=no
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6998 /* Override any gcc2 internal prototype to avoid an error. */
7002 /* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag"
7023 || test ! -s conftest.err'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; } &&
7029 { ac_try='test -s conftest$ac_exeext'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 ac_cv_search_com_err="none required"
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7041 rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 if test "$ac_cv_search_com_err" = no; then
7044 for ac_lib in 'comerr32 -lkrb5_32'; do
7045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7053 /* Override any gcc2 internal prototype to avoid an error. */
7057 /* We use char because int might match the return type of a gcc2
7058 builtin and then its argument prototype would still apply. */
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7070 (eval $ac_link) 2>conftest.er1
7072 grep -v '^ *+' conftest.er1 >conftest.err
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -z "$ac_c_werror_flag"
7078 || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try='test -s conftest$ac_exeext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_search_com_err="-l$ac_lib"
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7097 rm -f conftest.err conftest.$ac_objext \
7098 conftest$ac_exeext conftest.$ac_ext
7101 LIBS=$ac_func_search_save_LIBS
7103 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7104 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7105 if test "$ac_cv_search_com_err" != no; then
7106 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7109 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7110 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7111 { (exit 1); exit 1; }; }
7117 if test "$with_openssl" = yes ; then
7118 if test "$PORTNAME" != "win32"; then
7120 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7121 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7122 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 ac_check_lib_save_LIBS=$LIBS
7126 LIBS="-lcrypto $LIBS"
7127 cat >conftest.$ac_ext <<_ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7134 /* Override any gcc2 internal prototype to avoid an error. */
7138 /* We use char because int might match the return type of a gcc2
7139 builtin and then its argument prototype would still apply. */
7140 char CRYPTO_new_ex_data ();
7144 CRYPTO_new_ex_data ();
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>conftest.er1
7153 grep -v '^ *+' conftest.er1 >conftest.err
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag"
7159 || test ! -s conftest.err'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; } &&
7165 { ac_try='test -s conftest$ac_exeext'
7166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); }; }; then
7171 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7178 rm -f conftest.err conftest.$ac_objext \
7179 conftest$ac_exeext conftest.$ac_ext
7180 LIBS=$ac_check_lib_save_LIBS
7182 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7183 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7184 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7185 cat >>confdefs.h <<_ACEOF
7186 #define HAVE_LIBCRYPTO 1
7189 LIBS="-lcrypto $LIBS"
7192 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7193 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7194 { (exit 1); exit 1; }; }
7198 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7199 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7200 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 ac_check_lib_save_LIBS=$LIBS
7205 cat >conftest.$ac_ext <<_ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7212 /* Override any gcc2 internal prototype to avoid an error. */
7216 /* We use char because int might match the return type of a gcc2
7217 builtin and then its argument prototype would still apply. */
7218 char SSL_library_init ();
7222 SSL_library_init ();
7227 rm -f conftest.$ac_objext conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>conftest.er1
7231 grep -v '^ *+' conftest.er1 >conftest.err
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -z "$ac_c_werror_flag"
7237 || test ! -s conftest.err'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; } &&
7243 { ac_try='test -s conftest$ac_exeext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_cv_lib_ssl_SSL_library_init=yes
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7254 ac_cv_lib_ssl_SSL_library_init=no
7256 rm -f conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258 LIBS=$ac_check_lib_save_LIBS
7260 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7261 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7262 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7263 cat >>confdefs.h <<_ACEOF
7264 #define HAVE_LIBSSL 1
7270 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7271 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7272 { (exit 1); exit 1; }; }
7277 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7278 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7279 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 ac_check_lib_save_LIBS=$LIBS
7283 LIBS="-leay32 $LIBS"
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7291 /* Override any gcc2 internal prototype to avoid an error. */
7295 /* We use char because int might match the return type of a gcc2
7296 builtin and then its argument prototype would still apply. */
7297 char CRYPTO_new_ex_data ();
7301 CRYPTO_new_ex_data ();
7306 rm -f conftest.$ac_objext conftest$ac_exeext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308 (eval $ac_link) 2>conftest.er1
7310 grep -v '^ *+' conftest.er1 >conftest.err
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -z "$ac_c_werror_flag"
7316 || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try='test -s conftest$ac_exeext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7335 rm -f conftest.err conftest.$ac_objext \
7336 conftest$ac_exeext conftest.$ac_ext
7337 LIBS=$ac_check_lib_save_LIBS
7339 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7340 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7341 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7342 cat >>confdefs.h <<_ACEOF
7343 #define HAVE_LIBEAY32 1
7346 LIBS="-leay32 $LIBS"
7349 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7350 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7351 { (exit 1); exit 1; }; }
7355 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7356 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7357 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 ac_check_lib_save_LIBS=$LIBS
7361 LIBS="-lssleay32 $LIBS"
7362 cat >conftest.$ac_ext <<_ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7369 /* Override any gcc2 internal prototype to avoid an error. */
7373 /* We use char because int might match the return type of a gcc2
7374 builtin and then its argument prototype would still apply. */
7375 char SSL_library_init ();
7379 SSL_library_init ();
7384 rm -f conftest.$ac_objext conftest$ac_exeext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7386 (eval $ac_link) 2>conftest.er1
7388 grep -v '^ *+' conftest.er1 >conftest.err
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } &&
7393 { ac_try='test -z "$ac_c_werror_flag"
7394 || test ! -s conftest.err'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; } &&
7400 { ac_try='test -s conftest$ac_exeext'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7406 ac_cv_lib_ssleay32_SSL_library_init=yes
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7411 ac_cv_lib_ssleay32_SSL_library_init=no
7413 rm -f conftest.err conftest.$ac_objext \
7414 conftest$ac_exeext conftest.$ac_ext
7415 LIBS=$ac_check_lib_save_LIBS
7417 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7418 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7419 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7420 cat >>confdefs.h <<_ACEOF
7421 #define HAVE_LIBSSLEAY32 1
7424 LIBS="-lssleay32 $LIBS"
7427 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7428 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7429 { (exit 1); exit 1; }; }
7435 if test "$with_pam" = yes ; then
7437 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7438 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7439 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_check_lib_save_LIBS=$LIBS
7444 cat >conftest.$ac_ext <<_ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7451 /* Override any gcc2 internal prototype to avoid an error. */
7455 /* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468 (eval $ac_link) 2>conftest.er1
7470 grep -v '^ *+' conftest.er1 >conftest.err
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -z "$ac_c_werror_flag"
7476 || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try='test -s conftest$ac_exeext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_lib_pam_pam_start=yes
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_cv_lib_pam_pam_start=no
7495 rm -f conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7499 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7500 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7501 if test $ac_cv_lib_pam_pam_start = yes; then
7502 cat >>confdefs.h <<_ACEOF
7503 #define HAVE_LIBPAM 1
7509 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7510 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7511 { (exit 1); exit 1; }; }
7516 if test "$with_libxml" = yes ; then
7518 echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
7519 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6
7520 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 ac_check_lib_save_LIBS=$LIBS
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7532 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7538 char xmlSaveToBuffer ();
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>conftest.er1
7551 grep -v '^ *+' conftest.er1 >conftest.err
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
7556 { ac_try='test -z "$ac_c_werror_flag"
7557 || test ! -s conftest.err'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; } &&
7563 { ac_try='test -s conftest$ac_exeext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
7569 ac_cv_lib_xml2_xmlSaveToBuffer=yes
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 ac_cv_lib_xml2_xmlSaveToBuffer=no
7576 rm -f conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7578 LIBS=$ac_check_lib_save_LIBS
7580 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
7581 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6
7582 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_LIBXML2 1
7590 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
7591 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
7592 { (exit 1); exit 1; }; }
7597 if test "$with_libxslt" = yes ; then
7599 echo "$as_me:$LINENO: checking for xsltLibxmlVersion in -lxslt" >&5
7600 echo $ECHO_N "checking for xsltLibxmlVersion in -lxslt... $ECHO_C" >&6
7601 if test "${ac_cv_lib_xslt_xsltLibxmlVersion+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 ac_check_lib_save_LIBS=$LIBS
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7613 /* Override any gcc2 internal prototype to avoid an error. */
7617 /* We use char because int might match the return type of a gcc2
7618 builtin and then its argument prototype would still apply. */
7619 char xsltLibxmlVersion ();
7623 xsltLibxmlVersion ();
7628 rm -f conftest.$ac_objext conftest$ac_exeext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630 (eval $ac_link) 2>conftest.er1
7632 grep -v '^ *+' conftest.er1 >conftest.err
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -z "$ac_c_werror_flag"
7638 || test ! -s conftest.err'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest$ac_exeext'
7645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }; }; then
7650 ac_cv_lib_xslt_xsltLibxmlVersion=yes
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.$ac_ext >&5
7655 ac_cv_lib_xslt_xsltLibxmlVersion=no
7657 rm -f conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7661 echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltLibxmlVersion" >&5
7662 echo "${ECHO_T}$ac_cv_lib_xslt_xsltLibxmlVersion" >&6
7663 if test $ac_cv_lib_xslt_xsltLibxmlVersion = yes; then
7664 cat >>confdefs.h <<_ACEOF
7665 #define HAVE_LIBXSLT 1
7671 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
7672 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
7673 { (exit 1); exit 1; }; }
7683 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7684 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7685 if test "${ac_cv_header_stdc+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 cat >conftest.$ac_ext <<_ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1 >conftest.err
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 ac_cv_header_stdc=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 ac_cv_header_stdc=no
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7738 if test $ac_cv_header_stdc = yes; then
7739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750 $EGREP "memchr" >/dev/null 2>&1; then
7753 ac_cv_header_stdc=no
7759 if test $ac_cv_header_stdc = yes; then
7760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7771 $EGREP "free" >/dev/null 2>&1; then
7774 ac_cv_header_stdc=no
7780 if test $ac_cv_header_stdc = yes; then
7781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7782 if test "$cross_compiling" = yes; then
7785 cat >conftest.$ac_ext <<_ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7792 #if ((' ' & 0x0FF) == 0x020)
7793 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7794 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7796 # define ISLOWER(c) \
7797 (('a' <= (c) && (c) <= 'i') \
7798 || ('j' <= (c) && (c) <= 'r') \
7799 || ('s' <= (c) && (c) <= 'z'))
7800 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7808 for (i = 0; i < 256; i++)
7809 if (XOR (islower (i), ISLOWER (i))
7810 || toupper (i) != TOUPPER (i))
7815 rm -f conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817 (eval $ac_link) 2>&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7828 echo "$as_me: program exited with status $ac_status" >&5
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7833 ac_cv_header_stdc=no
7835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7839 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7840 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7841 if test $ac_cv_header_stdc = yes; then
7843 cat >>confdefs.h <<\_ACEOF
7844 #define STDC_HEADERS 1
7849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7860 inttypes.h stdint.h unistd.h
7862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863 echo "$as_me:$LINENO: checking for $ac_header" >&5
7864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 $ac_includes_default
7876 #include <$ac_header>
7878 rm -f conftest.$ac_objext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7880 (eval $ac_compile) 2>conftest.er1
7882 grep -v '^ *+' conftest.er1 >conftest.err
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -z "$ac_c_werror_flag"
7888 || test ! -s conftest.err'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; } &&
7894 { ac_try='test -s conftest.$ac_objext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 eval "$as_ac_Header=yes"
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7905 eval "$as_ac_Header=no"
7907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7912 cat >>confdefs.h <<_ACEOF
7913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7951 echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7959 # Is the header compilable?
7960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #include <$ac_header>
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_header_compiler=yes
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 ac_header_compiler=no
8000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8002 echo "${ECHO_T}$ac_header_compiler" >&6
8004 # Is the header present?
8005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 #include <$ac_header>
8015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8018 grep -v '^ *+' conftest.er1 >conftest.err
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } >/dev/null; then
8023 if test -s conftest.err; then
8024 ac_cpp_err=$ac_c_preproc_warn_flag
8025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8032 if test -z "$ac_cpp_err"; then
8033 ac_header_preproc=yes
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_header_preproc=no
8040 rm -f conftest.err conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8042 echo "${ECHO_T}$ac_header_preproc" >&6
8044 # So? What about this header?
8045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8051 ac_header_preproc=yes
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8068 ## ---------------------------------------- ##
8069 ## Report this to pgsql-bugs@postgresql.org ##
8070 ## ---------------------------------------- ##
8073 sed "s/^/$as_me: WARNING: /" >&2
8076 echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 eval "$as_ac_Header=\$ac_header_preproc"
8083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088 cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8097 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8098 # netinet/in.h is included first.
8100 for ac_header in netinet/in.h
8102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8104 echo "$as_me:$LINENO: checking for $ac_header" >&5
8105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8112 # Is the header compilable?
8113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 #include <$ac_header>
8124 rm -f conftest.$ac_objext
8125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8126 (eval $ac_compile) 2>conftest.er1
8128 grep -v '^ *+' conftest.er1 >conftest.err
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -z "$ac_c_werror_flag"
8134 || test ! -s conftest.err'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_header_compiler=yes
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_header_compiler=no
8153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 #include <$ac_header>
8168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } >/dev/null; then
8176 if test -s conftest.err; then
8177 ac_cpp_err=$ac_c_preproc_warn_flag
8178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8185 if test -z "$ac_cpp_err"; then
8186 ac_header_preproc=yes
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_header_preproc=no
8193 rm -f conftest.err conftest.$ac_ext
8194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195 echo "${ECHO_T}$ac_header_preproc" >&6
8197 # So? What about this header?
8198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8204 ac_header_preproc=yes
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8221 ## ---------------------------------------- ##
8222 ## Report this to pgsql-bugs@postgresql.org ##
8223 ## ---------------------------------------- ##
8226 sed "s/^/$as_me: WARNING: /" >&2
8229 echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 eval "$as_ac_Header=\$ac_header_preproc"
8236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8241 cat >>confdefs.h <<_ACEOF
8242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8250 for ac_header in netinet/tcp.h
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 cat >conftest.$ac_ext <<_ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 $ac_includes_default
8265 #ifdef HAVE_NETINET_IN_H
8266 #include <netinet/in.h>
8270 #include <$ac_header>
8272 rm -f conftest.$ac_objext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274 (eval $ac_compile) 2>conftest.er1
8276 grep -v '^ *+' conftest.er1 >conftest.err
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try='test -z "$ac_c_werror_flag"
8282 || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 eval "$as_ac_Header=yes"
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 eval "$as_ac_Header=no"
8301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8306 cat >>confdefs.h <<_ACEOF
8307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8315 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8317 for ac_header in readline/readline.h
8319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo "$as_me:$LINENO: checking for $ac_header" >&5
8322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8329 # Is the header compilable?
8330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 $ac_includes_default
8339 #include <$ac_header>
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_header_compiler=yes
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_header_compiler=no
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8372 echo "${ECHO_T}$ac_header_compiler" >&6
8374 # Is the header present?
8375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8377 cat >conftest.$ac_ext <<_ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 #include <$ac_header>
8385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } >/dev/null; then
8393 if test -s conftest.err; then
8394 ac_cpp_err=$ac_c_preproc_warn_flag
8395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8402 if test -z "$ac_cpp_err"; then
8403 ac_header_preproc=yes
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8408 ac_header_preproc=no
8410 rm -f conftest.err conftest.$ac_ext
8411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412 echo "${ECHO_T}$ac_header_preproc" >&6
8414 # So? What about this header?
8415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8421 ac_header_preproc=yes
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8438 ## ---------------------------------------- ##
8439 ## Report this to pgsql-bugs@postgresql.org ##
8440 ## ---------------------------------------- ##
8443 sed "s/^/$as_me: WARNING: /" >&2
8446 echo "$as_me:$LINENO: checking for $ac_header" >&5
8447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 eval "$as_ac_Header=\$ac_header_preproc"
8453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8458 cat >>confdefs.h <<_ACEOF
8459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8464 for ac_header in readline.h
8466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8468 echo "$as_me:$LINENO: checking for $ac_header" >&5
8469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8476 # Is the header compilable?
8477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8479 cat >conftest.$ac_ext <<_ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 $ac_includes_default
8486 #include <$ac_header>
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_header_compiler=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_header_compiler=no
8517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519 echo "${ECHO_T}$ac_header_compiler" >&6
8521 # Is the header present?
8522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8524 cat >conftest.$ac_ext <<_ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8530 #include <$ac_header>
8532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } >/dev/null; then
8540 if test -s conftest.err; then
8541 ac_cpp_err=$ac_c_preproc_warn_flag
8542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8549 if test -z "$ac_cpp_err"; then
8550 ac_header_preproc=yes
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_header_preproc=no
8557 rm -f conftest.err conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559 echo "${ECHO_T}$ac_header_preproc" >&6
8561 # So? What about this header?
8562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8568 ac_header_preproc=yes
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8585 ## ---------------------------------------- ##
8586 ## Report this to pgsql-bugs@postgresql.org ##
8587 ## ---------------------------------------- ##
8590 sed "s/^/$as_me: WARNING: /" >&2
8593 echo "$as_me:$LINENO: checking for $ac_header" >&5
8594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 eval "$as_ac_Header=\$ac_header_preproc"
8600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8610 { { echo "$as_me:$LINENO: error: readline header not found
8611 If you have readline already installed, see config.log for details on the
8612 failure. It is possible the compiler isn't looking in the proper directory.
8613 Use --without-readline to disable readline support." >&5
8614 echo "$as_me: error: readline header not found
8615 If you have readline already installed, see config.log for details on the
8616 failure. It is possible the compiler isn't looking in the proper directory.
8617 Use --without-readline to disable readline support." >&2;}
8618 { (exit 1); exit 1; }; }
8628 for ac_header in readline/history.h
8630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8632 echo "$as_me:$LINENO: checking for $ac_header" >&5
8633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8640 # Is the header compilable?
8641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 $ac_includes_default
8650 #include <$ac_header>
8652 rm -f conftest.$ac_objext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654 (eval $ac_compile) 2>conftest.er1
8656 grep -v '^ *+' conftest.er1 >conftest.err
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_header_compiler=yes
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_header_compiler=no
8681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8683 echo "${ECHO_T}$ac_header_compiler" >&6
8685 # Is the header present?
8686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 #include <$ac_header>
8696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } >/dev/null; then
8704 if test -s conftest.err; then
8705 ac_cpp_err=$ac_c_preproc_warn_flag
8706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8713 if test -z "$ac_cpp_err"; then
8714 ac_header_preproc=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 ac_header_preproc=no
8721 rm -f conftest.err conftest.$ac_ext
8722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8723 echo "${ECHO_T}$ac_header_preproc" >&6
8725 # So? What about this header?
8726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8732 ac_header_preproc=yes
8735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8749 ## ---------------------------------------- ##
8750 ## Report this to pgsql-bugs@postgresql.org ##
8751 ## ---------------------------------------- ##
8754 sed "s/^/$as_me: WARNING: /" >&2
8757 echo "$as_me:$LINENO: checking for $ac_header" >&5
8758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 eval "$as_ac_Header=\$ac_header_preproc"
8764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8769 cat >>confdefs.h <<_ACEOF
8770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 for ac_header in history.h
8777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8779 echo "$as_me:$LINENO: checking for $ac_header" >&5
8780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8787 # Is the header compilable?
8788 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8790 cat >conftest.$ac_ext <<_ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 $ac_includes_default
8797 #include <$ac_header>
8799 rm -f conftest.$ac_objext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8801 (eval $ac_compile) 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_header_compiler=yes
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ac_header_compiler=no
8828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8830 echo "${ECHO_T}$ac_header_compiler" >&6
8832 # Is the header present?
8833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 #include <$ac_header>
8843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } >/dev/null; then
8851 if test -s conftest.err; then
8852 ac_cpp_err=$ac_c_preproc_warn_flag
8853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8860 if test -z "$ac_cpp_err"; then
8861 ac_header_preproc=yes
8863 echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8866 ac_header_preproc=no
8868 rm -f conftest.err conftest.$ac_ext
8869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8870 echo "${ECHO_T}$ac_header_preproc" >&6
8872 # So? What about this header?
8873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8879 ac_header_preproc=yes
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8896 ## ---------------------------------------- ##
8897 ## Report this to pgsql-bugs@postgresql.org ##
8898 ## ---------------------------------------- ##
8901 sed "s/^/$as_me: WARNING: /" >&2
8904 echo "$as_me:$LINENO: checking for $ac_header" >&5
8905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 eval "$as_ac_Header=\$ac_header_preproc"
8911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8916 cat >>confdefs.h <<_ACEOF
8917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8921 { { echo "$as_me:$LINENO: error: history header not found
8922 If you have readline already installed, see config.log for details on the
8923 failure. It is possible the compiler isn't looking in the proper directory.
8924 Use --without-readline to disable readline support." >&5
8925 echo "$as_me: error: history header not found
8926 If you have readline already installed, see config.log for details on the
8927 failure. It is possible the compiler isn't looking in the proper directory.
8928 Use --without-readline to disable readline support." >&2;}
8929 { (exit 1); exit 1; }; }
8940 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8941 # Some installations of libedit usurp /usr/include/readline/, which seems
8942 # bad practice, since in combined installations readline will have its headers
8943 # there. We might have to resort to AC_EGREP checks to make sure we found
8944 # the proper header...
8946 for ac_header in editline/readline.h
8948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8950 echo "$as_me:$LINENO: checking for $ac_header" >&5
8951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8958 # Is the header compilable?
8959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 $ac_includes_default
8968 #include <$ac_header>
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>conftest.er1
8974 grep -v '^ *+' conftest.er1 >conftest.err
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag"
8980 || test ! -s conftest.err'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_header_compiler=yes
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_header_compiler=no
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9001 echo "${ECHO_T}$ac_header_compiler" >&6
9003 # Is the header present?
9004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 #include <$ac_header>
9014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9017 grep -v '^ *+' conftest.er1 >conftest.err
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } >/dev/null; then
9022 if test -s conftest.err; then
9023 ac_cpp_err=$ac_c_preproc_warn_flag
9024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9031 if test -z "$ac_cpp_err"; then
9032 ac_header_preproc=yes
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9037 ac_header_preproc=no
9039 rm -f conftest.err conftest.$ac_ext
9040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9041 echo "${ECHO_T}$ac_header_preproc" >&6
9043 # So? What about this header?
9044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9050 ac_header_preproc=yes
9053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9067 ## ---------------------------------------- ##
9068 ## Report this to pgsql-bugs@postgresql.org ##
9069 ## ---------------------------------------- ##
9072 sed "s/^/$as_me: WARNING: /" >&2
9075 echo "$as_me:$LINENO: checking for $ac_header" >&5
9076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 eval "$as_ac_Header=\$ac_header_preproc"
9082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9087 cat >>confdefs.h <<_ACEOF
9088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9093 for ac_header in readline.h
9095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9097 echo "$as_me:$LINENO: checking for $ac_header" >&5
9098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9105 # Is the header compilable?
9106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 $ac_includes_default
9115 #include <$ac_header>
9117 rm -f conftest.$ac_objext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9119 (eval $ac_compile) 2>conftest.er1
9121 grep -v '^ *+' conftest.er1 >conftest.err
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } &&
9126 { ac_try='test -z "$ac_c_werror_flag"
9127 || test ! -s conftest.err'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest.$ac_objext'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; }; then
9139 ac_header_compiler=yes
9141 echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9144 ac_header_compiler=no
9146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6
9150 # Is the header present?
9151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 #include <$ac_header>
9161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9164 grep -v '^ *+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } >/dev/null; then
9169 if test -s conftest.err; then
9170 ac_cpp_err=$ac_c_preproc_warn_flag
9171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9178 if test -z "$ac_cpp_err"; then
9179 ac_header_preproc=yes
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 ac_header_preproc=no
9186 rm -f conftest.err conftest.$ac_ext
9187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9188 echo "${ECHO_T}$ac_header_preproc" >&6
9190 # So? What about this header?
9191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9197 ac_header_preproc=yes
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9214 ## ---------------------------------------- ##
9215 ## Report this to pgsql-bugs@postgresql.org ##
9216 ## ---------------------------------------- ##
9219 sed "s/^/$as_me: WARNING: /" >&2
9222 echo "$as_me:$LINENO: checking for $ac_header" >&5
9223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 eval "$as_ac_Header=\$ac_header_preproc"
9229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9240 for ac_header in readline/readline.h
9242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9244 echo "$as_me:$LINENO: checking for $ac_header" >&5
9245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9252 # Is the header compilable?
9253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9261 $ac_includes_default
9262 #include <$ac_header>
9264 rm -f conftest.$ac_objext
9265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9266 (eval $ac_compile) 2>conftest.er1
9268 grep -v '^ *+' conftest.er1 >conftest.err
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } &&
9273 { ac_try='test -z "$ac_c_werror_flag"
9274 || test ! -s conftest.err'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest.$ac_objext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_header_compiler=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_header_compiler=no
9293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9295 echo "${ECHO_T}$ac_header_compiler" >&6
9297 # Is the header present?
9298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9306 #include <$ac_header>
9308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } >/dev/null; then
9316 if test -s conftest.err; then
9317 ac_cpp_err=$ac_c_preproc_warn_flag
9318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9325 if test -z "$ac_cpp_err"; then
9326 ac_header_preproc=yes
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_header_preproc=no
9333 rm -f conftest.err conftest.$ac_ext
9334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9335 echo "${ECHO_T}$ac_header_preproc" >&6
9337 # So? What about this header?
9338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9344 ac_header_preproc=yes
9347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9361 ## ---------------------------------------- ##
9362 ## Report this to pgsql-bugs@postgresql.org ##
9363 ## ---------------------------------------- ##
9366 sed "s/^/$as_me: WARNING: /" >&2
9369 echo "$as_me:$LINENO: checking for $ac_header" >&5
9370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 eval "$as_ac_Header=\$ac_header_preproc"
9376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9381 cat >>confdefs.h <<_ACEOF
9382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9386 { { echo "$as_me:$LINENO: error: readline header not found
9387 If you have libedit already installed, see config.log for details on the
9388 failure. It is possible the compiler isn't looking in the proper directory.
9389 Use --without-readline to disable libedit support." >&5
9390 echo "$as_me: error: readline header not found
9391 If you have libedit already installed, see config.log for details on the
9392 failure. It is possible the compiler isn't looking in the proper directory.
9393 Use --without-readline to disable libedit support." >&2;}
9394 { (exit 1); exit 1; }; }
9407 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9408 # not be there at all. Hence, don't complain if not found. We must check
9409 # though, since in yet other versions it is an independent header.
9411 for ac_header in editline/history.h
9413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9415 echo "$as_me:$LINENO: checking for $ac_header" >&5
9416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9423 # Is the header compilable?
9424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9433 #include <$ac_header>
9435 rm -f conftest.$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437 (eval $ac_compile) 2>conftest.er1
9439 grep -v '^ *+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try='test -z "$ac_c_werror_flag"
9445 || test ! -s conftest.err'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; } &&
9451 { ac_try='test -s conftest.$ac_objext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 ac_header_compiler=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_header_compiler=no
9464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9466 echo "${ECHO_T}$ac_header_compiler" >&6
9468 # Is the header present?
9469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9477 #include <$ac_header>
9479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9482 grep -v '^ *+' conftest.er1 >conftest.err
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } >/dev/null; then
9487 if test -s conftest.err; then
9488 ac_cpp_err=$ac_c_preproc_warn_flag
9489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9496 if test -z "$ac_cpp_err"; then
9497 ac_header_preproc=yes
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 ac_header_preproc=no
9504 rm -f conftest.err conftest.$ac_ext
9505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9506 echo "${ECHO_T}$ac_header_preproc" >&6
9508 # So? What about this header?
9509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9515 ac_header_preproc=yes
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9532 ## ---------------------------------------- ##
9533 ## Report this to pgsql-bugs@postgresql.org ##
9534 ## ---------------------------------------- ##
9537 sed "s/^/$as_me: WARNING: /" >&2
9540 echo "$as_me:$LINENO: checking for $ac_header" >&5
9541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 eval "$as_ac_Header=\$ac_header_preproc"
9547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9552 cat >>confdefs.h <<_ACEOF
9553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9558 for ac_header in history.h
9560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562 echo "$as_me:$LINENO: checking for $ac_header" >&5
9563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9570 # Is the header compilable?
9571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 $ac_includes_default
9580 #include <$ac_header>
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584 (eval $ac_compile) 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag"
9592 || test ! -s conftest.err'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest.$ac_objext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_header_compiler=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_header_compiler=no
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9613 echo "${ECHO_T}$ac_header_compiler" >&6
9615 # Is the header present?
9616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <$ac_header>
9626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } >/dev/null; then
9634 if test -s conftest.err; then
9635 ac_cpp_err=$ac_c_preproc_warn_flag
9636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9643 if test -z "$ac_cpp_err"; then
9644 ac_header_preproc=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9649 ac_header_preproc=no
9651 rm -f conftest.err conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9653 echo "${ECHO_T}$ac_header_preproc" >&6
9655 # So? What about this header?
9656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9662 ac_header_preproc=yes
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9679 ## ---------------------------------------- ##
9680 ## Report this to pgsql-bugs@postgresql.org ##
9681 ## ---------------------------------------- ##
9684 sed "s/^/$as_me: WARNING: /" >&2
9687 echo "$as_me:$LINENO: checking for $ac_header" >&5
9688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 eval "$as_ac_Header=\$ac_header_preproc"
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9699 cat >>confdefs.h <<_ACEOF
9700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9705 for ac_header in readline/history.h
9707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9709 echo "$as_me:$LINENO: checking for $ac_header" >&5
9710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9717 # Is the header compilable?
9718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 $ac_includes_default
9727 #include <$ac_header>
9729 rm -f conftest.$ac_objext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9731 (eval $ac_compile) 2>conftest.er1
9733 grep -v '^ *+' conftest.er1 >conftest.err
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } &&
9738 { ac_try='test -z "$ac_c_werror_flag"
9739 || test ! -s conftest.err'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; } &&
9745 { ac_try='test -s conftest.$ac_objext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_header_compiler=yes
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_header_compiler=no
9758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9760 echo "${ECHO_T}$ac_header_compiler" >&6
9762 # Is the header present?
9763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9765 cat >conftest.$ac_ext <<_ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 #include <$ac_header>
9773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9776 grep -v '^ *+' conftest.er1 >conftest.err
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } >/dev/null; then
9781 if test -s conftest.err; then
9782 ac_cpp_err=$ac_c_preproc_warn_flag
9783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9790 if test -z "$ac_cpp_err"; then
9791 ac_header_preproc=yes
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_header_preproc=no
9798 rm -f conftest.err conftest.$ac_ext
9799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9800 echo "${ECHO_T}$ac_header_preproc" >&6
9802 # So? What about this header?
9803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9809 ac_header_preproc=yes
9812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9826 ## ---------------------------------------- ##
9827 ## Report this to pgsql-bugs@postgresql.org ##
9828 ## ---------------------------------------- ##
9831 sed "s/^/$as_me: WARNING: /" >&2
9834 echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 eval "$as_ac_Header=\$ac_header_preproc"
9841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9846 cat >>confdefs.h <<_ACEOF
9847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9864 if test "$with_zlib" = yes; then
9865 if test "${ac_cv_header_zlib_h+set}" = set; then
9866 echo "$as_me:$LINENO: checking for zlib.h" >&5
9867 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9868 if test "${ac_cv_header_zlib_h+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9872 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9874 # Is the header compilable?
9875 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9876 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9886 rm -f conftest.$ac_objext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9888 (eval $ac_compile) 2>conftest.er1
9890 grep -v '^ *+' conftest.er1 >conftest.err
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -z "$ac_c_werror_flag"
9896 || test ! -s conftest.err'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest.$ac_objext'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 ac_header_compiler=yes
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_header_compiler=no
9915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9917 echo "${ECHO_T}$ac_header_compiler" >&6
9919 # Is the header present?
9920 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9921 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9922 cat >conftest.$ac_ext <<_ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9933 grep -v '^ *+' conftest.er1 >conftest.err
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } >/dev/null; then
9938 if test -s conftest.err; then
9939 ac_cpp_err=$ac_c_preproc_warn_flag
9940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9947 if test -z "$ac_cpp_err"; then
9948 ac_header_preproc=yes
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9953 ac_header_preproc=no
9955 rm -f conftest.err conftest.$ac_ext
9956 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9957 echo "${ECHO_T}$ac_header_preproc" >&6
9959 # So? What about this header?
9960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9962 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9963 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9965 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9966 ac_header_preproc=yes
9969 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9970 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9972 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9974 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9976 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9978 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9980 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9983 ## ---------------------------------------- ##
9984 ## Report this to pgsql-bugs@postgresql.org ##
9985 ## ---------------------------------------- ##
9988 sed "s/^/$as_me: WARNING: /" >&2
9991 echo "$as_me:$LINENO: checking for zlib.h" >&5
9992 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9993 if test "${ac_cv_header_zlib_h+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 ac_cv_header_zlib_h=$ac_header_preproc
9998 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9999 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
10002 if test $ac_cv_header_zlib_h = yes; then
10005 { { echo "$as_me:$LINENO: error: zlib header not found
10006 If you have zlib already installed, see config.log for details on the
10007 failure. It is possible the compiler isn't looking in the proper directory.
10008 Use --without-zlib to disable zlib support." >&5
10009 echo "$as_me: error: zlib header not found
10010 If you have zlib already installed, see config.log for details on the
10011 failure. It is possible the compiler isn't looking in the proper directory.
10012 Use --without-zlib to disable zlib support." >&2;}
10013 { (exit 1); exit 1; }; }
10019 if test "$with_krb5" = yes ; then
10020 if test "${ac_cv_header_krb5_h+set}" = set; then
10021 echo "$as_me:$LINENO: checking for krb5.h" >&5
10022 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10023 if test "${ac_cv_header_krb5_h+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10027 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10029 # Is the header compilable?
10030 echo "$as_me:$LINENO: checking krb5.h usability" >&5
10031 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
10032 cat >conftest.$ac_ext <<_ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 $ac_includes_default
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_header_compiler=no
10070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 echo "${ECHO_T}$ac_header_compiler" >&6
10074 # Is the header present?
10075 echo "$as_me:$LINENO: checking krb5.h presence" >&5
10076 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10088 grep -v '^ *+' conftest.er1 >conftest.err
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev/null; then
10093 if test -s conftest.err; then
10094 ac_cpp_err=$ac_c_preproc_warn_flag
10095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10102 if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_header_preproc=no
10110 rm -f conftest.err conftest.$ac_ext
10111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 echo "${ECHO_T}$ac_header_preproc" >&6
10114 # So? What about this header?
10115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10117 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10118 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10120 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10124 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10125 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10127 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10129 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10131 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10133 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10135 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10138 ## ---------------------------------------- ##
10139 ## Report this to pgsql-bugs@postgresql.org ##
10140 ## ---------------------------------------- ##
10143 sed "s/^/$as_me: WARNING: /" >&2
10146 echo "$as_me:$LINENO: checking for krb5.h" >&5
10147 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10148 if test "${ac_cv_header_krb5_h+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 ac_cv_header_krb5_h=$ac_header_preproc
10153 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10154 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10157 if test $ac_cv_header_krb5_h = yes; then
10160 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10161 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10162 { (exit 1); exit 1; }; }
10168 if test "$with_openssl" = yes ; then
10169 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10170 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10171 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10172 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10176 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10178 # Is the header compilable?
10179 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10180 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 $ac_includes_default
10188 #include <openssl/ssl.h>
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192 (eval $ac_compile) 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest.$ac_objext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_header_compiler=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_header_compiler=no
10219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10221 echo "${ECHO_T}$ac_header_compiler" >&6
10223 # Is the header present?
10224 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10225 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 #include <openssl/ssl.h>
10234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } >/dev/null; then
10242 if test -s conftest.err; then
10243 ac_cpp_err=$ac_c_preproc_warn_flag
10244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10251 if test -z "$ac_cpp_err"; then
10252 ac_header_preproc=yes
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ac_header_preproc=no
10259 rm -f conftest.err conftest.$ac_ext
10260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10261 echo "${ECHO_T}$ac_header_preproc" >&6
10263 # So? What about this header?
10264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10266 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10267 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10268 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10269 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10270 ac_header_preproc=yes
10273 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10274 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10275 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10276 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10278 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10279 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10280 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10281 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10282 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10283 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10284 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10287 ## ---------------------------------------- ##
10288 ## Report this to pgsql-bugs@postgresql.org ##
10289 ## ---------------------------------------- ##
10292 sed "s/^/$as_me: WARNING: /" >&2
10295 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10296 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10297 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10302 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10303 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10306 if test $ac_cv_header_openssl_ssl_h = yes; then
10309 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10310 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10311 { (exit 1); exit 1; }; }
10315 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10316 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10317 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10318 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10322 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10324 # Is the header compilable?
10325 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10326 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 $ac_includes_default
10334 #include <openssl/err.h>
10336 rm -f conftest.$ac_objext
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338 (eval $ac_compile) 2>conftest.er1
10340 grep -v '^ *+' conftest.er1 >conftest.err
10342 cat conftest.err >&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -z "$ac_c_werror_flag"
10346 || test ! -s conftest.err'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; } &&
10352 { ac_try='test -s conftest.$ac_objext'
10353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354 (eval $ac_try) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
10358 ac_header_compiler=yes
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 ac_header_compiler=no
10365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10367 echo "${ECHO_T}$ac_header_compiler" >&6
10369 # Is the header present?
10370 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10371 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 #include <openssl/err.h>
10380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10383 grep -v '^ *+' conftest.er1 >conftest.err
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } >/dev/null; then
10388 if test -s conftest.err; then
10389 ac_cpp_err=$ac_c_preproc_warn_flag
10390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10397 if test -z "$ac_cpp_err"; then
10398 ac_header_preproc=yes
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 ac_header_preproc=no
10405 rm -f conftest.err conftest.$ac_ext
10406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10407 echo "${ECHO_T}$ac_header_preproc" >&6
10409 # So? What about this header?
10410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10412 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10413 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10415 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10416 ac_header_preproc=yes
10419 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10420 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10422 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10424 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10426 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10428 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10430 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10433 ## ---------------------------------------- ##
10434 ## Report this to pgsql-bugs@postgresql.org ##
10435 ## ---------------------------------------- ##
10438 sed "s/^/$as_me: WARNING: /" >&2
10441 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10442 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10443 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 ac_cv_header_openssl_err_h=$ac_header_preproc
10448 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10449 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10452 if test $ac_cv_header_openssl_err_h = yes; then
10455 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10456 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10457 { (exit 1); exit 1; }; }
10463 if test "$with_pam" = yes ; then
10465 for ac_header in security/pam_appl.h
10467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10469 echo "$as_me:$LINENO: checking for $ac_header" >&5
10470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10477 # Is the header compilable?
10478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10480 cat >conftest.$ac_ext <<_ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10486 $ac_includes_default
10487 #include <$ac_header>
10489 rm -f conftest.$ac_objext
10490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>conftest.er1
10493 grep -v '^ *+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag"
10499 || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 ac_header_compiler=yes
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_header_compiler=no
10518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10520 echo "${ECHO_T}$ac_header_compiler" >&6
10522 # Is the header present?
10523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10525 cat >conftest.$ac_ext <<_ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 #include <$ac_header>
10533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } >/dev/null; then
10541 if test -s conftest.err; then
10542 ac_cpp_err=$ac_c_preproc_warn_flag
10543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10550 if test -z "$ac_cpp_err"; then
10551 ac_header_preproc=yes
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_header_preproc=no
10558 rm -f conftest.err conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10560 echo "${ECHO_T}$ac_header_preproc" >&6
10562 # So? What about this header?
10563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10569 ac_header_preproc=yes
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10586 ## ---------------------------------------- ##
10587 ## Report this to pgsql-bugs@postgresql.org ##
10588 ## ---------------------------------------- ##
10591 sed "s/^/$as_me: WARNING: /" >&2
10594 echo "$as_me:$LINENO: checking for $ac_header" >&5
10595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 eval "$as_ac_Header=\$ac_header_preproc"
10601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10606 cat >>confdefs.h <<_ACEOF
10607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10612 for ac_header in pam/pam_appl.h
10614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616 echo "$as_me:$LINENO: checking for $ac_header" >&5
10617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10624 # Is the header compilable?
10625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10627 cat >conftest.$ac_ext <<_ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 $ac_includes_default
10634 #include <$ac_header>
10636 rm -f conftest.$ac_objext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638 (eval $ac_compile) 2>conftest.er1
10640 grep -v '^ *+' conftest.er1 >conftest.err
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -z "$ac_c_werror_flag"
10646 || test ! -s conftest.err'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest.$ac_objext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_header_compiler=yes
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 ac_header_compiler=no
10665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10666 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10667 echo "${ECHO_T}$ac_header_compiler" >&6
10669 # Is the header present?
10670 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10672 cat >conftest.$ac_ext <<_ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 #include <$ac_header>
10680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10683 grep -v '^ *+' conftest.er1 >conftest.err
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } >/dev/null; then
10688 if test -s conftest.err; then
10689 ac_cpp_err=$ac_c_preproc_warn_flag
10690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10697 if test -z "$ac_cpp_err"; then
10698 ac_header_preproc=yes
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10703 ac_header_preproc=no
10705 rm -f conftest.err conftest.$ac_ext
10706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10707 echo "${ECHO_T}$ac_header_preproc" >&6
10709 # So? What about this header?
10710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10716 ac_header_preproc=yes
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10733 ## ---------------------------------------- ##
10734 ## Report this to pgsql-bugs@postgresql.org ##
10735 ## ---------------------------------------- ##
10738 sed "s/^/$as_me: WARNING: /" >&2
10741 echo "$as_me:$LINENO: checking for $ac_header" >&5
10742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 eval "$as_ac_Header=\$ac_header_preproc"
10748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10753 cat >>confdefs.h <<_ACEOF
10754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10758 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10759 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10760 { (exit 1); exit 1; }; }
10771 if test "$with_libxml" = yes ; then
10772 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10773 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
10774 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
10775 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
10779 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
10781 # Is the header compilable?
10782 echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
10783 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10790 $ac_includes_default
10791 #include <libxml/parser.h>
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>conftest.er1
10797 grep -v '^ *+' conftest.er1 >conftest.err
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest.$ac_objext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_header_compiler=yes
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 ac_header_compiler=no
10822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10824 echo "${ECHO_T}$ac_header_compiler" >&6
10826 # Is the header present?
10827 echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
10828 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6
10829 cat >conftest.$ac_ext <<_ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 #include <libxml/parser.h>
10837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10840 grep -v '^ *+' conftest.er1 >conftest.err
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } >/dev/null; then
10845 if test -s conftest.err; then
10846 ac_cpp_err=$ac_c_preproc_warn_flag
10847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10854 if test -z "$ac_cpp_err"; then
10855 ac_header_preproc=yes
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 ac_header_preproc=no
10862 rm -f conftest.err conftest.$ac_ext
10863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10864 echo "${ECHO_T}$ac_header_preproc" >&6
10866 # So? What about this header?
10867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10869 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
10870 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
10872 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
10873 ac_header_preproc=yes
10876 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
10877 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
10879 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
10881 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
10883 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
10885 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
10887 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
10890 ## ---------------------------------------- ##
10891 ## Report this to pgsql-bugs@postgresql.org ##
10892 ## ---------------------------------------- ##
10895 sed "s/^/$as_me: WARNING: /" >&2
10898 echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
10899 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6
10900 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 ac_cv_header_libxml_parser_h=$ac_header_preproc
10905 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
10906 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6
10909 if test $ac_cv_header_libxml_parser_h = yes; then
10912 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
10913 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
10914 { (exit 1); exit 1; }; }
10920 if test "$with_libxslt" = yes ; then
10921 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
10922 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
10923 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
10924 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
10928 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
10930 # Is the header compilable?
10931 echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
10932 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6
10933 cat >conftest.$ac_ext <<_ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 $ac_includes_default
10940 #include <libxslt/xslt.h>
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_header_compiler=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_header_compiler=no
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973 echo "${ECHO_T}$ac_header_compiler" >&6
10975 # Is the header present?
10976 echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
10977 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <libxslt/xslt.h>
10986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } >/dev/null; then
10994 if test -s conftest.err; then
10995 ac_cpp_err=$ac_c_preproc_warn_flag
10996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11003 if test -z "$ac_cpp_err"; then
11004 ac_header_preproc=yes
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_header_preproc=no
11011 rm -f conftest.err conftest.$ac_ext
11012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11013 echo "${ECHO_T}$ac_header_preproc" >&6
11015 # So? What about this header?
11016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11018 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
11019 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
11021 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
11022 ac_header_preproc=yes
11025 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
11026 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
11028 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
11030 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
11031 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
11032 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
11034 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
11036 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
11039 ## ---------------------------------------- ##
11040 ## Report this to pgsql-bugs@postgresql.org ##
11041 ## ---------------------------------------- ##
11044 sed "s/^/$as_me: WARNING: /" >&2
11047 echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
11048 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6
11049 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
11054 echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
11055 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6
11058 if test $ac_cv_header_libxslt_xslt_h = yes; then
11061 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
11062 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
11063 { (exit 1); exit 1; }; }
11069 if test "$with_ldap" = yes ; then
11070 if test "$PORTNAME" != "win32"; then
11072 for ac_header in ldap.h
11074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11076 echo "$as_me:$LINENO: checking for $ac_header" >&5
11077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11084 # Is the header compilable?
11085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11087 cat >conftest.$ac_ext <<_ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 $ac_includes_default
11094 #include <$ac_header>
11096 rm -f conftest.$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098 (eval $ac_compile) 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -z "$ac_c_werror_flag"
11106 || test ! -s conftest.err'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; } &&
11112 { ac_try='test -s conftest.$ac_objext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_header_compiler=yes
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 ac_header_compiler=no
11125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6
11129 # Is the header present?
11130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <$ac_header>
11140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } >/dev/null; then
11148 if test -s conftest.err; then
11149 ac_cpp_err=$ac_c_preproc_warn_flag
11150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11157 if test -z "$ac_cpp_err"; then
11158 ac_header_preproc=yes
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 ac_header_preproc=no
11165 rm -f conftest.err conftest.$ac_ext
11166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11167 echo "${ECHO_T}$ac_header_preproc" >&6
11169 # So? What about this header?
11170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11176 ac_header_preproc=yes
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11193 ## ---------------------------------------- ##
11194 ## Report this to pgsql-bugs@postgresql.org ##
11195 ## ---------------------------------------- ##
11198 sed "s/^/$as_me: WARNING: /" >&2
11201 echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 eval "$as_ac_Header=\$ac_header_preproc"
11208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11213 cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11218 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
11219 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
11220 { (exit 1); exit 1; }; }
11227 for ac_header in winldap.h
11229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11230 echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 $ac_includes_default
11242 #include <windows.h>
11245 #include <$ac_header>
11247 rm -f conftest.$ac_objext
11248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11249 (eval $ac_compile) 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -z "$ac_c_werror_flag"
11257 || test ! -s conftest.err'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; } &&
11263 { ac_try='test -s conftest.$ac_objext'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11269 eval "$as_ac_Header=yes"
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 eval "$as_ac_Header=no"
11276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11281 cat >>confdefs.h <<_ACEOF
11282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11286 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
11287 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
11288 { (exit 1); exit 1; }; }
11296 if test "$with_bonjour" = yes ; then
11297 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11298 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11299 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11300 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11304 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11306 # Is the header compilable?
11307 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
11308 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11316 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320 (eval $ac_compile) 2>conftest.er1
11322 grep -v '^ *+' conftest.er1 >conftest.err
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_header_compiler=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_compiler=no
11347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6
11351 # Is the header present?
11352 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
11353 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
11362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11365 grep -v '^ *+' conftest.er1 >conftest.err
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } >/dev/null; then
11370 if test -s conftest.err; then
11371 ac_cpp_err=$ac_c_preproc_warn_flag
11372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11379 if test -z "$ac_cpp_err"; then
11380 ac_header_preproc=yes
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_header_preproc=no
11387 rm -f conftest.err conftest.$ac_ext
11388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11389 echo "${ECHO_T}$ac_header_preproc" >&6
11391 # So? What about this header?
11392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11394 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
11395 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
11397 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
11398 ac_header_preproc=yes
11401 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
11402 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
11404 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
11406 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
11408 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
11410 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
11412 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
11415 ## ---------------------------------------- ##
11416 ## Report this to pgsql-bugs@postgresql.org ##
11417 ## ---------------------------------------- ##
11420 sed "s/^/$as_me: WARNING: /" >&2
11423 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
11424 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
11425 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
11430 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
11431 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
11434 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
11437 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
11438 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
11439 { (exit 1); exit 1; }; }
11447 ## Types, structures, compiler characteristics
11450 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11451 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
11452 if test "${ac_cv_c_bigendian+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11455 # See if sys/param.h defines the BYTE_ORDER macro.
11456 cat >conftest.$ac_ext <<_ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 #include <sys/types.h>
11463 #include <sys/param.h>
11468 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11469 bogus endian macros
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478 (eval $ac_compile) 2>conftest.er1
11480 grep -v '^ *+' conftest.er1 >conftest.err
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
11485 { ac_try='test -z "$ac_c_werror_flag"
11486 || test ! -s conftest.err'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; } &&
11492 { ac_try='test -s conftest.$ac_objext'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; }; then
11498 # It does; now see whether it defined to BIG_ENDIAN or not.
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include <sys/types.h>
11506 #include <sys/param.h>
11511 #if BYTE_ORDER != BIG_ENDIAN
11519 rm -f conftest.$ac_objext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521 (eval $ac_compile) 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_c_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 ac_cv_c_bigendian=yes
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 ac_cv_c_bigendian=no
11548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 # It does not; compile a test program.
11554 if test "$cross_compiling" = yes; then
11555 # try to guess the endianness by grepping values into an object file
11556 ac_cv_c_bigendian=unknown
11557 cat >conftest.$ac_ext <<_ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11564 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11565 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11566 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11567 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11568 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11572 _ascii (); _ebcdic ();
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 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11600 ac_cv_c_bigendian=yes
11602 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11603 if test "$ac_cv_c_bigendian" = unknown; then
11604 ac_cv_c_bigendian=no
11606 # finding both strings is unlikely to happen, but who knows?
11607 ac_cv_c_bigendian=unknown
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11617 cat >conftest.$ac_ext <<_ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11626 /* Are we little or big endian? From Harbison&Steele. */
11630 char c[sizeof (long)];
11633 exit (u.c[sizeof (long) - 1] == 1);
11636 rm -f conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_cv_c_bigendian=no
11649 echo "$as_me: program exited with status $ac_status" >&5
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ( exit $ac_status )
11654 ac_cv_c_bigendian=yes
11656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11661 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11662 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11663 case $ac_cv_c_bigendian in
11666 cat >>confdefs.h <<\_ACEOF
11667 #define WORDS_BIGENDIAN 1
11673 { { echo "$as_me:$LINENO: error: unknown endianness
11674 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11675 echo "$as_me: error: unknown endianness
11676 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11677 { (exit 1); exit 1; }; } ;;
11680 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11681 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11682 if test "${ac_cv_c_const+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 cat >conftest.$ac_ext <<_ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11695 /* FIXME: Include the comments suggested by Paul. */
11696 #ifndef __cplusplus
11697 /* Ultrix mips cc rejects this. */
11698 typedef int charset[2];
11700 /* SunOS 4.1.1 cc rejects this. */
11701 char const *const *ccp;
11703 /* NEC SVR4.0.2 mips cc rejects this. */
11704 struct point {int x, y;};
11705 static struct point const zero = {0,0};
11706 /* AIX XL C 1.02.0.0 rejects this.
11707 It does not let you subtract one const X* pointer from another in
11708 an arm of an if-expression whose if-part is not a constant
11710 const char *g = "string";
11711 ccp = &g + (g ? g-g : 0);
11712 /* HPUX 7.0 cc rejects these. */
11715 ccp = (char const *const *) p;
11716 { /* SCO 3.2v4 cc rejects this. */
11718 char const *s = 0 ? (char *) 0 : (char const *) 0;
11722 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11723 int x[] = {25, 17};
11724 const int *foo = &x[0];
11727 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11728 typedef const int *iptr;
11732 { /* AIX XL C 1.02.0.0 rejects this saying
11733 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11734 struct s { int j; const int *ap[3]; };
11735 struct s *b; b->j = 5;
11737 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11738 const int foo = 10;
11746 rm -f conftest.$ac_objext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11748 (eval $ac_compile) 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest.$ac_objext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11777 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11778 echo "${ECHO_T}$ac_cv_c_const" >&6
11779 if test $ac_cv_c_const = no; then
11781 cat >>confdefs.h <<\_ACEOF
11788 echo "$as_me:$LINENO: checking for inline" >&5
11789 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11790 if test "${ac_cv_c_inline+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 for ac_kw in inline __inline__ __inline; do
11795 cat >conftest.$ac_ext <<_ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 #ifndef __cplusplus
11803 static $ac_kw foo_t static_foo () {return 0; }
11804 $ac_kw int foo () {return 0; }
11808 rm -f conftest.$ac_objext
11809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11810 (eval $ac_compile) 2>conftest.er1
11812 grep -v '^ *+' conftest.er1 >conftest.err
11814 cat conftest.err >&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } &&
11817 { ac_try='test -z "$ac_c_werror_flag"
11818 || test ! -s conftest.err'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; } &&
11824 { ac_try='test -s conftest.$ac_objext'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; }; then
11830 ac_cv_c_inline=$ac_kw; break
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11841 echo "${ECHO_T}$ac_cv_c_inline" >&6
11842 case $ac_cv_c_inline in
11845 cat >>confdefs.h <<\_ACEOF
11849 *) cat >>confdefs.h <<_ACEOF
11850 #define inline $ac_cv_c_inline
11855 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11856 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11857 if test "${ac_cv_c_stringize+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.$ac_ext <<_ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11868 char *s = x(teststring);
11870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11871 $EGREP "#teststring" >/dev/null 2>&1; then
11872 ac_cv_c_stringize=no
11874 ac_cv_c_stringize=yes
11879 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11880 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11881 if test $ac_cv_c_stringize = yes; then
11883 cat >>confdefs.h <<\_ACEOF
11884 #define HAVE_STRINGIZE 1
11889 echo "$as_me:$LINENO: checking for signed types" >&5
11890 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11891 if test "${pgac_cv_c_signed+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11904 signed char c; signed short s; signed int i;
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11913 grep -v '^ *+' conftest.er1 >conftest.err
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag"
11919 || test ! -s conftest.err'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest.$ac_objext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 pgac_cv_c_signed=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 pgac_cv_c_signed=no
11938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11940 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11941 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11942 if test x"$pgac_cv_c_signed" = xno ; then
11944 cat >>confdefs.h <<\_ACEOF
11949 echo "$as_me:$LINENO: checking for working volatile" >&5
11950 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11951 if test "${ac_cv_c_volatile+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 cat >conftest.$ac_ext <<_ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>conftest.er1
11975 grep -v '^ *+' conftest.er1 >conftest.err
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag"
11981 || test ! -s conftest.err'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest.$ac_objext'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 ac_cv_c_volatile=yes
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11998 ac_cv_c_volatile=no
12000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12002 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12003 echo "${ECHO_T}$ac_cv_c_volatile" >&6
12004 if test $ac_cv_c_volatile = no; then
12006 cat >>confdefs.h <<\_ACEOF
12012 echo "$as_me:$LINENO: checking for __func__" >&5
12013 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
12014 if test "${pgac_cv_funcname_func_support+set}" = set; then
12015 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12027 printf("%s\n", __func__);
12032 rm -f conftest.$ac_objext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12034 (eval $ac_compile) 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag"
12042 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest.$ac_objext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 pgac_cv_funcname_func_support=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 pgac_cv_funcname_func_support=no
12061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12063 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
12064 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
12065 if test x"$pgac_cv_funcname_func_support" = xyes ; then
12067 cat >>confdefs.h <<\_ACEOF
12068 #define HAVE_FUNCNAME__FUNC 1
12072 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
12073 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
12074 if test "${pgac_cv_funcname_function_support+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12087 printf("%s\n", __FUNCTION__);
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 pgac_cv_funcname_function_support=yes
12116 echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 pgac_cv_funcname_function_support=no
12121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12123 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
12124 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
12125 if test x"$pgac_cv_funcname_function_support" = xyes ; then
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_FUNCNAME__FUNCTION 1
12133 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12134 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12135 if test "${ac_cv_struct_tm+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 cat >conftest.$ac_ext <<_ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 #include <sys/types.h>
12150 struct tm *tp; tp->tm_sec;
12155 rm -f conftest.$ac_objext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12157 (eval $ac_compile) 2>conftest.er1
12159 grep -v '^ *+' conftest.er1 >conftest.err
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } &&
12164 { ac_try='test -z "$ac_c_werror_flag"
12165 || test ! -s conftest.err'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12177 ac_cv_struct_tm=time.h
12179 echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 ac_cv_struct_tm=sys/time.h
12184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12186 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12187 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12188 if test $ac_cv_struct_tm = sys/time.h; then
12190 cat >>confdefs.h <<\_ACEOF
12191 #define TM_IN_SYS_TIME 1
12196 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12197 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12198 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 cat >conftest.$ac_ext <<_ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207 #include <sys/types.h>
12208 #include <$ac_cv_struct_tm>
12214 static struct tm ac_aggr;
12215 if (ac_aggr.tm_zone)
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag"
12231 || test ! -s conftest.err'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_cv_member_struct_tm_tm_zone=yes
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <sys/types.h>
12255 #include <$ac_cv_struct_tm>
12261 static struct tm ac_aggr;
12262 if (sizeof ac_aggr.tm_zone)
12268 rm -f conftest.$ac_objext
12269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270 (eval $ac_compile) 2>conftest.er1
12272 grep -v '^ *+' conftest.er1 >conftest.err
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -z "$ac_c_werror_flag"
12278 || test ! -s conftest.err'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest.$ac_objext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_member_struct_tm_tm_zone=yes
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 ac_cv_member_struct_tm_tm_zone=no
12297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12302 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12303 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12305 cat >>confdefs.h <<_ACEOF
12306 #define HAVE_STRUCT_TM_TM_ZONE 1
12312 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_TM_ZONE 1
12319 echo "$as_me:$LINENO: checking for tzname" >&5
12320 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12321 if test "${ac_cv_var_tzname+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 #ifndef tzname /* For SGI. */
12332 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345 (eval $ac_link) 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag"
12353 || test ! -s conftest.err'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest$ac_exeext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_cv_var_tzname=yes
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_cv_var_tzname=no
12372 rm -f conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12375 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12376 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12377 if test $ac_cv_var_tzname = yes; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define HAVE_TZNAME 1
12385 echo "$as_me:$LINENO: checking for union semun" >&5
12386 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
12387 if test "${ac_cv_type_union_semun+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 #include <sys/types.h>
12397 #include <sys/ipc.h>
12398 #include <sys/sem.h>
12403 if ((union semun *) 0)
12405 if (sizeof (union semun))
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_cv_type_union_semun=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_cv_type_union_semun=no
12440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12442 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
12443 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
12444 if test $ac_cv_type_union_semun = yes; then
12446 cat >>confdefs.h <<_ACEOF
12447 #define HAVE_UNION_SEMUN 1
12453 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
12454 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
12455 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 cat >conftest.$ac_ext <<_ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12464 #include <sys/types.h>
12465 #ifdef HAVE_SYS_UN_H
12466 #include <sys/un.h>
12473 if ((struct sockaddr_un *) 0)
12475 if (sizeof (struct sockaddr_un))
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_cv_type_struct_sockaddr_un=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_type_struct_sockaddr_un=no
12510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12512 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
12513 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
12514 if test $ac_cv_type_struct_sockaddr_un = yes; then
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_STRUCT_SOCKADDR_UN 1
12521 cat >>confdefs.h <<\_ACEOF
12522 #define HAVE_UNIX_SOCKETS 1
12527 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12528 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
12529 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 #include <sys/types.h>
12539 #ifdef HAVE_SYS_SOCKET_H
12540 #include <sys/socket.h>
12547 if ((struct sockaddr_storage *) 0)
12549 if (sizeof (struct sockaddr_storage))
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>conftest.er1
12559 grep -v '^ *+' conftest.er1 >conftest.err
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_type_struct_sockaddr_storage=yes
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12582 ac_cv_type_struct_sockaddr_storage=no
12584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12586 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
12587 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
12588 if test $ac_cv_type_struct_sockaddr_storage = yes; then
12590 cat >>confdefs.h <<_ACEOF
12591 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12597 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
12598 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
12599 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 cat >conftest.$ac_ext <<_ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 #include <sys/types.h>
12609 #ifdef HAVE_SYS_SOCKET_H
12610 #include <sys/socket.h>
12617 static struct sockaddr_storage ac_aggr;
12618 if (ac_aggr.ss_family)
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626 (eval $ac_compile) 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_member_struct_sockaddr_storage_ss_family=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 cat >conftest.$ac_ext <<_ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 #include <sys/types.h>
12658 #ifdef HAVE_SYS_SOCKET_H
12659 #include <sys/socket.h>
12666 static struct sockaddr_storage ac_aggr;
12667 if (sizeof ac_aggr.ss_family)
12673 rm -f conftest.$ac_objext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>conftest.er1
12677 grep -v '^ *+' conftest.er1 >conftest.err
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
12682 { ac_try='test -z "$ac_c_werror_flag"
12683 || test ! -s conftest.err'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_member_struct_sockaddr_storage_ss_family=yes
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 ac_cv_member_struct_sockaddr_storage_ss_family=no
12702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
12707 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
12708 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
12710 cat >>confdefs.h <<_ACEOF
12711 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
12716 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
12717 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
12718 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<_ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 #include <sys/types.h>
12728 #ifdef HAVE_SYS_SOCKET_H
12729 #include <sys/socket.h>
12736 static struct sockaddr_storage ac_aggr;
12737 if (ac_aggr.__ss_family)
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12747 grep -v '^ *+' conftest.er1 >conftest.err
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag"
12753 || test ! -s conftest.err'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 cat >conftest.$ac_ext <<_ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 #include <sys/types.h>
12777 #ifdef HAVE_SYS_SOCKET_H
12778 #include <sys/socket.h>
12785 static struct sockaddr_storage ac_aggr;
12786 if (sizeof ac_aggr.__ss_family)
12792 rm -f conftest.$ac_objext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794 (eval $ac_compile) 2>conftest.er1
12796 grep -v '^ *+' conftest.er1 >conftest.err
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -z "$ac_c_werror_flag"
12802 || test ! -s conftest.err'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest.$ac_objext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12819 ac_cv_member_struct_sockaddr_storage___ss_family=no
12821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12825 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12826 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12827 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12829 cat >>confdefs.h <<_ACEOF
12830 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12835 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12836 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12837 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 cat >conftest.$ac_ext <<_ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 #include <sys/types.h>
12847 #ifdef HAVE_SYS_SOCKET_H
12848 #include <sys/socket.h>
12855 static struct sockaddr_storage ac_aggr;
12856 if (ac_aggr.ss_len)
12862 rm -f conftest.$ac_objext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>conftest.er1
12866 grep -v '^ *+' conftest.er1 >conftest.err
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_c_werror_flag"
12872 || test ! -s conftest.err'
12873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874 (eval $ac_try) 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; } &&
12878 { ac_try='test -s conftest.$ac_objext'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 cat >conftest.$ac_ext <<_ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 #include <sys/types.h>
12896 #ifdef HAVE_SYS_SOCKET_H
12897 #include <sys/socket.h>
12904 static struct sockaddr_storage ac_aggr;
12905 if (sizeof ac_aggr.ss_len)
12911 rm -f conftest.$ac_objext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12913 (eval $ac_compile) 2>conftest.er1
12915 grep -v '^ *+' conftest.er1 >conftest.err
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
12920 { ac_try='test -z "$ac_c_werror_flag"
12921 || test ! -s conftest.err'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; } &&
12927 { ac_try='test -s conftest.$ac_objext'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ac_cv_member_struct_sockaddr_storage_ss_len=no
12940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12944 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12945 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12946 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12948 cat >>confdefs.h <<_ACEOF
12949 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12954 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12955 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12956 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 cat >conftest.$ac_ext <<_ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 #include <sys/types.h>
12966 #ifdef HAVE_SYS_SOCKET_H
12967 #include <sys/socket.h>
12974 static struct sockaddr_storage ac_aggr;
12975 if (ac_aggr.__ss_len)
12981 rm -f conftest.$ac_objext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12983 (eval $ac_compile) 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -z "$ac_c_werror_flag"
12991 || test ! -s conftest.err'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; } &&
12997 { ac_try='test -s conftest.$ac_objext'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_member_struct_sockaddr_storage___ss_len=yes
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13008 cat >conftest.$ac_ext <<_ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 #include <sys/types.h>
13015 #ifdef HAVE_SYS_SOCKET_H
13016 #include <sys/socket.h>
13023 static struct sockaddr_storage ac_aggr;
13024 if (sizeof ac_aggr.__ss_len)
13030 rm -f conftest.$ac_objext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>conftest.er1
13034 grep -v '^ *+' conftest.er1 >conftest.err
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -z "$ac_c_werror_flag"
13040 || test ! -s conftest.err'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest.$ac_objext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_member_struct_sockaddr_storage___ss_len=yes
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13057 ac_cv_member_struct_sockaddr_storage___ss_len=no
13059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13063 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
13064 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
13065 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
13067 cat >>confdefs.h <<_ACEOF
13068 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
13073 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13074 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13075 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 cat >conftest.$ac_ext <<_ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 #include <sys/types.h>
13085 #ifdef HAVE_SYS_SOCKET_H
13086 #include <sys/socket.h>
13093 static struct sockaddr ac_aggr;
13094 if (ac_aggr.sa_len)
13100 rm -f conftest.$ac_objext
13101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102 (eval $ac_compile) 2>conftest.er1
13104 grep -v '^ *+' conftest.er1 >conftest.err
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -z "$ac_c_werror_flag"
13110 || test ! -s conftest.err'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest.$ac_objext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_member_struct_sockaddr_sa_len=yes
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13133 #include <sys/types.h>
13134 #ifdef HAVE_SYS_SOCKET_H
13135 #include <sys/socket.h>
13142 static struct sockaddr ac_aggr;
13143 if (sizeof ac_aggr.sa_len)
13149 rm -f conftest.$ac_objext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>conftest.er1
13153 grep -v '^ *+' conftest.er1 >conftest.err
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_c_werror_flag"
13159 || test ! -s conftest.err'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest.$ac_objext'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
13171 ac_cv_member_struct_sockaddr_sa_len=yes
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13176 ac_cv_member_struct_sockaddr_sa_len=no
13178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13182 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13183 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13184 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13186 cat >>confdefs.h <<_ACEOF
13187 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13193 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
13194 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
13195 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 cat >conftest.$ac_ext <<_ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 #include <sys/types.h>
13205 #include <sys/socket.h>
13212 if ((struct addrinfo *) 0)
13214 if (sizeof (struct addrinfo))
13220 rm -f conftest.$ac_objext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13222 (eval $ac_compile) 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_c_werror_flag"
13230 || test ! -s conftest.err'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; } &&
13236 { ac_try='test -s conftest.$ac_objext'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 ac_cv_type_struct_addrinfo=yes
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_cv_type_struct_addrinfo=no
13249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13251 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
13252 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
13253 if test $ac_cv_type_struct_addrinfo = yes; then
13255 cat >>confdefs.h <<_ACEOF
13256 #define HAVE_STRUCT_ADDRINFO 1
13263 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
13264 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
13265 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <sys/param.h>
13275 #include <sys/types.h>
13276 #include <sys/socket.h>
13277 #include <sys/ucred.h>
13282 if ((struct cmsgcred *) 0)
13284 if (sizeof (struct cmsgcred))
13290 rm -f conftest.$ac_objext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13292 (eval $ac_compile) 2>conftest.er1
13294 grep -v '^ *+' conftest.er1 >conftest.err
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
13299 { ac_try='test -z "$ac_c_werror_flag"
13300 || test ! -s conftest.err'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; } &&
13306 { ac_try='test -s conftest.$ac_objext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_type_struct_cmsgcred=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_cv_type_struct_cmsgcred=no
13319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13321 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
13322 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
13323 if test $ac_cv_type_struct_cmsgcred = yes; then
13325 cat >>confdefs.h <<_ACEOF
13326 #define HAVE_STRUCT_CMSGCRED 1
13331 echo "$as_me:$LINENO: checking for struct fcred" >&5
13332 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
13333 if test "${ac_cv_type_struct_fcred+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 cat >conftest.$ac_ext <<_ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 #include <sys/param.h>
13343 #include <sys/types.h>
13344 #include <sys/socket.h>
13345 #include <sys/ucred.h>
13350 if ((struct fcred *) 0)
13352 if (sizeof (struct fcred))
13358 rm -f conftest.$ac_objext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13360 (eval $ac_compile) 2>conftest.er1
13362 grep -v '^ *+' conftest.er1 >conftest.err
13364 cat conftest.err >&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 { ac_try='test -z "$ac_c_werror_flag"
13368 || test ! -s conftest.err'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; } &&
13374 { ac_try='test -s conftest.$ac_objext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 ac_cv_type_struct_fcred=yes
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13385 ac_cv_type_struct_fcred=no
13387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
13390 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
13391 if test $ac_cv_type_struct_fcred = yes; then
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_STRUCT_FCRED 1
13399 echo "$as_me:$LINENO: checking for struct sockcred" >&5
13400 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
13401 if test "${ac_cv_type_struct_sockcred+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 #include <sys/param.h>
13411 #include <sys/types.h>
13412 #include <sys/socket.h>
13413 #include <sys/ucred.h>
13418 if ((struct sockcred *) 0)
13420 if (sizeof (struct sockcred))
13426 rm -f conftest.$ac_objext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428 (eval $ac_compile) 2>conftest.er1
13430 grep -v '^ *+' conftest.er1 >conftest.err
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_c_werror_flag"
13436 || test ! -s conftest.err'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_type_struct_sockcred=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_type_struct_sockcred=no
13455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13457 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
13458 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
13459 if test $ac_cv_type_struct_sockcred = yes; then
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_STRUCT_SOCKCRED 1
13469 echo "$as_me:$LINENO: checking for struct option" >&5
13470 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
13471 if test "${ac_cv_type_struct_option+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 #ifdef HAVE_GETOPT_H
13481 #include <getopt.h>
13487 if ((struct option *) 0)
13489 if (sizeof (struct option))
13495 rm -f conftest.$ac_objext
13496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497 (eval $ac_compile) 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_c_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest.$ac_objext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_type_struct_option=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_cv_type_struct_option=no
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13526 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
13527 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
13528 if test $ac_cv_type_struct_option = yes; then
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_STRUCT_OPTION 1
13538 if test "$with_zlib" = yes; then
13539 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
13540 # did not). While we could work around the lack of z_streamp, it
13541 # seems unwise to encourage people to use such old zlib versions...
13542 echo "$as_me:$LINENO: checking for z_streamp" >&5
13543 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
13544 if test "${ac_cv_type_z_streamp+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13558 if ((z_streamp *) 0)
13560 if (sizeof (z_streamp))
13566 rm -f conftest.$ac_objext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13568 (eval $ac_compile) 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag"
13576 || test ! -s conftest.err'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; } &&
13582 { ac_try='test -s conftest.$ac_objext'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_type_z_streamp=yes
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13593 ac_cv_type_z_streamp=no
13595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13597 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
13598 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
13599 if test $ac_cv_type_z_streamp = yes; then
13602 { { echo "$as_me:$LINENO: error: zlib version is too old
13603 Use --without-zlib to disable zlib support." >&5
13604 echo "$as_me: error: zlib version is too old
13605 Use --without-zlib to disable zlib support." >&2;}
13606 { (exit 1); exit 1; }; }
13611 if test "$with_krb5" = yes; then
13612 # Check for differences between MIT and Heimdal (KTH) releases
13613 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
13614 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
13615 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13629 static krb5_ticket ac_aggr;
13630 if (ac_aggr.enc_part2)
13636 rm -f conftest.$ac_objext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -z "$ac_c_werror_flag"
13646 || test ! -s conftest.err'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658 ac_cv_member_krb5_ticket_enc_part2=yes
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13663 cat >conftest.$ac_ext <<_ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13674 static krb5_ticket ac_aggr;
13675 if (sizeof ac_aggr.enc_part2)
13681 rm -f conftest.$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_member_krb5_ticket_enc_part2=yes
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13708 ac_cv_member_krb5_ticket_enc_part2=no
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13714 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
13715 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
13716 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_KRB5_TICKET_ENC_PART2 1
13724 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
13725 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
13726 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 cat >conftest.$ac_ext <<_ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13740 static krb5_ticket ac_aggr;
13741 if (ac_aggr.client)
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>conftest.er1
13751 grep -v '^ *+' conftest.er1 >conftest.err
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -z "$ac_c_werror_flag"
13757 || test ! -s conftest.err'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest.$ac_objext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_cv_member_krb5_ticket_client=yes
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13774 cat >conftest.$ac_ext <<_ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13785 static krb5_ticket ac_aggr;
13786 if (sizeof ac_aggr.client)
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag"
13802 || test ! -s conftest.err'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_member_krb5_ticket_client=yes
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 ac_cv_member_krb5_ticket_client=no
13821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13826 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13827 if test $ac_cv_member_krb5_ticket_client = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_KRB5_TICKET_CLIENT 1
13835 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13836 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13837 { (exit 1); exit 1; }; }
13842 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13843 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13844 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 cat >conftest.$ac_ext <<_ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13858 static krb5_error ac_aggr;
13859 if (ac_aggr.text.data)
13865 rm -f conftest.$ac_objext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13867 (eval $ac_compile) 2>conftest.er1
13869 grep -v '^ *+' conftest.er1 >conftest.err
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -z "$ac_c_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest.$ac_objext'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 ac_cv_member_krb5_error_text_data=yes
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13903 static krb5_error ac_aggr;
13904 if (sizeof ac_aggr.text.data)
13910 rm -f conftest.$ac_objext
13911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912 (eval $ac_compile) 2>conftest.er1
13914 grep -v '^ *+' conftest.er1 >conftest.err
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
13919 { ac_try='test -z "$ac_c_werror_flag"
13920 || test ! -s conftest.err'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try='test -s conftest.$ac_objext'
13927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 ac_cv_member_krb5_error_text_data=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_cv_member_krb5_error_text_data=no
13939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13943 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13944 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13945 if test $ac_cv_member_krb5_error_text_data = yes; then
13947 cat >>confdefs.h <<_ACEOF
13948 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13953 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13954 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13955 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 cat >conftest.$ac_ext <<_ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13969 static krb5_error ac_aggr;
13970 if (ac_aggr.e_data)
13976 rm -f conftest.$ac_objext
13977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13978 (eval $ac_compile) 2>conftest.er1
13980 grep -v '^ *+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag"
13986 || test ! -s conftest.err'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } &&
13992 { ac_try='test -s conftest.$ac_objext'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_cv_member_krb5_error_e_data=yes
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14014 static krb5_error ac_aggr;
14015 if (sizeof ac_aggr.e_data)
14021 rm -f conftest.$ac_objext
14022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14023 (eval $ac_compile) 2>conftest.er1
14025 grep -v '^ *+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -z "$ac_c_werror_flag"
14031 || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_member_krb5_error_e_data=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_cv_member_krb5_error_e_data=no
14050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14054 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
14055 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
14056 if test $ac_cv_member_krb5_error_e_data = yes; then
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_KRB5_ERROR_E_DATA 1
14064 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
14065 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
14066 { (exit 1); exit 1; }; }
14075 ## Functions, global variables
14078 echo "$as_me:$LINENO: checking for int timezone" >&5
14079 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
14080 if test "${pgac_cv_var_int_timezone+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14095 res = timezone / 60;
14097 res = _timezone / 60;
14103 rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14105 (eval $ac_link) 2>conftest.er1
14107 grep -v '^ *+' conftest.er1 >conftest.err
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -z "$ac_c_werror_flag"
14113 || test ! -s conftest.err'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; } &&
14119 { ac_try='test -s conftest$ac_exeext'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 pgac_cv_var_int_timezone=yes
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 pgac_cv_var_int_timezone=no
14132 rm -f conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14135 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
14136 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
14137 if test x"$pgac_cv_var_int_timezone" = xyes ; then
14139 cat >>confdefs.h <<\_ACEOF
14140 #define HAVE_INT_TIMEZONE
14144 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
14145 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
14146 if test "${ac_cv_func_accept_return+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 if test "${ac_cv_func_accept_arg1+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 if test "${ac_cv_func_accept_arg2+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 if test "${ac_cv_func_accept_arg3+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
14159 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
14160 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14161 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14162 cat >conftest.$ac_ext <<_ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 #ifdef HAVE_SYS_TYPES_H
14169 #include <sys/types.h>
14171 #ifdef HAVE_SYS_SOCKET_H
14172 #include <sys/socket.h>
14174 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14183 rm -f conftest.$ac_objext
14184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14185 (eval $ac_compile) 2>conftest.er1
14187 grep -v '^ *+' conftest.er1 >conftest.err
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -z "$ac_c_werror_flag"
14193 || test ! -s conftest.err'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; } &&
14199 { ac_try='test -s conftest.$ac_objext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_not_found=no; break 4
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14217 if test "$ac_not_found" = yes; then
14218 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
14219 echo "$as_me: error: could not determine argument types" >&2;}
14220 { (exit 1); exit 1; }; }
14222 if test "$ac_cv_func_accept_arg3" = "void"; then
14223 ac_cv_func_accept_arg3=int
14233 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
14234 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
14236 cat >>confdefs.h <<_ACEOF
14237 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14241 cat >>confdefs.h <<_ACEOF
14242 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14246 cat >>confdefs.h <<_ACEOF
14247 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14251 cat >>confdefs.h <<_ACEOF
14252 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14256 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
14257 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
14258 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 cat >conftest.$ac_ext <<_ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <sys/time.h>
14271 struct timeval *tp;
14272 struct timezone *tzp;
14273 gettimeofday(tp,tzp);
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>conftest.er1
14282 grep -v '^ *+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag"
14288 || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 pgac_cv_func_gettimeofday_1arg=no
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 pgac_cv_func_gettimeofday_1arg=yes
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
14310 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
14311 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
14313 cat >>confdefs.h <<\_ACEOF
14314 #define GETTIMEOFDAY_1ARG
14341 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
14343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14344 echo "$as_me:$LINENO: checking for $ac_func" >&5
14345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_var+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14357 #define $ac_func innocuous_$ac_func
14359 /* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char $ac_func (); below.
14361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14362 <limits.h> exists even on freestanding compilers. */
14365 # include <limits.h>
14367 # include <assert.h>
14372 /* Override any gcc2 internal prototype to avoid an error. */
14377 /* We use char because int might match the return type of a gcc2
14378 builtin and then its argument prototype would still apply. */
14380 /* The GNU C library defines this for functions which it implements
14381 to always fail with ENOSYS. Some functions are actually named
14382 something starting with __ and the normal name is an alias. */
14383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14386 char (*f) () = $ac_func;
14395 return f != $ac_func;
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14402 (eval $ac_link) 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag"
14410 || test ! -s conftest.err'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } &&
14416 { ac_try='test -s conftest$ac_exeext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 eval "$as_ac_var=yes"
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 eval "$as_ac_var=no"
14429 rm -f conftest.err conftest.$ac_objext \
14430 conftest$ac_exeext conftest.$ac_ext
14432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14434 if test `eval echo '${'$as_ac_var'}'` = yes; then
14435 cat >>confdefs.h <<_ACEOF
14436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14443 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
14444 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
14445 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h. */
14454 #include <unistd.h>
14460 char *p = (char *) fdatasync;
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag"
14477 || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 ac_cv_have_decl_fdatasync=yes
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 ac_cv_have_decl_fdatasync=no
14496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14498 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
14499 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
14500 if test $ac_cv_have_decl_fdatasync = yes; then
14502 cat >>confdefs.h <<_ACEOF
14503 #define HAVE_DECL_FDATASYNC 1
14508 cat >>confdefs.h <<_ACEOF
14509 #define HAVE_DECL_FDATASYNC 0
14516 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
14517 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
14518 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 cat >conftest.$ac_ext <<_ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14532 #ifndef posix_fadvise
14533 char *p = (char *) posix_fadvise;
14540 rm -f conftest.$ac_objext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542 (eval $ac_compile) 2>conftest.er1
14544 grep -v '^ *+' conftest.er1 >conftest.err
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_cv_have_decl_posix_fadvise=yes
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14567 ac_cv_have_decl_posix_fadvise=no
14569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14571 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
14572 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
14573 if test $ac_cv_have_decl_posix_fadvise = yes; then
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_DECL_POSIX_FADVISE 1
14581 cat >>confdefs.h <<_ACEOF
14582 #define HAVE_DECL_POSIX_FADVISE 0
14589 echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
14590 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6
14591 if test "${ac_cv_have_decl_strlcat+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 cat >conftest.$ac_ext <<_ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600 $ac_includes_default
14605 char *p = (char *) strlcat;
14612 rm -f conftest.$ac_objext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614 (eval $ac_compile) 2>conftest.er1
14616 grep -v '^ *+' conftest.er1 >conftest.err
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_cv_have_decl_strlcat=yes
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 ac_cv_have_decl_strlcat=no
14641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
14644 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6
14645 if test $ac_cv_have_decl_strlcat = yes; then
14647 cat >>confdefs.h <<_ACEOF
14648 #define HAVE_DECL_STRLCAT 1
14653 cat >>confdefs.h <<_ACEOF
14654 #define HAVE_DECL_STRLCAT 0
14659 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
14660 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
14661 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 $ac_includes_default
14675 char *p = (char *) strlcpy;
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>conftest.er1
14686 grep -v '^ *+' conftest.er1 >conftest.err
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_have_decl_strlcpy=yes
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_cv_have_decl_strlcpy=no
14711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14713 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
14714 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
14715 if test $ac_cv_have_decl_strlcpy = yes; then
14717 cat >>confdefs.h <<_ACEOF
14718 #define HAVE_DECL_STRLCPY 1
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_DECL_STRLCPY 0
14731 # This is probably only present on Darwin, but may as well check always
14732 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
14733 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
14734 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14748 #ifndef F_FULLFSYNC
14749 char *p = (char *) F_FULLFSYNC;
14756 rm -f conftest.$ac_objext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14758 (eval $ac_compile) 2>conftest.er1
14760 grep -v '^ *+' conftest.er1 >conftest.err
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag"
14766 || test ! -s conftest.err'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest.$ac_objext'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_cv_have_decl_F_FULLFSYNC=yes
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_cv_have_decl_F_FULLFSYNC=no
14785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14787 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
14788 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
14789 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define HAVE_DECL_F_FULLFSYNC 1
14797 cat >>confdefs.h <<_ACEOF
14798 #define HAVE_DECL_F_FULLFSYNC 0
14807 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
14808 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
14809 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 cat >conftest.$ac_ext <<_ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 $ac_includes_default
14819 #include <netinet/in.h>
14824 if ((struct sockaddr_in6 *) 0)
14826 if (sizeof (struct sockaddr_in6))
14832 rm -f conftest.$ac_objext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14834 (eval $ac_compile) 2>conftest.er1
14836 grep -v '^ *+' conftest.er1 >conftest.err
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -z "$ac_c_werror_flag"
14842 || test ! -s conftest.err'
14843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844 (eval $ac_try) 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; } &&
14848 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14854 ac_cv_type_struct_sockaddr_in6=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_type_struct_sockaddr_in6=no
14861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14863 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
14864 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
14865 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_IPV6 1
14876 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
14877 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
14878 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14881 cat >conftest.$ac_ext <<_ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 #include <machine/vmparam.h>
14888 #include <sys/exec.h>
14893 PS_STRINGS->ps_nargvstr = 1;
14894 PS_STRINGS->ps_argvstr = "foo";
14899 rm -f conftest.$ac_objext conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901 (eval $ac_link) 2>conftest.er1
14903 grep -v '^ *+' conftest.er1 >conftest.err
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } &&
14908 { ac_try='test -z "$ac_c_werror_flag"
14909 || test ! -s conftest.err'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; } &&
14915 { ac_try='test -s conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 pgac_cv_var_PS_STRINGS=yes
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 pgac_cv_var_PS_STRINGS=no
14928 rm -f conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext conftest.$ac_ext
14931 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
14932 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
14933 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
14935 cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_PS_STRINGS
14942 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
14943 # is missing. Yes, there are machines that have only one. We may
14944 # also decide to use snprintf.c if snprintf() is present but does not
14945 # have all the features we need --- see below.
14947 if test "$PORTNAME" = "win32"; then
14948 # Win32 gets snprintf.c built unconditionally.
14950 # To properly translate all NLS languages strings, we must support the
14951 # *printf() %$ format, which allows *printf() arguments to be selected
14952 # by position in the translated string.
14954 # libintl versions < 0.13 use the native *printf() functions, and Win32
14955 # *printf() doesn't understand %$, so we must use our /port versions,
14956 # which do understand %$. libintl versions >= 0.13 include their own
14957 # *printf versions on Win32. The libintl 0.13 release note text is:
14959 # C format strings with positions, as they arise when a translator
14960 # needs to reorder a sentence, are now supported on all platforms.
14961 # On those few platforms (NetBSD and Woe32) for which the native
14962 # printf()/fprintf()/... functions don't support such format
14963 # strings, replacements are provided through <libintl.h>.
14965 # We could use libintl >= 0.13's *printf() if we were sure that we had
14966 # a litint >= 0.13 at runtime, but seeing that there is no clean way
14967 # to guarantee that, it is best to just use our own, so we are sure to
14968 # get %$ support. In include/port.h we disable the *printf() macros
14969 # that might have been defined by libintl.
14971 # We do this unconditionally whether NLS is used or not so we are sure
14972 # that all Win32 libraries and binaries behave the same.
14973 pgac_need_repl_snprintf=yes
14975 pgac_need_repl_snprintf=no
14977 for ac_func in snprintf
14979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14980 echo "$as_me:$LINENO: checking for $ac_func" >&5
14981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14982 if eval "test \"\${$as_ac_var+set}\" = set"; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 cat >conftest.$ac_ext <<_ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14993 #define $ac_func innocuous_$ac_func
14995 /* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char $ac_func (); below.
14997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14998 <limits.h> exists even on freestanding compilers. */
15001 # include <limits.h>
15003 # include <assert.h>
15008 /* Override any gcc2 internal prototype to avoid an error. */
15013 /* We use char because int might match the return type of a gcc2
15014 builtin and then its argument prototype would still apply. */
15016 /* The GNU C library defines this for functions which it implements
15017 to always fail with ENOSYS. Some functions are actually named
15018 something starting with __ and the normal name is an alias. */
15019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15022 char (*f) () = $ac_func;
15031 return f != $ac_func;
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038 (eval $ac_link) 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag"
15046 || test ! -s conftest.err'
15047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048 (eval $ac_try) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; } &&
15052 { ac_try='test -s conftest$ac_exeext'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 eval "$as_ac_var=yes"
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 eval "$as_ac_var=no"
15065 rm -f conftest.err conftest.$ac_objext \
15066 conftest$ac_exeext conftest.$ac_ext
15068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15070 if test `eval echo '${'$as_ac_var'}'` = yes; then
15071 cat >>confdefs.h <<_ACEOF
15072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15076 pgac_need_repl_snprintf=yes
15081 for ac_func in vsnprintf
15083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15084 echo "$as_me:$LINENO: checking for $ac_func" >&5
15085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15086 if eval "test \"\${$as_ac_var+set}\" = set"; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15089 cat >conftest.$ac_ext <<_ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15097 #define $ac_func innocuous_$ac_func
15099 /* System header to define __stub macros and hopefully few prototypes,
15100 which can conflict with char $ac_func (); below.
15101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15102 <limits.h> exists even on freestanding compilers. */
15105 # include <limits.h>
15107 # include <assert.h>
15112 /* Override any gcc2 internal prototype to avoid an error. */
15117 /* We use char because int might match the return type of a gcc2
15118 builtin and then its argument prototype would still apply. */
15120 /* The GNU C library defines this for functions which it implements
15121 to always fail with ENOSYS. Some functions are actually named
15122 something starting with __ and the normal name is an alias. */
15123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15126 char (*f) () = $ac_func;
15135 return f != $ac_func;
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15142 (eval $ac_link) 2>conftest.er1
15144 grep -v '^ *+' conftest.er1 >conftest.err
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } &&
15149 { ac_try='test -z "$ac_c_werror_flag"
15150 || test ! -s conftest.err'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest$ac_exeext'
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 eval "$as_ac_var=yes"
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 eval "$as_ac_var=no"
15169 rm -f conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
15172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15174 if test `eval echo '${'$as_ac_var'}'` = yes; then
15175 cat >>confdefs.h <<_ACEOF
15176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15180 pgac_need_repl_snprintf=yes
15187 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
15188 # include/c.h will provide declarations. Note this is a separate test
15189 # from whether the functions exist in the C library --- there are
15190 # systems that have the functions but don't bother to declare them :-(
15192 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15193 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
15194 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 cat >conftest.$ac_ext <<_ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15208 char *p = (char *) snprintf;
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217 (eval $ac_compile) 2>conftest.er1
15219 grep -v '^ *+' conftest.er1 >conftest.err
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag"
15225 || test ! -s conftest.err'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_cv_have_decl_snprintf=yes
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 ac_cv_have_decl_snprintf=no
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15246 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15247 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
15248 if test $ac_cv_have_decl_snprintf = yes; then
15250 cat >>confdefs.h <<_ACEOF
15251 #define HAVE_DECL_SNPRINTF 1
15256 cat >>confdefs.h <<_ACEOF
15257 #define HAVE_DECL_SNPRINTF 0
15262 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15263 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
15264 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15267 cat >conftest.$ac_ext <<_ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 $ac_includes_default
15278 char *p = (char *) vsnprintf;
15285 rm -f conftest.$ac_objext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>conftest.er1
15289 grep -v '^ *+' conftest.er1 >conftest.err
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag"
15295 || test ! -s conftest.err'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest.$ac_objext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_cv_have_decl_vsnprintf=yes
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_cv_have_decl_vsnprintf=no
15314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15316 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15317 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
15318 if test $ac_cv_have_decl_vsnprintf = yes; then
15320 cat >>confdefs.h <<_ACEOF
15321 #define HAVE_DECL_VSNPRINTF 1
15326 cat >>confdefs.h <<_ACEOF
15327 #define HAVE_DECL_VSNPRINTF 0
15336 echo "$as_me:$LINENO: checking for isinf" >&5
15337 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
15338 if test "${ac_cv_func_isinf+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15349 double glob_double;
15354 return isinf(glob_double) ? 0 : 1;
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361 (eval $ac_link) 2>conftest.er1
15363 grep -v '^ *+' conftest.er1 >conftest.err
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try='test -z "$ac_c_werror_flag"
15369 || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest$ac_exeext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15381 ac_cv_func_isinf=yes
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15386 ac_cv_func_isinf=no
15388 rm -f conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15391 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
15392 echo "${ECHO_T}$ac_cv_func_isinf" >&6
15394 if test $ac_cv_func_isinf = yes ; then
15396 cat >>confdefs.h <<\_ACEOF
15397 #define HAVE_ISINF 1
15402 "isinf.$ac_objext" | \
15403 *" isinf.$ac_objext" | \
15404 "isinf.$ac_objext "* | \
15405 *" isinf.$ac_objext "* ) ;;
15406 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
15409 # Look for a way to implement a substitute for isinf()
15414 for ac_func in fpclass fp_class fp_class_d class
15416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15417 echo "$as_me:$LINENO: checking for $ac_func" >&5
15418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15419 if eval "test \"\${$as_ac_var+set}\" = set"; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15430 #define $ac_func innocuous_$ac_func
15432 /* System header to define __stub macros and hopefully few prototypes,
15433 which can conflict with char $ac_func (); below.
15434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15435 <limits.h> exists even on freestanding compilers. */
15438 # include <limits.h>
15440 # include <assert.h>
15445 /* Override any gcc2 internal prototype to avoid an error. */
15450 /* We use char because int might match the return type of a gcc2
15451 builtin and then its argument prototype would still apply. */
15453 /* The GNU C library defines this for functions which it implements
15454 to always fail with ENOSYS. Some functions are actually named
15455 something starting with __ and the normal name is an alias. */
15456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15459 char (*f) () = $ac_func;
15468 return f != $ac_func;
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475 (eval $ac_link) 2>conftest.er1
15477 grep -v '^ *+' conftest.er1 >conftest.err
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -z "$ac_c_werror_flag"
15483 || test ! -s conftest.err'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest$ac_exeext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 eval "$as_ac_var=yes"
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 eval "$as_ac_var=no"
15502 rm -f conftest.err conftest.$ac_objext \
15503 conftest$ac_exeext conftest.$ac_ext
15505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15507 if test `eval echo '${'$as_ac_var'}'` = yes; then
15508 cat >>confdefs.h <<_ACEOF
15509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15517 # Some versions of libedit contain strlcpy(); so disregard that library while
15518 # checking for these standard libc functions.
15519 pgac_save_LIBS="$LIBS"
15520 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15537 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
15539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15540 echo "$as_me:$LINENO: checking for $ac_func" >&5
15541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15542 if eval "test \"\${$as_ac_var+set}\" = set"; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15553 #define $ac_func innocuous_$ac_func
15555 /* System header to define __stub macros and hopefully few prototypes,
15556 which can conflict with char $ac_func (); below.
15557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558 <limits.h> exists even on freestanding compilers. */
15561 # include <limits.h>
15563 # include <assert.h>
15568 /* Override any gcc2 internal prototype to avoid an error. */
15573 /* We use char because int might match the return type of a gcc2
15574 builtin and then its argument prototype would still apply. */
15576 /* The GNU C library defines this for functions which it implements
15577 to always fail with ENOSYS. Some functions are actually named
15578 something starting with __ and the normal name is an alias. */
15579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15582 char (*f) () = $ac_func;
15591 return f != $ac_func;
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>conftest.er1
15600 grep -v '^ *+' conftest.er1 >conftest.err
15602 cat conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -z "$ac_c_werror_flag"
15606 || test ! -s conftest.err'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest$ac_exeext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 eval "$as_ac_var=yes"
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 eval "$as_ac_var=no"
15625 rm -f conftest.err conftest.$ac_objext \
15626 conftest$ac_exeext conftest.$ac_ext
15628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15630 if test `eval echo '${'$as_ac_var'}'` = yes; then
15631 cat >>confdefs.h <<_ACEOF
15632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15637 "$ac_func.$ac_objext" | \
15638 *" $ac_func.$ac_objext" | \
15639 "$ac_func.$ac_objext "* | \
15640 *" $ac_func.$ac_objext "* ) ;;
15641 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15649 LIBS="$pgac_save_LIBS"
15651 # System's version of getaddrinfo(), if any, may be used only if we found
15652 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
15653 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
15654 # versions of getaddrinfo don't follow normal C call protocol. This is OK
15655 # because we want to use our own getaddrinfo.c on Windows anyway.)
15656 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
15658 for ac_func in getaddrinfo
15660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15661 echo "$as_me:$LINENO: checking for $ac_func" >&5
15662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15663 if eval "test \"\${$as_ac_var+set}\" = set"; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15674 #define $ac_func innocuous_$ac_func
15676 /* System header to define __stub macros and hopefully few prototypes,
15677 which can conflict with char $ac_func (); below.
15678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679 <limits.h> exists even on freestanding compilers. */
15682 # include <limits.h>
15684 # include <assert.h>
15689 /* Override any gcc2 internal prototype to avoid an error. */
15694 /* We use char because int might match the return type of a gcc2
15695 builtin and then its argument prototype would still apply. */
15697 /* The GNU C library defines this for functions which it implements
15698 to always fail with ENOSYS. Some functions are actually named
15699 something starting with __ and the normal name is an alias. */
15700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15703 char (*f) () = $ac_func;
15712 return f != $ac_func;
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>conftest.er1
15721 grep -v '^ *+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag"
15727 || test ! -s conftest.err'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest$ac_exeext'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 eval "$as_ac_var=yes"
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 eval "$as_ac_var=no"
15746 rm -f conftest.err conftest.$ac_objext \
15747 conftest$ac_exeext conftest.$ac_ext
15749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15751 if test `eval echo '${'$as_ac_var'}'` = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15758 "$ac_func.$ac_objext" | \
15759 *" $ac_func.$ac_objext" | \
15760 "$ac_func.$ac_objext "* | \
15761 *" $ac_func.$ac_objext "* ) ;;
15762 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15771 "getaddrinfo.$ac_objext" | \
15772 *" getaddrinfo.$ac_objext" | \
15773 "getaddrinfo.$ac_objext "* | \
15774 *" getaddrinfo.$ac_objext "* ) ;;
15775 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
15780 # similarly, use system's getopt_long() only if system provides struct option.
15781 if test x"$ac_cv_type_struct_option" = xyes ; then
15783 for ac_func in getopt_long
15785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15786 echo "$as_me:$LINENO: checking for $ac_func" >&5
15787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15788 if eval "test \"\${$as_ac_var+set}\" = set"; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15799 #define $ac_func innocuous_$ac_func
15801 /* System header to define __stub macros and hopefully few prototypes,
15802 which can conflict with char $ac_func (); below.
15803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804 <limits.h> exists even on freestanding compilers. */
15807 # include <limits.h>
15809 # include <assert.h>
15814 /* Override any gcc2 internal prototype to avoid an error. */
15819 /* We use char because int might match the return type of a gcc2
15820 builtin and then its argument prototype would still apply. */
15822 /* The GNU C library defines this for functions which it implements
15823 to always fail with ENOSYS. Some functions are actually named
15824 something starting with __ and the normal name is an alias. */
15825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15828 char (*f) () = $ac_func;
15837 return f != $ac_func;
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844 (eval $ac_link) 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -z "$ac_c_werror_flag"
15852 || test ! -s conftest.err'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest$ac_exeext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 eval "$as_ac_var=yes"
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 eval "$as_ac_var=no"
15871 rm -f conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15876 if test `eval echo '${'$as_ac_var'}'` = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15883 "$ac_func.$ac_objext" | \
15884 *" $ac_func.$ac_objext" | \
15885 "$ac_func.$ac_objext "* | \
15886 *" $ac_func.$ac_objext "* ) ;;
15887 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15896 "getopt_long.$ac_objext" | \
15897 *" getopt_long.$ac_objext" | \
15898 "getopt_long.$ac_objext "* | \
15899 *" getopt_long.$ac_objext "* ) ;;
15900 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
15905 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
15906 # We override the previous test that said fseeko/ftello didn't exist
15907 # OS tests are also done in include/c.h and port/fseeko.c
15908 case $host_os in bsdi*|netbsd*)
15909 ac_cv_func_fseeko=yes
15913 if test "$PORTNAME" = "win32"; then
15915 "gettimeofday.$ac_objext" | \
15916 *" gettimeofday.$ac_objext" | \
15917 "gettimeofday.$ac_objext "* | \
15918 *" gettimeofday.$ac_objext "* ) ;;
15919 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
15923 "kill.$ac_objext" | \
15924 *" kill.$ac_objext" | \
15925 "kill.$ac_objext "* | \
15926 *" kill.$ac_objext "* ) ;;
15927 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
15931 "open.$ac_objext" | \
15932 *" open.$ac_objext" | \
15933 "open.$ac_objext "* | \
15934 *" open.$ac_objext "* ) ;;
15935 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
15939 "rand.$ac_objext" | \
15940 *" rand.$ac_objext" | \
15941 "rand.$ac_objext "* | \
15942 *" rand.$ac_objext "* ) ;;
15943 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
15947 "win32error.$ac_objext" | \
15948 *" win32error.$ac_objext" | \
15949 "win32error.$ac_objext "* | \
15950 *" win32error.$ac_objext "* ) ;;
15951 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_SYMLINK 1
15961 if test "$with_readline" = yes; then
15962 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
15963 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
15964 cat >conftest.$ac_ext <<_ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15971 #ifdef HAVE_READLINE_READLINE_H
15972 # include <readline/readline.h>
15973 #elif defined(HAVE_READLINE_H)
15974 # include <readline.h>
15980 rl_completion_append_character = 'x';
15985 rm -f conftest.$ac_objext conftest$ac_exeext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15987 (eval $ac_link) 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_c_werror_flag"
15995 || test ! -s conftest.err'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest$ac_exeext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 echo "$as_me:$LINENO: result: yes" >&5
16008 echo "${ECHO_T}yes" >&6
16010 cat >>confdefs.h <<\_ACEOF
16011 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 echo "$as_me:$LINENO: result: no" >&5
16019 echo "${ECHO_T}no" >&6
16021 rm -f conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16025 for ac_func in rl_completion_matches rl_filename_completion_function
16027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16028 echo "$as_me:$LINENO: checking for $ac_func" >&5
16029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16030 if eval "test \"\${$as_ac_var+set}\" = set"; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 cat >conftest.$ac_ext <<_ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16041 #define $ac_func innocuous_$ac_func
16043 /* System header to define __stub macros and hopefully few prototypes,
16044 which can conflict with char $ac_func (); below.
16045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16046 <limits.h> exists even on freestanding compilers. */
16049 # include <limits.h>
16051 # include <assert.h>
16056 /* Override any gcc2 internal prototype to avoid an error. */
16061 /* We use char because int might match the return type of a gcc2
16062 builtin and then its argument prototype would still apply. */
16064 /* The GNU C library defines this for functions which it implements
16065 to always fail with ENOSYS. Some functions are actually named
16066 something starting with __ and the normal name is an alias. */
16067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16070 char (*f) () = $ac_func;
16079 return f != $ac_func;
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086 (eval $ac_link) 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag"
16094 || test ! -s conftest.err'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest$ac_exeext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 eval "$as_ac_var=yes"
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16111 eval "$as_ac_var=no"
16113 rm -f conftest.err conftest.$ac_objext \
16114 conftest$ac_exeext conftest.$ac_ext
16116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16118 if test `eval echo '${'$as_ac_var'}'` = yes; then
16119 cat >>confdefs.h <<_ACEOF
16120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16127 for ac_func in replace_history_entry
16129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 echo "$as_me:$LINENO: checking for $ac_func" >&5
16131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16132 if eval "test \"\${$as_ac_var+set}\" = set"; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 cat >conftest.$ac_ext <<_ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16143 #define $ac_func innocuous_$ac_func
16145 /* System header to define __stub macros and hopefully few prototypes,
16146 which can conflict with char $ac_func (); below.
16147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16148 <limits.h> exists even on freestanding compilers. */
16151 # include <limits.h>
16153 # include <assert.h>
16158 /* Override any gcc2 internal prototype to avoid an error. */
16163 /* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16166 /* The GNU C library defines this for functions which it implements
16167 to always fail with ENOSYS. Some functions are actually named
16168 something starting with __ and the normal name is an alias. */
16169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16172 char (*f) () = $ac_func;
16181 return f != $ac_func;
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16188 (eval $ac_link) 2>conftest.er1
16190 grep -v '^ *+' conftest.er1 >conftest.err
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -z "$ac_c_werror_flag"
16196 || test ! -s conftest.err'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try='test -s conftest$ac_exeext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 eval "$as_ac_var=yes"
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16213 eval "$as_ac_var=no"
16215 rm -f conftest.err conftest.$ac_objext \
16216 conftest$ac_exeext conftest.$ac_ext
16218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221 cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16231 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16232 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 #include <setjmp.h>
16243 sigjmp_buf x; sigsetjmp(x, 1);
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>conftest.er1
16252 grep -v '^ *+' conftest.er1 >conftest.err
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try='test -z "$ac_c_werror_flag"
16258 || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest$ac_exeext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16271 cat >>confdefs.h <<\_ACEOF
16272 #define HAVE_SIGSETJMP 1
16275 echo "$as_me:$LINENO: result: yes" >&5
16276 echo "${ECHO_T}yes" >&6
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 echo "$as_me:$LINENO: result: no" >&5
16282 echo "${ECHO_T}no" >&6
16284 rm -f conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16287 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16288 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16289 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 cat >conftest.$ac_ext <<_ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <signal.h>
16299 /* NetBSD declares sys_siglist in unistd.h. */
16301 # include <unistd.h>
16308 #ifndef sys_siglist
16309 char *p = (char *) sys_siglist;
16316 rm -f conftest.$ac_objext
16317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16318 (eval $ac_compile) 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } &&
16325 { ac_try='test -z "$ac_c_werror_flag"
16326 || test ! -s conftest.err'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 ac_cv_have_decl_sys_siglist=yes
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_cv_have_decl_sys_siglist=no
16345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16347 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16348 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16349 if test $ac_cv_have_decl_sys_siglist = yes; then
16351 cat >>confdefs.h <<_ACEOF
16352 #define HAVE_DECL_SYS_SIGLIST 1
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_DECL_SYS_SIGLIST 0
16367 echo "$as_me:$LINENO: checking for syslog" >&5
16368 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
16369 if test "${ac_cv_func_syslog+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
16379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16380 #define syslog innocuous_syslog
16382 /* System header to define __stub macros and hopefully few prototypes,
16383 which can conflict with char syslog (); below.
16384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16385 <limits.h> exists even on freestanding compilers. */
16388 # include <limits.h>
16390 # include <assert.h>
16395 /* Override any gcc2 internal prototype to avoid an error. */
16400 /* We use char because int might match the return type of a gcc2
16401 builtin and then its argument prototype would still apply. */
16403 /* The GNU C library defines this for functions which it implements
16404 to always fail with ENOSYS. Some functions are actually named
16405 something starting with __ and the normal name is an alias. */
16406 #if defined (__stub_syslog) || defined (__stub___syslog)
16409 char (*f) () = syslog;
16418 return f != syslog;
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16425 (eval $ac_link) 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -z "$ac_c_werror_flag"
16433 || test ! -s conftest.err'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; } &&
16439 { ac_try='test -s conftest$ac_exeext'
16440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441 (eval $ac_try) 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; }; then
16445 ac_cv_func_syslog=yes
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16450 ac_cv_func_syslog=no
16452 rm -f conftest.err conftest.$ac_objext \
16453 conftest$ac_exeext conftest.$ac_ext
16455 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
16456 echo "${ECHO_T}$ac_cv_func_syslog" >&6
16457 if test $ac_cv_func_syslog = yes; then
16458 if test "${ac_cv_header_syslog_h+set}" = set; then
16459 echo "$as_me:$LINENO: checking for syslog.h" >&5
16460 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
16461 if test "${ac_cv_header_syslog_h+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
16465 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
16467 # Is the header compilable?
16468 echo "$as_me:$LINENO: checking syslog.h usability" >&5
16469 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16473 cat confdefs.h >>conftest.$ac_ext
16474 cat >>conftest.$ac_ext <<_ACEOF
16475 /* end confdefs.h. */
16476 $ac_includes_default
16477 #include <syslog.h>
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_header_compiler=yes
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_header_compiler=no
16508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16510 echo "${ECHO_T}$ac_header_compiler" >&6
16512 # Is the header present?
16513 echo "$as_me:$LINENO: checking syslog.h presence" >&5
16514 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 #include <syslog.h>
16523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16526 grep -v '^ *+' conftest.er1 >conftest.err
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } >/dev/null; then
16531 if test -s conftest.err; then
16532 ac_cpp_err=$ac_c_preproc_warn_flag
16533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16540 if test -z "$ac_cpp_err"; then
16541 ac_header_preproc=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_header_preproc=no
16548 rm -f conftest.err conftest.$ac_ext
16549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16550 echo "${ECHO_T}$ac_header_preproc" >&6
16552 # So? What about this header?
16553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16555 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
16556 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16557 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
16558 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
16559 ac_header_preproc=yes
16562 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
16563 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
16565 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
16567 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
16569 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
16571 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
16573 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
16576 ## ---------------------------------------- ##
16577 ## Report this to pgsql-bugs@postgresql.org ##
16578 ## ---------------------------------------- ##
16581 sed "s/^/$as_me: WARNING: /" >&2
16584 echo "$as_me:$LINENO: checking for syslog.h" >&5
16585 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
16586 if test "${ac_cv_header_syslog_h+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 ac_cv_header_syslog_h=$ac_header_preproc
16591 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
16592 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
16595 if test $ac_cv_header_syslog_h = yes; then
16597 cat >>confdefs.h <<\_ACEOF
16598 #define HAVE_SYSLOG 1
16607 echo "$as_me:$LINENO: checking for optreset" >&5
16608 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
16609 if test "${pgac_cv_var_int_optreset+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 cat >conftest.$ac_ext <<_ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 #include <unistd.h>
16622 extern int optreset; optreset = 1;
16627 rm -f conftest.$ac_objext conftest$ac_exeext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16629 (eval $ac_link) 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest$ac_exeext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 pgac_cv_var_int_optreset=yes
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 pgac_cv_var_int_optreset=no
16656 rm -f conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16659 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
16660 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
16661 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
16663 cat >>confdefs.h <<\_ACEOF
16664 #define HAVE_INT_OPTRESET 1
16671 for ac_func in strtoll strtoq
16673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16674 echo "$as_me:$LINENO: checking for $ac_func" >&5
16675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16676 if eval "test \"\${$as_ac_var+set}\" = set"; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 cat >conftest.$ac_ext <<_ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16687 #define $ac_func innocuous_$ac_func
16689 /* System header to define __stub macros and hopefully few prototypes,
16690 which can conflict with char $ac_func (); below.
16691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16692 <limits.h> exists even on freestanding compilers. */
16695 # include <limits.h>
16697 # include <assert.h>
16702 /* Override any gcc2 internal prototype to avoid an error. */
16707 /* We use char because int might match the return type of a gcc2
16708 builtin and then its argument prototype would still apply. */
16710 /* The GNU C library defines this for functions which it implements
16711 to always fail with ENOSYS. Some functions are actually named
16712 something starting with __ and the normal name is an alias. */
16713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16716 char (*f) () = $ac_func;
16725 return f != $ac_func;
16730 rm -f conftest.$ac_objext conftest$ac_exeext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16732 (eval $ac_link) 2>conftest.er1
16734 grep -v '^ *+' conftest.er1 >conftest.err
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
16739 { ac_try='test -z "$ac_c_werror_flag"
16740 || test ! -s conftest.err'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try='test -s conftest$ac_exeext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 eval "$as_ac_var=yes"
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757 eval "$as_ac_var=no"
16759 rm -f conftest.err conftest.$ac_objext \
16760 conftest$ac_exeext conftest.$ac_ext
16762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16764 if test `eval echo '${'$as_ac_var'}'` = yes; then
16765 cat >>confdefs.h <<_ACEOF
16766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16774 for ac_func in strtoull strtouq
16776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16777 echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16779 if eval "test \"\${$as_ac_var+set}\" = set"; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 cat >conftest.$ac_ext <<_ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16790 #define $ac_func innocuous_$ac_func
16792 /* System header to define __stub macros and hopefully few prototypes,
16793 which can conflict with char $ac_func (); below.
16794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795 <limits.h> exists even on freestanding compilers. */
16798 # include <limits.h>
16800 # include <assert.h>
16805 /* Override any gcc2 internal prototype to avoid an error. */
16810 /* We use char because int might match the return type of a gcc2
16811 builtin and then its argument prototype would still apply. */
16813 /* The GNU C library defines this for functions which it implements
16814 to always fail with ENOSYS. Some functions are actually named
16815 something starting with __ and the normal name is an alias. */
16816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16819 char (*f) () = $ac_func;
16828 return f != $ac_func;
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16835 (eval $ac_link) 2>conftest.er1
16837 grep -v '^ *+' conftest.er1 >conftest.err
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest$ac_exeext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 eval "$as_ac_var=yes"
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 eval "$as_ac_var=no"
16862 rm -f conftest.err conftest.$ac_objext \
16863 conftest$ac_exeext conftest.$ac_ext
16865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16876 # Check for one of atexit() or on_exit()
16878 for ac_func in atexit
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_var+set}\" = set"; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 cat >conftest.$ac_ext <<_ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894 #define $ac_func innocuous_$ac_func
16896 /* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16902 # include <limits.h>
16904 # include <assert.h>
16909 /* Override any gcc2 internal prototype to avoid an error. */
16914 /* We use char because int might match the return type of a gcc2
16915 builtin and then its argument prototype would still apply. */
16917 /* The GNU C library defines this for functions which it implements
16918 to always fail with ENOSYS. Some functions are actually named
16919 something starting with __ and the normal name is an alias. */
16920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16923 char (*f) () = $ac_func;
16932 return f != $ac_func;
16937 rm -f conftest.$ac_objext conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939 (eval $ac_link) 2>conftest.er1
16941 grep -v '^ *+' conftest.er1 >conftest.err
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 eval "$as_ac_var=yes"
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16964 eval "$as_ac_var=no"
16966 rm -f conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16971 if test `eval echo '${'$as_ac_var'}'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16978 for ac_func in on_exit
16980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16981 echo "$as_me:$LINENO: checking for $ac_func" >&5
16982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16983 if eval "test \"\${$as_ac_var+set}\" = set"; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16994 #define $ac_func innocuous_$ac_func
16996 /* System header to define __stub macros and hopefully few prototypes,
16997 which can conflict with char $ac_func (); below.
16998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999 <limits.h> exists even on freestanding compilers. */
17002 # include <limits.h>
17004 # include <assert.h>
17009 /* Override any gcc2 internal prototype to avoid an error. */
17014 /* We use char because int might match the return type of a gcc2
17015 builtin and then its argument prototype would still apply. */
17017 /* The GNU C library defines this for functions which it implements
17018 to always fail with ENOSYS. Some functions are actually named
17019 something starting with __ and the normal name is an alias. */
17020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17023 char (*f) () = $ac_func;
17032 return f != $ac_func;
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039 (eval $ac_link) 2>conftest.er1
17041 grep -v '^ *+' conftest.er1 >conftest.err
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -z "$ac_c_werror_flag"
17047 || test ! -s conftest.err'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest$ac_exeext'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 eval "$as_ac_var=yes"
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 eval "$as_ac_var=no"
17066 rm -f conftest.err conftest.$ac_objext \
17067 conftest$ac_exeext conftest.$ac_ext
17069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17071 if test `eval echo '${'$as_ac_var'}'` = yes; then
17072 cat >>confdefs.h <<_ACEOF
17073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17077 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
17078 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
17079 { (exit 1); exit 1; }; }
17087 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17088 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17089 if test "${ac_cv_sys_largefile_source+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17093 ac_cv_sys_largefile_source=no
17094 cat >conftest.$ac_ext <<_ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17109 rm -f conftest.$ac_objext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17111 (eval $ac_compile) 2>conftest.er1
17113 grep -v '^ *+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } &&
17118 { ac_try='test -z "$ac_c_werror_flag"
17119 || test ! -s conftest.err'
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; } &&
17125 { ac_try='test -s conftest.$ac_objext'
17126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127 (eval $ac_try) 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17138 cat >conftest.$ac_ext <<_ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 #define _LARGEFILE_SOURCE 1
17154 rm -f conftest.$ac_objext
17155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17156 (eval $ac_compile) 2>conftest.er1
17158 grep -v '^ *+' conftest.er1 >conftest.err
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
17163 { ac_try='test -z "$ac_c_werror_flag"
17164 || test ! -s conftest.err'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest.$ac_objext'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176 ac_cv_sys_largefile_source=1; break
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17186 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17187 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17188 if test "$ac_cv_sys_largefile_source" != no; then
17190 cat >>confdefs.h <<_ACEOF
17191 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17197 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17198 # in glibc 2.1.3, but that breaks too many other things.
17199 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17200 echo "$as_me:$LINENO: checking for fseeko" >&5
17201 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17202 if test "${ac_cv_func_fseeko+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 cat >conftest.$ac_ext <<_ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17215 return fseeko && fseeko (stdin, 0, 0);
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -z "$ac_c_werror_flag"
17230 || test ! -s conftest.err'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_func_fseeko=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_cv_func_fseeko=no
17249 rm -f conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
17252 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17253 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17254 if test $ac_cv_func_fseeko = yes; then
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_FSEEKO 1
17266 # For each platform, we need to know about any special compile and link
17267 # libraries, and whether the normal C function names are thread-safe.
17268 # See the comment at the top of src/port/thread.c for more information.
17269 # WIN32 doesn't need the pthread tests; it always uses threads
17270 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
17276 ac_cpp='$CPP $CPPFLAGS'
17277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17283 # We used to check for pthread.h first, but this fails if pthread.h
17284 # requires special compiler flags (e.g. on True64 or Sequent).
17285 # It gets checked for in the link test anyway.
17287 # First of all, check if the user has set any of the PTHREAD_LIBS,
17288 # etcetera environment variables, and if threads linking works using
17290 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17291 save_CFLAGS="$CFLAGS"
17292 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17294 LIBS="$PTHREAD_LIBS $LIBS"
17295 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17296 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17304 /* Override any gcc2 internal prototype to avoid an error. */
17308 /* We use char because int might match the return type of a gcc2
17309 builtin and then its argument prototype would still apply. */
17310 char pthread_join ();
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>conftest.er1
17323 grep -v '^ *+' conftest.er1 >conftest.err
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -z "$ac_c_werror_flag"
17329 || test ! -s conftest.err'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try='test -s conftest$ac_exeext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17347 rm -f conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17349 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
17350 echo "${ECHO_T}$acx_pthread_ok" >&6
17351 if test x"$acx_pthread_ok" = xno; then
17356 CFLAGS="$save_CFLAGS"
17359 # We must check for the threads library under a number of different
17360 # names; the ordering is very important because some systems
17361 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17362 # libraries is broken (non-POSIX).
17364 # Create a list of thread flags to try. Items starting with a "-" are
17365 # C compiler flags, and other items are library names, except for "none"
17366 # which indicates that we try without any flags at all, and "pthread-config"
17367 # which is a program returning the flags for the Pth emulation library.
17369 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
17371 # The ordering *is* (sometimes) important. Some notes on the
17372 # individual items follow:
17374 # pthreads: AIX (must check this before -lpthread)
17375 # none: in case threads are in libc; should be tried before -Kthread and
17376 # other compiler flags to prevent continual compiler warnings
17377 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17378 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17379 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17380 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17381 # -pthreads: Solaris/gcc
17382 # -mthreads: Mingw32/gcc, Lynx/gcc
17383 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17384 # doesn't hurt to check since this sometimes defines pthreads too;
17385 # also defines -D_REENTRANT)
17386 # pthread: Linux, etcetera
17387 # --thread-safe: KAI C++
17388 # pthread-config: use pthread-config program (for GNU Pth library)
17390 case "${host_cpu}-${host_os}" in
17393 # On Solaris (at least, for some versions), libc contains stubbed
17394 # (non-functional) versions of the pthreads routines, so link-based
17395 # tests will erroneously succeed. (We need to link with -pthread or
17396 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17397 # a function called by this macro, so we could check for that, but
17398 # who knows whether they'll stub that too in a future libc.) So,
17399 # we'll just look for -pthreads and -lpthread first:
17401 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
17405 if test x"$acx_pthread_ok" = xno; then
17406 for flag in $acx_pthread_flags; do
17408 tryPTHREAD_CFLAGS=""
17412 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
17413 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
17417 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
17418 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
17419 tryPTHREAD_CFLAGS="$flag"
17423 # skip this if we already have flags defined, for PostgreSQL
17424 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
17425 # Extract the first word of "pthread-config", so it can be a program name with args.
17426 set dummy pthread-config; ac_word=$2
17427 echo "$as_me:$LINENO: checking for $ac_word" >&5
17428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17429 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 if test -n "$acx_pthread_config"; then
17433 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17436 for as_dir in $PATH
17439 test -z "$as_dir" && as_dir=.
17440 for ac_exec_ext in '' $ac_executable_extensions; do
17441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17442 ac_cv_prog_acx_pthread_config="yes"
17443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17449 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17452 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17453 if test -n "$acx_pthread_config"; then
17454 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
17455 echo "${ECHO_T}$acx_pthread_config" >&6
17457 echo "$as_me:$LINENO: result: no" >&5
17458 echo "${ECHO_T}no" >&6
17461 if test x"$acx_pthread_config" = xno; then continue; fi
17462 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
17463 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17467 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
17468 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
17469 tryPTHREAD_LIBS="-l$flag"
17474 save_CFLAGS="$CFLAGS"
17475 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
17476 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
17478 # Check for various functions. We must include pthread.h,
17479 # since some functions may be macros. (On the Sequent, we
17480 # need a special flag -Kthread to make this header compile.)
17481 # We check for pthread_join because it is in -lpthread on IRIX
17482 # while pthread_create is in libc. We check for pthread_attr_init
17483 # due to DEC craziness with -lpthreads. We check for
17484 # pthread_cleanup_push because it is one of the few pthread
17485 # functions on Solaris that doesn't have a non-functional libc stub.
17486 # We try pthread_create on general principles.
17487 cat >conftest.$ac_ext <<_ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 #include <pthread.h>
17497 pthread_t th; pthread_join(th, 0);
17498 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17499 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17506 (eval $ac_link) 2>conftest.er1
17508 grep -v '^ *+' conftest.er1 >conftest.err
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag"
17514 || test ! -s conftest.err'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17533 rm -f conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17536 if test "x$acx_pthread_ok" = xyes; then
17537 # Don't use options that are ignored by the compiler.
17538 # We find them by checking stderror.
17539 cat >conftest.$ac_ext <<_ACEOF
17541 main (int argc, char **argv)
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
17550 # we continue with more flags because Linux needs -lpthread
17551 # for libpq builds on PostgreSQL. The test above only
17552 # tests for building binaries, not shared libraries.
17553 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
17554 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
17555 else acx_pthread_ok=no
17560 CFLAGS="$save_CFLAGS"
17562 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
17563 echo "${ECHO_T}$acx_pthread_ok" >&6
17567 # Various other checks:
17568 if test "x$acx_pthread_ok" = xyes; then
17570 LIBS="$PTHREAD_LIBS $LIBS"
17571 save_CFLAGS="$CFLAGS"
17572 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17574 # Detect AIX lossage: threads are created detached by default
17575 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
17576 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
17577 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
17578 cat >conftest.$ac_ext <<_ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 #include <pthread.h>
17588 int attr=PTHREAD_CREATE_JOINABLE;
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595 (eval $ac_link) 2>conftest.er1
17597 grep -v '^ *+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ok=PTHREAD_CREATE_JOINABLE
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17622 rm -f conftest.err conftest.$ac_objext \
17623 conftest$ac_exeext conftest.$ac_ext
17624 if test x"$ok" = xunknown; then
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 #include <pthread.h>
17635 int attr=PTHREAD_CREATE_UNDETACHED;
17640 rm -f conftest.$ac_objext conftest$ac_exeext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642 (eval $ac_link) 2>conftest.er1
17644 grep -v '^ *+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -z "$ac_c_werror_flag"
17650 || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest$ac_exeext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ok=PTHREAD_CREATE_UNDETACHED
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17669 rm -f conftest.err conftest.$ac_objext \
17670 conftest$ac_exeext conftest.$ac_ext
17672 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
17674 cat >>confdefs.h <<\_ACEOF
17675 #define PTHREAD_CREATE_JOINABLE $ok
17679 echo "$as_me:$LINENO: result: ${ok}" >&5
17680 echo "${ECHO_T}${ok}" >&6
17681 if test x"$ok" = xunknown; then
17682 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
17683 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
17686 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
17687 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
17689 # We always add these in PostgreSQL
17690 # case "${host_cpu}-${host_os}" in
17691 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17692 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17694 echo "$as_me:$LINENO: result: ${flag}" >&5
17695 echo "${ECHO_T}${flag}" >&6
17696 if test "x$flag" != xno; then
17697 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17701 CFLAGS="$save_CFLAGS"
17703 # Supporting cc_r would require a special CC in all places that
17704 # use libpq, and that is ugly, so we don't do it. Users can still
17705 # define their compiler as cc_r to do thread builds of everything.
17706 # More AIX lossage: must compile with cc_r
17707 # Extract the first word of "cc_r", so it can be a program name with args.
17708 set dummy cc_r; ac_word=$2
17709 echo "$as_me:$LINENO: checking for $ac_word" >&5
17710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17711 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 if test -n "$PTHREAD_CC"; then
17715 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17718 for as_dir in $PATH
17721 test -z "$as_dir" && as_dir=.
17722 for ac_exec_ext in '' $ac_executable_extensions; do
17723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17724 ac_cv_prog_PTHREAD_CC="cc_r"
17725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17731 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
17734 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17735 if test -n "$PTHREAD_CC"; then
17736 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
17737 echo "${ECHO_T}$PTHREAD_CC" >&6
17739 echo "$as_me:$LINENO: result: no" >&5
17740 echo "${ECHO_T}no" >&6
17751 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17752 if test x"$acx_pthread_ok" = xyes; then
17754 cat >>confdefs.h <<\_ACEOF
17755 #define HAVE_PTHREAD 1
17764 ac_cpp='$CPP $CPPFLAGS'
17765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17771 # Some platforms use these, so just defineed them. They can't hurt if they
17772 # are not supported.
17773 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
17776 # At this point, we don't want to muck with the compiler name for threading.
17777 # Let's see who fails, perhaps AIX. 2004-04-23
17778 if test "$PTHREAD_CC" != "$CC"; then
17779 { { echo "$as_me:$LINENO: error:
17780 PostgreSQL does not support platforms that require a special compiler
17781 for thread safety." >&5
17782 echo "$as_me: error:
17783 PostgreSQL does not support platforms that require a special compiler
17784 for thread safety." >&2;}
17785 { (exit 1); exit 1; }; }
17788 if test "$THREAD_SUPPORT" = no; then
17789 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
17790 This platform is known to not support thread-safe programs. For details,
17791 compile and run src/bin/pg_thread_test." >&5
17792 echo "$as_me: error: cannot enable threads on this platform
17793 This platform is known to not support thread-safe programs. For details,
17794 compile and run src/bin/pg_thread_test." >&2;}
17795 { (exit 1); exit 1; }; }
17798 # Check for *_r functions
17801 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17802 LIBS="$LIBS $PTHREAD_LIBS"
17804 if test "$PORTNAME" != "win32"; then
17805 if test "${ac_cv_header_pthread_h+set}" = set; then
17806 echo "$as_me:$LINENO: checking for pthread.h" >&5
17807 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17808 if test "${ac_cv_header_pthread_h+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17812 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17814 # Is the header compilable?
17815 echo "$as_me:$LINENO: checking pthread.h usability" >&5
17816 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 $ac_includes_default
17824 #include <pthread.h>
17826 rm -f conftest.$ac_objext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17828 (eval $ac_compile) 2>conftest.er1
17830 grep -v '^ *+' conftest.er1 >conftest.err
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -z "$ac_c_werror_flag"
17836 || test ! -s conftest.err'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; } &&
17842 { ac_try='test -s conftest.$ac_objext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_header_compiler=yes
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 ac_header_compiler=no
17855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17857 echo "${ECHO_T}$ac_header_compiler" >&6
17859 # Is the header present?
17860 echo "$as_me:$LINENO: checking pthread.h presence" >&5
17861 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
17862 cat >conftest.$ac_ext <<_ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17868 #include <pthread.h>
17870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17873 grep -v '^ *+' conftest.er1 >conftest.err
17875 cat conftest.err >&5
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } >/dev/null; then
17878 if test -s conftest.err; then
17879 ac_cpp_err=$ac_c_preproc_warn_flag
17880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17887 if test -z "$ac_cpp_err"; then
17888 ac_header_preproc=yes
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 ac_header_preproc=no
17895 rm -f conftest.err conftest.$ac_ext
17896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17897 echo "${ECHO_T}$ac_header_preproc" >&6
17899 # So? What about this header?
17900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17902 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
17903 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
17905 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
17906 ac_header_preproc=yes
17909 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
17910 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
17911 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
17912 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
17913 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
17914 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
17915 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
17916 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
17917 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
17918 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
17919 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
17920 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
17923 ## ---------------------------------------- ##
17924 ## Report this to pgsql-bugs@postgresql.org ##
17925 ## ---------------------------------------- ##
17928 sed "s/^/$as_me: WARNING: /" >&2
17931 echo "$as_me:$LINENO: checking for pthread.h" >&5
17932 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17933 if test "${ac_cv_header_pthread_h+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 ac_cv_header_pthread_h=$ac_header_preproc
17938 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17939 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17942 if test $ac_cv_header_pthread_h = yes; then
17945 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
17946 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
17947 { (exit 1); exit 1; }; }
17956 for ac_func in strerror_r getpwuid_r gethostbyname_r
17958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17959 echo "$as_me:$LINENO: checking for $ac_func" >&5
17960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17961 if eval "test \"\${$as_ac_var+set}\" = set"; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 cat >conftest.$ac_ext <<_ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17972 #define $ac_func innocuous_$ac_func
17974 /* System header to define __stub macros and hopefully few prototypes,
17975 which can conflict with char $ac_func (); below.
17976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977 <limits.h> exists even on freestanding compilers. */
17980 # include <limits.h>
17982 # include <assert.h>
17987 /* Override any gcc2 internal prototype to avoid an error. */
17992 /* We use char because int might match the return type of a gcc2
17993 builtin and then its argument prototype would still apply. */
17995 /* The GNU C library defines this for functions which it implements
17996 to always fail with ENOSYS. Some functions are actually named
17997 something starting with __ and the normal name is an alias. */
17998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18001 char (*f) () = $ac_func;
18010 return f != $ac_func;
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18017 (eval $ac_link) 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag"
18025 || test ! -s conftest.err'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest$ac_exeext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 eval "$as_ac_var=yes"
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18042 eval "$as_ac_var=no"
18044 rm -f conftest.err conftest.$ac_objext \
18045 conftest$ac_exeext conftest.$ac_ext
18047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18049 if test `eval echo '${'$as_ac_var'}'` = yes; then
18050 cat >>confdefs.h <<_ACEOF
18051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18058 # Do test here with the proper thread flags
18059 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
18060 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
18061 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 cat >conftest.$ac_ext <<_ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18070 #include <sys/types.h>
18076 struct passwd *space;
18079 struct passwd **result;
18080 getpwuid_r(uid, space, buf, bufsize, result);
18085 rm -f conftest.$ac_objext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18087 (eval $ac_compile) 2>conftest.er1
18089 grep -v '^ *+' conftest.er1 >conftest.err
18091 cat conftest.err >&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } &&
18094 { ac_try='test -z "$ac_c_werror_flag"
18095 || test ! -s conftest.err'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; } &&
18101 { ac_try='test -s conftest.$ac_objext'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107 pgac_func_getpwuid_r_5arg=yes
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 pgac_func_getpwuid_r_5arg=no
18114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18116 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
18117 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
18118 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
18120 cat >>confdefs.h <<\_ACEOF
18121 #define GETPWUID_R_5ARG
18126 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
18127 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
18128 if test "${pgac_func_strerror_r_int+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 cat >conftest.$ac_ext <<_ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137 #include <string.h>
18142 int strerror_r(int, char *, size_t);
18144 /* Older AIX has 'int' for the third argument so we don't test the args. */
18151 rm -f conftest.$ac_objext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18153 (eval $ac_compile) 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
18160 { ac_try='test -z "$ac_c_werror_flag"
18161 || test ! -s conftest.err'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; } &&
18167 { ac_try='test -s conftest.$ac_objext'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 pgac_func_strerror_r_int=yes
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 pgac_func_strerror_r_int=no
18180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18182 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
18183 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
18184 if test x"$pgac_func_strerror_r_int" = xyes ; then
18186 cat >>confdefs.h <<\_ACEOF
18187 #define STRERROR_R_INT
18197 # do not use values from template file
18206 # We can test for libldap_r only after we know PTHREAD_LIBS
18207 if test "$with_ldap" = yes ; then
18209 if test "$PORTNAME" != "win32"; then
18211 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
18212 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
18213 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_check_lib_save_LIBS=$LIBS
18217 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18225 /* Override any gcc2 internal prototype to avoid an error. */
18229 /* We use char because int might match the return type of a gcc2
18230 builtin and then its argument prototype would still apply. */
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242 (eval $ac_link) 2>conftest.er1
18244 grep -v '^ *+' conftest.er1 >conftest.err
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
18249 { ac_try='test -z "$ac_c_werror_flag"
18250 || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest$ac_exeext'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262 ac_cv_lib_ldap_ldap_bind=yes
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_cv_lib_ldap_ldap_bind=no
18269 rm -f conftest.err conftest.$ac_objext \
18270 conftest$ac_exeext conftest.$ac_ext
18271 LIBS=$ac_check_lib_save_LIBS
18273 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
18274 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
18275 if test $ac_cv_lib_ldap_ldap_bind = yes; then
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE_LIBLDAP 1
18280 LIBS="-lldap $LIBS"
18283 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
18284 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
18285 { (exit 1); exit 1; }; }
18288 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
18289 if test "$enable_thread_safety" = yes; then
18290 # on some platforms ldap_r fails to link without PTHREAD_LIBS
18292 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
18293 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
18294 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 ac_check_lib_save_LIBS=$LIBS
18298 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
18299 cat >conftest.$ac_ext <<_ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18306 /* Override any gcc2 internal prototype to avoid an error. */
18310 /* We use char because int might match the return type of a gcc2
18311 builtin and then its argument prototype would still apply. */
18312 char ldap_simple_bind ();
18316 ldap_simple_bind ();
18321 rm -f conftest.$ac_objext conftest$ac_exeext
18322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323 (eval $ac_link) 2>conftest.er1
18325 grep -v '^ *+' conftest.er1 >conftest.err
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag"
18331 || test ! -s conftest.err'
18332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333 (eval $ac_try) 2>&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_cv_lib_ldap_r_ldap_simple_bind=yes
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 ac_cv_lib_ldap_r_ldap_simple_bind=no
18350 rm -f conftest.err conftest.$ac_objext \
18351 conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18354 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
18355 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
18356 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
18357 cat >>confdefs.h <<_ACEOF
18358 #define HAVE_LIBLDAP_R 1
18361 LIBS="-lldap_r $LIBS"
18364 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
18365 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
18366 { (exit 1); exit 1; }; }
18369 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
18371 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
18375 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
18376 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
18377 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 ac_check_lib_save_LIBS=$LIBS
18381 LIBS="-lwldap32 $LIBS"
18382 cat >conftest.$ac_ext <<_ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18389 /* Override any gcc2 internal prototype to avoid an error. */
18393 /* We use char because int might match the return type of a gcc2
18394 builtin and then its argument prototype would still apply. */
18404 rm -f conftest.$ac_objext conftest$ac_exeext
18405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18406 (eval $ac_link) 2>conftest.er1
18408 grep -v '^ *+' conftest.er1 >conftest.err
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } &&
18413 { ac_try='test -z "$ac_c_werror_flag"
18414 || test ! -s conftest.err'
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18422 (eval $ac_try) 2>&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425 (exit $ac_status); }; }; then
18426 ac_cv_lib_wldap32_ldap_bind=yes
18428 echo "$as_me: failed program was:" >&5
18429 sed 's/^/| /' conftest.$ac_ext >&5
18431 ac_cv_lib_wldap32_ldap_bind=no
18433 rm -f conftest.err conftest.$ac_objext \
18434 conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18437 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
18438 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
18439 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
18440 cat >>confdefs.h <<_ACEOF
18441 #define HAVE_LIBWLDAP32 1
18444 LIBS="-lwldap32 $LIBS"
18447 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
18448 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
18449 { (exit 1); exit 1; }; }
18452 LDAP_LIBS_FE="-lwldap32"
18453 LDAP_LIBS_BE="-lwldap32"
18461 # This test makes sure that run tests work at all. Sometimes a shared
18462 # library is found by the linker, but the runtime linker can't find it.
18463 # This check should come after all modifications of compiler or linker
18464 # variables, and before any other run tests.
18465 echo "$as_me:$LINENO: checking test program" >&5
18466 echo $ECHO_N "checking test program... $ECHO_C" >&6
18467 if test "$cross_compiling" = yes; then
18468 echo "$as_me:$LINENO: result: cross-compiling" >&5
18469 echo "${ECHO_T}cross-compiling" >&6
18471 cat >conftest.$ac_ext <<_ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18477 int main() { return 0; }
18479 rm -f conftest$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481 (eval $ac_link) 2>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 echo "$as_me:$LINENO: result: ok" >&5
18491 echo "${ECHO_T}ok" >&6
18493 echo "$as_me: program exited with status $ac_status" >&5
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 ( exit $ac_status )
18498 echo "$as_me:$LINENO: result: failed" >&5
18499 echo "${ECHO_T}failed" >&6
18500 { { echo "$as_me:$LINENO: error:
18501 Could not execute a simple test program. This may be a problem
18502 related to locating shared libraries. Check the file 'config.log'
18503 for the exact reason." >&5
18504 echo "$as_me: error:
18505 Could not execute a simple test program. This may be a problem
18506 related to locating shared libraries. Check the file 'config.log'
18507 for the exact reason." >&2;}
18508 { (exit 1); exit 1; }; }
18510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18513 # --------------------
18514 # Run tests below here
18515 # --------------------
18517 # Force use of our snprintf if system's doesn't do arg control
18518 # See comment above at snprintf test for details.
18519 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
18520 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
18521 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
18522 if test "${pgac_cv_printf_arg_control+set}" = set; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18525 if test "$cross_compiling" = yes; then
18526 pgac_cv_printf_arg_control=cross
18528 cat >conftest.$ac_ext <<_ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18535 #include <string.h>
18541 /* can it swap arguments? */
18542 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
18543 if (strcmp(buf, "4 3") != 0)
18548 rm -f conftest$ac_exeext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18550 (eval $ac_link) 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 pgac_cv_printf_arg_control=yes
18561 echo "$as_me: program exited with status $ac_status" >&5
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18565 ( exit $ac_status )
18566 pgac_cv_printf_arg_control=no
18568 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18572 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
18573 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
18575 if test $pgac_cv_printf_arg_control != yes ; then
18576 pgac_need_repl_snprintf=yes
18582 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
18583 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
18584 if test "${pgac_cv_type_long_int_64+set}" = set; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 if test "$cross_compiling" = yes; then
18588 # If cross-compiling, check the size reported by the compiler and
18589 # trust that the arithmetic works.
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18600 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
18607 rm -f conftest.$ac_objext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18609 (eval $ac_compile) 2>conftest.er1
18611 grep -v '^ *+' conftest.er1 >conftest.err
18613 cat conftest.err >&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
18616 { ac_try='test -z "$ac_c_werror_flag"
18617 || test ! -s conftest.err'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } &&
18623 { ac_try='test -s conftest.$ac_objext'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; }; then
18629 pgac_cv_type_long_int_64=yes
18631 echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 pgac_cv_type_long_int_64=no
18636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18638 cat >conftest.$ac_ext <<_ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18644 typedef long int ac_int64;
18647 * These are globals to discourage the compiler from folding all the
18648 * arithmetic tests down to compile-time constants.
18650 ac_int64 a = 20000001;
18651 ac_int64 b = 40000005;
18653 int does_int64_work()
18657 if (sizeof(ac_int64) != 8)
18658 return 0; /* definitely not the right size */
18660 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
18668 exit(! does_int64_work());
18671 rm -f conftest$ac_exeext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18673 (eval $ac_link) 2>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 pgac_cv_type_long_int_64=yes
18684 echo "$as_me: program exited with status $ac_status" >&5
18685 echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18688 ( exit $ac_status )
18689 pgac_cv_type_long_int_64=no
18691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18694 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
18695 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
18697 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
18698 if test x"$pgac_cv_type_long_int_64" = xyes ; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE_LONG_INT_64
18707 if test x"$HAVE_LONG_INT_64" = x"no" ; then
18708 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
18709 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
18710 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 if test "$cross_compiling" = yes; then
18714 # If cross-compiling, check the size reported by the compiler and
18715 # trust that the arithmetic works.
18716 cat >conftest.$ac_ext <<_ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18726 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
18733 rm -f conftest.$ac_objext
18734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18735 (eval $ac_compile) 2>conftest.er1
18737 grep -v '^ *+' conftest.er1 >conftest.err
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } &&
18742 { ac_try='test -z "$ac_c_werror_flag"
18743 || test ! -s conftest.err'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest.$ac_objext'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
18755 pgac_cv_type_long_long_int_64=yes
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 pgac_cv_type_long_long_int_64=no
18762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 typedef long long int ac_int64;
18773 * These are globals to discourage the compiler from folding all the
18774 * arithmetic tests down to compile-time constants.
18776 ac_int64 a = 20000001;
18777 ac_int64 b = 40000005;
18779 int does_int64_work()
18783 if (sizeof(ac_int64) != 8)
18784 return 0; /* definitely not the right size */
18786 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
18794 exit(! does_int64_work());
18797 rm -f conftest$ac_exeext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18799 (eval $ac_link) 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18808 pgac_cv_type_long_long_int_64=yes
18810 echo "$as_me: program exited with status $ac_status" >&5
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18814 ( exit $ac_status )
18815 pgac_cv_type_long_long_int_64=no
18817 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18820 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
18821 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
18823 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
18824 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
18826 cat >>confdefs.h <<\_ACEOF
18827 #define HAVE_LONG_LONG_INT_64
18836 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
18837 cat >conftest.$ac_ext <<_ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18844 #define INT64CONST(x) x##LL
18845 long long int foo = INT64CONST(0x1234567890123456);
18855 rm -f conftest.$ac_objext
18856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18857 (eval $ac_compile) 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag"
18865 || test ! -s conftest.err'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; } &&
18871 { ac_try='test -s conftest.$ac_objext'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; }; then
18878 cat >>confdefs.h <<\_ACEOF
18879 #define HAVE_LL_CONSTANTS 1
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18891 # If we found "long int" is 64 bits, assume snprintf handles it. If
18892 # we found we need to use "long long int", better check. We cope with
18893 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
18894 # work, fall back to our own snprintf emulation (which we know uses %lld).
18896 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
18897 if test $pgac_need_repl_snprintf = no; then
18898 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
18899 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
18900 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 for pgac_format in '%lld' '%qd' '%I64d'; do
18904 if test "$cross_compiling" = yes; then
18905 pgac_cv_snprintf_long_long_int_format=cross; break
18907 cat >conftest.$ac_ext <<_ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h. */
18914 typedef long long int ac_int64;
18915 #define INT64_FORMAT "$pgac_format"
18917 ac_int64 a = 20000001;
18918 ac_int64 b = 40000005;
18920 int does_int64_snprintf_work()
18925 if (sizeof(ac_int64) != 8)
18926 return 0; /* doesn't look like the right size */
18929 snprintf(buf, 100, INT64_FORMAT, c);
18930 if (strcmp(buf, "800000140000005") != 0)
18931 return 0; /* either multiply or snprintf is busted */
18935 exit(! does_int64_snprintf_work());
18938 rm -f conftest$ac_exeext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18940 (eval $ac_link) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18949 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
18951 echo "$as_me: program exited with status $ac_status" >&5
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18961 LONG_LONG_INT_FORMAT=''
18963 case $pgac_cv_snprintf_long_long_int_format in
18964 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
18965 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
18966 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
18967 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
18968 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
18969 *) echo "$as_me:$LINENO: result: none" >&5
18970 echo "${ECHO_T}none" >&6;;
18972 if test "$LONG_LONG_INT_FORMAT" = ""; then
18973 # Force usage of our own snprintf, since system snprintf is broken
18974 pgac_need_repl_snprintf=yes
18975 LONG_LONG_INT_FORMAT='%lld'
18978 # Here if we previously decided we needed to use our own snprintf
18979 LONG_LONG_INT_FORMAT='%lld'
18981 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
18982 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
18983 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
18985 # Here if we are not using 'long long int' at all
18986 INT64_FORMAT='"%ld"'
18987 UINT64_FORMAT='"%lu"'
18991 cat >>confdefs.h <<_ACEOF
18992 #define INT64_FORMAT $INT64_FORMAT
18997 cat >>confdefs.h <<_ACEOF
18998 #define UINT64_FORMAT $UINT64_FORMAT
19002 # Now we have checked all the reasons to replace snprintf
19003 if test $pgac_need_repl_snprintf = yes; then
19005 cat >>confdefs.h <<\_ACEOF
19006 #define USE_REPL_SNPRINTF 1
19010 "snprintf.$ac_objext" | \
19011 *" snprintf.$ac_objext" | \
19012 "snprintf.$ac_objext "* | \
19013 *" snprintf.$ac_objext "* ) ;;
19014 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
19019 # Need a #define for the size of Datum (unsigned long)
19020 echo "$as_me:$LINENO: checking for unsigned long" >&5
19021 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
19022 if test "${ac_cv_type_unsigned_long+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19025 cat >conftest.$ac_ext <<_ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19031 $ac_includes_default
19035 if ((unsigned long *) 0)
19037 if (sizeof (unsigned long))
19043 rm -f conftest.$ac_objext
19044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19045 (eval $ac_compile) 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest.$ac_objext'
19060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_cv_type_unsigned_long=yes
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 ac_cv_type_unsigned_long=no
19072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19074 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
19075 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
19077 echo "$as_me:$LINENO: checking size of unsigned long" >&5
19078 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
19079 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 if test "$ac_cv_type_unsigned_long" = yes; then
19083 # The cast to unsigned long works around a bug in the HP C Compiler
19084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19086 # This bug is HP SR number 8606223364.
19087 if test "$cross_compiling" = yes; then
19088 # Depending upon the size, compute the lo and hi bounds.
19089 cat >conftest.$ac_ext <<_ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 $ac_includes_default
19099 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
19106 rm -f conftest.$ac_objext
19107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19108 (eval $ac_compile) 2>conftest.er1
19110 grep -v '^ *+' conftest.er1 >conftest.err
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try='test -z "$ac_c_werror_flag"
19116 || test ! -s conftest.err'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; } &&
19122 { ac_try='test -s conftest.$ac_objext'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 $ac_includes_default
19140 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19147 rm -f conftest.$ac_objext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19149 (eval $ac_compile) 2>conftest.er1
19151 grep -v '^ *+' conftest.er1 >conftest.err
19153 cat conftest.err >&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
19156 { ac_try='test -z "$ac_c_werror_flag"
19157 || test ! -s conftest.err'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest.$ac_objext'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19169 ac_hi=$ac_mid; break
19171 echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19174 ac_lo=`expr $ac_mid + 1`
19175 if test $ac_lo -le $ac_mid; then
19179 ac_mid=`expr 2 '*' $ac_mid + 1`
19181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 $ac_includes_default
19197 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
19204 rm -f conftest.$ac_objext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19206 (eval $ac_compile) 2>conftest.er1
19208 grep -v '^ *+' conftest.er1 >conftest.err
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag"
19214 || test ! -s conftest.err'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest.$ac_objext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 $ac_includes_default
19238 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
19245 rm -f conftest.$ac_objext
19246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19247 (eval $ac_compile) 2>conftest.er1
19249 grep -v '^ *+' conftest.er1 >conftest.err
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -z "$ac_c_werror_flag"
19255 || test ! -s conftest.err'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; } &&
19261 { ac_try='test -s conftest.$ac_objext'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; }; then
19267 ac_lo=$ac_mid; break
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_hi=`expr '(' $ac_mid ')' - 1`
19273 if test $ac_mid -le $ac_hi; then
19277 ac_mid=`expr 2 '*' $ac_mid`
19279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19290 # Binary search between lo and hi bounds.
19291 while test "x$ac_lo" != "x$ac_hi"; do
19292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 $ac_includes_default
19303 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312 (eval $ac_compile) 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest.$ac_objext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_lo=`expr '(' $ac_mid ')' + 1`
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19342 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
19343 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19344 See \`config.log' for more details." >&5
19345 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19346 See \`config.log' for more details." >&2;}
19347 { (exit 1); exit 1; }; } ;;
19350 if test "$cross_compiling" = yes; then
19351 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19352 See \`config.log' for more details." >&5
19353 echo "$as_me: error: cannot run test program while cross compiling
19354 See \`config.log' for more details." >&2;}
19355 { (exit 1); exit 1; }; }
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 $ac_includes_default
19364 long longval () { return (long) (sizeof (unsigned long)); }
19365 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
19367 #include <stdlib.h>
19372 FILE *f = fopen ("conftest.val", "w");
19375 if (((long) (sizeof (unsigned long))) < 0)
19377 long i = longval ();
19378 if (i != ((long) (sizeof (unsigned long))))
19380 fprintf (f, "%ld\n", i);
19384 unsigned long i = ulongval ();
19385 if (i != ((long) (sizeof (unsigned long))))
19387 fprintf (f, "%lu\n", i);
19389 exit (ferror (f) || fclose (f) != 0);
19395 rm -f conftest$ac_exeext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19397 (eval $ac_link) 2>&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; }; then
19406 ac_cv_sizeof_unsigned_long=`cat conftest.val`
19408 echo "$as_me: program exited with status $ac_status" >&5
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ( exit $ac_status )
19413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
19414 See \`config.log' for more details." >&5
19415 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
19416 See \`config.log' for more details." >&2;}
19417 { (exit 1); exit 1; }; }
19419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19424 ac_cv_sizeof_unsigned_long=0
19427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
19428 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
19429 cat >>confdefs.h <<_ACEOF
19430 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
19435 # And one for the size of size_t (enables tweaks for > 32bit address space)
19436 echo "$as_me:$LINENO: checking for size_t" >&5
19437 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19438 if test "${ac_cv_type_size_t+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 $ac_includes_default
19453 if (sizeof (size_t))
19459 rm -f conftest.$ac_objext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19461 (eval $ac_compile) 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag"
19469 || test ! -s conftest.err'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_type_size_t=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_type_size_t=no
19488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19490 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19491 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19493 echo "$as_me:$LINENO: checking size of size_t" >&5
19494 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19495 if test "${ac_cv_sizeof_size_t+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 if test "$ac_cv_type_size_t" = yes; then
19499 # The cast to unsigned long works around a bug in the HP C Compiler
19500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19502 # This bug is HP SR number 8606223364.
19503 if test "$cross_compiling" = yes; then
19504 # Depending upon the size, compute the lo and hi bounds.
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 $ac_includes_default
19515 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19522 rm -f conftest.$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524 (eval $ac_compile) 2>conftest.er1
19526 grep -v '^ *+' conftest.er1 >conftest.err
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_c_werror_flag"
19532 || test ! -s conftest.err'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 $ac_includes_default
19556 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19563 rm -f conftest.$ac_objext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19565 (eval $ac_compile) 2>conftest.er1
19567 grep -v '^ *+' conftest.er1 >conftest.err
19569 cat conftest.err >&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); } &&
19572 { ac_try='test -z "$ac_c_werror_flag"
19573 || test ! -s conftest.err'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest.$ac_objext'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; }; then
19585 ac_hi=$ac_mid; break
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_lo=`expr $ac_mid + 1`
19591 if test $ac_lo -le $ac_mid; then
19595 ac_mid=`expr 2 '*' $ac_mid + 1`
19597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 $ac_includes_default
19613 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19620 rm -f conftest.$ac_objext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622 (eval $ac_compile) 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag"
19630 || test ! -s conftest.err'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; } &&
19636 { ac_try='test -s conftest.$ac_objext'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19644 cat >conftest.$ac_ext <<_ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 $ac_includes_default
19654 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19661 rm -f conftest.$ac_objext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag"
19671 || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try='test -s conftest.$ac_objext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_lo=$ac_mid; break
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_hi=`expr '(' $ac_mid ')' - 1`
19689 if test $ac_mid -le $ac_hi; then
19693 ac_mid=`expr 2 '*' $ac_mid`
19695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706 # Binary search between lo and hi bounds.
19707 while test "x$ac_lo" != "x$ac_hi"; do
19708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19709 cat >conftest.$ac_ext <<_ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715 $ac_includes_default
19719 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19726 rm -f conftest.$ac_objext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728 (eval $ac_compile) 2>conftest.er1
19730 grep -v '^ *+' conftest.er1 >conftest.err
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -z "$ac_c_werror_flag"
19736 || test ! -s conftest.err'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest.$ac_objext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ac_lo=`expr '(' $ac_mid ')' + 1`
19755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19758 ?*) ac_cv_sizeof_size_t=$ac_lo;;
19759 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19760 See \`config.log' for more details." >&5
19761 echo "$as_me: error: cannot compute sizeof (size_t), 77
19762 See \`config.log' for more details." >&2;}
19763 { (exit 1); exit 1; }; } ;;
19766 if test "$cross_compiling" = yes; then
19767 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19768 See \`config.log' for more details." >&5
19769 echo "$as_me: error: cannot run test program while cross compiling
19770 See \`config.log' for more details." >&2;}
19771 { (exit 1); exit 1; }; }
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19779 $ac_includes_default
19780 long longval () { return (long) (sizeof (size_t)); }
19781 unsigned long ulongval () { return (long) (sizeof (size_t)); }
19783 #include <stdlib.h>
19788 FILE *f = fopen ("conftest.val", "w");
19791 if (((long) (sizeof (size_t))) < 0)
19793 long i = longval ();
19794 if (i != ((long) (sizeof (size_t))))
19796 fprintf (f, "%ld\n", i);
19800 unsigned long i = ulongval ();
19801 if (i != ((long) (sizeof (size_t))))
19803 fprintf (f, "%lu\n", i);
19805 exit (ferror (f) || fclose (f) != 0);
19811 rm -f conftest$ac_exeext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19813 (eval $ac_link) 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 ac_cv_sizeof_size_t=`cat conftest.val`
19824 echo "$as_me: program exited with status $ac_status" >&5
19825 echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19828 ( exit $ac_status )
19829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19830 See \`config.log' for more details." >&5
19831 echo "$as_me: error: cannot compute sizeof (size_t), 77
19832 See \`config.log' for more details." >&2;}
19833 { (exit 1); exit 1; }; }
19835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19840 ac_cv_sizeof_size_t=0
19843 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19844 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19845 cat >>confdefs.h <<_ACEOF
19846 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19851 # Determine memory alignment requirements for the basic C data types.
19853 echo "$as_me:$LINENO: checking for short" >&5
19854 echo $ECHO_N "checking for short... $ECHO_C" >&6
19855 if test "${ac_cv_type_short+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19864 $ac_includes_default
19870 if (sizeof (short))
19876 rm -f conftest.$ac_objext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878 (eval $ac_compile) 2>conftest.er1
19880 grep -v '^ *+' conftest.er1 >conftest.err
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } &&
19885 { ac_try='test -z "$ac_c_werror_flag"
19886 || test ! -s conftest.err'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest.$ac_objext'
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_type_short=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_cv_type_short=no
19905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19907 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19908 echo "${ECHO_T}$ac_cv_type_short" >&6
19910 echo "$as_me:$LINENO: checking alignment of short" >&5
19911 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
19912 if test "${pgac_cv_alignof_short+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 if test "$ac_cv_type_short" = yes; then
19916 if test "$cross_compiling" = yes; then
19917 # Depending upon the size, compute the lo and hi bounds.
19918 cat >conftest.$ac_ext <<_ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 $ac_includes_default
19925 struct { char filler; short field; } pgac_struct;
19929 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19936 rm -f conftest.$ac_objext
19937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19938 (eval $ac_compile) 2>conftest.er1
19940 grep -v '^ *+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
19945 { ac_try='test -z "$ac_c_werror_flag"
19946 || test ! -s conftest.err'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; } &&
19952 { ac_try='test -s conftest.$ac_objext'
19953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954 (eval $ac_try) 2>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; }; then
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 $ac_includes_default
19967 struct { char filler; short field; } pgac_struct;
19971 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19978 rm -f conftest.$ac_objext
19979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980 (eval $ac_compile) 2>conftest.er1
19982 grep -v '^ *+' conftest.er1 >conftest.err
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try='test -z "$ac_c_werror_flag"
19988 || test ! -s conftest.err'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; } &&
19994 { ac_try='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_hi=$ac_mid; break
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_lo=`expr $ac_mid + 1`
20006 if test $ac_lo -le $ac_mid; then
20010 ac_mid=`expr 2 '*' $ac_mid + 1`
20012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 $ac_includes_default
20025 struct { char filler; short field; } pgac_struct;
20029 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20036 rm -f conftest.$ac_objext
20037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20038 (eval $ac_compile) 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } &&
20045 { ac_try='test -z "$ac_c_werror_flag"
20046 || test ! -s conftest.err'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; } &&
20052 { ac_try='test -s conftest.$ac_objext'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 $ac_includes_default
20067 struct { char filler; short field; } pgac_struct;
20071 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20078 rm -f conftest.$ac_objext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20080 (eval $ac_compile) 2>conftest.er1
20082 grep -v '^ *+' conftest.er1 >conftest.err
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
20087 { ac_try='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 ac_lo=$ac_mid; break
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20105 ac_hi=`expr '(' $ac_mid ')' - 1`
20106 if test $ac_mid -le $ac_hi; then
20110 ac_mid=`expr 2 '*' $ac_mid`
20112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 # Binary search between lo and hi bounds.
20124 while test "x$ac_lo" != "x$ac_hi"; do
20125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 $ac_includes_default
20133 struct { char filler; short field; } pgac_struct;
20137 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20144 rm -f conftest.$ac_objext
20145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20146 (eval $ac_compile) 2>conftest.er1
20148 grep -v '^ *+' conftest.er1 >conftest.err
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } &&
20153 { ac_try='test -z "$ac_c_werror_flag"
20154 || test ! -s conftest.err'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } &&
20160 { ac_try='test -s conftest.$ac_objext'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_lo=`expr '(' $ac_mid ')' + 1`
20173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20176 ?*) pgac_cv_alignof_short=$ac_lo;;
20177 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20178 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20179 { (exit 1); exit 1; }; } ;;
20182 if test "$cross_compiling" = yes; then
20183 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20184 See \`config.log' for more details." >&5
20185 echo "$as_me: error: cannot run test program while cross compiling
20186 See \`config.log' for more details." >&2;}
20187 { (exit 1); exit 1; }; }
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 $ac_includes_default
20196 struct { char filler; short field; } pgac_struct;
20197 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20198 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20200 #include <stdlib.h>
20205 FILE *f = fopen ("conftest.val", "w");
20208 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20210 long i = longval ();
20211 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20213 fprintf (f, "%ld\n", i);
20217 unsigned long i = ulongval ();
20218 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20220 fprintf (f, "%lu\n", i);
20222 exit (ferror (f) || fclose (f) != 0);
20228 rm -f conftest$ac_exeext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20230 (eval $ac_link) 2>&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 pgac_cv_alignof_short=`cat conftest.val`
20241 echo "$as_me: program exited with status $ac_status" >&5
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 ( exit $ac_status )
20246 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
20247 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
20248 { (exit 1); exit 1; }; }
20250 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20255 pgac_cv_alignof_short=0
20258 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
20259 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
20260 cat >>confdefs.h <<_ACEOF
20261 #define ALIGNOF_SHORT $pgac_cv_alignof_short
20265 echo "$as_me:$LINENO: checking for int" >&5
20266 echo $ECHO_N "checking for int... $ECHO_C" >&6
20267 if test "${ac_cv_type_int+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276 $ac_includes_default
20288 rm -f conftest.$ac_objext
20289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20290 (eval $ac_compile) 2>conftest.er1
20292 grep -v '^ *+' conftest.er1 >conftest.err
20294 cat conftest.err >&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); } &&
20297 { ac_try='test -z "$ac_c_werror_flag"
20298 || test ! -s conftest.err'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; } &&
20304 { ac_try='test -s conftest.$ac_objext'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20319 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20320 echo "${ECHO_T}$ac_cv_type_int" >&6
20322 echo "$as_me:$LINENO: checking alignment of int" >&5
20323 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
20324 if test "${pgac_cv_alignof_int+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 if test "$ac_cv_type_int" = yes; then
20328 if test "$cross_compiling" = yes; then
20329 # Depending upon the size, compute the lo and hi bounds.
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20336 $ac_includes_default
20337 struct { char filler; int field; } pgac_struct;
20341 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20348 rm -f conftest.$ac_objext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20350 (eval $ac_compile) 2>conftest.er1
20352 grep -v '^ *+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
20357 { ac_try='test -z "$ac_c_werror_flag"
20358 || test ! -s conftest.err'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest.$ac_objext'
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20372 cat >conftest.$ac_ext <<_ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20378 $ac_includes_default
20379 struct { char filler; int field; } pgac_struct;
20383 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20390 rm -f conftest.$ac_objext
20391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20392 (eval $ac_compile) 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } &&
20399 { ac_try='test -z "$ac_c_werror_flag"
20400 || test ! -s conftest.err'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; } &&
20406 { ac_try='test -s conftest.$ac_objext'
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; }; then
20412 ac_hi=$ac_mid; break
20414 echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20417 ac_lo=`expr $ac_mid + 1`
20418 if test $ac_lo -le $ac_mid; then
20422 ac_mid=`expr 2 '*' $ac_mid + 1`
20424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 $ac_includes_default
20437 struct { char filler; int field; } pgac_struct;
20441 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20448 rm -f conftest.$ac_objext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450 (eval $ac_compile) 2>conftest.er1
20452 grep -v '^ *+' conftest.er1 >conftest.err
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } &&
20457 { ac_try='test -z "$ac_c_werror_flag"
20458 || test ! -s conftest.err'
20459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460 (eval $ac_try) 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; } &&
20464 { ac_try='test -s conftest.$ac_objext'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; }; then
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 $ac_includes_default
20479 struct { char filler; int field; } pgac_struct;
20483 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20490 rm -f conftest.$ac_objext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492 (eval $ac_compile) 2>conftest.er1
20494 grep -v '^ *+' conftest.er1 >conftest.err
20496 cat conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
20499 { ac_try='test -z "$ac_c_werror_flag"
20500 || test ! -s conftest.err'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; } &&
20506 { ac_try='test -s conftest.$ac_objext'
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
20512 ac_lo=$ac_mid; break
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_hi=`expr '(' $ac_mid ')' - 1`
20518 if test $ac_mid -le $ac_hi; then
20522 ac_mid=`expr 2 '*' $ac_mid`
20524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20535 # Binary search between lo and hi bounds.
20536 while test "x$ac_lo" != "x$ac_hi"; do
20537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 $ac_includes_default
20545 struct { char filler; int field; } pgac_struct;
20549 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20556 rm -f conftest.$ac_objext
20557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20558 (eval $ac_compile) 2>conftest.er1
20560 grep -v '^ *+' conftest.er1 >conftest.err
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } &&
20565 { ac_try='test -z "$ac_c_werror_flag"
20566 || test ! -s conftest.err'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; } &&
20572 { ac_try='test -s conftest.$ac_objext'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_lo=`expr '(' $ac_mid ')' + 1`
20585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20588 ?*) pgac_cv_alignof_int=$ac_lo;;
20589 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
20590 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
20591 { (exit 1); exit 1; }; } ;;
20594 if test "$cross_compiling" = yes; then
20595 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20596 See \`config.log' for more details." >&5
20597 echo "$as_me: error: cannot run test program while cross compiling
20598 See \`config.log' for more details." >&2;}
20599 { (exit 1); exit 1; }; }
20601 cat >conftest.$ac_ext <<_ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20607 $ac_includes_default
20608 struct { char filler; int field; } pgac_struct;
20609 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20610 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20612 #include <stdlib.h>
20617 FILE *f = fopen ("conftest.val", "w");
20620 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20622 long i = longval ();
20623 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20625 fprintf (f, "%ld\n", i);
20629 unsigned long i = ulongval ();
20630 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20632 fprintf (f, "%lu\n", i);
20634 exit (ferror (f) || fclose (f) != 0);
20640 rm -f conftest$ac_exeext
20641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20642 (eval $ac_link) 2>&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647 (eval $ac_try) 2>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; }; then
20651 pgac_cv_alignof_int=`cat conftest.val`
20653 echo "$as_me: program exited with status $ac_status" >&5
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ( exit $ac_status )
20658 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
20659 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
20660 { (exit 1); exit 1; }; }
20662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20667 pgac_cv_alignof_int=0
20670 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
20671 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
20672 cat >>confdefs.h <<_ACEOF
20673 #define ALIGNOF_INT $pgac_cv_alignof_int
20677 echo "$as_me:$LINENO: checking for long" >&5
20678 echo $ECHO_N "checking for long... $ECHO_C" >&6
20679 if test "${ac_cv_type_long+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 $ac_includes_default
20700 rm -f conftest.$ac_objext
20701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20702 (eval $ac_compile) 2>conftest.er1
20704 grep -v '^ *+' conftest.er1 >conftest.err
20706 cat conftest.err >&5
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } &&
20709 { ac_try='test -z "$ac_c_werror_flag"
20710 || test ! -s conftest.err'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; } &&
20716 { ac_try='test -s conftest.$ac_objext'
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_cv_type_long=yes
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20731 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20732 echo "${ECHO_T}$ac_cv_type_long" >&6
20734 echo "$as_me:$LINENO: checking alignment of long" >&5
20735 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
20736 if test "${pgac_cv_alignof_long+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 if test "$ac_cv_type_long" = yes; then
20740 if test "$cross_compiling" = yes; then
20741 # Depending upon the size, compute the lo and hi bounds.
20742 cat >conftest.$ac_ext <<_ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 $ac_includes_default
20749 struct { char filler; long field; } pgac_struct;
20753 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20760 rm -f conftest.$ac_objext
20761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20762 (eval $ac_compile) 2>conftest.er1
20764 grep -v '^ *+' conftest.er1 >conftest.err
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -z "$ac_c_werror_flag"
20770 || test ! -s conftest.err'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest.$ac_objext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20784 cat >conftest.$ac_ext <<_ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 $ac_includes_default
20791 struct { char filler; long field; } pgac_struct;
20795 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20802 rm -f conftest.$ac_objext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20804 (eval $ac_compile) 2>conftest.er1
20806 grep -v '^ *+' conftest.er1 >conftest.err
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } &&
20811 { ac_try='test -z "$ac_c_werror_flag"
20812 || test ! -s conftest.err'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest.$ac_objext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_hi=$ac_mid; break
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_lo=`expr $ac_mid + 1`
20830 if test $ac_lo -le $ac_mid; then
20834 ac_mid=`expr 2 '*' $ac_mid + 1`
20836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 cat >conftest.$ac_ext <<_ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 $ac_includes_default
20849 struct { char filler; long field; } pgac_struct;
20853 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20860 rm -f conftest.$ac_objext
20861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20862 (eval $ac_compile) 2>conftest.er1
20864 grep -v '^ *+' conftest.er1 >conftest.err
20866 cat conftest.err >&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } &&
20869 { ac_try='test -z "$ac_c_werror_flag"
20870 || test ! -s conftest.err'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; } &&
20876 { ac_try='test -s conftest.$ac_objext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 $ac_includes_default
20891 struct { char filler; long field; } pgac_struct;
20895 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20902 rm -f conftest.$ac_objext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20904 (eval $ac_compile) 2>conftest.er1
20906 grep -v '^ *+' conftest.er1 >conftest.err
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } &&
20911 { ac_try='test -z "$ac_c_werror_flag"
20912 || test ! -s conftest.err'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; } &&
20918 { ac_try='test -s conftest.$ac_objext'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20924 ac_lo=$ac_mid; break
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_hi=`expr '(' $ac_mid ')' - 1`
20930 if test $ac_mid -le $ac_hi; then
20934 ac_mid=`expr 2 '*' $ac_mid`
20936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20947 # Binary search between lo and hi bounds.
20948 while test "x$ac_lo" != "x$ac_hi"; do
20949 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20957 struct { char filler; long field; } pgac_struct;
20961 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20968 rm -f conftest.$ac_objext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970 (eval $ac_compile) 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } &&
20977 { ac_try='test -z "$ac_c_werror_flag"
20978 || test ! -s conftest.err'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_lo=`expr '(' $ac_mid ')' + 1`
20997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21000 ?*) pgac_cv_alignof_long=$ac_lo;;
21001 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21002 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21003 { (exit 1); exit 1; }; } ;;
21006 if test "$cross_compiling" = yes; then
21007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21008 See \`config.log' for more details." >&5
21009 echo "$as_me: error: cannot run test program while cross compiling
21010 See \`config.log' for more details." >&2;}
21011 { (exit 1); exit 1; }; }
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21020 struct { char filler; long field; } pgac_struct;
21021 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21022 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21024 #include <stdlib.h>
21029 FILE *f = fopen ("conftest.val", "w");
21032 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21034 long i = longval ();
21035 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21037 fprintf (f, "%ld\n", i);
21041 unsigned long i = ulongval ();
21042 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21044 fprintf (f, "%lu\n", i);
21046 exit (ferror (f) || fclose (f) != 0);
21052 rm -f conftest$ac_exeext
21053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21054 (eval $ac_link) 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21059 (eval $ac_try) 2>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; }; then
21063 pgac_cv_alignof_long=`cat conftest.val`
21065 echo "$as_me: program exited with status $ac_status" >&5
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ( exit $ac_status )
21070 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
21071 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
21072 { (exit 1); exit 1; }; }
21074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21079 pgac_cv_alignof_long=0
21082 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
21083 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
21084 cat >>confdefs.h <<_ACEOF
21085 #define ALIGNOF_LONG $pgac_cv_alignof_long
21089 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
21090 echo "$as_me:$LINENO: checking for long long int" >&5
21091 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
21092 if test "${ac_cv_type_long_long_int+set}" = set; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21095 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 $ac_includes_default
21105 if ((long long int *) 0)
21107 if (sizeof (long long int))
21113 rm -f conftest.$ac_objext
21114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21115 (eval $ac_compile) 2>conftest.er1
21117 grep -v '^ *+' conftest.er1 >conftest.err
21119 cat conftest.err >&5
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } &&
21122 { ac_try='test -z "$ac_c_werror_flag"
21123 || test ! -s conftest.err'
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; } &&
21129 { ac_try='test -s conftest.$ac_objext'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_cv_type_long_long_int=yes
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ac_cv_type_long_long_int=no
21142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21144 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
21145 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
21147 echo "$as_me:$LINENO: checking alignment of long long int" >&5
21148 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
21149 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 if test "$ac_cv_type_long_long_int" = yes; then
21153 if test "$cross_compiling" = yes; then
21154 # Depending upon the size, compute the lo and hi bounds.
21155 cat >conftest.$ac_ext <<_ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 $ac_includes_default
21162 struct { char filler; long long int field; } pgac_struct;
21166 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21173 rm -f conftest.$ac_objext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175 (eval $ac_compile) 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
21182 { ac_try='test -z "$ac_c_werror_flag"
21183 || test ! -s conftest.err'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 $ac_includes_default
21204 struct { char filler; long long int field; } pgac_struct;
21208 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21215 rm -f conftest.$ac_objext
21216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21217 (eval $ac_compile) 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_c_werror_flag"
21225 || test ! -s conftest.err'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; } &&
21231 { ac_try='test -s conftest.$ac_objext'
21232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233 (eval $ac_try) 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; }; then
21237 ac_hi=$ac_mid; break
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 ac_lo=`expr $ac_mid + 1`
21243 if test $ac_lo -le $ac_mid; then
21247 ac_mid=`expr 2 '*' $ac_mid + 1`
21249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 cat >conftest.$ac_ext <<_ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21261 $ac_includes_default
21262 struct { char filler; long long int field; } pgac_struct;
21266 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21273 rm -f conftest.$ac_objext
21274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21275 (eval $ac_compile) 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
21282 { ac_try='test -z "$ac_c_werror_flag"
21283 || test ! -s conftest.err'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } &&
21289 { ac_try='test -s conftest.$ac_objext'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 $ac_includes_default
21304 struct { char filler; long long int field; } pgac_struct;
21308 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21315 rm -f conftest.$ac_objext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21317 (eval $ac_compile) 2>conftest.er1
21319 grep -v '^ *+' conftest.er1 >conftest.err
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } &&
21324 { ac_try='test -z "$ac_c_werror_flag"
21325 || test ! -s conftest.err'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; } &&
21331 { ac_try='test -s conftest.$ac_objext'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 ac_lo=$ac_mid; break
21339 echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21342 ac_hi=`expr '(' $ac_mid ')' - 1`
21343 if test $ac_mid -le $ac_hi; then
21347 ac_mid=`expr 2 '*' $ac_mid`
21349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21360 # Binary search between lo and hi bounds.
21361 while test "x$ac_lo" != "x$ac_hi"; do
21362 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21363 cat >conftest.$ac_ext <<_ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 $ac_includes_default
21370 struct { char filler; long long int field; } pgac_struct;
21374 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21381 rm -f conftest.$ac_objext
21382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21383 (eval $ac_compile) 2>conftest.er1
21385 grep -v '^ *+' conftest.er1 >conftest.err
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } &&
21390 { ac_try='test -z "$ac_c_werror_flag"
21391 || test ! -s conftest.err'
21392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393 (eval $ac_try) 2>&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; } &&
21397 { ac_try='test -s conftest.$ac_objext'
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; }; then
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21408 ac_lo=`expr '(' $ac_mid ')' + 1`
21410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21413 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
21414 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
21415 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
21416 { (exit 1); exit 1; }; } ;;
21419 if test "$cross_compiling" = yes; then
21420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21421 See \`config.log' for more details." >&5
21422 echo "$as_me: error: cannot run test program while cross compiling
21423 See \`config.log' for more details." >&2;}
21424 { (exit 1); exit 1; }; }
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 $ac_includes_default
21433 struct { char filler; long long int field; } pgac_struct;
21434 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21435 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21437 #include <stdlib.h>
21442 FILE *f = fopen ("conftest.val", "w");
21445 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21447 long i = longval ();
21448 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21450 fprintf (f, "%ld\n", i);
21454 unsigned long i = ulongval ();
21455 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21457 fprintf (f, "%lu\n", i);
21459 exit (ferror (f) || fclose (f) != 0);
21465 rm -f conftest$ac_exeext
21466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21467 (eval $ac_link) 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 pgac_cv_alignof_long_long_int=`cat conftest.val`
21478 echo "$as_me: program exited with status $ac_status" >&5
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21482 ( exit $ac_status )
21483 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
21484 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
21485 { (exit 1); exit 1; }; }
21487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21492 pgac_cv_alignof_long_long_int=0
21495 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
21496 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
21497 cat >>confdefs.h <<_ACEOF
21498 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
21503 echo "$as_me:$LINENO: checking for double" >&5
21504 echo $ECHO_N "checking for double... $ECHO_C" >&6
21505 if test "${ac_cv_type_double+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 $ac_includes_default
21520 if (sizeof (double))
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528 (eval $ac_compile) 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
21535 { ac_try='test -z "$ac_c_werror_flag"
21536 || test ! -s conftest.err'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_cv_type_double=yes
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_cv_type_double=no
21555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21557 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
21558 echo "${ECHO_T}$ac_cv_type_double" >&6
21560 echo "$as_me:$LINENO: checking alignment of double" >&5
21561 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
21562 if test "${pgac_cv_alignof_double+set}" = set; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 if test "$ac_cv_type_double" = yes; then
21566 if test "$cross_compiling" = yes; then
21567 # Depending upon the size, compute the lo and hi bounds.
21568 cat >conftest.$ac_ext <<_ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 $ac_includes_default
21575 struct { char filler; double field; } pgac_struct;
21579 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
21586 rm -f conftest.$ac_objext
21587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21588 (eval $ac_compile) 2>conftest.er1
21590 grep -v '^ *+' conftest.er1 >conftest.err
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } &&
21595 { ac_try='test -z "$ac_c_werror_flag"
21596 || test ! -s conftest.err'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; } &&
21602 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 $ac_includes_default
21617 struct { char filler; double field; } pgac_struct;
21621 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21628 rm -f conftest.$ac_objext
21629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21630 (eval $ac_compile) 2>conftest.er1
21632 grep -v '^ *+' conftest.er1 >conftest.err
21634 cat conftest.err >&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
21637 { ac_try='test -z "$ac_c_werror_flag"
21638 || test ! -s conftest.err'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; } &&
21644 { ac_try='test -s conftest.$ac_objext'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_hi=$ac_mid; break
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_lo=`expr $ac_mid + 1`
21656 if test $ac_lo -le $ac_mid; then
21660 ac_mid=`expr 2 '*' $ac_mid + 1`
21662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 $ac_includes_default
21675 struct { char filler; double field; } pgac_struct;
21679 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
21686 rm -f conftest.$ac_objext
21687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21688 (eval $ac_compile) 2>conftest.er1
21690 grep -v '^ *+' conftest.er1 >conftest.err
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } &&
21695 { ac_try='test -z "$ac_c_werror_flag"
21696 || test ! -s conftest.err'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; } &&
21702 { ac_try='test -s conftest.$ac_objext'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; }; then
21710 cat >conftest.$ac_ext <<_ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21716 $ac_includes_default
21717 struct { char filler; double field; } pgac_struct;
21721 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
21728 rm -f conftest.$ac_objext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730 (eval $ac_compile) 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
21737 { ac_try='test -z "$ac_c_werror_flag"
21738 || test ! -s conftest.err'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_lo=$ac_mid; break
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_hi=`expr '(' $ac_mid ')' - 1`
21756 if test $ac_mid -le $ac_hi; then
21760 ac_mid=`expr 2 '*' $ac_mid`
21762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21765 echo "$as_me: failed program was:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 # Binary search between lo and hi bounds.
21774 while test "x$ac_lo" != "x$ac_hi"; do
21775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 $ac_includes_default
21783 struct { char filler; double field; } pgac_struct;
21787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
21794 rm -f conftest.$ac_objext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21796 (eval $ac_compile) 2>conftest.er1
21798 grep -v '^ *+' conftest.er1 >conftest.err
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } &&
21803 { ac_try='test -z "$ac_c_werror_flag"
21804 || test ! -s conftest.err'
21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; } &&
21810 { ac_try='test -s conftest.$ac_objext'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21818 echo "$as_me: failed program was:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_lo=`expr '(' $ac_mid ')' + 1`
21823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21826 ?*) pgac_cv_alignof_double=$ac_lo;;
21827 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
21828 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
21829 { (exit 1); exit 1; }; } ;;
21832 if test "$cross_compiling" = yes; then
21833 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21834 See \`config.log' for more details." >&5
21835 echo "$as_me: error: cannot run test program while cross compiling
21836 See \`config.log' for more details." >&2;}
21837 { (exit 1); exit 1; }; }
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 $ac_includes_default
21846 struct { char filler; double field; } pgac_struct;
21847 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21848 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
21850 #include <stdlib.h>
21855 FILE *f = fopen ("conftest.val", "w");
21858 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
21860 long i = longval ();
21861 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21863 fprintf (f, "%ld\n", i);
21867 unsigned long i = ulongval ();
21868 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
21870 fprintf (f, "%lu\n", i);
21872 exit (ferror (f) || fclose (f) != 0);
21878 rm -f conftest$ac_exeext
21879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21880 (eval $ac_link) 2>&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; }; then
21889 pgac_cv_alignof_double=`cat conftest.val`
21891 echo "$as_me: program exited with status $ac_status" >&5
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895 ( exit $ac_status )
21896 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
21897 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
21898 { (exit 1); exit 1; }; }
21900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21905 pgac_cv_alignof_double=0
21908 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
21909 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
21910 cat >>confdefs.h <<_ACEOF
21911 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
21916 # Compute maximum alignment of any basic type.
21917 # We assume long's alignment is at least as strong as char, short, or int;
21918 # but we must check long long (if it exists) and double.
21920 MAX_ALIGNOF=$pgac_cv_alignof_long
21921 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
21922 MAX_ALIGNOF=$pgac_cv_alignof_double
21924 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
21925 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
21928 cat >>confdefs.h <<_ACEOF
21929 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
21934 # Some platforms predefine the types int8, int16, etc. Only check
21935 # a (hopefully) representative subset.
21936 echo "$as_me:$LINENO: checking for int8" >&5
21937 echo $ECHO_N "checking for int8... $ECHO_C" >&6
21938 if test "${ac_cv_type_int8+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 cat >conftest.$ac_ext <<_ACEOF
21944 cat confdefs.h >>conftest.$ac_ext
21945 cat >>conftest.$ac_ext <<_ACEOF
21946 /* end confdefs.h. */
21948 #ifdef HAVE_SUPPORTDEFS_H
21949 #include <SupportDefs.h>
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965 (eval $ac_compile) 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
21972 { ac_try='test -z "$ac_c_werror_flag"
21973 || test ! -s conftest.err'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; } &&
21979 { ac_try='test -s conftest.$ac_objext'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }; then
21985 ac_cv_type_int8=yes
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21994 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
21995 echo "${ECHO_T}$ac_cv_type_int8" >&6
21996 if test $ac_cv_type_int8 = yes; then
21998 cat >>confdefs.h <<_ACEOF
21999 #define HAVE_INT8 1
22004 echo "$as_me:$LINENO: checking for uint8" >&5
22005 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
22006 if test "${ac_cv_type_uint8+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22016 #ifdef HAVE_SUPPORTDEFS_H
22017 #include <SupportDefs.h>
22025 if (sizeof (uint8))
22031 rm -f conftest.$ac_objext
22032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22033 (eval $ac_compile) 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } &&
22040 { ac_try='test -z "$ac_c_werror_flag"
22041 || test ! -s conftest.err'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; } &&
22047 { ac_try='test -s conftest.$ac_objext'
22048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049 (eval $ac_try) 2>&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); }; }; then
22053 ac_cv_type_uint8=yes
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22058 ac_cv_type_uint8=no
22060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22062 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
22063 echo "${ECHO_T}$ac_cv_type_uint8" >&6
22064 if test $ac_cv_type_uint8 = yes; then
22066 cat >>confdefs.h <<_ACEOF
22067 #define HAVE_UINT8 1
22072 echo "$as_me:$LINENO: checking for int64" >&5
22073 echo $ECHO_N "checking for int64... $ECHO_C" >&6
22074 if test "${ac_cv_type_int64+set}" = set; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 cat >conftest.$ac_ext <<_ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22084 #ifdef HAVE_SUPPORTDEFS_H
22085 #include <SupportDefs.h>
22093 if (sizeof (int64))
22099 rm -f conftest.$ac_objext
22100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22101 (eval $ac_compile) 2>conftest.er1
22103 grep -v '^ *+' conftest.er1 >conftest.err
22105 cat conftest.err >&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } &&
22108 { ac_try='test -z "$ac_c_werror_flag"
22109 || test ! -s conftest.err'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; } &&
22115 { ac_try='test -s conftest.$ac_objext'
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 ac_cv_type_int64=yes
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22126 ac_cv_type_int64=no
22128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22130 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
22131 echo "${ECHO_T}$ac_cv_type_int64" >&6
22132 if test $ac_cv_type_int64 = yes; then
22134 cat >>confdefs.h <<_ACEOF
22135 #define HAVE_INT64 1
22140 echo "$as_me:$LINENO: checking for uint64" >&5
22141 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
22142 if test "${ac_cv_type_uint64+set}" = set; then
22143 echo $ECHO_N "(cached) $ECHO_C" >&6
22145 cat >conftest.$ac_ext <<_ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h. */
22152 #ifdef HAVE_SUPPORTDEFS_H
22153 #include <SupportDefs.h>
22161 if (sizeof (uint64))
22167 rm -f conftest.$ac_objext
22168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22169 (eval $ac_compile) 2>conftest.er1
22171 grep -v '^ *+' conftest.er1 >conftest.err
22173 cat conftest.err >&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } &&
22176 { ac_try='test -z "$ac_c_werror_flag"
22177 || test ! -s conftest.err'
22178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22179 (eval $ac_try) 2>&5
22181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); }; } &&
22183 { ac_try='test -s conftest.$ac_objext'
22184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22185 (eval $ac_try) 2>&5
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); }; }; then
22189 ac_cv_type_uint64=yes
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.$ac_ext >&5
22194 ac_cv_type_uint64=no
22196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22198 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
22199 echo "${ECHO_T}$ac_cv_type_uint64" >&6
22200 if test $ac_cv_type_uint64 = yes; then
22202 cat >>confdefs.h <<_ACEOF
22203 #define HAVE_UINT64 1
22210 # We also check for sig_atomic_t, which *should* be defined per ANSI
22211 # C, but is missing on some old platforms.
22212 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22213 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
22214 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 cat >conftest.$ac_ext <<_ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 #include <signal.h>
22228 if ((sig_atomic_t *) 0)
22230 if (sizeof (sig_atomic_t))
22236 rm -f conftest.$ac_objext
22237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22238 (eval $ac_compile) 2>conftest.er1
22240 grep -v '^ *+' conftest.er1 >conftest.err
22242 cat conftest.err >&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } &&
22245 { ac_try='test -z "$ac_c_werror_flag"
22246 || test ! -s conftest.err'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; } &&
22252 { ac_try='test -s conftest.$ac_objext'
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 ac_cv_type_sig_atomic_t=yes
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22263 ac_cv_type_sig_atomic_t=no
22265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22267 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
22268 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
22269 if test $ac_cv_type_sig_atomic_t = yes; then
22271 cat >>confdefs.h <<_ACEOF
22272 #define HAVE_SIG_ATOMIC_T 1
22280 if test "$PORTNAME" != "win32"
22282 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
22283 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
22284 if test "${pgac_cv_func_posix_signals+set}" = set; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22287 cat >conftest.$ac_ext <<_ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 #include <signal.h>
22298 struct sigaction act, oact;
22299 sigemptyset(&act.sa_mask);
22300 act.sa_flags = SA_RESTART;
22301 sigaction(0, &act, &oact);
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22308 (eval $ac_link) 2>conftest.er1
22310 grep -v '^ *+' conftest.er1 >conftest.err
22312 cat conftest.err >&5
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); } &&
22315 { ac_try='test -z "$ac_c_werror_flag"
22316 || test ! -s conftest.err'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; } &&
22322 { ac_try='test -s conftest$ac_exeext'
22323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22324 (eval $ac_try) 2>&5
22326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327 (exit $ac_status); }; }; then
22328 pgac_cv_func_posix_signals=yes
22330 echo "$as_me: failed program was:" >&5
22331 sed 's/^/| /' conftest.$ac_ext >&5
22333 pgac_cv_func_posix_signals=no
22335 rm -f conftest.err conftest.$ac_objext \
22336 conftest$ac_exeext conftest.$ac_ext
22338 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
22339 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
22340 if test x"$pgac_cv_func_posix_signals" = xyes ; then
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_POSIX_SIGNALS
22347 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
22349 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
22350 { { echo "$as_me:$LINENO: error:
22351 Thread-safety requires POSIX signals, which are not supported by this
22352 operating system." >&5
22353 echo "$as_me: error:
22354 Thread-safety requires POSIX signals, which are not supported by this
22355 operating system." >&2;}
22356 { (exit 1); exit 1; }; }
22360 if test $ac_cv_func_fseeko = yes; then
22361 # Check whether --enable-largefile or --disable-largefile was given.
22362 if test "${enable_largefile+set}" = set; then
22363 enableval="$enable_largefile"
22366 if test "$enable_largefile" != no; then
22368 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
22369 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
22370 if test "${ac_cv_sys_largefile_CC+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 ac_cv_sys_largefile_CC=no
22374 if test "$GCC" != yes; then
22377 # IRIX 6.2 and later do not support large files by default,
22378 # so use the C compiler's -n32 option if that helps.
22379 cat >conftest.$ac_ext <<_ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22385 #include <sys/types.h>
22386 /* Check that off_t can represent 2**63 - 1 correctly.
22387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22388 since some C++ compilers masquerading as C compilers
22389 incorrectly reject 9223372036854775807. */
22390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22392 && LARGE_OFF_T % 2147483647 == 1)
22402 rm -f conftest.$ac_objext
22403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22404 (eval $ac_compile) 2>conftest.er1
22406 grep -v '^ *+' conftest.er1 >conftest.err
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } &&
22411 { ac_try='test -z "$ac_c_werror_flag"
22412 || test ! -s conftest.err'
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; } &&
22418 { ac_try='test -s conftest.$ac_objext'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; }; then
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22430 rm -f conftest.err conftest.$ac_objext
22432 rm -f conftest.$ac_objext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22434 (eval $ac_compile) 2>conftest.er1
22436 grep -v '^ *+' conftest.er1 >conftest.err
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
22441 { ac_try='test -z "$ac_c_werror_flag"
22442 || test ! -s conftest.err'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; } &&
22448 { ac_try='test -s conftest.$ac_objext'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 ac_cv_sys_largefile_CC=' -n32'; break
22456 echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22460 rm -f conftest.err conftest.$ac_objext
22464 rm -f conftest.$ac_ext
22467 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22468 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
22469 if test "$ac_cv_sys_largefile_CC" != no; then
22470 CC=$CC$ac_cv_sys_largefile_CC
22473 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22474 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22475 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 ac_cv_sys_file_offset_bits=no
22480 cat >conftest.$ac_ext <<_ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22486 #include <sys/types.h>
22487 /* Check that off_t can represent 2**63 - 1 correctly.
22488 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22489 since some C++ compilers masquerading as C compilers
22490 incorrectly reject 9223372036854775807. */
22491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22493 && LARGE_OFF_T % 2147483647 == 1)
22503 rm -f conftest.$ac_objext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22505 (eval $ac_compile) 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } &&
22512 { ac_try='test -z "$ac_c_werror_flag"
22513 || test ! -s conftest.err'
22514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; } &&
22519 { ac_try='test -s conftest.$ac_objext'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; }; then
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22532 cat >conftest.$ac_ext <<_ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22538 #define _FILE_OFFSET_BITS 64
22539 #include <sys/types.h>
22540 /* Check that off_t can represent 2**63 - 1 correctly.
22541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22542 since some C++ compilers masquerading as C compilers
22543 incorrectly reject 9223372036854775807. */
22544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22546 && LARGE_OFF_T % 2147483647 == 1)
22556 rm -f conftest.$ac_objext
22557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22558 (eval $ac_compile) 2>conftest.er1
22560 grep -v '^ *+' conftest.er1 >conftest.err
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } &&
22565 { ac_try='test -z "$ac_c_werror_flag"
22566 || test ! -s conftest.err'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest.$ac_objext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 ac_cv_sys_file_offset_bits=64; break
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22588 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22589 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22590 if test "$ac_cv_sys_file_offset_bits" != no; then
22592 cat >>confdefs.h <<_ACEOF
22593 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22598 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22599 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22600 if test "${ac_cv_sys_large_files+set}" = set; then
22601 echo $ECHO_N "(cached) $ECHO_C" >&6
22604 ac_cv_sys_large_files=no
22605 cat >conftest.$ac_ext <<_ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 #include <sys/types.h>
22612 /* Check that off_t can represent 2**63 - 1 correctly.
22613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22614 since some C++ compilers masquerading as C compilers
22615 incorrectly reject 9223372036854775807. */
22616 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22617 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22618 && LARGE_OFF_T % 2147483647 == 1)
22628 rm -f conftest.$ac_objext
22629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22630 (eval $ac_compile) 2>conftest.er1
22632 grep -v '^ *+' conftest.er1 >conftest.err
22634 cat conftest.err >&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } &&
22637 { ac_try='test -z "$ac_c_werror_flag"
22638 || test ! -s conftest.err'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; } &&
22644 { ac_try='test -s conftest.$ac_objext'
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22652 echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22657 cat >conftest.$ac_ext <<_ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 #define _LARGE_FILES 1
22664 #include <sys/types.h>
22665 /* Check that off_t can represent 2**63 - 1 correctly.
22666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22667 since some C++ compilers masquerading as C compilers
22668 incorrectly reject 9223372036854775807. */
22669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22671 && LARGE_OFF_T % 2147483647 == 1)
22681 rm -f conftest.$ac_objext
22682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22683 (eval $ac_compile) 2>conftest.er1
22685 grep -v '^ *+' conftest.er1 >conftest.err
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } &&
22690 { ac_try='test -z "$ac_c_werror_flag"
22691 || test ! -s conftest.err'
22692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22693 (eval $ac_try) 2>&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); }; } &&
22697 { ac_try='test -s conftest.$ac_objext'
22698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699 (eval $ac_try) 2>&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); }; }; then
22703 ac_cv_sys_large_files=1; break
22705 echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22713 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22714 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22715 if test "$ac_cv_sys_large_files" != no; then
22717 cat >>confdefs.h <<_ACEOF
22718 #define _LARGE_FILES $ac_cv_sys_large_files
22727 # SunOS doesn't handle negative byte comparisons properly with +/- return
22728 echo "$as_me:$LINENO: checking for working memcmp" >&5
22729 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22730 if test "${ac_cv_func_memcmp_working+set}" = set; then
22731 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 if test "$cross_compiling" = yes; then
22734 ac_cv_func_memcmp_working=no
22736 cat >conftest.$ac_ext <<_ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h. */
22742 $ac_includes_default
22747 /* Some versions of memcmp are not 8-bit clean. */
22748 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22749 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22752 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22753 or more and with at least one buffer not starting on a 4-byte boundary.
22754 William Lewis provided this test program. */
22759 for (i = 0; i < 4; i++)
22763 strcpy (a, "--------01111111");
22764 strcpy (b, "--------10000000");
22765 if (memcmp (a, b, 16) >= 0)
22775 rm -f conftest$ac_exeext
22776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22777 (eval $ac_link) 2>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
22786 ac_cv_func_memcmp_working=yes
22788 echo "$as_me: program exited with status $ac_status" >&5
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22792 ( exit $ac_status )
22793 ac_cv_func_memcmp_working=no
22795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22798 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22799 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22800 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22801 "memcmp.$ac_objext" | \
22802 *" memcmp.$ac_objext" | \
22803 "memcmp.$ac_objext "* | \
22804 *" memcmp.$ac_objext "* ) ;;
22805 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22811 # Select semaphore implementation type.
22812 if test "$PORTNAME" != "win32"; then
22813 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
22815 cat >>confdefs.h <<\_ACEOF
22816 #define USE_NAMED_POSIX_SEMAPHORES 1
22819 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
22821 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
22823 cat >>confdefs.h <<\_ACEOF
22824 #define USE_UNNAMED_POSIX_SEMAPHORES 1
22827 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
22830 cat >>confdefs.h <<\_ACEOF
22831 #define USE_SYSV_SEMAPHORES 1
22834 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
22839 cat >>confdefs.h <<\_ACEOF
22840 #define USE_WIN32_SEMAPHORES 1
22843 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
22847 # Select shared-memory implementation type.
22848 if test "$PORTNAME" != "win32"; then
22850 cat >>confdefs.h <<\_ACEOF
22851 #define USE_SYSV_SHARED_MEMORY 1
22854 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
22857 cat >>confdefs.h <<\_ACEOF
22858 #define USE_WIN32_SHARED_MEMORY 1
22861 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
22864 # If not set in template file, set bytes to use libc memset()
22865 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
22866 MEMSET_LOOP_LIMIT=1024
22869 cat >>confdefs.h <<_ACEOF
22870 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
22875 if test "$enable_nls" = yes ; then
22877 echo "$as_me:$LINENO: checking for library containing gettext" >&5
22878 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
22879 if test "${ac_cv_search_gettext+set}" = set; then
22880 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 ac_func_search_save_LIBS=$LIBS
22883 ac_cv_search_gettext=no
22884 cat >conftest.$ac_ext <<_ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h. */
22891 /* Override any gcc2 internal prototype to avoid an error. */
22895 /* We use char because int might match the return type of a gcc2
22896 builtin and then its argument prototype would still apply. */
22906 rm -f conftest.$ac_objext conftest$ac_exeext
22907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22908 (eval $ac_link) 2>conftest.er1
22910 grep -v '^ *+' conftest.er1 >conftest.err
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } &&
22915 { ac_try='test -z "$ac_c_werror_flag"
22916 || test ! -s conftest.err'
22917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918 (eval $ac_try) 2>&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); }; } &&
22922 { ac_try='test -s conftest$ac_exeext'
22923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924 (eval $ac_try) 2>&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; }; then
22928 ac_cv_search_gettext="none required"
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22934 rm -f conftest.err conftest.$ac_objext \
22935 conftest$ac_exeext conftest.$ac_ext
22936 if test "$ac_cv_search_gettext" = no; then
22937 for ac_lib in intl; do
22938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22939 cat >conftest.$ac_ext <<_ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h. */
22946 /* Override any gcc2 internal prototype to avoid an error. */
22950 /* We use char because int might match the return type of a gcc2
22951 builtin and then its argument prototype would still apply. */
22961 rm -f conftest.$ac_objext conftest$ac_exeext
22962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22963 (eval $ac_link) 2>conftest.er1
22965 grep -v '^ *+' conftest.er1 >conftest.err
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } &&
22970 { ac_try='test -z "$ac_c_werror_flag"
22971 || test ! -s conftest.err'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; } &&
22977 { ac_try='test -s conftest$ac_exeext'
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; }; then
22983 ac_cv_search_gettext="-l$ac_lib"
22986 echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22990 rm -f conftest.err conftest.$ac_objext \
22991 conftest$ac_exeext conftest.$ac_ext
22994 LIBS=$ac_func_search_save_LIBS
22996 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
22997 echo "${ECHO_T}$ac_cv_search_gettext" >&6
22998 if test "$ac_cv_search_gettext" != no; then
22999 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
23002 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
23003 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
23004 { (exit 1); exit 1; }; }
23007 if test "${ac_cv_header_libintl_h+set}" = set; then
23008 echo "$as_me:$LINENO: checking for libintl.h" >&5
23009 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23010 if test "${ac_cv_header_libintl_h+set}" = set; then
23011 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23014 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23016 # Is the header compilable?
23017 echo "$as_me:$LINENO: checking libintl.h usability" >&5
23018 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
23019 cat >conftest.$ac_ext <<_ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h. */
23025 $ac_includes_default
23026 #include <libintl.h>
23028 rm -f conftest.$ac_objext
23029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23030 (eval $ac_compile) 2>conftest.er1
23032 grep -v '^ *+' conftest.er1 >conftest.err
23034 cat conftest.err >&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); } &&
23037 { ac_try='test -z "$ac_c_werror_flag"
23038 || test ! -s conftest.err'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; } &&
23044 { ac_try='test -s conftest.$ac_objext'
23045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046 (eval $ac_try) 2>&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; }; then
23050 ac_header_compiler=yes
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_header_compiler=no
23057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23059 echo "${ECHO_T}$ac_header_compiler" >&6
23061 # Is the header present?
23062 echo "$as_me:$LINENO: checking libintl.h presence" >&5
23063 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
23064 cat >conftest.$ac_ext <<_ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23070 #include <libintl.h>
23072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23075 grep -v '^ *+' conftest.er1 >conftest.err
23077 cat conftest.err >&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } >/dev/null; then
23080 if test -s conftest.err; then
23081 ac_cpp_err=$ac_c_preproc_warn_flag
23082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23089 if test -z "$ac_cpp_err"; then
23090 ac_header_preproc=yes
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23095 ac_header_preproc=no
23097 rm -f conftest.err conftest.$ac_ext
23098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 echo "${ECHO_T}$ac_header_preproc" >&6
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23104 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23105 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23107 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23108 ac_header_preproc=yes
23111 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23112 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
23114 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
23115 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23116 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23117 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
23118 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23120 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23121 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23122 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23125 ## ---------------------------------------- ##
23126 ## Report this to pgsql-bugs@postgresql.org ##
23127 ## ---------------------------------------- ##
23130 sed "s/^/$as_me: WARNING: /" >&2
23133 echo "$as_me:$LINENO: checking for libintl.h" >&5
23134 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
23135 if test "${ac_cv_header_libintl_h+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23138 ac_cv_header_libintl_h=$ac_header_preproc
23140 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23141 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
23144 if test $ac_cv_header_libintl_h = yes; then
23147 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
23148 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
23149 { (exit 1); exit 1; }; }
23153 for ac_prog in msgfmt
23155 # Extract the first word of "$ac_prog", so it can be a program name with args.
23156 set dummy $ac_prog; ac_word=$2
23157 echo "$as_me:$LINENO: checking for $ac_word" >&5
23158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23159 if test "${ac_cv_prog_MSGFMT+set}" = set; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
23162 if test -n "$MSGFMT"; then
23163 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
23165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23166 for as_dir in $PATH
23169 test -z "$as_dir" && as_dir=.
23170 for ac_exec_ext in '' $ac_executable_extensions; do
23171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23172 ac_cv_prog_MSGFMT="$ac_prog"
23173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23181 MSGFMT=$ac_cv_prog_MSGFMT
23182 if test -n "$MSGFMT"; then
23183 echo "$as_me:$LINENO: result: $MSGFMT" >&5
23184 echo "${ECHO_T}$MSGFMT" >&6
23186 echo "$as_me:$LINENO: result: no" >&5
23187 echo "${ECHO_T}no" >&6
23190 test -n "$MSGFMT" && break
23193 if test -z "$MSGFMT"; then
23194 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
23195 echo "$as_me: error: msgfmt is required for NLS" >&2;}
23196 { (exit 1); exit 1; }; }
23198 for ac_prog in msgmerge
23200 # Extract the first word of "$ac_prog", so it can be a program name with args.
23201 set dummy $ac_prog; ac_word=$2
23202 echo "$as_me:$LINENO: checking for $ac_word" >&5
23203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23204 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23207 if test -n "$MSGMERGE"; then
23208 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
23210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23211 for as_dir in $PATH
23214 test -z "$as_dir" && as_dir=.
23215 for ac_exec_ext in '' $ac_executable_extensions; do
23216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23217 ac_cv_prog_MSGMERGE="$ac_prog"
23218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23226 MSGMERGE=$ac_cv_prog_MSGMERGE
23227 if test -n "$MSGMERGE"; then
23228 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23229 echo "${ECHO_T}$MSGMERGE" >&6
23231 echo "$as_me:$LINENO: result: no" >&5
23232 echo "${ECHO_T}no" >&6
23235 test -n "$MSGMERGE" && break
23238 for ac_prog in xgettext
23240 # Extract the first word of "$ac_prog", so it can be a program name with args.
23241 set dummy $ac_prog; ac_word=$2
23242 echo "$as_me:$LINENO: checking for $ac_word" >&5
23243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23244 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 if test -n "$XGETTEXT"; then
23248 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
23250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23251 for as_dir in $PATH
23254 test -z "$as_dir" && as_dir=.
23255 for ac_exec_ext in '' $ac_executable_extensions; do
23256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23257 ac_cv_prog_XGETTEXT="$ac_prog"
23258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23266 XGETTEXT=$ac_cv_prog_XGETTEXT
23267 if test -n "$XGETTEXT"; then
23268 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23269 echo "${ECHO_T}$XGETTEXT" >&6
23271 echo "$as_me:$LINENO: result: no" >&5
23272 echo "${ECHO_T}no" >&6
23275 test -n "$XGETTEXT" && break
23279 # Note: share/locale is always the default, independent of $datadir
23280 localedir='${prefix}/share/locale'
23285 # Check for Tcl configuration script tclConfig.sh
23286 if test "$with_tcl" = yes; then
23287 for ac_prog in tclsh tcl
23289 # Extract the first word of "$ac_prog", so it can be a program name with args.
23290 set dummy $ac_prog; ac_word=$2
23291 echo "$as_me:$LINENO: checking for $ac_word" >&5
23292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23293 if test "${ac_cv_path_TCLSH+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23298 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
23301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23302 for as_dir in $PATH
23305 test -z "$as_dir" && as_dir=.
23306 for ac_exec_ext in '' $ac_executable_extensions; do
23307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23308 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
23309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23318 TCLSH=$ac_cv_path_TCLSH
23320 if test -n "$TCLSH"; then
23321 echo "$as_me:$LINENO: result: $TCLSH" >&5
23322 echo "${ECHO_T}$TCLSH" >&6
23324 echo "$as_me:$LINENO: result: no" >&5
23325 echo "${ECHO_T}no" >&6
23328 test -n "$TCLSH" && break
23331 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
23332 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
23333 # Let user override test
23334 if test -z "$TCL_CONFIG_SH"; then
23335 pgac_test_dirs="$with_tclconfig"
23337 set X $pgac_test_dirs; shift
23338 if test $# -eq 0; then
23339 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
23340 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
23341 { (exit 1); exit 1; }; }
23342 set X `echo 'puts $auto_path' | $TCLSH`; shift
23346 if test -r "$pgac_dir/tclConfig.sh"; then
23347 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
23353 if test -z "$TCL_CONFIG_SH"; then
23354 echo "$as_me:$LINENO: result: no" >&5
23355 echo "${ECHO_T}no" >&6
23356 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
23357 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
23358 { (exit 1); exit 1; }; }
23360 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
23361 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
23367 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
23368 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
23369 eval TCL_LIBS=\"$TCL_LIBS\"
23370 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
23371 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
23373 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
23374 ac_save_CPPFLAGS=$CPPFLAGS
23375 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
23376 if test "${ac_cv_header_tcl_h+set}" = set; then
23377 echo "$as_me:$LINENO: checking for tcl.h" >&5
23378 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
23379 if test "${ac_cv_header_tcl_h+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
23383 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
23385 # Is the header compilable?
23386 echo "$as_me:$LINENO: checking tcl.h usability" >&5
23387 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
23388 cat >conftest.$ac_ext <<_ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 $ac_includes_default
23397 rm -f conftest.$ac_objext
23398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23399 (eval $ac_compile) 2>conftest.er1
23401 grep -v '^ *+' conftest.er1 >conftest.err
23403 cat conftest.err >&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } &&
23406 { ac_try='test -z "$ac_c_werror_flag"
23407 || test ! -s conftest.err'
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; } &&
23413 { ac_try='test -s conftest.$ac_objext'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 ac_header_compiler=yes
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23424 ac_header_compiler=no
23426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23427 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23428 echo "${ECHO_T}$ac_header_compiler" >&6
23430 # Is the header present?
23431 echo "$as_me:$LINENO: checking tcl.h presence" >&5
23432 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
23433 cat >conftest.$ac_ext <<_ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23444 grep -v '^ *+' conftest.er1 >conftest.err
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } >/dev/null; then
23449 if test -s conftest.err; then
23450 ac_cpp_err=$ac_c_preproc_warn_flag
23451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23458 if test -z "$ac_cpp_err"; then
23459 ac_header_preproc=yes
23461 echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23464 ac_header_preproc=no
23466 rm -f conftest.err conftest.$ac_ext
23467 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23468 echo "${ECHO_T}$ac_header_preproc" >&6
23470 # So? What about this header?
23471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23473 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23474 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23475 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
23476 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
23477 ac_header_preproc=yes
23480 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
23481 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
23482 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
23483 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
23484 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
23485 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
23486 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
23487 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23488 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
23489 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
23490 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
23491 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
23494 ## ---------------------------------------- ##
23495 ## Report this to pgsql-bugs@postgresql.org ##
23496 ## ---------------------------------------- ##
23499 sed "s/^/$as_me: WARNING: /" >&2
23502 echo "$as_me:$LINENO: checking for tcl.h" >&5
23503 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
23504 if test "${ac_cv_header_tcl_h+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23507 ac_cv_header_tcl_h=$ac_header_preproc
23509 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
23510 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
23513 if test $ac_cv_header_tcl_h = yes; then
23516 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
23517 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
23518 { (exit 1); exit 1; }; }
23522 CPPFLAGS=$ac_save_CPPFLAGS
23526 # Check for DocBook and tools
23528 for ac_prog in onsgmls nsgmls
23530 # Extract the first word of "$ac_prog", so it can be a program name with args.
23531 set dummy $ac_prog; ac_word=$2
23532 echo "$as_me:$LINENO: checking for $ac_word" >&5
23533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23534 if test "${ac_cv_prog_NSGMLS+set}" = set; then
23535 echo $ECHO_N "(cached) $ECHO_C" >&6
23537 if test -n "$NSGMLS"; then
23538 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
23540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23541 for as_dir in $PATH
23544 test -z "$as_dir" && as_dir=.
23545 for ac_exec_ext in '' $ac_executable_extensions; do
23546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23547 ac_cv_prog_NSGMLS="$ac_prog"
23548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23556 NSGMLS=$ac_cv_prog_NSGMLS
23557 if test -n "$NSGMLS"; then
23558 echo "$as_me:$LINENO: result: $NSGMLS" >&5
23559 echo "${ECHO_T}$NSGMLS" >&6
23561 echo "$as_me:$LINENO: result: no" >&5
23562 echo "${ECHO_T}no" >&6
23565 test -n "$NSGMLS" && break
23568 for ac_prog in openjade jade
23570 # Extract the first word of "$ac_prog", so it can be a program name with args.
23571 set dummy $ac_prog; ac_word=$2
23572 echo "$as_me:$LINENO: checking for $ac_word" >&5
23573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23574 if test "${ac_cv_prog_JADE+set}" = set; then
23575 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 if test -n "$JADE"; then
23578 ac_cv_prog_JADE="$JADE" # Let the user override the test.
23580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23581 for as_dir in $PATH
23584 test -z "$as_dir" && as_dir=.
23585 for ac_exec_ext in '' $ac_executable_extensions; do
23586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23587 ac_cv_prog_JADE="$ac_prog"
23588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23596 JADE=$ac_cv_prog_JADE
23597 if test -n "$JADE"; then
23598 echo "$as_me:$LINENO: result: $JADE" >&5
23599 echo "${ECHO_T}$JADE" >&6
23601 echo "$as_me:$LINENO: result: no" >&5
23602 echo "${ECHO_T}no" >&6
23605 test -n "$JADE" && break
23609 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
23610 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
23611 if test "${pgac_cv_check_docbook+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23614 cat >conftest.sgml <<EOF
23615 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
23617 <title>test</title>
23619 <title>random</title>
23621 <title>testsect</title>
23628 pgac_cv_check_docbook=no
23630 if test -n "$NSGMLS"; then
23631 $NSGMLS -s conftest.sgml 1>&5 2>&1
23632 if test $? -eq 0; then
23633 pgac_cv_check_docbook=yes
23636 rm -f conftest.sgml
23638 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
23639 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
23641 have_docbook=$pgac_cv_check_docbook
23644 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
23645 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
23646 if test "${pgac_cv_path_stylesheets+set}" = set; then
23647 echo $ECHO_N "(cached) $ECHO_C" >&6
23649 if test -n "$DOCBOOKSTYLE"; then
23650 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
23652 for pgac_prefix in /usr /usr/local /opt; do
23653 for pgac_infix in share lib; do
23654 for pgac_postfix in \
23655 sgml/stylesheets/nwalsh-modular \
23656 sgml/stylesheets/docbook \
23657 sgml/docbook-dsssl \
23658 sgml/docbook/dsssl/modular \
23659 sgml/docbook/stylesheet/dsssl/modular \
23660 sgml/docbook/dsssl-stylesheets
23662 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
23663 if test -r "$pgac_candidate/html/docbook.dsl" \
23664 && test -r "$pgac_candidate/print/docbook.dsl"
23666 pgac_cv_path_stylesheets=$pgac_candidate
23675 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
23677 if test -n "$DOCBOOKSTYLE"; then
23678 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
23679 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
23681 echo "$as_me:$LINENO: result: no" >&5
23682 echo "${ECHO_T}no" >&6
23684 if test -n "$DOCBOOKSTYLE"; then
23685 for ac_prog in collateindex.pl
23687 # Extract the first word of "$ac_prog", so it can be a program name with args.
23688 set dummy $ac_prog; ac_word=$2
23689 echo "$as_me:$LINENO: checking for $ac_word" >&5
23690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23691 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
23692 echo $ECHO_N "(cached) $ECHO_C" >&6
23694 case $COLLATEINDEX in
23696 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
23699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23700 for as_dir in $DOCBOOKSTYLE/bin $PATH
23703 test -z "$as_dir" && as_dir=.
23704 for ac_exec_ext in '' $ac_executable_extensions; do
23705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23706 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
23707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23716 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
23718 if test -n "$COLLATEINDEX"; then
23719 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
23720 echo "${ECHO_T}$COLLATEINDEX" >&6
23722 echo "$as_me:$LINENO: result: no" >&5
23723 echo "${ECHO_T}no" >&6
23726 test -n "$COLLATEINDEX" && break
23730 for ac_prog in collateindex.pl
23732 # Extract the first word of "$ac_prog", so it can be a program name with args.
23733 set dummy $ac_prog; ac_word=$2
23734 echo "$as_me:$LINENO: checking for $ac_word" >&5
23735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23736 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 case $COLLATEINDEX in
23741 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
23744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23745 for as_dir in $PATH
23748 test -z "$as_dir" && as_dir=.
23749 for ac_exec_ext in '' $ac_executable_extensions; do
23750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23751 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
23752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23761 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
23763 if test -n "$COLLATEINDEX"; then
23764 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
23765 echo "${ECHO_T}$COLLATEINDEX" >&6
23767 echo "$as_me:$LINENO: result: no" >&5
23768 echo "${ECHO_T}no" >&6
23771 test -n "$COLLATEINDEX" && break
23775 for ac_prog in sgmlspl
23777 # Extract the first word of "$ac_prog", so it can be a program name with args.
23778 set dummy $ac_prog; ac_word=$2
23779 echo "$as_me:$LINENO: checking for $ac_word" >&5
23780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23781 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23784 if test -n "$SGMLSPL"; then
23785 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
23787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23788 for as_dir in $PATH
23791 test -z "$as_dir" && as_dir=.
23792 for ac_exec_ext in '' $ac_executable_extensions; do
23793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23794 ac_cv_prog_SGMLSPL="$ac_prog"
23795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23803 SGMLSPL=$ac_cv_prog_SGMLSPL
23804 if test -n "$SGMLSPL"; then
23805 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
23806 echo "${ECHO_T}$SGMLSPL" >&6
23808 echo "$as_me:$LINENO: result: no" >&5
23809 echo "${ECHO_T}no" >&6
23812 test -n "$SGMLSPL" && break
23818 # We have to run the thread test near the end so we have all our symbols
23819 # defined. Cross compiling throws a warning.
23821 if test "$enable_thread_safety_force" = yes; then
23822 if test "$PORTNAME" != "win32"
23824 { echo "$as_me:$LINENO: WARNING:
23825 *** Skipping thread test program. --enable-thread-safety-force was used.
23826 *** Run the program in src/test/thread on the your machine and add proper
23827 *** locking function calls to your applications to guarantee thread safety.
23829 echo "$as_me: WARNING:
23830 *** Skipping thread test program. --enable-thread-safety-force was used.
23831 *** Run the program in src/test/thread on the your machine and add proper
23832 *** locking function calls to your applications to guarantee thread safety.
23835 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
23836 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
23838 elif test "$enable_thread_safety" = yes; then
23839 if test "$PORTNAME" != "win32"
23841 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
23842 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
23846 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
23847 LIBS="$LIBS $PTHREAD_LIBS"
23848 if test "$cross_compiling" = yes; then
23849 echo "$as_me:$LINENO: result: maybe" >&5
23850 echo "${ECHO_T}maybe" >&6
23851 { echo "$as_me:$LINENO: WARNING:
23852 *** Skipping thread test program because of cross-compile build.
23853 *** Run the program in src/test/thread on the target machine.
23855 echo "$as_me: WARNING:
23856 *** Skipping thread test program because of cross-compile build.
23857 *** Run the program in src/test/thread on the target machine.
23860 cat >conftest.$ac_ext <<_ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23866 #include "$srcdir/src/test/thread/thread_test.c"
23868 rm -f conftest$ac_exeext
23869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23870 (eval $ac_link) 2>&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; }; then
23879 echo "$as_me:$LINENO: result: yes" >&5
23880 echo "${ECHO_T}yes" >&6
23882 echo "$as_me: program exited with status $ac_status" >&5
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23886 ( exit $ac_status )
23887 echo "$as_me:$LINENO: result: no" >&5
23888 echo "${ECHO_T}no" >&6
23889 { { echo "$as_me:$LINENO: error: thread test program failed
23890 This platform is not thread-safe. Check the file 'config.log'for the
23893 You can use the configure option --enable-thread-safety-force to force
23894 threads to be enabled. But you must then run the program in
23895 src/test/thread and add locking function calls to your applications to
23896 guarantee thread safety." >&5
23897 echo "$as_me: error: thread test program failed
23898 This platform is not thread-safe. Check the file 'config.log'for the
23901 You can use the configure option --enable-thread-safety-force to force
23902 threads to be enabled. But you must then run the program in
23903 src/test/thread and add locking function calls to your applications to
23904 guarantee thread safety." >&2;}
23905 { (exit 1); exit 1; }; }
23907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23912 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
23913 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
23917 # prepare build tree if outside source tree
23918 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
23919 # Note 2: /bin/pwd might be better than shell's built-in at getting
23920 # a symlink-free name.
23921 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
23925 if test "$no_create" != yes; then
23926 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
23927 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
23928 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
23929 || { { echo "$as_me:$LINENO: error: failed" >&5
23930 echo "$as_me: error: failed" >&2;}
23931 { (exit 1); exit 1; }; }
23932 echo "$as_me:$LINENO: result: done" >&5
23933 echo "${ECHO_T}done" >&6
23939 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
23942 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}"
23945 if test "$PORTNAME" = "win32"; then
23946 ac_config_commands="$ac_config_commands check_win32_symlinks"
23950 ac_config_headers="$ac_config_headers src/include/pg_config.h"
23953 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
23956 cat >confcache <<\_ACEOF
23957 # This file is a shell script that caches the results of configure
23958 # tests run on this system so they can be shared between configure
23959 # scripts and configure runs, see configure's option --config-cache.
23960 # It is not useful on other systems. If it contains results you don't
23961 # want to keep, you may remove or edit it.
23963 # config.status only pays attention to the cache file if you give it
23964 # the --recheck option to rerun configure.
23966 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23967 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23968 # following values.
23972 # The following way of writing the cache mishandles newlines in values,
23973 # but we know of no workaround that is simple, portable, and efficient.
23974 # So, don't put newlines in cache variables' values.
23975 # Ultrix sh set writes to stderr and can't be redirected directly,
23976 # and sets the high bit in the cache file unless we assign to the vars.
23979 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23981 # `set' does not quote correctly, so add quotes (double-quote
23982 # substitution turns \\\\ into \\, and sed turns \\ into \).
23985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23988 # `set' quotes correctly as required by POSIX, so do not add quotes.
23990 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23997 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23999 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24001 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24002 if test -w $cache_file; then
24003 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24004 cat confcache >$cache_file
24006 echo "not updating unwritable cache $cache_file"
24011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24012 # Let make expand exec_prefix.
24013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24015 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24016 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24017 # trailing colons and then remove the whole line if VPATH becomes empty
24018 # (actually we leave an empty line to preserve line numbers).
24019 if test "x$srcdir" = x.; then
24020 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24021 s/:*\$(srcdir):*/:/;
24022 s/:*\${srcdir}:*/:/;
24024 s/^\([^=]*=[ ]*\):*/\1/;
24030 DEFS=-DHAVE_CONFIG_H
24034 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24035 # 1. Remove the extension, and $U if already installed.
24036 ac_i=`echo "$ac_i" |
24037 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24039 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24040 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24042 LIBOBJS=$ac_libobjs
24044 LTLIBOBJS=$ac_ltlibobjs
24048 : ${CONFIG_STATUS=./config.status}
24049 ac_clean_files_save=$ac_clean_files
24050 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24051 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24052 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24053 cat >$CONFIG_STATUS <<_ACEOF
24055 # Generated by $as_me.
24056 # Run this file to recreate the current configuration.
24057 # Compiler output produced by configure, useful for debugging
24058 # configure, is in config.log if it exists.
24061 ac_cs_recheck=false
24063 SHELL=\${CONFIG_SHELL-$SHELL}
24066 cat >>$CONFIG_STATUS <<\_ACEOF
24067 ## --------------------- ##
24068 ## M4sh Initialization. ##
24069 ## --------------------- ##
24071 # Be Bourne compatible
24072 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24075 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24076 # is contrary to our usage. Disable this feature.
24077 alias -g '${1+"$@"}'='"$@"'
24078 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24081 DUALCASE=1; export DUALCASE # for MKS sh
24083 # Support unset when possible.
24084 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24091 # Work around bugs in pre-3.0 UWIN ksh.
24092 $as_unset ENV MAIL MAILPATH
24099 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24100 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24101 LC_TELEPHONE LC_TIME
24103 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24104 eval $as_var=C; export $as_var
24110 # Required to use basename.
24111 if expr a : '\(a\)' >/dev/null 2>&1; then
24117 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24118 as_basename=basename
24124 # Name of the executable.
24125 as_me=`$as_basename "$0" ||
24126 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24127 X"$0" : 'X\(//\)$' \| \
24128 X"$0" : 'X\(/\)$' \| \
24129 . : '\(.\)' 2>/dev/null ||
24131 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24132 /^X\/\(\/\/\)$/{ s//\1/; q; }
24133 /^X\/\(\/\).*/{ s//\1/; q; }
24137 # PATH needs CR, and LINENO needs CR and PATH.
24138 # Avoid depending upon Character Ranges.
24139 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24140 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24141 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24142 as_cr_digits='0123456789'
24143 as_cr_alnum=$as_cr_Letters$as_cr_digits
24145 # The user is always right.
24146 if test "${PATH_SEPARATOR+set}" != set; then
24147 echo "#! /bin/sh" >conf$$.sh
24148 echo "exit 0" >>conf$$.sh
24150 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24159 as_lineno_1=$LINENO
24160 as_lineno_2=$LINENO
24161 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24162 test "x$as_lineno_1" != "x$as_lineno_2" &&
24163 test "x$as_lineno_3" = "x$as_lineno_2" || {
24164 # Find who we are. Look in the path if we contain no path at all
24167 *[\\/]* ) as_myself=$0 ;;
24168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24169 for as_dir in $PATH
24172 test -z "$as_dir" && as_dir=.
24173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24178 # We did not find ourselves, most probably we were run as `sh COMMAND'
24179 # in which case we are not to be found in the path.
24180 if test "x$as_myself" = x; then
24183 if test ! -f "$as_myself"; then
24184 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24185 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24186 { (exit 1); exit 1; }; }
24188 case $CONFIG_SHELL in
24190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24194 test -z "$as_dir" && as_dir=.
24195 for as_base in sh bash ksh sh5; do
24198 if ("$as_dir/$as_base" -c '
24199 as_lineno_1=$LINENO
24200 as_lineno_2=$LINENO
24201 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24202 test "x$as_lineno_1" != "x$as_lineno_2" &&
24203 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24204 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24205 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24206 CONFIG_SHELL=$as_dir/$as_base
24207 export CONFIG_SHELL
24208 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24216 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24217 # uniformly replaced by the line number. The first 'sed' inserts a
24218 # line-number line before each line; the second 'sed' does the real
24219 # work. The second script uses 'N' to pair each line-number line
24220 # with the numbered line, and appends trailing '-' during
24221 # substitution so that $LINENO is not a special case at line end.
24222 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24223 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24224 sed '=' <$as_myself |
24229 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24232 s,^['$as_cr_digits']*\n,,
24233 ' >$as_me.lineno &&
24234 chmod +x $as_me.lineno ||
24235 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24236 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24237 { (exit 1); exit 1; }; }
24239 # Don't try to exec as it changes $[0], causing all sort of problems
24240 # (the dirname of $[0] is not the place where we might find the
24241 # original and so on. Autoconf is especially sensible to this).
24243 # Exit status is that of the last command.
24248 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24249 *c*,-n*) ECHO_N= ECHO_C='
24251 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24252 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24255 if expr a : '\(a\)' >/dev/null 2>&1; then
24261 rm -f conf$$ conf$$.exe conf$$.file
24263 if ln -s conf$$.file conf$$ 2>/dev/null; then
24264 # We could just check for DJGPP; but this test a) works b) is more generic
24265 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24266 if test -f conf$$.exe; then
24267 # Don't use ln at all; we don't have any links
24272 elif ln conf$$.file conf$$ 2>/dev/null; then
24277 rm -f conf$$ conf$$.exe conf$$.file
24279 if mkdir -p . 2>/dev/null; then
24282 test -d ./-p && rmdir ./-p
24286 as_executable_p="test -f"
24288 # Sed expression to map a string onto a valid CPP name.
24289 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24291 # Sed expression to map a string onto a valid variable name.
24292 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24296 # We need space, tab and new line, in precisely that order.
24306 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24307 # report actual input values of CONFIG_FILES etc. instead of their
24308 # values after options handling. Logging --version etc. is OK.
24312 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24313 ## Running $as_me. ##
24318 This file was extended by PostgreSQL $as_me 8.3devel, which was
24319 generated by GNU Autoconf 2.59. Invocation command line was
24321 CONFIG_FILES = $CONFIG_FILES
24322 CONFIG_HEADERS = $CONFIG_HEADERS
24323 CONFIG_LINKS = $CONFIG_LINKS
24324 CONFIG_COMMANDS = $CONFIG_COMMANDS
24328 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24332 # Files that config.status was made for.
24333 if test -n "$ac_config_files"; then
24334 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24337 if test -n "$ac_config_headers"; then
24338 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24341 if test -n "$ac_config_links"; then
24342 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24345 if test -n "$ac_config_commands"; then
24346 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24349 cat >>$CONFIG_STATUS <<\_ACEOF
24352 \`$as_me' instantiates files from templates according to the
24353 current configuration.
24355 Usage: $0 [OPTIONS] [FILE]...
24357 -h, --help print this help, then exit
24358 -V, --version print version number, then exit
24359 -q, --quiet do not print progress messages
24360 -d, --debug don't remove temporary files
24361 --recheck update $as_me by reconfiguring in the same conditions
24362 --file=FILE[:TEMPLATE]
24363 instantiate the configuration file FILE
24364 --header=FILE[:TEMPLATE]
24365 instantiate the configuration header FILE
24367 Configuration files:
24370 Configuration headers:
24373 Configuration links:
24376 Configuration commands:
24379 Report bugs to <bug-autoconf@gnu.org>."
24382 cat >>$CONFIG_STATUS <<_ACEOF
24384 PostgreSQL config.status 8.3devel
24385 configured by $0, generated by GNU Autoconf 2.59,
24386 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24388 Copyright (C) 2003 Free Software Foundation, Inc.
24389 This config.status script is free software; the Free Software Foundation
24390 gives unlimited permission to copy, distribute and modify it."
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395 # If no file are specified by the user, then we need to provide default
24396 # value. By we need to know if files were specified by the user.
24402 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24403 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24411 *) # This is not an option, so the user has probably given explicit
24414 ac_need_defaults=false;;
24418 # Handling of the options.
24420 cat >>$CONFIG_STATUS <<\_ACEOF
24421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24423 --version | --vers* | -V )
24424 echo "$ac_cs_version"; exit 0 ;;
24426 # Conflict between --help and --header
24427 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24428 Try \`$0 --help' for more information." >&5
24429 echo "$as_me: error: ambiguous option: $1
24430 Try \`$0 --help' for more information." >&2;}
24431 { (exit 1); exit 1; }; };;
24432 --help | --hel | -h )
24433 echo "$ac_cs_usage"; exit 0 ;;
24434 --debug | --d* | -d )
24436 --file | --fil | --fi | --f )
24438 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24439 ac_need_defaults=false;;
24440 --header | --heade | --head | --hea )
24442 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24443 ac_need_defaults=false;;
24444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24445 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24448 # This is an error.
24449 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24450 Try \`$0 --help' for more information." >&5
24451 echo "$as_me: error: unrecognized option: $1
24452 Try \`$0 --help' for more information." >&2;}
24453 { (exit 1); exit 1; }; } ;;
24455 *) ac_config_targets="$ac_config_targets $1" ;;
24461 ac_configure_extra_args=
24463 if $ac_cs_silent; then
24465 ac_configure_extra_args="$ac_configure_extra_args --silent"
24469 cat >>$CONFIG_STATUS <<_ACEOF
24470 if \$ac_cs_recheck; then
24471 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24472 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24481 cat >>$CONFIG_STATUS <<\_ACEOF
24482 for ac_config_target in $ac_config_targets
24484 case "$ac_config_target" in
24485 # Handling of arguments.
24486 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
24487 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
24488 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
24489 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
24490 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
24491 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
24492 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
24493 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
24494 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
24495 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
24496 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
24497 "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
24498 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24499 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24500 { (exit 1); exit 1; }; };;
24504 # If the user did not use the arguments to specify the items to instantiate,
24505 # then the envvar interface is used. Set only those that are not.
24506 # We use the long form for the default assignment because of an extremely
24507 # bizarre bug on SunOS 4.1.3.
24508 if $ac_need_defaults; then
24509 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24510 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24511 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24515 # Have a temporary directory for convenience. Make it in the build tree
24516 # simply because there is no reason to put it here, and in addition,
24517 # creating and moving files from /tmp can sometimes cause problems.
24518 # Create a temporary directory, and hook for its removal unless debugging.
24521 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24522 trap '{ (exit 1); exit 1; }' 1 2 13 15
24525 # Create a (secure) tmp directory for tmp files.
24528 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24529 test -n "$tmp" && test -d "$tmp"
24532 tmp=./confstat$$-$RANDOM
24533 (umask 077 && mkdir $tmp)
24536 echo "$me: cannot create a temporary directory in ." >&2
24537 { (exit 1); exit 1; }
24542 cat >>$CONFIG_STATUS <<_ACEOF
24545 # CONFIG_FILES section.
24548 # No need to generate the scripts if there are no CONFIG_FILES.
24549 # This happens for instance when ./config.status config.h
24550 if test -n "\$CONFIG_FILES"; then
24551 # Protect against being on the right side of a sed subst in config.status.
24552 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24553 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24554 s,@SHELL@,$SHELL,;t t
24555 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24556 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24557 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24558 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24559 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24560 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24561 s,@exec_prefix@,$exec_prefix,;t t
24562 s,@prefix@,$prefix,;t t
24563 s,@program_transform_name@,$program_transform_name,;t t
24564 s,@bindir@,$bindir,;t t
24565 s,@sbindir@,$sbindir,;t t
24566 s,@libexecdir@,$libexecdir,;t t
24567 s,@datadir@,$datadir,;t t
24568 s,@sysconfdir@,$sysconfdir,;t t
24569 s,@sharedstatedir@,$sharedstatedir,;t t
24570 s,@localstatedir@,$localstatedir,;t t
24571 s,@libdir@,$libdir,;t t
24572 s,@includedir@,$includedir,;t t
24573 s,@oldincludedir@,$oldincludedir,;t t
24574 s,@infodir@,$infodir,;t t
24575 s,@mandir@,$mandir,;t t
24576 s,@build_alias@,$build_alias,;t t
24577 s,@host_alias@,$host_alias,;t t
24578 s,@target_alias@,$target_alias,;t t
24579 s,@DEFS@,$DEFS,;t t
24580 s,@ECHO_C@,$ECHO_C,;t t
24581 s,@ECHO_N@,$ECHO_N,;t t
24582 s,@ECHO_T@,$ECHO_T,;t t
24583 s,@LIBS@,$LIBS,;t t
24584 s,@configure_args@,$configure_args,;t t
24585 s,@build@,$build,;t t
24586 s,@build_cpu@,$build_cpu,;t t
24587 s,@build_vendor@,$build_vendor,;t t
24588 s,@build_os@,$build_os,;t t
24589 s,@host@,$host,;t t
24590 s,@host_cpu@,$host_cpu,;t t
24591 s,@host_vendor@,$host_vendor,;t t
24592 s,@host_os@,$host_os,;t t
24593 s,@PORTNAME@,$PORTNAME,;t t
24594 s,@docdir@,$docdir,;t t
24595 s,@enable_nls@,$enable_nls,;t t
24596 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
24597 s,@default_port@,$default_port,;t t
24598 s,@enable_shared@,$enable_shared,;t t
24599 s,@enable_rpath@,$enable_rpath,;t t
24600 s,@enable_debug@,$enable_debug,;t t
24601 s,@enable_profiling@,$enable_profiling,;t t
24602 s,@DTRACE@,$DTRACE,;t t
24603 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
24604 s,@enable_dtrace@,$enable_dtrace,;t t
24606 s,@CFLAGS@,$CFLAGS,;t t
24607 s,@LDFLAGS@,$LDFLAGS,;t t
24608 s,@CPPFLAGS@,$CPPFLAGS,;t t
24609 s,@ac_ct_CC@,$ac_ct_CC,;t t
24610 s,@EXEEXT@,$EXEEXT,;t t
24611 s,@OBJEXT@,$OBJEXT,;t t
24615 s,@autodepend@,$autodepend,;t t
24616 s,@INCLUDES@,$INCLUDES,;t t
24617 s,@enable_thread_safety@,$enable_thread_safety,;t t
24618 s,@with_tcl@,$with_tcl,;t t
24619 s,@with_perl@,$with_perl,;t t
24620 s,@with_python@,$with_python,;t t
24621 s,@with_krb5@,$with_krb5,;t t
24622 s,@krb_srvtab@,$krb_srvtab,;t t
24623 s,@with_pam@,$with_pam,;t t
24624 s,@with_ldap@,$with_ldap,;t t
24625 s,@with_bonjour@,$with_bonjour,;t t
24626 s,@with_openssl@,$with_openssl,;t t
24627 s,@with_ossp_uuid@,$with_ossp_uuid,;t t
24628 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
24629 s,@with_libxml@,$with_libxml,;t t
24630 s,@with_libxslt@,$with_libxslt,;t t
24631 s,@with_zlib@,$with_zlib,;t t
24632 s,@EGREP@,$EGREP,;t t
24633 s,@ELF_SYS@,$ELF_SYS,;t t
24634 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
24636 s,@FLEX@,$FLEX,;t t
24637 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
24638 s,@LN_S@,$LN_S,;t t
24640 s,@with_gnu_ld@,$with_gnu_ld,;t t
24641 s,@ld_R_works@,$ld_R_works,;t t
24642 s,@RANLIB@,$RANLIB,;t t
24643 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24645 s,@STRIP@,$STRIP,;t t
24646 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24647 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
24648 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
24649 s,@YACC@,$YACC,;t t
24650 s,@YFLAGS@,$YFLAGS,;t t
24651 s,@PERL@,$PERL,;t t
24652 s,@perl_archlibexp@,$perl_archlibexp,;t t
24653 s,@perl_privlibexp@,$perl_privlibexp,;t t
24654 s,@perl_useshrplib@,$perl_useshrplib,;t t
24655 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
24656 s,@PYTHON@,$PYTHON,;t t
24657 s,@python_version@,$python_version,;t t
24658 s,@python_configdir@,$python_configdir,;t t
24659 s,@python_includespec@,$python_includespec,;t t
24660 s,@python_libdir@,$python_libdir,;t t
24661 s,@python_libspec@,$python_libspec,;t t
24662 s,@python_additional_libs@,$python_additional_libs,;t t
24663 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
24664 s,@LIBOBJS@,$LIBOBJS,;t t
24665 s,@acx_pthread_config@,$acx_pthread_config,;t t
24666 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
24667 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
24668 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
24669 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
24670 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
24671 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
24672 s,@MSGFMT@,$MSGFMT,;t t
24673 s,@MSGMERGE@,$MSGMERGE,;t t
24674 s,@XGETTEXT@,$XGETTEXT,;t t
24675 s,@localedir@,$localedir,;t t
24676 s,@TCLSH@,$TCLSH,;t t
24677 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
24678 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
24679 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
24680 s,@TCL_LIBS@,$TCL_LIBS,;t t
24681 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24682 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
24683 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24684 s,@NSGMLS@,$NSGMLS,;t t
24685 s,@JADE@,$JADE,;t t
24686 s,@have_docbook@,$have_docbook,;t t
24687 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
24688 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
24689 s,@SGMLSPL@,$SGMLSPL,;t t
24690 s,@vpath_build@,$vpath_build,;t t
24691 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24696 cat >>$CONFIG_STATUS <<\_ACEOF
24697 # Split the substitutions into bite-sized pieces for seds with
24698 # small command number limits, like on Digital OSF/1 and HP-UX.
24699 ac_max_sed_lines=48
24700 ac_sed_frag=1 # Number of current file.
24701 ac_beg=1 # First line for current file.
24702 ac_end=$ac_max_sed_lines # Line after last line for current file.
24705 while $ac_more_lines; do
24706 if test $ac_beg -gt 1; then
24707 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24709 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24711 if test ! -s $tmp/subs.frag; then
24712 ac_more_lines=false
24714 # The purpose of the label and of the branching condition is to
24715 # speed up the sed processing (if there are no `@' at all, there
24716 # is no need to browse any of the substitutions).
24717 # These are the two extra sed commands mentioned above.
24719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24720 if test -z "$ac_sed_cmds"; then
24721 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24723 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24725 ac_sed_frag=`expr $ac_sed_frag + 1`
24727 ac_end=`expr $ac_end + $ac_max_sed_lines`
24730 if test -z "$ac_sed_cmds"; then
24733 fi # test -n "$CONFIG_FILES"
24736 cat >>$CONFIG_STATUS <<\_ACEOF
24737 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24740 - | *:- | *:-:* ) # input from stdin
24742 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24744 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24745 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24746 * ) ac_file_in=$ac_file.in ;;
24749 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24750 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24752 X"$ac_file" : 'X\(//\)[^/]' \| \
24753 X"$ac_file" : 'X\(//\)$' \| \
24754 X"$ac_file" : 'X\(/\)' \| \
24755 . : '\(.\)' 2>/dev/null ||
24757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24759 /^X\(\/\/\)$/{ s//\1/; q; }
24760 /^X\(\/\).*/{ s//\1/; q; }
24762 { if $as_mkdir_p; then
24767 while test ! -d "$as_dir"; do
24768 as_dirs="$as_dir $as_dirs"
24769 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24771 X"$as_dir" : 'X\(//\)[^/]' \| \
24772 X"$as_dir" : 'X\(//\)$' \| \
24773 X"$as_dir" : 'X\(/\)' \| \
24774 . : '\(.\)' 2>/dev/null ||
24776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24778 /^X\(\/\/\)$/{ s//\1/; q; }
24779 /^X\(\/\).*/{ s//\1/; q; }
24782 test ! -n "$as_dirs" || mkdir $as_dirs
24783 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24784 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24785 { (exit 1); exit 1; }; }; }
24789 if test "$ac_dir" != .; then
24790 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24791 # A "../" for each directory in $ac_dir_suffix.
24792 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24794 ac_dir_suffix= ac_top_builddir=
24798 .) # No --srcdir option. We are building in place.
24800 if test -z "$ac_top_builddir"; then
24803 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24805 [\\/]* | ?:[\\/]* ) # Absolute path.
24806 ac_srcdir=$srcdir$ac_dir_suffix;
24807 ac_top_srcdir=$srcdir ;;
24808 *) # Relative path.
24809 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24810 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24813 # Do not use `cd foo && pwd` to compute absolute paths, because
24814 # the directories may not exist.
24816 .) ac_abs_builddir="$ac_dir";;
24819 .) ac_abs_builddir=`pwd`;;
24820 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24821 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24824 case $ac_abs_builddir in
24825 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24827 case ${ac_top_builddir}. in
24828 .) ac_abs_top_builddir=$ac_abs_builddir;;
24829 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24830 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24833 case $ac_abs_builddir in
24834 .) ac_abs_srcdir=$ac_srcdir;;
24837 .) ac_abs_srcdir=$ac_abs_builddir;;
24838 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24839 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24842 case $ac_abs_builddir in
24843 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24845 case $ac_top_srcdir in
24846 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24847 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24848 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24854 if test x"$ac_file" != x-; then
24855 { echo "$as_me:$LINENO: creating $ac_file" >&5
24856 echo "$as_me: creating $ac_file" >&6;}
24859 # Let's still pretend it is `configure' which instantiates (i.e., don't
24860 # use $as_me), people would be surprised to read:
24861 # /* config.h. Generated by config.status. */
24862 if test x"$ac_file" = x-; then
24865 configure_input="$ac_file. "
24867 configure_input=$configure_input"Generated from `echo $ac_file_in |
24868 sed 's,.*/,,'` by configure."
24870 # First look for the input files in the build tree, otherwise in the
24872 ac_file_inputs=`IFS=:
24873 for f in $ac_file_in; do
24875 -) echo $tmp/stdin ;;
24877 # Absolute (can't be DOS-style, as IFS=:)
24878 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24879 echo "$as_me: error: cannot find input file: $f" >&2;}
24880 { (exit 1); exit 1; }; }
24883 if test -f "$f"; then
24886 elif test -f "$srcdir/$f"; then
24891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24892 echo "$as_me: error: cannot find input file: $f" >&2;}
24893 { (exit 1); exit 1; }; }
24896 done` || { (exit 1); exit 1; }
24898 cat >>$CONFIG_STATUS <<_ACEOF
24902 cat >>$CONFIG_STATUS <<\_ACEOF
24904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24905 s,@configure_input@,$configure_input,;t t
24906 s,@srcdir@,$ac_srcdir,;t t
24907 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24908 s,@top_srcdir@,$ac_top_srcdir,;t t
24909 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24910 s,@builddir@,$ac_builddir,;t t
24911 s,@abs_builddir@,$ac_abs_builddir,;t t
24912 s,@top_builddir@,$ac_top_builddir,;t t
24913 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24914 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24916 if test x"$ac_file" != x-; then
24917 mv $tmp/out $ac_file
24925 cat >>$CONFIG_STATUS <<\_ACEOF
24928 # CONFIG_HEADER section.
24931 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24932 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24934 # ac_d sets the value in "#define NAME VALUE" lines.
24935 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24936 ac_dB='[ ].*$,\1#\2'
24939 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24940 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24941 ac_uB='$,\1#\2define\3'
24945 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24946 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24948 - | *:- | *:-:* ) # input from stdin
24950 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24951 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24952 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24954 * ) ac_file_in=$ac_file.in ;;
24957 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24958 echo "$as_me: creating $ac_file" >&6;}
24960 # First look for the input files in the build tree, otherwise in the
24962 ac_file_inputs=`IFS=:
24963 for f in $ac_file_in; do
24965 -) echo $tmp/stdin ;;
24967 # Absolute (can't be DOS-style, as IFS=:)
24968 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24969 echo "$as_me: error: cannot find input file: $f" >&2;}
24970 { (exit 1); exit 1; }; }
24971 # Do quote $f, to prevent DOS paths from being IFS'd.
24974 if test -f "$f"; then
24977 elif test -f "$srcdir/$f"; then
24982 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24983 echo "$as_me: error: cannot find input file: $f" >&2;}
24984 { (exit 1); exit 1; }; }
24987 done` || { (exit 1); exit 1; }
24988 # Remove the trailing spaces.
24989 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24993 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24994 # `conftest.undefs', that substitutes the proper values into
24995 # config.h.in to produce config.h. The first handles `#define'
24996 # templates, and the second `#undef' templates.
24997 # And first: Protect against being on the right side of a sed subst in
24998 # config.status. Protect against being in an unquoted here document
24999 # in config.status.
25000 rm -f conftest.defines conftest.undefs
25001 # Using a here document instead of a string reduces the quoting nightmare.
25002 # Putting comments in sed scripts is not portable.
25004 # `end' is used to avoid that the second main sed command (meant for
25005 # 0-ary CPP macros) applies to n-ary macro definitions.
25006 # See the Autoconf documentation for `clear'.
25007 cat >confdef2sed.sed <<\_ACEOF
25012 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25014 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25017 # If some macros were called several times there might be several times
25018 # the same #defines, which is useless. Nevertheless, we may not want to
25019 # sort them, since we want the *last* AC-DEFINE to be honored.
25020 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25021 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25022 rm -f confdef2sed.sed
25024 # This sed command replaces #undef with comments. This is necessary, for
25025 # example, in the case of _POSIX_SOURCE, which is predefined and required
25026 # on some systems where configure will not decide to define it.
25027 cat >>conftest.undefs <<\_ACEOF
25028 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25031 # Break up conftest.defines because some shells have a limit on the size
25032 # of here documents, and old seds have small limits too (100 cmds).
25033 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25034 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25035 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25036 echo ' :' >>$CONFIG_STATUS
25037 rm -f conftest.tail
25038 while grep . conftest.defines >/dev/null
25040 # Write a limited-size here document to $tmp/defines.sed.
25041 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25042 # Speed up: don't consider the non `#define' lines.
25043 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25044 # Work around the forget-to-reset-the-flag bug.
25045 echo 't clr' >>$CONFIG_STATUS
25046 echo ': clr' >>$CONFIG_STATUS
25047 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25049 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25051 mv $tmp/out $tmp/in
25053 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25054 rm -f conftest.defines
25055 mv conftest.tail conftest.defines
25057 rm -f conftest.defines
25058 echo ' fi # grep' >>$CONFIG_STATUS
25059 echo >>$CONFIG_STATUS
25061 # Break up conftest.undefs because some shells have a limit on the size
25062 # of here documents, and old seds have small limits too (100 cmds).
25063 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25064 rm -f conftest.tail
25065 while grep . conftest.undefs >/dev/null
25067 # Write a limited-size here document to $tmp/undefs.sed.
25068 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25069 # Speed up: don't consider the non `#undef'
25070 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25071 # Work around the forget-to-reset-the-flag bug.
25072 echo 't clr' >>$CONFIG_STATUS
25073 echo ': clr' >>$CONFIG_STATUS
25074 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25076 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25078 mv $tmp/out $tmp/in
25080 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25081 rm -f conftest.undefs
25082 mv conftest.tail conftest.undefs
25084 rm -f conftest.undefs
25086 cat >>$CONFIG_STATUS <<\_ACEOF
25087 # Let's still pretend it is `configure' which instantiates (i.e., don't
25088 # use $as_me), people would be surprised to read:
25089 # /* config.h. Generated by config.status. */
25090 if test x"$ac_file" = x-; then
25091 echo "/* Generated by configure. */" >$tmp/config.h
25093 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25095 cat $tmp/in >>$tmp/config.h
25097 if test x"$ac_file" != x-; then
25098 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25099 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25100 echo "$as_me: $ac_file is unchanged" >&6;}
25102 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25103 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25104 X"$ac_file" : 'X\(//\)[^/]' \| \
25105 X"$ac_file" : 'X\(//\)$' \| \
25106 X"$ac_file" : 'X\(/\)' \| \
25107 . : '\(.\)' 2>/dev/null ||
25109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25111 /^X\(\/\/\)$/{ s//\1/; q; }
25112 /^X\(\/\).*/{ s//\1/; q; }
25114 { if $as_mkdir_p; then
25119 while test ! -d "$as_dir"; do
25120 as_dirs="$as_dir $as_dirs"
25121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25123 X"$as_dir" : 'X\(//\)[^/]' \| \
25124 X"$as_dir" : 'X\(//\)$' \| \
25125 X"$as_dir" : 'X\(/\)' \| \
25126 . : '\(.\)' 2>/dev/null ||
25128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25130 /^X\(\/\/\)$/{ s//\1/; q; }
25131 /^X\(\/\).*/{ s//\1/; q; }
25134 test ! -n "$as_dirs" || mkdir $as_dirs
25135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25136 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25137 { (exit 1); exit 1; }; }; }
25140 mv $tmp/config.h $ac_file
25144 rm -f $tmp/config.h
25146 # Run the commands associated with the file.
25148 src/include/pg_config.h )
25149 # Update timestamp for pg_config.h (see Makefile.global)
25150 echo >src/include/stamp-h
25155 cat >>$CONFIG_STATUS <<\_ACEOF
25158 # CONFIG_LINKS section.
25161 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25162 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25163 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25165 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25166 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25168 if test ! -r $srcdir/$ac_source; then
25169 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25170 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25171 { (exit 1); exit 1; }; }
25175 # Make relative symlinks.
25176 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25177 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25178 X"$ac_dest" : 'X\(//\)[^/]' \| \
25179 X"$ac_dest" : 'X\(//\)$' \| \
25180 X"$ac_dest" : 'X\(/\)' \| \
25181 . : '\(.\)' 2>/dev/null ||
25183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25185 /^X\(\/\/\)$/{ s//\1/; q; }
25186 /^X\(\/\).*/{ s//\1/; q; }
25188 { if $as_mkdir_p; then
25189 mkdir -p "$ac_dest_dir"
25191 as_dir="$ac_dest_dir"
25193 while test ! -d "$as_dir"; do
25194 as_dirs="$as_dir $as_dirs"
25195 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25197 X"$as_dir" : 'X\(//\)[^/]' \| \
25198 X"$as_dir" : 'X\(//\)$' \| \
25199 X"$as_dir" : 'X\(/\)' \| \
25200 . : '\(.\)' 2>/dev/null ||
25202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25204 /^X\(\/\/\)$/{ s//\1/; q; }
25205 /^X\(\/\).*/{ s//\1/; q; }
25208 test ! -n "$as_dirs" || mkdir $as_dirs
25209 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25210 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25211 { (exit 1); exit 1; }; }; }
25215 if test "$ac_dest_dir" != .; then
25216 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25217 # A "../" for each directory in $ac_dir_suffix.
25218 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25220 ac_dir_suffix= ac_top_builddir=
25224 .) # No --srcdir option. We are building in place.
25226 if test -z "$ac_top_builddir"; then
25229 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25231 [\\/]* | ?:[\\/]* ) # Absolute path.
25232 ac_srcdir=$srcdir$ac_dir_suffix;
25233 ac_top_srcdir=$srcdir ;;
25234 *) # Relative path.
25235 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25236 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25239 # Do not use `cd foo && pwd` to compute absolute paths, because
25240 # the directories may not exist.
25242 .) ac_abs_builddir="$ac_dest_dir";;
25244 case "$ac_dest_dir" in
25245 .) ac_abs_builddir=`pwd`;;
25246 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25247 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25250 case $ac_abs_builddir in
25251 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25253 case ${ac_top_builddir}. in
25254 .) ac_abs_top_builddir=$ac_abs_builddir;;
25255 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25256 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25259 case $ac_abs_builddir in
25260 .) ac_abs_srcdir=$ac_srcdir;;
25263 .) ac_abs_srcdir=$ac_abs_builddir;;
25264 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25265 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25268 case $ac_abs_builddir in
25269 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25271 case $ac_top_srcdir in
25272 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25273 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25274 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25280 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25281 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25284 # Try a symlink, then a hard link, then a copy.
25285 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25286 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25287 cp -p $srcdir/$ac_source $ac_dest ||
25288 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25289 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25290 { (exit 1); exit 1; }; }
25293 cat >>$CONFIG_STATUS <<\_ACEOF
25296 # CONFIG_COMMANDS section.
25298 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25299 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25300 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25301 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25302 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25303 X"$ac_dest" : 'X\(//\)[^/]' \| \
25304 X"$ac_dest" : 'X\(//\)$' \| \
25305 X"$ac_dest" : 'X\(/\)' \| \
25306 . : '\(.\)' 2>/dev/null ||
25308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25309 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25310 /^X\(\/\/\)$/{ s//\1/; q; }
25311 /^X\(\/\).*/{ s//\1/; q; }
25313 { if $as_mkdir_p; then
25318 while test ! -d "$as_dir"; do
25319 as_dirs="$as_dir $as_dirs"
25320 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25322 X"$as_dir" : 'X\(//\)[^/]' \| \
25323 X"$as_dir" : 'X\(//\)$' \| \
25324 X"$as_dir" : 'X\(/\)' \| \
25325 . : '\(.\)' 2>/dev/null ||
25327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25329 /^X\(\/\/\)$/{ s//\1/; q; }
25330 /^X\(\/\).*/{ s//\1/; q; }
25333 test ! -n "$as_dirs" || mkdir $as_dirs
25334 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25335 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25336 { (exit 1); exit 1; }; }; }
25340 if test "$ac_dir" != .; then
25341 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25342 # A "../" for each directory in $ac_dir_suffix.
25343 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25345 ac_dir_suffix= ac_top_builddir=
25349 .) # No --srcdir option. We are building in place.
25351 if test -z "$ac_top_builddir"; then
25354 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25356 [\\/]* | ?:[\\/]* ) # Absolute path.
25357 ac_srcdir=$srcdir$ac_dir_suffix;
25358 ac_top_srcdir=$srcdir ;;
25359 *) # Relative path.
25360 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25361 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25364 # Do not use `cd foo && pwd` to compute absolute paths, because
25365 # the directories may not exist.
25367 .) ac_abs_builddir="$ac_dir";;
25370 .) ac_abs_builddir=`pwd`;;
25371 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25372 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25375 case $ac_abs_builddir in
25376 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25378 case ${ac_top_builddir}. in
25379 .) ac_abs_top_builddir=$ac_abs_builddir;;
25380 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25381 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25384 case $ac_abs_builddir in
25385 .) ac_abs_srcdir=$ac_srcdir;;
25388 .) ac_abs_srcdir=$ac_abs_builddir;;
25389 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25390 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25393 case $ac_abs_builddir in
25394 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25396 case $ac_top_srcdir in
25397 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25398 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25399 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25404 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25405 echo "$as_me: executing $ac_dest commands" >&6;}
25407 check_win32_symlinks )
25408 # Links sometimes fail undetected on Mingw -
25409 # so here we detect it and warn the user
25410 for FILE in $CONFIG_LINKS
25412 # test -e works for symlinks in the MinGW console
25413 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
25414 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
25421 cat >>$CONFIG_STATUS <<\_ACEOF
25423 { (exit 0); exit 0; }
25425 chmod +x $CONFIG_STATUS
25426 ac_clean_files=$ac_clean_files_save
25429 # configure is writing to config.log, and then calls config.status.
25430 # config.status does its own redirection, appending to config.log.
25431 # Unfortunately, on DOS this fails, as config.log is still kept open
25432 # by configure, so config.status won't be able to write to it; its
25433 # output is simply discarded. So we exec the FD to /dev/null,
25434 # effectively closing config.log, so it can be properly (re)opened and
25435 # appended to by config.status. When coming back to configure, we
25436 # need to make the FD available again.
25437 if test "$no_create" != yes; then
25439 ac_config_status_args=
25440 test "$silent" = yes &&
25441 ac_config_status_args="$ac_config_status_args --quiet"
25443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25446 # would make configure fail if this is the last instruction.
25447 $ac_cs_success || { (exit 1); exit 1; }
25451 # Warn about unknown options
25452 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
25453 for pgac_arg in $pgac_args with_gnu_ld; do
25454 if test "$pgac_var" = "$pgac_arg"; then
25458 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
25459 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
25460 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}