2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2006, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.2devel'
275 PACKAGE_STRING='PostgreSQL 8.2devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS 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.2devel 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.2devel:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-dtrace build with DTrace support
869 --enable-depend turn on automatic dependency tracking
870 --enable-cassert enable assertion checks (for debugging)
871 --enable-thread-safety make client libraries thread-safe
872 --enable-thread-safety-force force thread-safety in spite of thread test failure
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
880 --without-docdir do not install the documentation
881 --with-includes=DIRS look for additional header files in DIRS
882 --with-libraries=DIRS look for additional libraries in DIRS
883 --with-libs=DIRS alternative spelling of --with-libraries
884 --with-pgport=PORTNUM change default port number [5432]
885 --with-tcl build Tcl modules (PL/Tcl)
886 --with-tclconfig=DIR tclConfig.sh is in DIR
887 --with-perl build Perl modules (PL/Perl)
888 --with-python build Python modules (PL/Python)
889 --with-krb5 build with Kerberos 5 support
890 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
891 --with-pam build with PAM support
892 --with-ldap build with LDAP support
893 --with-bonjour build with Bonjour support
894 --with-openssl build with OpenSSL support
895 --with-libedit-preferred prefer BSD Libedit over GNU Readline
896 --without-readline do not use GNU Readline / BSD Libedit line editing
897 --without-zlib do not use Zlib
898 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
910 location of DocBook stylesheets
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
915 Report bugs to <pgsql-bugs@postgresql.org>.
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
926 if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 ac_dir_suffix= ac_top_builddir=
935 .) # No --srcdir option. We are building in place.
937 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
953 .) ac_abs_builddir="$ac_dir";;
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
1000 $ac_configure --help
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1011 PostgreSQL configure 8.2devel
1012 generated by GNU Autoconf 2.59
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1018 Copyright (c) 1996-2006, PostgreSQL Global Development Group
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by PostgreSQL $as_me 8.2devel, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h; then
1197 sed "/^$/d" confdefs.h | sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368 for ac_dir in config $srcdir/config; do
1369 if test -f $ac_dir/install-sh; then
1371 ac_install_sh="$ac_aux_dir/install-sh -c"
1373 elif test -f $ac_dir/install.sh; then
1375 ac_install_sh="$ac_aux_dir/install.sh -c"
1377 elif test -f $ac_dir/shtool; then
1379 ac_install_sh="$ac_aux_dir/shtool install -c"
1383 if test -z "$ac_aux_dir"; then
1384 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1386 { (exit 1); exit 1; }; }
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1393 configure_args=$ac_configure_args
1397 cat >>confdefs.h <<_ACEOF
1398 #define PG_VERSION "$PACKAGE_VERSION"
1402 # Make sure we can run config.sub.
1403 $ac_config_sub sun4 >/dev/null 2>&1 ||
1404 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1405 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1406 { (exit 1); exit 1; }; }
1408 echo "$as_me:$LINENO: checking build system type" >&5
1409 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1410 if test "${ac_cv_build+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_build_alias=$build_alias
1414 test -z "$ac_cv_build_alias" &&
1415 ac_cv_build_alias=`$ac_config_guess`
1416 test -z "$ac_cv_build_alias" &&
1417 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1418 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1419 { (exit 1); exit 1; }; }
1420 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1427 echo "${ECHO_T}$ac_cv_build" >&6
1429 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434 echo "$as_me:$LINENO: checking host system type" >&5
1435 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1436 if test "${ac_cv_host+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 ac_cv_host_alias=$host_alias
1440 test -z "$ac_cv_host_alias" &&
1441 ac_cv_host_alias=$ac_cv_build_alias
1442 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1444 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1445 { (exit 1); exit 1; }; }
1448 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1449 echo "${ECHO_T}$ac_cv_host" >&6
1451 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458 echo "$as_me:$LINENO: checking which template to use" >&5
1459 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1465 # Check whether --with-template or --without-template was given.
1466 if test "${with_template+set}" = set; then
1467 withval="$with_template"
1471 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1472 echo "$as_me: error: argument required for --with-template option" >&2;}
1473 { (exit 1); exit 1; }; }
1476 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1477 echo "$as_me: error: argument required for --with-template option" >&2;}
1478 { (exit 1); exit 1; }; }
1483 list) echo; ls "$srcdir/src/template"; exit;;
1484 *) if test -f "$srcdir/src/template/$with_template" ; then
1487 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1488 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1489 { (exit 1); exit 1; }; }
1498 # --with-template not given
1501 aix*) template=aix ;;
1502 bsdi*) template=bsdi ;;
1503 cygwin*) template=cygwin ;;
1504 darwin*) template=darwin ;;
1505 dgux*) template=dgux ;;
1506 freebsd*) template=freebsd ;;
1507 hpux*) template=hpux ;;
1508 irix*) template=irix ;;
1509 linux*|gnu*|k*bsd*-gnu)
1511 mingw*) template=win32 ;;
1512 netbsd*) template=netbsd ;;
1513 nextstep*) template=nextstep ;;
1514 openbsd*) template=openbsd ;;
1515 osf*) template=osf ;;
1516 sco*) template=sco ;;
1517 solaris*) template=solaris ;;
1518 sunos*) template=sunos4 ;;
1520 case $host_vendor in
1521 univel) template=univel ;;
1523 sysv4*) template=svr4 ;;
1524 sysv5*) template=unixware ;;
1525 ultrix*) template=ultrix4 ;;
1528 if test x"$template" = x"" ; then
1529 { { echo "$as_me:$LINENO: error:
1530 *******************************************************************
1531 PostgreSQL has apparently not been ported to your platform yet.
1532 To try a manual configuration, look into the src/template directory
1533 for a similar platform and use the '--with-template=' option.
1535 Please also contact <pgsql-ports@postgresql.org> to see about
1536 rectifying this. Include the above 'checking host system type...'
1538 *******************************************************************
1540 echo "$as_me: error:
1541 *******************************************************************
1542 PostgreSQL has apparently not been ported to your platform yet.
1543 To try a manual configuration, look into the src/template directory
1544 for a similar platform and use the '--with-template=' option.
1546 Please also contact <pgsql-ports@postgresql.org> to see about
1547 rectifying this. Include the above 'checking host system type...'
1549 *******************************************************************
1551 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $template" >&5
1559 echo "${ECHO_T}$template" >&6
1564 # Initialize default assumption that we do not need separate assembly code
1565 # for TAS (test-and-set). This can be overridden by the template file
1566 # when it's executed.
1573 ## Command line options
1577 # Installation directory for documentation
1583 # Check whether --with-docdir or --without-docdir was given.
1584 if test "${with_docdir+set}" = set; then
1585 withval="$with_docdir"
1589 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1590 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1591 { (exit 1); exit 1; }; }
1602 docdir='${prefix}/doc'
1609 # Add non-standard directories to the include path
1615 # Check whether --with-includes or --without-includes was given.
1616 if test "${with_includes+set}" = set; then
1617 withval="$with_includes"
1621 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1622 echo "$as_me: error: argument required for --with-includes option" >&2;}
1623 { (exit 1); exit 1; }; }
1626 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1627 echo "$as_me: error: argument required for --with-includes option" >&2;}
1628 { (exit 1); exit 1; }; }
1640 # Add non-standard directories to the library search path
1646 # Check whether --with-libraries or --without-libraries was given.
1647 if test "${with_libraries+set}" = set; then
1648 withval="$with_libraries"
1652 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1653 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1654 { (exit 1); exit 1; }; }
1657 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1658 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1659 { (exit 1); exit 1; }; }
1662 LIBRARY_DIRS=$withval
1673 # Check whether --with-libs or --without-libs was given.
1674 if test "${with_libs+set}" = set; then
1675 withval="$with_libs"
1679 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1680 echo "$as_me: error: argument required for --with-libs option" >&2;}
1681 { (exit 1); exit 1; }; }
1684 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1685 echo "$as_me: error: argument required for --with-libs option" >&2;}
1686 { (exit 1); exit 1; }; }
1689 LIBRARY_DIRS=$withval
1698 # 64-bit integer date/time storage (--enable-integer-datetimes)
1700 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1701 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1705 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1706 if test "${enable_integer_datetimes+set}" = set; then
1707 enableval="$enable_integer_datetimes"
1712 cat >>confdefs.h <<\_ACEOF
1713 #define USE_INTEGER_DATETIMES 1
1721 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1722 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1723 { (exit 1); exit 1; }; }
1728 enable_integer_datetimes=no
1732 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1733 echo "${ECHO_T}$enable_integer_datetimes" >&6
1739 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1740 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1744 # Check whether --enable-nls or --disable-nls was given.
1745 if test "${enable_nls+set}" = set; then
1746 enableval="$enable_nls"
1757 WANTED_LANGUAGES=$enableval
1766 if test "$enable_nls" = yes; then
1768 cat >>confdefs.h <<\_ACEOF
1769 #define ENABLE_NLS 1
1774 echo "$as_me:$LINENO: result: $enable_nls" >&5
1775 echo "${ECHO_T}$enable_nls" >&6
1780 # Default port number (--with-pgport), default 5432
1782 echo "$as_me:$LINENO: checking for default port number" >&5
1783 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1788 # Check whether --with-pgport or --without-pgport was given.
1789 if test "${with_pgport+set}" = set; then
1790 withval="$with_pgport"
1794 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1795 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1796 { (exit 1); exit 1; }; }
1799 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1800 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1801 { (exit 1); exit 1; }; }
1804 default_port=$withval
1812 echo "$as_me:$LINENO: result: $default_port" >&5
1813 echo "${ECHO_T}$default_port" >&6
1814 # Need both of these because some places want an integer and some a string
1816 cat >>confdefs.h <<_ACEOF
1817 #define DEF_PGPORT ${default_port}
1821 cat >>confdefs.h <<_ACEOF
1822 #define DEF_PGPORT_STR "${default_port}"
1828 # Option to disable shared libraries
1833 # Check whether --enable-shared or --disable-shared was given.
1834 if test "${enable_shared+set}" = set; then
1835 enableval="$enable_shared"
1845 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1846 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1847 { (exit 1); exit 1; }; }
1859 # '-rpath'-like feature can be disabled
1864 # Check whether --enable-rpath or --disable-rpath was given.
1865 if test "${enable_rpath+set}" = set; then
1866 enableval="$enable_rpath"
1876 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1877 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1878 { (exit 1); exit 1; }; }
1895 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1896 if test "${enable_spinlocks+set}" = set; then
1897 enableval="$enable_spinlocks"
1907 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1908 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1909 { (exit 1); exit 1; }; }
1914 enable_spinlocks=yes
1920 # --enable-debug adds -g to compiler flags
1925 # Check whether --enable-debug or --disable-debug was given.
1926 if test "${enable_debug+set}" = set; then
1927 enableval="$enable_debug"
1937 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1938 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1939 { (exit 1); exit 1; }; }
1956 # Check whether --enable-dtrace or --disable-dtrace was given.
1957 if test "${enable_dtrace+set}" = set; then
1958 enableval="$enable_dtrace"
1963 cat >>confdefs.h <<\_ACEOF
1964 #define ENABLE_DTRACE 1
1967 for ac_prog in dtrace
1969 # Extract the first word of "$ac_prog", so it can be a program name with args.
1970 set dummy $ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_DTRACE+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$DTRACE"; then
1977 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_DTRACE="$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 DTRACE=$ac_cv_prog_DTRACE
1996 if test -n "$DTRACE"; then
1997 echo "$as_me:$LINENO: result: $DTRACE" >&5
1998 echo "${ECHO_T}$DTRACE" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2004 test -n "$DTRACE" && break
2013 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2014 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2015 { (exit 1); exit 1; }; }
2030 # For historical reasons you can also use --with-CC to specify the C compiler
2031 # to use, although the standard way to do this is to set the CC environment
2037 # Check whether --with-CC or --without-CC was given.
2038 if test "${with_CC+set}" = set; then
2043 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2044 echo "$as_me: error: argument required for --with-CC option" >&2;}
2045 { (exit 1); exit 1; }; }
2048 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2049 echo "$as_me: error: argument required for --with-CC option" >&2;}
2050 { (exit 1); exit 1; }; }
2061 aix) pgac_cc_list="gcc xlc";;
2062 irix) pgac_cc_list="cc";; # no gcc
2063 *) pgac_cc_list="gcc cc";;
2067 ac_cpp='$CPP $CPPFLAGS'
2068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071 if test -n "$ac_tool_prefix"; then
2072 for ac_prog in $pgac_cc_list
2074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2076 echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 if test -n "$CC"; then
2102 echo "$as_me:$LINENO: result: $CC" >&5
2103 echo "${ECHO_T}$CC" >&6
2105 echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6
2109 test -n "$CC" && break
2112 if test -z "$CC"; then
2114 for ac_prog in $pgac_cc_list
2116 # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_ac_ct_CC="$ac_prog"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2151 test -n "$ac_ct_CC" && break
2158 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: no acceptable C compiler found in \$PATH
2161 See \`config.log' for more details." >&2;}
2162 { (exit 1); exit 1; }; }
2164 # Provide some information about the compiler.
2165 echo "$as_me:$LINENO:" \
2166 "checking for C compiler version" >&5
2167 ac_compiler=`set X $ac_compile; echo $2`
2168 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2169 (eval $ac_compiler --version </dev/null >&5) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2174 (eval $ac_compiler -v </dev/null >&5) 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2179 (eval $ac_compiler -V </dev/null >&5) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2184 cat >conftest.$ac_ext <<_ACEOF
2187 cat confdefs.h >>conftest.$ac_ext
2188 cat >>conftest.$ac_ext <<_ACEOF
2189 /* end confdefs.h. */
2199 ac_clean_files_save=$ac_clean_files
2200 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2201 # Try to create an executable without -o first, disregard a.out.
2202 # It will help us diagnose broken compilers, and finding out an intuition
2204 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2205 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2206 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2207 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2208 (eval $ac_link_default) 2>&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; then
2212 # Find the output, starting from the most likely. This scheme is
2213 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2216 # Be careful to initialize this variable, since it used to be cached.
2217 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2219 # b.out is created by i960 compilers.
2220 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2222 test -f "$ac_file" || continue
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2227 # This is the source file.
2230 # We found the default executable, but exeext='' is most
2234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 # FIXME: I believe we export ac_cv_exeext for Libtool,
2236 # but it would be cool to find out if it's true. Does anybody
2237 # maintain Libtool? --akim.
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: C compiler cannot create executables
2251 See \`config.log' for more details." >&2;}
2252 { (exit 77); exit 77; }; }
2255 ac_exeext=$ac_cv_exeext
2256 echo "$as_me:$LINENO: result: $ac_file" >&5
2257 echo "${ECHO_T}$ac_file" >&6
2259 # Check the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2262 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2263 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2264 # If not cross compiling, check that we can run a simple program.
2265 if test "$cross_compiling" != yes; then
2266 if { ac_try='./$ac_file'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2274 if test "$cross_compiling" = maybe; then
2277 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2278 If you meant to cross compile, use \`--host'.
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot run C compiled programs.
2281 If you meant to cross compile, use \`--host'.
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2287 echo "$as_me:$LINENO: result: yes" >&5
2288 echo "${ECHO_T}yes" >&6
2290 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2291 ac_clean_files=$ac_clean_files_save
2292 # Check the compiler produces executables we can run. If not, either
2293 # the compiler is broken, or we cross compile.
2294 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2295 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2296 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2297 echo "${ECHO_T}$cross_compiling" >&6
2299 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2300 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2302 (eval $ac_link) 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; then
2306 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2307 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2308 # work properly (i.e., refer to `conftest.exe'), while it won't with
2310 for ac_file in conftest.exe conftest conftest.*; do
2311 test -f "$ac_file" || continue
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2314 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2324 See \`config.log' for more details." >&2;}
2325 { (exit 1); exit 1; }; }
2328 rm -f conftest$ac_cv_exeext
2329 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2330 echo "${ECHO_T}$ac_cv_exeext" >&6
2332 rm -f conftest.$ac_ext
2333 EXEEXT=$ac_cv_exeext
2335 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2336 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2337 if test "${ac_cv_objext+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 cat >conftest.$ac_ext <<_ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2355 rm -f conftest.o conftest.obj
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; then
2361 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2364 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2375 See \`config.log' for more details." >&2;}
2376 { (exit 1); exit 1; }; }
2379 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2381 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2382 echo "${ECHO_T}$ac_cv_objext" >&6
2383 OBJEXT=$ac_cv_objext
2385 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2386 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2387 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 cat >conftest.$ac_ext <<_ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2412 grep -v '^ *+' conftest.er1 >conftest.err
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag"
2418 || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2441 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2442 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2443 GCC=`test $ac_compiler_gnu = yes && echo yes`
2444 ac_test_CFLAGS=${CFLAGS+set}
2445 ac_save_CFLAGS=$CFLAGS
2447 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2448 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_g+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 cat >conftest.$ac_ext <<_ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>conftest.er1
2471 grep -v '^ *+' conftest.er1 >conftest.err
2473 cat conftest.err >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -z "$ac_c_werror_flag"
2477 || test ! -s conftest.err'
2478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); }; } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2500 if test "$ac_test_CFLAGS" = set; then
2501 CFLAGS=$ac_save_CFLAGS
2502 elif test $ac_cv_prog_cc_g = yes; then
2503 if test "$GCC" = yes; then
2509 if test "$GCC" = yes; then
2515 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2516 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2517 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 ac_cv_prog_cc_stdc=no
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2530 #include <sys/types.h>
2531 #include <sys/stat.h>
2532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2533 struct buf { int x; };
2534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2535 static char *e (p, i)
2541 static char *f (char * (*g) (char **, int), char **p, ...)
2546 s = g (p, va_arg (v,int));
2551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2552 function prototypes and stuff, but not '\xHH' hex character constants.
2553 These don't provoke an error unfortunately, instead are silently treated
2554 as 'x'. The following induces an error, until -std1 is added to get
2555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2556 array size at least. It's necessary to write '\x00'==0 to get something
2557 that's true only with -std1. */
2558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2560 int test (int i, double x);
2561 struct s1 {int (*f) (int a);};
2562 struct s2 {int (*f) (double a);};
2563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2569 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2574 # Don't try gcc -ansi; that turns off useful extensions and
2575 # breaks some systems' header files.
2576 # AIX -qlanglvl=ansi
2577 # Ultrix and OSF/1 -std1
2578 # HP-UX 10.20 and later -Ae
2579 # HP-UX older versions -Aa -D_HPUX_SOURCE
2580 # SVR4 -Xc -D__EXTENSIONS__
2581 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2583 CC="$ac_save_CC $ac_arg"
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2588 grep -v '^ *+' conftest.er1 >conftest.err
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cc_stdc=$ac_arg
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f conftest.err conftest.$ac_objext
2615 rm -f conftest.$ac_ext conftest.$ac_objext
2620 case "x$ac_cv_prog_cc_stdc" in
2622 echo "$as_me:$LINENO: result: none needed" >&5
2623 echo "${ECHO_T}none needed" >&6 ;;
2625 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2627 CC="$CC $ac_cv_prog_cc_stdc" ;;
2630 # Some people use a C++ compiler to compile C. Since we use `exit',
2631 # in C++ we need to declare it. In case someone uses the same compiler
2632 # for both compiling C and C++ we need to have the C++ compiler decide
2633 # the declaration of exit, since it's the most demanding environment.
2634 cat >conftest.$ac_ext <<_ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 for ac_declaration in \
2663 'extern "C" void std::exit (int) throw (); using std::exit;' \
2664 'extern "C" void std::exit (int); using std::exit;' \
2665 'extern "C" void exit (int) throw ();' \
2666 'extern "C" void exit (int);' \
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>conftest.er1
2689 grep -v '^ *+' conftest.er1 >conftest.err
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -z "$ac_c_werror_flag"
2695 || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2715 cat >conftest.$ac_ext <<_ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2734 grep -v '^ *+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_c_werror_flag"
2740 || test ! -s conftest.err'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761 if test -n "$ac_declaration"; then
2762 echo '#ifdef __cplusplus' >>confdefs.h
2763 echo $ac_declaration >>confdefs.h
2764 echo '#endif' >>confdefs.h
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 . "$srcdir/src/template/$template" || exit
2787 # CFLAGS are selected so:
2788 # If the user specifies something in the environment, that is used.
2789 # else: If the template file set something, that is used.
2790 # else: If the compiler is GCC, then we use -O2.
2791 # else: If the compiler is something else, then we use -0.
2793 if test "$ac_env_CFLAGS_set" = set; then
2794 CFLAGS=$ac_env_CFLAGS_value
2795 elif test "${CFLAGS+set}" = set; then
2796 : # (keep what template set)
2797 elif test "$GCC" = yes; then
2800 # if the user selected debug mode, don't use -O
2801 if test "$enable_debug" != yes; then
2806 # Some versions of GCC support some additional useful warning flags.
2807 # Check whether they are supported, and add them to CFLAGS if so.
2809 if test "$GCC" = yes; then
2811 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2812 # So we have to check if "GCC" is really ICC.
2814 cat >conftest.$ac_ext <<_ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2824 #ifndef __INTEL_COMPILER
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2862 if test "$ICC" = no; then
2863 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2865 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2866 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2867 pgac_save_CFLAGS=$CFLAGS
2868 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1 >conftest.err
2890 cat conftest.err >&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -z "$ac_c_werror_flag"
2894 || test ! -s conftest.err'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 echo "$as_me:$LINENO: result: yes" >&5
2907 echo "${ECHO_T}yes" >&6
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 CFLAGS="$pgac_save_CFLAGS"
2913 echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2918 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2919 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2920 pgac_save_CFLAGS=$CFLAGS
2921 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 rm -f conftest.$ac_objext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2939 (eval $ac_compile) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -z "$ac_c_werror_flag"
2947 || test ! -s conftest.err'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 echo "$as_me:$LINENO: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 CFLAGS="$pgac_save_CFLAGS"
2966 echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 # Intel compiler has a bug/misoptimization in checking for
2973 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
2975 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
2976 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
2977 pgac_save_CFLAGS=$CFLAGS
2978 CFLAGS="$pgac_save_CFLAGS -mp1"
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } &&
3003 { ac_try='test -z "$ac_c_werror_flag"
3004 || test ! -s conftest.err'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 echo "$as_me:$LINENO: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 CFLAGS="$pgac_save_CFLAGS"
3023 echo "$as_me:$LINENO: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030 # Disable strict-aliasing rules; needed for gcc 3.3+
3031 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3032 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3033 pgac_save_CFLAGS=$CFLAGS
3034 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3050 rm -f conftest.$ac_objext
3051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3052 (eval $ac_compile) 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_c_werror_flag"
3060 || test ! -s conftest.err'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 echo "$as_me:$LINENO: result: yes" >&5
3073 echo "${ECHO_T}yes" >&6
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3078 CFLAGS="$pgac_save_CFLAGS"
3079 echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084 elif test ${CC} = "xlc"; then
3085 # AIX xlc has to have strict aliasing turned off too
3086 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3087 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3088 pgac_save_CFLAGS=$CFLAGS
3089 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3090 cat >conftest.$ac_ext <<_ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3105 rm -f conftest.$ac_objext
3106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107 (eval $ac_compile) 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -z "$ac_c_werror_flag"
3115 || test ! -s conftest.err'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 CFLAGS="$pgac_save_CFLAGS"
3134 echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3141 # supply -g if --enable-debug
3142 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3146 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3147 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3149 # We already have this in Makefile.win32, but configure needs it too
3150 if test "$PORTNAME" = "win32"; then
3151 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3154 # Check if the compiler still works with the template settings
3155 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3156 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext conftest$ac_exeext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174 (eval $ac_link) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1 >conftest.err
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 echo "$as_me:$LINENO: result: yes" >&5
3195 echo "${ECHO_T}yes" >&6
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3203 echo "$as_me: error: cannot proceed" >&2;}
3204 { (exit 1); exit 1; }; }
3206 rm -f conftest.err conftest.$ac_objext \
3207 conftest$ac_exeext conftest.$ac_ext
3209 # Defend against gcc -ffast-math
3210 if test "$GCC" = yes; then
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3221 #ifdef __FAST_MATH__
3228 rm -f conftest.$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 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_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3256 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3257 { (exit 1); exit 1; }; }
3259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3268 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3269 # On Suns, sometimes $CPP names a directory.
3270 if test -n "$CPP" && test -d "$CPP"; then
3273 if test -z "$CPP"; then
3274 if test "${ac_cv_prog_CPP+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 # Double quotes because CPP needs to be expanded
3278 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3281 for ac_c_preproc_warn_flag in '' yes
3283 # Use a header file that comes with gcc, so configuring glibc
3284 # with a fresh cross-compiler works.
3285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3286 # <limits.h> exists even on freestanding compilers.
3287 # On the NeXT, cc -E runs the code through the compiler's parser,
3288 # not just through cpp. "Syntax error" is here to catch this case.
3289 cat >conftest.$ac_ext <<_ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3296 # include <limits.h>
3298 # include <assert.h>
3302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3305 grep -v '^ *+' conftest.er1 >conftest.err
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } >/dev/null; then
3310 if test -s conftest.err; then
3311 ac_cpp_err=$ac_c_preproc_warn_flag
3312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3319 if test -z "$ac_cpp_err"; then
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 # Broken: fails on valid input.
3328 rm -f conftest.err conftest.$ac_ext
3330 # OK, works on sane cases. Now check whether non-existent headers
3331 # can be detected and how.
3332 cat >conftest.$ac_ext <<_ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3338 #include <ac_nonexistent.h>
3340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } >/dev/null; then
3348 if test -s conftest.err; then
3349 ac_cpp_err=$ac_c_preproc_warn_flag
3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357 if test -z "$ac_cpp_err"; then
3358 # Broken: success on invalid input.
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 # Passes both tests.
3368 rm -f conftest.err conftest.$ac_ext
3371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3372 rm -f conftest.err conftest.$ac_ext
3373 if $ac_preproc_ok; then
3385 echo "$as_me:$LINENO: result: $CPP" >&5
3386 echo "${ECHO_T}$CPP" >&6
3388 for ac_c_preproc_warn_flag in '' yes
3390 # Use a header file that comes with gcc, so configuring glibc
3391 # with a fresh cross-compiler works.
3392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3393 # <limits.h> exists even on freestanding compilers.
3394 # On the NeXT, cc -E runs the code through the compiler's parser,
3395 # not just through cpp. "Syntax error" is here to catch this case.
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3403 # include <limits.h>
3405 # include <assert.h>
3409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412 grep -v '^ *+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426 if test -z "$ac_cpp_err"; then
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Broken: fails on valid input.
3435 rm -f conftest.err conftest.$ac_ext
3437 # OK, works on sane cases. Now check whether non-existent headers
3438 # can be detected and how.
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3445 #include <ac_nonexistent.h>
3447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 # Passes both tests.
3475 rm -f conftest.err conftest.$ac_ext
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3483 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&5
3485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&2;}
3487 { (exit 1); exit 1; }; }
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 # Create compiler version string
3499 if test x"$GCC" = x"yes" ; then
3500 cc_string="GCC `${CC} --version | sed q`"
3505 cat >>confdefs.h <<_ACEOF
3506 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3512 # Set up TAS assembly code if needed; the template file has now had its
3513 # chance to request this.
3515 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3518 if test "$need_tas" = yes ; then
3527 # Automatic dependency tracking
3532 # Check whether --enable-depend or --disable-depend was given.
3533 if test "${enable_depend+set}" = set; then
3534 enableval="$enable_depend"
3544 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3545 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3546 { (exit 1); exit 1; }; }
3559 # Enable assert checks
3564 # Check whether --enable-cassert or --disable-cassert was given.
3565 if test "${enable_cassert+set}" = set; then
3566 enableval="$enable_cassert"
3571 cat >>confdefs.h <<\_ACEOF
3572 #define USE_ASSERT_CHECKING 1
3580 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3581 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3582 { (exit 1); exit 1; }; }
3594 # Include directories
3597 IFS="${IFS}${PATH_SEPARATOR}"
3598 # SRCH_INC comes from the template file
3599 for dir in $with_includes $SRCH_INC; do
3600 if test -d "$dir"; then
3601 INCLUDES="$INCLUDES -I$dir"
3603 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3604 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3612 # Library directories
3615 IFS="${IFS}${PATH_SEPARATOR}"
3616 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3617 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3618 if test -d "$dir"; then
3619 LIBDIRS="$LIBDIRS -L$dir"
3621 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3622 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3628 # Enable thread-safe client libraries
3630 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3631 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3635 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3636 if test "${enable_thread_safety+set}" = set; then
3637 enableval="$enable_thread_safety"
3647 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3648 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3649 { (exit 1); exit 1; }; }
3654 enable_thread_safety=no
3661 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3662 if test "${enable_thread_safety_force+set}" = set; then
3663 enableval="$enable_thread_safety_force"
3673 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3674 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3675 { (exit 1); exit 1; }; }
3680 enable_thread_safety_force=no
3684 if test "$enable_thread_safety" = yes -o \
3685 "$enable_thread_safety_force" = yes; then
3686 enable_thread_safety="yes" # for 'force'
3688 cat >>confdefs.h <<\_ACEOF
3689 #define ENABLE_THREAD_SAFETY 1
3693 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3694 echo "${ECHO_T}$enable_thread_safety" >&6
3698 # Optionally build Tcl modules (PL/Tcl)
3700 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3701 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3706 # Check whether --with-tcl or --without-tcl was given.
3707 if test "${with_tcl+set}" = set; then
3718 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3719 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3720 { (exit 1); exit 1; }; }
3729 echo "$as_me:$LINENO: result: $with_tcl" >&5
3730 echo "${ECHO_T}$with_tcl" >&6
3733 # We see if the path to the Tcl/Tk configuration scripts is specified.
3734 # This will override the use of tclsh to find the paths to search.
3740 # Check whether --with-tclconfig or --without-tclconfig was given.
3741 if test "${with_tclconfig+set}" = set; then
3742 withval="$with_tclconfig"
3746 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3747 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3748 { (exit 1); exit 1; }; }
3751 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3752 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3753 { (exit 1); exit 1; }; }
3764 # Optionally build Perl modules (PL/Perl)
3766 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3767 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3772 # Check whether --with-perl or --without-perl was given.
3773 if test "${with_perl+set}" = set; then
3774 withval="$with_perl"
3784 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3785 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3786 { (exit 1); exit 1; }; }
3795 echo "$as_me:$LINENO: result: $with_perl" >&5
3796 echo "${ECHO_T}$with_perl" >&6
3800 # Optionally build Python modules (PL/Python)
3802 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3803 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3808 # Check whether --with-python or --without-python was given.
3809 if test "${with_python+set}" = set; then
3810 withval="$with_python"
3820 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3821 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3822 { (exit 1); exit 1; }; }
3831 echo "$as_me:$LINENO: result: $with_python" >&5
3832 echo "${ECHO_T}$with_python" >&6
3838 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3839 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3844 # Check whether --with-krb5 or --without-krb5 was given.
3845 if test "${with_krb5+set}" = set; then
3846 withval="$with_krb5"
3852 cat >>confdefs.h <<\_ACEOF
3856 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3863 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3864 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3865 { (exit 1); exit 1; }; }
3874 echo "$as_me:$LINENO: result: $with_krb5" >&5
3875 echo "${ECHO_T}$with_krb5" >&6
3883 # Kerberos configuration parameters
3889 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3890 if test "${with_krb_srvnam+set}" = set; then
3891 withval="$with_krb_srvnam"
3895 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3896 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3897 { (exit 1); exit 1; }; }
3900 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3901 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3902 { (exit 1); exit 1; }; }
3910 with_krb_srvnam="postgres"
3914 cat >>confdefs.h <<_ACEOF
3915 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3923 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3924 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3929 # Check whether --with-pam or --without-pam was given.
3930 if test "${with_pam+set}" = set; then
3936 cat >>confdefs.h <<\_ACEOF
3945 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3946 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3947 { (exit 1); exit 1; }; }
3956 echo "$as_me:$LINENO: result: $with_pam" >&5
3957 echo "${ECHO_T}$with_pam" >&6
3964 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
3965 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
3970 # Check whether --with-ldap or --without-ldap was given.
3971 if test "${with_ldap+set}" = set; then
3972 withval="$with_ldap"
3977 cat >>confdefs.h <<\_ACEOF
3986 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
3987 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
3988 { (exit 1); exit 1; }; }
3997 echo "$as_me:$LINENO: result: $with_ldap" >&5
3998 echo "${ECHO_T}$with_ldap" >&6
4005 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4006 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4011 # Check whether --with-bonjour or --without-bonjour was given.
4012 if test "${with_bonjour+set}" = set; then
4013 withval="$with_bonjour"
4018 cat >>confdefs.h <<\_ACEOF
4019 #define USE_BONJOUR 1
4027 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4028 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4029 { (exit 1); exit 1; }; }
4038 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4039 echo "${ECHO_T}$with_bonjour" >&6
4046 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4047 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4052 # Check whether --with-openssl or --without-openssl was given.
4053 if test "${with_openssl+set}" = set; then
4054 withval="$with_openssl"
4059 cat >>confdefs.h <<\_ACEOF
4068 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4069 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4070 { (exit 1); exit 1; }; }
4079 echo "$as_me:$LINENO: result: $with_openssl" >&5
4080 echo "${ECHO_T}$with_openssl" >&6
4091 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4092 if test "${with_libedit_preferred+set}" = set; then
4093 withval="$with_libedit_preferred"
4103 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4104 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4105 { (exit 1); exit 1; }; }
4110 with_libedit_preferred=no
4123 # Check whether --with-readline or --without-readline was given.
4124 if test "${with_readline+set}" = set; then
4125 withval="$with_readline"
4135 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4136 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4137 { (exit 1); exit 1; }; }
4146 # readline on MinGW has problems with backslashes in psql and other bugs.
4147 # This is particularly a problem with non-US code pages.
4148 # Therefore disable its use until we understand the cause. 2004-07-20
4149 if test "$PORTNAME" = "win32"; then
4150 if test "$with_readline" = yes; then
4151 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4152 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4165 # Check whether --with-zlib or --without-zlib was given.
4166 if test "${with_zlib+set}" = set; then
4167 withval="$with_zlib"
4177 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4178 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4179 { (exit 1); exit 1; }; }
4194 # Assume system is ELF if it predefines __ELF__ as 1,
4195 # otherwise believe host_os based default.
4197 freebsd1*|freebsd2*) elf=no;;
4198 freebsd3*|freebsd4*) elf=yes;;
4202 echo "$as_me:$LINENO: checking for egrep" >&5
4203 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4204 if test "${ac_cv_prog_egrep+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4208 then ac_cv_prog_egrep='grep -E'
4209 else ac_cv_prog_egrep='egrep'
4212 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4213 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4214 EGREP=$ac_cv_prog_egrep
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4229 $EGREP "yes" >/dev/null 2>&1; then
4232 if test "X$elf" = "Xyes" ; then
4246 CPPFLAGS="$CPPFLAGS $INCLUDES"
4247 LDFLAGS="$LDFLAGS $LIBDIRS"
4249 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4250 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4251 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4252 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4256 for ac_prog in gawk mawk nawk awk
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_AWK+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$AWK"; then
4266 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_AWK="$ac_prog"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 if test -n "$AWK"; then
4286 echo "$as_me:$LINENO: result: $AWK" >&5
4287 echo "${ECHO_T}$AWK" >&6
4289 echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4293 test -n "$AWK" && break
4296 echo "$as_me:$LINENO: checking for flex" >&5
4297 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4298 if test "${pgac_cv_path_flex+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 # Let the user override the test
4302 if test -n "$FLEX"; then
4303 pgac_cv_path_flex=$FLEX
4307 for pgac_dir in $PATH; do
4309 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4312 for pgac_prog in flex lex; do
4313 pgac_candidate="$pgac_dir/$pgac_prog"
4314 if test -f "$pgac_candidate" \
4315 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4317 echo '%%' > conftest.l
4318 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4319 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4320 pgac_broken_flex=$pgac_candidate
4324 pgac_cv_path_flex=$pgac_candidate
4330 rm -f conftest.l lex.yy.c
4331 : ${pgac_cv_path_flex=no}
4335 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4336 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4337 if test x"$pgac_cv_path_flex" = x"no"; then
4338 if test -n "$pgac_broken_flex"; then
4339 { echo "$as_me:$LINENO: WARNING:
4340 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4341 *** should get version 2.5.4 or later." >&5
4342 echo "$as_me: WARNING:
4343 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4344 *** should get version 2.5.4 or later." >&2;}
4347 { echo "$as_me:$LINENO: WARNING:
4348 *** Without Flex you will not be able to build PostgreSQL from CVS or
4349 *** change any of the scanner definition files. You can obtain Flex from
4350 *** a GNU mirror site. (If you are using the official distribution of
4351 *** PostgreSQL then you do not need to worry about this because the Flex
4352 *** output is pre-generated.)" >&5
4353 echo "$as_me: WARNING:
4354 *** Without Flex you will not be able to build PostgreSQL from CVS or
4355 *** change any of the scanner definition files. You can obtain Flex from
4356 *** a GNU mirror site. (If you are using the official distribution of
4357 *** PostgreSQL then you do not need to worry about this because the Flex
4358 *** output is pre-generated.)" >&2;}
4361 if test x"$pgac_cv_path_flex" = x"no"; then
4364 FLEX=$pgac_cv_path_flex
4370 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4371 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4373 if test "$LN_S" = "ln -s"; then
4374 echo "$as_me:$LINENO: result: yes" >&5
4375 echo "${ECHO_T}yes" >&6
4377 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4378 echo "${ECHO_T}no, using $LN_S" >&6
4382 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4383 if test "${with_gnu_ld+set}" = set; then
4384 withval="$with_gnu_ld"
4385 test "$withval" = no || with_gnu_ld=yes
4390 if test "$GCC" = yes; then
4391 # Check if gcc -print-prog-name=ld gives a path.
4392 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4393 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4396 # gcc leaves a trailing carriage return which upsets mingw
4397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4402 # Accept absolute paths.
4403 [\\/]* | [A-Za-z]:[\\/]*)
4404 re_direlt='/[^/][^/]*/\.\./'
4405 # Canonicalize the path of ld
4406 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4407 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4408 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4410 test -z "$LD" && LD="$ac_prog"
4413 # If it fails, then pretend we aren't using GCC.
4417 # If it is relative, then search for the first ld in PATH.
4421 elif test "$with_gnu_ld" = yes; then
4422 echo "$as_me:$LINENO: checking for GNU ld" >&5
4423 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4425 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4426 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4428 if test "${ac_cv_path_LD+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 if test -z "$LD"; then
4432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4433 for ac_dir in $PATH; do
4434 test -z "$ac_dir" && ac_dir=.
4435 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4436 ac_cv_path_LD="$ac_dir/$ac_prog"
4437 # Check to see if the program is GNU ld. I'd rather use --version,
4438 # but apparently some GNU ld's only accept -v.
4439 # Break only if it was the GNU/non-GNU ld that we prefer.
4440 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4441 test "$with_gnu_ld" != no && break
4443 test "$with_gnu_ld" != yes && break
4449 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4454 if test -n "$LD"; then
4455 echo "$as_me:$LINENO: result: $LD" >&5
4456 echo "${ECHO_T}$LD" >&6
4458 echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4461 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4462 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4463 { (exit 1); exit 1; }; }
4464 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4465 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4466 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4470 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4471 ac_cv_prog_gnu_ld=yes
4473 ac_cv_prog_gnu_ld=no
4476 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4477 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4478 with_gnu_ld=$ac_cv_prog_gnu_ld
4483 case $host_os in sysv5*)
4484 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4485 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4486 if test "${pgac_cv_prog_ld_R+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>conftest.er1
4510 grep -v '^ *+' conftest.er1 >conftest.err
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 pgac_cv_prog_ld_R=yes
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4533 pgac_cv_prog_ld_R=no
4535 rm -f conftest.err conftest.$ac_objext \
4536 conftest$ac_exeext conftest.$ac_ext
4537 LDFLAGS=$pgac_save_LDFLAGS
4540 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4541 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4542 ld_R_works=$pgac_cv_prog_ld_R
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_RANLIB+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test -n "$RANLIB"; then
4554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 RANLIB=$ac_cv_prog_RANLIB
4573 if test -n "$RANLIB"; then
4574 echo "$as_me:$LINENO: result: $RANLIB" >&5
4575 echo "${ECHO_T}$RANLIB" >&6
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4582 if test -z "$ac_cv_prog_RANLIB"; then
4583 ac_ct_RANLIB=$RANLIB
4584 # Extract the first word of "ranlib", so it can be a program name with args.
4585 set dummy ranlib; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 if test -n "$ac_ct_RANLIB"; then
4592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_RANLIB="ranlib"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4612 if test -n "$ac_ct_RANLIB"; then
4613 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4614 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4620 RANLIB=$ac_ct_RANLIB
4622 RANLIB="$ac_cv_prog_RANLIB"
4625 # Extract the first word of "tar", so it can be a program name with args.
4626 set dummy tar; ac_word=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_path_TAR+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test -n "$TAR"; then
4657 echo "$as_me:$LINENO: result: $TAR" >&5
4658 echo "${ECHO_T}$TAR" >&6
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4665 if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}strip; ac_word=$2
4668 echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4670 if test "${ac_cv_prog_STRIP+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$STRIP"; then
4674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 STRIP=$ac_cv_prog_STRIP
4693 if test -n "$STRIP"; then
4694 echo "$as_me:$LINENO: result: $STRIP" >&5
4695 echo "${ECHO_T}$STRIP" >&6
4697 echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6
4702 if test -z "$ac_cv_prog_STRIP"; then
4704 # Extract the first word of "strip", so it can be a program name with args.
4705 set dummy strip; ac_word=$2
4706 echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$ac_ct_STRIP"; then
4712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 ac_cv_prog_ac_ct_STRIP="strip"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4732 if test -n "$ac_ct_STRIP"; then
4733 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4734 echo "${ECHO_T}$ac_ct_STRIP" >&6
4736 echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4742 STRIP="$ac_cv_prog_STRIP"
4746 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4747 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4748 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4749 STRIP_STATIC_LIB="$STRIP -x"
4750 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4751 echo "$as_me:$LINENO: result: yes" >&5
4752 echo "${ECHO_T}yes" >&6
4756 echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6
4763 for ac_prog in 'bison -y'
4765 # Extract the first word of "$ac_prog", so it can be a program name with args.
4766 set dummy $ac_prog; ac_word=$2
4767 echo "$as_me:$LINENO: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769 if test "${ac_cv_prog_YACC+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 if test -n "$YACC"; then
4773 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4782 ac_cv_prog_YACC="$ac_prog"
4783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 YACC=$ac_cv_prog_YACC
4792 if test -n "$YACC"; then
4793 echo "$as_me:$LINENO: result: $YACC" >&5
4794 echo "${ECHO_T}$YACC" >&6
4796 echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6
4800 test -n "$YACC" && break
4804 if test "$YACC"; then
4805 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4806 { echo "$as_me:$LINENO: WARNING:
4807 *** If you are going to modify the grammar files or build from CVS, the installed
4808 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4809 echo "$as_me: WARNING:
4810 *** If you are going to modify the grammar files or build from CVS, the installed
4811 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4815 if test -z "$YACC"; then
4816 { echo "$as_me:$LINENO: WARNING:
4817 *** Without Bison you will not be able to build PostgreSQL from CVS or
4818 *** change any of the parser definition files. You can obtain Bison from
4819 *** a GNU mirror site. (If you are using the official distribution of
4820 *** PostgreSQL then you do not need to worry about this because the Bison
4821 *** output is pre-generated.) To use a different yacc program (possible,
4822 *** but not recommended), set the environment variable YACC before running
4823 *** 'configure'." >&5
4824 echo "$as_me: WARNING:
4825 *** Without Bison you will not be able to build PostgreSQL from CVS or
4826 *** change any of the parser definition files. You can obtain Bison from
4827 *** a GNU mirror site. (If you are using the official distribution of
4828 *** PostgreSQL then you do not need to worry about this because the Bison
4829 *** output is pre-generated.) To use a different yacc program (possible,
4830 *** but not recommended), set the environment variable YACC before running
4831 *** 'configure'." >&2;}
4835 # Extract the first word of "perl", so it can be a program name with args.
4836 set dummy perl; ac_word=$2
4837 echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4839 if test "${ac_cv_path_PERL+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 PERL=$ac_cv_path_PERL
4866 if test -n "$PERL"; then
4867 echo "$as_me:$LINENO: result: $PERL" >&5
4868 echo "${ECHO_T}$PERL" >&6
4870 echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4874 if test "$with_perl" = yes; then
4876 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4877 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4878 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4879 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4880 echo "${ECHO_T}$perl_archlibexp" >&6
4881 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4882 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4883 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4884 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4885 echo "${ECHO_T}$perl_privlibexp" >&6
4886 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4887 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4888 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4889 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4890 echo "${ECHO_T}$perl_useshrplib" >&6
4892 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4893 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4894 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4895 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4896 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4897 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4898 echo "${ECHO_T}$perl_embed_ldflags" >&6
4901 if test "$with_python" = yes; then
4902 # Extract the first word of "python", so it can be a program name with args.
4903 set dummy python; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_path_PYTHON+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 PYTHON=$ac_cv_path_PYTHON
4933 if test -n "$PYTHON"; then
4934 echo "$as_me:$LINENO: result: $PYTHON" >&5
4935 echo "${ECHO_T}$PYTHON" >&6
4937 echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4941 if test x"$PYTHON" = x""; then
4942 { { echo "$as_me:$LINENO: error: Python not found" >&5
4943 echo "$as_me: error: Python not found" >&2;}
4944 { (exit 1); exit 1; }; }
4948 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4949 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4950 if "${PYTHON}" 2>&- -c 'import distutils'
4952 echo "$as_me:$LINENO: result: yes" >&5
4953 echo "${ECHO_T}yes" >&6
4955 echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4957 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4958 echo "$as_me: error: distutils module not found" >&2;}
4959 { (exit 1); exit 1; }; }
4961 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4962 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4963 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4964 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')"`
4965 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4967 # This should be enough of a message.
4968 echo "$as_me:$LINENO: result: $python_configdir" >&5
4969 echo "${ECHO_T}$python_configdir" >&6
4972 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4973 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4975 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4976 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4977 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4978 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4980 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4982 # New way: use the official shared library
4983 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4984 python_libspec="-L${python_libdir} -l${ldlibrary}"
4986 # Old way: use libpython from python_configdir
4987 python_libdir="${python_configdir}"
4988 python_libspec="-L${python_libdir} -lpython${python_version}"
4991 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4993 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4994 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4997 # threaded python is not supported on bsd's
4998 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4999 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5000 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5001 if test "$pythreads" = "1"; then
5002 echo "$as_me:$LINENO: result: yes" >&5
5003 echo "${ECHO_T}yes" >&6
5006 { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
5007 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
5008 { (exit 1); exit 1; }; }
5012 echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5019 # Supply a numeric version string for use by 3rd party add-ons
5020 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5021 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
5023 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
5025 cat >>confdefs.h <<_ACEOF
5026 #define PG_VERSION_NUM $PG_VERSION_NUM
5034 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5035 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5036 if test "${ac_cv_search_setproctitle+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_func_search_save_LIBS=$LIBS
5040 ac_cv_search_setproctitle=no
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5054 char setproctitle ();
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>conftest.er1
5067 grep -v '^ *+' conftest.er1 >conftest.err
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_search_setproctitle="none required"
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5091 rm -f conftest.err conftest.$ac_objext \
5092 conftest$ac_exeext conftest.$ac_ext
5093 if test "$ac_cv_search_setproctitle" = no; then
5094 for ac_lib in util; do
5095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5103 /* Override any gcc2 internal prototype to avoid an error. */
5107 /* We use char because int might match the return type of a gcc2
5108 builtin and then its argument prototype would still apply. */
5109 char setproctitle ();
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5120 (eval $ac_link) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -z "$ac_c_werror_flag"
5128 || test ! -s conftest.err'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; } &&
5134 { ac_try='test -s conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_search_setproctitle="-l$ac_lib"
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5147 rm -f conftest.err conftest.$ac_objext \
5148 conftest$ac_exeext conftest.$ac_ext
5151 LIBS=$ac_func_search_save_LIBS
5153 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5154 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5155 if test "$ac_cv_search_setproctitle" != no; then
5156 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5160 echo "$as_me:$LINENO: checking for library containing pow" >&5
5161 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
5162 if test "${ac_cv_search_pow+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 ac_func_search_save_LIBS=$LIBS
5167 cat >conftest.$ac_ext <<_ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5174 /* Override any gcc2 internal prototype to avoid an error. */
5178 /* We use char because int might match the return type of a gcc2
5179 builtin and then its argument prototype would still apply. */
5189 rm -f conftest.$ac_objext conftest$ac_exeext
5190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>conftest.er1
5193 grep -v '^ *+' conftest.er1 >conftest.err
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -z "$ac_c_werror_flag"
5199 || test ! -s conftest.err'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; } &&
5205 { ac_try='test -s conftest$ac_exeext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_cv_search_pow="none required"
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5217 rm -f conftest.err conftest.$ac_objext \
5218 conftest$ac_exeext conftest.$ac_ext
5219 if test "$ac_cv_search_pow" = no; then
5221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h. */
5229 /* Override any gcc2 internal prototype to avoid an error. */
5233 /* We use char because int might match the return type of a gcc2
5234 builtin and then its argument prototype would still apply. */
5244 rm -f conftest.$ac_objext conftest$ac_exeext
5245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5246 (eval $ac_link) 2>conftest.er1
5248 grep -v '^ *+' conftest.er1 >conftest.err
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -z "$ac_c_werror_flag"
5254 || test ! -s conftest.err'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; } &&
5260 { ac_try='test -s conftest$ac_exeext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_search_pow="-l$ac_lib"
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5273 rm -f conftest.err conftest.$ac_objext \
5274 conftest$ac_exeext conftest.$ac_ext
5277 LIBS=$ac_func_search_save_LIBS
5279 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5280 echo "${ECHO_T}$ac_cv_search_pow" >&6
5281 if test "$ac_cv_search_pow" != no; then
5282 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5286 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5287 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5288 if test "${ac_cv_search_dlopen+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 ac_func_search_save_LIBS=$LIBS
5292 ac_cv_search_dlopen=no
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5300 /* Override any gcc2 internal prototype to avoid an error. */
5304 /* We use char because int might match the return type of a gcc2
5305 builtin and then its argument prototype would still apply. */
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317 (eval $ac_link) 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_c_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest$ac_exeext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_search_dlopen="none required"
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5343 rm -f conftest.err conftest.$ac_objext \
5344 conftest$ac_exeext conftest.$ac_ext
5345 if test "$ac_cv_search_dlopen" = no; then
5346 for ac_lib in dl; do
5347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5355 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5370 rm -f conftest.$ac_objext conftest$ac_exeext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>conftest.er1
5374 grep -v '^ *+' conftest.er1 >conftest.err
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -z "$ac_c_werror_flag"
5380 || test ! -s conftest.err'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; } &&
5386 { ac_try='test -s conftest$ac_exeext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_cv_search_dlopen="-l$ac_lib"
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5399 rm -f conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5403 LIBS=$ac_func_search_save_LIBS
5405 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5406 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5407 if test "$ac_cv_search_dlopen" != no; then
5408 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5412 echo "$as_me:$LINENO: checking for library containing socket" >&5
5413 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5414 if test "${ac_cv_search_socket+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 ac_func_search_save_LIBS=$LIBS
5418 ac_cv_search_socket=no
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5426 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */
5441 rm -f conftest.$ac_objext conftest$ac_exeext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5443 (eval $ac_link) 2>conftest.er1
5445 grep -v '^ *+' conftest.er1 >conftest.err
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest$ac_exeext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_search_socket="none required"
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5469 rm -f conftest.err conftest.$ac_objext \
5470 conftest$ac_exeext conftest.$ac_ext
5471 if test "$ac_cv_search_socket" = no; then
5472 for ac_lib in socket wsock32; do
5473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5481 /* Override any gcc2 internal prototype to avoid an error. */
5485 /* We use char because int might match the return type of a gcc2
5486 builtin and then its argument prototype would still apply. */
5496 rm -f conftest.$ac_objext conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498 (eval $ac_link) 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -z "$ac_c_werror_flag"
5506 || test ! -s conftest.err'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest$ac_exeext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 ac_cv_search_socket="-l$ac_lib"
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5525 rm -f conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5529 LIBS=$ac_func_search_save_LIBS
5531 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5532 echo "${ECHO_T}$ac_cv_search_socket" >&6
5533 if test "$ac_cv_search_socket" != no; then
5534 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5538 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5539 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5540 if test "${ac_cv_search_shl_load+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 ac_func_search_save_LIBS=$LIBS
5544 ac_cv_search_shl_load=no
5545 cat >conftest.$ac_ext <<_ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5552 /* Override any gcc2 internal prototype to avoid an error. */
5556 /* We use char because int might match the return type of a gcc2
5557 builtin and then its argument prototype would still apply. */
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569 (eval $ac_link) 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_c_werror_flag"
5577 || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_search_shl_load="none required"
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5595 rm -f conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597 if test "$ac_cv_search_shl_load" = no; then
5598 for ac_lib in dld; do
5599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5607 /* Override any gcc2 internal prototype to avoid an error. */
5611 /* We use char because int might match the return type of a gcc2
5612 builtin and then its argument prototype would still apply. */
5622 rm -f conftest.$ac_objext conftest$ac_exeext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5624 (eval $ac_link) 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try='test -s conftest$ac_exeext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_search_shl_load="-l$ac_lib"
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5651 rm -f conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5655 LIBS=$ac_func_search_save_LIBS
5657 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5658 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5659 if test "$ac_cv_search_shl_load" != no; then
5660 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5664 # We only use libld in port/dynloader/aix.c
5667 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5668 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5669 if test "${ac_cv_search_ldopen+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 ac_func_search_save_LIBS=$LIBS
5673 ac_cv_search_ldopen=no
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_ldopen="none required"
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5724 rm -f conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext
5726 if test "$ac_cv_search_ldopen" = no; then
5727 for ac_lib in ld; do
5728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5736 /* Override any gcc2 internal prototype to avoid an error. */
5740 /* We use char because int might match the return type of a gcc2
5741 builtin and then its argument prototype would still apply. */
5751 rm -f conftest.$ac_objext conftest$ac_exeext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5753 (eval $ac_link) 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try='test -s conftest$ac_exeext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_search_ldopen="-l$ac_lib"
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5780 rm -f conftest.err conftest.$ac_objext \
5781 conftest$ac_exeext conftest.$ac_ext
5784 LIBS=$ac_func_search_save_LIBS
5786 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5787 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5788 if test "$ac_cv_search_ldopen" != no; then
5789 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5795 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5796 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5797 if test "${ac_cv_search_getopt_long+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 ac_func_search_save_LIBS=$LIBS
5801 ac_cv_search_getopt_long=no
5802 cat >conftest.$ac_ext <<_ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5809 /* Override any gcc2 internal prototype to avoid an error. */
5813 /* We use char because int might match the return type of a gcc2
5814 builtin and then its argument prototype would still apply. */
5815 char getopt_long ();
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826 (eval $ac_link) 2>conftest.er1
5828 grep -v '^ *+' conftest.er1 >conftest.err
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -z "$ac_c_werror_flag"
5834 || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest$ac_exeext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_search_getopt_long="none required"
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5852 rm -f conftest.err conftest.$ac_objext \
5853 conftest$ac_exeext conftest.$ac_ext
5854 if test "$ac_cv_search_getopt_long" = no; then
5855 for ac_lib in getopt gnugetopt; do
5856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5857 cat >conftest.$ac_ext <<_ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5864 /* Override any gcc2 internal prototype to avoid an error. */
5868 /* We use char because int might match the return type of a gcc2
5869 builtin and then its argument prototype would still apply. */
5870 char getopt_long ();
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5881 (eval $ac_link) 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest$ac_exeext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_search_getopt_long="-l$ac_lib"
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5908 rm -f conftest.err conftest.$ac_objext \
5909 conftest$ac_exeext conftest.$ac_ext
5912 LIBS=$ac_func_search_save_LIBS
5914 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5915 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5916 if test "$ac_cv_search_getopt_long" != no; then
5917 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5921 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5922 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5923 if test "${ac_cv_search_crypt+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 ac_func_search_save_LIBS=$LIBS
5927 ac_cv_search_crypt=no
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5935 /* Override any gcc2 internal prototype to avoid an error. */
5939 /* We use char because int might match the return type of a gcc2
5940 builtin and then its argument prototype would still apply. */
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952 (eval $ac_link) 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -z "$ac_c_werror_flag"
5960 || test ! -s conftest.err'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest$ac_exeext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5972 ac_cv_search_crypt="none required"
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5978 rm -f conftest.err conftest.$ac_objext \
5979 conftest$ac_exeext conftest.$ac_ext
5980 if test "$ac_cv_search_crypt" = no; then
5981 for ac_lib in crypt; do
5982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5983 cat >conftest.$ac_ext <<_ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 (eval $ac_link) 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag"
6015 || test ! -s conftest.err'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try='test -s conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_search_crypt="-l$ac_lib"
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6034 rm -f conftest.err conftest.$ac_objext \
6035 conftest$ac_exeext conftest.$ac_ext
6038 LIBS=$ac_func_search_save_LIBS
6040 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6041 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6042 if test "$ac_cv_search_crypt" != no; then
6043 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6048 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6049 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6050 if test "${ac_cv_search_fdatasync+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_func_search_save_LIBS=$LIBS
6054 ac_cv_search_fdatasync=no
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6062 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079 (eval $ac_link) 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -z "$ac_c_werror_flag"
6087 || test ! -s conftest.err'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest$ac_exeext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 ac_cv_search_fdatasync="none required"
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6105 rm -f conftest.err conftest.$ac_objext \
6106 conftest$ac_exeext conftest.$ac_ext
6107 if test "$ac_cv_search_fdatasync" = no; then
6108 for ac_lib in rt posix4; do
6109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest$ac_exeext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_search_fdatasync="-l$ac_lib"
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6161 rm -f conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6165 LIBS=$ac_func_search_save_LIBS
6167 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6168 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6169 if test "$ac_cv_search_fdatasync" != no; then
6170 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6175 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6176 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6177 if test "${ac_cv_search_shmget+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 ac_func_search_save_LIBS=$LIBS
6181 ac_cv_search_shmget=no
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6189 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6206 (eval $ac_link) 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_search_shmget="none required"
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6232 rm -f conftest.err conftest.$ac_objext \
6233 conftest$ac_exeext conftest.$ac_ext
6234 if test "$ac_cv_search_shmget" = no; then
6235 for ac_lib in cygipc; do
6236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6237 cat >conftest.$ac_ext <<_ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6244 /* Override any gcc2 internal prototype to avoid an error. */
6248 /* We use char because int might match the return type of a gcc2
6249 builtin and then its argument prototype would still apply. */
6259 rm -f conftest.$ac_objext conftest$ac_exeext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261 (eval $ac_link) 2>conftest.er1
6263 grep -v '^ *+' conftest.er1 >conftest.err
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_search_shmget="-l$ac_lib"
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6288 rm -f conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6292 LIBS=$ac_func_search_save_LIBS
6294 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6295 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6296 if test "$ac_cv_search_shmget" != no; then
6297 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6302 if test "$with_readline" = yes; then
6305 if test "${pgac_cv_check_readline+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 pgac_cv_check_readline=no
6309 pgac_save_LIBS=$LIBS
6310 if test x"$with_libedit_preferred" != x"yes"
6311 then READLINE_ORDER="-lreadline -ledit"
6312 else READLINE_ORDER="-ledit -lreadline"
6314 for pgac_rllib in $READLINE_ORDER ; do
6315 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6316 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6317 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6318 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6364 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6365 # recognize dependent libraries; assume curses is needed if we didn't
6366 # find any dependency.
6368 netbsd* | openbsd* | irix*)
6369 if test x"$pgac_lib" = x"" ; then
6370 pgac_lib=" -lcurses"
6374 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6382 rm -f conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6385 if test "$pgac_cv_check_readline" != no ; then
6386 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6387 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6390 echo "$as_me:$LINENO: result: no" >&5
6391 echo "${ECHO_T}no" >&6
6394 LIBS=$pgac_save_LIBS
6398 if test "$pgac_cv_check_readline" != no ; then
6399 LIBS="$pgac_cv_check_readline $LIBS"
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_LIBREADLINE 1
6408 if test x"$pgac_cv_check_readline" = x"no"; then
6409 { { echo "$as_me:$LINENO: error: readline library not found
6410 If you have readline already installed, see config.log for details on the
6411 failure. It is possible the compiler isn't looking in the proper directory.
6412 Use --without-readline to disable readline support." >&5
6413 echo "$as_me: error: readline library not found
6414 If you have readline already installed, see config.log for details on the
6415 failure. It is possible the compiler isn't looking in the proper directory.
6416 Use --without-readline to disable readline support." >&2;}
6417 { (exit 1); exit 1; }; }
6421 if test "$with_zlib" = yes; then
6423 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6424 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6425 if test "${ac_cv_lib_z_inflate+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6428 ac_check_lib_save_LIBS=$LIBS
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6437 /* Override any gcc2 internal prototype to avoid an error. */
6441 /* We use char because int might match the return type of a gcc2
6442 builtin and then its argument prototype would still apply. */
6452 rm -f conftest.$ac_objext conftest$ac_exeext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6454 (eval $ac_link) 2>conftest.er1
6456 grep -v '^ *+' conftest.er1 >conftest.err
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try='test -z "$ac_c_werror_flag"
6462 || test ! -s conftest.err'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; } &&
6468 { ac_try='test -s conftest$ac_exeext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_cv_lib_z_inflate=yes
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6479 ac_cv_lib_z_inflate=no
6481 rm -f conftest.err conftest.$ac_objext \
6482 conftest$ac_exeext conftest.$ac_ext
6483 LIBS=$ac_check_lib_save_LIBS
6485 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6486 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6487 if test $ac_cv_lib_z_inflate = yes; then
6488 cat >>confdefs.h <<_ACEOF
6495 { { echo "$as_me:$LINENO: error: zlib library not found
6496 If you have zlib already installed, see config.log for details on the
6497 failure. It is possible the compiler isn't looking in the proper directory.
6498 Use --without-zlib to disable zlib support." >&5
6499 echo "$as_me: error: zlib library not found
6500 If you have zlib already installed, see config.log for details on the
6501 failure. It is possible the compiler isn't looking in the proper directory.
6502 Use --without-zlib to disable zlib support." >&2;}
6503 { (exit 1); exit 1; }; }
6508 if test "$enable_spinlocks" = yes; then
6510 cat >>confdefs.h <<\_ACEOF
6511 #define HAVE_SPINLOCKS 1
6515 { echo "$as_me:$LINENO: WARNING:
6516 *** Not using spinlocks will cause poor performance." >&5
6517 echo "$as_me: WARNING:
6518 *** Not using spinlocks will cause poor performance." >&2;}
6521 if test "$with_krb5" = yes ; then
6522 if test "$PORTNAME" != "win32"; then
6523 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6524 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6525 if test "${ac_cv_search_com_err+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 ac_func_search_save_LIBS=$LIBS
6529 ac_cv_search_com_err=no
6530 cat >conftest.$ac_ext <<_ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6537 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554 (eval $ac_link) 2>conftest.er1
6556 grep -v '^ *+' conftest.er1 >conftest.err
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_search_com_err="none required"
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6580 rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582 if test "$ac_cv_search_com_err" = no; then
6583 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6592 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag"
6617 || test ! -s conftest.err'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_search_com_err="-l$ac_lib"
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6636 rm -f conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6640 LIBS=$ac_func_search_save_LIBS
6642 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6643 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6644 if test "$ac_cv_search_com_err" != no; then
6645 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6648 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6649 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6650 { (exit 1); exit 1; }; }
6653 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6654 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6655 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 ac_func_search_save_LIBS=$LIBS
6659 ac_cv_search_krb5_sendauth=no
6660 cat >conftest.$ac_ext <<_ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6667 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6673 char krb5_sendauth ();
6682 rm -f conftest.$ac_objext conftest$ac_exeext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6684 (eval $ac_link) 2>conftest.er1
6686 grep -v '^ *+' conftest.er1 >conftest.err
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } &&
6691 { ac_try='test -z "$ac_c_werror_flag"
6692 || test ! -s conftest.err'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; } &&
6698 { ac_try='test -s conftest$ac_exeext'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6704 ac_cv_search_krb5_sendauth="none required"
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6710 rm -f conftest.err conftest.$ac_objext \
6711 conftest$ac_exeext conftest.$ac_ext
6712 if test "$ac_cv_search_krb5_sendauth" = no; then
6713 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6722 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6728 char krb5_sendauth ();
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739 (eval $ac_link) 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } &&
6746 { ac_try='test -z "$ac_c_werror_flag"
6747 || test ! -s conftest.err'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 ac_cv_search_krb5_sendauth="-l$ac_lib"
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6766 rm -f conftest.err conftest.$ac_objext \
6767 conftest$ac_exeext conftest.$ac_ext
6770 LIBS=$ac_func_search_save_LIBS
6772 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6773 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6774 if test "$ac_cv_search_krb5_sendauth" != no; then
6775 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6778 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6779 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6780 { (exit 1); exit 1; }; }
6784 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6785 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6786 if test "${ac_cv_search_com_err+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 ac_func_search_save_LIBS=$LIBS
6790 ac_cv_search_com_err=no
6791 cat >conftest.$ac_ext <<_ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6798 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6813 rm -f conftest.$ac_objext conftest$ac_exeext
6814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6815 (eval $ac_link) 2>conftest.er1
6817 grep -v '^ *+' conftest.er1 >conftest.err
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } &&
6822 { ac_try='test -z "$ac_c_werror_flag"
6823 || test ! -s conftest.err'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try='test -s conftest$ac_exeext'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
6835 ac_cv_search_com_err="none required"
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6841 rm -f conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
6843 if test "$ac_cv_search_com_err" = no; then
6844 for ac_lib in 'comerr32 -lkrb5_32'; do
6845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6846 cat >conftest.$ac_ext <<_ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6853 /* Override any gcc2 internal prototype to avoid an error. */
6857 /* We use char because int might match the return type of a gcc2
6858 builtin and then its argument prototype would still apply. */
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870 (eval $ac_link) 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try='test -z "$ac_c_werror_flag"
6878 || test ! -s conftest.err'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; } &&
6884 { ac_try='test -s conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_search_com_err="-l$ac_lib"
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6897 rm -f conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6901 LIBS=$ac_func_search_save_LIBS
6903 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6904 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6905 if test "$ac_cv_search_com_err" != no; then
6906 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6909 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6910 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6911 { (exit 1); exit 1; }; }
6917 if test "$with_openssl" = yes ; then
6918 if test "$PORTNAME" != "win32"; then
6920 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6921 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6922 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 ac_check_lib_save_LIBS=$LIBS
6926 LIBS="-lcrypto $LIBS"
6927 cat >conftest.$ac_ext <<_ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6934 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6940 char CRYPTO_new_ex_data ();
6944 CRYPTO_new_ex_data ();
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 (eval $ac_link) 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag"
6959 || test ! -s conftest.err'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6978 rm -f conftest.err conftest.$ac_objext \
6979 conftest$ac_exeext conftest.$ac_ext
6980 LIBS=$ac_check_lib_save_LIBS
6982 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6983 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6984 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6985 cat >>confdefs.h <<_ACEOF
6986 #define HAVE_LIBCRYPTO 1
6989 LIBS="-lcrypto $LIBS"
6992 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6993 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6994 { (exit 1); exit 1; }; }
6998 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6999 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7000 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 ac_check_lib_save_LIBS=$LIBS
7005 cat >conftest.$ac_ext <<_ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7012 /* Override any gcc2 internal prototype to avoid an error. */
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7018 char SSL_library_init ();
7022 SSL_library_init ();
7027 rm -f conftest.$ac_objext conftest$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>conftest.er1
7031 grep -v '^ *+' conftest.er1 >conftest.err
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -z "$ac_c_werror_flag"
7037 || test ! -s conftest.err'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; } &&
7043 { ac_try='test -s conftest$ac_exeext'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
7049 ac_cv_lib_ssl_SSL_library_init=yes
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_cv_lib_ssl_SSL_library_init=no
7056 rm -f conftest.err conftest.$ac_objext \
7057 conftest$ac_exeext conftest.$ac_ext
7058 LIBS=$ac_check_lib_save_LIBS
7060 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7061 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7062 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7063 cat >>confdefs.h <<_ACEOF
7064 #define HAVE_LIBSSL 1
7070 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7071 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7072 { (exit 1); exit 1; }; }
7077 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7078 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7079 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 ac_check_lib_save_LIBS=$LIBS
7083 LIBS="-leay32 $LIBS"
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7091 /* Override any gcc2 internal prototype to avoid an error. */
7095 /* We use char because int might match the return type of a gcc2
7096 builtin and then its argument prototype would still apply. */
7097 char CRYPTO_new_ex_data ();
7101 CRYPTO_new_ex_data ();
7106 rm -f conftest.$ac_objext conftest$ac_exeext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7108 (eval $ac_link) 2>conftest.er1
7110 grep -v '^ *+' conftest.er1 >conftest.err
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -z "$ac_c_werror_flag"
7116 || test ! -s conftest.err'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7135 rm -f conftest.err conftest.$ac_objext \
7136 conftest$ac_exeext conftest.$ac_ext
7137 LIBS=$ac_check_lib_save_LIBS
7139 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7140 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7141 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7142 cat >>confdefs.h <<_ACEOF
7143 #define HAVE_LIBEAY32 1
7146 LIBS="-leay32 $LIBS"
7149 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7150 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7151 { (exit 1); exit 1; }; }
7155 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7156 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7157 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_check_lib_save_LIBS=$LIBS
7161 LIBS="-lssleay32 $LIBS"
7162 cat >conftest.$ac_ext <<_ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7169 /* Override any gcc2 internal prototype to avoid an error. */
7173 /* We use char because int might match the return type of a gcc2
7174 builtin and then its argument prototype would still apply. */
7175 char SSL_library_init ();
7179 SSL_library_init ();
7184 rm -f conftest.$ac_objext conftest$ac_exeext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>conftest.er1
7188 grep -v '^ *+' conftest.er1 >conftest.err
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag"
7194 || test ! -s conftest.err'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; } &&
7200 { ac_try='test -s conftest$ac_exeext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 ac_cv_lib_ssleay32_SSL_library_init=yes
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 ac_cv_lib_ssleay32_SSL_library_init=no
7213 rm -f conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
7215 LIBS=$ac_check_lib_save_LIBS
7217 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7218 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7219 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7220 cat >>confdefs.h <<_ACEOF
7221 #define HAVE_LIBSSLEAY32 1
7224 LIBS="-lssleay32 $LIBS"
7227 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7228 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7229 { (exit 1); exit 1; }; }
7235 if test "$with_pam" = yes ; then
7237 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7238 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7239 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 ac_check_lib_save_LIBS=$LIBS
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7251 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */
7266 rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7268 (eval $ac_link) 2>conftest.er1
7270 grep -v '^ *+' conftest.er1 >conftest.err
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest$ac_exeext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_cv_lib_pam_pam_start=yes
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 ac_cv_lib_pam_pam_start=no
7295 rm -f conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
7297 LIBS=$ac_check_lib_save_LIBS
7299 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7300 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7301 if test $ac_cv_lib_pam_pam_start = yes; then
7302 cat >>confdefs.h <<_ACEOF
7303 #define HAVE_LIBPAM 1
7309 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7310 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7311 { (exit 1); exit 1; }; }
7317 if test "$with_ldap" = yes ; then
7318 if test "$PORTNAME" != "win32"; then
7320 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
7321 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
7322 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 ac_check_lib_save_LIBS=$LIBS
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7334 /* Override any gcc2 internal prototype to avoid an error. */
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>conftest.er1
7353 grep -v '^ *+' conftest.er1 >conftest.err
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_lib_ldap_ldap_bind=yes
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_lib_ldap_ldap_bind=no
7378 rm -f conftest.err conftest.$ac_objext \
7379 conftest$ac_exeext conftest.$ac_ext
7380 LIBS=$ac_check_lib_save_LIBS
7382 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
7383 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
7384 if test $ac_cv_lib_ldap_ldap_bind = yes; then
7385 cat >>confdefs.h <<_ACEOF
7386 #define HAVE_LIBLDAP 1
7392 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
7393 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
7394 { (exit 1); exit 1; }; }
7399 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
7400 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
7401 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 ac_check_lib_save_LIBS=$LIBS
7405 LIBS="-lwldap32 $LIBS"
7406 cat >conftest.$ac_ext <<_ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7413 /* Override any gcc2 internal prototype to avoid an error. */
7417 /* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */
7428 rm -f conftest.$ac_objext conftest$ac_exeext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>conftest.er1
7432 grep -v '^ *+' conftest.er1 >conftest.err
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try='test -z "$ac_c_werror_flag"
7438 || test ! -s conftest.err'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; } &&
7444 { ac_try='test -s conftest$ac_exeext'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_lib_wldap32_ldap_bind=yes
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7455 ac_cv_lib_wldap32_ldap_bind=no
7457 rm -f conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
7459 LIBS=$ac_check_lib_save_LIBS
7461 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
7462 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
7463 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
7464 cat >>confdefs.h <<_ACEOF
7465 #define HAVE_LIBWLDAP32 1
7468 LIBS="-lwldap32 $LIBS"
7471 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
7472 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
7473 { (exit 1); exit 1; }; }
7483 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7484 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7485 if test "${ac_cv_header_stdc+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.$ac_ext <<_ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest.$ac_objext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_header_stdc=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_header_stdc=no
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7538 if test $ac_cv_header_stdc = yes; then
7539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7540 cat >conftest.$ac_ext <<_ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7550 $EGREP "memchr" >/dev/null 2>&1; then
7553 ac_cv_header_stdc=no
7559 if test $ac_cv_header_stdc = yes; then
7560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7561 cat >conftest.$ac_ext <<_ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7571 $EGREP "free" >/dev/null 2>&1; then
7574 ac_cv_header_stdc=no
7580 if test $ac_cv_header_stdc = yes; then
7581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7582 if test "$cross_compiling" = yes; then
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7592 #if ((' ' & 0x0FF) == 0x020)
7593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7596 # define ISLOWER(c) \
7597 (('a' <= (c) && (c) <= 'i') \
7598 || ('j' <= (c) && (c) <= 'r') \
7599 || ('s' <= (c) && (c) <= 'z'))
7600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7608 for (i = 0; i < 256; i++)
7609 if (XOR (islower (i), ISLOWER (i))
7610 || toupper (i) != TOUPPER (i))
7615 rm -f conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7628 echo "$as_me: program exited with status $ac_status" >&5
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_cv_header_stdc=no
7635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7640 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7641 if test $ac_cv_header_stdc = yes; then
7643 cat >>confdefs.h <<\_ACEOF
7644 #define STDC_HEADERS 1
7649 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7660 inttypes.h stdint.h unistd.h
7662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7663 echo "$as_me:$LINENO: checking for $ac_header" >&5
7664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 $ac_includes_default
7676 #include <$ac_header>
7678 rm -f conftest.$ac_objext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680 (eval $ac_compile) 2>conftest.er1
7682 grep -v '^ *+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -z "$ac_c_werror_flag"
7688 || test ! -s conftest.err'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; } &&
7694 { ac_try='test -s conftest.$ac_objext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7700 eval "$as_ac_Header=yes"
7702 echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 eval "$as_ac_Header=no"
7707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7712 cat >>confdefs.h <<_ACEOF
7713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7746 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750 echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7758 # Is the header compilable?
7759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 $ac_includes_default
7768 #include <$ac_header>
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_header_compiler=yes
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 ac_header_compiler=no
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7801 echo "${ECHO_T}$ac_header_compiler" >&6
7803 # Is the header present?
7804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <$ac_header>
7814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7817 grep -v '^ *+' conftest.er1 >conftest.err
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } >/dev/null; then
7822 if test -s conftest.err; then
7823 ac_cpp_err=$ac_c_preproc_warn_flag
7824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7831 if test -z "$ac_cpp_err"; then
7832 ac_header_preproc=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 ac_header_preproc=no
7839 rm -f conftest.err conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7841 echo "${ECHO_T}$ac_header_preproc" >&6
7843 # So? What about this header?
7844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7850 ac_header_preproc=yes
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7867 ## ---------------------------------------- ##
7868 ## Report this to pgsql-bugs@postgresql.org ##
7869 ## ---------------------------------------- ##
7872 sed "s/^/$as_me: WARNING: /" >&2
7875 echo "$as_me:$LINENO: checking for $ac_header" >&5
7876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 eval "$as_ac_Header=\$ac_header_preproc"
7882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7887 cat >>confdefs.h <<_ACEOF
7888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7896 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7897 # netinet/in.h is included first.
7899 for ac_header in netinet/in.h
7901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7903 echo "$as_me:$LINENO: checking for $ac_header" >&5
7904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7911 # Is the header compilable?
7912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 $ac_includes_default
7921 #include <$ac_header>
7923 rm -f conftest.$ac_objext
7924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7925 (eval $ac_compile) 2>conftest.er1
7927 grep -v '^ *+' conftest.er1 >conftest.err
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } &&
7932 { ac_try='test -z "$ac_c_werror_flag"
7933 || test ! -s conftest.err'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; } &&
7939 { ac_try='test -s conftest.$ac_objext'
7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; }; then
7945 ac_header_compiler=yes
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 ac_header_compiler=no
7952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7954 echo "${ECHO_T}$ac_header_compiler" >&6
7956 # Is the header present?
7957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7959 cat >conftest.$ac_ext <<_ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 #include <$ac_header>
7967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } >/dev/null; then
7975 if test -s conftest.err; then
7976 ac_cpp_err=$ac_c_preproc_warn_flag
7977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7984 if test -z "$ac_cpp_err"; then
7985 ac_header_preproc=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_header_preproc=no
7992 rm -f conftest.err conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7994 echo "${ECHO_T}$ac_header_preproc" >&6
7996 # So? What about this header?
7997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8003 ac_header_preproc=yes
8006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8020 ## ---------------------------------------- ##
8021 ## Report this to pgsql-bugs@postgresql.org ##
8022 ## ---------------------------------------- ##
8025 sed "s/^/$as_me: WARNING: /" >&2
8028 echo "$as_me:$LINENO: checking for $ac_header" >&5
8029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 eval "$as_ac_Header=\$ac_header_preproc"
8035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8040 cat >>confdefs.h <<_ACEOF
8041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8049 for ac_header in netinet/tcp.h
8051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8052 echo "$as_me:$LINENO: checking for $ac_header" >&5
8053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 $ac_includes_default
8064 #ifdef HAVE_NETINET_IN_H
8065 #include <netinet/in.h>
8069 #include <$ac_header>
8071 rm -f conftest.$ac_objext
8072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8073 (eval $ac_compile) 2>conftest.er1
8075 grep -v '^ *+' conftest.er1 >conftest.err
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -z "$ac_c_werror_flag"
8081 || test ! -s conftest.err'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; } &&
8087 { ac_try='test -s conftest.$ac_objext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 eval "$as_ac_Header=yes"
8095 echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 eval "$as_ac_Header=no"
8100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8105 cat >>confdefs.h <<_ACEOF
8106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8114 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8116 for ac_header in readline/readline.h
8118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8120 echo "$as_me:$LINENO: checking for $ac_header" >&5
8121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8128 # Is the header compilable?
8129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8138 #include <$ac_header>
8140 rm -f conftest.$ac_objext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -z "$ac_c_werror_flag"
8150 || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest.$ac_objext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_header_compiler=yes
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ac_header_compiler=no
8169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8171 echo "${ECHO_T}$ac_header_compiler" >&6
8173 # Is the header present?
8174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 #include <$ac_header>
8184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8187 grep -v '^ *+' conftest.er1 >conftest.err
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } >/dev/null; then
8192 if test -s conftest.err; then
8193 ac_cpp_err=$ac_c_preproc_warn_flag
8194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8201 if test -z "$ac_cpp_err"; then
8202 ac_header_preproc=yes
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_header_preproc=no
8209 rm -f conftest.err conftest.$ac_ext
8210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8211 echo "${ECHO_T}$ac_header_preproc" >&6
8213 # So? What about this header?
8214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8220 ac_header_preproc=yes
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8237 ## ---------------------------------------- ##
8238 ## Report this to pgsql-bugs@postgresql.org ##
8239 ## ---------------------------------------- ##
8242 sed "s/^/$as_me: WARNING: /" >&2
8245 echo "$as_me:$LINENO: checking for $ac_header" >&5
8246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 eval "$as_ac_Header=\$ac_header_preproc"
8252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8257 cat >>confdefs.h <<_ACEOF
8258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8263 for ac_header in readline.h
8265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8267 echo "$as_me:$LINENO: checking for $ac_header" >&5
8268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8275 # Is the header compilable?
8276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 $ac_includes_default
8285 #include <$ac_header>
8287 rm -f conftest.$ac_objext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289 (eval $ac_compile) 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag"
8297 || test ! -s conftest.err'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_header_compiler=yes
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 ac_header_compiler=no
8316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8318 echo "${ECHO_T}$ac_header_compiler" >&6
8320 # Is the header present?
8321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <$ac_header>
8331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8334 grep -v '^ *+' conftest.er1 >conftest.err
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } >/dev/null; then
8339 if test -s conftest.err; then
8340 ac_cpp_err=$ac_c_preproc_warn_flag
8341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8348 if test -z "$ac_cpp_err"; then
8349 ac_header_preproc=yes
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 ac_header_preproc=no
8356 rm -f conftest.err conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 echo "${ECHO_T}$ac_header_preproc" >&6
8360 # So? What about this header?
8361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8367 ac_header_preproc=yes
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8384 ## ---------------------------------------- ##
8385 ## Report this to pgsql-bugs@postgresql.org ##
8386 ## ---------------------------------------- ##
8389 sed "s/^/$as_me: WARNING: /" >&2
8392 echo "$as_me:$LINENO: checking for $ac_header" >&5
8393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 eval "$as_ac_Header=\$ac_header_preproc"
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8404 cat >>confdefs.h <<_ACEOF
8405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8409 { { echo "$as_me:$LINENO: error: readline header not found
8410 If you have readline already installed, see config.log for details on the
8411 failure. It is possible the compiler isn't looking in the proper directory.
8412 Use --without-readline to disable readline support." >&5
8413 echo "$as_me: error: readline header not found
8414 If you have readline already installed, see config.log for details on the
8415 failure. It is possible the compiler isn't looking in the proper directory.
8416 Use --without-readline to disable readline support." >&2;}
8417 { (exit 1); exit 1; }; }
8427 for ac_header in readline/history.h
8429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431 echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439 # Is the header compilable?
8440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 $ac_includes_default
8449 #include <$ac_header>
8451 rm -f conftest.$ac_objext
8452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8453 (eval $ac_compile) 2>conftest.er1
8455 grep -v '^ *+' conftest.er1 >conftest.err
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -z "$ac_c_werror_flag"
8461 || test ! -s conftest.err'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; } &&
8467 { ac_try='test -s conftest.$ac_objext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_header_compiler=yes
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_header_compiler=no
8480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8482 echo "${ECHO_T}$ac_header_compiler" >&6
8484 # Is the header present?
8485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 #include <$ac_header>
8495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } >/dev/null; then
8503 if test -s conftest.err; then
8504 ac_cpp_err=$ac_c_preproc_warn_flag
8505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8512 if test -z "$ac_cpp_err"; then
8513 ac_header_preproc=yes
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_header_preproc=no
8520 rm -f conftest.err conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8522 echo "${ECHO_T}$ac_header_preproc" >&6
8524 # So? What about this header?
8525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8531 ac_header_preproc=yes
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8548 ## ---------------------------------------- ##
8549 ## Report this to pgsql-bugs@postgresql.org ##
8550 ## ---------------------------------------- ##
8553 sed "s/^/$as_me: WARNING: /" >&2
8556 echo "$as_me:$LINENO: checking for $ac_header" >&5
8557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 eval "$as_ac_Header=\$ac_header_preproc"
8563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8568 cat >>confdefs.h <<_ACEOF
8569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8574 for ac_header in history.h
8576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8578 echo "$as_me:$LINENO: checking for $ac_header" >&5
8579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8586 # Is the header compilable?
8587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 $ac_includes_default
8596 #include <$ac_header>
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_header_compiler=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 ac_header_compiler=no
8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8629 echo "${ECHO_T}$ac_header_compiler" >&6
8631 # Is the header present?
8632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #include <$ac_header>
8642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8645 grep -v '^ *+' conftest.er1 >conftest.err
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } >/dev/null; then
8650 if test -s conftest.err; then
8651 ac_cpp_err=$ac_c_preproc_warn_flag
8652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8659 if test -z "$ac_cpp_err"; then
8660 ac_header_preproc=yes
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ac_header_preproc=no
8667 rm -f conftest.err conftest.$ac_ext
8668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8669 echo "${ECHO_T}$ac_header_preproc" >&6
8671 # So? What about this header?
8672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8678 ac_header_preproc=yes
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8695 ## ---------------------------------------- ##
8696 ## Report this to pgsql-bugs@postgresql.org ##
8697 ## ---------------------------------------- ##
8700 sed "s/^/$as_me: WARNING: /" >&2
8703 echo "$as_me:$LINENO: checking for $ac_header" >&5
8704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 eval "$as_ac_Header=\$ac_header_preproc"
8710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8715 cat >>confdefs.h <<_ACEOF
8716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8720 { { echo "$as_me:$LINENO: error: history header not found
8721 If you have readline already installed, see config.log for details on the
8722 failure. It is possible the compiler isn't looking in the proper directory.
8723 Use --without-readline to disable readline support." >&5
8724 echo "$as_me: error: history header not found
8725 If you have readline already installed, see config.log for details on the
8726 failure. It is possible the compiler isn't looking in the proper directory.
8727 Use --without-readline to disable readline support." >&2;}
8728 { (exit 1); exit 1; }; }
8739 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8740 # Some installations of libedit usurp /usr/include/readline/, which seems
8741 # bad practice, since in combined installations readline will have its headers
8742 # there. We might have to resort to AC_EGREP checks to make sure we found
8743 # the proper header...
8745 for ac_header in editline/readline.h
8747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8749 echo "$as_me:$LINENO: checking for $ac_header" >&5
8750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8757 # Is the header compilable?
8758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8760 cat >conftest.$ac_ext <<_ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766 $ac_includes_default
8767 #include <$ac_header>
8769 rm -f conftest.$ac_objext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8771 (eval $ac_compile) 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -z "$ac_c_werror_flag"
8779 || test ! -s conftest.err'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; } &&
8785 { ac_try='test -s conftest.$ac_objext'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_header_compiler=yes
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8796 ac_header_compiler=no
8798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8800 echo "${ECHO_T}$ac_header_compiler" >&6
8802 # Is the header present?
8803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8805 cat >conftest.$ac_ext <<_ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8811 #include <$ac_header>
8813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } >/dev/null; then
8821 if test -s conftest.err; then
8822 ac_cpp_err=$ac_c_preproc_warn_flag
8823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8830 if test -z "$ac_cpp_err"; then
8831 ac_header_preproc=yes
8833 echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8836 ac_header_preproc=no
8838 rm -f conftest.err conftest.$ac_ext
8839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8840 echo "${ECHO_T}$ac_header_preproc" >&6
8842 # So? What about this header?
8843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8849 ac_header_preproc=yes
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8866 ## ---------------------------------------- ##
8867 ## Report this to pgsql-bugs@postgresql.org ##
8868 ## ---------------------------------------- ##
8871 sed "s/^/$as_me: WARNING: /" >&2
8874 echo "$as_me:$LINENO: checking for $ac_header" >&5
8875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 eval "$as_ac_Header=\$ac_header_preproc"
8881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8886 cat >>confdefs.h <<_ACEOF
8887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8892 for ac_header in readline.h
8894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8896 echo "$as_me:$LINENO: checking for $ac_header" >&5
8897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8904 # Is the header compilable?
8905 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8914 #include <$ac_header>
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8918 (eval $ac_compile) 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -z "$ac_c_werror_flag"
8926 || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest.$ac_objext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_header_compiler=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_header_compiler=no
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8947 echo "${ECHO_T}$ac_header_compiler" >&6
8949 # Is the header present?
8950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 #include <$ac_header>
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null; then
8968 if test -s conftest.err; then
8969 ac_cpp_err=$ac_c_preproc_warn_flag
8970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8977 if test -z "$ac_cpp_err"; then
8978 ac_header_preproc=yes
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 ac_header_preproc=no
8985 rm -f conftest.err conftest.$ac_ext
8986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8987 echo "${ECHO_T}$ac_header_preproc" >&6
8989 # So? What about this header?
8990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8996 ac_header_preproc=yes
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9013 ## ---------------------------------------- ##
9014 ## Report this to pgsql-bugs@postgresql.org ##
9015 ## ---------------------------------------- ##
9018 sed "s/^/$as_me: WARNING: /" >&2
9021 echo "$as_me:$LINENO: checking for $ac_header" >&5
9022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 eval "$as_ac_Header=\$ac_header_preproc"
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9033 cat >>confdefs.h <<_ACEOF
9034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9039 for ac_header in readline/readline.h
9041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043 echo "$as_me:$LINENO: checking for $ac_header" >&5
9044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9051 # Is the header compilable?
9052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 #include <$ac_header>
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>conftest.er1
9067 grep -v '^ *+' conftest.er1 >conftest.err
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest.$ac_objext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_header_compiler=yes
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_header_compiler=no
9092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6
9096 # Is the header present?
9097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 #include <$ac_header>
9107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9110 grep -v '^ *+' conftest.er1 >conftest.err
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } >/dev/null; then
9115 if test -s conftest.err; then
9116 ac_cpp_err=$ac_c_preproc_warn_flag
9117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9124 if test -z "$ac_cpp_err"; then
9125 ac_header_preproc=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9130 ac_header_preproc=no
9132 rm -f conftest.err conftest.$ac_ext
9133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9134 echo "${ECHO_T}$ac_header_preproc" >&6
9136 # So? What about this header?
9137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9143 ac_header_preproc=yes
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9160 ## ---------------------------------------- ##
9161 ## Report this to pgsql-bugs@postgresql.org ##
9162 ## ---------------------------------------- ##
9165 sed "s/^/$as_me: WARNING: /" >&2
9168 echo "$as_me:$LINENO: checking for $ac_header" >&5
9169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 eval "$as_ac_Header=\$ac_header_preproc"
9175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9185 { { echo "$as_me:$LINENO: error: readline header not found
9186 If you have libedit already installed, see config.log for details on the
9187 failure. It is possible the compiler isn't looking in the proper directory.
9188 Use --without-readline to disable libedit support." >&5
9189 echo "$as_me: error: readline header not found
9190 If you have libedit already installed, see config.log for details on the
9191 failure. It is possible the compiler isn't looking in the proper directory.
9192 Use --without-readline to disable libedit support." >&2;}
9193 { (exit 1); exit 1; }; }
9207 for ac_header in editline/history.h
9209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9211 echo "$as_me:$LINENO: checking for $ac_header" >&5
9212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9219 # Is the header compilable?
9220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 $ac_includes_default
9229 #include <$ac_header>
9231 rm -f conftest.$ac_objext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233 (eval $ac_compile) 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag"
9241 || test ! -s conftest.err'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; } &&
9247 { ac_try='test -s conftest.$ac_objext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253 ac_header_compiler=yes
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 ac_header_compiler=no
9260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9262 echo "${ECHO_T}$ac_header_compiler" >&6
9264 # Is the header present?
9265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 #include <$ac_header>
9275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } >/dev/null; then
9283 if test -s conftest.err; then
9284 ac_cpp_err=$ac_c_preproc_warn_flag
9285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9292 if test -z "$ac_cpp_err"; then
9293 ac_header_preproc=yes
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_header_preproc=no
9300 rm -f conftest.err conftest.$ac_ext
9301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9302 echo "${ECHO_T}$ac_header_preproc" >&6
9304 # So? What about this header?
9305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9311 ac_header_preproc=yes
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9328 ## ---------------------------------------- ##
9329 ## Report this to pgsql-bugs@postgresql.org ##
9330 ## ---------------------------------------- ##
9333 sed "s/^/$as_me: WARNING: /" >&2
9336 echo "$as_me:$LINENO: checking for $ac_header" >&5
9337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 eval "$as_ac_Header=\$ac_header_preproc"
9343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9348 cat >>confdefs.h <<_ACEOF
9349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9354 for ac_header in history.h
9356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358 echo "$as_me:$LINENO: checking for $ac_header" >&5
9359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9366 # Is the header compilable?
9367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9376 #include <$ac_header>
9378 rm -f conftest.$ac_objext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9380 (eval $ac_compile) 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_header_compiler=yes
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_header_compiler=no
9407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9409 echo "${ECHO_T}$ac_header_compiler" >&6
9411 # Is the header present?
9412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9414 cat >conftest.$ac_ext <<_ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 #include <$ac_header>
9422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9425 grep -v '^ *+' conftest.er1 >conftest.err
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } >/dev/null; then
9430 if test -s conftest.err; then
9431 ac_cpp_err=$ac_c_preproc_warn_flag
9432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9439 if test -z "$ac_cpp_err"; then
9440 ac_header_preproc=yes
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 ac_header_preproc=no
9447 rm -f conftest.err conftest.$ac_ext
9448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9449 echo "${ECHO_T}$ac_header_preproc" >&6
9451 # So? What about this header?
9452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9458 ac_header_preproc=yes
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9475 ## ---------------------------------------- ##
9476 ## Report this to pgsql-bugs@postgresql.org ##
9477 ## ---------------------------------------- ##
9480 sed "s/^/$as_me: WARNING: /" >&2
9483 echo "$as_me:$LINENO: checking for $ac_header" >&5
9484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 eval "$as_ac_Header=\$ac_header_preproc"
9490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9495 cat >>confdefs.h <<_ACEOF
9496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9501 for ac_header in readline/history.h
9503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9505 echo "$as_me:$LINENO: checking for $ac_header" >&5
9506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9513 # Is the header compilable?
9514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 $ac_includes_default
9523 #include <$ac_header>
9525 rm -f conftest.$ac_objext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9527 (eval $ac_compile) 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } &&
9534 { ac_try='test -z "$ac_c_werror_flag"
9535 || test ! -s conftest.err'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; } &&
9541 { ac_try='test -s conftest.$ac_objext'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_header_compiler=yes
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9552 ac_header_compiler=no
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9556 echo "${ECHO_T}$ac_header_compiler" >&6
9558 # Is the header present?
9559 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 #include <$ac_header>
9569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9572 grep -v '^ *+' conftest.er1 >conftest.err
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } >/dev/null; then
9577 if test -s conftest.err; then
9578 ac_cpp_err=$ac_c_preproc_warn_flag
9579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9586 if test -z "$ac_cpp_err"; then
9587 ac_header_preproc=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_header_preproc=no
9594 rm -f conftest.err conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 echo "${ECHO_T}$ac_header_preproc" >&6
9598 # So? What about this header?
9599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9605 ac_header_preproc=yes
9608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9622 ## ---------------------------------------- ##
9623 ## Report this to pgsql-bugs@postgresql.org ##
9624 ## ---------------------------------------- ##
9627 sed "s/^/$as_me: WARNING: /" >&2
9630 echo "$as_me:$LINENO: checking for $ac_header" >&5
9631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 eval "$as_ac_Header=\$ac_header_preproc"
9637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9642 cat >>confdefs.h <<_ACEOF
9643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9647 { { echo "$as_me:$LINENO: error: history header not found
9648 If you have libedit already installed, see config.log for details on the
9649 failure. It is possible the compiler isn't looking in the proper directory.
9650 Use --without-readline to disable libedit support." >&5
9651 echo "$as_me: error: history header not found
9652 If you have libedit already installed, see config.log for details on the
9653 failure. It is possible the compiler isn't looking in the proper directory.
9654 Use --without-readline to disable libedit support." >&2;}
9655 { (exit 1); exit 1; }; }
9670 if test "$with_zlib" = yes; then
9671 if test "${ac_cv_header_zlib_h+set}" = set; then
9672 echo "$as_me:$LINENO: checking for zlib.h" >&5
9673 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9674 if test "${ac_cv_header_zlib_h+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9678 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9680 # Is the header compilable?
9681 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9682 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9683 cat >conftest.$ac_ext <<_ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 $ac_includes_default
9692 rm -f conftest.$ac_objext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9694 (eval $ac_compile) 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest.$ac_objext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_header_compiler=yes
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_header_compiler=no
9721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9723 echo "${ECHO_T}$ac_header_compiler" >&6
9725 # Is the header present?
9726 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9727 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9739 grep -v '^ *+' conftest.er1 >conftest.err
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } >/dev/null; then
9744 if test -s conftest.err; then
9745 ac_cpp_err=$ac_c_preproc_warn_flag
9746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9753 if test -z "$ac_cpp_err"; then
9754 ac_header_preproc=yes
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_header_preproc=no
9761 rm -f conftest.err conftest.$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9763 echo "${ECHO_T}$ac_header_preproc" >&6
9765 # So? What about this header?
9766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9768 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9769 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9770 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9771 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9772 ac_header_preproc=yes
9775 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9776 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9778 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9780 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9782 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9784 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9786 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9789 ## ---------------------------------------- ##
9790 ## Report this to pgsql-bugs@postgresql.org ##
9791 ## ---------------------------------------- ##
9794 sed "s/^/$as_me: WARNING: /" >&2
9797 echo "$as_me:$LINENO: checking for zlib.h" >&5
9798 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9799 if test "${ac_cv_header_zlib_h+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 ac_cv_header_zlib_h=$ac_header_preproc
9804 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9805 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9808 if test $ac_cv_header_zlib_h = yes; then
9811 { { echo "$as_me:$LINENO: error: zlib header not found
9812 If you have zlib already installed, see config.log for details on the
9813 failure. It is possible the compiler isn't looking in the proper directory.
9814 Use --without-zlib to disable zlib support." >&5
9815 echo "$as_me: error: zlib header not found
9816 If you have zlib already installed, see config.log for details on the
9817 failure. It is possible the compiler isn't looking in the proper directory.
9818 Use --without-zlib to disable zlib support." >&2;}
9819 { (exit 1); exit 1; }; }
9825 if test "$with_krb5" = yes ; then
9826 if test "${ac_cv_header_krb5_h+set}" = set; then
9827 echo "$as_me:$LINENO: checking for krb5.h" >&5
9828 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9829 if test "${ac_cv_header_krb5_h+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9833 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9835 # Is the header compilable?
9836 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9837 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 $ac_includes_default
9847 rm -f conftest.$ac_objext
9848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9849 (eval $ac_compile) 2>conftest.er1
9851 grep -v '^ *+' conftest.er1 >conftest.err
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -z "$ac_c_werror_flag"
9857 || test ! -s conftest.err'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest.$ac_objext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_header_compiler=yes
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_header_compiler=no
9876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 echo "${ECHO_T}$ac_header_compiler" >&6
9880 # Is the header present?
9881 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9882 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } >/dev/null; then
9899 if test -s conftest.err; then
9900 ac_cpp_err=$ac_c_preproc_warn_flag
9901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9908 if test -z "$ac_cpp_err"; then
9909 ac_header_preproc=yes
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9914 ac_header_preproc=no
9916 rm -f conftest.err conftest.$ac_ext
9917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9923 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9930 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9944 ## ---------------------------------------- ##
9945 ## Report this to pgsql-bugs@postgresql.org ##
9946 ## ---------------------------------------- ##
9949 sed "s/^/$as_me: WARNING: /" >&2
9952 echo "$as_me:$LINENO: checking for krb5.h" >&5
9953 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9954 if test "${ac_cv_header_krb5_h+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 ac_cv_header_krb5_h=$ac_header_preproc
9959 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9960 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9963 if test $ac_cv_header_krb5_h = yes; then
9966 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9967 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9968 { (exit 1); exit 1; }; }
9974 if test "$with_openssl" = yes ; then
9975 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9976 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9977 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9978 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9982 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9984 # Is the header compilable?
9985 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9986 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 #include <openssl/ssl.h>
9996 rm -f conftest.$ac_objext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9998 (eval $ac_compile) 2>conftest.er1
10000 grep -v '^ *+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try='test -z "$ac_c_werror_flag"
10006 || test ! -s conftest.err'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; } &&
10012 { ac_try='test -s conftest.$ac_objext'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_header_compiler=yes
10020 echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_header_compiler=no
10025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10027 echo "${ECHO_T}$ac_header_compiler" >&6
10029 # Is the header present?
10030 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10031 echo $ECHO_N "checking openssl/ssl.h presence... $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 #include <openssl/ssl.h>
10040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } >/dev/null; then
10048 if test -s conftest.err; then
10049 ac_cpp_err=$ac_c_preproc_warn_flag
10050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10057 if test -z "$ac_cpp_err"; then
10058 ac_header_preproc=yes
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 ac_header_preproc=no
10065 rm -f conftest.err conftest.$ac_ext
10066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10067 echo "${ECHO_T}$ac_header_preproc" >&6
10069 # So? What about this header?
10070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10072 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10073 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10075 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10076 ac_header_preproc=yes
10079 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10080 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10082 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10084 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10086 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10088 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10090 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10093 ## ---------------------------------------- ##
10094 ## Report this to pgsql-bugs@postgresql.org ##
10095 ## ---------------------------------------- ##
10098 sed "s/^/$as_me: WARNING: /" >&2
10101 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10102 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10103 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10108 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10109 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10112 if test $ac_cv_header_openssl_ssl_h = yes; then
10115 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10116 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10117 { (exit 1); exit 1; }; }
10121 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10122 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10123 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10124 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10128 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10130 # Is the header compilable?
10131 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10132 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10133 cat >conftest.$ac_ext <<_ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 $ac_includes_default
10140 #include <openssl/err.h>
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_header_compiler=yes
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_header_compiler=no
10171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 echo "${ECHO_T}$ac_header_compiler" >&6
10175 # Is the header present?
10176 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10177 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <openssl/err.h>
10186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } >/dev/null; then
10194 if test -s conftest.err; then
10195 ac_cpp_err=$ac_c_preproc_warn_flag
10196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10203 if test -z "$ac_cpp_err"; then
10204 ac_header_preproc=yes
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_header_preproc=no
10211 rm -f conftest.err conftest.$ac_ext
10212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213 echo "${ECHO_T}$ac_header_preproc" >&6
10215 # So? What about this header?
10216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10218 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10219 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10221 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10222 ac_header_preproc=yes
10225 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10226 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10228 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10230 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10232 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10234 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10236 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10239 ## ---------------------------------------- ##
10240 ## Report this to pgsql-bugs@postgresql.org ##
10241 ## ---------------------------------------- ##
10244 sed "s/^/$as_me: WARNING: /" >&2
10247 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10248 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10249 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 ac_cv_header_openssl_err_h=$ac_header_preproc
10254 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10255 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10258 if test $ac_cv_header_openssl_err_h = yes; then
10261 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10262 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10263 { (exit 1); exit 1; }; }
10269 if test "$with_pam" = yes ; then
10271 for ac_header in security/pam_appl.h
10273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275 echo "$as_me:$LINENO: checking for $ac_header" >&5
10276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10283 # Is the header compilable?
10284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10286 cat >conftest.$ac_ext <<_ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10292 $ac_includes_default
10293 #include <$ac_header>
10295 rm -f conftest.$ac_objext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297 (eval $ac_compile) 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -z "$ac_c_werror_flag"
10305 || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_header_compiler=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_header_compiler=no
10324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 echo "${ECHO_T}$ac_header_compiler" >&6
10328 # Is the header present?
10329 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #include <$ac_header>
10339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10342 grep -v '^ *+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } >/dev/null; then
10347 if test -s conftest.err; then
10348 ac_cpp_err=$ac_c_preproc_warn_flag
10349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10356 if test -z "$ac_cpp_err"; then
10357 ac_header_preproc=yes
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_header_preproc=no
10364 rm -f conftest.err conftest.$ac_ext
10365 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 echo "${ECHO_T}$ac_header_preproc" >&6
10368 # So? What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10392 ## ---------------------------------------- ##
10393 ## Report this to pgsql-bugs@postgresql.org ##
10394 ## ---------------------------------------- ##
10397 sed "s/^/$as_me: WARNING: /" >&2
10400 echo "$as_me:$LINENO: checking for $ac_header" >&5
10401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 eval "$as_ac_Header=\$ac_header_preproc"
10407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10418 for ac_header in pam/pam_appl.h
10420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422 echo "$as_me:$LINENO: checking for $ac_header" >&5
10423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10430 # Is the header compilable?
10431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 $ac_includes_default
10440 #include <$ac_header>
10442 rm -f conftest.$ac_objext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest.$ac_objext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 ac_header_compiler=yes
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_header_compiler=no
10471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10473 echo "${ECHO_T}$ac_header_compiler" >&6
10475 # Is the header present?
10476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 #include <$ac_header>
10486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } >/dev/null; then
10494 if test -s conftest.err; then
10495 ac_cpp_err=$ac_c_preproc_warn_flag
10496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10503 if test -z "$ac_cpp_err"; then
10504 ac_header_preproc=yes
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ac_header_preproc=no
10511 rm -f conftest.err conftest.$ac_ext
10512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10513 echo "${ECHO_T}$ac_header_preproc" >&6
10515 # So? What about this header?
10516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10522 ac_header_preproc=yes
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10539 ## ---------------------------------------- ##
10540 ## Report this to pgsql-bugs@postgresql.org ##
10541 ## ---------------------------------------- ##
10544 sed "s/^/$as_me: WARNING: /" >&2
10547 echo "$as_me:$LINENO: checking for $ac_header" >&5
10548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 eval "$as_ac_Header=\$ac_header_preproc"
10554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10559 cat >>confdefs.h <<_ACEOF
10560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10564 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10565 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10566 { (exit 1); exit 1; }; }
10577 if test "$with_ldap" = yes ; then
10578 if test "$PORTNAME" != "win32"; then
10580 for ac_header in ldap.h
10582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10584 echo "$as_me:$LINENO: checking for $ac_header" >&5
10585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10587 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10592 # Is the header compilable?
10593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 $ac_includes_default
10602 #include <$ac_header>
10604 rm -f conftest.$ac_objext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10606 (eval $ac_compile) 2>conftest.er1
10608 grep -v '^ *+' conftest.er1 >conftest.err
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try='test -z "$ac_c_werror_flag"
10614 || test ! -s conftest.err'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; } &&
10620 { ac_try='test -s conftest.$ac_objext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_header_compiler=yes
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_header_compiler=no
10633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10635 echo "${ECHO_T}$ac_header_compiler" >&6
10637 # Is the header present?
10638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 #include <$ac_header>
10648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } >/dev/null; then
10656 if test -s conftest.err; then
10657 ac_cpp_err=$ac_c_preproc_warn_flag
10658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10665 if test -z "$ac_cpp_err"; then
10666 ac_header_preproc=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 ac_header_preproc=no
10673 rm -f conftest.err conftest.$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 echo "${ECHO_T}$ac_header_preproc" >&6
10677 # So? What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684 ac_header_preproc=yes
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10701 ## ---------------------------------------- ##
10702 ## Report this to pgsql-bugs@postgresql.org ##
10703 ## ---------------------------------------- ##
10706 sed "s/^/$as_me: WARNING: /" >&2
10709 echo "$as_me:$LINENO: checking for $ac_header" >&5
10710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 eval "$as_ac_Header=\$ac_header_preproc"
10716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10721 cat >>confdefs.h <<_ACEOF
10722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10726 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
10727 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10728 { (exit 1); exit 1; }; }
10735 for ac_header in winldap.h
10737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10738 echo "$as_me:$LINENO: checking for $ac_header" >&5
10739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 cat >conftest.$ac_ext <<_ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 $ac_includes_default
10750 #include <windows.h>
10753 #include <$ac_header>
10755 rm -f conftest.$ac_objext
10756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10757 (eval $ac_compile) 2>conftest.er1
10759 grep -v '^ *+' conftest.er1 >conftest.err
10761 cat conftest.err >&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -z "$ac_c_werror_flag"
10765 || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } &&
10771 { ac_try='test -s conftest.$ac_objext'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 eval "$as_ac_Header=yes"
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 eval "$as_ac_Header=no"
10784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10794 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10795 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10796 { (exit 1); exit 1; }; }
10804 if test "$with_bonjour" = yes ; then
10805 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10806 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10807 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10808 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10812 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10814 # Is the header compilable?
10815 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10816 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 $ac_includes_default
10824 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10826 rm -f conftest.$ac_objext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10828 (eval $ac_compile) 2>conftest.er1
10830 grep -v '^ *+' conftest.er1 >conftest.err
10832 cat conftest.err >&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
10835 { ac_try='test -z "$ac_c_werror_flag"
10836 || test ! -s conftest.err'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; } &&
10842 { ac_try='test -s conftest.$ac_objext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_header_compiler=yes
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_header_compiler=no
10855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10857 echo "${ECHO_T}$ac_header_compiler" >&6
10859 # Is the header present?
10860 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10861 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } >/dev/null; then
10878 if test -s conftest.err; then
10879 ac_cpp_err=$ac_c_preproc_warn_flag
10880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10887 if test -z "$ac_cpp_err"; then
10888 ac_header_preproc=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_header_preproc=no
10895 rm -f conftest.err conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10897 echo "${ECHO_T}$ac_header_preproc" >&6
10899 # So? What about this header?
10900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10902 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10903 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10905 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10906 ac_header_preproc=yes
10909 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10910 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10912 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10914 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10916 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10918 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10920 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10923 ## ---------------------------------------- ##
10924 ## Report this to pgsql-bugs@postgresql.org ##
10925 ## ---------------------------------------- ##
10928 sed "s/^/$as_me: WARNING: /" >&2
10931 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10932 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10933 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10938 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10939 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10942 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10945 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10946 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10947 { (exit 1); exit 1; }; }
10955 ## Types, structures, compiler characteristics
10958 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10959 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10960 if test "${ac_cv_c_const+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10973 /* FIXME: Include the comments suggested by Paul. */
10974 #ifndef __cplusplus
10975 /* Ultrix mips cc rejects this. */
10976 typedef int charset[2];
10978 /* SunOS 4.1.1 cc rejects this. */
10979 char const *const *ccp;
10981 /* NEC SVR4.0.2 mips cc rejects this. */
10982 struct point {int x, y;};
10983 static struct point const zero = {0,0};
10984 /* AIX XL C 1.02.0.0 rejects this.
10985 It does not let you subtract one const X* pointer from another in
10986 an arm of an if-expression whose if-part is not a constant
10988 const char *g = "string";
10989 ccp = &g + (g ? g-g : 0);
10990 /* HPUX 7.0 cc rejects these. */
10993 ccp = (char const *const *) p;
10994 { /* SCO 3.2v4 cc rejects this. */
10996 char const *s = 0 ? (char *) 0 : (char const *) 0;
11000 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11001 int x[] = {25, 17};
11002 const int *foo = &x[0];
11005 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11006 typedef const int *iptr;
11010 { /* AIX XL C 1.02.0.0 rejects this saying
11011 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11012 struct s { int j; const int *ap[3]; };
11013 struct s *b; b->j = 5;
11015 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11016 const int foo = 10;
11024 rm -f conftest.$ac_objext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11026 (eval $ac_compile) 2>conftest.er1
11028 grep -v '^ *+' conftest.er1 >conftest.err
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag"
11034 || test ! -s conftest.err'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest.$ac_objext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11055 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11056 echo "${ECHO_T}$ac_cv_c_const" >&6
11057 if test $ac_cv_c_const = no; then
11059 cat >>confdefs.h <<\_ACEOF
11066 echo "$as_me:$LINENO: checking for inline" >&5
11067 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11068 if test "${ac_cv_c_inline+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 for ac_kw in inline __inline__ __inline; do
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 #ifndef __cplusplus
11081 static $ac_kw foo_t static_foo () {return 0; }
11082 $ac_kw int foo () {return 0; }
11086 rm -f conftest.$ac_objext
11087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11088 (eval $ac_compile) 2>conftest.er1
11090 grep -v '^ *+' conftest.er1 >conftest.err
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } &&
11095 { ac_try='test -z "$ac_c_werror_flag"
11096 || test ! -s conftest.err'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try='test -s conftest.$ac_objext'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 ac_cv_c_inline=$ac_kw; break
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11118 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11119 echo "${ECHO_T}$ac_cv_c_inline" >&6
11120 case $ac_cv_c_inline in
11123 cat >>confdefs.h <<\_ACEOF
11127 *) cat >>confdefs.h <<_ACEOF
11128 #define inline $ac_cv_c_inline
11133 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11134 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11135 if test "${ac_cv_c_stringize+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11146 char *s = x(teststring);
11148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11149 $EGREP "#teststring" >/dev/null 2>&1; then
11150 ac_cv_c_stringize=no
11152 ac_cv_c_stringize=yes
11157 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11158 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11159 if test $ac_cv_c_stringize = yes; then
11161 cat >>confdefs.h <<\_ACEOF
11162 #define HAVE_STRINGIZE 1
11167 echo "$as_me:$LINENO: checking for signed types" >&5
11168 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11169 if test "${pgac_cv_c_signed+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11182 signed char c; signed short s; signed int i;
11187 rm -f conftest.$ac_objext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11189 (eval $ac_compile) 2>conftest.er1
11191 grep -v '^ *+' conftest.er1 >conftest.err
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest.$ac_objext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 pgac_cv_c_signed=yes
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11214 pgac_cv_c_signed=no
11216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11218 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11219 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11220 if test x"$pgac_cv_c_signed" = xno ; then
11222 cat >>confdefs.h <<\_ACEOF
11227 echo "$as_me:$LINENO: checking for working volatile" >&5
11228 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11229 if test "${ac_cv_c_volatile+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 cat >conftest.$ac_ext <<_ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11249 rm -f conftest.$ac_objext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>conftest.er1
11253 grep -v '^ *+' conftest.er1 >conftest.err
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_c_volatile=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_cv_c_volatile=no
11278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11280 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11281 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11282 if test $ac_cv_c_volatile = no; then
11284 cat >>confdefs.h <<\_ACEOF
11290 echo "$as_me:$LINENO: checking for __func__" >&5
11291 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11292 if test "${pgac_cv_funcname_func_support+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 cat >conftest.$ac_ext <<_ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h. */
11305 printf("%s\n", __func__);
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312 (eval $ac_compile) 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } &&
11319 { ac_try='test -z "$ac_c_werror_flag"
11320 || test ! -s conftest.err'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest.$ac_objext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 pgac_cv_funcname_func_support=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 pgac_cv_funcname_func_support=no
11339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11342 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11343 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11345 cat >>confdefs.h <<\_ACEOF
11346 #define HAVE_FUNCNAME__FUNC 1
11350 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11351 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11352 if test "${pgac_cv_funcname_function_support+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 cat >conftest.$ac_ext <<_ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11365 printf("%s\n", __FUNCTION__);
11370 rm -f conftest.$ac_objext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>conftest.er1
11374 grep -v '^ *+' conftest.er1 >conftest.err
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } &&
11379 { ac_try='test -z "$ac_c_werror_flag"
11380 || test ! -s conftest.err'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; } &&
11386 { ac_try='test -s conftest.$ac_objext'
11387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388 (eval $ac_try) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; }; then
11392 pgac_cv_funcname_function_support=yes
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 pgac_cv_funcname_function_support=no
11399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11401 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11402 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11403 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11405 cat >>confdefs.h <<\_ACEOF
11406 #define HAVE_FUNCNAME__FUNCTION 1
11411 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11412 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11413 if test "${ac_cv_struct_tm+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 #include <sys/types.h>
11428 struct tm *tp; tp->tm_sec;
11433 rm -f conftest.$ac_objext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11435 (eval $ac_compile) 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag"
11443 || test ! -s conftest.err'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_cv_struct_tm=time.h
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11460 ac_cv_struct_tm=sys/time.h
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11464 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11465 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11466 if test $ac_cv_struct_tm = sys/time.h; then
11468 cat >>confdefs.h <<\_ACEOF
11469 #define TM_IN_SYS_TIME 1
11474 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11475 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11476 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 #include <sys/types.h>
11486 #include <$ac_cv_struct_tm>
11492 static struct tm ac_aggr;
11493 if (ac_aggr.tm_zone)
11499 rm -f conftest.$ac_objext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11501 (eval $ac_compile) 2>conftest.er1
11503 grep -v '^ *+' conftest.er1 >conftest.err
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -z "$ac_c_werror_flag"
11509 || test ! -s conftest.err'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; } &&
11515 { ac_try='test -s conftest.$ac_objext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_cv_member_struct_tm_tm_zone=yes
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 cat >conftest.$ac_ext <<_ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 #include <sys/types.h>
11533 #include <$ac_cv_struct_tm>
11539 static struct tm ac_aggr;
11540 if (sizeof ac_aggr.tm_zone)
11546 rm -f conftest.$ac_objext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11548 (eval $ac_compile) 2>conftest.er1
11550 grep -v '^ *+' conftest.er1 >conftest.err
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -z "$ac_c_werror_flag"
11556 || test ! -s conftest.err'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; } &&
11562 { ac_try='test -s conftest.$ac_objext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 ac_cv_member_struct_tm_tm_zone=yes
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 ac_cv_member_struct_tm_tm_zone=no
11575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11580 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11581 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11583 cat >>confdefs.h <<_ACEOF
11584 #define HAVE_STRUCT_TM_TM_ZONE 1
11590 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_TM_ZONE 1
11597 echo "$as_me:$LINENO: checking for tzname" >&5
11598 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11599 if test "${ac_cv_var_tzname+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11609 #ifndef tzname /* For SGI. */
11610 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest$ac_exeext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_cv_var_tzname=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 ac_cv_var_tzname=no
11650 rm -f conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11653 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11654 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11655 if test $ac_cv_var_tzname = yes; then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_TZNAME 1
11663 echo "$as_me:$LINENO: checking for union semun" >&5
11664 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11665 if test "${ac_cv_type_union_semun+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 cat >conftest.$ac_ext <<_ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 #include <sys/types.h>
11675 #include <sys/ipc.h>
11676 #include <sys/sem.h>
11681 if ((union semun *) 0)
11683 if (sizeof (union semun))
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691 (eval $ac_compile) 2>conftest.er1
11693 grep -v '^ *+' conftest.er1 >conftest.err
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -z "$ac_c_werror_flag"
11699 || test ! -s conftest.err'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest.$ac_objext'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 ac_cv_type_union_semun=yes
11713 echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 ac_cv_type_union_semun=no
11718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11720 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11721 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11722 if test $ac_cv_type_union_semun = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725 #define HAVE_UNION_SEMUN 1
11731 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11732 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11733 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 cat >conftest.$ac_ext <<_ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <sys/types.h>
11743 #ifdef HAVE_SYS_UN_H
11744 #include <sys/un.h>
11751 if ((struct sockaddr_un *) 0)
11753 if (sizeof (struct sockaddr_un))
11759 rm -f conftest.$ac_objext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11761 (eval $ac_compile) 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } &&
11768 { ac_try='test -z "$ac_c_werror_flag"
11769 || test ! -s conftest.err'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; } &&
11775 { ac_try='test -s conftest.$ac_objext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 ac_cv_type_struct_sockaddr_un=yes
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11786 ac_cv_type_struct_sockaddr_un=no
11788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11790 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11791 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11792 if test $ac_cv_type_struct_sockaddr_un = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_STRUCT_SOCKADDR_UN 1
11799 cat >>confdefs.h <<\_ACEOF
11800 #define HAVE_UNIX_SOCKETS 1
11805 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11806 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11807 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <sys/types.h>
11817 #ifdef HAVE_SYS_SOCKET_H
11818 #include <sys/socket.h>
11825 if ((struct sockaddr_storage *) 0)
11827 if (sizeof (struct sockaddr_storage))
11833 rm -f conftest.$ac_objext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag"
11843 || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest.$ac_objext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_cv_type_struct_sockaddr_storage=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_cv_type_struct_sockaddr_storage=no
11862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11864 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11865 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11866 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11868 cat >>confdefs.h <<_ACEOF
11869 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11875 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11876 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11877 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 #include <sys/types.h>
11887 #ifdef HAVE_SYS_SOCKET_H
11888 #include <sys/socket.h>
11895 static struct sockaddr_storage ac_aggr;
11896 if (ac_aggr.ss_family)
11902 rm -f conftest.$ac_objext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904 (eval $ac_compile) 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest.$ac_objext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 cat >conftest.$ac_ext <<_ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <sys/types.h>
11936 #ifdef HAVE_SYS_SOCKET_H
11937 #include <sys/socket.h>
11944 static struct sockaddr_storage ac_aggr;
11945 if (sizeof ac_aggr.ss_family)
11951 rm -f conftest.$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_c_werror_flag"
11961 || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 ac_cv_member_struct_sockaddr_storage_ss_family=no
11980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11984 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11985 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11986 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11994 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11995 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11996 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12005 #include <sys/types.h>
12006 #ifdef HAVE_SYS_SOCKET_H
12007 #include <sys/socket.h>
12014 static struct sockaddr_storage ac_aggr;
12015 if (ac_aggr.__ss_family)
12021 rm -f conftest.$ac_objext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12023 (eval $ac_compile) 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag"
12031 || test ! -s conftest.err'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 #include <sys/types.h>
12055 #ifdef HAVE_SYS_SOCKET_H
12056 #include <sys/socket.h>
12063 static struct sockaddr_storage ac_aggr;
12064 if (sizeof ac_aggr.__ss_family)
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>conftest.er1
12074 grep -v '^ *+' conftest.er1 >conftest.err
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try='test -z "$ac_c_werror_flag"
12080 || test ! -s conftest.err'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_cv_member_struct_sockaddr_storage___ss_family=no
12099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12103 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12104 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12105 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12113 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12114 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12115 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 #include <sys/types.h>
12125 #ifdef HAVE_SYS_SOCKET_H
12126 #include <sys/socket.h>
12133 static struct sockaddr_storage ac_aggr;
12134 if (ac_aggr.ss_len)
12140 rm -f conftest.$ac_objext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142 (eval $ac_compile) 2>conftest.er1
12144 grep -v '^ *+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_c_werror_flag"
12150 || test ! -s conftest.err'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest.$ac_objext'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <sys/types.h>
12174 #ifdef HAVE_SYS_SOCKET_H
12175 #include <sys/socket.h>
12182 static struct sockaddr_storage ac_aggr;
12183 if (sizeof ac_aggr.ss_len)
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 ac_cv_member_struct_sockaddr_storage_ss_len=no
12218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12222 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12223 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12224 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12226 cat >>confdefs.h <<_ACEOF
12227 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12232 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12233 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12234 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 #include <sys/types.h>
12244 #ifdef HAVE_SYS_SOCKET_H
12245 #include <sys/socket.h>
12252 static struct sockaddr_storage ac_aggr;
12253 if (ac_aggr.__ss_len)
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag"
12269 || test ! -s conftest.err'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest.$ac_objext'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 cat >conftest.$ac_ext <<_ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 #include <sys/types.h>
12293 #ifdef HAVE_SYS_SOCKET_H
12294 #include <sys/socket.h>
12301 static struct sockaddr_storage ac_aggr;
12302 if (sizeof ac_aggr.__ss_len)
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>conftest.er1
12312 grep -v '^ *+' conftest.er1 >conftest.err
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12335 ac_cv_member_struct_sockaddr_storage___ss_len=no
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12342 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12343 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12345 cat >>confdefs.h <<_ACEOF
12346 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12351 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12352 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12353 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12356 cat >conftest.$ac_ext <<_ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12362 #include <sys/types.h>
12363 #ifdef HAVE_SYS_SOCKET_H
12364 #include <sys/socket.h>
12371 static struct sockaddr ac_aggr;
12372 if (ac_aggr.sa_len)
12378 rm -f conftest.$ac_objext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12380 (eval $ac_compile) 2>conftest.er1
12382 grep -v '^ *+' conftest.er1 >conftest.err
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag"
12388 || test ! -s conftest.err'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest.$ac_objext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
12400 ac_cv_member_struct_sockaddr_sa_len=yes
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 #include <sys/types.h>
12412 #ifdef HAVE_SYS_SOCKET_H
12413 #include <sys/socket.h>
12420 static struct sockaddr ac_aggr;
12421 if (sizeof ac_aggr.sa_len)
12427 rm -f conftest.$ac_objext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429 (eval $ac_compile) 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest.$ac_objext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_member_struct_sockaddr_sa_len=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_cv_member_struct_sockaddr_sa_len=no
12456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12461 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12462 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12464 cat >>confdefs.h <<_ACEOF
12465 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12471 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12472 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12473 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 cat >conftest.$ac_ext <<_ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 #include <sys/types.h>
12483 #include <sys/socket.h>
12490 if ((struct addrinfo *) 0)
12492 if (sizeof (struct addrinfo))
12498 rm -f conftest.$ac_objext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500 (eval $ac_compile) 2>conftest.er1
12502 grep -v '^ *+' conftest.er1 >conftest.err
12504 cat conftest.err >&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
12507 { ac_try='test -z "$ac_c_werror_flag"
12508 || test ! -s conftest.err'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; } &&
12514 { ac_try='test -s conftest.$ac_objext'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 ac_cv_type_struct_addrinfo=yes
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12525 ac_cv_type_struct_addrinfo=no
12527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12529 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12530 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12531 if test $ac_cv_type_struct_addrinfo = yes; then
12533 cat >>confdefs.h <<_ACEOF
12534 #define HAVE_STRUCT_ADDRINFO 1
12541 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12542 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12543 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 cat >conftest.$ac_ext <<_ACEOF
12549 cat confdefs.h >>conftest.$ac_ext
12550 cat >>conftest.$ac_ext <<_ACEOF
12551 /* end confdefs.h. */
12552 #include <sys/param.h>
12553 #include <sys/types.h>
12554 #include <sys/socket.h>
12555 #include <sys/ucred.h>
12560 if ((struct cmsgcred *) 0)
12562 if (sizeof (struct cmsgcred))
12568 rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570 (eval $ac_compile) 2>conftest.er1
12572 grep -v '^ *+' conftest.er1 >conftest.err
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag"
12578 || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_type_struct_cmsgcred=yes
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_cv_type_struct_cmsgcred=no
12597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12600 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12601 if test $ac_cv_type_struct_cmsgcred = yes; then
12603 cat >>confdefs.h <<_ACEOF
12604 #define HAVE_STRUCT_CMSGCRED 1
12609 echo "$as_me:$LINENO: checking for struct fcred" >&5
12610 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12611 if test "${ac_cv_type_struct_fcred+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 cat >conftest.$ac_ext <<_ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 #include <sys/param.h>
12621 #include <sys/types.h>
12622 #include <sys/socket.h>
12623 #include <sys/ucred.h>
12628 if ((struct fcred *) 0)
12630 if (sizeof (struct fcred))
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638 (eval $ac_compile) 2>conftest.er1
12640 grep -v '^ *+' conftest.er1 >conftest.err
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_c_werror_flag"
12646 || test ! -s conftest.err'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest.$ac_objext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_type_struct_fcred=yes
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ac_cv_type_struct_fcred=no
12665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12668 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12669 if test $ac_cv_type_struct_fcred = yes; then
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_STRUCT_FCRED 1
12677 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12678 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12679 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 #include <sys/param.h>
12689 #include <sys/types.h>
12690 #include <sys/socket.h>
12691 #include <sys/ucred.h>
12696 if ((struct sockcred *) 0)
12698 if (sizeof (struct sockcred))
12704 rm -f conftest.$ac_objext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706 (eval $ac_compile) 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -z "$ac_c_werror_flag"
12714 || test ! -s conftest.err'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest.$ac_objext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_cv_type_struct_sockcred=yes
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 ac_cv_type_struct_sockcred=no
12733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12735 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12736 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12737 if test $ac_cv_type_struct_sockcred = yes; then
12739 cat >>confdefs.h <<_ACEOF
12740 #define HAVE_STRUCT_SOCKCRED 1
12747 echo "$as_me:$LINENO: checking for struct option" >&5
12748 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12749 if test "${ac_cv_type_struct_option+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 #ifdef HAVE_GETOPT_H
12759 #include <getopt.h>
12765 if ((struct option *) 0)
12767 if (sizeof (struct option))
12773 rm -f conftest.$ac_objext
12774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12775 (eval $ac_compile) 2>conftest.er1
12777 grep -v '^ *+' conftest.er1 >conftest.err
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag"
12783 || test ! -s conftest.err'
12784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785 (eval $ac_try) 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; } &&
12789 { ac_try='test -s conftest.$ac_objext'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; }; then
12795 ac_cv_type_struct_option=yes
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 ac_cv_type_struct_option=no
12802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12804 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12805 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12806 if test $ac_cv_type_struct_option = yes; then
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAVE_STRUCT_OPTION 1
12816 if test "$with_zlib" = yes; then
12817 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12818 # did not). While we could work around the lack of z_streamp, it
12819 # seems unwise to encourage people to use such old zlib versions...
12820 echo "$as_me:$LINENO: checking for z_streamp" >&5
12821 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12822 if test "${ac_cv_type_z_streamp+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 cat >conftest.$ac_ext <<_ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12836 if ((z_streamp *) 0)
12838 if (sizeof (z_streamp))
12844 rm -f conftest.$ac_objext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12846 (eval $ac_compile) 2>conftest.er1
12848 grep -v '^ *+' conftest.er1 >conftest.err
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -z "$ac_c_werror_flag"
12854 || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_cv_type_z_streamp=yes
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 ac_cv_type_z_streamp=no
12873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12875 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12876 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12877 if test $ac_cv_type_z_streamp = yes; then
12880 { { echo "$as_me:$LINENO: error: zlib version is too old
12881 Use --without-zlib to disable zlib support." >&5
12882 echo "$as_me: error: zlib version is too old
12883 Use --without-zlib to disable zlib support." >&2;}
12884 { (exit 1); exit 1; }; }
12889 if test "$with_krb5" = yes; then
12890 # Check for differences between MIT and Heimdal (KTH) releases
12891 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12892 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12893 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12907 static krb5_ticket ac_aggr;
12908 if (ac_aggr.enc_part2)
12914 rm -f conftest.$ac_objext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12916 (eval $ac_compile) 2>conftest.er1
12918 grep -v '^ *+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -z "$ac_c_werror_flag"
12924 || test ! -s conftest.err'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest.$ac_objext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_member_krb5_ticket_enc_part2=yes
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12952 static krb5_ticket ac_aggr;
12953 if (sizeof ac_aggr.enc_part2)
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -z "$ac_c_werror_flag"
12969 || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_cv_member_krb5_ticket_enc_part2=yes
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_cv_member_krb5_ticket_enc_part2=no
12988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12992 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12993 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12994 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12996 cat >>confdefs.h <<_ACEOF
12997 #define HAVE_KRB5_TICKET_ENC_PART2 1
13002 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
13003 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
13004 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 cat >conftest.$ac_ext <<_ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13018 static krb5_ticket ac_aggr;
13019 if (ac_aggr.client)
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 (eval $ac_compile) 2>conftest.er1
13029 grep -v '^ *+' conftest.er1 >conftest.err
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag"
13035 || test ! -s conftest.err'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest.$ac_objext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_member_krb5_ticket_client=yes
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 cat >conftest.$ac_ext <<_ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13063 static krb5_ticket ac_aggr;
13064 if (sizeof ac_aggr.client)
13070 rm -f conftest.$ac_objext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072 (eval $ac_compile) 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -z "$ac_c_werror_flag"
13080 || test ! -s conftest.err'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest.$ac_objext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 ac_cv_member_krb5_ticket_client=yes
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 ac_cv_member_krb5_ticket_client=no
13099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13103 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13104 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13105 if test $ac_cv_member_krb5_ticket_client = yes; then
13107 cat >>confdefs.h <<_ACEOF
13108 #define HAVE_KRB5_TICKET_CLIENT 1
13113 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13114 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13115 { (exit 1); exit 1; }; }
13120 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13121 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13122 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 cat >conftest.$ac_ext <<_ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13136 static krb5_error ac_aggr;
13137 if (ac_aggr.text.data)
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13147 grep -v '^ *+' conftest.er1 >conftest.err
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag"
13153 || test ! -s conftest.err'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13165 ac_cv_member_krb5_error_text_data=yes
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 cat >conftest.$ac_ext <<_ACEOF
13173 cat confdefs.h >>conftest.$ac_ext
13174 cat >>conftest.$ac_ext <<_ACEOF
13175 /* end confdefs.h. */
13181 static krb5_error ac_aggr;
13182 if (sizeof ac_aggr.text.data)
13188 rm -f conftest.$ac_objext
13189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13190 (eval $ac_compile) 2>conftest.er1
13192 grep -v '^ *+' conftest.er1 >conftest.err
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } &&
13197 { ac_try='test -z "$ac_c_werror_flag"
13198 || test ! -s conftest.err'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; } &&
13204 { ac_try='test -s conftest.$ac_objext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_cv_member_krb5_error_text_data=yes
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 ac_cv_member_krb5_error_text_data=no
13217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13221 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13222 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13223 if test $ac_cv_member_krb5_error_text_data = yes; then
13225 cat >>confdefs.h <<_ACEOF
13226 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13231 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13232 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13233 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 cat >conftest.$ac_ext <<_ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13247 static krb5_error ac_aggr;
13248 if (ac_aggr.e_data)
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13258 grep -v '^ *+' conftest.er1 >conftest.err
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_cv_member_krb5_error_e_data=yes
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13292 static krb5_error ac_aggr;
13293 if (sizeof ac_aggr.e_data)
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>conftest.er1
13303 grep -v '^ *+' conftest.er1 >conftest.err
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag"
13309 || test ! -s conftest.err'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_cv_member_krb5_error_e_data=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ac_cv_member_krb5_error_e_data=no
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13332 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13333 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13334 if test $ac_cv_member_krb5_error_e_data = yes; then
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_KRB5_ERROR_E_DATA 1
13342 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13343 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13344 { (exit 1); exit 1; }; }
13351 # This is probably only present on Darwin, but may as well check always
13352 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
13353 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
13354 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13368 #ifndef F_FULLFSYNC
13369 char *p = (char *) F_FULLFSYNC;
13376 rm -f conftest.$ac_objext
13377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13378 (eval $ac_compile) 2>conftest.er1
13380 grep -v '^ *+' conftest.er1 >conftest.err
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -z "$ac_c_werror_flag"
13386 || test ! -s conftest.err'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; } &&
13392 { ac_try='test -s conftest.$ac_objext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_cv_have_decl_F_FULLFSYNC=yes
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ac_cv_have_decl_F_FULLFSYNC=no
13405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13407 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
13408 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
13409 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_DECL_F_FULLFSYNC 1
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_DECL_F_FULLFSYNC 0
13427 ## Functions, global variables
13430 echo "$as_me:$LINENO: checking for int timezone" >&5
13431 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13432 if test "${pgac_cv_var_int_timezone+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13447 res = timezone / 60;
13449 res = _timezone / 60;
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457 (eval $ac_link) 2>conftest.er1
13459 grep -v '^ *+' conftest.er1 >conftest.err
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } &&
13464 { ac_try='test -z "$ac_c_werror_flag"
13465 || test ! -s conftest.err'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest$ac_exeext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 pgac_cv_var_int_timezone=yes
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 pgac_cv_var_int_timezone=no
13484 rm -f conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext conftest.$ac_ext
13487 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13488 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13489 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13491 cat >>confdefs.h <<\_ACEOF
13492 #define HAVE_INT_TIMEZONE
13496 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13497 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13498 if test "${ac_cv_func_accept_return+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 if test "${ac_cv_func_accept_arg1+set}" = set; then
13502 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 if test "${ac_cv_func_accept_arg2+set}" = set; then
13505 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 if test "${ac_cv_func_accept_arg3+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13511 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13512 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13513 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 #ifdef HAVE_SYS_TYPES_H
13521 #include <sys/types.h>
13523 #ifdef HAVE_SYS_SOCKET_H
13524 #include <sys/socket.h>
13526 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1 >conftest.err
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_not_found=no; break 4
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569 if test "$ac_not_found" = yes; then
13570 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13571 echo "$as_me: error: could not determine argument types" >&2;}
13572 { (exit 1); exit 1; }; }
13574 if test "$ac_cv_func_accept_arg3" = "void"; then
13575 ac_cv_func_accept_arg3=int
13585 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
13586 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13588 cat >>confdefs.h <<_ACEOF
13589 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13593 cat >>confdefs.h <<_ACEOF
13594 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13598 cat >>confdefs.h <<_ACEOF
13599 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13603 cat >>confdefs.h <<_ACEOF
13604 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13608 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13609 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13610 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 #include <sys/time.h>
13623 struct timeval *tp;
13624 struct timezone *tzp;
13625 gettimeofday(tp,tzp);
13630 rm -f conftest.$ac_objext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13632 (eval $ac_compile) 2>conftest.er1
13634 grep -v '^ *+' conftest.er1 >conftest.err
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } &&
13639 { ac_try='test -z "$ac_c_werror_flag"
13640 || test ! -s conftest.err'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13652 pgac_cv_func_gettimeofday_1arg=no
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 pgac_cv_func_gettimeofday_1arg=yes
13659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13661 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13662 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13663 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13665 cat >>confdefs.h <<\_ACEOF
13666 #define GETTIMEOFDAY_1ARG
13692 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13695 echo "$as_me:$LINENO: checking for $ac_func" >&5
13696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13697 if eval "test \"\${$as_ac_var+set}\" = set"; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13708 #define $ac_func innocuous_$ac_func
13710 /* System header to define __stub macros and hopefully few prototypes,
13711 which can conflict with char $ac_func (); below.
13712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13713 <limits.h> exists even on freestanding compilers. */
13716 # include <limits.h>
13718 # include <assert.h>
13723 /* Override any gcc2 internal prototype to avoid an error. */
13728 /* We use char because int might match the return type of a gcc2
13729 builtin and then its argument prototype would still apply. */
13731 /* The GNU C library defines this for functions which it implements
13732 to always fail with ENOSYS. Some functions are actually named
13733 something starting with __ and the normal name is an alias. */
13734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13737 char (*f) () = $ac_func;
13746 return f != $ac_func;
13751 rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13753 (eval $ac_link) 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag"
13761 || test ! -s conftest.err'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest$ac_exeext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 eval "$as_ac_var=yes"
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 eval "$as_ac_var=no"
13780 rm -f conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13785 if test `eval echo '${'$as_ac_var'}'` = yes; then
13786 cat >>confdefs.h <<_ACEOF
13787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13794 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13795 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13796 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13805 #include <unistd.h>
13811 char *p = (char *) fdatasync;
13818 rm -f conftest.$ac_objext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13820 (eval $ac_compile) 2>conftest.er1
13822 grep -v '^ *+' conftest.er1 >conftest.err
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -z "$ac_c_werror_flag"
13828 || test ! -s conftest.err'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest.$ac_objext'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 ac_cv_have_decl_fdatasync=yes
13842 echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13845 ac_cv_have_decl_fdatasync=no
13847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13849 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13850 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13851 if test $ac_cv_have_decl_fdatasync = yes; then
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_DECL_FDATASYNC 1
13859 cat >>confdefs.h <<_ACEOF
13860 #define HAVE_DECL_FDATASYNC 0
13867 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
13868 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
13869 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 cat >conftest.$ac_ext <<_ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13883 #ifndef posix_fadvise
13884 char *p = (char *) posix_fadvise;
13891 rm -f conftest.$ac_objext
13892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13893 (eval $ac_compile) 2>conftest.er1
13895 grep -v '^ *+' conftest.er1 >conftest.err
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } &&
13900 { ac_try='test -z "$ac_c_werror_flag"
13901 || test ! -s conftest.err'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; } &&
13907 { ac_try='test -s conftest.$ac_objext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_have_decl_posix_fadvise=yes
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 ac_cv_have_decl_posix_fadvise=no
13920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13922 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
13923 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
13924 if test $ac_cv_have_decl_posix_fadvise = yes; then
13926 cat >>confdefs.h <<_ACEOF
13927 #define HAVE_DECL_POSIX_FADVISE 1
13932 cat >>confdefs.h <<_ACEOF
13933 #define HAVE_DECL_POSIX_FADVISE 0
13942 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13943 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13944 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 $ac_includes_default
13954 #include <netinet/in.h>
13959 if ((struct sockaddr_in6 *) 0)
13961 if (sizeof (struct sockaddr_in6))
13967 rm -f conftest.$ac_objext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969 (eval $ac_compile) 2>conftest.er1
13971 grep -v '^ *+' conftest.er1 >conftest.err
13973 cat conftest.err >&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } &&
13976 { ac_try='test -z "$ac_c_werror_flag"
13977 || test ! -s conftest.err'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest.$ac_objext'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; }; then
13989 ac_cv_type_struct_sockaddr_in6=yes
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13994 ac_cv_type_struct_sockaddr_in6=no
13996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13998 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13999 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
14000 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_IPV6 1
14011 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
14012 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
14013 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 #include <machine/vmparam.h>
14023 #include <sys/exec.h>
14028 PS_STRINGS->ps_nargvstr = 1;
14029 PS_STRINGS->ps_argvstr = "foo";
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>conftest.er1
14038 grep -v '^ *+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest$ac_exeext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 pgac_cv_var_PS_STRINGS=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 pgac_cv_var_PS_STRINGS=no
14063 rm -f conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14066 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
14067 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
14068 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
14070 cat >>confdefs.h <<\_ACEOF
14071 #define HAVE_PS_STRINGS
14077 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
14078 # is missing. Yes, there are machines that have only one. We may
14079 # also decide to use snprintf.c if snprintf() is present but does not
14080 # have all the features we need --- see below.
14082 if test "$PORTNAME" = "win32"; then
14083 # Win32 gets snprintf.c built unconditionally.
14085 # To properly translate all NLS languages strings, we must support the
14086 # *printf() %$ format, which allows *printf() arguments to be selected
14087 # by position in the translated string.
14089 # libintl versions < 0.13 use the native *printf() functions, and Win32
14090 # *printf() doesn't understand %$, so we must use our /port versions,
14091 # which do understand %$. libintl versions >= 0.13 include their own
14092 # *printf versions on Win32. The libintl 0.13 release note text is:
14094 # C format strings with positions, as they arise when a translator
14095 # needs to reorder a sentence, are now supported on all platforms.
14096 # On those few platforms (NetBSD and Woe32) for which the native
14097 # printf()/fprintf()/... functions don't support such format
14098 # strings, replacements are provided through <libintl.h>.
14100 # We could use libintl >= 0.13's *printf() if we were sure that we had
14101 # a litint >= 0.13 at runtime, but seeing that there is no clean way
14102 # to guarantee that, it is best to just use our own, so we are sure to
14103 # get %$ support. In include/port.h we disable the *printf() macros
14104 # that might have been defined by libintl.
14106 # We do this unconditionally whether NLS is used or not so we are sure
14107 # that all Win32 libraries and binaries behave the same.
14108 pgac_need_repl_snprintf=yes
14110 pgac_need_repl_snprintf=no
14112 for ac_func in snprintf
14114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_var+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 cat >conftest.$ac_ext <<_ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14136 # include <limits.h>
14138 # include <assert.h>
14143 /* Override any gcc2 internal prototype to avoid an error. */
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14157 char (*f) () = $ac_func;
14166 return f != $ac_func;
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>conftest.er1
14175 grep -v '^ *+' conftest.er1 >conftest.err
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 eval "$as_ac_var=yes"
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 eval "$as_ac_var=no"
14200 rm -f conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14205 if test `eval echo '${'$as_ac_var'}'` = yes; then
14206 cat >>confdefs.h <<_ACEOF
14207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14211 pgac_need_repl_snprintf=yes
14216 for ac_func in vsnprintf
14218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14219 echo "$as_me:$LINENO: checking for $ac_func" >&5
14220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_var+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 cat >conftest.$ac_ext <<_ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14232 #define $ac_func innocuous_$ac_func
14234 /* System header to define __stub macros and hopefully few prototypes,
14235 which can conflict with char $ac_func (); below.
14236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14237 <limits.h> exists even on freestanding compilers. */
14240 # include <limits.h>
14242 # include <assert.h>
14247 /* Override any gcc2 internal prototype to avoid an error. */
14252 /* We use char because int might match the return type of a gcc2
14253 builtin and then its argument prototype would still apply. */
14255 /* The GNU C library defines this for functions which it implements
14256 to always fail with ENOSYS. Some functions are actually named
14257 something starting with __ and the normal name is an alias. */
14258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14261 char (*f) () = $ac_func;
14270 return f != $ac_func;
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14277 (eval $ac_link) 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -z "$ac_c_werror_flag"
14285 || test ! -s conftest.err'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest$ac_exeext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 eval "$as_ac_var=yes"
14299 echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14302 eval "$as_ac_var=no"
14304 rm -f conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
14307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14309 if test `eval echo '${'$as_ac_var'}'` = yes; then
14310 cat >>confdefs.h <<_ACEOF
14311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14315 pgac_need_repl_snprintf=yes
14322 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14323 # include/c.h will provide declarations. Note this is a separate test
14324 # from whether the functions exist in the C library --- there are
14325 # systems that have the functions but don't bother to declare them :-(
14327 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14328 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14329 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 cat >conftest.$ac_ext <<_ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14338 $ac_includes_default
14343 char *p = (char *) snprintf;
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352 (eval $ac_compile) 2>conftest.er1
14354 grep -v '^ *+' conftest.er1 >conftest.err
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } &&
14359 { ac_try='test -z "$ac_c_werror_flag"
14360 || test ! -s conftest.err'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; } &&
14366 { ac_try='test -s conftest.$ac_objext'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; }; then
14372 ac_cv_have_decl_snprintf=yes
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 ac_cv_have_decl_snprintf=no
14379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14381 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14382 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14383 if test $ac_cv_have_decl_snprintf = yes; then
14385 cat >>confdefs.h <<_ACEOF
14386 #define HAVE_DECL_SNPRINTF 1
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_DECL_SNPRINTF 0
14397 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14398 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14399 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 cat >conftest.$ac_ext <<_ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 $ac_includes_default
14413 char *p = (char *) vsnprintf;
14420 rm -f conftest.$ac_objext
14421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14422 (eval $ac_compile) 2>conftest.er1
14424 grep -v '^ *+' conftest.er1 >conftest.err
14426 cat conftest.err >&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -z "$ac_c_werror_flag"
14430 || test ! -s conftest.err'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest.$ac_objext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 ac_cv_have_decl_vsnprintf=yes
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 ac_cv_have_decl_vsnprintf=no
14449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14451 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14452 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14453 if test $ac_cv_have_decl_vsnprintf = yes; then
14455 cat >>confdefs.h <<_ACEOF
14456 #define HAVE_DECL_VSNPRINTF 1
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_DECL_VSNPRINTF 0
14471 echo "$as_me:$LINENO: checking for isinf" >&5
14472 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14473 if test "${ac_cv_func_isinf+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 cat >conftest.$ac_ext <<_ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14484 double glob_double;
14489 return isinf(glob_double) ? 0 : 1;
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496 (eval $ac_link) 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag"
14504 || test ! -s conftest.err'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; } &&
14510 { ac_try='test -s conftest$ac_exeext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_cv_func_isinf=yes
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_cv_func_isinf=no
14523 rm -f conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14526 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14527 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14529 if test $ac_cv_func_isinf = yes ; then
14531 cat >>confdefs.h <<\_ACEOF
14532 #define HAVE_ISINF 1
14537 "isinf.$ac_objext" | \
14538 *" isinf.$ac_objext" | \
14539 "isinf.$ac_objext "* | \
14540 *" isinf.$ac_objext "* ) ;;
14541 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14544 # Look for a way to implement a substitute for isinf()
14549 for ac_func in fpclass fp_class fp_class_d class
14551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14552 echo "$as_me:$LINENO: checking for $ac_func" >&5
14553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14554 if eval "test \"\${$as_ac_var+set}\" = set"; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 cat >conftest.$ac_ext <<_ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14565 #define $ac_func innocuous_$ac_func
14567 /* System header to define __stub macros and hopefully few prototypes,
14568 which can conflict with char $ac_func (); below.
14569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14570 <limits.h> exists even on freestanding compilers. */
14573 # include <limits.h>
14575 # include <assert.h>
14580 /* Override any gcc2 internal prototype to avoid an error. */
14585 /* We use char because int might match the return type of a gcc2
14586 builtin and then its argument prototype would still apply. */
14588 /* The GNU C library defines this for functions which it implements
14589 to always fail with ENOSYS. Some functions are actually named
14590 something starting with __ and the normal name is an alias. */
14591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14594 char (*f) () = $ac_func;
14603 return f != $ac_func;
14608 rm -f conftest.$ac_objext conftest$ac_exeext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14610 (eval $ac_link) 2>conftest.er1
14612 grep -v '^ *+' conftest.er1 >conftest.err
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag"
14618 || test ! -s conftest.err'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } &&
14624 { ac_try='test -s conftest$ac_exeext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 eval "$as_ac_var=yes"
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 eval "$as_ac_var=no"
14637 rm -f conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14642 if test `eval echo '${'$as_ac_var'}'` = yes; then
14643 cat >>confdefs.h <<_ACEOF
14644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14665 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14668 echo "$as_me:$LINENO: checking for $ac_func" >&5
14669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14670 if eval "test \"\${$as_ac_var+set}\" = set"; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 cat >conftest.$ac_ext <<_ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14681 #define $ac_func innocuous_$ac_func
14683 /* System header to define __stub macros and hopefully few prototypes,
14684 which can conflict with char $ac_func (); below.
14685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14686 <limits.h> exists even on freestanding compilers. */
14689 # include <limits.h>
14691 # include <assert.h>
14696 /* Override any gcc2 internal prototype to avoid an error. */
14701 /* We use char because int might match the return type of a gcc2
14702 builtin and then its argument prototype would still apply. */
14704 /* The GNU C library defines this for functions which it implements
14705 to always fail with ENOSYS. Some functions are actually named
14706 something starting with __ and the normal name is an alias. */
14707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14710 char (*f) () = $ac_func;
14719 return f != $ac_func;
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726 (eval $ac_link) 2>conftest.er1
14728 grep -v '^ *+' conftest.er1 >conftest.err
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } &&
14733 { ac_try='test -z "$ac_c_werror_flag"
14734 || test ! -s conftest.err'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest$ac_exeext'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14746 eval "$as_ac_var=yes"
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 eval "$as_ac_var=no"
14753 rm -f conftest.err conftest.$ac_objext \
14754 conftest$ac_exeext conftest.$ac_ext
14756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14758 if test `eval echo '${'$as_ac_var'}'` = yes; then
14759 cat >>confdefs.h <<_ACEOF
14760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14765 "$ac_func.$ac_objext" | \
14766 *" $ac_func.$ac_objext" | \
14767 "$ac_func.$ac_objext "* | \
14768 *" $ac_func.$ac_objext "* ) ;;
14769 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14777 # System's version of getaddrinfo(), if any, may be used only if we found
14778 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14779 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14780 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14781 # because we want to use our own getaddrinfo.c on Windows anyway.)
14782 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14784 for ac_func in getaddrinfo
14786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14787 echo "$as_me:$LINENO: checking for $ac_func" >&5
14788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14789 if eval "test \"\${$as_ac_var+set}\" = set"; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 cat >conftest.$ac_ext <<_ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14800 #define $ac_func innocuous_$ac_func
14802 /* System header to define __stub macros and hopefully few prototypes,
14803 which can conflict with char $ac_func (); below.
14804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14805 <limits.h> exists even on freestanding compilers. */
14808 # include <limits.h>
14810 # include <assert.h>
14815 /* Override any gcc2 internal prototype to avoid an error. */
14820 /* We use char because int might match the return type of a gcc2
14821 builtin and then its argument prototype would still apply. */
14823 /* The GNU C library defines this for functions which it implements
14824 to always fail with ENOSYS. Some functions are actually named
14825 something starting with __ and the normal name is an alias. */
14826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14829 char (*f) () = $ac_func;
14838 return f != $ac_func;
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845 (eval $ac_link) 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
14852 { ac_try='test -z "$ac_c_werror_flag"
14853 || test ! -s conftest.err'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try='test -s conftest$ac_exeext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 eval "$as_ac_var=yes"
14867 echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14870 eval "$as_ac_var=no"
14872 rm -f conftest.err conftest.$ac_objext \
14873 conftest$ac_exeext conftest.$ac_ext
14875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14877 if test `eval echo '${'$as_ac_var'}'` = yes; then
14878 cat >>confdefs.h <<_ACEOF
14879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14884 "$ac_func.$ac_objext" | \
14885 *" $ac_func.$ac_objext" | \
14886 "$ac_func.$ac_objext "* | \
14887 *" $ac_func.$ac_objext "* ) ;;
14888 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14897 "getaddrinfo.$ac_objext" | \
14898 *" getaddrinfo.$ac_objext" | \
14899 "getaddrinfo.$ac_objext "* | \
14900 *" getaddrinfo.$ac_objext "* ) ;;
14901 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14906 # similarly, use system's getopt_long() only if system provides struct option.
14907 if test x"$ac_cv_type_struct_option" = xyes ; then
14909 for ac_func in getopt_long
14911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14912 echo "$as_me:$LINENO: checking for $ac_func" >&5
14913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14914 if eval "test \"\${$as_ac_var+set}\" = set"; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 cat >conftest.$ac_ext <<_ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14925 #define $ac_func innocuous_$ac_func
14927 /* System header to define __stub macros and hopefully few prototypes,
14928 which can conflict with char $ac_func (); below.
14929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14930 <limits.h> exists even on freestanding compilers. */
14933 # include <limits.h>
14935 # include <assert.h>
14940 /* Override any gcc2 internal prototype to avoid an error. */
14945 /* We use char because int might match the return type of a gcc2
14946 builtin and then its argument prototype would still apply. */
14948 /* The GNU C library defines this for functions which it implements
14949 to always fail with ENOSYS. Some functions are actually named
14950 something starting with __ and the normal name is an alias. */
14951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14954 char (*f) () = $ac_func;
14963 return f != $ac_func;
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970 (eval $ac_link) 2>conftest.er1
14972 grep -v '^ *+' conftest.er1 >conftest.err
14974 cat conftest.err >&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -z "$ac_c_werror_flag"
14978 || test ! -s conftest.err'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; } &&
14984 { ac_try='test -s conftest$ac_exeext'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 eval "$as_ac_var=yes"
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 eval "$as_ac_var=no"
14997 rm -f conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
15000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15002 if test `eval echo '${'$as_ac_var'}'` = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15009 "$ac_func.$ac_objext" | \
15010 *" $ac_func.$ac_objext" | \
15011 "$ac_func.$ac_objext "* | \
15012 *" $ac_func.$ac_objext "* ) ;;
15013 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
15022 "getopt_long.$ac_objext" | \
15023 *" getopt_long.$ac_objext" | \
15024 "getopt_long.$ac_objext "* | \
15025 *" getopt_long.$ac_objext "* ) ;;
15026 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
15031 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
15032 # We override the previous test that said fseeko/ftello didn't exist
15033 # OS tests are also done in include/c.h and port/fseeko.c
15034 case $host_os in bsdi*|netbsd*)
15035 ac_cv_func_fseeko=yes
15038 # Solaris has a very slow qsort in certain cases, so we replace it:
15039 # http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
15040 # Supposedly it is fixed in Solaris, but not sure which version, and
15041 # no confirmed testing. 2005-12-16
15042 if test "$PORTNAME" = "solaris"; then
15044 "qsort.$ac_objext" | \
15045 *" qsort.$ac_objext" | \
15046 "qsort.$ac_objext "* | \
15047 *" qsort.$ac_objext "* ) ;;
15048 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
15054 if test "$PORTNAME" = "win32"; then
15056 "gettimeofday.$ac_objext" | \
15057 *" gettimeofday.$ac_objext" | \
15058 "gettimeofday.$ac_objext "* | \
15059 *" gettimeofday.$ac_objext "* ) ;;
15060 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
15064 "kill.$ac_objext" | \
15065 *" kill.$ac_objext" | \
15066 "kill.$ac_objext "* | \
15067 *" kill.$ac_objext "* ) ;;
15068 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
15072 "open.$ac_objext" | \
15073 *" open.$ac_objext" | \
15074 "open.$ac_objext "* | \
15075 *" open.$ac_objext "* ) ;;
15076 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
15080 "rand.$ac_objext" | \
15081 *" rand.$ac_objext" | \
15082 "rand.$ac_objext "* | \
15083 *" rand.$ac_objext "* ) ;;
15084 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
15088 "win32error.$ac_objext" | \
15089 *" win32error.$ac_objext" | \
15090 "win32error.$ac_objext "* | \
15091 *" win32error.$ac_objext "* ) ;;
15092 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_SYMLINK 1
15102 if test "$with_readline" = yes; then
15103 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
15104 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15112 #ifdef HAVE_READLINE_READLINE_H
15113 # include <readline/readline.h>
15114 #elif defined(HAVE_READLINE_H)
15115 # include <readline.h>
15121 rl_completion_append_character = 'x';
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15128 (eval $ac_link) 2>conftest.er1
15130 grep -v '^ *+' conftest.er1 >conftest.err
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -z "$ac_c_werror_flag"
15136 || test ! -s conftest.err'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest$ac_exeext'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 echo "$as_me:$LINENO: result: yes" >&5
15149 echo "${ECHO_T}yes" >&6
15151 cat >>confdefs.h <<\_ACEOF
15152 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 echo "$as_me:$LINENO: result: no" >&5
15160 echo "${ECHO_T}no" >&6
15162 rm -f conftest.err conftest.$ac_objext \
15163 conftest$ac_exeext conftest.$ac_ext
15166 for ac_func in rl_completion_matches rl_filename_completion_function
15168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15169 echo "$as_me:$LINENO: checking for $ac_func" >&5
15170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15171 if eval "test \"\${$as_ac_var+set}\" = set"; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 cat >conftest.$ac_ext <<_ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h. */
15180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15182 #define $ac_func innocuous_$ac_func
15184 /* System header to define __stub macros and hopefully few prototypes,
15185 which can conflict with char $ac_func (); below.
15186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15187 <limits.h> exists even on freestanding compilers. */
15190 # include <limits.h>
15192 # include <assert.h>
15197 /* Override any gcc2 internal prototype to avoid an error. */
15202 /* We use char because int might match the return type of a gcc2
15203 builtin and then its argument prototype would still apply. */
15205 /* The GNU C library defines this for functions which it implements
15206 to always fail with ENOSYS. Some functions are actually named
15207 something starting with __ and the normal name is an alias. */
15208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15211 char (*f) () = $ac_func;
15220 return f != $ac_func;
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227 (eval $ac_link) 2>conftest.er1
15229 grep -v '^ *+' conftest.er1 >conftest.err
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -z "$ac_c_werror_flag"
15235 || test ! -s conftest.err'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 eval "$as_ac_var=yes"
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 eval "$as_ac_var=no"
15254 rm -f conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15259 if test `eval echo '${'$as_ac_var'}'` = yes; then
15260 cat >>confdefs.h <<_ACEOF
15261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15268 for ac_func in replace_history_entry
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_var+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15284 #define $ac_func innocuous_$ac_func
15286 /* System header to define __stub macros and hopefully few prototypes,
15287 which can conflict with char $ac_func (); below.
15288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15289 <limits.h> exists even on freestanding compilers. */
15292 # include <limits.h>
15294 # include <assert.h>
15299 /* Override any gcc2 internal prototype to avoid an error. */
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15307 /* The GNU C library defines this for functions which it implements
15308 to always fail with ENOSYS. Some functions are actually named
15309 something starting with __ and the normal name is an alias. */
15310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15313 char (*f) () = $ac_func;
15322 return f != $ac_func;
15327 rm -f conftest.$ac_objext conftest$ac_exeext
15328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15329 (eval $ac_link) 2>conftest.er1
15331 grep -v '^ *+' conftest.er1 >conftest.err
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -z "$ac_c_werror_flag"
15337 || test ! -s conftest.err'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest$ac_exeext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 eval "$as_ac_var=yes"
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 eval "$as_ac_var=no"
15356 rm -f conftest.err conftest.$ac_objext \
15357 conftest$ac_exeext conftest.$ac_ext
15359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15361 if test `eval echo '${'$as_ac_var'}'` = yes; then
15362 cat >>confdefs.h <<_ACEOF
15363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15372 echo "$as_me:$LINENO: checking for finite" >&5
15373 echo $ECHO_N "checking for finite... $ECHO_C" >&6
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15382 double glob_double;
15387 return finite(glob_double) ? 0 : 1;
15392 rm -f conftest.$ac_objext conftest$ac_exeext
15393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15394 (eval $ac_link) 2>conftest.er1
15396 grep -v '^ *+' conftest.er1 >conftest.err
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -z "$ac_c_werror_flag"
15402 || test ! -s conftest.err'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; } &&
15408 { ac_try='test -s conftest$ac_exeext'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; }; then
15415 cat >>confdefs.h <<\_ACEOF
15416 #define HAVE_FINITE 1
15419 echo "$as_me:$LINENO: result: yes" >&5
15420 echo "${ECHO_T}yes" >&6
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 echo "$as_me:$LINENO: result: no" >&5
15426 echo "${ECHO_T}no" >&6
15428 rm -f conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15431 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15432 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15433 cat >conftest.$ac_ext <<_ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 #include <setjmp.h>
15443 sigjmp_buf x; sigsetjmp(x, 1);
15448 rm -f conftest.$ac_objext conftest$ac_exeext
15449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15450 (eval $ac_link) 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag"
15458 || test ! -s conftest.err'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest$ac_exeext'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
15471 cat >>confdefs.h <<\_ACEOF
15472 #define HAVE_SIGSETJMP 1
15475 echo "$as_me:$LINENO: result: yes" >&5
15476 echo "${ECHO_T}yes" >&6
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15481 echo "$as_me:$LINENO: result: no" >&5
15482 echo "${ECHO_T}no" >&6
15484 rm -f conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
15487 echo "$as_me:$LINENO: checking for syslog" >&5
15488 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15489 if test "${ac_cv_func_syslog+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 cat >conftest.$ac_ext <<_ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15500 #define syslog innocuous_syslog
15502 /* System header to define __stub macros and hopefully few prototypes,
15503 which can conflict with char syslog (); below.
15504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15505 <limits.h> exists even on freestanding compilers. */
15508 # include <limits.h>
15510 # include <assert.h>
15515 /* Override any gcc2 internal prototype to avoid an error. */
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15523 /* The GNU C library defines this for functions which it implements
15524 to always fail with ENOSYS. Some functions are actually named
15525 something starting with __ and the normal name is an alias. */
15526 #if defined (__stub_syslog) || defined (__stub___syslog)
15529 char (*f) () = syslog;
15538 return f != syslog;
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15545 (eval $ac_link) 2>conftest.er1
15547 grep -v '^ *+' conftest.er1 >conftest.err
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag"
15553 || test ! -s conftest.err'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_cv_func_syslog=yes
15567 echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15570 ac_cv_func_syslog=no
15572 rm -f conftest.err conftest.$ac_objext \
15573 conftest$ac_exeext conftest.$ac_ext
15575 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15576 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15577 if test $ac_cv_func_syslog = yes; then
15578 if test "${ac_cv_header_syslog_h+set}" = set; then
15579 echo "$as_me:$LINENO: checking for syslog.h" >&5
15580 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15581 if test "${ac_cv_header_syslog_h+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15585 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15587 # Is the header compilable?
15588 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15589 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15590 cat >conftest.$ac_ext <<_ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15596 $ac_includes_default
15597 #include <syslog.h>
15599 rm -f conftest.$ac_objext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601 (eval $ac_compile) 2>conftest.er1
15603 grep -v '^ *+' conftest.er1 >conftest.err
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -z "$ac_c_werror_flag"
15609 || test ! -s conftest.err'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; } &&
15615 { ac_try='test -s conftest.$ac_objext'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621 ac_header_compiler=yes
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 ac_header_compiler=no
15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15630 echo "${ECHO_T}$ac_header_compiler" >&6
15632 # Is the header present?
15633 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15634 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15635 cat >conftest.$ac_ext <<_ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h. */
15641 #include <syslog.h>
15643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15646 grep -v '^ *+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } >/dev/null; then
15651 if test -s conftest.err; then
15652 ac_cpp_err=$ac_c_preproc_warn_flag
15653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15660 if test -z "$ac_cpp_err"; then
15661 ac_header_preproc=yes
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_header_preproc=no
15668 rm -f conftest.err conftest.$ac_ext
15669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15670 echo "${ECHO_T}$ac_header_preproc" >&6
15672 # So? What about this header?
15673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15675 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15676 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15678 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15679 ac_header_preproc=yes
15682 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15683 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15685 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15687 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15689 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15691 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15693 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15696 ## ---------------------------------------- ##
15697 ## Report this to pgsql-bugs@postgresql.org ##
15698 ## ---------------------------------------- ##
15701 sed "s/^/$as_me: WARNING: /" >&2
15704 echo "$as_me:$LINENO: checking for syslog.h" >&5
15705 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15706 if test "${ac_cv_header_syslog_h+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15709 ac_cv_header_syslog_h=$ac_header_preproc
15711 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15712 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15715 if test $ac_cv_header_syslog_h = yes; then
15717 cat >>confdefs.h <<\_ACEOF
15718 #define HAVE_SYSLOG 1
15727 echo "$as_me:$LINENO: checking for optreset" >&5
15728 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15729 if test "${pgac_cv_var_int_optreset+set}" = set; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <unistd.h>
15742 extern int optreset; optreset = 1;
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15749 (eval $ac_link) 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -z "$ac_c_werror_flag"
15757 || test ! -s conftest.err'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest$ac_exeext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 pgac_cv_var_int_optreset=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 pgac_cv_var_int_optreset=no
15776 rm -f conftest.err conftest.$ac_objext \
15777 conftest$ac_exeext conftest.$ac_ext
15779 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15780 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15781 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15783 cat >>confdefs.h <<\_ACEOF
15784 #define HAVE_INT_OPTRESET 1
15791 for ac_func in strtoll strtoq
15793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15794 echo "$as_me:$LINENO: checking for $ac_func" >&5
15795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15796 if eval "test \"\${$as_ac_var+set}\" = set"; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 cat >conftest.$ac_ext <<_ACEOF
15802 cat confdefs.h >>conftest.$ac_ext
15803 cat >>conftest.$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15807 #define $ac_func innocuous_$ac_func
15809 /* System header to define __stub macros and hopefully few prototypes,
15810 which can conflict with char $ac_func (); below.
15811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15812 <limits.h> exists even on freestanding compilers. */
15815 # include <limits.h>
15817 # include <assert.h>
15822 /* Override any gcc2 internal prototype to avoid an error. */
15827 /* We use char because int might match the return type of a gcc2
15828 builtin and then its argument prototype would still apply. */
15830 /* The GNU C library defines this for functions which it implements
15831 to always fail with ENOSYS. Some functions are actually named
15832 something starting with __ and the normal name is an alias. */
15833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15836 char (*f) () = $ac_func;
15845 return f != $ac_func;
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15852 (eval $ac_link) 2>conftest.er1
15854 grep -v '^ *+' conftest.er1 >conftest.err
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -z "$ac_c_werror_flag"
15860 || test ! -s conftest.err'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; } &&
15866 { ac_try='test -s conftest$ac_exeext'
15867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868 (eval $ac_try) 2>&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); }; }; then
15872 eval "$as_ac_var=yes"
15874 echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 eval "$as_ac_var=no"
15879 rm -f conftest.err conftest.$ac_objext \
15880 conftest$ac_exeext conftest.$ac_ext
15882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15884 if test `eval echo '${'$as_ac_var'}'` = yes; then
15885 cat >>confdefs.h <<_ACEOF
15886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15894 for ac_func in strtoull strtouq
15896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15897 echo "$as_me:$LINENO: checking for $ac_func" >&5
15898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15899 if eval "test \"\${$as_ac_var+set}\" = set"; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 cat >conftest.$ac_ext <<_ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15910 #define $ac_func innocuous_$ac_func
15912 /* System header to define __stub macros and hopefully few prototypes,
15913 which can conflict with char $ac_func (); below.
15914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15915 <limits.h> exists even on freestanding compilers. */
15918 # include <limits.h>
15920 # include <assert.h>
15925 /* Override any gcc2 internal prototype to avoid an error. */
15930 /* We use char because int might match the return type of a gcc2
15931 builtin and then its argument prototype would still apply. */
15933 /* The GNU C library defines this for functions which it implements
15934 to always fail with ENOSYS. Some functions are actually named
15935 something starting with __ and the normal name is an alias. */
15936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15939 char (*f) () = $ac_func;
15948 return f != $ac_func;
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955 (eval $ac_link) 2>conftest.er1
15957 grep -v '^ *+' conftest.er1 >conftest.err
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag"
15963 || test ! -s conftest.err'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; } &&
15969 { ac_try='test -s conftest$ac_exeext'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 eval "$as_ac_var=yes"
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 eval "$as_ac_var=no"
15982 rm -f conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15987 if test `eval echo '${'$as_ac_var'}'` = yes; then
15988 cat >>confdefs.h <<_ACEOF
15989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15996 # Check for one of atexit() or on_exit()
15998 for ac_func in atexit
16000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16001 echo "$as_me:$LINENO: checking for $ac_func" >&5
16002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16003 if eval "test \"\${$as_ac_var+set}\" = set"; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16014 #define $ac_func innocuous_$ac_func
16016 /* System header to define __stub macros and hopefully few prototypes,
16017 which can conflict with char $ac_func (); below.
16018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16019 <limits.h> exists even on freestanding compilers. */
16022 # include <limits.h>
16024 # include <assert.h>
16029 /* Override any gcc2 internal prototype to avoid an error. */
16034 /* We use char because int might match the return type of a gcc2
16035 builtin and then its argument prototype would still apply. */
16037 /* The GNU C library defines this for functions which it implements
16038 to always fail with ENOSYS. Some functions are actually named
16039 something starting with __ and the normal name is an alias. */
16040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16043 char (*f) () = $ac_func;
16052 return f != $ac_func;
16057 rm -f conftest.$ac_objext conftest$ac_exeext
16058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16059 (eval $ac_link) 2>conftest.er1
16061 grep -v '^ *+' conftest.er1 >conftest.err
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag"
16067 || test ! -s conftest.err'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest$ac_exeext'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 eval "$as_ac_var=yes"
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 eval "$as_ac_var=no"
16086 rm -f conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16091 if test `eval echo '${'$as_ac_var'}'` = yes; then
16092 cat >>confdefs.h <<_ACEOF
16093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16098 for ac_func in on_exit
16100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16101 echo "$as_me:$LINENO: checking for $ac_func" >&5
16102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16103 if eval "test \"\${$as_ac_var+set}\" = set"; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16114 #define $ac_func innocuous_$ac_func
16116 /* System header to define __stub macros and hopefully few prototypes,
16117 which can conflict with char $ac_func (); below.
16118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16119 <limits.h> exists even on freestanding compilers. */
16122 # include <limits.h>
16124 # include <assert.h>
16129 /* Override any gcc2 internal prototype to avoid an error. */
16134 /* We use char because int might match the return type of a gcc2
16135 builtin and then its argument prototype would still apply. */
16137 /* The GNU C library defines this for functions which it implements
16138 to always fail with ENOSYS. Some functions are actually named
16139 something starting with __ and the normal name is an alias. */
16140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16143 char (*f) () = $ac_func;
16152 return f != $ac_func;
16157 rm -f conftest.$ac_objext conftest$ac_exeext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16159 (eval $ac_link) 2>conftest.er1
16161 grep -v '^ *+' conftest.er1 >conftest.err
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } &&
16166 { ac_try='test -z "$ac_c_werror_flag"
16167 || test ! -s conftest.err'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; } &&
16173 { ac_try='test -s conftest$ac_exeext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 eval "$as_ac_var=yes"
16181 echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16184 eval "$as_ac_var=no"
16186 rm -f conftest.err conftest.$ac_objext \
16187 conftest$ac_exeext conftest.$ac_ext
16189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16191 if test `eval echo '${'$as_ac_var'}'` = yes; then
16192 cat >>confdefs.h <<_ACEOF
16193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16197 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
16198 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
16199 { (exit 1); exit 1; }; }
16207 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16208 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16209 if test "${ac_cv_sys_largefile_source+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 ac_cv_sys_largefile_source=no
16214 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16229 rm -f conftest.$ac_objext
16230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16231 (eval $ac_compile) 2>conftest.er1
16233 grep -v '^ *+' conftest.er1 >conftest.err
16235 cat conftest.err >&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
16238 { ac_try='test -z "$ac_c_werror_flag"
16239 || test ! -s conftest.err'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest.$ac_objext'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16253 echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16258 cat >conftest.$ac_ext <<_ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 #define _LARGEFILE_SOURCE 1
16274 rm -f conftest.$ac_objext
16275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16276 (eval $ac_compile) 2>conftest.er1
16278 grep -v '^ *+' conftest.er1 >conftest.err
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } &&
16283 { ac_try='test -z "$ac_c_werror_flag"
16284 || test ! -s conftest.err'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest.$ac_objext'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296 ac_cv_sys_largefile_source=1; break
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16307 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16308 if test "$ac_cv_sys_largefile_source" != no; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16317 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16318 # in glibc 2.1.3, but that breaks too many other things.
16319 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16320 echo "$as_me:$LINENO: checking for fseeko" >&5
16321 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16322 if test "${ac_cv_func_fseeko+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 cat >conftest.$ac_ext <<_ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16335 return fseeko && fseeko (stdin, 0, 0);
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag"
16350 || test ! -s conftest.err'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest$ac_exeext'
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_cv_func_fseeko=yes
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16367 ac_cv_func_fseeko=no
16369 rm -f conftest.err conftest.$ac_objext \
16370 conftest$ac_exeext conftest.$ac_ext
16372 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16373 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16374 if test $ac_cv_func_fseeko = yes; then
16376 cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_FSEEKO 1
16386 # For each platform, we need to know about any special compile and link
16387 # libraries, and whether the normal C function names are thread-safe.
16388 # See the comment at the top of src/port/thread.c for more information.
16390 if test "$enable_thread_safety" = yes; then
16396 ac_cpp='$CPP $CPPFLAGS'
16397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16403 # We used to check for pthread.h first, but this fails if pthread.h
16404 # requires special compiler flags (e.g. on True64 or Sequent).
16405 # It gets checked for in the link test anyway.
16407 # First of all, check if the user has set any of the PTHREAD_LIBS,
16408 # etcetera environment variables, and if threads linking works using
16410 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16411 save_CFLAGS="$CFLAGS"
16412 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16414 LIBS="$PTHREAD_LIBS $LIBS"
16415 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16416 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16424 /* Override any gcc2 internal prototype to avoid an error. */
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430 char pthread_join ();
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>conftest.er1
16443 grep -v '^ *+' conftest.er1 >conftest.err
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -z "$ac_c_werror_flag"
16449 || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest$ac_exeext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16467 rm -f conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16469 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16470 echo "${ECHO_T}$acx_pthread_ok" >&6
16471 if test x"$acx_pthread_ok" = xno; then
16476 CFLAGS="$save_CFLAGS"
16479 # We must check for the threads library under a number of different
16480 # names; the ordering is very important because some systems
16481 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16482 # libraries is broken (non-POSIX).
16484 # Create a list of thread flags to try. Items starting with a "-" are
16485 # C compiler flags, and other items are library names, except for "none"
16486 # which indicates that we try without any flags at all, and "pthread-config"
16487 # which is a program returning the flags for the Pth emulation library.
16489 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16491 # The ordering *is* (sometimes) important. Some notes on the
16492 # individual items follow:
16494 # pthreads: AIX (must check this before -lpthread)
16495 # none: in case threads are in libc; should be tried before -Kthread and
16496 # other compiler flags to prevent continual compiler warnings
16497 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16498 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16499 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16500 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16501 # -pthreads: Solaris/gcc
16502 # -mthreads: Mingw32/gcc, Lynx/gcc
16503 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16504 # doesn't hurt to check since this sometimes defines pthreads too;
16505 # also defines -D_REENTRANT)
16506 # pthread: Linux, etcetera
16507 # --thread-safe: KAI C++
16508 # pthread-config: use pthread-config program (for GNU Pth library)
16510 case "${host_cpu}-${host_os}" in
16513 # On Solaris (at least, for some versions), libc contains stubbed
16514 # (non-functional) versions of the pthreads routines, so link-based
16515 # tests will erroneously succeed. (We need to link with -pthread or
16516 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16517 # a function called by this macro, so we could check for that, but
16518 # who knows whether they'll stub that too in a future libc.) So,
16519 # we'll just look for -pthreads and -lpthread first:
16521 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16525 if test x"$acx_pthread_ok" = xno; then
16526 for flag in $acx_pthread_flags; do
16528 tryPTHREAD_CFLAGS=""
16532 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16533 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16537 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16538 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16539 tryPTHREAD_CFLAGS="$flag"
16543 # skip this if we already have flags defined, for PostgreSQL
16544 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16545 # Extract the first word of "pthread-config", so it can be a program name with args.
16546 set dummy pthread-config; ac_word=$2
16547 echo "$as_me:$LINENO: checking for $ac_word" >&5
16548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16549 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 if test -n "$acx_pthread_config"; then
16553 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16556 for as_dir in $PATH
16559 test -z "$as_dir" && as_dir=.
16560 for ac_exec_ext in '' $ac_executable_extensions; do
16561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16562 ac_cv_prog_acx_pthread_config="yes"
16563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16569 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16572 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16573 if test -n "$acx_pthread_config"; then
16574 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16575 echo "${ECHO_T}$acx_pthread_config" >&6
16577 echo "$as_me:$LINENO: result: no" >&5
16578 echo "${ECHO_T}no" >&6
16581 if test x"$acx_pthread_config" = xno; then continue; fi
16582 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16583 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16587 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16588 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16589 tryPTHREAD_LIBS="-l$flag"
16594 save_CFLAGS="$CFLAGS"
16595 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16596 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16598 # Check for various functions. We must include pthread.h,
16599 # since some functions may be macros. (On the Sequent, we
16600 # need a special flag -Kthread to make this header compile.)
16601 # We check for pthread_join because it is in -lpthread on IRIX
16602 # while pthread_create is in libc. We check for pthread_attr_init
16603 # due to DEC craziness with -lpthreads. We check for
16604 # pthread_cleanup_push because it is one of the few pthread
16605 # functions on Solaris that doesn't have a non-functional libc stub.
16606 # We try pthread_create on general principles.
16607 cat >conftest.$ac_ext <<_ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h. */
16613 #include <pthread.h>
16617 pthread_t th; pthread_join(th, 0);
16618 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16619 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16624 rm -f conftest.$ac_objext conftest$ac_exeext
16625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16626 (eval $ac_link) 2>conftest.er1
16628 grep -v '^ *+' conftest.er1 >conftest.err
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -z "$ac_c_werror_flag"
16634 || test ! -s conftest.err'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest$ac_exeext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16648 echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16653 rm -f conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16656 if test "x$acx_pthread_ok" = xyes; then
16657 # Don't use options that are ignored by the compiler.
16658 # We find them by checking stderror.
16659 cat >conftest.$ac_ext <<_ACEOF
16661 main (int argc, char **argv)
16668 rm -f conftest.$ac_objext conftest$ac_exeext
16669 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16670 # we continue with more flags because Linux needs -lpthread
16671 # for libpq builds on PostgreSQL. The test above only
16672 # tests for building binaries, not shared libraries.
16673 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16674 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16675 else acx_pthread_ok=no
16680 CFLAGS="$save_CFLAGS"
16682 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16683 echo "${ECHO_T}$acx_pthread_ok" >&6
16687 # Various other checks:
16688 if test "x$acx_pthread_ok" = xyes; then
16690 LIBS="$PTHREAD_LIBS $LIBS"
16691 save_CFLAGS="$CFLAGS"
16692 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16694 # Detect AIX lossage: threads are created detached by default
16695 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16696 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16697 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16704 #include <pthread.h>
16708 int attr=PTHREAD_CREATE_JOINABLE;
16713 rm -f conftest.$ac_objext conftest$ac_exeext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16715 (eval $ac_link) 2>conftest.er1
16717 grep -v '^ *+' conftest.er1 >conftest.err
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag"
16723 || test ! -s conftest.err'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest$ac_exeext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ok=PTHREAD_CREATE_JOINABLE
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16742 rm -f conftest.err conftest.$ac_objext \
16743 conftest$ac_exeext conftest.$ac_ext
16744 if test x"$ok" = xunknown; then
16745 cat >conftest.$ac_ext <<_ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h. */
16751 #include <pthread.h>
16755 int attr=PTHREAD_CREATE_UNDETACHED;
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762 (eval $ac_link) 2>conftest.er1
16764 grep -v '^ *+' conftest.er1 >conftest.err
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
16769 { ac_try='test -z "$ac_c_werror_flag"
16770 || test ! -s conftest.err'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest$ac_exeext'
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 ok=PTHREAD_CREATE_UNDETACHED
16784 echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16789 rm -f conftest.err conftest.$ac_objext \
16790 conftest$ac_exeext conftest.$ac_ext
16792 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16794 cat >>confdefs.h <<\_ACEOF
16795 #define PTHREAD_CREATE_JOINABLE $ok
16799 echo "$as_me:$LINENO: result: ${ok}" >&5
16800 echo "${ECHO_T}${ok}" >&6
16801 if test x"$ok" = xunknown; then
16802 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16803 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16806 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16807 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16809 # We always add these in PostgreSQL
16810 # case "${host_cpu}-${host_os}" in
16811 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16812 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16814 echo "$as_me:$LINENO: result: ${flag}" >&5
16815 echo "${ECHO_T}${flag}" >&6
16816 if test "x$flag" != xno; then
16817 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16821 CFLAGS="$save_CFLAGS"
16823 # Supporting cc_r would require a special CC in all places that
16824 # use libpq, and that is ugly, so we don't do it. Users can still
16825 # define their compiler as cc_r to do thread builds of everything.
16826 # More AIX lossage: must compile with cc_r
16827 # Extract the first word of "cc_r", so it can be a program name with args.
16828 set dummy cc_r; ac_word=$2
16829 echo "$as_me:$LINENO: checking for $ac_word" >&5
16830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16831 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 if test -n "$PTHREAD_CC"; then
16835 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838 for as_dir in $PATH
16841 test -z "$as_dir" && as_dir=.
16842 for ac_exec_ext in '' $ac_executable_extensions; do
16843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16844 ac_cv_prog_PTHREAD_CC="cc_r"
16845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16851 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16854 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16855 if test -n "$PTHREAD_CC"; then
16856 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16857 echo "${ECHO_T}$PTHREAD_CC" >&6
16859 echo "$as_me:$LINENO: result: no" >&5
16860 echo "${ECHO_T}no" >&6
16871 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16872 if test x"$acx_pthread_ok" = xyes; then
16874 cat >>confdefs.h <<\_ACEOF
16875 #define HAVE_PTHREAD 1
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16891 # Some platforms use these, so just defineed them. They can't hurt if they
16892 # are not supported.
16893 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16896 # At this point, we don't want to muck with the compiler name for threading.
16897 # Let's see who fails, perhaps AIX. 2004-04-23
16898 if test "$PTHREAD_CC" != "$CC"; then
16899 { { echo "$as_me:$LINENO: error:
16900 PostgreSQL does not support platforms that require a special
16901 compiler binary for thread-safety.
16903 echo "$as_me: error:
16904 PostgreSQL does not support platforms that require a special
16905 compiler binary for thread-safety.
16907 { (exit 1); exit 1; }; }
16910 if test "$THREAD_SUPPORT" = no; then
16911 { { echo "$as_me:$LINENO: error:
16912 Cannot enable threads on your platform.
16913 Your platform is known to not support thread-safe programs.
16914 For details, compile and run src/bin/pg_thread_test.
16916 echo "$as_me: error:
16917 Cannot enable threads on your platform.
16918 Your platform is known to not support thread-safe programs.
16919 For details, compile and run src/bin/pg_thread_test.
16921 { (exit 1); exit 1; }; }
16924 # Check for *_r functions
16927 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16928 LIBS="$LIBS $PTHREAD_LIBS"
16930 if test "${ac_cv_header_pthread_h+set}" = set; then
16931 echo "$as_me:$LINENO: checking for pthread.h" >&5
16932 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16933 if test "${ac_cv_header_pthread_h+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16937 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16939 # Is the header compilable?
16940 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16941 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16942 cat >conftest.$ac_ext <<_ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 $ac_includes_default
16949 #include <pthread.h>
16951 rm -f conftest.$ac_objext
16952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16953 (eval $ac_compile) 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try='test -z "$ac_c_werror_flag"
16961 || test ! -s conftest.err'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } &&
16967 { ac_try='test -s conftest.$ac_objext'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_header_compiler=yes
16975 echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16978 ac_header_compiler=no
16980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16982 echo "${ECHO_T}$ac_header_compiler" >&6
16984 # Is the header present?
16985 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16986 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 #include <pthread.h>
16995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16998 grep -v '^ *+' conftest.er1 >conftest.err
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } >/dev/null; then
17003 if test -s conftest.err; then
17004 ac_cpp_err=$ac_c_preproc_warn_flag
17005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17012 if test -z "$ac_cpp_err"; then
17013 ac_header_preproc=yes
17015 echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 ac_header_preproc=no
17020 rm -f conftest.err conftest.$ac_ext
17021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17022 echo "${ECHO_T}$ac_header_preproc" >&6
17024 # So? What about this header?
17025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17027 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
17028 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
17030 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
17031 ac_header_preproc=yes
17034 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
17035 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
17037 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
17039 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
17040 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
17041 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
17042 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
17043 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
17044 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
17045 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
17048 ## ---------------------------------------- ##
17049 ## Report this to pgsql-bugs@postgresql.org ##
17050 ## ---------------------------------------- ##
17053 sed "s/^/$as_me: WARNING: /" >&2
17056 echo "$as_me:$LINENO: checking for pthread.h" >&5
17057 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
17058 if test "${ac_cv_header_pthread_h+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 ac_cv_header_pthread_h=$ac_header_preproc
17063 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
17064 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
17067 if test $ac_cv_header_pthread_h = yes; then
17070 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
17071 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
17072 { (exit 1); exit 1; }; }
17080 for ac_func in strerror_r getpwuid_r gethostbyname_r
17082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17083 echo "$as_me:$LINENO: checking for $ac_func" >&5
17084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17085 if eval "test \"\${$as_ac_var+set}\" = set"; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17096 #define $ac_func innocuous_$ac_func
17098 /* System header to define __stub macros and hopefully few prototypes,
17099 which can conflict with char $ac_func (); below.
17100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17101 <limits.h> exists even on freestanding compilers. */
17104 # include <limits.h>
17106 # include <assert.h>
17111 /* Override any gcc2 internal prototype to avoid an error. */
17116 /* We use char because int might match the return type of a gcc2
17117 builtin and then its argument prototype would still apply. */
17119 /* The GNU C library defines this for functions which it implements
17120 to always fail with ENOSYS. Some functions are actually named
17121 something starting with __ and the normal name is an alias. */
17122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17125 char (*f) () = $ac_func;
17134 return f != $ac_func;
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17141 (eval $ac_link) 2>conftest.er1
17143 grep -v '^ *+' conftest.er1 >conftest.err
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
17148 { ac_try='test -z "$ac_c_werror_flag"
17149 || test ! -s conftest.err'
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; } &&
17155 { ac_try='test -s conftest$ac_exeext'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17161 eval "$as_ac_var=yes"
17163 echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17166 eval "$as_ac_var=no"
17168 rm -f conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17173 if test `eval echo '${'$as_ac_var'}'` = yes; then
17174 cat >>confdefs.h <<_ACEOF
17175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17182 # Do test here with the proper thread flags
17183 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
17184 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
17185 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
17186 echo $ECHO_N "(cached) $ECHO_C" >&6
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 #include <sys/types.h>
17200 struct passwd *space;
17203 struct passwd **result;
17204 getpwuid_r(uid, space, buf, bufsize, result);
17209 rm -f conftest.$ac_objext
17210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17211 (eval $ac_compile) 2>conftest.er1
17213 grep -v '^ *+' conftest.er1 >conftest.err
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -z "$ac_c_werror_flag"
17219 || test ! -s conftest.err'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; } &&
17225 { ac_try='test -s conftest.$ac_objext'
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; }; then
17231 pgac_func_getpwuid_r_5arg=yes
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 pgac_func_getpwuid_r_5arg=no
17238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17240 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17241 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17242 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17244 cat >>confdefs.h <<\_ACEOF
17245 #define GETPWUID_R_5ARG
17250 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17251 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17252 if test "${pgac_func_strerror_r_int+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17255 cat >conftest.$ac_ext <<_ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 #include <string.h>
17266 int strerror_r(int, char *, size_t);
17268 /* Older AIX has 'int' for the third argument so we don't test the args. */
17275 rm -f conftest.$ac_objext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17277 (eval $ac_compile) 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try='test -z "$ac_c_werror_flag"
17285 || test ! -s conftest.err'
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest.$ac_objext'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 pgac_func_strerror_r_int=yes
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17302 pgac_func_strerror_r_int=no
17304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17306 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17307 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17308 if test x"$pgac_func_strerror_r_int" = xyes ; then
17310 cat >>confdefs.h <<\_ACEOF
17311 #define STRERROR_R_INT
17321 # do not use values from template file
17330 # This test makes sure that run tests work at all. Sometimes a shared
17331 # library is found by the linker, but the runtime linker can't find it.
17332 # This check should come after all modifications of compiler or linker
17333 # variables, and before any other run tests.
17334 echo "$as_me:$LINENO: checking test program" >&5
17335 echo $ECHO_N "checking test program... $ECHO_C" >&6
17336 if test "$cross_compiling" = yes; then
17337 echo "$as_me:$LINENO: result: cross-compiling" >&5
17338 echo "${ECHO_T}cross-compiling" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17346 int main() { return 0; }
17348 rm -f conftest$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 echo "$as_me:$LINENO: result: ok" >&5
17360 echo "${ECHO_T}ok" >&6
17362 echo "$as_me: program exited with status $ac_status" >&5
17363 echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 ( exit $ac_status )
17367 echo "$as_me:$LINENO: result: failed" >&5
17368 echo "${ECHO_T}failed" >&6
17369 { { echo "$as_me:$LINENO: error:
17370 *** Could not execute a simple test program. This may be a problem
17371 *** related to locating shared libraries. Check the file 'config.log'
17372 *** for the exact reason." >&5
17373 echo "$as_me: error:
17374 *** Could not execute a simple test program. This may be a problem
17375 *** related to locating shared libraries. Check the file 'config.log'
17376 *** for the exact reason." >&2;}
17377 { (exit 1); exit 1; }; }
17379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17382 # --------------------
17383 # Run tests below here
17384 # --------------------
17386 # Force use of our snprintf if system's doesn't do arg control
17387 # See comment above at snprintf test for details.
17388 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17389 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17390 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17391 if test "${pgac_cv_printf_arg_control+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 if test "$cross_compiling" = yes; then
17395 pgac_cv_printf_arg_control=cross
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 #include <string.h>
17410 /* can it swap arguments? */
17411 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17412 if (strcmp(buf, "4 3") != 0)
17417 rm -f conftest$ac_exeext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 pgac_cv_printf_arg_control=yes
17430 echo "$as_me: program exited with status $ac_status" >&5
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ( exit $ac_status )
17435 pgac_cv_printf_arg_control=no
17437 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17441 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17442 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17444 if test $pgac_cv_printf_arg_control != yes ; then
17445 pgac_need_repl_snprintf=yes
17451 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17452 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17453 if test "${pgac_cv_type_long_int_64+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 if test "$cross_compiling" = yes; then
17457 # If cross-compiling, check the size reported by the compiler and
17458 # trust that the arithmetic works.
17459 cat >conftest.$ac_ext <<_ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17469 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17476 rm -f conftest.$ac_objext
17477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478 (eval $ac_compile) 2>conftest.er1
17480 grep -v '^ *+' conftest.er1 >conftest.err
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -z "$ac_c_werror_flag"
17486 || test ! -s conftest.err'
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 pgac_cv_type_long_int_64=yes
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17503 pgac_cv_type_long_int_64=no
17505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17507 cat >conftest.$ac_ext <<_ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17513 typedef long int ac_int64;
17516 * These are globals to discourage the compiler from folding all the
17517 * arithmetic tests down to compile-time constants.
17519 ac_int64 a = 20000001;
17520 ac_int64 b = 40000005;
17522 int does_int64_work()
17526 if (sizeof(ac_int64) != 8)
17527 return 0; /* definitely not the right size */
17529 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17537 exit(! does_int64_work());
17540 rm -f conftest$ac_exeext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17542 (eval $ac_link) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 pgac_cv_type_long_int_64=yes
17553 echo "$as_me: program exited with status $ac_status" >&5
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 ( exit $ac_status )
17558 pgac_cv_type_long_int_64=no
17560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17563 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17564 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17566 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17567 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_LONG_INT_64
17576 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17577 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17578 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17579 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 if test "$cross_compiling" = yes; then
17583 # If cross-compiling, check the size reported by the compiler and
17584 # trust that the arithmetic works.
17585 cat >conftest.$ac_ext <<_ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17595 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17602 rm -f conftest.$ac_objext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17604 (eval $ac_compile) 2>conftest.er1
17606 grep -v '^ *+' conftest.er1 >conftest.err
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -z "$ac_c_werror_flag"
17612 || test ! -s conftest.err'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; } &&
17618 { ac_try='test -s conftest.$ac_objext'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 pgac_cv_type_long_long_int_64=yes
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 pgac_cv_type_long_long_int_64=no
17631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17633 cat >conftest.$ac_ext <<_ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17639 typedef long long int ac_int64;
17642 * These are globals to discourage the compiler from folding all the
17643 * arithmetic tests down to compile-time constants.
17645 ac_int64 a = 20000001;
17646 ac_int64 b = 40000005;
17648 int does_int64_work()
17652 if (sizeof(ac_int64) != 8)
17653 return 0; /* definitely not the right size */
17655 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17663 exit(! does_int64_work());
17666 rm -f conftest$ac_exeext
17667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17668 (eval $ac_link) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 pgac_cv_type_long_long_int_64=yes
17679 echo "$as_me: program exited with status $ac_status" >&5
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ( exit $ac_status )
17684 pgac_cv_type_long_long_int_64=no
17686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17689 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17690 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17692 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17693 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_LONG_LONG_INT_64
17705 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17713 #define INT64CONST(x) x##LL
17714 long long int foo = INT64CONST(0x1234567890123456);
17724 rm -f conftest.$ac_objext
17725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17726 (eval $ac_compile) 2>conftest.er1
17728 grep -v '^ *+' conftest.er1 >conftest.err
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } &&
17733 { ac_try='test -z "$ac_c_werror_flag"
17734 || test ! -s conftest.err'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; } &&
17740 { ac_try='test -s conftest.$ac_objext'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17747 cat >>confdefs.h <<\_ACEOF
17748 #define HAVE_LL_CONSTANTS 1
17752 echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17760 # If we found "long int" is 64 bits, assume snprintf handles it. If
17761 # we found we need to use "long long int", better check. We cope with
17762 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17763 # work, fall back to our own snprintf emulation (which we know uses %lld).
17765 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17766 if test $pgac_need_repl_snprintf = no; then
17767 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17768 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17769 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 for pgac_format in '%lld' '%qd' '%I64d'; do
17773 if test "$cross_compiling" = yes; then
17774 pgac_cv_snprintf_long_long_int_format=cross; break
17776 cat >conftest.$ac_ext <<_ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h. */
17783 typedef long long int ac_int64;
17784 #define INT64_FORMAT "$pgac_format"
17786 ac_int64 a = 20000001;
17787 ac_int64 b = 40000005;
17789 int does_int64_snprintf_work()
17794 if (sizeof(ac_int64) != 8)
17795 return 0; /* doesn't look like the right size */
17798 snprintf(buf, 100, INT64_FORMAT, c);
17799 if (strcmp(buf, "800000140000005") != 0)
17800 return 0; /* either multiply or snprintf is busted */
17804 exit(! does_int64_snprintf_work());
17807 rm -f conftest$ac_exeext
17808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809 (eval $ac_link) 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17820 echo "$as_me: program exited with status $ac_status" >&5
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17830 LONG_LONG_INT_FORMAT=''
17832 case $pgac_cv_snprintf_long_long_int_format in
17833 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17834 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17835 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17836 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17837 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17838 *) echo "$as_me:$LINENO: result: none" >&5
17839 echo "${ECHO_T}none" >&6;;
17841 if test "$LONG_LONG_INT_FORMAT" = ""; then
17842 # Force usage of our own snprintf, since system snprintf is broken
17843 pgac_need_repl_snprintf=yes
17844 LONG_LONG_INT_FORMAT='%lld'
17847 # Here if we previously decided we needed to use our own snprintf
17848 LONG_LONG_INT_FORMAT='%lld'
17850 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17851 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17852 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17854 # Here if we are not using 'long long int' at all
17855 INT64_FORMAT='"%ld"'
17856 UINT64_FORMAT='"%lu"'
17860 cat >>confdefs.h <<_ACEOF
17861 #define INT64_FORMAT $INT64_FORMAT
17866 cat >>confdefs.h <<_ACEOF
17867 #define UINT64_FORMAT $UINT64_FORMAT
17871 # Now we have checked all the reasons to replace snprintf
17872 if test $pgac_need_repl_snprintf = yes; then
17874 cat >>confdefs.h <<\_ACEOF
17875 #define USE_REPL_SNPRINTF 1
17879 "snprintf.$ac_objext" | \
17880 *" snprintf.$ac_objext" | \
17881 "snprintf.$ac_objext "* | \
17882 *" snprintf.$ac_objext "* ) ;;
17883 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17888 # Need a #define for the size of Datum (unsigned long)
17889 echo "$as_me:$LINENO: checking for unsigned long" >&5
17890 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17891 if test "${ac_cv_type_unsigned_long+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 $ac_includes_default
17904 if ((unsigned long *) 0)
17906 if (sizeof (unsigned long))
17912 rm -f conftest.$ac_objext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17914 (eval $ac_compile) 2>conftest.er1
17916 grep -v '^ *+' conftest.er1 >conftest.err
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } &&
17921 { ac_try='test -z "$ac_c_werror_flag"
17922 || test ! -s conftest.err'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } &&
17928 { ac_try='test -s conftest.$ac_objext'
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 ac_cv_type_unsigned_long=yes
17936 echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17939 ac_cv_type_unsigned_long=no
17941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17944 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17946 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17947 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17948 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 if test "$ac_cv_type_unsigned_long" = yes; then
17952 # The cast to unsigned long works around a bug in the HP C Compiler
17953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17955 # This bug is HP SR number 8606223364.
17956 if test "$cross_compiling" = yes; then
17957 # Depending upon the size, compute the lo and hi bounds.
17958 cat >conftest.$ac_ext <<_ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h. */
17964 $ac_includes_default
17968 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17975 rm -f conftest.$ac_objext
17976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17977 (eval $ac_compile) 2>conftest.er1
17979 grep -v '^ *+' conftest.er1 >conftest.err
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } &&
17984 { ac_try='test -z "$ac_c_werror_flag"
17985 || test ! -s conftest.err'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17999 cat >conftest.$ac_ext <<_ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 $ac_includes_default
18009 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18016 rm -f conftest.$ac_objext
18017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18018 (eval $ac_compile) 2>conftest.er1
18020 grep -v '^ *+' conftest.er1 >conftest.err
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -z "$ac_c_werror_flag"
18026 || test ! -s conftest.err'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest.$ac_objext'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
18038 ac_hi=$ac_mid; break
18040 echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18043 ac_lo=`expr $ac_mid + 1`
18044 if test $ac_lo -le $ac_mid; then
18048 ac_mid=`expr 2 '*' $ac_mid + 1`
18050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18056 cat >conftest.$ac_ext <<_ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 $ac_includes_default
18066 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
18073 rm -f conftest.$ac_objext
18074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18075 (eval $ac_compile) 2>conftest.er1
18077 grep -v '^ *+' conftest.er1 >conftest.err
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } &&
18082 { ac_try='test -z "$ac_c_werror_flag"
18083 || test ! -s conftest.err'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; } &&
18089 { ac_try='test -s conftest.$ac_objext'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; }; then
18097 cat >conftest.$ac_ext <<_ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18103 $ac_includes_default
18107 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
18114 rm -f conftest.$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116 (eval $ac_compile) 2>conftest.er1
18118 grep -v '^ *+' conftest.er1 >conftest.err
18120 cat conftest.err >&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
18123 { ac_try='test -z "$ac_c_werror_flag"
18124 || test ! -s conftest.err'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; } &&
18130 { ac_try='test -s conftest.$ac_objext'
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 ac_lo=$ac_mid; break
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 ac_hi=`expr '(' $ac_mid ')' - 1`
18142 if test $ac_mid -le $ac_hi; then
18146 ac_mid=`expr 2 '*' $ac_mid`
18148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18159 # Binary search between lo and hi bounds.
18160 while test "x$ac_lo" != "x$ac_hi"; do
18161 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18162 cat >conftest.$ac_ext <<_ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18168 $ac_includes_default
18172 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18179 rm -f conftest.$ac_objext
18180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18181 (eval $ac_compile) 2>conftest.er1
18183 grep -v '^ *+' conftest.er1 >conftest.err
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } &&
18188 { ac_try='test -z "$ac_c_werror_flag"
18189 || test ! -s conftest.err'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; } &&
18195 { ac_try='test -s conftest.$ac_objext'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; }; then
18203 echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18206 ac_lo=`expr '(' $ac_mid ')' + 1`
18208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18211 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
18212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18213 See \`config.log' for more details." >&5
18214 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18215 See \`config.log' for more details." >&2;}
18216 { (exit 1); exit 1; }; } ;;
18219 if test "$cross_compiling" = yes; then
18220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18221 See \`config.log' for more details." >&5
18222 echo "$as_me: error: cannot run test program while cross compiling
18223 See \`config.log' for more details." >&2;}
18224 { (exit 1); exit 1; }; }
18226 cat >conftest.$ac_ext <<_ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 $ac_includes_default
18233 long longval () { return (long) (sizeof (unsigned long)); }
18234 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18236 #include <stdlib.h>
18241 FILE *f = fopen ("conftest.val", "w");
18244 if (((long) (sizeof (unsigned long))) < 0)
18246 long i = longval ();
18247 if (i != ((long) (sizeof (unsigned long))))
18249 fprintf (f, "%ld\n", i);
18253 unsigned long i = ulongval ();
18254 if (i != ((long) (sizeof (unsigned long))))
18256 fprintf (f, "%lu\n", i);
18258 exit (ferror (f) || fclose (f) != 0);
18264 rm -f conftest$ac_exeext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266 (eval $ac_link) 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
18275 ac_cv_sizeof_unsigned_long=`cat conftest.val`
18277 echo "$as_me: program exited with status $ac_status" >&5
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18281 ( exit $ac_status )
18282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18283 See \`config.log' for more details." >&5
18284 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18285 See \`config.log' for more details." >&2;}
18286 { (exit 1); exit 1; }; }
18288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18293 ac_cv_sizeof_unsigned_long=0
18296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18297 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18298 cat >>confdefs.h <<_ACEOF
18299 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18304 # And one for the size of size_t (enables tweaks for > 32bit address space)
18305 echo "$as_me:$LINENO: checking for size_t" >&5
18306 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18307 if test "${ac_cv_type_size_t+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 $ac_includes_default
18322 if (sizeof (size_t))
18328 rm -f conftest.$ac_objext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18330 (eval $ac_compile) 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag"
18338 || test ! -s conftest.err'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest.$ac_objext'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_type_size_t=yes
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_type_size_t=no
18357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18360 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18362 echo "$as_me:$LINENO: checking size of size_t" >&5
18363 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18364 if test "${ac_cv_sizeof_size_t+set}" = set; then
18365 echo $ECHO_N "(cached) $ECHO_C" >&6
18367 if test "$ac_cv_type_size_t" = yes; then
18368 # The cast to unsigned long works around a bug in the HP C Compiler
18369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18371 # This bug is HP SR number 8606223364.
18372 if test "$cross_compiling" = yes; then
18373 # Depending upon the size, compute the lo and hi bounds.
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 $ac_includes_default
18384 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18391 rm -f conftest.$ac_objext
18392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18393 (eval $ac_compile) 2>conftest.er1
18395 grep -v '^ *+' conftest.er1 >conftest.err
18397 cat conftest.err >&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } &&
18400 { ac_try='test -z "$ac_c_werror_flag"
18401 || test ! -s conftest.err'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; } &&
18407 { ac_try='test -s conftest.$ac_objext'
18408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18409 (eval $ac_try) 2>&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; }; then
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 $ac_includes_default
18425 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18432 rm -f conftest.$ac_objext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434 (eval $ac_compile) 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag"
18442 || test ! -s conftest.err'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; } &&
18448 { ac_try='test -s conftest.$ac_objext'
18449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 (eval $ac_try) 2>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; }; then
18454 ac_hi=$ac_mid; break
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ac_lo=`expr $ac_mid + 1`
18460 if test $ac_lo -le $ac_mid; then
18464 ac_mid=`expr 2 '*' $ac_mid + 1`
18466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18478 $ac_includes_default
18482 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18489 rm -f conftest.$ac_objext
18490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18491 (eval $ac_compile) 2>conftest.er1
18493 grep -v '^ *+' conftest.er1 >conftest.err
18495 cat conftest.err >&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } &&
18498 { ac_try='test -z "$ac_c_werror_flag"
18499 || test ! -s conftest.err'
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; } &&
18505 { ac_try='test -s conftest.$ac_objext'
18506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507 (eval $ac_try) 2>&5
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; }; then
18513 cat >conftest.$ac_ext <<_ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18519 $ac_includes_default
18523 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18530 rm -f conftest.$ac_objext
18531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532 (eval $ac_compile) 2>conftest.er1
18534 grep -v '^ *+' conftest.er1 >conftest.err
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag"
18540 || test ! -s conftest.err'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest.$ac_objext'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 ac_lo=$ac_mid; break
18554 echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18557 ac_hi=`expr '(' $ac_mid ')' - 1`
18558 if test $ac_mid -le $ac_hi; then
18562 ac_mid=`expr 2 '*' $ac_mid`
18564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18575 # Binary search between lo and hi bounds.
18576 while test "x$ac_lo" != "x$ac_hi"; do
18577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18578 cat >conftest.$ac_ext <<_ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 $ac_includes_default
18588 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18595 rm -f conftest.$ac_objext
18596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18597 (eval $ac_compile) 2>conftest.er1
18599 grep -v '^ *+' conftest.er1 >conftest.err
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } &&
18604 { ac_try='test -z "$ac_c_werror_flag"
18605 || test ! -s conftest.err'
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; } &&
18611 { ac_try='test -s conftest.$ac_objext'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_lo=`expr '(' $ac_mid ')' + 1`
18624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18627 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18628 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18629 See \`config.log' for more details." >&5
18630 echo "$as_me: error: cannot compute sizeof (size_t), 77
18631 See \`config.log' for more details." >&2;}
18632 { (exit 1); exit 1; }; } ;;
18635 if test "$cross_compiling" = yes; then
18636 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18637 See \`config.log' for more details." >&5
18638 echo "$as_me: error: cannot run test program while cross compiling
18639 See \`config.log' for more details." >&2;}
18640 { (exit 1); exit 1; }; }
18642 cat >conftest.$ac_ext <<_ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18648 $ac_includes_default
18649 long longval () { return (long) (sizeof (size_t)); }
18650 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18652 #include <stdlib.h>
18657 FILE *f = fopen ("conftest.val", "w");
18660 if (((long) (sizeof (size_t))) < 0)
18662 long i = longval ();
18663 if (i != ((long) (sizeof (size_t))))
18665 fprintf (f, "%ld\n", i);
18669 unsigned long i = ulongval ();
18670 if (i != ((long) (sizeof (size_t))))
18672 fprintf (f, "%lu\n", i);
18674 exit (ferror (f) || fclose (f) != 0);
18680 rm -f conftest$ac_exeext
18681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18682 (eval $ac_link) 2>&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_cv_sizeof_size_t=`cat conftest.val`
18693 echo "$as_me: program exited with status $ac_status" >&5
18694 echo "$as_me: failed program was:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 ( exit $ac_status )
18698 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18699 See \`config.log' for more details." >&5
18700 echo "$as_me: error: cannot compute sizeof (size_t), 77
18701 See \`config.log' for more details." >&2;}
18702 { (exit 1); exit 1; }; }
18704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18709 ac_cv_sizeof_size_t=0
18712 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18713 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18714 cat >>confdefs.h <<_ACEOF
18715 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18720 # Determine memory alignment requirements for the basic C data types.
18722 echo "$as_me:$LINENO: checking for short" >&5
18723 echo $ECHO_N "checking for short... $ECHO_C" >&6
18724 if test "${ac_cv_type_short+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 cat >conftest.$ac_ext <<_ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 $ac_includes_default
18739 if (sizeof (short))
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747 (eval $ac_compile) 2>conftest.er1
18749 grep -v '^ *+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_c_werror_flag"
18755 || test ! -s conftest.err'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 ac_cv_type_short=yes
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18772 ac_cv_type_short=no
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18776 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18777 echo "${ECHO_T}$ac_cv_type_short" >&6
18779 echo "$as_me:$LINENO: checking alignment of short" >&5
18780 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18781 if test "${pgac_cv_alignof_short+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 if test "$ac_cv_type_short" = yes; then
18785 if test "$cross_compiling" = yes; then
18786 # Depending upon the size, compute the lo and hi bounds.
18787 cat >conftest.$ac_ext <<_ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 $ac_includes_default
18794 struct { char filler; short field; } pgac_struct;
18798 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18805 rm -f conftest.$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807 (eval $ac_compile) 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_c_werror_flag"
18815 || test ! -s conftest.err'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest.$ac_objext'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 struct { char filler; short field; } pgac_struct;
18840 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18847 rm -f conftest.$ac_objext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18849 (eval $ac_compile) 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_c_werror_flag"
18857 || test ! -s conftest.err'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest.$ac_objext'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; }; then
18869 ac_hi=$ac_mid; break
18871 echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18874 ac_lo=`expr $ac_mid + 1`
18875 if test $ac_lo -le $ac_mid; then
18879 ac_mid=`expr 2 '*' $ac_mid + 1`
18881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 cat >conftest.$ac_ext <<_ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 $ac_includes_default
18894 struct { char filler; short field; } pgac_struct;
18898 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18905 rm -f conftest.$ac_objext
18906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18907 (eval $ac_compile) 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_c_werror_flag"
18915 || test ! -s conftest.err'
18916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917 (eval $ac_try) 2>&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest.$ac_objext'
18922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923 (eval $ac_try) 2>&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); }; }; then
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 $ac_includes_default
18936 struct { char filler; short field; } pgac_struct;
18940 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18947 rm -f conftest.$ac_objext
18948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18949 (eval $ac_compile) 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_c_werror_flag"
18957 || test ! -s conftest.err'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest.$ac_objext'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 ac_lo=$ac_mid; break
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_hi=`expr '(' $ac_mid ')' - 1`
18975 if test $ac_mid -le $ac_hi; then
18979 ac_mid=`expr 2 '*' $ac_mid`
18981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992 # Binary search between lo and hi bounds.
18993 while test "x$ac_lo" != "x$ac_hi"; do
18994 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 $ac_includes_default
19002 struct { char filler; short field; } pgac_struct;
19006 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19013 rm -f conftest.$ac_objext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015 (eval $ac_compile) 2>conftest.er1
19017 grep -v '^ *+' conftest.er1 >conftest.err
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag"
19023 || test ! -s conftest.err'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest.$ac_objext'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; }; then
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_lo=`expr '(' $ac_mid ')' + 1`
19042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19045 ?*) pgac_cv_alignof_short=$ac_lo;;
19046 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19047 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19048 { (exit 1); exit 1; }; } ;;
19051 if test "$cross_compiling" = yes; then
19052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19053 See \`config.log' for more details." >&5
19054 echo "$as_me: error: cannot run test program while cross compiling
19055 See \`config.log' for more details." >&2;}
19056 { (exit 1); exit 1; }; }
19058 cat >conftest.$ac_ext <<_ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 $ac_includes_default
19065 struct { char filler; short field; } pgac_struct;
19066 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19067 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19069 #include <stdlib.h>
19074 FILE *f = fopen ("conftest.val", "w");
19077 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19079 long i = longval ();
19080 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19082 fprintf (f, "%ld\n", i);
19086 unsigned long i = ulongval ();
19087 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19089 fprintf (f, "%lu\n", i);
19091 exit (ferror (f) || fclose (f) != 0);
19097 rm -f conftest$ac_exeext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19099 (eval $ac_link) 2>&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
19108 pgac_cv_alignof_short=`cat conftest.val`
19110 echo "$as_me: program exited with status $ac_status" >&5
19111 echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19114 ( exit $ac_status )
19115 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19116 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19117 { (exit 1); exit 1; }; }
19119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19124 pgac_cv_alignof_short=0
19127 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
19128 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
19129 cat >>confdefs.h <<_ACEOF
19130 #define ALIGNOF_SHORT $pgac_cv_alignof_short
19134 echo "$as_me:$LINENO: checking for int" >&5
19135 echo $ECHO_N "checking for int... $ECHO_C" >&6
19136 if test "${ac_cv_type_int+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 $ac_includes_default
19157 rm -f conftest.$ac_objext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19161 grep -v '^ *+' conftest.er1 >conftest.err
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag"
19167 || test ! -s conftest.err'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19188 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19189 echo "${ECHO_T}$ac_cv_type_int" >&6
19191 echo "$as_me:$LINENO: checking alignment of int" >&5
19192 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
19193 if test "${pgac_cv_alignof_int+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 if test "$ac_cv_type_int" = yes; then
19197 if test "$cross_compiling" = yes; then
19198 # Depending upon the size, compute the lo and hi bounds.
19199 cat >conftest.$ac_ext <<_ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 $ac_includes_default
19206 struct { char filler; int field; } pgac_struct;
19210 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19217 rm -f conftest.$ac_objext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19219 (eval $ac_compile) 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 $ac_includes_default
19248 struct { char filler; int field; } pgac_struct;
19252 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19259 rm -f conftest.$ac_objext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19261 (eval $ac_compile) 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag"
19269 || test ! -s conftest.err'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest.$ac_objext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_hi=$ac_mid; break
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_lo=`expr $ac_mid + 1`
19287 if test $ac_lo -le $ac_mid; then
19291 ac_mid=`expr 2 '*' $ac_mid + 1`
19293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 $ac_includes_default
19306 struct { char filler; int field; } pgac_struct;
19310 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19317 rm -f conftest.$ac_objext
19318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19319 (eval $ac_compile) 2>conftest.er1
19321 grep -v '^ *+' conftest.er1 >conftest.err
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
19326 { ac_try='test -z "$ac_c_werror_flag"
19327 || test ! -s conftest.err'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } &&
19333 { ac_try='test -s conftest.$ac_objext'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; }; then
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 $ac_includes_default
19348 struct { char filler; int field; } pgac_struct;
19352 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19359 rm -f conftest.$ac_objext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361 (eval $ac_compile) 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_c_werror_flag"
19369 || test ! -s conftest.err'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } &&
19375 { ac_try='test -s conftest.$ac_objext'
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 ac_lo=$ac_mid; break
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19386 ac_hi=`expr '(' $ac_mid ')' - 1`
19387 if test $ac_mid -le $ac_hi; then
19391 ac_mid=`expr 2 '*' $ac_mid`
19393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19396 echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 # Binary search between lo and hi bounds.
19405 while test "x$ac_lo" != "x$ac_hi"; do
19406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 $ac_includes_default
19414 struct { char filler; int field; } pgac_struct;
19418 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19425 rm -f conftest.$ac_objext
19426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>conftest.er1
19429 grep -v '^ *+' conftest.er1 >conftest.err
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
19434 { ac_try='test -z "$ac_c_werror_flag"
19435 || test ! -s conftest.err'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; } &&
19441 { ac_try='test -s conftest.$ac_objext'
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 ac_lo=`expr '(' $ac_mid ')' + 1`
19454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19457 ?*) pgac_cv_alignof_int=$ac_lo;;
19458 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19459 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19460 { (exit 1); exit 1; }; } ;;
19463 if test "$cross_compiling" = yes; then
19464 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19465 See \`config.log' for more details." >&5
19466 echo "$as_me: error: cannot run test program while cross compiling
19467 See \`config.log' for more details." >&2;}
19468 { (exit 1); exit 1; }; }
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19476 $ac_includes_default
19477 struct { char filler; int field; } pgac_struct;
19478 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19479 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19481 #include <stdlib.h>
19486 FILE *f = fopen ("conftest.val", "w");
19489 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19491 long i = longval ();
19492 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19494 fprintf (f, "%ld\n", i);
19498 unsigned long i = ulongval ();
19499 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19501 fprintf (f, "%lu\n", i);
19503 exit (ferror (f) || fclose (f) != 0);
19509 rm -f conftest$ac_exeext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511 (eval $ac_link) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 pgac_cv_alignof_int=`cat conftest.val`
19522 echo "$as_me: program exited with status $ac_status" >&5
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ( exit $ac_status )
19527 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19528 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19529 { (exit 1); exit 1; }; }
19531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19536 pgac_cv_alignof_int=0
19539 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19540 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19541 cat >>confdefs.h <<_ACEOF
19542 #define ALIGNOF_INT $pgac_cv_alignof_int
19546 echo "$as_me:$LINENO: checking for long" >&5
19547 echo $ECHO_N "checking for long... $ECHO_C" >&6
19548 if test "${ac_cv_type_long+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 cat >conftest.$ac_ext <<_ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 $ac_includes_default
19569 rm -f conftest.$ac_objext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19571 (eval $ac_compile) 2>conftest.er1
19573 grep -v '^ *+' conftest.er1 >conftest.err
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } &&
19578 { ac_try='test -z "$ac_c_werror_flag"
19579 || test ! -s conftest.err'
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); }; } &&
19585 { ac_try='test -s conftest.$ac_objext'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 ac_cv_type_long=yes
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19600 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19601 echo "${ECHO_T}$ac_cv_type_long" >&6
19603 echo "$as_me:$LINENO: checking alignment of long" >&5
19604 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19605 if test "${pgac_cv_alignof_long+set}" = set; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 if test "$ac_cv_type_long" = yes; then
19609 if test "$cross_compiling" = yes; then
19610 # Depending upon the size, compute the lo and hi bounds.
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 $ac_includes_default
19618 struct { char filler; long field; } pgac_struct;
19622 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19629 rm -f conftest.$ac_objext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19631 (eval $ac_compile) 2>conftest.er1
19633 grep -v '^ *+' conftest.er1 >conftest.err
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19653 cat >conftest.$ac_ext <<_ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h. */
19659 $ac_includes_default
19660 struct { char filler; long field; } pgac_struct;
19664 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19671 rm -f conftest.$ac_objext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673 (eval $ac_compile) 2>conftest.er1
19675 grep -v '^ *+' conftest.er1 >conftest.err
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
19680 { ac_try='test -z "$ac_c_werror_flag"
19681 || test ! -s conftest.err'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest.$ac_objext'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 ac_hi=$ac_mid; break
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19698 ac_lo=`expr $ac_mid + 1`
19699 if test $ac_lo -le $ac_mid; then
19703 ac_mid=`expr 2 '*' $ac_mid + 1`
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 $ac_includes_default
19718 struct { char filler; long field; } pgac_struct;
19722 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19729 rm -f conftest.$ac_objext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19731 (eval $ac_compile) 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_c_werror_flag"
19739 || test ! -s conftest.err'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest.$ac_objext'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; }; then
19753 cat >conftest.$ac_ext <<_ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h. */
19759 $ac_includes_default
19760 struct { char filler; long field; } pgac_struct;
19764 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19771 rm -f conftest.$ac_objext
19772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19773 (eval $ac_compile) 2>conftest.er1
19775 grep -v '^ *+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -z "$ac_c_werror_flag"
19781 || test ! -s conftest.err'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; }; then
19793 ac_lo=$ac_mid; break
19795 echo "$as_me: failed program was:" >&5
19796 sed 's/^/| /' conftest.$ac_ext >&5
19798 ac_hi=`expr '(' $ac_mid ')' - 1`
19799 if test $ac_mid -le $ac_hi; then
19803 ac_mid=`expr 2 '*' $ac_mid`
19805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19808 echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816 # Binary search between lo and hi bounds.
19817 while test "x$ac_lo" != "x$ac_hi"; do
19818 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 $ac_includes_default
19826 struct { char filler; long field; } pgac_struct;
19830 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19837 rm -f conftest.$ac_objext
19838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19839 (eval $ac_compile) 2>conftest.er1
19841 grep -v '^ *+' conftest.er1 >conftest.err
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
19846 { ac_try='test -z "$ac_c_werror_flag"
19847 || test ! -s conftest.err'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest.$ac_objext'
19854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855 (eval $ac_try) 2>&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; }; then
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_lo=`expr '(' $ac_mid ')' + 1`
19866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19869 ?*) pgac_cv_alignof_long=$ac_lo;;
19870 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19871 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19872 { (exit 1); exit 1; }; } ;;
19875 if test "$cross_compiling" = yes; then
19876 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19877 See \`config.log' for more details." >&5
19878 echo "$as_me: error: cannot run test program while cross compiling
19879 See \`config.log' for more details." >&2;}
19880 { (exit 1); exit 1; }; }
19882 cat >conftest.$ac_ext <<_ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 $ac_includes_default
19889 struct { char filler; long field; } pgac_struct;
19890 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19891 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19893 #include <stdlib.h>
19898 FILE *f = fopen ("conftest.val", "w");
19901 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19903 long i = longval ();
19904 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19906 fprintf (f, "%ld\n", i);
19910 unsigned long i = ulongval ();
19911 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19913 fprintf (f, "%lu\n", i);
19915 exit (ferror (f) || fclose (f) != 0);
19921 rm -f conftest$ac_exeext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19923 (eval $ac_link) 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
19932 pgac_cv_alignof_long=`cat conftest.val`
19934 echo "$as_me: program exited with status $ac_status" >&5
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ( exit $ac_status )
19939 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19940 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19941 { (exit 1); exit 1; }; }
19943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19948 pgac_cv_alignof_long=0
19951 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19952 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19953 cat >>confdefs.h <<_ACEOF
19954 #define ALIGNOF_LONG $pgac_cv_alignof_long
19958 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19959 echo "$as_me:$LINENO: checking for long long int" >&5
19960 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19961 if test "${ac_cv_type_long_long_int+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 cat >conftest.$ac_ext <<_ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h. */
19970 $ac_includes_default
19974 if ((long long int *) 0)
19976 if (sizeof (long long int))
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984 (eval $ac_compile) 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag"
19992 || test ! -s conftest.err'
19993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994 (eval $ac_try) 2>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); }; } &&
19998 { ac_try='test -s conftest.$ac_objext'
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; }; then
20004 ac_cv_type_long_long_int=yes
20006 echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 ac_cv_type_long_long_int=no
20011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20014 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
20016 echo "$as_me:$LINENO: checking alignment of long long int" >&5
20017 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
20018 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 if test "$ac_cv_type_long_long_int" = yes; then
20022 if test "$cross_compiling" = yes; then
20023 # Depending upon the size, compute the lo and hi bounds.
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20030 $ac_includes_default
20031 struct { char filler; long long int field; } pgac_struct;
20035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20042 rm -f conftest.$ac_objext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20044 (eval $ac_compile) 2>conftest.er1
20046 grep -v '^ *+' conftest.er1 >conftest.err
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
20051 { ac_try='test -z "$ac_c_werror_flag"
20052 || test ! -s conftest.err'
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); }; } &&
20058 { ac_try='test -s conftest.$ac_objext'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; }; then
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 $ac_includes_default
20073 struct { char filler; long long int field; } pgac_struct;
20077 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20084 rm -f conftest.$ac_objext
20085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20086 (eval $ac_compile) 2>conftest.er1
20088 grep -v '^ *+' conftest.er1 >conftest.err
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } &&
20093 { ac_try='test -z "$ac_c_werror_flag"
20094 || test ! -s conftest.err'
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); }; } &&
20100 { ac_try='test -s conftest.$ac_objext'
20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; }; then
20106 ac_hi=$ac_mid; break
20108 echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20111 ac_lo=`expr $ac_mid + 1`
20112 if test $ac_lo -le $ac_mid; then
20116 ac_mid=`expr 2 '*' $ac_mid + 1`
20118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 cat >conftest.$ac_ext <<_ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130 $ac_includes_default
20131 struct { char filler; long long int field; } pgac_struct;
20135 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20142 rm -f conftest.$ac_objext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20144 (eval $ac_compile) 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
20151 { ac_try='test -z "$ac_c_werror_flag"
20152 || test ! -s conftest.err'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest.$ac_objext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 $ac_includes_default
20173 struct { char filler; long long int field; } pgac_struct;
20177 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20184 rm -f conftest.$ac_objext
20185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20186 (eval $ac_compile) 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag"
20194 || test ! -s conftest.err'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; } &&
20200 { ac_try='test -s conftest.$ac_objext'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; }; then
20206 ac_lo=$ac_mid; break
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_hi=`expr '(' $ac_mid ')' - 1`
20212 if test $ac_mid -le $ac_hi; then
20216 ac_mid=`expr 2 '*' $ac_mid`
20218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20229 # Binary search between lo and hi bounds.
20230 while test "x$ac_lo" != "x$ac_hi"; do
20231 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238 $ac_includes_default
20239 struct { char filler; long long int field; } pgac_struct;
20243 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20250 rm -f conftest.$ac_objext
20251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20252 (eval $ac_compile) 2>conftest.er1
20254 grep -v '^ *+' conftest.er1 >conftest.err
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); } &&
20259 { ac_try='test -z "$ac_c_werror_flag"
20260 || test ! -s conftest.err'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try='test -s conftest.$ac_objext'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_lo=`expr '(' $ac_mid ')' + 1`
20279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20282 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20283 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20284 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20285 { (exit 1); exit 1; }; } ;;
20288 if test "$cross_compiling" = yes; then
20289 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20290 See \`config.log' for more details." >&5
20291 echo "$as_me: error: cannot run test program while cross compiling
20292 See \`config.log' for more details." >&2;}
20293 { (exit 1); exit 1; }; }
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301 $ac_includes_default
20302 struct { char filler; long long int field; } pgac_struct;
20303 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20304 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20306 #include <stdlib.h>
20311 FILE *f = fopen ("conftest.val", "w");
20314 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20316 long i = longval ();
20317 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20319 fprintf (f, "%ld\n", i);
20323 unsigned long i = ulongval ();
20324 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20326 fprintf (f, "%lu\n", i);
20328 exit (ferror (f) || fclose (f) != 0);
20334 rm -f conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
20345 pgac_cv_alignof_long_long_int=`cat conftest.val`
20347 echo "$as_me: program exited with status $ac_status" >&5
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ( exit $ac_status )
20352 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20353 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20354 { (exit 1); exit 1; }; }
20356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20361 pgac_cv_alignof_long_long_int=0
20364 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20365 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20366 cat >>confdefs.h <<_ACEOF
20367 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20372 echo "$as_me:$LINENO: checking for double" >&5
20373 echo $ECHO_N "checking for double... $ECHO_C" >&6
20374 if test "${ac_cv_type_double+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20383 $ac_includes_default
20389 if (sizeof (double))
20395 rm -f conftest.$ac_objext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20397 (eval $ac_compile) 2>conftest.er1
20399 grep -v '^ *+' conftest.er1 >conftest.err
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
20404 { ac_try='test -z "$ac_c_werror_flag"
20405 || test ! -s conftest.err'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest.$ac_objext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_type_double=yes
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_cv_type_double=no
20424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20426 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20427 echo "${ECHO_T}$ac_cv_type_double" >&6
20429 echo "$as_me:$LINENO: checking alignment of double" >&5
20430 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20431 if test "${pgac_cv_alignof_double+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 if test "$ac_cv_type_double" = yes; then
20435 if test "$cross_compiling" = yes; then
20436 # Depending upon the size, compute the lo and hi bounds.
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 $ac_includes_default
20444 struct { char filler; double field; } pgac_struct;
20448 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457 (eval $ac_compile) 2>conftest.er1
20459 grep -v '^ *+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
20464 { ac_try='test -z "$ac_c_werror_flag"
20465 || test ! -s conftest.err'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 $ac_includes_default
20486 struct { char filler; double field; } pgac_struct;
20490 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20497 rm -f conftest.$ac_objext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20499 (eval $ac_compile) 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
20506 { ac_try='test -z "$ac_c_werror_flag"
20507 || test ! -s conftest.err'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try='test -s conftest.$ac_objext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_hi=$ac_mid; break
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 ac_lo=`expr $ac_mid + 1`
20525 if test $ac_lo -le $ac_mid; then
20529 ac_mid=`expr 2 '*' $ac_mid + 1`
20531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 $ac_includes_default
20544 struct { char filler; double field; } pgac_struct;
20548 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20555 rm -f conftest.$ac_objext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557 (eval $ac_compile) 2>conftest.er1
20559 grep -v '^ *+' conftest.er1 >conftest.err
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
20564 { ac_try='test -z "$ac_c_werror_flag"
20565 || test ! -s conftest.err'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; } &&
20571 { ac_try='test -s conftest.$ac_objext'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20585 $ac_includes_default
20586 struct { char filler; double field; } pgac_struct;
20590 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20597 rm -f conftest.$ac_objext
20598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20599 (eval $ac_compile) 2>conftest.er1
20601 grep -v '^ *+' conftest.er1 >conftest.err
20603 cat conftest.err >&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } &&
20606 { ac_try='test -z "$ac_c_werror_flag"
20607 || test ! -s conftest.err'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; } &&
20613 { ac_try='test -s conftest.$ac_objext'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }; then
20619 ac_lo=$ac_mid; break
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_hi=`expr '(' $ac_mid ')' - 1`
20625 if test $ac_mid -le $ac_hi; then
20629 ac_mid=`expr 2 '*' $ac_mid`
20631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20642 # Binary search between lo and hi bounds.
20643 while test "x$ac_lo" != "x$ac_hi"; do
20644 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20645 cat >conftest.$ac_ext <<_ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h. */
20651 $ac_includes_default
20652 struct { char filler; double field; } pgac_struct;
20656 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20663 rm -f conftest.$ac_objext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20665 (eval $ac_compile) 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } &&
20672 { ac_try='test -z "$ac_c_werror_flag"
20673 || test ! -s conftest.err'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; } &&
20679 { ac_try='test -s conftest.$ac_objext'
20680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681 (eval $ac_try) 2>&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); }; }; then
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_lo=`expr '(' $ac_mid ')' + 1`
20692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20695 ?*) pgac_cv_alignof_double=$ac_lo;;
20696 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20697 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20698 { (exit 1); exit 1; }; } ;;
20701 if test "$cross_compiling" = yes; then
20702 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20703 See \`config.log' for more details." >&5
20704 echo "$as_me: error: cannot run test program while cross compiling
20705 See \`config.log' for more details." >&2;}
20706 { (exit 1); exit 1; }; }
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714 $ac_includes_default
20715 struct { char filler; double field; } pgac_struct;
20716 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20717 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20719 #include <stdlib.h>
20724 FILE *f = fopen ("conftest.val", "w");
20727 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20729 long i = longval ();
20730 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20732 fprintf (f, "%ld\n", i);
20736 unsigned long i = ulongval ();
20737 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20739 fprintf (f, "%lu\n", i);
20741 exit (ferror (f) || fclose (f) != 0);
20747 rm -f conftest$ac_exeext
20748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20749 (eval $ac_link) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20754 (eval $ac_try) 2>&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; }; then
20758 pgac_cv_alignof_double=`cat conftest.val`
20760 echo "$as_me: program exited with status $ac_status" >&5
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 ( exit $ac_status )
20765 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20766 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20767 { (exit 1); exit 1; }; }
20769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20774 pgac_cv_alignof_double=0
20777 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20778 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20779 cat >>confdefs.h <<_ACEOF
20780 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20785 # Compute maximum alignment of any basic type.
20786 # We assume long's alignment is at least as strong as char, short, or int;
20787 # but we must check long long (if it exists) and double.
20789 MAX_ALIGNOF=$pgac_cv_alignof_long
20790 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20791 MAX_ALIGNOF=$pgac_cv_alignof_double
20793 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20794 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20797 cat >>confdefs.h <<_ACEOF
20798 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20803 # Some platforms predefine the types int8, int16, etc. Only check
20804 # a (hopefully) representative subset.
20805 echo "$as_me:$LINENO: checking for int8" >&5
20806 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20807 if test "${ac_cv_type_int8+set}" = set; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 cat >conftest.$ac_ext <<_ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h. */
20817 #ifdef HAVE_SUPPORTDEFS_H
20818 #include <SupportDefs.h>
20832 rm -f conftest.$ac_objext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20834 (eval $ac_compile) 2>conftest.er1
20836 grep -v '^ *+' conftest.er1 >conftest.err
20838 cat conftest.err >&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); } &&
20841 { ac_try='test -z "$ac_c_werror_flag"
20842 || test ! -s conftest.err'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; } &&
20848 { ac_try='test -s conftest.$ac_objext'
20849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850 (eval $ac_try) 2>&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); }; }; then
20854 ac_cv_type_int8=yes
20856 echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20863 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20864 echo "${ECHO_T}$ac_cv_type_int8" >&6
20865 if test $ac_cv_type_int8 = yes; then
20867 cat >>confdefs.h <<_ACEOF
20868 #define HAVE_INT8 1
20873 echo "$as_me:$LINENO: checking for uint8" >&5
20874 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20875 if test "${ac_cv_type_uint8+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20885 #ifdef HAVE_SUPPORTDEFS_H
20886 #include <SupportDefs.h>
20894 if (sizeof (uint8))
20900 rm -f conftest.$ac_objext
20901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20902 (eval $ac_compile) 2>conftest.er1
20904 grep -v '^ *+' conftest.er1 >conftest.err
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
20909 { ac_try='test -z "$ac_c_werror_flag"
20910 || test ! -s conftest.err'
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest.$ac_objext'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922 ac_cv_type_uint8=yes
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_cv_type_uint8=no
20929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20931 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20932 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20933 if test $ac_cv_type_uint8 = yes; then
20935 cat >>confdefs.h <<_ACEOF
20936 #define HAVE_UINT8 1
20941 echo "$as_me:$LINENO: checking for int64" >&5
20942 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20943 if test "${ac_cv_type_int64+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20953 #ifdef HAVE_SUPPORTDEFS_H
20954 #include <SupportDefs.h>
20962 if (sizeof (int64))
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
20990 ac_cv_type_int64=yes
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20995 ac_cv_type_int64=no
20997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20999 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
21000 echo "${ECHO_T}$ac_cv_type_int64" >&6
21001 if test $ac_cv_type_int64 = yes; then
21003 cat >>confdefs.h <<_ACEOF
21004 #define HAVE_INT64 1
21009 echo "$as_me:$LINENO: checking for uint64" >&5
21010 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
21011 if test "${ac_cv_type_uint64+set}" = set; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21014 cat >conftest.$ac_ext <<_ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21021 #ifdef HAVE_SUPPORTDEFS_H
21022 #include <SupportDefs.h>
21030 if (sizeof (uint64))
21036 rm -f conftest.$ac_objext
21037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21038 (eval $ac_compile) 2>conftest.er1
21040 grep -v '^ *+' conftest.er1 >conftest.err
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
21045 { ac_try='test -z "$ac_c_werror_flag"
21046 || test ! -s conftest.err'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest.$ac_objext'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_type_uint64=yes
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ac_cv_type_uint64=no
21065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21067 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
21068 echo "${ECHO_T}$ac_cv_type_uint64" >&6
21069 if test $ac_cv_type_uint64 = yes; then
21071 cat >>confdefs.h <<_ACEOF
21072 #define HAVE_UINT64 1
21079 # We also check for sig_atomic_t, which *should* be defined per ANSI
21080 # C, but is missing on some old platforms.
21081 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21082 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
21083 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 #include <signal.h>
21097 if ((sig_atomic_t *) 0)
21099 if (sizeof (sig_atomic_t))
21105 rm -f conftest.$ac_objext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107 (eval $ac_compile) 2>conftest.er1
21109 grep -v '^ *+' conftest.er1 >conftest.err
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try='test -z "$ac_c_werror_flag"
21115 || test ! -s conftest.err'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; } &&
21121 { ac_try='test -s conftest.$ac_objext'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 ac_cv_type_sig_atomic_t=yes
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ac_cv_type_sig_atomic_t=no
21134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21136 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21137 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
21138 if test $ac_cv_type_sig_atomic_t = yes; then
21140 cat >>confdefs.h <<_ACEOF
21141 #define HAVE_SIG_ATOMIC_T 1
21149 if test x"$template" != x"win32"
21151 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
21152 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
21153 if test "${pgac_cv_func_posix_signals+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 cat >conftest.$ac_ext <<_ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <signal.h>
21167 struct sigaction act, oact;
21168 sigemptyset(&act.sa_mask);
21169 act.sa_flags = SA_RESTART;
21170 sigaction(0, &act, &oact);
21175 rm -f conftest.$ac_objext conftest$ac_exeext
21176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21177 (eval $ac_link) 2>conftest.er1
21179 grep -v '^ *+' conftest.er1 >conftest.err
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } &&
21184 { ac_try='test -z "$ac_c_werror_flag"
21185 || test ! -s conftest.err'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try='test -s conftest$ac_exeext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 pgac_cv_func_posix_signals=yes
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 pgac_cv_func_posix_signals=no
21204 rm -f conftest.err conftest.$ac_objext \
21205 conftest$ac_exeext conftest.$ac_ext
21207 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
21208 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
21209 if test x"$pgac_cv_func_posix_signals" = xyes ; then
21211 cat >>confdefs.h <<\_ACEOF
21212 #define HAVE_POSIX_SIGNALS
21216 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
21218 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
21219 { { echo "$as_me:$LINENO: error:
21220 *** Thread-safety requires POSIX signals, which are not supported by your
21221 *** operating system.
21223 echo "$as_me: error:
21224 *** Thread-safety requires POSIX signals, which are not supported by your
21225 *** operating system.
21227 { (exit 1); exit 1; }; }
21231 if test $ac_cv_func_fseeko = yes; then
21232 # Check whether --enable-largefile or --disable-largefile was given.
21233 if test "${enable_largefile+set}" = set; then
21234 enableval="$enable_largefile"
21237 if test "$enable_largefile" != no; then
21239 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21240 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21241 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 ac_cv_sys_largefile_CC=no
21245 if test "$GCC" != yes; then
21248 # IRIX 6.2 and later do not support large files by default,
21249 # so use the C compiler's -n32 option if that helps.
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 #include <sys/types.h>
21257 /* Check that off_t can represent 2**63 - 1 correctly.
21258 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21259 since some C++ compilers masquerading as C compilers
21260 incorrectly reject 9223372036854775807. */
21261 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21262 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21263 && LARGE_OFF_T % 2147483647 == 1)
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 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21301 rm -f conftest.err conftest.$ac_objext
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305 (eval $ac_compile) 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
21312 { ac_try='test -z "$ac_c_werror_flag"
21313 || test ! -s conftest.err'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try='test -s conftest.$ac_objext'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_sys_largefile_CC=' -n32'; break
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21331 rm -f conftest.err conftest.$ac_objext
21335 rm -f conftest.$ac_ext
21338 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21339 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21340 if test "$ac_cv_sys_largefile_CC" != no; then
21341 CC=$CC$ac_cv_sys_largefile_CC
21344 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21345 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21346 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21347 echo $ECHO_N "(cached) $ECHO_C" >&6
21350 ac_cv_sys_file_offset_bits=no
21351 cat >conftest.$ac_ext <<_ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21357 #include <sys/types.h>
21358 /* Check that off_t can represent 2**63 - 1 correctly.
21359 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21360 since some C++ compilers masquerading as C compilers
21361 incorrectly reject 9223372036854775807. */
21362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21363 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21364 && LARGE_OFF_T % 2147483647 == 1)
21374 rm -f conftest.$ac_objext
21375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21376 (eval $ac_compile) 2>conftest.er1
21378 grep -v '^ *+' conftest.er1 >conftest.err
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
21383 { ac_try='test -z "$ac_c_werror_flag"
21384 || test ! -s conftest.err'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; } &&
21390 { ac_try='test -s conftest.$ac_objext'
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; }; then
21398 echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #define _FILE_OFFSET_BITS 64
21410 #include <sys/types.h>
21411 /* Check that off_t can represent 2**63 - 1 correctly.
21412 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21413 since some C++ compilers masquerading as C compilers
21414 incorrectly reject 9223372036854775807. */
21415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21416 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21417 && LARGE_OFF_T % 2147483647 == 1)
21427 rm -f conftest.$ac_objext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429 (eval $ac_compile) 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
21436 { ac_try='test -z "$ac_c_werror_flag"
21437 || test ! -s conftest.err'
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_cv_sys_file_offset_bits=64; break
21451 echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21459 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21460 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21461 if test "$ac_cv_sys_file_offset_bits" != no; then
21463 cat >>confdefs.h <<_ACEOF
21464 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21469 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21470 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21471 if test "${ac_cv_sys_large_files+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21475 ac_cv_sys_large_files=no
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 #include <sys/types.h>
21483 /* Check that off_t can represent 2**63 - 1 correctly.
21484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21485 since some C++ compilers masquerading as C compilers
21486 incorrectly reject 9223372036854775807. */
21487 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21489 && LARGE_OFF_T % 2147483647 == 1)
21499 rm -f conftest.$ac_objext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501 (eval $ac_compile) 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -z "$ac_c_werror_flag"
21509 || test ! -s conftest.err'
21510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511 (eval $ac_try) 2>&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; } &&
21515 { ac_try='test -s conftest.$ac_objext'
21516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21517 (eval $ac_try) 2>&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); }; }; then
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21528 cat >conftest.$ac_ext <<_ACEOF
21531 cat confdefs.h >>conftest.$ac_ext
21532 cat >>conftest.$ac_ext <<_ACEOF
21533 /* end confdefs.h. */
21534 #define _LARGE_FILES 1
21535 #include <sys/types.h>
21536 /* Check that off_t can represent 2**63 - 1 correctly.
21537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21538 since some C++ compilers masquerading as C compilers
21539 incorrectly reject 9223372036854775807. */
21540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21542 && LARGE_OFF_T % 2147483647 == 1)
21552 rm -f conftest.$ac_objext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21554 (eval $ac_compile) 2>conftest.er1
21556 grep -v '^ *+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); } &&
21561 { ac_try='test -z "$ac_c_werror_flag"
21562 || test ! -s conftest.err'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; } &&
21568 { ac_try='test -s conftest.$ac_objext'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; }; then
21574 ac_cv_sys_large_files=1; break
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21584 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21585 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21586 if test "$ac_cv_sys_large_files" != no; then
21588 cat >>confdefs.h <<_ACEOF
21589 #define _LARGE_FILES $ac_cv_sys_large_files
21598 # SunOS doesn't handle negative byte comparisons properly with +/- return
21599 echo "$as_me:$LINENO: checking for working memcmp" >&5
21600 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21601 if test "${ac_cv_func_memcmp_working+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 if test "$cross_compiling" = yes; then
21605 ac_cv_func_memcmp_working=no
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21618 /* Some versions of memcmp are not 8-bit clean. */
21619 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21620 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21623 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21624 or more and with at least one buffer not starting on a 4-byte boundary.
21625 William Lewis provided this test program. */
21630 for (i = 0; i < 4; i++)
21634 strcpy (a, "--------01111111");
21635 strcpy (b, "--------10000000");
21636 if (memcmp (a, b, 16) >= 0)
21646 rm -f conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648 (eval $ac_link) 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21657 ac_cv_func_memcmp_working=yes
21659 echo "$as_me: program exited with status $ac_status" >&5
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21663 ( exit $ac_status )
21664 ac_cv_func_memcmp_working=no
21666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21669 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21670 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21671 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21672 "memcmp.$ac_objext" | \
21673 *" memcmp.$ac_objext" | \
21674 "memcmp.$ac_objext "* | \
21675 *" memcmp.$ac_objext "* ) ;;
21676 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21682 # Select semaphore implementation type.
21683 if test "$PORTNAME" != "win32"; then
21684 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21686 cat >>confdefs.h <<\_ACEOF
21687 #define USE_NAMED_POSIX_SEMAPHORES 1
21690 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21692 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21694 cat >>confdefs.h <<\_ACEOF
21695 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21698 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21701 cat >>confdefs.h <<\_ACEOF
21702 #define USE_SYSV_SEMAPHORES 1
21705 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21710 cat >>confdefs.h <<\_ACEOF
21711 #define USE_WIN32_SEMAPHORES 1
21714 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
21718 # Select shared-memory implementation type.
21720 cat >>confdefs.h <<\_ACEOF
21721 #define USE_SYSV_SHARED_MEMORY 1
21724 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21727 # If not set in template file, set bytes to use libc memset()
21728 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21729 MEMSET_LOOP_LIMIT=1024
21732 cat >>confdefs.h <<_ACEOF
21733 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21738 if test "$enable_nls" = yes ; then
21740 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21741 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21742 if test "${ac_cv_search_gettext+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 ac_func_search_save_LIBS=$LIBS
21746 ac_cv_search_gettext=no
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21754 /* Override any gcc2 internal prototype to avoid an error. */
21758 /* We use char because int might match the return type of a gcc2
21759 builtin and then its argument prototype would still apply. */
21769 rm -f conftest.$ac_objext conftest$ac_exeext
21770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21771 (eval $ac_link) 2>conftest.er1
21773 grep -v '^ *+' conftest.er1 >conftest.err
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } &&
21778 { ac_try='test -z "$ac_c_werror_flag"
21779 || test ! -s conftest.err'
21780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); }; } &&
21785 { ac_try='test -s conftest$ac_exeext'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 ac_cv_search_gettext="none required"
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21797 rm -f conftest.err conftest.$ac_objext \
21798 conftest$ac_exeext conftest.$ac_ext
21799 if test "$ac_cv_search_gettext" = no; then
21800 for ac_lib in intl; do
21801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21802 cat >conftest.$ac_ext <<_ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21809 /* Override any gcc2 internal prototype to avoid an error. */
21813 /* We use char because int might match the return type of a gcc2
21814 builtin and then its argument prototype would still apply. */
21824 rm -f conftest.$ac_objext conftest$ac_exeext
21825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21826 (eval $ac_link) 2>conftest.er1
21828 grep -v '^ *+' conftest.er1 >conftest.err
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } &&
21833 { ac_try='test -z "$ac_c_werror_flag"
21834 || test ! -s conftest.err'
21835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836 (eval $ac_try) 2>&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); }; } &&
21840 { ac_try='test -s conftest$ac_exeext'
21841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21842 (eval $ac_try) 2>&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); }; }; then
21846 ac_cv_search_gettext="-l$ac_lib"
21849 echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21853 rm -f conftest.err conftest.$ac_objext \
21854 conftest$ac_exeext conftest.$ac_ext
21857 LIBS=$ac_func_search_save_LIBS
21859 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21860 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21861 if test "$ac_cv_search_gettext" != no; then
21862 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21865 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21866 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21867 { (exit 1); exit 1; }; }
21870 if test "${ac_cv_header_libintl_h+set}" = set; then
21871 echo "$as_me:$LINENO: checking for libintl.h" >&5
21872 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21873 if test "${ac_cv_header_libintl_h+set}" = set; then
21874 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21877 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21879 # Is the header compilable?
21880 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21881 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21882 cat >conftest.$ac_ext <<_ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h. */
21888 $ac_includes_default
21889 #include <libintl.h>
21891 rm -f conftest.$ac_objext
21892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21893 (eval $ac_compile) 2>conftest.er1
21895 grep -v '^ *+' conftest.er1 >conftest.err
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } &&
21900 { ac_try='test -z "$ac_c_werror_flag"
21901 || test ! -s conftest.err'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; } &&
21907 { ac_try='test -s conftest.$ac_objext'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 ac_header_compiler=yes
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_compiler=no
21920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21922 echo "${ECHO_T}$ac_header_compiler" >&6
21924 # Is the header present?
21925 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21926 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21927 cat >conftest.$ac_ext <<_ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 #include <libintl.h>
21935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } >/dev/null; then
21943 if test -s conftest.err; then
21944 ac_cpp_err=$ac_c_preproc_warn_flag
21945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21952 if test -z "$ac_cpp_err"; then
21953 ac_header_preproc=yes
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_header_preproc=no
21960 rm -f conftest.err conftest.$ac_ext
21961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21962 echo "${ECHO_T}$ac_header_preproc" >&6
21964 # So? What about this header?
21965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21967 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21968 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21969 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21970 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21971 ac_header_preproc=yes
21974 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21975 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21977 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21979 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21981 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21983 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21985 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21988 ## ---------------------------------------- ##
21989 ## Report this to pgsql-bugs@postgresql.org ##
21990 ## ---------------------------------------- ##
21993 sed "s/^/$as_me: WARNING: /" >&2
21996 echo "$as_me:$LINENO: checking for libintl.h" >&5
21997 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21998 if test "${ac_cv_header_libintl_h+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 ac_cv_header_libintl_h=$ac_header_preproc
22003 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22004 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22007 if test $ac_cv_header_libintl_h = yes; then
22010 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
22011 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
22012 { (exit 1); exit 1; }; }
22016 for ac_prog in msgfmt
22018 # Extract the first word of "$ac_prog", so it can be a program name with args.
22019 set dummy $ac_prog; ac_word=$2
22020 echo "$as_me:$LINENO: checking for $ac_word" >&5
22021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22022 if test "${ac_cv_prog_MSGFMT+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 if test -n "$MSGFMT"; then
22026 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
22028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22029 for as_dir in $PATH
22032 test -z "$as_dir" && as_dir=.
22033 for ac_exec_ext in '' $ac_executable_extensions; do
22034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22035 ac_cv_prog_MSGFMT="$ac_prog"
22036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22044 MSGFMT=$ac_cv_prog_MSGFMT
22045 if test -n "$MSGFMT"; then
22046 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22047 echo "${ECHO_T}$MSGFMT" >&6
22049 echo "$as_me:$LINENO: result: no" >&5
22050 echo "${ECHO_T}no" >&6
22053 test -n "$MSGFMT" && break
22056 if test -z "$MSGFMT"; then
22057 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
22058 echo "$as_me: error: msgfmt is required for NLS" >&2;}
22059 { (exit 1); exit 1; }; }
22061 for ac_prog in msgmerge
22063 # Extract the first word of "$ac_prog", so it can be a program name with args.
22064 set dummy $ac_prog; ac_word=$2
22065 echo "$as_me:$LINENO: checking for $ac_word" >&5
22066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22067 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
22068 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 if test -n "$MSGMERGE"; then
22071 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
22073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22074 for as_dir in $PATH
22077 test -z "$as_dir" && as_dir=.
22078 for ac_exec_ext in '' $ac_executable_extensions; do
22079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22080 ac_cv_prog_MSGMERGE="$ac_prog"
22081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22089 MSGMERGE=$ac_cv_prog_MSGMERGE
22090 if test -n "$MSGMERGE"; then
22091 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22092 echo "${ECHO_T}$MSGMERGE" >&6
22094 echo "$as_me:$LINENO: result: no" >&5
22095 echo "${ECHO_T}no" >&6
22098 test -n "$MSGMERGE" && break
22101 for ac_prog in xgettext
22103 # Extract the first word of "$ac_prog", so it can be a program name with args.
22104 set dummy $ac_prog; ac_word=$2
22105 echo "$as_me:$LINENO: checking for $ac_word" >&5
22106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22107 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 if test -n "$XGETTEXT"; then
22111 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
22113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22114 for as_dir in $PATH
22117 test -z "$as_dir" && as_dir=.
22118 for ac_exec_ext in '' $ac_executable_extensions; do
22119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22120 ac_cv_prog_XGETTEXT="$ac_prog"
22121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22129 XGETTEXT=$ac_cv_prog_XGETTEXT
22130 if test -n "$XGETTEXT"; then
22131 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22132 echo "${ECHO_T}$XGETTEXT" >&6
22134 echo "$as_me:$LINENO: result: no" >&5
22135 echo "${ECHO_T}no" >&6
22138 test -n "$XGETTEXT" && break
22142 # Note: share/locale is always the default, independent of $datadir
22143 localedir='${prefix}/share/locale'
22148 # Check for Tcl configuration script tclConfig.sh
22149 if test "$with_tcl" = yes; then
22150 for ac_prog in tclsh tcl
22152 # Extract the first word of "$ac_prog", so it can be a program name with args.
22153 set dummy $ac_prog; ac_word=$2
22154 echo "$as_me:$LINENO: checking for $ac_word" >&5
22155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22156 if test "${ac_cv_path_TCLSH+set}" = set; then
22157 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
22164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22165 for as_dir in $PATH
22168 test -z "$as_dir" && as_dir=.
22169 for ac_exec_ext in '' $ac_executable_extensions; do
22170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22171 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
22172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22181 TCLSH=$ac_cv_path_TCLSH
22183 if test -n "$TCLSH"; then
22184 echo "$as_me:$LINENO: result: $TCLSH" >&5
22185 echo "${ECHO_T}$TCLSH" >&6
22187 echo "$as_me:$LINENO: result: no" >&5
22188 echo "${ECHO_T}no" >&6
22191 test -n "$TCLSH" && break
22194 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
22195 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
22196 # Let user override test
22197 if test -z "$TCL_CONFIG_SH"; then
22198 pgac_test_dirs="$with_tclconfig"
22200 set X $pgac_test_dirs; shift
22201 if test $# -eq 0; then
22202 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
22203 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
22204 { (exit 1); exit 1; }; }
22205 set X `echo 'puts $auto_path' | $TCLSH`; shift
22209 if test -r "$pgac_dir/tclConfig.sh"; then
22210 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
22216 if test -z "$TCL_CONFIG_SH"; then
22217 echo "$as_me:$LINENO: result: no" >&5
22218 echo "${ECHO_T}no" >&6
22219 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
22220 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
22221 { (exit 1); exit 1; }; }
22223 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
22224 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
22230 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
22231 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
22232 eval TCL_LIBS=\"$TCL_LIBS\"
22233 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
22234 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22236 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22237 ac_save_CPPFLAGS=$CPPFLAGS
22238 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22239 if test "${ac_cv_header_tcl_h+set}" = set; then
22240 echo "$as_me:$LINENO: checking for tcl.h" >&5
22241 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22242 if test "${ac_cv_header_tcl_h+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22246 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22248 # Is the header compilable?
22249 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22250 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 $ac_includes_default
22260 rm -f conftest.$ac_objext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22262 (eval $ac_compile) 2>conftest.er1
22264 grep -v '^ *+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } &&
22269 { ac_try='test -z "$ac_c_werror_flag"
22270 || test ! -s conftest.err'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } &&
22276 { ac_try='test -s conftest.$ac_objext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 ac_header_compiler=yes
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 ac_header_compiler=no
22289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22291 echo "${ECHO_T}$ac_header_compiler" >&6
22293 # Is the header present?
22294 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22295 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22296 cat >conftest.$ac_ext <<_ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h. */
22304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22307 grep -v '^ *+' conftest.er1 >conftest.err
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } >/dev/null; then
22312 if test -s conftest.err; then
22313 ac_cpp_err=$ac_c_preproc_warn_flag
22314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22321 if test -z "$ac_cpp_err"; then
22322 ac_header_preproc=yes
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 ac_header_preproc=no
22329 rm -f conftest.err conftest.$ac_ext
22330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22331 echo "${ECHO_T}$ac_header_preproc" >&6
22333 # So? What about this header?
22334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22336 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22337 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22339 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22340 ac_header_preproc=yes
22343 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22344 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22345 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22346 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22347 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22348 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22350 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22351 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22352 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22353 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22354 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22357 ## ---------------------------------------- ##
22358 ## Report this to pgsql-bugs@postgresql.org ##
22359 ## ---------------------------------------- ##
22362 sed "s/^/$as_me: WARNING: /" >&2
22365 echo "$as_me:$LINENO: checking for tcl.h" >&5
22366 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22367 if test "${ac_cv_header_tcl_h+set}" = set; then
22368 echo $ECHO_N "(cached) $ECHO_C" >&6
22370 ac_cv_header_tcl_h=$ac_header_preproc
22372 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22373 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22376 if test $ac_cv_header_tcl_h = yes; then
22379 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22380 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22381 { (exit 1); exit 1; }; }
22385 CPPFLAGS=$ac_save_CPPFLAGS
22389 # Check for DocBook and tools
22391 for ac_prog in onsgmls nsgmls
22393 # Extract the first word of "$ac_prog", so it can be a program name with args.
22394 set dummy $ac_prog; ac_word=$2
22395 echo "$as_me:$LINENO: checking for $ac_word" >&5
22396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22397 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 if test -n "$NSGMLS"; then
22401 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22404 for as_dir in $PATH
22407 test -z "$as_dir" && as_dir=.
22408 for ac_exec_ext in '' $ac_executable_extensions; do
22409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22410 ac_cv_prog_NSGMLS="$ac_prog"
22411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22419 NSGMLS=$ac_cv_prog_NSGMLS
22420 if test -n "$NSGMLS"; then
22421 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22422 echo "${ECHO_T}$NSGMLS" >&6
22424 echo "$as_me:$LINENO: result: no" >&5
22425 echo "${ECHO_T}no" >&6
22428 test -n "$NSGMLS" && break
22431 for ac_prog in openjade jade
22433 # Extract the first word of "$ac_prog", so it can be a program name with args.
22434 set dummy $ac_prog; ac_word=$2
22435 echo "$as_me:$LINENO: checking for $ac_word" >&5
22436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22437 if test "${ac_cv_prog_JADE+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22440 if test -n "$JADE"; then
22441 ac_cv_prog_JADE="$JADE" # Let the user override the test.
22443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22444 for as_dir in $PATH
22447 test -z "$as_dir" && as_dir=.
22448 for ac_exec_ext in '' $ac_executable_extensions; do
22449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22450 ac_cv_prog_JADE="$ac_prog"
22451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22459 JADE=$ac_cv_prog_JADE
22460 if test -n "$JADE"; then
22461 echo "$as_me:$LINENO: result: $JADE" >&5
22462 echo "${ECHO_T}$JADE" >&6
22464 echo "$as_me:$LINENO: result: no" >&5
22465 echo "${ECHO_T}no" >&6
22468 test -n "$JADE" && break
22472 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22473 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22474 if test "${pgac_cv_check_docbook+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22477 cat >conftest.sgml <<EOF
22478 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22480 <title>test</title>
22482 <title>random</title>
22484 <title>testsect</title>
22491 pgac_cv_check_docbook=no
22493 if test -n "$NSGMLS"; then
22494 $NSGMLS -s conftest.sgml 1>&5 2>&1
22495 if test $? -eq 0; then
22496 pgac_cv_check_docbook=yes
22499 rm -f conftest.sgml
22501 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22502 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22504 have_docbook=$pgac_cv_check_docbook
22507 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22508 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22509 if test "${pgac_cv_path_stylesheets+set}" = set; then
22510 echo $ECHO_N "(cached) $ECHO_C" >&6
22512 if test -n "$DOCBOOKSTYLE"; then
22513 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22515 for pgac_prefix in /usr /usr/local /opt; do
22516 for pgac_infix in share lib; do
22517 for pgac_postfix in \
22518 sgml/stylesheets/nwalsh-modular \
22519 sgml/stylesheets/docbook \
22520 sgml/docbook-dsssl \
22521 sgml/docbook/dsssl/modular \
22522 sgml/docbook/stylesheet/dsssl/modular \
22523 sgml/docbook/dsssl-stylesheets
22525 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22526 if test -r "$pgac_candidate/html/docbook.dsl" \
22527 && test -r "$pgac_candidate/print/docbook.dsl"
22529 pgac_cv_path_stylesheets=$pgac_candidate
22538 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22540 if test -n "$DOCBOOKSTYLE"; then
22541 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22542 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22544 echo "$as_me:$LINENO: result: no" >&5
22545 echo "${ECHO_T}no" >&6
22547 if test -n "$DOCBOOKSTYLE"; then
22548 for ac_prog in collateindex.pl
22550 # Extract the first word of "$ac_prog", so it can be a program name with args.
22551 set dummy $ac_prog; ac_word=$2
22552 echo "$as_me:$LINENO: checking for $ac_word" >&5
22553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22554 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22555 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 case $COLLATEINDEX in
22559 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22563 for as_dir in $DOCBOOKSTYLE/bin $PATH
22566 test -z "$as_dir" && as_dir=.
22567 for ac_exec_ext in '' $ac_executable_extensions; do
22568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22569 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22579 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22581 if test -n "$COLLATEINDEX"; then
22582 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22583 echo "${ECHO_T}$COLLATEINDEX" >&6
22585 echo "$as_me:$LINENO: result: no" >&5
22586 echo "${ECHO_T}no" >&6
22589 test -n "$COLLATEINDEX" && break
22593 for ac_prog in collateindex.pl
22595 # Extract the first word of "$ac_prog", so it can be a program name with args.
22596 set dummy $ac_prog; ac_word=$2
22597 echo "$as_me:$LINENO: checking for $ac_word" >&5
22598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22599 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22600 echo $ECHO_N "(cached) $ECHO_C" >&6
22602 case $COLLATEINDEX in
22604 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22608 for as_dir in $PATH
22611 test -z "$as_dir" && as_dir=.
22612 for ac_exec_ext in '' $ac_executable_extensions; do
22613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22614 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22624 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22626 if test -n "$COLLATEINDEX"; then
22627 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22628 echo "${ECHO_T}$COLLATEINDEX" >&6
22630 echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6
22634 test -n "$COLLATEINDEX" && break
22638 for ac_prog in sgmlspl
22640 # Extract the first word of "$ac_prog", so it can be a program name with args.
22641 set dummy $ac_prog; ac_word=$2
22642 echo "$as_me:$LINENO: checking for $ac_word" >&5
22643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22644 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 if test -n "$SGMLSPL"; then
22648 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22651 for as_dir in $PATH
22654 test -z "$as_dir" && as_dir=.
22655 for ac_exec_ext in '' $ac_executable_extensions; do
22656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22657 ac_cv_prog_SGMLSPL="$ac_prog"
22658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22666 SGMLSPL=$ac_cv_prog_SGMLSPL
22667 if test -n "$SGMLSPL"; then
22668 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22669 echo "${ECHO_T}$SGMLSPL" >&6
22671 echo "$as_me:$LINENO: result: no" >&5
22672 echo "${ECHO_T}no" >&6
22675 test -n "$SGMLSPL" && break
22681 # We have to run the thread test near the end so we have all our symbols
22682 # defined. Cross compiling throws a warning.
22684 if test "$enable_thread_safety_force" = yes; then
22685 if test x"$template" != x"win32"
22687 { echo "$as_me:$LINENO: WARNING:
22688 *** Skipping thread test program. --enable-thread-safety-force was used.
22689 *** Run the program in src/test/thread on the your machine and add
22690 proper locking function calls to your applications to guarantee thread
22693 echo "$as_me: WARNING:
22694 *** Skipping thread test program. --enable-thread-safety-force was used.
22695 *** Run the program in src/test/thread on the your machine and add
22696 proper locking function calls to your applications to guarantee thread
22700 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22701 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22703 elif test "$enable_thread_safety" = yes; then
22704 if test x"$template" != x"win32"
22706 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22707 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22711 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22712 LIBS="$LIBS $PTHREAD_LIBS"
22713 if test "$cross_compiling" = yes; then
22714 echo "$as_me:$LINENO: result: maybe" >&5
22715 echo "${ECHO_T}maybe" >&6
22716 { echo "$as_me:$LINENO: WARNING:
22717 *** Skipping thread test program because of cross-compile build.
22718 *** Run the program in src/test/thread on the target machine.
22720 echo "$as_me: WARNING:
22721 *** Skipping thread test program because of cross-compile build.
22722 *** Run the program in src/test/thread on the target machine.
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 #include "$srcdir/src/test/thread/thread_test.c"
22733 rm -f conftest$ac_exeext
22734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22735 (eval $ac_link) 2>&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22744 echo "$as_me:$LINENO: result: yes" >&5
22745 echo "${ECHO_T}yes" >&6
22747 echo "$as_me: program exited with status $ac_status" >&5
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22751 ( exit $ac_status )
22752 echo "$as_me:$LINENO: result: no" >&5
22753 echo "${ECHO_T}no" >&6
22754 { { echo "$as_me:$LINENO: error:
22755 *** Thread test program failed. Your platform is not thread-safe.
22756 *** Check the file 'config.log'for the exact reason.
22758 *** You can use the configure option --enable-thread-safety-force
22759 *** to force threads to be enabled. However, you must then run
22760 *** the program in src/test/thread and add locking function calls
22761 *** to your applications to guarantee thread safety.
22763 echo "$as_me: error:
22764 *** Thread test program failed. Your platform is not thread-safe.
22765 *** Check the file 'config.log'for the exact reason.
22767 *** You can use the configure option --enable-thread-safety-force
22768 *** to force threads to be enabled. However, you must then run
22769 *** the program in src/test/thread and add locking function calls
22770 *** to your applications to guarantee thread safety.
22772 { (exit 1); exit 1; }; }
22774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22779 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22780 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22784 # prepare build tree if outside source tree
22785 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22786 # Note 2: /bin/pwd might be better than shell's built-in at getting
22787 # a symlink-free name.
22788 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22792 if test "$no_create" != yes; then
22793 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22794 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22795 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22796 || { { echo "$as_me:$LINENO: error: failed" >&5
22797 echo "$as_me: error: failed" >&2;}
22798 { (exit 1); exit 1; }; }
22799 echo "$as_me:$LINENO: result: done" >&5
22800 echo "${ECHO_T}done" >&6
22806 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22809 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}"
22812 if test "$PORTNAME" = "win32"; then
22813 ac_config_commands="$ac_config_commands check_win32_symlinks"
22817 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22821 # Warn about unknown options
22825 for var in `set |sed -ne '/^\(with_\|enable\_\)/ s/=.*//p'` ; do
22832 enable_integer_datetimes) ;;
22837 enable_spinlocks) ;;
22843 enable_thread_safety) ;;
22844 enable_thread_safety_force) ;;
22850 with_krb_srvnam) ;;
22855 with_libedit_preferred) ;;
22861 echo -n "*** Option ignored: "
22862 echo $var | sed -e 's/\(^=*\)/--\1/;s/_/-/g'
22868 cat >confcache <<\_ACEOF
22869 # This file is a shell script that caches the results of configure
22870 # tests run on this system so they can be shared between configure
22871 # scripts and configure runs, see configure's option --config-cache.
22872 # It is not useful on other systems. If it contains results you don't
22873 # want to keep, you may remove or edit it.
22875 # config.status only pays attention to the cache file if you give it
22876 # the --recheck option to rerun configure.
22878 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22879 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22880 # following values.
22884 # The following way of writing the cache mishandles newlines in values,
22885 # but we know of no workaround that is simple, portable, and efficient.
22886 # So, don't put newlines in cache variables' values.
22887 # Ultrix sh set writes to stderr and can't be redirected directly,
22888 # and sets the high bit in the cache file unless we assign to the vars.
22891 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22893 # `set' does not quote correctly, so add quotes (double-quote
22894 # substitution turns \\\\ into \\, and sed turns \\ into \).
22897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22900 # `set' quotes correctly as required by POSIX, so do not add quotes.
22902 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22911 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22913 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22914 if test -w $cache_file; then
22915 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22916 cat confcache >$cache_file
22918 echo "not updating unwritable cache $cache_file"
22923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22924 # Let make expand exec_prefix.
22925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22927 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22928 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22929 # trailing colons and then remove the whole line if VPATH becomes empty
22930 # (actually we leave an empty line to preserve line numbers).
22931 if test "x$srcdir" = x.; then
22932 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22933 s/:*\$(srcdir):*/:/;
22934 s/:*\${srcdir}:*/:/;
22936 s/^\([^=]*=[ ]*\):*/\1/;
22942 DEFS=-DHAVE_CONFIG_H
22946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22947 # 1. Remove the extension, and $U if already installed.
22948 ac_i=`echo "$ac_i" |
22949 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22951 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22952 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22954 LIBOBJS=$ac_libobjs
22956 LTLIBOBJS=$ac_ltlibobjs
22960 : ${CONFIG_STATUS=./config.status}
22961 ac_clean_files_save=$ac_clean_files
22962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22963 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22964 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22965 cat >$CONFIG_STATUS <<_ACEOF
22967 # Generated by $as_me.
22968 # Run this file to recreate the current configuration.
22969 # Compiler output produced by configure, useful for debugging
22970 # configure, is in config.log if it exists.
22973 ac_cs_recheck=false
22975 SHELL=\${CONFIG_SHELL-$SHELL}
22978 cat >>$CONFIG_STATUS <<\_ACEOF
22979 ## --------------------- ##
22980 ## M4sh Initialization. ##
22981 ## --------------------- ##
22983 # Be Bourne compatible
22984 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22987 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22988 # is contrary to our usage. Disable this feature.
22989 alias -g '${1+"$@"}'='"$@"'
22990 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22993 DUALCASE=1; export DUALCASE # for MKS sh
22995 # Support unset when possible.
22996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23003 # Work around bugs in pre-3.0 UWIN ksh.
23004 $as_unset ENV MAIL MAILPATH
23011 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23012 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23013 LC_TELEPHONE LC_TIME
23015 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23016 eval $as_var=C; export $as_var
23022 # Required to use basename.
23023 if expr a : '\(a\)' >/dev/null 2>&1; then
23029 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23030 as_basename=basename
23036 # Name of the executable.
23037 as_me=`$as_basename "$0" ||
23038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23039 X"$0" : 'X\(//\)$' \| \
23040 X"$0" : 'X\(/\)$' \| \
23041 . : '\(.\)' 2>/dev/null ||
23043 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23044 /^X\/\(\/\/\)$/{ s//\1/; q; }
23045 /^X\/\(\/\).*/{ s//\1/; q; }
23049 # PATH needs CR, and LINENO needs CR and PATH.
23050 # Avoid depending upon Character Ranges.
23051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23054 as_cr_digits='0123456789'
23055 as_cr_alnum=$as_cr_Letters$as_cr_digits
23057 # The user is always right.
23058 if test "${PATH_SEPARATOR+set}" != set; then
23059 echo "#! /bin/sh" >conf$$.sh
23060 echo "exit 0" >>conf$$.sh
23062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23071 as_lineno_1=$LINENO
23072 as_lineno_2=$LINENO
23073 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23074 test "x$as_lineno_1" != "x$as_lineno_2" &&
23075 test "x$as_lineno_3" = "x$as_lineno_2" || {
23076 # Find who we are. Look in the path if we contain no path at all
23079 *[\\/]* ) as_myself=$0 ;;
23080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23081 for as_dir in $PATH
23084 test -z "$as_dir" && as_dir=.
23085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23090 # We did not find ourselves, most probably we were run as `sh COMMAND'
23091 # in which case we are not to be found in the path.
23092 if test "x$as_myself" = x; then
23095 if test ! -f "$as_myself"; then
23096 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23097 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23098 { (exit 1); exit 1; }; }
23100 case $CONFIG_SHELL in
23102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23103 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23106 test -z "$as_dir" && as_dir=.
23107 for as_base in sh bash ksh sh5; do
23110 if ("$as_dir/$as_base" -c '
23111 as_lineno_1=$LINENO
23112 as_lineno_2=$LINENO
23113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23114 test "x$as_lineno_1" != "x$as_lineno_2" &&
23115 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23116 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23117 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23118 CONFIG_SHELL=$as_dir/$as_base
23119 export CONFIG_SHELL
23120 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23128 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23129 # uniformly replaced by the line number. The first 'sed' inserts a
23130 # line-number line before each line; the second 'sed' does the real
23131 # work. The second script uses 'N' to pair each line-number line
23132 # with the numbered line, and appends trailing '-' during
23133 # substitution so that $LINENO is not a special case at line end.
23134 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23135 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23136 sed '=' <$as_myself |
23141 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23144 s,^['$as_cr_digits']*\n,,
23145 ' >$as_me.lineno &&
23146 chmod +x $as_me.lineno ||
23147 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23148 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23149 { (exit 1); exit 1; }; }
23151 # Don't try to exec as it changes $[0], causing all sort of problems
23152 # (the dirname of $[0] is not the place where we might find the
23153 # original and so on. Autoconf is especially sensible to this).
23155 # Exit status is that of the last command.
23160 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23161 *c*,-n*) ECHO_N= ECHO_C='
23163 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23164 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23167 if expr a : '\(a\)' >/dev/null 2>&1; then
23173 rm -f conf$$ conf$$.exe conf$$.file
23175 if ln -s conf$$.file conf$$ 2>/dev/null; then
23176 # We could just check for DJGPP; but this test a) works b) is more generic
23177 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23178 if test -f conf$$.exe; then
23179 # Don't use ln at all; we don't have any links
23184 elif ln conf$$.file conf$$ 2>/dev/null; then
23189 rm -f conf$$ conf$$.exe conf$$.file
23191 if mkdir -p . 2>/dev/null; then
23194 test -d ./-p && rmdir ./-p
23198 as_executable_p="test -f"
23200 # Sed expression to map a string onto a valid CPP name.
23201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23203 # Sed expression to map a string onto a valid variable name.
23204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23208 # We need space, tab and new line, in precisely that order.
23218 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23219 # report actual input values of CONFIG_FILES etc. instead of their
23220 # values after options handling. Logging --version etc. is OK.
23224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23225 ## Running $as_me. ##
23230 This file was extended by PostgreSQL $as_me 8.2devel, which was
23231 generated by GNU Autoconf 2.59. Invocation command line was
23233 CONFIG_FILES = $CONFIG_FILES
23234 CONFIG_HEADERS = $CONFIG_HEADERS
23235 CONFIG_LINKS = $CONFIG_LINKS
23236 CONFIG_COMMANDS = $CONFIG_COMMANDS
23240 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23244 # Files that config.status was made for.
23245 if test -n "$ac_config_files"; then
23246 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23249 if test -n "$ac_config_headers"; then
23250 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23253 if test -n "$ac_config_links"; then
23254 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23257 if test -n "$ac_config_commands"; then
23258 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23261 cat >>$CONFIG_STATUS <<\_ACEOF
23264 \`$as_me' instantiates files from templates according to the
23265 current configuration.
23267 Usage: $0 [OPTIONS] [FILE]...
23269 -h, --help print this help, then exit
23270 -V, --version print version number, then exit
23271 -q, --quiet do not print progress messages
23272 -d, --debug don't remove temporary files
23273 --recheck update $as_me by reconfiguring in the same conditions
23274 --file=FILE[:TEMPLATE]
23275 instantiate the configuration file FILE
23276 --header=FILE[:TEMPLATE]
23277 instantiate the configuration header FILE
23279 Configuration files:
23282 Configuration headers:
23285 Configuration links:
23288 Configuration commands:
23291 Report bugs to <bug-autoconf@gnu.org>."
23294 cat >>$CONFIG_STATUS <<_ACEOF
23296 PostgreSQL config.status 8.2devel
23297 configured by $0, generated by GNU Autoconf 2.59,
23298 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23300 Copyright (C) 2003 Free Software Foundation, Inc.
23301 This config.status script is free software; the Free Software Foundation
23302 gives unlimited permission to copy, distribute and modify it."
23306 cat >>$CONFIG_STATUS <<\_ACEOF
23307 # If no file are specified by the user, then we need to provide default
23308 # value. By we need to know if files were specified by the user.
23314 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23315 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23323 *) # This is not an option, so the user has probably given explicit
23326 ac_need_defaults=false;;
23330 # Handling of the options.
23332 cat >>$CONFIG_STATUS <<\_ACEOF
23333 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23335 --version | --vers* | -V )
23336 echo "$ac_cs_version"; exit 0 ;;
23338 # Conflict between --help and --header
23339 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23340 Try \`$0 --help' for more information." >&5
23341 echo "$as_me: error: ambiguous option: $1
23342 Try \`$0 --help' for more information." >&2;}
23343 { (exit 1); exit 1; }; };;
23344 --help | --hel | -h )
23345 echo "$ac_cs_usage"; exit 0 ;;
23346 --debug | --d* | -d )
23348 --file | --fil | --fi | --f )
23350 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23351 ac_need_defaults=false;;
23352 --header | --heade | --head | --hea )
23354 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23355 ac_need_defaults=false;;
23356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23360 # This is an error.
23361 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23362 Try \`$0 --help' for more information." >&5
23363 echo "$as_me: error: unrecognized option: $1
23364 Try \`$0 --help' for more information." >&2;}
23365 { (exit 1); exit 1; }; } ;;
23367 *) ac_config_targets="$ac_config_targets $1" ;;
23373 ac_configure_extra_args=
23375 if $ac_cs_silent; then
23377 ac_configure_extra_args="$ac_configure_extra_args --silent"
23381 cat >>$CONFIG_STATUS <<_ACEOF
23382 if \$ac_cs_recheck; then
23383 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23384 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23393 cat >>$CONFIG_STATUS <<\_ACEOF
23394 for ac_config_target in $ac_config_targets
23396 case "$ac_config_target" in
23397 # Handling of arguments.
23398 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23399 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23400 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23401 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23402 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23403 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23404 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23405 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23406 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23407 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23408 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23409 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23410 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23411 { (exit 1); exit 1; }; };;
23415 # If the user did not use the arguments to specify the items to instantiate,
23416 # then the envvar interface is used. Set only those that are not.
23417 # We use the long form for the default assignment because of an extremely
23418 # bizarre bug on SunOS 4.1.3.
23419 if $ac_need_defaults; then
23420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23422 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23426 # Have a temporary directory for convenience. Make it in the build tree
23427 # simply because there is no reason to put it here, and in addition,
23428 # creating and moving files from /tmp can sometimes cause problems.
23429 # Create a temporary directory, and hook for its removal unless debugging.
23432 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23433 trap '{ (exit 1); exit 1; }' 1 2 13 15
23436 # Create a (secure) tmp directory for tmp files.
23439 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23440 test -n "$tmp" && test -d "$tmp"
23443 tmp=./confstat$$-$RANDOM
23444 (umask 077 && mkdir $tmp)
23447 echo "$me: cannot create a temporary directory in ." >&2
23448 { (exit 1); exit 1; }
23453 cat >>$CONFIG_STATUS <<_ACEOF
23456 # CONFIG_FILES section.
23459 # No need to generate the scripts if there are no CONFIG_FILES.
23460 # This happens for instance when ./config.status config.h
23461 if test -n "\$CONFIG_FILES"; then
23462 # Protect against being on the right side of a sed subst in config.status.
23463 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23464 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23465 s,@SHELL@,$SHELL,;t t
23466 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23467 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23468 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23469 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23470 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23471 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23472 s,@exec_prefix@,$exec_prefix,;t t
23473 s,@prefix@,$prefix,;t t
23474 s,@program_transform_name@,$program_transform_name,;t t
23475 s,@bindir@,$bindir,;t t
23476 s,@sbindir@,$sbindir,;t t
23477 s,@libexecdir@,$libexecdir,;t t
23478 s,@datadir@,$datadir,;t t
23479 s,@sysconfdir@,$sysconfdir,;t t
23480 s,@sharedstatedir@,$sharedstatedir,;t t
23481 s,@localstatedir@,$localstatedir,;t t
23482 s,@libdir@,$libdir,;t t
23483 s,@includedir@,$includedir,;t t
23484 s,@oldincludedir@,$oldincludedir,;t t
23485 s,@infodir@,$infodir,;t t
23486 s,@mandir@,$mandir,;t t
23487 s,@build_alias@,$build_alias,;t t
23488 s,@host_alias@,$host_alias,;t t
23489 s,@target_alias@,$target_alias,;t t
23490 s,@DEFS@,$DEFS,;t t
23491 s,@ECHO_C@,$ECHO_C,;t t
23492 s,@ECHO_N@,$ECHO_N,;t t
23493 s,@ECHO_T@,$ECHO_T,;t t
23494 s,@LIBS@,$LIBS,;t t
23495 s,@configure_args@,$configure_args,;t t
23496 s,@build@,$build,;t t
23497 s,@build_cpu@,$build_cpu,;t t
23498 s,@build_vendor@,$build_vendor,;t t
23499 s,@build_os@,$build_os,;t t
23500 s,@host@,$host,;t t
23501 s,@host_cpu@,$host_cpu,;t t
23502 s,@host_vendor@,$host_vendor,;t t
23503 s,@host_os@,$host_os,;t t
23504 s,@PORTNAME@,$PORTNAME,;t t
23505 s,@docdir@,$docdir,;t t
23506 s,@enable_nls@,$enable_nls,;t t
23507 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23508 s,@default_port@,$default_port,;t t
23509 s,@enable_shared@,$enable_shared,;t t
23510 s,@enable_rpath@,$enable_rpath,;t t
23511 s,@enable_debug@,$enable_debug,;t t
23512 s,@DTRACE@,$DTRACE,;t t
23513 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
23514 s,@enable_dtrace@,$enable_dtrace,;t t
23516 s,@CFLAGS@,$CFLAGS,;t t
23517 s,@LDFLAGS@,$LDFLAGS,;t t
23518 s,@CPPFLAGS@,$CPPFLAGS,;t t
23519 s,@ac_ct_CC@,$ac_ct_CC,;t t
23520 s,@EXEEXT@,$EXEEXT,;t t
23521 s,@OBJEXT@,$OBJEXT,;t t
23525 s,@autodepend@,$autodepend,;t t
23526 s,@INCLUDES@,$INCLUDES,;t t
23527 s,@enable_thread_safety@,$enable_thread_safety,;t t
23528 s,@with_tcl@,$with_tcl,;t t
23529 s,@with_perl@,$with_perl,;t t
23530 s,@with_python@,$with_python,;t t
23531 s,@with_krb5@,$with_krb5,;t t
23532 s,@krb_srvtab@,$krb_srvtab,;t t
23533 s,@with_pam@,$with_pam,;t t
23534 s,@with_ldap@,$with_ldap,;t t
23535 s,@with_bonjour@,$with_bonjour,;t t
23536 s,@with_openssl@,$with_openssl,;t t
23537 s,@with_zlib@,$with_zlib,;t t
23538 s,@EGREP@,$EGREP,;t t
23539 s,@ELF_SYS@,$ELF_SYS,;t t
23540 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23542 s,@FLEX@,$FLEX,;t t
23543 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23544 s,@LN_S@,$LN_S,;t t
23546 s,@with_gnu_ld@,$with_gnu_ld,;t t
23547 s,@ld_R_works@,$ld_R_works,;t t
23548 s,@RANLIB@,$RANLIB,;t t
23549 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23551 s,@STRIP@,$STRIP,;t t
23552 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23553 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23554 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23555 s,@YACC@,$YACC,;t t
23556 s,@YFLAGS@,$YFLAGS,;t t
23557 s,@PERL@,$PERL,;t t
23558 s,@perl_archlibexp@,$perl_archlibexp,;t t
23559 s,@perl_privlibexp@,$perl_privlibexp,;t t
23560 s,@perl_useshrplib@,$perl_useshrplib,;t t
23561 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23562 s,@PYTHON@,$PYTHON,;t t
23563 s,@python_version@,$python_version,;t t
23564 s,@python_configdir@,$python_configdir,;t t
23565 s,@python_includespec@,$python_includespec,;t t
23566 s,@python_libdir@,$python_libdir,;t t
23567 s,@python_libspec@,$python_libspec,;t t
23568 s,@python_additional_libs@,$python_additional_libs,;t t
23569 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23570 s,@LIBOBJS@,$LIBOBJS,;t t
23571 s,@acx_pthread_config@,$acx_pthread_config,;t t
23572 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23573 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23574 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23575 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23576 s,@MSGFMT@,$MSGFMT,;t t
23577 s,@MSGMERGE@,$MSGMERGE,;t t
23578 s,@XGETTEXT@,$XGETTEXT,;t t
23579 s,@localedir@,$localedir,;t t
23580 s,@TCLSH@,$TCLSH,;t t
23581 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23582 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23583 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23584 s,@TCL_LIBS@,$TCL_LIBS,;t t
23585 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23586 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23587 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23588 s,@NSGMLS@,$NSGMLS,;t t
23589 s,@JADE@,$JADE,;t t
23590 s,@have_docbook@,$have_docbook,;t t
23591 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23592 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23593 s,@SGMLSPL@,$SGMLSPL,;t t
23594 s,@vpath_build@,$vpath_build,;t t
23595 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23600 cat >>$CONFIG_STATUS <<\_ACEOF
23601 # Split the substitutions into bite-sized pieces for seds with
23602 # small command number limits, like on Digital OSF/1 and HP-UX.
23603 ac_max_sed_lines=48
23604 ac_sed_frag=1 # Number of current file.
23605 ac_beg=1 # First line for current file.
23606 ac_end=$ac_max_sed_lines # Line after last line for current file.
23609 while $ac_more_lines; do
23610 if test $ac_beg -gt 1; then
23611 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23613 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23615 if test ! -s $tmp/subs.frag; then
23616 ac_more_lines=false
23618 # The purpose of the label and of the branching condition is to
23619 # speed up the sed processing (if there are no `@' at all, there
23620 # is no need to browse any of the substitutions).
23621 # These are the two extra sed commands mentioned above.
23623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23624 if test -z "$ac_sed_cmds"; then
23625 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23627 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23629 ac_sed_frag=`expr $ac_sed_frag + 1`
23631 ac_end=`expr $ac_end + $ac_max_sed_lines`
23634 if test -z "$ac_sed_cmds"; then
23637 fi # test -n "$CONFIG_FILES"
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23642 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23644 - | *:- | *:-:* ) # input from stdin
23646 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23648 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23649 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23650 * ) ac_file_in=$ac_file.in ;;
23653 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23654 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23655 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23656 X"$ac_file" : 'X\(//\)[^/]' \| \
23657 X"$ac_file" : 'X\(//\)$' \| \
23658 X"$ac_file" : 'X\(/\)' \| \
23659 . : '\(.\)' 2>/dev/null ||
23661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23663 /^X\(\/\/\)$/{ s//\1/; q; }
23664 /^X\(\/\).*/{ s//\1/; q; }
23666 { if $as_mkdir_p; then
23671 while test ! -d "$as_dir"; do
23672 as_dirs="$as_dir $as_dirs"
23673 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23675 X"$as_dir" : 'X\(//\)[^/]' \| \
23676 X"$as_dir" : 'X\(//\)$' \| \
23677 X"$as_dir" : 'X\(/\)' \| \
23678 . : '\(.\)' 2>/dev/null ||
23680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23682 /^X\(\/\/\)$/{ s//\1/; q; }
23683 /^X\(\/\).*/{ s//\1/; q; }
23686 test ! -n "$as_dirs" || mkdir $as_dirs
23687 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23688 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23689 { (exit 1); exit 1; }; }; }
23693 if test "$ac_dir" != .; then
23694 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23695 # A "../" for each directory in $ac_dir_suffix.
23696 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23698 ac_dir_suffix= ac_top_builddir=
23702 .) # No --srcdir option. We are building in place.
23704 if test -z "$ac_top_builddir"; then
23707 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23709 [\\/]* | ?:[\\/]* ) # Absolute path.
23710 ac_srcdir=$srcdir$ac_dir_suffix;
23711 ac_top_srcdir=$srcdir ;;
23712 *) # Relative path.
23713 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23714 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23717 # Do not use `cd foo && pwd` to compute absolute paths, because
23718 # the directories may not exist.
23720 .) ac_abs_builddir="$ac_dir";;
23723 .) ac_abs_builddir=`pwd`;;
23724 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23725 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23728 case $ac_abs_builddir in
23729 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23731 case ${ac_top_builddir}. in
23732 .) ac_abs_top_builddir=$ac_abs_builddir;;
23733 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23734 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23737 case $ac_abs_builddir in
23738 .) ac_abs_srcdir=$ac_srcdir;;
23741 .) ac_abs_srcdir=$ac_abs_builddir;;
23742 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23743 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23746 case $ac_abs_builddir in
23747 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23749 case $ac_top_srcdir in
23750 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23751 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23752 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23758 if test x"$ac_file" != x-; then
23759 { echo "$as_me:$LINENO: creating $ac_file" >&5
23760 echo "$as_me: creating $ac_file" >&6;}
23763 # Let's still pretend it is `configure' which instantiates (i.e., don't
23764 # use $as_me), people would be surprised to read:
23765 # /* config.h. Generated by config.status. */
23766 if test x"$ac_file" = x-; then
23769 configure_input="$ac_file. "
23771 configure_input=$configure_input"Generated from `echo $ac_file_in |
23772 sed 's,.*/,,'` by configure."
23774 # First look for the input files in the build tree, otherwise in the
23776 ac_file_inputs=`IFS=:
23777 for f in $ac_file_in; do
23779 -) echo $tmp/stdin ;;
23781 # Absolute (can't be DOS-style, as IFS=:)
23782 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23783 echo "$as_me: error: cannot find input file: $f" >&2;}
23784 { (exit 1); exit 1; }; }
23787 if test -f "$f"; then
23790 elif test -f "$srcdir/$f"; then
23795 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23796 echo "$as_me: error: cannot find input file: $f" >&2;}
23797 { (exit 1); exit 1; }; }
23800 done` || { (exit 1); exit 1; }
23802 cat >>$CONFIG_STATUS <<_ACEOF
23806 cat >>$CONFIG_STATUS <<\_ACEOF
23808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23809 s,@configure_input@,$configure_input,;t t
23810 s,@srcdir@,$ac_srcdir,;t t
23811 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23812 s,@top_srcdir@,$ac_top_srcdir,;t t
23813 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23814 s,@builddir@,$ac_builddir,;t t
23815 s,@abs_builddir@,$ac_abs_builddir,;t t
23816 s,@top_builddir@,$ac_top_builddir,;t t
23817 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23818 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23820 if test x"$ac_file" != x-; then
23821 mv $tmp/out $ac_file
23829 cat >>$CONFIG_STATUS <<\_ACEOF
23832 # CONFIG_HEADER section.
23835 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23836 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23838 # ac_d sets the value in "#define NAME VALUE" lines.
23839 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23840 ac_dB='[ ].*$,\1#\2'
23843 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23844 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23845 ac_uB='$,\1#\2define\3'
23849 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23852 - | *:- | *:-:* ) # input from stdin
23854 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23855 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23856 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23857 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23858 * ) ac_file_in=$ac_file.in ;;
23861 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23862 echo "$as_me: creating $ac_file" >&6;}
23864 # First look for the input files in the build tree, otherwise in the
23866 ac_file_inputs=`IFS=:
23867 for f in $ac_file_in; do
23869 -) echo $tmp/stdin ;;
23871 # Absolute (can't be DOS-style, as IFS=:)
23872 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23873 echo "$as_me: error: cannot find input file: $f" >&2;}
23874 { (exit 1); exit 1; }; }
23875 # Do quote $f, to prevent DOS paths from being IFS'd.
23878 if test -f "$f"; then
23881 elif test -f "$srcdir/$f"; then
23886 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23887 echo "$as_me: error: cannot find input file: $f" >&2;}
23888 { (exit 1); exit 1; }; }
23891 done` || { (exit 1); exit 1; }
23892 # Remove the trailing spaces.
23893 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23897 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23898 # `conftest.undefs', that substitutes the proper values into
23899 # config.h.in to produce config.h. The first handles `#define'
23900 # templates, and the second `#undef' templates.
23901 # And first: Protect against being on the right side of a sed subst in
23902 # config.status. Protect against being in an unquoted here document
23903 # in config.status.
23904 rm -f conftest.defines conftest.undefs
23905 # Using a here document instead of a string reduces the quoting nightmare.
23906 # Putting comments in sed scripts is not portable.
23908 # `end' is used to avoid that the second main sed command (meant for
23909 # 0-ary CPP macros) applies to n-ary macro definitions.
23910 # See the Autoconf documentation for `clear'.
23911 cat >confdef2sed.sed <<\_ACEOF
23916 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23918 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23921 # If some macros were called several times there might be several times
23922 # the same #defines, which is useless. Nevertheless, we may not want to
23923 # sort them, since we want the *last* AC-DEFINE to be honored.
23924 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23925 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23926 rm -f confdef2sed.sed
23928 # This sed command replaces #undef with comments. This is necessary, for
23929 # example, in the case of _POSIX_SOURCE, which is predefined and required
23930 # on some systems where configure will not decide to define it.
23931 cat >>conftest.undefs <<\_ACEOF
23932 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23935 # Break up conftest.defines because some shells have a limit on the size
23936 # of here documents, and old seds have small limits too (100 cmds).
23937 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23938 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23939 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23940 echo ' :' >>$CONFIG_STATUS
23941 rm -f conftest.tail
23942 while grep . conftest.defines >/dev/null
23944 # Write a limited-size here document to $tmp/defines.sed.
23945 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23946 # Speed up: don't consider the non `#define' lines.
23947 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23948 # Work around the forget-to-reset-the-flag bug.
23949 echo 't clr' >>$CONFIG_STATUS
23950 echo ': clr' >>$CONFIG_STATUS
23951 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23953 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23955 mv $tmp/out $tmp/in
23957 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23958 rm -f conftest.defines
23959 mv conftest.tail conftest.defines
23961 rm -f conftest.defines
23962 echo ' fi # grep' >>$CONFIG_STATUS
23963 echo >>$CONFIG_STATUS
23965 # Break up conftest.undefs because some shells have a limit on the size
23966 # of here documents, and old seds have small limits too (100 cmds).
23967 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23968 rm -f conftest.tail
23969 while grep . conftest.undefs >/dev/null
23971 # Write a limited-size here document to $tmp/undefs.sed.
23972 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23973 # Speed up: don't consider the non `#undef'
23974 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23975 # Work around the forget-to-reset-the-flag bug.
23976 echo 't clr' >>$CONFIG_STATUS
23977 echo ': clr' >>$CONFIG_STATUS
23978 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23980 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23982 mv $tmp/out $tmp/in
23984 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23985 rm -f conftest.undefs
23986 mv conftest.tail conftest.undefs
23988 rm -f conftest.undefs
23990 cat >>$CONFIG_STATUS <<\_ACEOF
23991 # Let's still pretend it is `configure' which instantiates (i.e., don't
23992 # use $as_me), people would be surprised to read:
23993 # /* config.h. Generated by config.status. */
23994 if test x"$ac_file" = x-; then
23995 echo "/* Generated by configure. */" >$tmp/config.h
23997 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23999 cat $tmp/in >>$tmp/config.h
24001 if test x"$ac_file" != x-; then
24002 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24003 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24004 echo "$as_me: $ac_file is unchanged" >&6;}
24006 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24008 X"$ac_file" : 'X\(//\)[^/]' \| \
24009 X"$ac_file" : 'X\(//\)$' \| \
24010 X"$ac_file" : 'X\(/\)' \| \
24011 . : '\(.\)' 2>/dev/null ||
24013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24015 /^X\(\/\/\)$/{ s//\1/; q; }
24016 /^X\(\/\).*/{ s//\1/; q; }
24018 { if $as_mkdir_p; then
24023 while test ! -d "$as_dir"; do
24024 as_dirs="$as_dir $as_dirs"
24025 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24027 X"$as_dir" : 'X\(//\)[^/]' \| \
24028 X"$as_dir" : 'X\(//\)$' \| \
24029 X"$as_dir" : 'X\(/\)' \| \
24030 . : '\(.\)' 2>/dev/null ||
24032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24034 /^X\(\/\/\)$/{ s//\1/; q; }
24035 /^X\(\/\).*/{ s//\1/; q; }
24038 test ! -n "$as_dirs" || mkdir $as_dirs
24039 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24040 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24041 { (exit 1); exit 1; }; }; }
24044 mv $tmp/config.h $ac_file
24048 rm -f $tmp/config.h
24050 # Run the commands associated with the file.
24052 src/include/pg_config.h )
24053 # Update timestamp for pg_config.h (see Makefile.global)
24054 echo >src/include/stamp-h
24059 cat >>$CONFIG_STATUS <<\_ACEOF
24062 # CONFIG_LINKS section.
24065 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24066 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24067 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24069 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24070 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24072 if test ! -r $srcdir/$ac_source; then
24073 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24074 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24075 { (exit 1); exit 1; }; }
24079 # Make relative symlinks.
24080 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24081 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24082 X"$ac_dest" : 'X\(//\)[^/]' \| \
24083 X"$ac_dest" : 'X\(//\)$' \| \
24084 X"$ac_dest" : 'X\(/\)' \| \
24085 . : '\(.\)' 2>/dev/null ||
24087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24088 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24089 /^X\(\/\/\)$/{ s//\1/; q; }
24090 /^X\(\/\).*/{ s//\1/; q; }
24092 { if $as_mkdir_p; then
24093 mkdir -p "$ac_dest_dir"
24095 as_dir="$ac_dest_dir"
24097 while test ! -d "$as_dir"; do
24098 as_dirs="$as_dir $as_dirs"
24099 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101 X"$as_dir" : 'X\(//\)[^/]' \| \
24102 X"$as_dir" : 'X\(//\)$' \| \
24103 X"$as_dir" : 'X\(/\)' \| \
24104 . : '\(.\)' 2>/dev/null ||
24106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24108 /^X\(\/\/\)$/{ s//\1/; q; }
24109 /^X\(\/\).*/{ s//\1/; q; }
24112 test ! -n "$as_dirs" || mkdir $as_dirs
24113 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24114 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24115 { (exit 1); exit 1; }; }; }
24119 if test "$ac_dest_dir" != .; then
24120 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24121 # A "../" for each directory in $ac_dir_suffix.
24122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24124 ac_dir_suffix= ac_top_builddir=
24128 .) # No --srcdir option. We are building in place.
24130 if test -z "$ac_top_builddir"; then
24133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24135 [\\/]* | ?:[\\/]* ) # Absolute path.
24136 ac_srcdir=$srcdir$ac_dir_suffix;
24137 ac_top_srcdir=$srcdir ;;
24138 *) # Relative path.
24139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24143 # Do not use `cd foo && pwd` to compute absolute paths, because
24144 # the directories may not exist.
24146 .) ac_abs_builddir="$ac_dest_dir";;
24148 case "$ac_dest_dir" in
24149 .) ac_abs_builddir=`pwd`;;
24150 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24151 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24154 case $ac_abs_builddir in
24155 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24157 case ${ac_top_builddir}. in
24158 .) ac_abs_top_builddir=$ac_abs_builddir;;
24159 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24160 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24163 case $ac_abs_builddir in
24164 .) ac_abs_srcdir=$ac_srcdir;;
24167 .) ac_abs_srcdir=$ac_abs_builddir;;
24168 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24169 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24172 case $ac_abs_builddir in
24173 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24175 case $ac_top_srcdir in
24176 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24177 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24178 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24184 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24185 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24188 # Try a symlink, then a hard link, then a copy.
24189 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24190 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24191 cp -p $srcdir/$ac_source $ac_dest ||
24192 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24193 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24194 { (exit 1); exit 1; }; }
24197 cat >>$CONFIG_STATUS <<\_ACEOF
24200 # CONFIG_COMMANDS section.
24202 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24203 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24204 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24205 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24206 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24207 X"$ac_dest" : 'X\(//\)[^/]' \| \
24208 X"$ac_dest" : 'X\(//\)$' \| \
24209 X"$ac_dest" : 'X\(/\)' \| \
24210 . : '\(.\)' 2>/dev/null ||
24212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24214 /^X\(\/\/\)$/{ s//\1/; q; }
24215 /^X\(\/\).*/{ s//\1/; q; }
24217 { if $as_mkdir_p; then
24222 while test ! -d "$as_dir"; do
24223 as_dirs="$as_dir $as_dirs"
24224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24226 X"$as_dir" : 'X\(//\)[^/]' \| \
24227 X"$as_dir" : 'X\(//\)$' \| \
24228 X"$as_dir" : 'X\(/\)' \| \
24229 . : '\(.\)' 2>/dev/null ||
24231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24233 /^X\(\/\/\)$/{ s//\1/; q; }
24234 /^X\(\/\).*/{ s//\1/; q; }
24237 test ! -n "$as_dirs" || mkdir $as_dirs
24238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24239 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24240 { (exit 1); exit 1; }; }; }
24244 if test "$ac_dir" != .; then
24245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24246 # A "../" for each directory in $ac_dir_suffix.
24247 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24249 ac_dir_suffix= ac_top_builddir=
24253 .) # No --srcdir option. We are building in place.
24255 if test -z "$ac_top_builddir"; then
24258 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24260 [\\/]* | ?:[\\/]* ) # Absolute path.
24261 ac_srcdir=$srcdir$ac_dir_suffix;
24262 ac_top_srcdir=$srcdir ;;
24263 *) # Relative path.
24264 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24265 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24268 # Do not use `cd foo && pwd` to compute absolute paths, because
24269 # the directories may not exist.
24271 .) ac_abs_builddir="$ac_dir";;
24274 .) ac_abs_builddir=`pwd`;;
24275 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24276 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24279 case $ac_abs_builddir in
24280 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24282 case ${ac_top_builddir}. in
24283 .) ac_abs_top_builddir=$ac_abs_builddir;;
24284 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24285 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24288 case $ac_abs_builddir in
24289 .) ac_abs_srcdir=$ac_srcdir;;
24292 .) ac_abs_srcdir=$ac_abs_builddir;;
24293 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24294 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24297 case $ac_abs_builddir in
24298 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24300 case $ac_top_srcdir in
24301 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24302 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24303 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24308 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24309 echo "$as_me: executing $ac_dest commands" >&6;}
24311 check_win32_symlinks )
24312 # Links sometimes fail undetected on Mingw -
24313 # so here we detect it and warn the user
24314 for FILE in $CONFIG_LINKS
24316 # test -e works for symlinks in the MinGW console
24317 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24318 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24327 { (exit 0); exit 0; }
24329 chmod +x $CONFIG_STATUS
24330 ac_clean_files=$ac_clean_files_save
24333 # configure is writing to config.log, and then calls config.status.
24334 # config.status does its own redirection, appending to config.log.
24335 # Unfortunately, on DOS this fails, as config.log is still kept open
24336 # by configure, so config.status won't be able to write to it; its
24337 # output is simply discarded. So we exec the FD to /dev/null,
24338 # effectively closing config.log, so it can be properly (re)opened and
24339 # appended to by config.status. When coming back to configure, we
24340 # need to make the FD available again.
24341 if test "$no_create" != yes; then
24343 ac_config_status_args=
24344 test "$silent" = yes &&
24345 ac_config_status_args="$ac_config_status_args --quiet"
24347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24350 # would make configure fail if this is the last instruction.
24351 $ac_cs_success || { (exit 1); exit 1; }